@charset "utf-8";
/* ==========================================================================
   企业门户 · 主样式表
   蓝紫科技风设计系统
   --------------------------------------------------------------------------
   【改主题只需改 :root 里的变量】
   全站按钮、链接、标签、图标、强调色都从下面这几个变量派生，
   不要在任何组件里写死 #3B5BFF 之类的颜色值。
   ========================================================================== */

:root {
  /* ---------- 品牌主色（改这三个就能换主题） ---------- */
  --color-primary: #3B5BFF;
  --color-secondary: #7A5CFF;
  --color-accent: #00D4FF;

  /* ---------- 由主色派生的深浅/透明变体 ----------
     （先给一份固定值兜底，支持 color-mix 的浏览器会自动用下面那条，
       这样改了 --color-primary 后连透明底色也会跟着变） */
  --color-primary-dark: #2B48E0;
  --color-primary-dark: color-mix(in srgb, var(--color-primary) 82%, #000);

  --color-primary-tint: rgba(59, 91, 255, .08);
  --color-primary-tint: color-mix(in srgb, var(--color-primary) 8%, transparent);

  --color-primary-tint-2: rgba(59, 91, 255, .14);
  --color-primary-tint-2: color-mix(in srgb, var(--color-primary) 14%, transparent);

  --color-primary-line: rgba(59, 91, 255, .24);
  --color-primary-line: color-mix(in srgb, var(--color-primary) 24%, transparent);

  --color-primary-shadow: rgba(59, 91, 255, .28);
  --color-primary-shadow: color-mix(in srgb, var(--color-primary) 28%, transparent);

  /* ---------- 中性色 ---------- */
  --color-text: #1B2233;
  --color-text-2: #4A5470;
  --color-text-3: #8A93A8;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F5F7FF;
  --color-bg-soft-2: #EEF1FB;
  --color-border: #E5E9F5;
  --color-border-strong: #D3DAEE;
  --color-white: #FFFFFF;

  /* ---------- 语义色 ---------- */
  --color-success: #17B26A;
  --color-warning: #E5820B;
  --color-danger: #E5484D;
  --color-danger-tint: #FDECEC;

  /* ---------- 排版 ---------- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 17px;
  --fs-lg: 20px;
  --fs-xl: 26px;
  --fs-2xl: 34px;
  --fs-3xl: 44px;

  /* ---------- 间距 ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 88px;

  /* ---------- 圆角 ---------- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* ---------- 阴影 ---------- */
  --shadow-sm: 0 1px 2px rgba(27, 34, 51, .05);
  --shadow-md: 0 4px 16px rgba(27, 34, 51, .07);
  --shadow-lg: 0 12px 32px rgba(27, 34, 51, .10);
  --shadow-brand: 0 8px 24px var(--color-primary-shadow);

  /* ---------- 布局 ---------- */
  --container: 1200px;
  --header-h: 68px;

  /* ---------- 主渐变（Banner / 强调块统一用） ---------- */
  --gradient-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-brand-soft: linear-gradient(135deg,
      color-mix(in srgb, var(--color-primary) 12%, #fff) 0%,
      color-mix(in srgb, var(--color-secondary) 12%, #fff) 100%);
}

/* 兜底：不支持 color-mix 时用近似渐变 */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  :root {
    --gradient-brand-soft: linear-gradient(135deg, #EEF1FF 0%, #F3EFFF 100%);
  }
}

/* ==========================================================================
   1. Reset & 基础
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  /* 兜底：任何意外的超宽元素都不会撑出横向滚动条 */
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  word-break: break-word;
}

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: var(--color-primary-dark); }

img,
svg { max-width: 100%; }
img { display: block; }

/* 图标兜底尺寸：App.icon() 生成的 SVG 不带 width/height 属性，全靠 CSS 定尺寸。
   若所在容器没有尺寸规则（如后台 .admin-note 提示条、侧边菜单按钮），SVG 会撑满容器变成巨图。
   这里给 .icon 一个 18px 兜底；更具体的规则（.btn .icon、.info-list .info-icon svg 等）权重更高，仍会覆盖它。 */
.icon { width: 18px; height: 18px; flex-shrink: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; font-size: inherit; cursor: pointer; }

input, textarea, select { font-family: inherit; font-size: inherit; }

/* 长英文 / URL 不撑破容器 */
.break-word {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 键盘可达性：不要裸删 outline */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   2. 布局容器
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section { padding: var(--sp-9) 0; }
.section-sm { padding: var(--sp-7) 0; }
.section-soft { background: var(--color-bg-soft); }

.section-head {
  margin-bottom: var(--sp-7);
  text-align: center;
}
/* 眉标（小标签）：全站统一 —— 13px / 600 / 字距 .06em / 胶囊底。
   放在最外层，任何区块的 .eyebrow 都得到同一套样式，避免首页 CTA 之类漏掉。 */
.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-tint);
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.5;
}
/* 区块标题：全站统一 24~32px（与页面主标题形成明确层级差） */
.section-head h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.3;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-2);
}
.section-head p {
  color: var(--color-text-2);
  max-width: 640px;
  margin: 0 auto;
}
.section-head.is-left { text-align: left; }
.section-head.is-left p { margin-left: 0; }

.section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  text-align: left;
}
.section-head.row p { margin: 0; }
.section-head.row .more { flex-shrink: 0; }

/* 网格：桌面多列 → 平板 2 列 → 手机 1 列 */
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .section { padding: var(--sp-7) 0; }
  .section-sm { padding: var(--sp-6) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .section-head { margin-bottom: var(--sp-5); }
  .section-head h2 { font-size: var(--fs-lg); }
}

/* ==========================================================================
   3. 按钮
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--color-bg-soft-2);
  color: var(--color-text);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--color-primary-shadow);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-primary:active { filter: brightness(.96); }

.btn-gradient {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-gradient:hover { color: #fff; filter: brightness(1.06); }

.btn-outline {
  background: transparent;
  border-color: var(--color-primary-line);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary-tint);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-ghost {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.btn-light:hover { color: var(--color-primary); filter: brightness(1.02); }

.btn-sm { padding: 6px 14px; font-size: var(--fs-sm); }
.btn-lg { padding: 14px 32px; font-size: var(--fs-md); }
.btn-block { display: flex; width: 100%; }

.btn-danger {
  background: var(--color-danger-tint);
  color: var(--color-danger);
  border-color: transparent;
}
.btn-danger:hover { background: var(--color-danger); color: #fff; }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

.btn .icon { width: 16px; height: 16px; flex-shrink: 0; }

/* 文字链接 + 箭头 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
}
.link-arrow::after {
  content: "";
  width: 7px; height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.link-arrow:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* ==========================================================================
   4. 顶部导航 & 页脚（由 common.js 渲染）
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;               /* flex 子元素可省略号 */
  color: var(--color-text);
  flex-shrink: 0;
}
.brand:hover { color: var(--color-text); }
/* 品牌标识：雄芯科技官方 logo 的图形部分（透明底 PNG，原始比例 176:131）。
   用变量控制高度，宽度按原比例自动，避免拉伸变形。 */
