@charset "utf-8";
/* ==========================================================================
   澜序生命科技 · 设计系统
   契约见 DESIGN.md。改造性质：Refinement（保留品牌识别，重构排版与动效）。
   层级约定：内容 < mega panel(70) < 移动端抽屉(80) < 顶栏内容(85) < 顶栏(90)
             < 滚动进度条(100) < 跳转链接(110)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 字体（自托管西文可变字体 + 中文系统栈）
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. 设计令牌
   -------------------------------------------------------------------------- */

:root {
  /* 色彩 —— 一个信号色，中性灰统一冷灰家族并统一向 navy 偏 */
  --navy: #04182e;
  --navy-2: #082a46;
  --navy-3: #0d3b5c;
  --paper: #f9fcfc;
  --mist: #eef6f6;
  --teal: #00b79f;
  --teal-bright: #55e2c5;
  --teal-deep: #087e70;

  --ink: #071a2d;
  --ink-soft: #3d5568;
  /* DESIGN.md 写的是 #6b8296，实测对 paper 只有 3.9:1，压深一档到 4.8:1 */
  --ink-faint: #5d7386;
  --line: rgba(8, 53, 74, .14);
  --line-strong: rgba(8, 53, 74, .26);

  /* 深色面上的次级文字三档 */
  --on-dark: rgba(255, 255, 255, .74);
  --on-dark-soft: rgba(255, 255, 255, .58);
  --on-dark-faint: rgba(255, 255, 255, .40);

  /* 阴影统一带 navy 色相 */
  --shadow-sm: 0 2px 8px rgba(2, 28, 46, .06);
  --shadow: 0 18px 44px rgba(2, 28, 46, .10);
  --shadow-lg: 0 30px 80px rgba(2, 28, 46, .16);

  /* 切角签名 */
  --r-card: 2px 16px 2px 2px;
  --r-btn: 2px 12px 2px 2px;
  --r-media: 2px 18px 2px 2px;
  --r-chip: 999px;
  --r-field: 2px 10px 2px 2px;

  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;

  /* 字号阶梯（1.25 比例） */
  --fs-display: clamp(2.75rem, 5.6vw, 5rem);
  --fs-h1: clamp(2.25rem, 4vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 2.6vw, 2.5rem);
  --fs-h3: 1.375rem;
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-caption: .75rem;

  /* 缓动 */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .68, .28, 1);
}

/* --------------------------------------------------------------------------
   3. 基础
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  overflow-x: clip;
  /* 浏览器原生表面：滚动条 */
  scrollbar-color: var(--teal-deep) var(--mist);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist Variable", "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.75;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 浏览器原生表面：光标与选区 */
  caret-color: var(--teal);
  accent-color: var(--teal);
}

body.menu-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; background: var(--mist); }

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
[hidden] { display: none !important; }

