@charset "utf-8";
/* ==========================================================================
   如懿科技官网 · 设计令牌
   主色 #146AA3（客户指定）· 辅色 #007A8F（取自 logo 实测主色）
   全部色阶由 theme-studio/ramp.py 生成，报告见 doc/palette-theme-studio.txt：
     python3 ramp.py primary=#146AA3 teal=#007A8F amber=#E1913C \
             --neutral slate:210:12 --bg "#F6F9FC"
   品牌原色逐位保留：primary-600 / teal-700 / amber-400 不可改。
   ========================================================================== */

:root {
  /* ── §1 原始色阶（theme-studio 生成，勿手改） ───────────────────────── */
  --primary-50:  #EDF6FD;
  --primary-100: #D7ECF9;
  --primary-200: #BADCF3;
  --primary-300: #89C2E8;
  --primary-400: #3FA1E2;
  --primary-500: #187EC2;
  --primary-600: #146AA3;   /* 品牌原色，不可改 */
  --primary-700: #0A5687;
  --primary-800: #0B4267;
  --primary-900: #0C2F45;

  --teal-50:  #EBFCFF;
  --teal-100: #D2F8FE;
  --teal-200: #B2F0FB;
  --teal-300: #7AE3F6;
  --teal-400: #25D9F8;
  --teal-500: #00B7D6;
  --teal-600: #0098B3;
  --teal-700: #007A8F;      /* logo 实测主色，不可改 */
  --teal-800: #006070;
  --teal-900: #04434E;

  --amber-50:  #FCF5EE;
  --amber-100: #F8E9D8;
  --amber-200: #F1D7BB;
  --amber-300: #E5B98A;
  --amber-400: #E1913C;     /* 强调原色，不可改 */
  --amber-500: #B96D1D;
  --amber-600: #9E5B14;
  --amber-700: #81490E;
  --amber-800: #62390E;
  --amber-900: #442A0E;

  --slate-50:  #F4F5F6;
  --slate-100: #E5E8EB;
  --slate-200: #D2D6DB;
  --slate-300: #B0B8BF;
  --slate-400: #828F9B;
  --slate-500: #5E6B78;
  --slate-600: #4E5965;
  --slate-700: #3E4751;
  --slate-800: #31383F;
  --slate-900: #24292D;

  /* ── §2 语义角色（按 ramp.py 对比度报告选级，注释里是实测比值） ─────── */
  --brand:            var(--primary-600);            /* 白字 5.80:1 ✓ */
  --brand-hover:      var(--primary-700);
  --brand-active:     var(--primary-800);
  --brand-text:       var(--primary-600);            /* 对 #F6F9FC 5.49:1 ✓ */
  --brand-text-soft:  var(--primary-500);
  --brand-soft:       var(--primary-50);
  --brand-soft-line:  var(--primary-200);
  --on-brand:         #FFFFFF;

  --accent:           var(--teal-700);               /* 白字 5.02:1 ✓ */
  --accent-hover:     var(--teal-800);
  --accent-text:      var(--teal-700);               /* 对 #F6F9FC 4.75:1 ✓ */
  --accent-soft:      var(--teal-50);
  --accent-glow:      var(--teal-400);               /* 只做深底上的发光，不承载文字 */
  --on-accent:        #FFFFFF;

  --highlight:        var(--amber-400);              /* 只做深底上的强调 / 深字填色 5.71:1 ✓ */
  --highlight-text:   var(--amber-600);              /* 浅底上的文字用 600，5.03:1 ✓ */
  --on-highlight:     var(--slate-900);

  --success: #0E7C4A;
  --danger:  #C43D3D;
  --warning: var(--amber-600);
  --info:    var(--primary-600);

  /* 表面与文字 */
  --bg:            #F6F9FC;
  --bg-alt:        #FFFFFF;
  --surface:       #FFFFFF;
  --surface-2:     var(--slate-50);
  --surface-sunk:  #EEF3F8;
  --line:          #E2E8EF;
  --line-strong:   var(--slate-200);
  --ink:           #16222C;                          /* 对 --bg 13.6:1 */
  --ink-2:         var(--slate-600);                 /* 6.77:1 */
  --ink-3:         var(--slate-500);                 /* 5.17:1 */
  --ink-invert:    #FFFFFF;

  /* 深色区块（hero / footer / CTA），文字一律用 --ink-on-dark */
  --dark:          #0A2334;   /* = primary-900 77% 混黑 */
  --dark-2:        var(--primary-900);
  --dark-3:        var(--primary-800);
  /* 渐变深阶：hero / CTA 渐变的端点，由 primary-900 按比例混黑派生（注释里是公式）。
     req §13 定的规矩：渐变色不手拍，全部从 ramp 色阶推导。
     ⚠️ 故意写解出来的字面值、不写 color-mix()：这些 token 垫在白字底下，
     旧 WebView / 微信内置浏览器不认 color-mix 时整条 background 会失效成白底白字。 */
  --grad-hi:       #0B2A3E;   /* = primary-900 90% 混黑 */
  --grad-mid:      #07222F;   /* ≈ primary-900 68% 混黑 */
  --grad-lo:       #071A27;   /* = primary-900 56% 混黑 */
  --ink-on-dark:   #EAF3FA;
  --ink-on-dark-2: #A9C4D8;
  --line-on-dark:  rgba(255, 255, 255, .13);

  /* ── §3 形状 ─────────────────────────────────────────────────────── */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* ── §4 深度 ─────────────────────────────────────────────────────── */
  --shadow-xs: 0 1px 2px rgba(12, 47, 69, .06);
  --shadow-sm: 0 2px 8px rgba(12, 47, 69, .06), 0 1px 2px rgba(12, 47, 69, .04);
  --shadow:    0 8px 24px rgba(12, 47, 69, .08), 0 2px 6px rgba(12, 47, 69, .04);
  --shadow-lg: 0 24px 56px rgba(12, 47, 69, .14), 0 6px 16px rgba(12, 47, 69, .06);
  --ring:      0 0 0 3px rgba(20, 106, 163, .28);

  /* ── §5 字体 ──────────────────────────────────────────────────────
     不引用任何外部字体：Google Fonts 在中国大陆不可达，且每一个外链
     都是一次可被劫持的请求。全部走系统字体栈。 */
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
                  "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
                  system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    var(--font-display);
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                  "Liberation Mono", monospace;

  /* ── §6 节奏 ─────────────────────────────────────────────────────── */
  --spacing: 4px;
  --page-max: 1200px;
  --page-pad: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ── 深色偏好：只翻语义层，原始色阶一律不动 ──────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #0B1B26;
    --bg-alt:       #0E2230;
    --surface:      #102734;
    --surface-2:    #14303F;
    --surface-sunk: #0A1822;
    --line:         rgba(255, 255, 255, .10);
    --line-strong:  rgba(255, 255, 255, .18);
    --ink:          #E8F1F8;
    --ink-2:        #A9C0D0;
    --ink-3:        #8AA3B5;

    --brand:        var(--primary-500);
    --brand-hover:  var(--primary-400);
    --brand-text:   var(--primary-300);
    --brand-soft:   rgba(24, 126, 194, .14);
    --brand-soft-line: rgba(24, 126, 194, .30);

    --accent:       var(--teal-600);
    --accent-hover: var(--teal-500);
    --accent-text:  var(--teal-400);
    --accent-soft:  rgba(0, 152, 179, .14);

    --highlight-text: var(--amber-300);

    --dark:   #08151E;         /* ≈ primary-900 45% 混黑（同上：故意写字面值） */
    --dark-2: var(--grad-lo);  /* = #071A27 */
    --dark-3: #0A2434;         /* ≈ primary-900 76% 混黑 */

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .40);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .34);
    --shadow:    0 10px 28px rgba(0, 0, 0, .42);
    --shadow-lg: 0 28px 64px rgba(0, 0, 0, .55);
  }
}