.brand-mark {
  --bm-h: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: var(--bm-h);
  width: auto;
  /* 高分辨率屏用 2 倍图，低分辨率屏仍用原图，保证边缘清晰 */
}
.brand-mark.is-sm { --bm-h: 26px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-slogan {
  font-size: var(--fs-xs);
  color: var(--color-text-3);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 只作用于顶层导航列表：用 > 限定，避免命中二级下拉菜单 <ul class="nav-dropdown-menu">
   （它是嵌套 ul，若被本规则命中，display:flex 会以更高权重覆盖 .nav-dropdown-menu 的 display:none，
     导致下拉菜单常驻显示、撑出横向滚动条） */
.site-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--color-text-2);
  font-weight: 500;
  transition: color .16s ease, background .16s ease;
}
.site-nav a:hover { color: var(--color-primary); background: var(--color-primary-tint); }
.site-nav a.is-active {
  color: #fff;
  background: var(--color-primary);
  font-weight: 600;
}
.site-nav a.is-active:hover { color: #fff; filter: brightness(1.06); }

/* ---------- 二级下拉导航（产品技术 / 服务能力） ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; padding-right: 6px; }

/* 指示箭头 */
.nav-caret {
  display: inline-block;
  width: 0; height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .18s ease;
}
.nav-dropdown:hover > .nav-dropdown-trigger .nav-caret,
.nav-dropdown.is-open > .nav-dropdown-toggle .nav-caret { transform: rotate(180deg); }

/* 移动端展开按钮：桌面端隐藏，靠悬停/聚焦展开 */
.nav-dropdown-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px; height: 36px;
  margin: 0; padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-2);
  cursor: pointer;
  border-radius: var(--radius-md);
}
.nav-dropdown-toggle:hover { color: var(--color-primary); }

/* 下拉菜单面板：默认隐藏，桌面端 hover / focus-within / 点击固定 时显示 */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 70;
  min-width: 248px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: none;
}
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu,
.nav-dropdown.is-open > .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--color-text-2);
  font-weight: 500;
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover { color: var(--color-primary); background: var(--color-primary-tint); }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; position: relative; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    padding: var(--sp-2) var(--sp-5) var(--sp-4);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 14px; border-radius: var(--radius-md); }
  .brand-slogan { display: none; }

  /* 移动端：二级菜单改为就地展开的纵向子列表，避免横向溢出 */
  .nav-dropdown { display: flex; flex-wrap: wrap; align-items: center; }
  .nav-dropdown-trigger { flex: 1 1 auto; }
  .nav-dropdown-toggle { display: inline-flex; }
  .nav-dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    flex-basis: 100%;
    min-width: 0;
    margin: 2px 0 6px;
    padding: 4px 0 4px 12px;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--color-primary-line);
    border-radius: 0;
    box-shadow: none;
  }
  .nav-dropdown.is-open > .nav-dropdown-menu { display: block; }
  /* Touch focus/hover can persist after tapping: mobile visibility follows only is-open. */
  .site-nav .nav-dropdown:not(.is-open) > .nav-dropdown-menu { display: none; }
  .nav-dropdown-menu li a { white-space: normal; word-break: break-word; }
}

/* 页脚 */
.site-footer {
  margin-top: var(--sp-9);
  padding: var(--sp-8) 0 var(--sp-5);
  background: #12172B;
  color: rgba(255, 255, 255, .68);
  font-size: var(--fs-sm);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer h4 {
  margin-bottom: var(--sp-4);
  color: #fff;
  font-size: var(--fs-base);
}
.site-footer .footer-brand-name { color: #fff; font-size: var(--fs-md); font-weight: 700; }
.site-footer p { color: rgba(255, 255, 255, .6); }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer .footer-contact span { display: block; margin-bottom: 6px; word-break: break-word; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  flex-wrap: wrap;
  color: rgba(255, 255, 255, .45);
}
@media (max-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   5. Banner / 页面头图
   ========================================================================== */

.banner {
  position: relative;
  overflow: hidden;
  padding: 120px 0 110px;
  background: var(--gradient-brand);
  color: #fff;
  isolation: isolate;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/banner.svg");
  background-size: cover;
  background-position: center;
  opacity: .5;
  z-index: -2;
}
.banner::after {
  content: "";
  position: absolute;
  right: -160px; top: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 68%);
  z-index: -1;
}
.banner.has-image::before {
  background-image: var(--banner-img);
  opacity: 1;
}
.banner.has-image .banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 26, 60, .82), rgba(59, 91, 255, .58));
  z-index: -1;
}
.banner-inner { position: relative; max-width: 720px; }
.banner h1 {
  font-size: var(--fs-3xl);
  color: #fff;
  margin-bottom: var(--sp-4);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.banner .banner-sub {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, .9);
  margin-bottom: var(--sp-6);
  max-width: 620px;
}
.banner-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

@media (max-width: 768px) {
  .banner { padding: 72px 0 64px; }
  .banner h1 { font-size: var(--fs-2xl); }
  .banner .banner-sub { font-size: var(--fs-base); }
  .banner::after { display: none; }
}