::selection { background: var(--teal-deep); color: #fff; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :where(a, button):focus-visible,
.site-footer :where(a, button):focus-visible { outline-color: var(--teal-bright); }

/* 数字一律等宽，统计与日期不会跳动 */
.metric-value, .step-num, .honor-year, .pub-impact, .dl-size, .news-meta time, .article-meta time,
.dir-tab-count, .dir-count, .nav-panel-hint { font-variant-numeric: tabular-nums; }

/* 图标基线 */
.i { width: 1.15em; height: 1.15em; flex: none; }

/* --------------------------------------------------------------------------
   4. 布局原语
   -------------------------------------------------------------------------- */

.container { width: min(calc(100% - (var(--gutter) * 2)), var(--max)); margin-inline: auto; }

.block { padding: var(--space-9) 0 var(--space-10); }
.block > .container + .container { margin-top: var(--space-8); }
.band-rule { border-top: 1px solid var(--line); }
.block-hero, .block-cta-wrap { padding: 0; }
.block-cta-wrap { padding: var(--space-7) 0 var(--space-9); }

.block-head { max-width: 62ch; margin-bottom: var(--space-8); }
.block-title { font-size: var(--fs-h2); line-height: 1.22; letter-spacing: -.025em; }
.block-lead { margin-top: var(--space-5); color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.8; }

.empty-note {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: var(--fs-small);
}

.more-row { margin-top: var(--space-7); }

/* --------------------------------------------------------------------------
   5. 顶栏与导航
   -------------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  left: var(--space-4);
  top: -80px;
  z-index: 110;
  padding: 10px 16px;
  border-radius: var(--r-btn);
  background: var(--teal);
  color: #03241f;
  font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

/* 只给读屏用，视觉上不占位置。表格的左上角格子、以及其它需要
   补一句上下文但不想让它占版面的地方用它。 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  color: var(--ink);
  background: rgba(249, 252, 252, .82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(1.4);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(249, 252, 252, .96);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px rgba(2, 28, 46, .06);
}

.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }

.brand { display: inline-flex; align-items: center; gap: var(--space-3); flex: none; }
.brand-mark { width: 32px; height: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; transform: rotate(45deg); flex: none; }
.brand-mark i { display: block; border-radius: 50% 50% 50% 12%; background: linear-gradient(135deg, var(--teal-bright), var(--teal)); }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { opacity: .45; }
.brand-logo { height: 34px; width: auto; }
.brand-copy { line-height: 1.2; }
.brand-copy strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: .06em; }
.brand-en { display: block; margin-top: 3px; color: var(--ink-faint); font-size: 9.5px; font-weight: 500; letter-spacing: .18em; }

.site-nav { display: flex; align-items: center; gap: var(--space-2); }

.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: var(--r-btn);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--ink); background: var(--mist); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}
.nav-link--accent { color: var(--teal-deep); font-weight: 600; }
.nav-link--accent:hover { color: var(--teal-deep); background: rgba(0, 183, 159, .1); }
.nav-chev { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
.nav-item.has-children:hover .nav-chev,
.nav-item.has-children:focus-within .nav-chev,
.nav-item.is-open .nav-chev { transform: rotate(180deg); }

.nav-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  z-index: 70;
  padding: var(--space-7) 0 var(--space-8);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 32px 64px rgba(2, 28, 46, .1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), visibility .22s;
}
.nav-item.has-children:hover .nav-panel,
.nav-item.has-children:focus-within .nav-panel,
.nav-item.is-open .nav-panel { opacity: 1; visibility: visible; transform: none; }

.nav-panel-grid { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-7); align-items: start; }
.nav-panel-title { font-size: var(--fs-h3); letter-spacing: -.015em; }
.nav-panel-title a:hover { color: var(--teal-deep); }
.nav-panel-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-2) var(--space-5); }
.nav-panel-link {
  display: grid;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-btn);
  transition: background .2s ease, transform .2s var(--ease-out);
}
.nav-panel-link:hover { background: var(--mist); transform: translateX(3px); }
.nav-panel-label { font-size: 15px; font-weight: 600; }
.nav-panel-hint { color: var(--ink-faint); font-size: var(--fs-caption); letter-spacing: .01em; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: var(--r-btn);
  color: var(--ink-soft);
}
.menu-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease-out), opacity .2s ease; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 2px;
  pointer-events: none;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   6. 首屏
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: end;
  min-height: min(90svh, 860px);
  padding: calc(var(--header-h) + var(--space-9)) 0 var(--space-9);
  color: #fff;
  background: var(--navy);
}
.hero--compact { min-height: min(58svh, 520px); padding-bottom: var(--space-8); }

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media--empty { background: radial-gradient(120% 90% at 78% 18%, rgba(0, 183, 159, .22), transparent 60%), var(--navy); }
.hero-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: saturate(.86) contrast(1.04);
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 9s linear;
}
.hero-frame.is-active { opacity: .74; transform: scale(1.11); }
/* 文字侧压暗，保证正文对比度 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(2, 16, 31, .96) 0%, rgba(3, 24, 45, .82) 46%, rgba(3, 24, 45, .34) 76%, rgba(3, 20, 37, .5) 100%),
    linear-gradient(0deg, rgba(2, 16, 31, .7), rgba(2, 16, 31, 0) 55%);
}

/* 860px 装不下「分子检测与科研技术服务，」这 13 个字（80px 字号约需 1005px），
   浏览器会在「科 / 研」之间硬折，人工 \n 再折一次，标题就成了三行。放宽到 1040px。 */
.hero-inner { position: relative; z-index: 1; max-width: min(100%, 1040px); }
.hero-title {
  font-size: var(--fs-display);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 600;
  white-space: pre-line;
  max-width: 15em;
}
.hero--compact .hero-title { font-size: var(--fs-h1); line-height: 1.15; letter-spacing: -.03em; max-width: 20em; }
.hero-lead {
  max-width: 62ch;
  margin-top: var(--space-5);
  color: var(--on-dark);
  font-size: var(--fs-lead);
  line-height: 1.85;
}
.hero--compact .hero-lead { max-width: 58ch; font-size: var(--fs-body); }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); }
.hero-proofs { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin-top: var(--space-7); color: var(--on-dark-soft); font-size: var(--fs-small); }
.hero-proofs li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-proof-i { color: var(--teal-bright); }

.hero-dots {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.hero--compact .hero-dots { bottom: var(--space-5); }
.hero-dot { position: relative; width: 30px; height: 32px; }
.hero-dot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, .3);
  transform: translateY(-50%);
  transition: background .3s ease;
}
.hero-dot:hover::before { background: rgba(255, 255, 255, .55); }
.hero-dot.is-active::before { background: var(--teal-bright); }

/* --------------------------------------------------------------------------
   7. 按钮与链接
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 50px;
  padding: 0 var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .18s var(--ease-out), background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-i { width: 17px; height: 17px; transition: transform .22s var(--ease-out); }
.btn:hover .btn-i { transform: translateX(3px); }

.btn-primary { color: #042f2a; background: var(--teal-bright); box-shadow: 0 12px 30px rgba(0, 183, 159, .18); }
.btn-primary:hover { background: #6febd0; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .12); }
.btn-dark { color: #fff; background: var(--navy); }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn-sm { min-height: 40px; padding: 0 var(--space-5); font-size: var(--fs-small); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--teal-deep);
  font-size: var(--fs-small);
  font-weight: 600;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-i { width: 15px; height: 15px; transition: transform .22s var(--ease-out); }
.link-arrow:hover .link-i { transform: translateX(3px); }
.link-i-back { transform: rotate(180deg); }
.link-arrow:hover .link-i-back { transform: rotate(180deg) translateX(3px); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: var(--r-chip);
  background: rgba(0, 183, 159, .12);
  color: var(--teal-deep);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: .04em;
}
.chip-quiet { background: var(--mist); color: var(--ink-soft); }

.dot-list { display: grid; gap: var(--space-2); }
.dot-list li { position: relative; padding-left: var(--space-5); color: var(--ink-soft); font-size: var(--fs-small); }
.dot-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

/* --------------------------------------------------------------------------
   8. 数据条
   -------------------------------------------------------------------------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6) var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--line-strong);
}
.metric { display: grid; gap: var(--space-2); align-content: start; }
.metric-value { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--navy); }
.metric-value small { margin-left: 3px; font-size: .45em; font-weight: 500; color: var(--teal-deep); }
.metric-label { font-size: var(--fs-small); font-weight: 500; }
.metric-note { color: var(--ink-faint); font-size: var(--fs-caption); }

/* --------------------------------------------------------------------------
   9. 卡片矩阵（错位栅格，不用等大三卡片）
   -------------------------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-5); }
.card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
  transition: border-color .25s ease, transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.card:hover { border-color: rgba(0, 183, 159, .5); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); flex: 1; }
.card-title { font-size: var(--fs-h3); letter-spacing: -.015em; }
.card-note { color: var(--ink-soft); font-size: var(--fs-small); }
.card .link-arrow { margin-top: auto; padding-top: var(--space-4); }

/* 错位节奏：交替 7/5、5/7，卡片数与顺序都由后台决定 */
.card:nth-child(1) { grid-column: span 7; }
.card:nth-child(2) { grid-column: span 5; }
.card:nth-child(3) { grid-column: span 5; }
.card:nth-child(4) { grid-column: span 7; }
.card:nth-child(5) { grid-column: span 8; }
.card:nth-child(6) { grid-column: span 4; }
.card:nth-child(2) .card-media img,
.card:nth-child(3) .card-media img { aspect-ratio: 4 / 3; }
.cards > .card:nth-child(odd) { margin-top: 0; }
.cards > .card:nth-child(even) { margin-top: var(--space-8); }

