:root {
  --nav-h: 73px;
  --bg: #07111e;
  --bg-alt: #0a1a33;
  --surface: #0f2342;
  --surface-2: #122a4e;
  --primary: #4f95e8;
  --primary-2: #2e66b1;
  --accent: #7fc0e8;
  --text: #e8eefc;
  --text-dim: #9fb0d0;
  --text-mute: #6b7c9e;
  --border: rgba(110, 160, 230, 0.16);
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --maxw: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-anchor: none; /* 禁用滚动锚定（配合 body） */
  scroll-behavior: smooth;
}

/* 详情页切换列表项时禁用滚动锚定：内容替换不再引起整页滚动位置跳动 */
body {
  overflow-anchor: none;
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(48, 104, 179, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(48, 104, 179, 0.6);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--primary);
}

/* ---------- 导航 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  transition:
    background 0.3s,
    border-color 0.3s;
  border-bottom: 1px solid transparent;
}
/* 背景为不透明色，原先这里还叠加了 backdrop-filter: blur(14px)：
   毛玻璃对不透明背景不可见，却会让固定导航栏在每一帧滚动时重新采样背后内容，
   是「滚轮 / 平滑滚动不顺」的主要来源之一，故移除。 */
.navbar.scrolled {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #19468a !important;
  white-space: nowrap;
  font-family: "KaiTi", "Kaiti SC", "楷体";
}
/* 导航栏文字 Logo：字号较正文/页脚更大，突出品牌 */
.navbar .logo-text {
  font-size: 30px;
  letter-spacing: 1.6px;
}
.footer .logo-text {
  font-size: 20px;
}
.nav-links {
  /* 左间距由 JS 按 4:1 计算；无 JS 时靠 auto 维持右对齐 */
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 44px;
}
/* 导航栏图形 Logo：替代原文字 Logo，尺寸放大突出品牌 */
.navbar .logo-img {
  height: 54px;
  width: auto;
  display: block;
}
/* 深色主题下换用白色版 Logo，保证可读性 */
[data-theme="dark"] .navbar .logo-img {
  content: url("../images/logo-light.png");
}
.nav-links a {
  font-size: 17px;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s;
}
.nav-links a:not(.nav-cta):hover {
  color: var(--text);
}
.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}
/* 滚动联动：当前区块对应的导航项保持 hover 态（下划线 + 高亮字色） */
.nav-links a:not(.nav-cta).active {
  color: var(--text);
}
.nav-links a:not(.nav-cta).active::after {
  width: 100%;
}
.nav-cta {
  padding: 9px 22px;
  font-size: 16px;
}

/* ---------- 导航栏「解决方案」下拉菜单（解决方案 / 应用白皮书 两个入口） ---------- */
.nav-dropdown {
  position: relative;
}
.nav-drop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 17px;
  color: inherit;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.nav-drop-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s;
}
.nav-dropdown:hover .nav-drop-trigger,
.nav-dropdown.open .nav-drop-trigger,
.nav-dropdown.active .nav-drop-trigger {
  color: var(--text);
}
.nav-dropdown:hover .nav-drop-trigger::after,
.nav-dropdown.open .nav-drop-trigger::after,
.nav-dropdown.active .nav-drop-trigger::after {
  width: 100%;
}
.nav-drop-caret {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
/* 展开时箭头朝上：点击展开、hover 展开、滚到解决方案区固定展开三种情况都要翻转 */
.nav-dropdown.open .nav-drop-caret,
.nav-dropdown:hover .nav-drop-caret,
.nav-dropdown.active .nav-drop-caret {
  transform: rotate(-135deg);
  margin-top: 2px;
}
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, -8px);
  min-width: 176px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
  z-index: 60;
}
.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown.open .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
/* 触发项与下拉面板之间有 14px 间隙：用一块透明"桥"补上，
   否则鼠标从「解决方案」斜向移入菜单时会短暂离开 hover 区域，导致菜单闪退 */