/* ==========================================================================
   如懿科技官网 · 版式
   手写 CSS，零框架、零外链。所有颜色走 tokens.css 的语义角色。
   ========================================================================== */

/* ── 复位 ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.65rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 2.1vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-xs); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--primary-200); color: var(--primary-900); }

.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: var(--radius-sm); transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--on-brand); }

/* ── 布局 ──────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--page-pad); }
.wrap-wide { max-width: 1380px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--alt { background: var(--bg-alt); }
.section--sunk { background: var(--surface-sunk); }
.section--dark { background: var(--dark); color: var(--ink-on-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--ink-on-dark); }
.section--dark p { color: var(--ink-on-dark-2); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

/* ── 标题组 ────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section--dark .eyebrow { color: var(--teal-300); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.lede { font-size: clamp(1rem, .96rem + .3vw, 1.16rem); color: var(--ink-2); margin: 0; }
.section--dark .lede { color: var(--ink-on-dark-2); }

/* ── 按钮 ──────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--brand); --btn-fg: var(--on-brand); --btn-line: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--radius-pill);
  font-size: .95rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  border: 1px solid var(--btn-line); background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .18s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { --btn-bg: var(--brand); }
.btn--primary:hover { --btn-bg: var(--brand-hover); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn--accent:hover { --btn-bg: var(--accent-hover); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-line: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-fg: var(--brand-text); }
.btn--on-dark { --btn-bg: rgba(255,255,255,.08); --btn-fg: var(--ink-on-dark); --btn-line: var(--line-on-dark); }
.btn--on-dark:hover { --btn-bg: rgba(255,255,255,.16); --btn-fg: #fff; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .93rem; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ── 页头 ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-xs); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand:hover { color: inherit; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; letter-spacing: .01em; color: var(--ink); line-height: 1.1; }
.brand-sub { display: block; font-size: .58rem; font-weight: 700; letter-spacing: .22em; color: var(--ink-3); text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px; border-radius: var(--radius-pill);
  font-size: .93rem; font-weight: 550; color: var(--ink-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand-text); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* 语言切换 */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink-2); font: inherit; font-size: .87rem; font-weight: 600; cursor: pointer;
}
.lang-btn:hover { color: var(--ink); border-color: var(--brand-soft-line); }
.lang-btn svg { width: 15px; height: 15px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: var(--radius-xs);
  font-size: .9rem; color: var(--ink-2);
}
.lang-menu a:hover { background: var(--surface-2); color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--brand-text); font-weight: 650; }
.lang-menu .tick { width: 15px; height: 15px; opacity: 0; }
.lang-menu a[aria-current="true"] .tick { opacity: 1; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface);
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.burger svg { width: 20px; height: 20px; }