/* 内页头图 */
.page-head {
  position: relative;
  overflow: hidden;
  padding: 68px 0 60px;
  background: var(--gradient-brand-soft);
  border-bottom: 1px solid var(--color-border);
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/banner.svg");
  background-size: cover;
  opacity: .35;
}
.page-head-inner { position: relative; }
.page-head h1 {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-3);
}
.page-head p { color: var(--color-text-2); max-width: 680px; }
@media (max-width: 768px) {
  .page-head { padding: 44px 0 40px; }
  .page-head h1 { font-size: var(--fs-xl); }
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: var(--sp-4) 0;
  font-size: var(--fs-sm);
  color: var(--color-text-3);
}
.breadcrumb a { color: var(--color-text-2); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { color: var(--color-border-strong); }
.breadcrumb .current {
  color: var(--color-text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   6. 卡片
   ========================================================================== */

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-line);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-soft-2);
  flex-shrink: 0;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
a.card:hover .card-media img { transform: scale(1.05); }
.card-media .media-badge {
  position: absolute;
  left: 12px; top: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(18, 23, 43, .62);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  flex: 1;
  min-width: 0;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc {
  color: var(--color-text-2);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  color: var(--color-text-3);
  font-size: var(--fs-xs);
}
.card-foot {
  margin-top: auto;
  padding-top: var(--sp-3);
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-tint);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* 图标卡（业务亮点） */
.feature-card {
  padding: var(--sp-6) var(--sp-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-line);
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--color-primary-tint);
  color: var(--color-primary);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: var(--fs-md); margin-bottom: 6px; }
.feature-card p { color: var(--color-text-2); font-size: var(--fs-sm); }

/* 数据概览条 */
.stats-bar {
  padding: var(--sp-7) 0;
  background: var(--gradient-brand);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
}
.stat-item { text-align: center; min-width: 0; }
.stat-value {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.5px;
  word-break: break-word;
}
.stat-value .unit { font-size: .55em; font-weight: 700; margin-left: 2px; }
.stat-label {
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .82);
  word-break: break-word;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-3); }
  .stat-value { font-size: var(--fs-xl); }
}

/* ==========================================================================
   7. 内容排版块
   ========================================================================== */

.prose {
  font-size: var(--fs-base);
  color: var(--color-text-2);
  line-height: 1.9;
}
.prose p {
  margin-bottom: var(--sp-4);
  text-indent: 2em;
}
.prose p:last-child { margin-bottom: 0; }

.plain-text { white-space: pre-wrap; word-break: break-word; }

/* 亮点 / 成效列表 */
.check-list { display: grid; gap: var(--sp-3); }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: var(--sp-4);
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  min-width: 0;
}
.check-list .check-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-list .check-icon svg { width: 12px; height: 12px; }
.check-list span { min-width: 0; word-break: break-word; }

/* 详情页 Hero */
.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--gradient-brand);
  color: #fff;
  padding: var(--sp-7);
}
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/banner.svg");
  background-size: cover;
  opacity: .35;
}
.detail-hero-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-6); align-items: center; }
.detail-hero h1 { color: #fff; font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.detail-hero .hero-summary { color: rgba(255, 255, 255, .9); font-size: var(--fs-md); }
.detail-hero .hero-meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.detail-hero .hero-meta span {
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .16);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.detail-hero-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, .14);
}
.detail-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .detail-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .detail-hero { padding: var(--sp-6) var(--sp-5); }
  .detail-hero h1 { font-size: var(--fs-xl); }
}

/* 详情页两栏布局 */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: start;
}
.detail-side { position: sticky; top: 88px; min-width: 0; }
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .detail-side { position: static; }
}

/* 新闻列表行 */
.news-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.news-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-line);
}
.news-item .news-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-soft-2);
}
.news-item .news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { font-size: var(--fs-md); margin-bottom: 8px; }
.news-item .news-summary {
  color: var(--color-text-2);
  font-size: var(--fs-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item .news-meta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-3);
  color: var(--color-text-3);
  font-size: var(--fs-xs);
}
@media (max-width: 768px) {
  .news-item { grid-template-columns: minmax(0, 1fr); }
  .news-item .news-media { aspect-ratio: 16 / 9; }
}

/* 上一条 / 下一条 */
.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--color-border);
}
.pn-item {
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  min-width: 0;
  transition: border-color .18s ease, background .18s ease;
}
a.pn-item:hover { border-color: var(--color-primary-line); background: var(--color-primary-tint); }
.pn-item .pn-label { display: block; font-size: var(--fs-xs); color: var(--color-text-3); margin-bottom: 4px; }
.pn-item .pn-title {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pn-item.is-disabled { opacity: .6; cursor: default; }
.pn-item.is-right { text-align: right; }
@media (max-width: 768px) {
  .prev-next { grid-template-columns: minmax(0, 1fr); }
  .pn-item.is-right { text-align: left; }
}

/* 团队成员 */
.member-card {
  padding: var(--sp-5);
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.member-avatar {
  width: 84px; height: 84px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-soft-2);
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card h4 { font-size: var(--fs-base); margin-bottom: 2px; }
.member-card .member-title {
  font-size: var(--fs-sm);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}
.member-card .member-bio { font-size: var(--fs-sm); color: var(--color-text-2); }

/* 时间轴 */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: var(--sp-6); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
}
.timeline-year {
  display: inline-block;
  margin-bottom: 4px;
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-primary);
}
.timeline-item h4 { font-size: var(--fs-base); margin-bottom: 4px; }
.timeline-item p { color: var(--color-text-2); font-size: var(--fs-sm); }

/* ==========================================================================
   8. 表单
   ========================================================================== */

.form-grid { display: grid; gap: var(--sp-5); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 768px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
}
.field .req { color: var(--color-danger); margin-left: 2px; }
.field .hint { font-size: var(--fs-xs); color: var(--color-text-3); }
.field .err {
  display: none;
  font-size: var(--fs-xs);
  color: var(--color-danger);
}

.input,
textarea.input,
select.input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  font-size: var(--fs-base);
  line-height: 1.6;
  transition: border-color .16s ease, box-shadow .16s ease;
  min-width: 0;
}
.input::placeholder { color: var(--color-text-3); }
.input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-tint-2);
}
textarea.input { resize: vertical; min-height: 96px; }

.field.has-error .input {
  border-color: var(--color-danger);
  background: var(--color-danger-tint);
}
.field.has-error .input:focus { box-shadow: 0 0 0 3px rgba(229, 72, 77, .18); }
.field.has-error .err { display: block; }