.nav-drop-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
  background: transparent;
}
/* 覆盖 .nav-links a 的通用链接样式：下拉项仅一行标题 */
.nav-links .nav-drop-menu a {
  display: block;
  padding: 11px 13px;
  border-radius: 10px;
  text-align: left;
  transition: background 0.2s;
}
.nav-links .nav-drop-menu a::after {
  display: none;
}
.nav-links .nav-drop-menu a:hover {
  background: rgba(79, 149, 232, 0.1);
}
.nav-drop-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.nav-drop-desc {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-mute);
}
.lang-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  letter-spacing: 0.5px;
}
.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.theme-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s;
}
.theme-toggle:hover {
  border-color: var(--primary);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
/* Hero 保持整屏 100vh；大屏（宽且高）下的上下留空由下方 vh 缩放增强块填充，小屏行为不变 */
.hero {
  scroll-margin-top: calc(var(--nav-h) + 8px);
  /* 首屏只保留两种字号：--hero-display 用于「高速率…」主标题与「4.8 / 120 」数字，
     --hero-text 用于首屏其余所有文字（标签 / 轮播句 / 按钮 / 数字说明） */
  --hero-display: clamp(30px, 3.2vw, 42px);
  --hero-text: clamp(14px, 1.15vw, 16px);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(96px, 9vw, 120px) 0 clamp(56px, 7vw, 80px);
  overflow: hidden;
}
/* Hero 背景：静态科技蓝图片，cover 铺满；保留左暗渐层保证文字可读、底部渐隐融入页面底色 */
.hero-bg {
  position: absolute;
  /* 顶部让开固定导航栏（72px），避免图片上半部分被导航白条压住 */
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  /* cover：图片铺满整块区域，不留上下/左右空白带（contain 在视口比图更窄高时
     会按宽适配，上下各留一条横带，就是之前看到的「两条纯蓝线」）；
     底层蓝色渐变仅作加载兜底，图片铺满后不可见 */
  background-image:
    url("../images/hero-bg.jpg"),
    linear-gradient(90deg, rgb(2, 50, 134) 0%, rgb(34, 138, 223) 100%);
  background-size:
    cover,
    100% 100%;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
/* ---------- Hero 背景叠层（压暗文字区 + 科技网格） ---------- */
/* 左侧压暗保证文字可读；底部渐隐融入页面底色（浅色主题下融入白色，深色主题下融入深蓝黑） */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(6, 14, 26, 0.5) 0%,
    rgba(6, 14, 26, 0.2) 40%,
    rgba(6, 14, 26, 0) 66%
  );
}
/* Hero 内容整体左移：背景图绝对定位、保持原位不动；
   仅把 hero 内的容器向左偏移（其他页面区块不受影响），
   让文字重心偏左，与右侧偏重的背景主体（地球/机器人/技术标签）形成左右均衡 */
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  /* 安全左移公式：max(0, (视口 - 容器宽)/2 + 内边距 - 期望留白)
     1440 视口 → (1440-1180)/2 + 24 - 72 = 82px，内容左侧留白约 72px；
     窄于容器的视口自动归零，不会推出屏幕外 */
  left: calc(-1 * max(0px, (100vw - var(--maxw)) / 2 - 48px));
}
.hero-content {
  max-width: min(700px, 62vw);
  text-shadow: 0 2px 16px rgba(2, 10, 24, 0.55);
}
/* Hero 为深蓝夜景（深浅两套主题一致），文字统一使用浅色保证可读性 */
.hero h1,
.hero .stat strong {
  color: #eaf4ff;
}
.hero .stat span {
  color: rgba(224, 238, 252, 0.96);
  text-shadow:
    0 1px 10px rgba(2, 10, 24, 0.8),
    0 1px 3px rgba(2, 10, 24, 0.55);
}
.hero .grad-text {
  color: #ffffff;
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #eaf4ff;
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(155, 232, 255, 0.55);
}
.hero .hero-sub.typing::after {
  background: #9be8ff;
}
.hero-tag {
  display: inline-block;
  padding: clamp(6px, 0.55vw, 7px) clamp(14px, 1.3vw, 18px);
  border-radius: 999px;
  font-size: var(--hero-text);
  letter-spacing: clamp(0.5px, 0.08vw, 1px);
  color: #9be8ff;
  border: 1px solid rgba(155, 232, 255, 0.32);
  background: rgba(120, 200, 255, 0.1);
  margin-bottom: clamp(14px, 1.8vw, 26px);
}
.hero h1 {
  font-size: var(--hero-display);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: clamp(-0.5px, -0.08vw, -1px);
}
.grad-text {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* 轮播句：近白高不透明（唯一权威声明，避免被后续规则覆盖导致融入背景） */
.hero-sub {
  color: rgba(232, 243, 255, 0.97);
  font-size: var(--hero-text);
  margin: clamp(14px, 1.8vw, 26px) 0 clamp(20px, 2.6vw, 36px);
  max-width: 640px;
  min-height: 3.3em;
  transition: opacity 0.6s ease;
}
.hero-sub.fade-out {
  opacity: 0;
}
.hero-sub.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--primary);
  margin-left: 3px;
  vertical-align: -2px;
  animation: caret-blink 1s step-end infinite;
}
@keyframes caret-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.hero-actions {
  display: flex;
  gap: clamp(10px, 1.2vw, 16px);
  flex-wrap: wrap;
}
.hero-actions .btn {
  padding: clamp(10px, 1vw, 12px) clamp(20px, 2.2vw, 26px);
  font-size: var(--hero-text);
}
.hero-stats {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  margin-top: clamp(28px, 4.2vw, 56px);
}
.stat strong {
  display: block;
  font-size: var(--hero-display);
  font-weight: 800;
  color: var(--text);
}
.stat span {
  font-size: var(--hero-text);
  color: var(--text-mute);
}