@media (max-width: 1040px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 70px 0 auto; flex-direction: column; align-items: stretch;
    gap: 2px; margin: 0; padding: 14px var(--page-pad) 26px;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    max-height: calc(100dvh - 70px); overflow-y: auto;
  }
  .site-header.is-open .nav { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 13px 14px; font-size: 1rem; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: clip;
  /* 透明层写 rgba 字面值（= teal-600 @34% / primary-500 @30%）：
     color-mix 在旧 WebView 会让整条 background 失效，这底下压着白字 */
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(0, 152, 179, .34), transparent 58%),
    radial-gradient(90% 80% at 8% 92%, rgba(24, 126, 194, .30), transparent 60%),
    linear-gradient(168deg, var(--grad-hi) 0%, var(--primary-900) 46%, var(--grad-lo) 100%);
  color: var(--ink-on-dark);
  padding-block: clamp(72px, 11vw, 148px) clamp(64px, 9vw, 120px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(85% 70% at 50% 34%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(85% 70% at 50% 34%, #000 30%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -34%;
  width: min(1100px, 130vw); aspect-ratio: 1; transform: translateX(-50%);
  background: conic-gradient(from 210deg, transparent 0deg, rgba(37, 217, 248, .13) 70deg, transparent 150deg, rgba(24, 126, 194, .15) 240deg, transparent 330deg); /* teal-400 @13% / primary-500 @15% */
  border-radius: 50%; filter: blur(8px); animation: spin 44s linear infinite;
}
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }

.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .grad {
  background: linear-gradient(96deg, var(--teal-300) 6%, var(--primary-400) 52%, var(--primary-200) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-echo {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal-300); opacity: .88; margin: 0 0 14px;
}
.hero-lede { font-size: clamp(1.02rem, .95rem + .5vw, 1.24rem); color: var(--ink-on-dark-2); max-width: 62ch; margin-bottom: 34px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 9px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.07); border: 1px solid var(--line-on-dark);
  font-size: .82rem; font-weight: 600; color: var(--ink-on-dark); margin-bottom: 26px;
}
.pill b { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--teal-500); color: #04222B; /* = teal-900 55% 混黑 */ font-size: .72rem; font-weight: 800; letter-spacing: .04em; }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 18px 22px; border-top: 1px solid var(--line-on-dark); padding-top: 26px; }
.stat-strip dt { font-size: clamp(1.4rem, 1rem + 1.2vw, 1.95rem); font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; line-height: 1.15; letter-spacing: -.02em; }
.stat-strip dt small { font-size: .5em; font-weight: 700; margin-left: 2px; color: var(--teal-300); }
.stat-strip dd { margin: 3px 0 0; font-size: .8rem; line-height: 1.45; color: var(--ink-on-dark-2); }
@media (max-width: 560px) { .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Hero 里的产品栈示意 */
.stack { display: grid; gap: 8px; }
/* 入场错落：纯 CSS 动画（不走 .reveal，避免与 hover 位移打架；无 JS 也会播） */
@media (prefers-reduced-motion: no-preference) {
  .stack > * { animation: stack-in .55s var(--ease-out) backwards; }
  .stack > :nth-child(1) { animation-delay: .08s; }
  .stack > :nth-child(2) { animation-delay: .16s; }
  .stack > :nth-child(3) { animation-delay: .24s; }
  .stack > :nth-child(4) { animation-delay: .32s; }
  .stack > :nth-child(5) { animation-delay: .40s; }
  .stack > :nth-child(6) { animation-delay: .48s; }
  .stack > :nth-child(7) { animation-delay: .56s; }
  .stack > :nth-child(8) { animation-delay: .64s; }
}
@keyframes stack-in { from { opacity: 0; transform: translateY(14px); } }
.stack-row { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack-cell {
  padding: 11px 10px; border-radius: var(--radius); text-align: center;
  background: rgba(255,255,255,.055); border: 1px solid var(--line-on-dark);
  backdrop-filter: blur(6px);
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.stack-cell:hover { transform: translateY(-3px); background: rgba(255,255,255,.11); border-color: rgba(122, 227, 246, .4); /* teal-300 @40% */ }
.stack-cell b { display: block; font-size: .84rem; color: #fff; font-weight: 700; letter-spacing: .02em; }
.stack-cell span { display: block; font-size: .69rem; line-height: 1.4; color: var(--ink-on-dark-2); }
.stack-cell--wide { grid-column: 1 / -1; padding: 12px 14px; text-align: left; background: rgba(0, 152, 179, .18); border-color: rgba(122, 227, 246, .3); /* teal-600 @18% / teal-300 @30% */ }
.stack-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-on-dark-2); font-weight: 700; margin: 6px 0 2px; }

/* ── 卡片 ──────────────────────────────────────────────────────────── */
.card {
  --card-pad: clamp(20px, 2.4vw, 30px);
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--card-pad);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-soft-line); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-2); margin-bottom: 0; font-size: .95rem; }
.card > :last-child { margin-bottom: 0; }

