/* 高科技企业主题 — Apple 布局 + 深色科技配色 */
:root {
  --bg-deep: #070b14;
  --bg-soft: #0d1528;
  --bg-card: #111827;
  --surface: #0f172a;
  --surface-alt: #0d1528;
  --surface-light: #f8fafc;
  --text: #e6edf3;
  --text-dark: #0f172a;
  --text-muted: #8b9cb3;
  --primary: #00d4ff;
  --primary-dark: #0066ff;
  --accent: #6366f1;
  --accent-glow: rgba(0, 212, 255, 0.35);
  --border: rgba(148, 163, 184, 0.2);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.12);
  --header-h: 52px;
}

/* —— 顶栏：深色毛玻璃 —— */
.site-header {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-header.scrolled {
  background: rgba(7, 11, 20, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.brand-text strong,
.nav a,
.hotline-num {
  color: #e2e8f0;
}

.nav a:hover,
.nav a.nav-active {
  color: var(--primary);
}

.nav-hotline {
  font-size: 18px;
  font-weight: 700;
  color: #00d4ff !important;
  letter-spacing: 0.02em;
}

.nav-hotline:hover {
  color: #7dd3fc !important;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent)) !important;
  color: #fff !important;
  border-radius: 980px !important;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 4px;
  padding: 4px 6px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 980px;
  background: rgba(0, 20, 40, 0.55);
  line-height: 1;
}

.lang-switch-btn {
  display: inline-block;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none;
  border-radius: 980px;
  transition: color 0.2s, background 0.2s;
}

.lang-switch-btn:hover {
  color: #00d4ff !important;
  background: rgba(0, 212, 255, 0.12);
}

.lang-switch-btn.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
}

.lang-switch-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  padding: 0 2px;
  user-select: none;
}

/* 桌面端强制显示顶栏导航（避免旧缓存 CSS 在窄屏规则下误隐藏） */
@media (min-width: 769px) {
  .site-header .nav {
    display: flex !important;
    position: static;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  .site-header .menu-toggle {
    display: none !important;
  }
}

/* 移动端汉堡菜单 */
@media (max-width: 768px) {
  .site-header .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-header .menu-toggle span {
    background: #e2e8f0;
  }

  .nav {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  }

  .nav a {
    color: #e2e8f0;
    border-bottom-color: var(--border);
  }

  .nav a:hover,
  .nav a.nav-active {
    background: rgba(0, 212, 255, 0.08);
  }

  .lang-switch {
    border-color: rgba(0, 212, 255, 0.35);
  }
}

@media (max-width: 900px) {
  .lang-switch {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* —— 子页面 —— */
body.subpage {
  background: var(--bg-deep);
  color: var(--text);
}

.subpage .page-main {
  padding-top: var(--header-h);
}

.subpage .page-hero {
  background: transparent;
  border: none;
}

.subpage .breadcrumb,
.subpage .breadcrumb a {
  color: var(--text-muted);
}

.subpage .section-head h1,
.subpage .section-head h2,
.subpage h1,
.subpage h2,
.subpage h3 {
  color: #f1f5f9;
}

.subpage p {
  color: var(--text-muted);
}

/* —— 按钮 —— */
.btn-primary {
  background: linear-gradient(135deg, #0066ff, #6366f1);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(0, 212, 255, 0.45);
  filter: brightness(1.08);
}

.btn-ghost-dark,
.btn-secondary {
  color: var(--primary);
  border: 1px solid var(--border);
  background: transparent;
}

.btn-ghost-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* —— 卡片 —— */
.category-card,
.product-list-card,
.home-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.category-card:hover,
.product-list-card:hover,
.home-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: var(--shadow-glow);
}

.section-tag {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* —— 首页 Hero —— */
.hero-tech {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-tech-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-tech-bg .hero-tech-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  opacity: 0.78;
}

.hero-tech-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero-tech-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(7, 11, 20, 0.94) 0%, rgba(7, 11, 20, 0.82) 38%, rgba(7, 11, 20, 0.45) 62%, rgba(7, 11, 20, 0.65) 100%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.15) 0%, rgba(7, 11, 20, 0.88) 100%);
}

.hero-tech-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  max-width: 720px;
}

.hero-tech-content h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 20px;
}

.hero-tech-sub,
.hero-eyebrow {
  color: var(--text-muted);
}

.hero-tech-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-tech-stats strong {
  display: block;
  font-size: 28px;
  color: var(--primary);
  font-weight: 600;
}

.hero-tech-stats span {
  font-size: 12px;
  color: var(--text-muted);
}

/* —— 首页区块 —— */
.section-dark {
  background: var(--bg-deep);
}

.section-alt {
  background: var(--bg-soft);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.home-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.home-card .product-list-thumb {
  border-radius: 0;
  aspect-ratio: 16/10;
}

.home-card-body {
  padding: 20px;
}

.home-card-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-card h3 {
  font-size: 17px;
  color: #f1f5f9;
  margin: 8px 0;
}

.home-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.home-card-visual {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.home-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-card-featured {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.12);
}

.home-card-featured .home-card-tag {
  color: var(--primary);
}

.home-news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.home-news-card {
  padding: 24px;
}

.cases-type-section {
  margin-top: 56px;
}

.cases-type-section:first-of-type {
  margin-top: 0;
}

.cases-type-head {
  margin-bottom: 32px;
}

.cases-type-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  margin: 0 0 8px;
}