/* 大屏增强（宽 ≥1280 且高 ≥920）：Hero 维持整屏 100vh，
   纵向节奏改按视口高度（vh）放大，填充大屏上下留空；
   字号仍只保留两种，只在此处按 vh 重设两个变量，元素级字号一律沿用变量 */
@media (min-width: 1280px) and (min-height: 920px) {
  .hero {
    --hero-display: clamp(38px, 4.4vh, 52px);
    --hero-text: clamp(15px, 1.6vh, 18px);
    padding: clamp(110px, 15vh, 190px) 0 clamp(60px, 9vh, 120px);
  }
  /* 大屏内容整体上移：hero 为 flex 垂直居中，把内容块相对居中位上提约 6vh（封顶 64px），
     使标题重心略高于屏幕中线，视觉更稳、也更贴近导航栏下方 */
  .hero-inner {
    transform: translateY(clamp(-64px, -6vh, 0px));
  }
  .hero-content {
    max-width: min(780px, 64vw);
  }
  .hero-tag {
    margin-bottom: clamp(22px, 5vh, 56px);
  }
  .hero-sub {
    margin: clamp(22px, 5vh, 56px) 0 clamp(28px, 6.4vh, 74px);
    max-width: 700px;
  }
  .hero-actions .btn {
    padding: clamp(11px, 1.3vh, 14px) clamp(22px, 2.6vw, 30px);
  }
  .hero-stats {
    margin-top: clamp(40px, 8.6vh, 100px);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: #9be8ff;
  /* 用 transform 而非 top 做位移动画：不触发每帧重排，只走合成层 */
  transform: translate(-50%, 0);
  will-change: transform, opacity;
  animation: scroll 1.8s infinite;
}
@keyframes scroll {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
    transform: translate(-50%, 6px);
  }
  80% {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

/* ---------- 通用 section ---------- */
/* 锚点定位与导航栏底边齐平（navH-1px 防亚像素缝隙）：产品节上方 Hero 的深蓝底色
   完全藏在固定导航栏后面，不露出任何条带；导航栏避空由 section 自身 110px 上内边距完成 */
.section {
  padding: 110px 0;
  scroll-margin-top: calc(var(--nav-h) - 1px);
}
/* 分区底色只在亮色主题生效（data-theme 挂在 <html> 上，故用后代选择器）；
   深色主题保持透明、回落 body 深色底；联系我们区沿用 --bg-alt，不受影响 */
[data-theme="light"] .section:not(.section-alt) {
  background: #f2f7fc;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--primary);
  font-weight: 700;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 0 0 14px;
  font-weight: 800;
}
.section-head p {
  color: var(--text-dim);
  font-size: 16px;
}

/* ---------- 产品卡片（默认网格，点击后跳转详情） ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.product-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 149, 232, 0.4);
  box-shadow: var(--shadow);
}
.product-card:hover::before {
  transform: scaleX(1);
}
.pc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.pc-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(79, 149, 232, 0.1);
  border: 1px solid var(--border);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.pc-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
.product-card:hover .pc-icon {
  background: rgba(79, 149, 232, 0.18);
  border-color: rgba(79, 149, 232, 0.45);
}
.product-card h3 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 0;
}
.product-card p {
  color: var(--text-dim);
  font-size: 14.5px;
}
.pc-more {
  position: absolute;
  right: 22px;
  bottom: 20px;
  font-size: 20px;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: 0.25s;
}
.product-card:hover .pc-more {
  opacity: 1;
  transform: translateX(0);
}

/* 视图切换：默认网格可见，详情视图隐藏 */
.product-grid[hidden],
.product-showcase[hidden] {
  display: none !important;
}
.product-showcase {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

/* ---------- 产品展示：左分类导航 + 右详情（点击产品后呈现） ---------- */
/* 左栏 300px → 320px：给英文标题留足一行宽度，避免小屏下折行 */
.product-showcase {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start; /* 左栏高度固定，不随右侧内容高度伸缩 */
}
.ps-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 14px;
  transition: 0.2s;
}
.ps-back:hover {
  color: var(--text);
  border-color: var(--primary);
}
.ps-nav {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* 高度按列表自身内容（不随右侧详情内容改变，各列表项切换中恒定）；
     超出视口高度时左栏内部自动滚动 */
  max-height: calc(100vh - var(--nav-h) - 24px);
  overflow-y: auto;
  position: sticky;
  top: calc(var(--nav-h) + 8px);
}
.ps-nav {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* 高度按列表自身内容（不随右侧详情内容改变，各列表项切换中恒定）；
     超出视口高度时左栏内部自动滚动 */
  max-height: calc(100vh - var(--nav-h) - 24px);
  overflow-y: auto;
  position: sticky;
  top: calc(var(--nav-h) + 8px);
}
.ps-nav-title {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--primary);
  font-weight: 700;
  margin: 0 0 12px 12px;
  display: block;
}
/* 应用场景详情侧栏的第二个分类标题（应用白皮书） */
.ps-nav-title.wp-cat {
  margin-top: 16px;
}
.ps-nav-item {
  text-align: left;
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  padding: 11px 14px;
  cursor: pointer;
  border-radius: 0 10px 10px 0;
  color: var(--text-dim);
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
  font-family: inherit;
  line-height: 1.4;
}
.ps-nav-item:hover {
  color: var(--text);
  background: rgba(79, 149, 232, 0.06);
}
.ps-nav-item.active {
  color: var(--text);
  border-left-color: var(--primary);
  background: rgba(79, 149, 232, 0.1);
}
.ps-nav-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.ps-nav-sub {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 3px;
}
.ps-nav-item.active .ps-nav-sub {
  color: var(--primary);
}
/* ===== 产品中心左栏两级结构 ===== */
/* 一级分类：纯描述标签，不可点击、无悬停态 */
.ps-nav-cat {
  padding: 14px 14px 6px;
  border-left: 2px solid transparent;
  cursor: default;
  min-width: 0;
}
.ps-nav-cat .ps-nav-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-nav-cat.active {
  border-left-color: var(--primary);
}
.ps-nav-cat.active .ps-nav-name {
  color: var(--text);
}
.ps-nav-cat .ps-nav-sub {
  color: var(--text-mute);
}
.ps-nav-cat.active .ps-nav-sub {
  color: var(--primary);
}
/* 二级菜单项：可点击，缩进表示层级 */
.ps-nav-children {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 8px;
}
.ps-nav-child {
  text-align: left;
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  padding: 9px 14px 9px 26px;
  cursor: pointer;
  border-radius: 0 10px 10px 0;
  color: var(--text-dim);
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  min-width: 0;
}
.ps-nav-child:hover {
  color: var(--text);
  background: rgba(79, 149, 232, 0.06);
}
.ps-nav-child.active {
  color: var(--text);
  border-left-color: var(--primary);
  background: rgba(79, 149, 232, 0.1);
}
.ps-nav-child-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 左栏标题 / 副标题一律不换行：窄屏或长英文标题时以省略号收尾，绝不折成两三行 */
.ps-nav-item {
  min-width: 0;
}
.ps-nav-name,
.ps-nav-sub {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-detail {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  min-height: 480px;
}
.ps-eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 700;
}
.ps-detail h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin: 10px 0 24px;
  letter-spacing: -0.5px;
}
.ps-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}
.ps-models {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 6px;
}
.ps-model-name {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 12px;
  padding-left: 12px;
  position: relative;
}
.ps-model-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--primary), var(--accent));
}