.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--radius-sm); margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand-text); border: 1px solid var(--brand-soft-line);
}
.ico svg { width: 23px; height: 23px; }
.ico--accent { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 24%, transparent); }
.ico--amber  { background: var(--amber-50); color: var(--highlight-text); border-color: var(--amber-200); }
.ico--dark { background: rgba(255,255,255,.07); color: var(--teal-300); border-color: var(--line-on-dark); }

/* 产品线卡 */
.line-card {
  display: flex; flex-direction: column; gap: 16px; overflow: hidden;
}
.line-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0; transition: opacity .26s var(--ease);
}
.line-card--hover:hover::before, .line-card.card--hover:hover::before { opacity: 1; }
.line-card .count { font-size: .78rem; font-weight: 700; color: var(--ink-3); letter-spacing: .08em; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 4px; }
.chip {
  display: inline-flex; align-items: center; padding: 5px 11px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: .78rem; font-weight: 600; color: var(--ink-2);
}
.chip--brand { background: var(--brand-soft); border-color: var(--brand-soft-line); color: var(--brand-text); }
.chip--accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); }

/* 产品卡（列表页 / 产品页） */
.prod-card { display: flex; flex-direction: column; height: 100%; }
/* 卡顶配图：出血到卡边，16:10 顶部对齐裁切 */
.prod-shot {
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 18px;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  overflow: hidden; border-bottom: 1px solid var(--line);
  background: var(--dark);
}
.prod-shot img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  transition: transform .45s var(--ease-out);
}
.card--hover:hover .prod-shot img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .card--hover:hover .prod-shot img { transform: none; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .prod-shot img { filter: brightness(.9); }
}
.prod-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.prod-head .ico { margin-bottom: 0; flex: none; }
.prod-code {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-text); display: block; margin-bottom: 2px;
}
.prod-card h3 { font-size: 1.16rem; margin: 0; }
.prod-card .tagline { color: var(--ink-2); font-size: .95rem; margin: 0 0 16px; }
.feat-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.feat-list li { position: relative; padding-left: 24px; font-size: .9rem; color: var(--ink-2); line-height: 1.6; }
.feat-list li::before {
  content: ""; position: absolute; left: 4px; top: .58em; width: 7px; height: 7px;
  border-radius: 2px; background: linear-gradient(135deg, var(--accent), var(--brand));
}
.prod-card .chip-row { margin-top: auto; }