/* --------------------------------------------------------------------------
   10. 图文分栏
   -------------------------------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); align-items: center; }
.split--media-right .split-media { order: 2; }
.split-media { overflow: hidden; border-radius: var(--r-media); box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media--empty { aspect-ratio: 4 / 3; background: linear-gradient(140deg, var(--mist), #dfeeee); box-shadow: none; border: 1px solid var(--line); }
.split-copy { max-width: 62ch; }
.split-copy .block-title { font-size: var(--fs-h2); }
.split-copy > p { margin-top: var(--space-5); color: var(--ink-soft); }

.point-list { display: grid; gap: var(--space-5); margin-top: var(--space-7); }
.point { display: grid; grid-template-columns: 128px 1fr; gap: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.point dt { font-weight: 600; font-size: var(--fs-small); }
.point dd { color: var(--ink-soft); font-size: var(--fs-small); }

/* --------------------------------------------------------------------------
   11. 流程步骤（顺序即信息，保留编号）
   -------------------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-7) var(--space-6); }
.step { position: relative; padding-top: var(--space-5); border-top: 1px solid var(--line-strong); }
.step-num { display: block; color: var(--teal-deep); font-size: var(--fs-caption); font-weight: 700; letter-spacing: .12em; }
.step-title { margin-top: var(--space-4); font-size: var(--fs-h3); letter-spacing: -.015em; }
.step-note { margin-top: var(--space-3); color: var(--ink-soft); font-size: var(--fs-small); }

/* --------------------------------------------------------------------------
   12. 正文
   -------------------------------------------------------------------------- */

.prose { max-width: 72ch; }
.prose .block-title { font-size: var(--fs-h2); margin-bottom: var(--space-5); }
.prose p { margin-top: var(--space-5); color: var(--ink-soft); }
.prose p:first-of-type { margin-top: 0; }
.prose p:first-of-type::first-letter { font-size: 1.05em; }

/* --------------------------------------------------------------------------
   13. 服务目录
   -------------------------------------------------------------------------- */

.dir { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-7); align-items: start; }
.dir-nav { position: sticky; top: calc(var(--header-h) + var(--space-5)); display: grid; gap: var(--space-2); }
.dir-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 52px;
  padding: 0 var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}
.dir-tab:hover { border-color: rgba(0, 183, 159, .5); transform: translateX(3px); }
.dir-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.dir-tab-count { color: var(--ink-faint); font-size: var(--fs-caption); font-weight: 500; }
.dir-tab.is-active .dir-tab-count { color: var(--teal-bright); }

.dir-panel { padding: var(--space-8); border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.dir-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.dir-title { font-size: var(--fs-h3); letter-spacing: -.015em; }
.dir-count { color: var(--ink-faint); font-size: var(--fs-caption); }
.dir-items { display: grid; }
.dir-item { padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.dir-item:last-child { border-bottom: 0; padding-bottom: 0; }
.dir-item strong { display: block; font-size: var(--fs-body); font-weight: 600; }
.dir-item p { margin-top: var(--space-2); color: var(--ink-soft); font-size: var(--fs-small); }

/* --------------------------------------------------------------------------
   14. 服务网络
   -------------------------------------------------------------------------- */

.city-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-3); }
.city-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: #fff;
  font-size: var(--fs-small);
  font-weight: 500;
}
.city-i { color: var(--teal-deep); }
.network-cta { margin-top: var(--space-7); }

/* --------------------------------------------------------------------------
   15. 案例 / 新闻 / 荣誉 / 文献 / FAQ / 下载 / 能力
   -------------------------------------------------------------------------- */