/* 蜜罐字段：给正常用户彻底隐藏，但保留在 DOM 里（CSS 隐藏而非 display:none，
   避免部分浏览器/插件直接跳过；同时用 aria-hidden + tabindex=-1 防止误填） */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-panel {
  padding: var(--sp-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) { .form-panel { padding: var(--sp-5) var(--sp-4); } }

/* 联系信息卡 */
.info-card {
  padding: var(--sp-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.info-list { display: grid; gap: var(--sp-4); }
.info-list li { display: flex; gap: var(--sp-3); min-width: 0; align-items: flex-start; }
.info-list .info-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--color-primary-tint);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-list .info-icon svg { width: 18px; height: 18px; }
.info-list .info-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.info-list .info-label {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--color-text-3);
  font-weight: 400;
}
.info-list .info-value {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  word-break: break-word;
}

/* ==========================================================================
   9. 状态：加载 / 空 / 错误 / 骨架
   ========================================================================== */

.state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  color: var(--color-text-2);
}
.state-box .state-icon { color: var(--color-text-3); }
.state-box .state-icon svg { width: 48px; height: 48px; }
.state-box .state-title { font-weight: 600; color: var(--color-text); }
.state-box .state-desc { font-size: var(--fs-sm); max-width: 420px; }
.state-box.state-inline { padding: var(--sp-6) var(--sp-4); }
.state-box.state-error .state-icon { color: var(--color-danger); }

.spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--color-primary-tint-2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: cp-spin .8s linear infinite;
}
@keyframes cp-spin { to { transform: rotate(360deg); } }

.state-loading { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); padding: var(--sp-6); color: var(--color-text-3); font-size: var(--fs-sm); }

.skeleton {
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--color-bg-soft-2) 25%, #E7EBF8 37%, var(--color-bg-soft-2) 63%);
  background-size: 400% 100%;
  animation: cp-shimmer 1.4s ease infinite;
}
@keyframes cp-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (prefers-reduced-motion: reduce) {
  .spinner, .skeleton { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   10. 分页
   ========================================================================== */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: var(--sp-7);
}
.pager button {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text-2);
  font-weight: 600;
  transition: all .16s ease;
}
.pager button:hover:not(:disabled) { border-color: var(--color-primary); color: var(--color-primary); }
.pager button.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.pager .pager-info { margin-left: var(--sp-3); color: var(--color-text-3); font-size: var(--fs-sm); }

/* ==========================================================================
   11. 筛选条
   ========================================================================== */

.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
/* hidden 属性必须真正生效：否则 .filter-bar 的 display:flex 会覆盖 [hidden] 的 display:none，
   导致无标签时仍显示一行空的「标签筛选：」 */
.filter-bar[hidden] { display: none; }
.filter-bar .filter-label { margin-right: 4px; font-size: var(--fs-sm); color: var(--color-text-3); }
.chip {
  padding: 7px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-text-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all .16s ease;
}
.chip:hover { border-color: var(--color-primary-line); color: var(--color-primary); }
.chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

/* ==========================================================================
   12. Toast 提示
   ========================================================================== */

.toast-stack {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(18, 23, 43, .92);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: cp-toast-in .22s ease;
  word-break: break-word;
}
.toast.is-success { background: var(--color-success); }
.toast.is-error { background: var(--color-danger); }
.toast.is-warn { background: var(--color-warning); }
.toast.is-out { animation: cp-toast-out .22s ease forwards; }
@keyframes cp-toast-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes cp-toast-out { to { opacity: 0; transform: translateY(-12px); } }

/* ==========================================================================
   13. 后台管理
   ========================================================================== */

.admin-body { background: var(--color-bg-soft); }

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 58px;
  padding: 0 var(--sp-5);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.admin-topbar .tb-left { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.admin-topbar .tb-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-topbar .tb-badge {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-tint);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  flex-shrink: 0;
}
.admin-topbar .tb-right { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.admin-topbar .tb-user { font-size: var(--fs-sm); color: var(--color-text-2); }

.admin-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: calc(100vh - 58px);
}
.admin-sidebar {
  padding: var(--sp-5) var(--sp-3);
  background: var(--color-white);
  border-right: 1px solid var(--color-border);
}
.admin-sidebar .side-menu { display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar .side-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-2);
  font-weight: 500;
  text-align: left;
  transition: background .16s ease, color .16s ease;
}
.admin-sidebar .side-menu button:hover { background: var(--color-bg-soft); color: var(--color-text); }
.admin-sidebar .side-menu button.is-active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}
.admin-sidebar .side-menu .side-badge {
  margin-left: auto;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--color-danger);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 18px;
}
.admin-sidebar .side-menu button.is-active .side-badge { background: rgba(255, 255, 255, .28); }

.admin-main { padding: var(--sp-6); min-width: 0; }
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.admin-panel-head h2 { font-size: var(--fs-lg); }
.admin-panel-head .head-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.admin-toolbar .input { width: auto; min-width: 200px; }
.admin-toolbar select.input { width: auto; }
.admin-toolbar .toolbar-spacer { margin-left: auto; }

.card-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* 表格 */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.admin-table th,
.admin-table td {
  padding: 12px var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.admin-table th {
  background: var(--color-bg-soft);
  font-weight: 600;
  color: var(--color-text-2);
  white-space: nowrap;
}
.admin-table tbody tr:hover { background: var(--color-bg-soft); }
.admin-table tbody tr.is-unread { background: var(--color-primary-tint); }
.admin-table tbody tr.is-unread:hover { background: var(--color-primary-tint-2); }
.admin-table td.cell-title { max-width: 320px; }
.admin-table .cell-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.admin-table .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-table .nowrap { white-space: nowrap; }

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.status-badge.published { background: rgba(23, 178, 106, .12); color: var(--color-success); }
.status-badge.draft { background: var(--color-bg-soft-2); color: var(--color-text-3); }
.status-badge.new { background: var(--color-primary-tint); color: var(--color-primary); }
.status-badge.read { background: var(--color-bg-soft-2); color: var(--color-text-3); }
.unread-dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  vertical-align: middle;
}