/* 强调条 */
.callout {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 24px; border-radius: var(--radius);
  background: var(--brand-soft); border: 1px solid var(--brand-soft-line);
}
.callout svg { width: 22px; height: 22px; flex: none; color: var(--brand-text); margin-top: 3px; }
.callout p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.callout strong { color: var(--ink); }

/* ── 数据权威 / 流程图 ─────────────────────────────────────────────── */
.flow { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); counter-reset: step; }
.flow-step {
  position: relative; padding: 24px 20px 20px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.flow-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  color: var(--accent-text); display: block; margin-bottom: 10px;
}
.flow-step h4 { margin-bottom: 6px; }
.flow-step p { font-size: .88rem; color: var(--ink-2); margin: 0; }
.section--dark .flow-step { background: rgba(255,255,255,.045); border-color: var(--line-on-dark); }
.section--dark .flow-step::before { color: var(--teal-300); }
.section--dark .flow-step p { color: var(--ink-on-dark-2); }

/* ── Tabs（解决方案） ─────────────────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: all .18s var(--ease);
}
.tab:hover { color: var(--ink); border-color: var(--brand-soft-line); }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tab-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .tab-panel { animation: fade .32s var(--ease-out); }
}
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── 技术底座 ──────────────────────────────────────────────────────── */
.tech-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tech {
  padding: 16px 18px; border-radius: var(--radius); text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-on-dark);
}
.tech b { display: block; font-size: .98rem; color: #fff; }
.tech span { font-size: .78rem; color: var(--ink-on-dark-2); }

/* ── 数字 ──────────────────────────────────────────────────────────── */
.metrics { display: grid; gap: clamp(18px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; }
.metric dt { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  background: linear-gradient(140deg, var(--brand-text), var(--accent-text)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; }
.metric dd { margin: 6px 0 0; font-size: .9rem; color: var(--ink-2); }

/* ── CTA 带 ────────────────────────────────────────────────────────── */
.cta-band {
  position: relative; overflow: clip; border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 64px);
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 55%, var(--grad-mid) 100%);
  color: var(--ink-on-dark); text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 160%;
  background: radial-gradient(50% 50% at 50% 0%, rgba(0, 183, 214, .30), transparent 70%); /* teal-500 @30% */
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--ink-on-dark-2); max-width: 58ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* ── 表单 ──────────────────────────────────────────────────────────── */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 38px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 650; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: .8rem; color: var(--ink-3); margin-top: 6px; }
.input, .textarea, .select {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg-alt); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.textarea { min-height: 132px; resize: vertical; line-height: 1.7; }
.select { appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6B78' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 17px; }
.field-row { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); }
.consent input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .82rem; color: var(--ink-3); margin: 14px 0 0; }
.form-msg { margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: .9rem; display: none; }
.form-msg.is-on { display: block; }
.form-msg--ok { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.form-msg--err { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent); }
.field-err { border-color: var(--danger) !important; }

/* 联系信息块 */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { width: 40px; height: 40px; margin: 0; flex: none; }
.contact-list .ico svg { width: 19px; height: 19px; }
.contact-list b { display: block; font-size: .82rem; color: var(--ink-3); font-weight: 650; }
.contact-list span, .contact-list a { font-size: .98rem; color: var(--ink); }

/* ── 文章型页面（关于 / 隐私） ───────────────────────────────────── */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--ink); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; margin: 0; font-size: .95rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .kv { grid-template-columns: minmax(0,1fr); gap: 2px 0; } .kv dd { margin-bottom: 12px; } }