/* 产品详情内子菜单标题（网络管理系统 → T010 / T020） */
.ps-sub-title {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.2px;
}

/* 板卡分组：作为与 T512 / T511 同级的型号，图小、5 列、图注在框内 */
.ps-model-compact .ps-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.ps-model-compact .ps-shot {
  padding: 8px 8px 6px;
  gap: 4px;
  border-radius: 10px;
}
.ps-model-compact .ps-shot img {
  height: 82px;
  cursor: zoom-in;
}
.ps-model-compact .ps-shot figcaption {
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 980px) {
  .ps-model-compact .ps-gallery {
    gap: 10px;
  }
  .ps-model-compact .ps-shot img {
    height: 68px;
  }
}
@media (max-width: 680px) {
  .ps-model-compact .ps-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .ps-model-compact .ps-shot {
    padding: 6px;
  }
  .ps-model-compact .ps-shot img {
    height: 56px;
  }
  .ps-model-compact .ps-shot figcaption {
    font-size: 10.5px;
  }
}

.ps-shot {
  margin: 0;
  background: #eef5fd;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ps-shot img {
  width: 100%;
  height: auto;
  /* max-height: 190px; */
  object-fit: contain;
  cursor: zoom-in;
}
/* 光模块产品（详情区直连画廊）：图卡与其他产品同高，撑起右栏与左导航等高
.ps-detail > .ps-gallery .ps-shot img {
  height: 190px;
} */