/* 案例：一行一条，背景 / 做法 / 结果三段对齐 */
.case-list { display: grid; gap: var(--space-5); }
.case-row { padding: var(--space-8); border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.case-main { display: grid; gap: var(--space-4); }
.case-title { font-size: var(--fs-h3); letter-spacing: -.015em; }
.case-main .chip { justify-self: start; }
.case-media { overflow: hidden; border-radius: var(--r-media); }
.case-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.case-facts { display: grid; gap: 0; margin-top: var(--space-2); }
.case-fact { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-5); padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.case-fact dt { color: var(--teal-deep); font-size: var(--fs-caption); font-weight: 700; letter-spacing: .1em; }
.case-fact dd { color: var(--ink-soft); font-size: var(--fs-small); }

/* 新闻 */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-6); }
.filter-label { margin-right: var(--space-2); color: var(--ink-faint); font-size: var(--fs-caption); letter-spacing: .1em; }
.filter-chip {
  min-height: 36px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  background: #fff;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter-chip:hover { border-color: rgba(0, 183, 159, .5); color: var(--ink); }
.filter-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-empty { padding: var(--space-6) 0; color: var(--ink-faint); font-size: var(--fs-small); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-6); }
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
  transition: border-color .25s ease, transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.news-card:hover { border-color: rgba(0, 183, 159, .5); transform: translateY(-3px); box-shadow: var(--shadow); }
.news-media { display: block; overflow: hidden; }
.news-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease-out); }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); flex: 1; }
.news-meta { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-faint); font-size: var(--fs-caption); }
.news-title { font-size: var(--fs-h3); letter-spacing: -.015em; }
.news-title a:hover { color: var(--teal-deep); }
.news-summary { color: var(--ink-soft); font-size: var(--fs-small); }
.news-body .link-arrow { margin-top: auto; padding-top: var(--space-3); }

/* 荣誉 */
.honor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); }
.honor-card { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.honor-media { overflow: hidden; border-radius: var(--r-media); margin-bottom: var(--space-2); }
.honor-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.honor-meta { display: flex; align-items: center; gap: var(--space-3); }
.honor-year { color: var(--teal-deep); font-size: var(--fs-caption); font-weight: 700; letter-spacing: .1em; }
.honor-title { font-size: var(--fs-body); font-weight: 600; line-height: 1.5; }
.honor-issuer { color: var(--ink-faint); font-size: var(--fs-caption); }
.honor-summary { color: var(--ink-soft); font-size: var(--fs-small); }

/* 文献 */
.pub-list { display: grid; }
.pub-row { display: grid; grid-template-columns: 1fr 160px; gap: var(--space-6); align-items: start; padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.pub-row:last-child { border-bottom: 1px solid var(--line); }
.pub-title { font-size: var(--fs-body); font-weight: 600; line-height: 1.5; }
.pub-meta { margin-top: var(--space-2); color: var(--teal-deep); font-size: var(--fs-caption); }
.pub-summary { margin-top: var(--space-3); color: var(--ink-soft); font-size: var(--fs-small); }
.pub-side { display: grid; gap: var(--space-3); justify-items: start; }
.pub-impact { display: grid; gap: 2px; font-size: var(--fs-lead); font-weight: 600; }
.pub-impact small { color: var(--ink-faint); font-size: var(--fs-caption); font-weight: 500; }

/* FAQ：左右分栏列表，不用 accordion */
.faq-split { display: grid; grid-template-columns: 320px 1fr; gap: var(--space-9); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + var(--space-5)); display: grid; gap: var(--space-4); align-content: start; }
.faq-aside .block-head { margin-bottom: 0; }
.faq-aside-note { color: var(--ink-faint); font-size: var(--fs-small); }
.faq-rows { display: grid; }
.faq-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-7); padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.faq-row:last-child { border-bottom: 1px solid var(--line); }
.faq-q { font-size: var(--fs-body); font-weight: 600; line-height: 1.55; }
.faq-a { color: var(--ink-soft); font-size: var(--fs-small); }

/* FAQ 折叠形态：收起时只有问题占一行 */
.faq-folds { display: grid; }
.faq-fold { border-top: 1px solid var(--line); }
.faq-fold:last-child { border-bottom: 1px solid var(--line); }
.faq-fold-q {
  display: grid;
  grid-template-columns: 1fr 28px;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  list-style: none;
  cursor: pointer;
}
.faq-fold-q::-webkit-details-marker { display: none; }
.faq-fold-text { font-size: var(--fs-body); font-weight: 600; line-height: 1.55; transition: color .2s ease; }
.faq-fold-q:hover .faq-fold-text { color: var(--teal-deep); }
.faq-fold-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  color: var(--teal-deep);
  transition: transform .25s var(--ease-out), border-color .2s ease, background .2s ease;
}
.faq-fold-ico .i { width: 14px; height: 14px; }
.faq-fold[open] .faq-fold-ico { transform: rotate(45deg); background: var(--mist); border-color: transparent; }
.faq-fold-a { display: grid; gap: var(--space-3); padding: 0 0 var(--space-6); max-width: 72ch; color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.8; }