/* 概览卡片 */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
}
.ov-card {
  padding: var(--sp-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.ov-card .ov-label { font-size: var(--fs-sm); color: var(--color-text-2); }
.ov-card .ov-value { font-size: var(--fs-2xl); font-weight: 800; line-height: 1.2; margin: 6px 0 2px; }
.ov-card .ov-sub { font-size: var(--fs-xs); color: var(--color-text-3); }
.ov-card.is-accent { background: var(--gradient-brand); border-color: transparent; color: #fff; }
.ov-card.is-accent .ov-label, .ov-card.is-accent .ov-sub { color: rgba(255, 255, 255, .82); }
@media (max-width: 1024px) { .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .overview-grid { grid-template-columns: minmax(0, 1fr); } }

.admin-note {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--color-primary-line);
  border-radius: var(--radius-md);
  background: var(--color-primary-tint);
  font-size: var(--fs-sm);
  color: var(--color-text-2);
  min-width: 0;
}
.admin-note.is-warn {
  border-color: rgba(229, 130, 11, .35);
  background: rgba(229, 130, 11, .08);
}

/* 弹层 / 抽屉 */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  background: rgba(18, 23, 43, .45);
  backdrop-filter: blur(2px);
}
.overlay.is-open { display: block; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 160;
  display: flex;
  flex-direction: column;
  width: 560px;
  max-width: 100vw;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .26s ease;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.drawer-head h3 { font-size: var(--fs-md); }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-5);
}
.drawer-foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  flex-shrink: 0;
}
.icon-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-3);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--color-bg-soft-2); color: var(--color-text); }

/* 模态框 */
.modal {
  position: fixed;
  top: 50%; left: 50%;
  z-index: 170;
  display: none;
  width: 440px;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, -50%);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal.is-open { display: block; }
.modal-head { padding: var(--sp-5) var(--sp-5) 0; }
.modal-head h3 { font-size: var(--fs-md); }
.modal-body { padding: var(--sp-4) var(--sp-5); color: var(--color-text-2); font-size: var(--fs-sm); word-break: break-word; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-bg-soft);
}
@media (max-width: 768px) {
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }
}

/* 动态列表编辑器（站点设置里的亮点/统计/团队/历程） */
.list-editor { display: grid; gap: var(--sp-3); }
.list-editor-item {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
}
.list-editor-item .le-row { display: grid; gap: var(--sp-3); grid-template-columns: repeat(var(--le-cols, 3), minmax(0, 1fr)); }
.list-editor-item .le-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--color-text-3);
}
@media (max-width: 768px) {
  .list-editor-item .le-row { grid-template-columns: minmax(0, 1fr); }
}

.admin-group {
  margin-bottom: var(--sp-5);
  padding: var(--sp-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.admin-group > h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-base);
}
.admin-group > h3 .group-index {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--fs-xs);
  flex-shrink: 0;
}

.admin-save-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.admin-save-bar .save-hint { font-size: var(--fs-sm); color: var(--color-text-3); }

/* 登录页 */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6) var(--sp-5);
  background: var(--gradient-brand);
  position: relative;
  overflow: hidden;
}
.login-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/banner.svg");
  background-size: cover;
  opacity: .45;
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: var(--sp-7);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.login-card .login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-5); }
.login-card .login-brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.login-card .login-brand-name { font-size: var(--fs-md); font-weight: 700; }
.login-card h1 { font-size: var(--fs-xl); margin-bottom: 6px; }
.login-card .login-sub { color: var(--color-text-3); font-size: var(--fs-sm); margin-bottom: var(--sp-6); }
.login-card .login-tip {
  margin-top: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  color: var(--color-text-3);
  font-size: var(--fs-xs);
  line-height: 1.7;
  word-break: break-word;
}
@media (max-width: 768px) { .login-card { padding: var(--sp-6) var(--sp-5); } }

.alert {
  display: none;
  gap: var(--sp-2);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--color-danger-tint);
  color: var(--color-danger);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
  word-break: break-word;
}
.alert.is-show { display: flex; }
.alert.is-ok {
  background: rgba(23, 178, 106, .10);
  color: var(--color-success);
}

/* 移动端：后台侧栏变横向滚动条 */
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    padding: var(--sp-3) var(--sp-3);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-sidebar .side-menu { flex-direction: row; gap: var(--sp-2); }
  .admin-sidebar .side-menu button { width: auto; white-space: nowrap; }
  .admin-main { padding: var(--sp-4); }
  .admin-topbar { padding: 0 var(--sp-4); }
  .admin-topbar .tb-user { display: none; }
  .drawer { width: 100vw; }
}

/* ==========================================================================
   14. 404
   ========================================================================== */

.error-page {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--sp-5);
}
.error-code {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 768px) { .error-code { font-size: 84px; } }
.error-page p { color: var(--color-text-2); max-width: 460px; }

/* ==========================================================================
   15. 工具类
   ========================================================================== */

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-2); }
.text-small { font-size: var(--fs-sm); }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.hidden { display: none !important; }
.min-w-0 { min-width: 0; }
.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ==========================================================================
   16. 服务能力卡片图标徽标（追加，不改动以上任何规则）
   ==========================================================================
   绝对定位在 .card-media（已是 position:relative）内部，不进文档流，
   因此不影响 .grid / .card / .card-media / .card-body 的任何既有度量。 */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(27, 34, 51, .12);
}
.card-badge .icon { width: 22px; height: 22px; }

/* 服务能力详情 · 待补充占位条目的弱化样式（与正式要点区分） */
.check-list li.is-placeholder { background: transparent; border-style: dashed; }
.check-list li.is-placeholder .check-icon { background: var(--color-text-3); }
.check-list li.is-placeholder > span:not(.check-icon) { color: var(--color-text-3); }

/* 服务能力详情 · 章节标题前的装饰锚点（与 h2 基线对齐，右侧留 8px） */
.sec-head { display: flex; align-items: center; gap: 8px; }
.sec-head h2 { margin-bottom: 0; }
.sec-mark { flex-shrink: 0; width: 40px; height: 8px; }

/* 移动端：卡片图标徽标缩小 */
@media (max-width: 768px) {
  .card-badge { width: 32px; height: 32px; }
  .card-badge .icon { width: 18px; height: 18px; }
}