/* ---------- 图片大图弹窗（Lightbox） ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 24px;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.ps-shot figcaption {
  font-size: 12.5px;
  color: var(--text-mute);
  text-align: center;
  /* 预留固定最小高度：中/英文案行数不同也不会改变卡片高度与整体布局 */
  min-height: 44px;
}
/* 紧凑板卡网格的图注均为单行、本身稳定，不预留额外高度 */
.ps-model-compact .ps-shot figcaption {
  min-height: 0;
}
/* 宽幅界面截图（如 TNMS 网管界面）：通栏 + 自适应高度，保证细节可读 */
.ps-shot-full {
  grid-column: 1 / -1;
}
.ps-shot-full img {
  height: auto;
  max-height: 460px;
}
/* ============================================================
   Application WhitePaper（.wp-doc）
   按 docx 原样：居中作者行、两端对齐正文、居中的公式/图注/表格标题，
   不做卡片包装。外层 ps-detail 已提供与应用场景详情一致的容器样式。
   ============================================================ */
.wp-doc {
  font-family: "Times New Roman", "Nimbus Roman", Georgia, serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
}
/* 摘要与关键词段：文档中为斜体正文 + 加粗正体引导词（Abstract— / Index Terms—） */
.wp-doc p.wp-abs {
  font-style: italic;
}
.wp-doc p.wp-abs strong {
  font-style: normal;
  font-weight: 700;
}
.wp-doc p {
  margin: 0 0 15px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
}
.wp-doc a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.wp-doc a:hover {
  border-bottom-color: var(--primary);
}
.wp-doc sub {
  font-size: 0.72em;
}
/* 作者信息（文档中为居中两行） */
.wp-doc p.wp-center {
  text-align: center;
}
.wp-doc p.wp-center:last-of-type {
  margin-bottom: 22px;
}
/* 一级章标题（文档中为居中） */
.wp-h {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 34px 0 16px;
  line-height: 1.45;
  text-align: center;
}
/* 目录条目（文档中为左对齐加粗，仅标题居中） */
.wp-doc p.toc {
  text-align: left;
  padding-left: 26px;
  margin-bottom: 6px;
}
.wp-doc p.toc:last-of-type {
  margin-bottom: 26px;
}
/* 加粗小节标题（文档中带浅蓝底色条与左侧深蓝竖线） */
.wp-sub {
  font-size: 15px;
  font-weight: 700;
  color: #1f3864;
  margin: 26px 0 12px;
  line-height: 1.5;
  background: #dbe5f2;
  border-left: 5px solid #2e5fa3;
  padding: 5px 12px;
}
/* 公式行（文档中为居中纯文本，无底色框） */
.wp-doc p.wp-eq {
  margin: 0 0 16px;
  font-family: "Cambria Math", Georgia, "Times New Roman", serif;
  font-size: 15px;
  text-align: center;
  color: var(--text);
  overflow-x: auto;
}
/* 结论段落（文档中为编号列表） */
.wp-num {
  counter-increment: wpnum;
  padding-left: 30px;
  position: relative;
}
.wp-doc {
  counter-reset: wpnum;
}
.wp-num::before {
  content: counter(wpnum) ".";
  position: absolute;
  left: 8px;
  top: 0;
  font-weight: 700;
  color: var(--text);
}
/* 表格 */
.wp-table-wrap {
  margin: 10px 0 8px;
  overflow-x: auto;
}
.wp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  border: 1px solid #21295c;
}
.wp-table th,
.wp-table td {
  padding: 9px 11px;
  text-align: center;
  border: 1px solid #21295c;
  vertical-align: middle;
  color: var(--text);
}
/* 文档表格：深藏青表头白字，行交替浅色 */
.wp-table thead th {
  background: #21295c;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  border-color: #fff;
}
.wp-table tbody tr:nth-child(odd) td {
  background: #eef1f6;
}
.wp-table tbody tr:nth-child(even) td {
  background: #fff;
}
.wp-table tbody tr:last-child td {
  border-bottom: 1px solid #21295c;
}
/* 表格标题（文档中为黑色加粗居中） */
.wp-tabc {
  margin: 6px 0 22px !important;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  text-align: center !important;
}
/* 图片 */
.wp-fig {
  margin: 18px 0 6px;
  text-align: center;
}
.wp-fig img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border: 0;
  cursor: zoom-in;
}
/* 图注（文档中为黑色斜体居中） */
.wp-doc p.wp-figcap,
.wp-fig figcaption {
  margin: 8px 0 22px;
  font-size: 12.5px;
  line-height: 1.55;
  font-style: italic;
  color: var(--text);
  text-align: center;
}
/* 作者行 / 目录行（文档中为居中加粗） */
.wp-b {
  font-weight: 700;
  color: var(--text);
}
.wp-doc p.toc {
  margin-bottom: 4px;
}
.wp-doc p.toc:last-of-type {
  margin-bottom: 24px;
}
/* 重绘 SVG 图表（图 2~6）：配色随主题 */
.wp-fig svg {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* 多图并排（图 7&8、图 15）：文档中两图居中并排、保持原始比例 */
.wp-pair {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  margin: 18px 0 6px;
}
.wp-pair .wp-fig {
  margin: 0;
  flex: 0 1 auto;
}
.wp-pair .wp-fig img {
  max-width: 100%;
}
@media (max-width: 680px) {
  .wp-pair {
    grid-template-columns: 1fr;
  }
}
.ps-ph {
  height: 240px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: radial-gradient(
    circle at 50% 40%,
    rgba(79, 149, 232, 0.12),
    transparent 70%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-ph-icon {
  font-size: 72px;
  filter: drop-shadow(0 10px 24px rgba(79, 149, 232, 0.25));
}
.ps-desc {
  color: var(--text-dim);
  font-size: 15px;
  margin: 24px 0 4px;
}
.ps-features {
  list-style: none;
  margin-top: 16px;
  /* 流式两栏填充：条目按列顺序紧密排列，消除 grid 等高行带来的行间空隙
     （grid 两列时每行高度取较高一项，短项下方会留出空白） */
  columns: 2;
  column-gap: 26px;
}
.ps-features li {
  position: relative;
  padding-left: 26px;
  padding-bottom: 10px;
  break-inside: avoid;
  color: var(--text-dim);
  font-size: 14.5px;
  break-inside: avoid; /* 避免单条内容被拦腰截断到另一列 */
}
.ps-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

/* ---------- 技术优势 ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tech-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: 0.3s;
}
.tech-item:hover {
  border-color: rgba(79, 123, 255, 0.45);
  transform: translateY(-4px);
}
.tech-item .ti-no {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.7;
}
.tech-item h4 {
  font-size: 18px;
  margin: 10px 0 10px;
}
.tech-item p {
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ---------- 解决方案 ---------- */
.solutions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.sol-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.sol-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.sol-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 149, 232, 0.4);
  box-shadow: var(--shadow);
}
.sol-card:hover::before {
  transform: scaleX(1);
}
.sol-icon {
  font-size: 30px;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(127, 192, 232, 0.12);
  border: 1px solid var(--border);
}
.sol-body {
  flex: 1;
}
.sol-tag {
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: inline-block;
}
.sol-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.sol-card p {
  color: var(--text-dim);
  font-size: 14.5px;
}
.sol-more {
  position: absolute;
  right: 22px;
  bottom: 20px;
  font-size: 20px;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: 0.25s;
}
.sol-card:hover .sol-more {
  opacity: 1;
  transform: translateX(0);
}

/* 解决方案详情视图（与产品展示一致：左分类导航 + 右详情） */
.solutions[hidden] {
  display: none !important;
}
.solutions-showcase {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
  scroll-margin-top: calc(var(--nav-h) + 8px);
}
.solutions-showcase[hidden] {
  display: none !important;
}
.sol-gallery {
  grid-template-columns: 1fr;
}
.sol-shot img {
  height: auto;
  max-height: 460px;
  object-fit: contain;
}

/* ---------- 案例 ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.3s;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(79, 149, 232, 0.4);
}
.case-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  position: relative;
  overflow: hidden;
}
.case-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
}
.case-body {
  padding: 22px;
}
.case-body .case-cat {
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 1px;
}
.case-body h4 {
  font-size: 17px;
  margin: 8px 0 8px;
}
.case-body p {
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------- 数据条 ---------- */
.metrics {
  padding: 70px 0;
  background: linear-gradient(120deg, var(--primary-2), var(--accent));
}
.metrics-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.metric strong {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: #fff;
}
.metric span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  letter-spacing: 1px;
}