/* 对照表 */
.tbl-wrap { overflow-x: auto; border-top: 1px solid var(--line-strong); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: var(--space-4) var(--space-5); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { color: var(--ink-faint); font-size: var(--fs-caption); font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.tbl-rowhead { color: var(--ink); font-size: var(--fs-small); font-weight: 600; }
.tbl td { color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.7; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl tbody tr:hover { background: rgba(0, 183, 159, .05); }
.tbl-blank { color: var(--ink-faint); }

/* 应用场景：编号大卡 */
.use-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.use-card {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-7);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
  color: inherit;
  transition: border-color .25s ease, transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
a.use-card:hover { border-color: rgba(0, 183, 159, .5); transform: translateY(-3px); box-shadow: var(--shadow); }
.use-num { font-size: var(--fs-caption); font-weight: 700; letter-spacing: .14em; color: var(--teal-deep); }
.use-media { overflow: hidden; border-radius: var(--r-media); margin-bottom: var(--space-2); }
.use-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.use-title { font-size: var(--fs-h3); letter-spacing: -.015em; }
.use-note { color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.75; }
.use-link { margin-top: var(--space-2); color: var(--teal-deep); font-size: var(--fs-small); font-weight: 600; }
a.use-card:hover .use-link .link-i { transform: translateX(3px); }

/* 下载 */
.dl-list { display: grid; }
.dl-row { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--space-5); align-items: center; padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.dl-row:last-child { border-bottom: 1px solid var(--line); }
.dl-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn); background: var(--mist); color: var(--teal-deep); }
.dl-ico .i { width: 20px; height: 20px; }
.dl-title { font-size: var(--fs-body); font-weight: 600; }
.dl-summary { margin-top: var(--space-1); color: var(--ink-soft); font-size: var(--fs-small); }
.dl-side { display: flex; align-items: center; gap: var(--space-4); }
.dl-size { color: var(--ink-faint); font-size: var(--fs-caption); }
.dl-pending { color: var(--ink-faint); font-size: var(--fs-caption); }

/* 服务能力 */
.cap-list { display: grid; }
.cap-row { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--space-5); align-items: start; padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.cap-row:last-child { border-bottom: 1px solid var(--line); }
.cap-ico { color: var(--teal-deep); padding-top: 3px; }
.cap-ico .i { width: 22px; height: 22px; }
.cap-title { font-size: var(--fs-body); font-weight: 600; }
.cap-summary { margin-top: var(--space-2); color: var(--ink-soft); font-size: var(--fs-small); max-width: 68ch; }
.cap-metric { padding: 5px 12px; border-radius: var(--r-chip); background: var(--mist); color: var(--teal-deep); font-size: var(--fs-caption); font-weight: 600; white-space: nowrap; }

/* --------------------------------------------------------------------------
   16. 联系我们
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: var(--space-8); align-items: start; }
.contact-card { padding: var(--space-8); border-radius: var(--r-card); background: var(--navy); color: #fff; }
.contact-title { font-size: var(--fs-h3); }
.contact-rows { margin-top: var(--space-6); }
.contact-row { display: grid; grid-template-columns: 26px 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.contact-ico { color: var(--teal-bright); padding-top: 2px; }
.contact-ico .i { width: 19px; height: 19px; }
.contact-body { display: grid; gap: var(--space-1); }
.contact-key { color: var(--on-dark-faint); font-size: var(--fs-caption); letter-spacing: .12em; }
.contact-value { color: #fff; font-size: var(--fs-body); font-weight: 500; }
a.contact-value:hover { color: var(--teal-bright); }
.map-note { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid rgba(255, 255, 255, .14); color: var(--on-dark-soft); font-size: var(--fs-small); }

.form-title { font-size: var(--fs-h2); letter-spacing: -.025em; }
.form-intro { margin-top: var(--space-4); color: var(--ink-soft); font-size: var(--fs-small); max-width: 60ch; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-7); }
.field { display: grid; gap: var(--space-2); }
.field-full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-small); font-weight: 600; }
.req { color: var(--teal-deep); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-field);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 183, 159, .12); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); opacity: 1; }
.field input:not(:placeholder-shown):invalid { border-color: #b42318; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-2); }
.form-status { color: var(--teal-deep); font-size: var(--fs-small); }
.form-status.is-error { color: #b42318; }

.map-panel { margin-top: var(--space-8); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.map-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) var(--space-7); border-bottom: 1px solid var(--line); }
.map-title { font-size: var(--fs-body); font-weight: 600; }
.map-address { margin-top: var(--space-1); color: var(--ink-soft); font-size: var(--fs-small); }
.map-direct-link { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--teal-deep); font-size: var(--fs-small); font-weight: 600; white-space: nowrap; }
.map-direct-link:hover { text-decoration: underline; }
.map-frame-wrap { position: relative; min-height: 420px; background: var(--mist); }
.map-frame-wrap::before { content: "地图加载中…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-faint); font-size: var(--fs-small); }
.map-leaflet { position: absolute; inset: 0; z-index: 1; }
.map-leaflet .leaflet-control-attribution { font-size: 10px; }
/* Leaflet 自带的归属水印是行内链接，实际高度只有 13px，手机上点不中 —— 撑到 24px */
.map-leaflet .leaflet-control-attribution a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 3px;
}
.map-leaflet.is-error { display: none; }
.map-error-box { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: var(--space-8); text-align: center; background: var(--mist); color: var(--ink-soft); font-size: var(--fs-small); }
.map-error-box a { color: var(--teal-deep); font-weight: 600; }

/* --------------------------------------------------------------------------
   17. 行动号召
   -------------------------------------------------------------------------- */

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
  padding: var(--space-9) var(--space-8);
  border-radius: var(--r-card);
  background: var(--navy-2);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-copy { max-width: 60ch; }
.cta-title { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -.025em; white-space: pre-line; }
.cta-body { margin-top: var(--space-4); color: var(--on-dark); }

/* --------------------------------------------------------------------------
   18. 文章（新闻详情）
   -------------------------------------------------------------------------- */