/* ==========================================================================
   追加块 · 产品中心：导航浮层（mega menu）+ 产品中心页两栏布局
   --------------------------------------------------------------------------
   1. 只追加、不改动前面任何既有规则
   2. 颜色/间距/圆角全部取自 :root 变量，不写死色值
   3. .nav-mega-* 由 common.js 的 headerHtml() / PRODUCT_CATALOG 输出
   4. .pc-*     由产品中心页（products.html）输出，class 名即对客接口
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 导航浮层 .nav-mega（桌面端 ≥769px）
   --------------------------------------------------------------------------
   定位说明：
   · .nav-dropdown 默认 position:relative，宽面板会被钉在导航项上导致右侧溢出；
     这里把 .nav-mega-wrap 改回 static，让浮层的包含块上移到 .site-header
     （position:sticky，属于定位元素，宽度 = 整屏），浮层即可整块居中摆放。
   · 同时把 .site-nav / .site-nav > ul / .nav-mega-wrap 纵向拉满头部高度，
     使浮层顶边（top:100%，即头部下沿）与导航项底边严丝合缝，
     鼠标从导航项移入面板时不会经过「空隙」导致面板收起。
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
  .site-nav { align-self: stretch; }
  .site-nav > ul { height: 100%; }
  .nav-mega-wrap {
    position: static;
    align-self: stretch;
    display: flex;
    align-items: center;
  }
  /* 悬停时箭头翻转（既有规则挂的是 .nav-dropdown-trigger，箭头实际在按钮里） */
  .nav-mega-wrap:hover > .nav-dropdown-toggle .nav-caret { transform: rotate(180deg); }
  /* 悬浮态下导航项保持高亮（鼠标移入面板后 a:hover 不再命中，改由祖先 :hover 兜住）。
     当前页本就带 .is-active，其权重更高，不会被这条覆盖成浅底。 */
  .nav-mega-wrap:hover > .nav-dropdown-trigger {
    color: var(--color-primary);
    background: var(--color-primary-tint);
  }

  .nav-mega {
    /* 水平：与 .container 内容区左对齐；窄屏回退到距视口 24px。
       宽度 = min(1180, 视口 - 48)，任何视口宽度都不会产生横向滚动条 */
    position: absolute;
    top: 100%;
    left: max(var(--sp-5), calc((100vw - var(--container)) / 2 + var(--sp-5)));
    right: auto;
    width: min(1180px, calc(100vw - 2 * var(--sp-5)));
    min-width: 0;
    max-width: none;
    margin: 0;                       /* 不用 margin 制造视觉间距，避免 hover 断档 */
    padding: var(--sp-5);
    display: none;                   /* 默认隐藏，由下面三条规则展开 */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--sp-5);
    max-height: 70vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
  /* 与 .nav-dropdown:hover > .nav-dropdown-menu 同权重(0,3,0)，靠书写顺序取胜 */
  .nav-mega-wrap:hover > .nav-mega,
  .nav-mega-wrap:focus-within > .nav-mega,
  .nav-mega-wrap.is-open > .nav-mega { display: grid; }

  /* 1024 以下五列太窄，降为三列（大类仍全部展示，只影响分栏） */
  @media (max-width: 1024px) {
    .nav-mega { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
}

/* ---------- 浮层内部：列 / 标题 / 二级小标题 / 链接 ---------- */
.nav-mega-col { min-width: 0; }                 /* grid 子项可省略、可换行 */
.nav-mega-list,
.nav-mega-sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-mega .nav-mega-title {
  display: block;
  padding: 0 0 10px;
  margin: 0 0 10px;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-mega .nav-mega-title:hover {
  color: var(--color-primary-dark);
  background: transparent;
  text-decoration: underline;
}
.nav-mega .nav-mega-sub {
  display: block;
  margin: 12px 0 2px;
  padding: 0 0 0 10px;
  border-left: 2px solid var(--color-primary-line);
  color: var(--color-text-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.6;
}
.nav-mega .nav-mega-link {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  color: var(--color-text-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.6;
  white-space: normal;               /* 列窄，长产品名换行而不是被裁切 */
  word-break: break-word;
  transition: color .16s ease, background .16s ease;
}
.nav-mega .nav-mega-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-tint);
}
/* 待定项：弱化显示（灰色 + 虚线下划线），仍可点击进页面看「内容待补充」 */
.nav-mega .nav-mega-link.is-pending {
  color: var(--color-text-3);
  font-style: italic;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.nav-mega .nav-mega-link.is-pending:hover {
  color: var(--color-text-2);
  background: var(--color-bg-soft);
}

/* 移动端（≤768px）：沿用既有 .nav-dropdown-menu 的纵向就地折叠样式，
   只微调内边距，不覆盖定位与 display 规则 */
@media (max-width: 768px) {
  .nav-mega { padding: 4px 0 4px 12px; }
  .nav-mega .nav-mega-title { padding: 6px 10px; margin-bottom: 4px; }
  .nav-mega .nav-mega-link { padding: 8px 10px; }
}

/* --------------------------------------------------------------------------
   2. 产品中心页 .pc-*（左侧可折叠分类列表 + 右侧内容区）
   -------------------------------------------------------------------------- */
.pc-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}
@media (max-width: 1024px) {
  .pc-layout { grid-template-columns: 260px minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .pc-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 左侧：分类列表卡片 ---------- */
.pc-side {
  margin: 0;
  padding: var(--sp-2);
  list-style: none;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.pc-cat { margin: 0; }
/* 左侧列表的外层 <ul class="pc-cat-list">（products.html 实际使用此名）：
   清掉浏览器默认的 40px padding 与项目符号 */
.pc-cat-list { margin: 0; padding: 0; list-style: none; }

/* 大类标题按钮：整行可点 */
.pc-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color .16s ease, background .16s ease;
}
.pc-cat-head:hover { color: var(--color-primary); background: var(--color-bg-soft); }
.pc-cat-head.is-active { color: var(--color-primary); background: var(--color-primary-tint); }
.pc-cat-head:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* 三角箭头：纯 CSS 三角形，收起→展开 旋转 90° */
.pc-cat-caret {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid currentColor;
  transform: rotate(0deg);
  transition: transform .18s ease;
}
.pc-cat.is-open .pc-cat-caret { transform: rotate(90deg); }

/* 二级列表：默认收起 */
.pc-cat-panel {
  display: none;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
}
.pc-cat.is-open .pc-cat-panel { display: block; }

/* 二级项 */
.pc-sub-item {
  display: block;
  padding: 10px 14px 10px 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
  word-break: break-word;
  transition: color .16s ease, background .16s ease;
}
.pc-sub-item:hover { color: var(--color-primary); background: var(--color-bg-soft); }
.pc-sub-item.is-active {
  color: var(--color-primary);
  background: var(--color-primary-tint);
  font-weight: 600;
}
/* 待定项：弱化 */
.pc-sub-item.is-pending { color: var(--color-text-3); font-style: italic; }
.pc-sub-item.is-pending:hover { color: var(--color-text-3); background: var(--color-bg-soft); }

/* ---------- 右侧：内容区 ---------- */
.pc-main { min-width: 0; }
.pc-head { margin-bottom: var(--sp-5); }
.pc-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.35;
}
.pc-desc {
  margin: var(--sp-2) 0 0;
  color: var(--color-text-2);
  font-size: var(--fs-sm);
}
.pc-count {
  margin-top: var(--sp-2);
  color: var(--color-text-3);
  font-size: var(--fs-sm);
}
/* 卡片网格：默认直接复用全局 .grid.grid-3，这里只补上间距 */
.pc-grid { margin-top: var(--sp-5); }
/* 分页：内部复用既有 .pager 组件，这里只补外边距与居中 */
.pc-pager {
  margin-top: var(--sp-6);
  display: flex;
  justify-content: center;
}
.pc-pager .pager { flex-wrap: wrap; justify-content: center; }
/* 空状态：内部复用 App.emptyHtml() 的 .state-box */
.pc-empty { padding: var(--sp-6) 0; }

@media (max-width: 768px) {
  .pc-cat-head { min-height: 46px; }
}

/* ==========================================================================
   第四轮 · 顶栏导航 769~940px 折行修复（响应式瘦身，方案 A 加强版）
   --------------------------------------------------------------------------
   现象：7 个菜单项在 769~930px 折成两行，940px 起才恢复单行。
   根因是两条叠加：
   1) .site-nav a 没有 white-space:nowrap，空间不足时菜单项内部文字先折行，
      列表再跟着换行；
   2) 汉堡菜单的断点只到 ≤768px，769~930 这段既没有汉堡、又挤不下 7 项。

   实测（改前，索引页 769/800/850/900/930）：
     导航单行需要 634px（7 项合计 586px + 6×8px 间距）
     容器内容宽 - 品牌 222px - 左右间距 16px 后的可用宽度：
       769 → 483（缺 151px）｜800 → 514（缺 120）｜850 → 564（缺 70）
       900 → 614（缺 20）  ｜930 → 644（够）
   所以只加 nowrap 会直接溢出/被裁，比折行更糟 —— 必须同时腾出空间。

   做法（只在 769~940 这段生效，不动 ≤768 的汉堡、也不动 ≥941 的常规排布）：
   1) 隐藏品牌标语（与 ≤768px 已有的行为一致）：品牌区 222px → 124px，省 98px
   2) 菜单项左右内边距 14px → 10px（省 56px）、字号 15px → 14px（省约 26px）
   3) 列表间距 8px → 4px（省 24px）
   结果：导航 634px → 528px；769px 下可用 581px，余量 53px。
   4) 兜底：导航优先不压缩（flex-shrink:0），品牌名过长时让它自己省略号，
      避免「公司名一长就把导航挤溢出」。
   ========================================================================== */
@media (min-width: 769px) and (max-width: 940px) {
  /* 1. 品牌区瘦身：标语是装饰性副文本，窄屏本来就不显示（≤768px 已是如此） */
  .brand-slogan { display: none; }

  /* 2. 品牌名过长时先牺牲品牌区，保证导航完整（.brand-name 本身已有省略号） */
  .brand { flex-shrink: 1; min-width: 0; }
  .site-nav { flex-shrink: 0; }

  /* 3. 导航瘦身并强制单行（已实测余量 53px，不会溢出） */
  .site-nav > ul { gap: 4px; }
  .site-nav a {
    padding: 8px 10px;
    font-size: 14px;         /* 15 → 14：与站内已有的 14px 用法一致 */
    white-space: nowrap;
  }
}

/* Compact product navigation, October 2026. */
.nav-mega-columns{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;min-height:0;overflow:auto}
.nav-mega-footer{border-top:1px solid var(--color-border);display:flex;justify-content:flex-end;padding-top:10px}
.nav-mega-footer a{font-weight:700;color:var(--color-primary)}
.nav-mega .nav-mega-title{font-size:18px;font-weight:750;color:#233e75;white-space:normal;min-height:48px;margin:0 0 8px;line-height:24px}
.nav-mega .nav-mega-sub{font-size:15px;line-height:22px;margin:8px 0 0;padding:0 8px;border-radius:0;white-space:normal;color:#586b89}
.nav-mega .nav-mega-link{height:48px;display:flex;align-items:center;padding:2px 10px;font-size:15px;line-height:22px;white-space:normal}
@media(min-width:769px){
 .header-inner{justify-content:flex-start;gap:clamp(28px,7vw,110px)}
 .site-nav{margin-left:auto;margin-right:clamp(0px,3vw,48px)}
 .nav-mega{width:min(1080px,calc(100vw - 48px));height:420px;max-height:calc(100dvh - var(--header-h) - 24px);padding:20px 28px 12px;overflow:hidden;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:12px}
 .nav-mega-wrap:hover > .nav-mega,.nav-mega-wrap:focus-within > .nav-mega,.nav-mega-wrap.is-open > .nav-mega{display:grid}
}
@media(max-width:1050px) and (min-width:769px){.header-inner{gap:16px}.site-nav{margin-right:0}.nav-mega-columns{gap:18px}}
@media(max-width:768px){.nav-mega-columns{grid-template-columns:1fr;overflow:visible}.nav-mega-footer{justify-content:flex-start}}

/* 全站共用头部尺寸与定位，避免首页与内页导航跳动。 */
.site-header .header-inner { max-width: 1248px; }
@media (min-width: 1051px) {
  .site-header .header-inner { display: flex; justify-content: flex-start; gap: clamp(48px, 6vw, 80px); }
  .site-header .site-nav { flex: 1; min-width: 0; margin: 0; }
  .site-header .site-nav > ul { justify-content: center; gap: clamp(20px, 2.2vw, 32px); }
}
@media (min-width: 769px) and (max-width: 1050px) {
  .site-header .header-inner { justify-content: space-between; gap: 24px; }
  .site-header .site-nav { margin: 0; }
}
@media (min-width: 769px) {
  .site-nav > ul > li > a { font-weight: 600; white-space: nowrap; }
}

/* 共用精简页脚：品牌、产品、新闻、联系信息从左到右排列。 */
body .site-footer.footer-compact { padding: 30px 0 16px; margin-top: 0; }
body .site-footer.footer-compact>.container{max-width:1280px;padding-inline:32px}
@media(min-width:1200px){body .site-footer.footer-compact>.container{position:relative;left:40px;width:calc(100% - 80px)}}
body .site-footer.footer-compact .footer-grid { display:grid;grid-template-columns:minmax(240px,1.1fr) minmax(185px,.9fr) minmax(120px,.65fr) minmax(300px,1.35fr);gap:40px;padding-bottom:24px;align-items:start; }
body .site-footer.footer-compact h4,body .site-footer.footer-compact .footer-brand-name { display:flex;align-items:center;min-height:42px;font-size:17px;line-height:24px;font-weight:650;margin:0 0 12px;color:#fff; }
body .site-footer.footer-compact h4 a{color:inherit}
body .site-footer.footer-compact h4 a:hover{color:var(--color-accent)}
body .site-footer.footer-compact .footer-company,body .site-footer.footer-compact .footer-section-entry { font-size:13px;line-height:22px;margin:0; }
body .site-footer.footer-compact .footer-contact { font-size:13px;line-height:22px; }
body .site-footer.footer-compact .footer-contact span { display:block;margin:0 0 2px;overflow-wrap:anywhere; }
body .site-footer.footer-compact .footer-bottom { padding-top:12px;gap:8px 20px;font-size:12px;line-height:20px; }
@media(max-width:1050px){body .site-footer.footer-compact .footer-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px 48px}}
@media(max-width:520px){body .site-footer.footer-compact>.container{padding-inline:24px}body .site-footer.footer-compact .footer-grid{grid-template-columns:minmax(0,1fr);gap:22px}body .site-footer.footer-compact .footer-bottom{align-items:flex-start}}
body .site-footer.footer-compact .footer-grid>div{min-width:0}
body .site-footer.footer-compact .footer-brand-name{display:flex;align-items:center;gap:12px;color:#fff;font-size:19px}
body .site-footer.footer-compact .footer-brand-name img{width:56px;height:42px;object-fit:contain;filter:brightness(0) invert(1)}
body .site-footer.footer-compact .footer-positioning{font-size:12px;line-height:22px;margin:0 0 14px}
body .site-footer.footer-compact .footer-wechat{margin:0;width:88px}
body .site-footer.footer-compact .footer-wechat img{display:block;width:88px;height:88px;object-fit:contain;background:#fff;border:4px solid #fff;border-radius:3px}
body .site-footer.footer-compact .footer-wechat figcaption{font-size:11px;line-height:18px;text-align:center;margin-top:6px;white-space:nowrap}
body .site-footer.footer-compact .footer-links{display:block;margin:0;padding:0;list-style:none;font-size:13px;line-height:22px}
body .site-footer.footer-compact .footer-links li{margin:0 0 6px}
body .site-footer.footer-compact .footer-bottom{align-items:center}
@media(max-width:768px){body .site-footer.footer-compact .footer-bottom{align-items:flex-start}}

/* 产品导航前端展示样式：分列推荐与分类独立入口。 */
.nav-mega-preview .nav-mega-columns{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));overflow:hidden;gap:30px}
.nav-mega-preview .nav-mega-col{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - var(--header-h) - 64px)}
.nav-mega-preview .nav-mega-title{min-height:40px;margin-bottom:0;font-size:18px;line-height:24px}
.nav-mega-preview .nav-mega-content{min-height:0;overflow-y:auto;scrollbar-width:thin}
.nav-mega-preview .nav-mega-list{flex:none;overflow:visible;padding-bottom:0}
.nav-mega-preview .nav-mega-sub{font-size:14px;line-height:22px;margin:12px 0 4px;padding:0 8px;font-weight:650}
.nav-mega-preview .nav-mega-link{height:auto;min-height:30px;padding:4px 10px;font-size:14px;line-height:22px}
.nav-mega-preview .nav-mega-more{display:block;margin-top:12px;padding:4px 10px;border:0;border-radius:0;font-size:14px;font-weight:600;line-height:24px;color:var(--color-primary);text-align:left}
.nav-mega-preview .nav-mega-more:hover{background:transparent;color:#213dbb;text-decoration:underline;text-underline-offset:4px}
@media(min-width:769px){.nav-mega.nav-mega-preview{height:auto;max-height:calc(100dvh - var(--header-h) - 24px);padding:20px 28px 12px;grid-template-rows:minmax(0,1fr);gap:0}.nav-mega-preview .nav-mega-columns{align-items:start}}
@media(max-width:1050px) and (min-width:769px){.nav-mega-preview .nav-mega-columns{gap:20px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}}
@media(max-width:768px){.nav-mega-preview .nav-mega-columns{grid-template-columns:1fr;overflow:visible}.nav-mega-preview .nav-mega-list{overflow:visible}.nav-mega-preview .nav-mega-more{text-align:left;padding-bottom:12px}}
@media(max-width:768px){.nav-mega-preview .nav-mega-col{max-height:none}.nav-mega-preview .nav-mega-content{overflow:visible}}

/* more 与大类文字右边界对齐，短列保留自然留白并共用底部基线。 */
@media(min-width:769px){
 .nav-mega-preview .nav-mega-columns{align-items:stretch}
 .nav-mega-preview .nav-mega-col{display:grid;grid-template-columns:fit-content(100%) minmax(0,1fr);grid-template-rows:auto auto auto;align-content:start;column-gap:0;row-gap:0}
 .nav-mega-preview .nav-mega-title{grid-column:1;grid-row:1;font-size:18px;line-height:24px;padding-bottom:10px}
 .nav-mega-preview .nav-mega-content{display:grid;grid-column:1/-1;grid-row:2/4;grid-template-columns:subgrid;grid-template-rows:subgrid}
 .nav-mega-preview .nav-mega-list{grid-column:1/-1;grid-row:1;padding-top:10px}
 .nav-mega-preview .nav-mega-more{grid-column:1;grid-row:2;justify-self:end;align-self:start;text-align:right;margin:5px 0 0;padding:0;font-size:14px;line-height:22px;font-weight:500;color:#5269b8;white-space:nowrap}
 .nav-mega-preview .nav-mega-more:hover{color:var(--color-primary)}
 .nav-mega-preview .nav-mega-sub,.nav-mega-preview .nav-mega-link{display:flex;align-items:center;box-sizing:border-box;margin:0;padding:6px 12px;line-height:22px;min-height:34px;height:auto}
 .nav-mega-preview .nav-mega-sublist{margin:0;padding:0}
}