/* ---------- 关于我们 ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  margin: 0 0 16px;
}
.about-text p {
  color: var(--text-dim);
  margin-bottom: 14px;
}
.about-list {
  list-style: none;
  margin-top: 18px;
  /* 两列网格：标签列宽取三条中的最大值，破折号起点因此对齐；
     li 用 display:contents 让两个 span 直接参与网格、跨行共享列宽 */
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
}
.about-list li {
  color: var(--text-dim);
  font-size: 15px;
  display: contents;
}
.about-list li > span:first-child {
  white-space: nowrap;
}
.about-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.about-card-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.about-card-row:last-child {
  border-bottom: 0;
}
.about-card-row span {
  color: var(--text-dim);
}
.about-card-row strong {
  color: var(--text);
}

/* ---------- 联系我们 ---------- */
/* 咨询提交表单已移除：联系信息改为居中单栏呈现 */
.contact-inner {
  display: block;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact-info h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 12px 0 14px;
}
.contact-info p {
  color: var(--text-dim);
  margin-bottom: 22px;
}
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-list li {
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.contact-list .ic {
  font-size: 18px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #050e1b;
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  /* 固定列宽（按中英文较宽者取值）→ 切换语言时列位置不变；品牌列吃掉剩余宽度 */
  grid-template-columns: minmax(120px, 1fr) 300px 260px 165px;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-prod-list a,
.footer-sol-list a {
  white-space: nowrap;
}
.footer-desc {
  color: var(--text-mute);
  font-size: 14px;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--text);
}
.footer-col a.footer-head {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.footer-col a.footer-head:hover {
  color: var(--primary);
}
.footer-col a {
  display: block;
  color: var(--text-mute);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}

/* Cases 4-column layout */
.cases {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- 动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.show {
  opacity: 1;
  transform: none;
}

/* 窄于 1020px 改为两列（每列足以容纳最长条目），仍保持中英一致 */
@media (max-width: 1020px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* 手机上允许换行，避免窄列溢出 */
@media (max-width: 680px) {
  .footer-prod-list a,
  .footer-sol-list a {
    white-space: normal;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .hero-stats {
    justify-content: center;
  }
  .product-showcase {
    grid-template-columns: 1fr;
  }
  .solutions-showcase {
    grid-template-columns: 1fr;
  }
  .ps-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    max-height: none;
    overflow: visible;
  }
  .ps-back {
    width: 100%;
    justify-content: center;
  }
  .ps-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .ps-nav-title {
    width: 100%;
    margin-left: 2px;
  }
  .ps-nav-item {
    border-left: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    white-space: nowrap; /* 胶囊 chip 内文字不折行，chip 之间可换行 */
    max-width: 100%;
  }
  .ps-nav-item.active {
    border-color: var(--primary);
  }
  /* 解决方案 chip 内不显示副标题；产品分类的描述行保留 */
  .ps-nav-item .ps-nav-sub {
    display: none;
  }
  /* ===== 产品中心两级菜单（移动端）：分类描述行 + 可点 chip ===== */
  .ps-nav-list.ps-nav-products {
    display: block;
  }
  .ps-nav-cat {
    width: 100%;
    padding: 12px 4px 6px;
    border-left: 0;
  }
  .ps-nav-cat.active {
    border-left: 0;
  }
  /* 移动端白皮书条目：与其它 chip 一致，只保留分隔线 */
  .ps-nav-item.wp {
    margin-top: 0;
    padding-top: 8px;
    border-top: 0;
    border-radius: 999px;
  }
  .ps-nav-children {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
  }
  .ps-nav-child {
    border: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    max-width: 100%;
  }
  .ps-nav-child.active {
    border-color: var(--primary);
  }
  .ps-detail {
    padding: 26px;
    min-height: 0;
  }
  .ps-detail h3 {
    font-size: clamp(17px, 4.6vw, 22px);
    white-space: nowrap; /* 小屏详情标题不换行，超长以省略号收尾 */
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tech-grid,
  .cases {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  /* 仅手机上允许方案名换行，避免窄列溢出 */
  .footer-sol-list a {
    white-space: normal;
  }
  .nav-inner {
    display: flex;
    justify-content: space-between;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    width: 70%;
    max-width: 300px;
    height: calc(100vh - 72px);
    background: rgba(8, 14, 32, 0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 24px;
    margin-right: 0;
    transform: translateX(100%);
    transition: transform 0.3s;
    border-left: 1px solid var(--border);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    width: 100%;
    padding: 12px 0;
  }
  /* 移动端抽屉：下拉菜单平铺展开，不做悬浮层 */
  .nav-dropdown {
    width: 100%;
  }
  .nav-drop-trigger {
    width: 100%;
    padding: 12px 0;
    font-size: 17px;
    justify-content: space-between;
  }
  .nav-drop-trigger::after {
    display: none;
  }
  .nav-drop-menu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 6px 14px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-dropdown:hover .nav-drop-menu,
  .nav-dropdown.open .nav-drop-menu {
    display: flex;
    transform: none;
  }
  .nav-links .nav-drop-menu a {
    padding: 10px 0;
  }
  .nav-drop-desc {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .tech-grid,
  .cases,
  .solutions,
  .solutions-showcase {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .ps-gallery {
    grid-template-columns: 1fr;
  }
  .ps-features {
    grid-template-columns: 1fr;
  }
  .metrics-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .hero-stats {
    gap: 22px;
    flex-wrap: wrap;
  }
  .section {
    padding: 80px 0;
  }
}

/* ---------- 浅色主题 ---------- */
html[data-theme="light"] {
  /* 除首页 Hero 外，全站背景基调以白色为准；Hero 单独保留蓝色渐变 */
  --bg: #ffffff;
  --bg-alt: #ecf3fa;
  --surface: #ffffff;
  --surface-2: #f5f9fd;
  --primary: #2e66b1;
  --primary-2: #1b59b5;
  --accent: #4f95e8;
  --text: #0d1b2e;
  --text-dim: #3f5677;
  --text-mute: #6c82a6;
  --border: rgba(46, 102, 177, 0.16);
  --shadow: 0 18px 50px rgba(28, 70, 130, 0.16);
}
/* 首页 Hero 在深浅两套主题下均保持深蓝夜景（canvas 网络动画 + 轨道环），
   底色、叠层与文字颜色由上方 Hero 基础规则统一控制，此处不再覆写 */
/* 亮色主题下导航栏底色与分区底色一致 */
[data-theme="light"] .navbar {
  background: #f2f7fc;
}
[data-theme="light"] .navbar.scrolled {
  background: #f2f7fc;
}
[data-theme="light"] .footer {
  background: #f2f7fc;
}
[data-theme="light"] .logo-text {
  color: var(--text);
}
[data-theme="light"] .btn-ghost,
[data-theme="light"] .lang-toggle,
[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .pc-icon {
  background: rgba(48, 104, 179, 0.08);
}
[data-theme="light"] .product-card:hover {
  border-color: rgba(48, 104, 179, 0.5);
}
[data-theme="light"] .sol-icon {
  background: rgba(48, 104, 179, 0.1);
}
[data-theme="light"] .sol-card:hover,
[data-theme="light"] .case-card:hover {
  border-color: rgba(48, 104, 179, 0.5);
}
[data-theme="light"] .tech-item:hover {
  border-color: rgba(48, 104, 179, 0.5);
}
[data-theme="light"] .form-tip.err {
  color: #d92d20;
}
[data-theme="light"] .form-tip.ok {
  color: #067647;
}
/* 卡片玻璃质感（浅色主题）：顶部高光 + 柔和投影 + 极淡渐变，避免大块纯色平板 */
[data-theme="light"] .product-card,
[data-theme="light"] .sol-card,
[data-theme="light"] .tech-item,
[data-theme="light"] .case-card,
[data-theme="light"] .about-card,
[data-theme="light"] .ps-nav,
[data-theme="light"] .ps-detail {
  background: linear-gradient(
    160deg,
    #f3f8fe 0%,
    var(--surface) 40%,
    var(--surface-2) 100%
  );
  border-color: rgba(46, 102, 177, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 16px 40px rgba(28, 70, 130, 0.14);
}
[data-theme="light"] .product-card:hover,
[data-theme="light"] .sol-card:hover,
[data-theme="light"] .case-card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    var(--shadow);
}

@media (max-width: 680px) {
  [data-theme="light"] .nav-links {
    background: rgba(240, 244, 250, 0.98);
  }
}

/* Hero 深蓝夜景覆写：浅色主题下 Hero 内的幽灵按钮 / 滚动提示仍以深色背景为准 */
[data-theme="light"] .hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #eaf4ff;
}
[data-theme="light"] .hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(155, 232, 255, 0.55);
}