.article { padding: calc(var(--header-h) + var(--space-9)) 0 var(--space-9); }
.article-head { max-width: 74ch; }
.article-meta { display: flex; align-items: center; gap: var(--space-4); color: var(--ink-faint); font-size: var(--fs-caption); }
.article-title { margin-top: var(--space-4); font-size: var(--fs-h1); line-height: 1.15; letter-spacing: -.03em; }
.article-lead { margin-top: var(--space-5); color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.85; }
.article-media { margin-top: var(--space-8); overflow: hidden; border-radius: var(--r-media); }
.article-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article-body { margin-top: var(--space-8); }
.article-body p { font-size: var(--fs-body); }
.article-foot { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   19. 页脚
   -------------------------------------------------------------------------- */

.site-footer { padding: var(--space-9) 0 var(--space-6); background: var(--navy); color: #fff; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr); gap: var(--space-9); padding-bottom: var(--space-8); }
.site-footer .brand-copy strong { color: #fff; }
.site-footer .brand-en { color: var(--on-dark-faint); }
.footer-about { margin-top: var(--space-5); max-width: 42ch; color: var(--on-dark-soft); font-size: var(--fs-small); }
.footer-contact { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.footer-contact li { display: flex; align-items: center; gap: var(--space-3); color: var(--on-dark); font-size: var(--fs-small); }
.footer-ico { width: 17px; height: 17px; color: var(--teal-bright); }
.footer-contact a { display: inline-flex; align-items: center; min-height: 26px; }
.footer-contact a:hover { color: var(--teal-bright); }

.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-7); }
.footer-col-title { font-size: var(--fs-caption); font-weight: 600; letter-spacing: .16em; color: var(--on-dark-faint); text-transform: uppercase; }
.footer-col ul { display: grid; gap: var(--space-2); margin-top: var(--space-5); }
.footer-col a, .footer-col span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  color: var(--on-dark);
  font-size: var(--fs-small);
}
.footer-col a:hover { color: var(--teal-bright); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: var(--on-dark-faint);
  font-size: var(--fs-caption);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-5); }

/* --------------------------------------------------------------------------
   20. 错误页
   -------------------------------------------------------------------------- */

.error-page { padding-top: calc(var(--header-h) + var(--space-10)); }
.error-code { color: var(--teal-deep); font-size: var(--fs-caption); font-weight: 700; letter-spacing: .2em; }
.error-page .block-title { margin-top: var(--space-4); font-size: var(--fs-h1); letter-spacing: -.03em; }
.error-page .block-lead { max-width: 52ch; }
.error-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

/* --------------------------------------------------------------------------
   21. 动效
   一个页面只有一个被编排的时刻（首屏入场序列）；其余动效都与主题相关
   —— 数字滚动、轮播进度、悬停反馈 —— 不做「每个区块同一套位移入场」。
   -------------------------------------------------------------------------- */

.js-motion .hero-title,
.js-motion .hero-lead,
.js-motion .hero-actions,
.js-motion .hero-proofs {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in .85s var(--ease-out) forwards;
}
.js-motion .hero-title { animation-delay: 60ms; }
.js-motion .hero-lead { animation-delay: 180ms; }
.js-motion .hero-actions { animation-delay: 280ms; }
.js-motion .hero-proofs { animation-delay: 360ms; }
@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

/* 轮播进度：当前指示点自己走完一圈，代替额外的装饰动画 */
.hero-dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  border-radius: var(--r-chip);
  background: var(--teal-bright);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
}
.hero-dot.is-active::after { animation: dot-progress 6s linear forwards; }
@keyframes dot-progress {
  from { transform: translateY(-50%) scaleX(0); }
  to { transform: translateY(-50%) scaleX(1); }
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: rgba(249, 252, 252, .92);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--teal); color: var(--teal-deep); }
.to-top .i { transform: rotate(-90deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-motion .hero-title,
  .js-motion .hero-lead,
  .js-motion .hero-actions,
  .js-motion .hero-proofs {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero-frame { transition: opacity .3s ease; transform: none !important; }
  .hero-frame.is-active { transform: none !important; }
  .hero-dot.is-active::after { animation: none; transform: translateY(-50%) scaleX(1); }
  .btn:hover, .card:hover, .news-card:hover, .dir-tab:hover, .nav-panel-link:hover, .to-top,
  a.use-card:hover { transform: none; }
  .card-media img, .news-media img { transition: none; }
  .img-reveal .img-reveal-top { transition: none; }
  .faq-fold-ico, .step-more-i { transition: none; }
}

/* --------------------------------------------------------------------------
   22. 响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .card:nth-child(n) { grid-column: span 6; }
  .cards > .card:nth-child(even) { margin-top: 0; }
}

@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  /* .site-nav 是 .site-header 的子元素，抬 header 的 z-index 无法让它盖过抽屉，
     必须在 header 这个层叠上下文内部把品牌区和开关按钮抬到抽屉(80)之上。 */
  .brand, .menu-toggle { position: relative; z-index: 85; }

  /* header 上的 backdrop-filter 会为 fixed 子元素建立包含块，并把它裁到 header 的高度，
     抽屉(inset:0)于是只剩 72px，第二项往下全被切掉。菜单打开时把滤镜摘掉，
     抽屉的包含块回到视口；顺手把 header 底色改成不透明，避免半透明叠在抽屉上。 */
  body.menu-open .site-header { backdrop-filter: none; background: var(--paper); }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: calc(var(--header-h) + var(--space-6)) var(--gutter) var(--space-9);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform .32s var(--ease-out);
  }
  .menu-open .site-nav { transform: none; }
  .nav-link { padding: var(--space-4) var(--space-3); font-size: 20px; font-weight: 500; }
  .nav-link[aria-current="page"]::after { left: var(--space-3); right: auto; width: 22px; bottom: 8px; }
  .nav-chev { width: 20px; height: 20px; margin-left: auto; }
  .nav-link { justify-content: space-between; }
  .nav-item { border-bottom: 1px solid var(--line); }

  .nav-panel {
    position: static;
    padding: 0 0 var(--space-5);
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    display: none;
  }
  .nav-item.is-open .nav-panel { display: block; }
  .nav-panel-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .nav-panel-title { font-size: var(--fs-small); color: var(--ink-faint); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
  .nav-panel-links { grid-template-columns: 1fr; gap: var(--space-1); }
  .nav-panel-link { padding: var(--space-3); border-radius: var(--r-btn); }
  .nav-panel-link:hover { transform: none; }
  .nav-panel-hint { font-size: var(--fs-caption); }

  .split { grid-template-columns: 1fr; gap: var(--space-8); }
  .split--media-right .split-media { order: 0; }
  .dir { grid-template-columns: 1fr; gap: var(--space-6); }
  .dir-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); scrollbar-width: thin; }
  .dir-tab { white-space: nowrap; }
  .dir-tab:hover { transform: none; }
  .faq-split { grid-template-columns: 1fr; gap: var(--space-7); }
  .faq-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-8); }
  .nav-panel-links { gap: var(--space-2); }
}