/* ── 面包屑 ────────────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink-3); margin-bottom: 18px; list-style: none; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand-text); }

/* 页头横幅（内页） */
.page-hero {
  background:
    radial-gradient(90% 130% at 88% -10%, rgba(0,152,179,.16), transparent 60%),
    linear-gradient(180deg, var(--surface-sunk), var(--bg));
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 78px) clamp(36px, 5vw, 62px);
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lede { max-width: 72ch; }

/* ── 页脚 ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: var(--ink-on-dark-2); padding-block: clamp(48px, 6vw, 76px) 0; }
.footer-grid { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .04em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--ink-on-dark-2); font-size: .89rem; }
.site-footer a:hover { color: #fff; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; max-width: 34ch; color: var(--ink-on-dark-2); }
.footer-legal {
  margin-top: clamp(34px, 4vw, 52px); border-top: 1px solid var(--line-on-dark);
  padding-block: 22px 26px; display: flex; flex-wrap: wrap; gap: 8px 18px;
  align-items: center; justify-content: center; text-align: center;
  font-size: .84rem; color: var(--ink-on-dark-2);
}
.footer-legal a { color: var(--ink-on-dark-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: #fff; }

/* ── 滚动进场 ──────────────────────────────────────────────────────── */
/* 隐藏态只在「脚本开着 + 不排斥动效」时启用（CSP script-src 'self' 禁 inline，
   不能用 <head> 里加类那招）。禁 JS / 旧浏览器 / reduced-motion 一律直接看到内容。 */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .reveal.is-in { opacity: 1; transform: none; }
  /* .reveal.is-in 的 transform:none 与 .card--hover:hover 同特异性且更靠后，
     会吃掉卡片 hover 上浮（上线以来就有的存量 bug）——这里显式赢回来 */
  .card--hover.reveal.is-in:hover { transform: translateY(-4px); }
}

/* 打印 */
@media print {
  .site-header, .site-footer, .hero::after, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  /* (scripting: enabled) 在打印上下文同样命中，未被 IO 点亮的 .reveal 会整块印空 */
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── 浮动咨询按钮 ──────────────────────────────────────────────────
   右下角常驻，点击去留言页。留言页本身不渲染它（见 layout.mjs consultFab）。
   z-index 90：压在内容之上，但**低于页头的 100** —— 否则手机端展开导航抽屉时
   这颗球会浮在抽屉上面。 */
.fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: var(--on-brand);
  font-size: .95rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(12, 47, 69, .28), 0 2px 8px rgba(12, 47, 69, .18);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: transform .2s var(--ease), box-shadow .22s var(--ease), filter .2s var(--ease);
  /* 刘海屏 / 手势条：别贴到系统 UI 上 */
  margin-bottom: env(safe-area-inset-bottom, 0px);
}
.fab:hover {
  color: var(--on-brand);
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 36px rgba(12, 47, 69, .34), 0 3px 10px rgba(12, 47, 69, .2);
}
.fab:active { transform: translateY(0); }
.fab svg { width: 18px; height: 18px; flex: none; }

/* 进场：轻微上浮一下，让它被注意到但不喧宾夺主 */
@keyframes fab-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fab { animation: fab-in .4s var(--ease-out) .35s both; }
@media (prefers-reduced-motion: reduce) {
  .fab { animation: none; transition: none; }
  .fab:hover { transform: none; }
}

/* 窄屏只收紧尺寸，**不藏文字**：一个光秃秃的聊天气泡容易被当成「在线客服 / AI 对话」，
   而这颗球其实是跳到留言表单。字必须留着。 */
@media (max-width: 420px) {
  .fab { padding: 11px 16px; font-size: .9rem; gap: 7px; }
  .fab svg { width: 17px; height: 17px; }
}

/* 页脚给浮动按钮让位。
   实测过：英文页在 360px 上「Enquire」比「咨询」宽 26px，**正好压住备案号** ——
   而备案号是必须可见的合规元素。所以不靠「按钮够窄」来避让，直接在页脚底部
   预留出「按钮高度 + 上下间距」，任何语言、任何宽度都压不到。
   只对真的渲染了按钮的页面生效（/contact/ 没有按钮，不该平白多一截空白）。 */
body.has-fab .footer-legal {
  padding-bottom: calc(26px + 46px + clamp(16px, 3vw, 28px) + env(safe-area-inset-bottom, 0px));
}

/* 打印时不要这颗球 */
@media print { .fab { display: none !important; } }