.cases-type-head p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cta-banner {
  background: linear-gradient(135deg, #0066ff 0%, #6366f1 50%, #0d1528 100%);
  text-align: center;
}

.cta-banner-inner h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
}

.cta-banner-inner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.cta-banner .btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  margin-left: 12px;
}

.contact-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.contact-compact-info h2 {
  color: #f1f5f9;
}

.contact-list li {
  border-bottom-color: var(--border);
}

.contact-list li > span:first-child {
  color: var(--text-muted);
  min-width: 88px;
  font-weight: 600;
  flex-shrink: 0;
}

.contact-list li a {
  color: var(--primary);
  text-decoration: none;
}

.contact-list li a:hover {
  color: #7dd3fc;
}

.contact-list li > span:not(:first-child),
.contact-list .contact-address {
  color: #e2e8f0;
}

.contact-list .contact-address {
  flex: 1;
  line-height: 1.6;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
}

.contact-form h3 {
  color: #f1f5f9;
}

.contact-form label span {
  color: #cbd5e1;
}

.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #64748b;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
  outline: none;
}

.form-success {
  color: #34d399;
}

/* —— 分页 —— */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 40px 0 24px;
  flex-wrap: wrap;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.pagination-link:hover,
.pagination-link.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 212, 255, 0.08);
}

/* —— 产品详情 Tab —— */
.detail-tabs {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.detail-tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.detail-tab-btn {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.detail-tab-btn:hover {
  color: var(--primary);
}

.detail-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.detail-tab-panel {
  display: none;
  padding: 32px;
}

.detail-tab-panel.active {
  display: block;
}

.product-tagline {
  color: var(--primary);
  font-size: 18px;
  margin: 8px 0;
}

.product-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

.product-quick-specs {
  margin: 20px 0;
}

.product-quick-specs .spec-table {
  font-size: 14px;
}

/* —— 详情页右侧产品特点 —— */
.product-features-aside {
  margin: 24px 0;
}

.product-features-heading {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
}

.product-features-aside .product-feature-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-features-aside .product-feature-card {
  padding: 14px;
}

.product-features-aside .product-feature-media {
  width: 96px;
  height: 64px;
}

.product-features-aside .product-feature-body h3 {
  font-size: 15px;
}

.product-features-aside .product-feature-body p {
  font-size: 13px;
}

.detail-tab-panel .spec-table {
  font-size: 14px;
}

/* —— 产品图：底色与网站卡片配色一致 —— */
.product-detail-figure {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.product-detail-media {
  background: radial-gradient(
    ellipse at center,
    rgba(0, 212, 255, 0.07) 0%,
    var(--bg-card) 65%
  );
  padding: 16px;
  border-radius: var(--radius-lg);
}

.detail-img,
.list-thumb-img {
  background: transparent !important;
}

.product-list-thumb.has-img {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.product-list-thumb .list-thumb-img {
  object-fit: contain;
  padding: 6px;
}

.home-card .product-list-thumb.has-img {
  border: none;
  border-bottom: 1px solid var(--border);
}

.home-card .product-list-thumb .list-thumb-img {
  object-fit: cover;
  padding: 0;
}

/* 行业方案列表：固定两列 */
.solution-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .solution-item-grid {
    grid-template-columns: 1fr;
  }
}

.product-rich-content img {
  background: transparent;
  border-radius: 8px;
}

.product-rich-content p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* —— 产品特点图文卡片 —— */
.product-feature-intro {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 28px;
  font-size: 15px;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product-feature-card {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s, background 0.2s;
}

.product-feature-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.04);
}

.product-feature-media {
  flex-shrink: 0;
  width: 120px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.product-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--primary);
  font-size: 20px;
}

.product-feature-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text);
}

.product-feature-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .product-feature-grid {
    grid-template-columns: 1fr;
  }

  .product-feature-card {
    flex-direction: column;
  }

  .product-feature-media {
    width: 100%;
    height: 100px;
  }
}

/* —— 参数表 —— */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.spec-table th {
  color: var(--text-muted);
  font-weight: 500;
  width: 35%;
}

.spec-table td {
  color: #e2e8f0;
}

/* —— 页脚 —— */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.site-footer strong {
  color: #f1f5f9;
}

.footer-nav a {
  color: var(--text-muted);
}

/* —— 关于页 —— */
.about-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.vision-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.vision-card h4 {
  color: var(--primary);
  margin: 0 0 8px;
}

.honor-list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.honor-list-inline li {
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 980px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-hero-banner {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.page-hero-banner img {
  width: 100%;
  display: block;
}

/* —— 首页 body 默认浅色区 —— */
body:not(.subpage) {
  background: var(--bg-deep);
  color: var(--text);
}

body:not(.subpage) .section-head h2 {
  color: #f1f5f9;
}

body:not(.subpage) .text-link {
  color: var(--primary);
}

/* —— 响应式 —— */
@media (max-width: 960px) {
  .home-grid,
  .home-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-compact {
    grid-template-columns: 1fr;
  }

  .hero-tech-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .home-grid,
  .home-grid-3,
  .home-news-list {
    grid-template-columns: 1fr;
  }

  .detail-tab-nav {
    flex-direction: column;
  }

  .about-vision-grid {
    grid-template-columns: 1fr;
  }
}

/* —— 产品分类卡片配图 —— */
.category-card-visual .card-visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a1628;
}

.card-visual-img,
.category-card-visual .card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.category-card-visual:hover .card-visual img {
  transform: scale(1.03);
  transition: transform 0.5s ease;
}