@media (max-width: 860px) {
  .block { padding: var(--space-8) 0 var(--space-9); }
  .block-cta-wrap { padding: var(--space-6) 0 var(--space-8); }
  .block-head { margin-bottom: var(--space-7); }
  .cards { grid-template-columns: 1fr; gap: var(--space-4); }
  .card:nth-child(n) { grid-column: span 1; }
  .hero { min-height: auto; padding: calc(var(--header-h) + var(--space-9)) 0 var(--space-9); }
  .hero--compact { padding-bottom: var(--space-8); }
  .hero-title { max-width: none; }
  .hero-dots { position: static; margin-top: var(--space-7); left: auto; bottom: auto; }
  .faq-row { grid-template-columns: 1fr; gap: var(--space-3); }
  .pub-row { grid-template-columns: 1fr; gap: var(--space-4); }
  .pub-side { flex-direction: row; align-items: center; gap: var(--space-5); }
  .cta-panel { padding: var(--space-8) var(--space-6); }
  .article { padding-top: calc(var(--header-h) + var(--space-8)); }
  .contact-card { padding: var(--space-6); }
  .dir-panel { padding: var(--space-6); }
  .case-row { padding: var(--space-6); }

  /* 对照表：内容宽了横滑，不要在小屏上把列挤到看不清 */
  .tbl th, .tbl td { padding: var(--space-4); }
  .use-card { padding: var(--space-6); }
}

@media (max-width: 620px) {
  :root { --space-9: 64px; --space-10: 80px; }
  .brand-en { display: none; }
  .brand-copy strong { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-proofs { gap: var(--space-2) var(--space-5); }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
  .metric-value { font-size: 1.9rem; }
  .point { grid-template-columns: 1fr; gap: var(--space-2); }
  .case-fact { grid-template-columns: 1fr; gap: var(--space-2); }
  .dl-row { grid-template-columns: 36px 1fr; gap: var(--space-4); }
  .dl-ico { width: 36px; height: 36px; }
  .dl-side { grid-column: 2; justify-content: flex-start; }
  .cap-row { grid-template-columns: 28px 1fr; gap: var(--space-4); }
  .cap-metric { grid-column: 2; justify-self: start; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .cta-panel .btn { width: 100%; }
  .map-head { padding: var(--space-5); }
  .map-frame-wrap { min-height: 320px; }
  .error-actions { flex-direction: column; align-items: stretch; }
  .error-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  /* 对照表 → 卡片。
     不写 JS、也不复制第二份数据：<td> 上的 data-col 就是列名，
     ::before 直接把它显示出来当字段标签。表头整行藏掉。 */
  .tbl-wrap { overflow-x: visible; border-top: 0; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr {
    margin-bottom: var(--space-4);
    padding: var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: #fff;
  }
  .tbl tbody tr:hover { background: #fff; }
  .tbl th, .tbl td { padding: 0; border-bottom: 0; }
  .tbl .tbl-rowhead {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-body);
  }
  .tbl td { display: grid; grid-template-columns: 34% 1fr; gap: var(--space-3); padding: var(--space-2) 0; }
  .tbl td::before { content: attr(data-col); color: var(--ink-faint); font-size: var(--fs-caption); letter-spacing: .04em; }
  .tbl-blank { display: none; }

  /* 步骤横向排布在窄屏本来就靠折行，展开区跟着占满一行 */
  .steps--timeline .step-detail { margin-left: 0; }
  .steps--timeline .step-summary { grid-template-columns: 44px 1fr; }
}

/* ==========================================================================
   X. 页面版式模板
   ==========================================================================
   模板只改容器宽度和留白节奏，不动任何内容 —— 所以运营换模板不会丢东西。
   类名加在 <body> 上（见 layout.js），靠 CSS 变量下传即可，无需 JS 参与。
   -------------------------------------------------------------------------- */

body.tpl-wide { --max: 1440px; }
body.tpl-wide .block { padding: var(--space-10) 0 calc(var(--space-10) + var(--space-6)); }
body.tpl-wide .block-head { max-width: 72ch; }

body.tpl-compact { --space-9: 64px; --space-10: 80px; }
body.tpl-compact .block { padding: var(--space-7) 0 var(--space-8); }
body.tpl-compact .block-head { margin-bottom: var(--space-6); }

body.tpl-doc { --max: 860px; }
body.tpl-doc .cards,
body.tpl-doc .steps { grid-template-columns: 1fr; }
body.tpl-doc .cards > .card:nth-child(even) { margin-top: 0; }
body.tpl-doc .card { grid-column: span 12 !important; }

/* 落地页：去掉页脚导航列，只留品牌与版权，减少页面末尾的分流 */
body.tpl-landing .footer-nav { display: none; }
body.tpl-landing .footer-top { grid-template-columns: 1fr; }

/* ==========================================================================
   XI. 区块版式变体
   ========================================================================== */

/* 卡片：等宽栅格 —— 全部占 6 列，去掉错位节奏 */
.cards--even > .card { grid-column: span 6 !important; margin-top: 0 !important; }
.cards--even > .card .card-media img { aspect-ratio: 16 / 9 !important; }

/* 卡片：横向列表 —— 一行一个，左图右文，信息密度高 */
.cards--list { grid-template-columns: 1fr; }
.cards--list > .card { grid-column: span 12 !important; margin-top: 0 !important; flex-direction: row; align-items: stretch; }
.cards--list > .card .card-media { flex: 0 0 34%; }
.cards--list > .card .card-media img { height: 100%; aspect-ratio: auto !important; }
.cards--list > .card .card-body { justify-content: center; }

/* 流程步骤：纵向时间线 */
.steps--timeline { grid-template-columns: 1fr; gap: 0; }
.steps--timeline .step { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); padding: var(--space-5) 0 var(--space-5) 0; border-top: 1px solid var(--line); }
.steps--timeline .step:first-child { border-top: 0; }
.steps--timeline .step-num { grid-row: span 2; }
.steps--timeline .step-title { grid-column: 2; }
.steps--timeline .step-note { grid-column: 2; }

/* 首屏：全屏高度 */
.hero--tall { min-height: 100svh; }

/* 卡片配图：悬停换图。两张图叠在一起，靠透明度切 —— 不写 JS。 */
.img-reveal { position: relative; }
.img-reveal img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.img-reveal .img-reveal-top {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}
.card:hover .img-reveal .img-reveal-top,
.news-card:hover .img-reveal .img-reveal-top { opacity: 1; }

/* 流程步骤：可展开。用 <details>，键盘能开、读屏能读。 */
.steps--expandable { align-items: start; }
/* .step 自己靠 border-top 做分隔，<details> 在它内部就不要再画一条。
   summary 保持真实盒子，既方便键盘操作，也让触屏和浏览器自动化有明确点击区域。 */
.step-fold { display: block; }
.step-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  list-style: none;
  cursor: pointer;
}
.step-summary::-webkit-details-marker { display: none; }
.steps--expandable .step-summary .step-num,
.steps--expandable .step-summary .step-title,
.steps--expandable .step-summary .step-note,
.steps--expandable .step-summary .step-more { grid-column: 1 / -1; }
.step-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-2);
  color: var(--teal-deep);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .2s ease;
}
.step-more-i { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.step-summary:hover .step-more { color: var(--ink); }
.steps--expandable .step--more details[open] .step-more-i { transform: rotate(180deg); }
.steps--expandable .step--more details[open] .step-more { color: var(--ink-soft); }
.step-detail {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.75;
}
/* 时间线版式下编号占左列，标题/说明/展开按钮叠在右列。
   要比上面的 `grid-column: 1 / -1` 更具体，否则展开形态会把编号也拉满整行。 */
.steps--timeline .step-fold { display: block; }
.steps--timeline .step-summary { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--space-4); }
.steps--timeline .step-summary .step-num { grid-column: 1; grid-row: 1 / span 4; }
.steps--timeline .step-summary .step-title,
.steps--timeline .step-summary .step-note,
.steps--timeline .step-summary .step-more { grid-column: 2; }
.steps--timeline .step-detail { margin-left: calc(56px + var(--space-4)); }

/* ==========================================================================
   XII. 无限级下拉菜单
   ==========================================================================
   二级项自己带下级时，面板从「扁平链接列表」切成「分组列」：
   二级项当分组标题，三级及以下列在标题下面，再深就继续缩进。
   -------------------------------------------------------------------------- */

.nav-panel-grid--grouped { grid-template-columns: 220px 1fr; }
.nav-panel-group { display: grid; gap: 6px; align-content: start; }
.nav-panel-group-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s ease;
}
.nav-panel-group-title:hover { color: var(--teal-deep); }

.nav-sublist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-sublist--d3 { margin-top: 4px; }
/* 四级以上统一靠左缩进，层级越深越轻，避免视觉上糊成一团 */
.nav-sublist--d4, .nav-sublist--d5 { margin-left: 14px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-subitem { display: grid; gap: 2px; }
.nav-subitem-link {
  display: block;
  padding: 5px 8px;
  border-radius: var(--r-btn);
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .2s ease, color .2s ease;
}
.nav-subitem-link:hover { color: var(--teal-deep); background: var(--mist); }
.nav-subitem-hint { display: block; padding: 0 8px; color: var(--ink-faint); font-size: var(--fs-caption); }

/* ==========================================================================
   XIII. 预览模式提示带
   ========================================================================== */

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px var(--gutter);
  background: #7a4b00;
  color: #fff8e6;
  font-size: 13.5px;
  line-height: 1.6;
}
.preview-banner strong {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: 12px;
  letter-spacing: .06em;
}
.preview-banner a { color: #fff; text-decoration: underline; margin-left: auto; }

@media (max-width: 900px) {
  .cards--list > .card { flex-direction: column; }
  .cards--list > .card .card-media { flex: none; }
  .cards--list > .card .card-media img { aspect-ratio: 16 / 9 !important; }
  .nav-panel-grid--grouped { grid-template-columns: 1fr; }
  .nav-sublist--d4, .nav-sublist--d5 { margin-left: 8px; }
  .preview-banner { font-size: 12.5px; }
  .preview-banner a { margin-left: 0; }
}
