/* ==========================================================================
   Fluxboard — 核心样式
   设计取向：温暖编辑风（warm editorial），刻意避开
   "紫色渐变 + 闪光图标 + 浮动仪表盘" 的 AI 创业公司模板脸。
   趋势取舍：排版驱动(D) · 克制的滚动叙事(D) · 颗粒质感(D) · 深色模式(D)
             未采用：玻璃拟态(陈旧) · 自定义光标(易惹人烦) · 逐元素入场动画(拖慢感知)
   ========================================================================== */

/* ── 设计令牌 ─────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* 色彩：全部用 oklch()，感知均匀，且在 P3 屏幕上不过曝 */
  --bg:            oklch(0.972 0.009 84);
  --bg-tint:       oklch(0.946 0.013 82);
  --surface:       oklch(0.994 0.005 90);
  --surface-2:     oklch(0.962 0.011 84);
  --line:          oklch(0.885 0.016 80);
  --line-strong:   oklch(0.600 0.024 74);   /* 3.66:1 —— 按钮/输入框边框需达 3:1 */

  --ink:           oklch(0.235 0.020 64);
  --ink-2:         oklch(0.405 0.020 62);
  --ink-3:         oklch(0.520 0.020 60);   /* 4.73:1 on bg-tint */

  /* 强调色分两种角色，是刻意的：
     accent 用于「色块 + 浅色文字」（按钮），必须够深才能保证文字对比度；
     accent-line 用于图表线条等图形，需要更亮才看得清。
     同一支橙色在不同角色上无法同时达标 —— 这是实测出来的，不是拍脑袋。 */
  --accent:        oklch(0.525 0.130 38);   /* 奶白文字在其上 = 5.15:1 */
  --accent-hi:     oklch(0.470 0.128 38);   /* hover 加深，文字对比度升到 6.94:1 */
  --accent-line:   oklch(0.620 0.160 45);   /* 图表 / 图形，非文字 */
  --accent-ink:    oklch(0.470 0.145 42);   /* 强调文字，6.19:1 on bg-tint */
  --on-accent:     oklch(0.985 0.010 85);
  --accent-soft:   oklch(0.575 0.150 45 / 0.10);

  --focus:         oklch(0.60 0.180 250);
  --good:          oklch(0.44 0.100 152);
  --bad:           oklch(0.53 0.150 27);

  /* 字体：正文 Inter，标题 Fraunces（变量字体，含光学尺寸轴） */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system,
               "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Fraunces", "Georgia", "Songti SC", "SimSun", ui-serif, serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;

  /* 流式字号：clamp 的上下界一律用 rem，尊重浏览器缩放（WCAG 1.4.4） */
  --t-h1:    clamp(2.45rem, 1.15rem + 5.6vw, 5.25rem);
  --t-h2:    clamp(1.75rem, 1.05rem + 2.8vw, 3.05rem);
  --t-h3:    clamp(1.16rem, 1.02rem + 0.55vw, 1.42rem);
  --t-lede:  clamp(1.03rem, 0.94rem + 0.42vw, 1.24rem);
  --t-body:  clamp(1rem, 0.97rem + 0.14vw, 1.06rem);
  --t-small: clamp(0.855rem, 0.83rem + 0.11vw, 0.9rem);

  /* 流式间距 */
  --s-1: 0.3rem;  --s-2: 0.55rem;  --s-3: 0.9rem;  --s-4: 1.35rem;
  --s-5: 2rem;    --s-6: 3rem;     --s-7: 4.5rem;  --s-8: 6.5rem;
  --gutter: clamp(1.15rem, 0.7rem + 2.2vw, 2.75rem);
  --section-y: clamp(4rem, 2.2rem + 7.5vw, 8.5rem);
  --measure: 62ch;

  /* 形状与节奏：圆角只有两档，避免"每个卡片都不一样" */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px oklch(0.30 0.02 60 / .06), 0 6px 20px oklch(0.30 0.02 60 / .05);
  --shadow-2: 0 2px 4px oklch(0.30 0.02 60 / .07), 0 18px 48px oklch(0.30 0.02 60 / .09);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur-micro: 140ms;
  --dur-base: 240ms;
  --dur-page: 380ms;

  /* 对勾图标（用于 mask，实心部分为可见色） */
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* 深色模式：不再依赖阴影表达层级，改用"底色分层的抬升" */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:            oklch(0.168 0.008 70);
  --bg-tint:       oklch(0.196 0.009 70);
  --surface:       oklch(0.226 0.010 70);
  --surface-2:     oklch(0.272 0.011 70);
  --line:          oklch(0.298 0.012 70);
  --line-strong:   oklch(0.600 0.014 70);   /* 深色模式下边框要更亮才看得见 */

  --ink:           oklch(0.935 0.010 84);
  --ink-2:         oklch(0.790 0.012 82);
  --ink-3:         oklch(0.655 0.013 80);

  --accent:        oklch(0.700 0.160 52);   /* 深墨文字在其上 = 6.67:1 */
  --accent-hi:     oklch(0.770 0.145 55);
  --accent-line:   oklch(0.700 0.160 52);
  --accent-ink:    oklch(0.770 0.150 56);   /* 8.14:1 on bg-tint */
  --on-accent:     oklch(0.180 0.012 70);
  --accent-soft:   oklch(0.700 0.160 52 / 0.16);

  --focus:         oklch(0.76 0.150 250);
  --good:          oklch(0.76 0.130 155);
  --bad:           oklch(0.72 0.140 27);

  --shadow-1: 0 1px 2px oklch(0 0 0 / .4);
  --shadow-2: 0 2px 6px oklch(0 0 0 / .45), 0 20px 50px oklch(0 0 0 / .35);

  /* 深色下对勾线要更亮才看得清 */
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23ffa257' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── 基础 ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.68;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:not(.btn):hover { color: var(--accent-ink); }

strong, b { font-weight: 620; }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--accent-soft); color: var(--ink); }

/* ── 工具类 ───────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

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

.skip {
  position: fixed; top: 0; left: 50%;
  transform: translate(-50%, -130%);
  z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: 0.65rem 1.15rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: var(--t-small); font-weight: 600;
  transition: transform var(--dur-micro) var(--ease);
}
.skip:focus { transform: translate(-50%, 0); color: var(--bg); }

.eyebrow {
  margin: 0 0 var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
:root[data-theme="dark"] .eyebrow { color: var(--accent-hi); }

.hl {
  position: relative;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: -0.06em; right: -0.06em; bottom: 0.06em;
  height: 0.34em;
  background: var(--accent-soft);
  border-radius: 2px;
  z-index: -1;
}

.up { color: var(--good); font-weight: 600; }
.down { color: var(--bad); font-weight: 600; }
.ok { color: var(--accent-ink); font-weight: 600; }

/* ── 按钮 ─────────────────────────────────────────────────────────────── */
.btn {
  --btn-py: 0.66rem;
  --btn-px: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;            /* 触控目标 */
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 580;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-align: center;
  transition:
    background-color var(--dur-micro) var(--ease),
    border-color var(--dur-micro) var(--ease),
    color var(--dur-micro) var(--ease),
    transform var(--dur-micro) var(--ease),
    box-shadow var(--dur-micro) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 2px oklch(0.35 0.10 45 / .25);
}
.btn--primary:hover {
  background: var(--accent-hi);
  color: var(--on-accent);
  box-shadow: 0 6px 18px oklch(0.45 0.13 48 / .28);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--ink-3);
  color: var(--ink);
}

.btn--lg { --btn-py: 0.85rem; --btn-px: 1.55rem; min-height: 52px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* ── 顶部导航 ─────────────────────────────────────────────────────────── */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .nav { backdrop-filter: blur(14px) saturate(160%); }
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 oklch(0.5 0.02 70 / .04);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 640;
  letter-spacing: -0.02em;
  flex: none;
}
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__mark rect { fill: var(--accent); }
.brand__mark path {
  fill: none; stroke: var(--on-accent);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.brand__word { font-size: 1.04rem; }

.nav__links {
  display: none;
  gap: var(--s-5);
  margin-inline-start: var(--s-5);
  font-size: 0.915rem;
  font-weight: 500;
  color: var(--ink-2);
}
.nav__links a {
  position: relative;
  padding-block: 0.35rem;
  transition: color var(--dur-micro) var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-base) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-inline-start: auto;
}
.nav__login { display: none; }

.themebtn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 0.7rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease),
              border-color var(--dur-micro) var(--ease),
              color var(--dur-micro) var(--ease);
}
.themebtn:hover { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.themebtn__icon {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round;
}
.themebtn__label { display: none; }
.themebtn[data-mode="dark"] .themebtn__icon circle { fill: currentColor; }

.burger {
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 17px; height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-micro) var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

.mobilenav {
  display: grid;
  gap: 0.15rem;
  padding: var(--s-3) var(--gutter) var(--s-5);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobilenav[hidden] { display: none; }
.mobilenav a {
  padding: 0.85rem 0.25rem;
  font-size: 1.02rem;
  font-weight: 520;
  border-bottom: 1px solid var(--line);
}
.mobilenav .btn { margin-top: var(--s-3); border-bottom: 0; }

/* ── 首屏 ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1rem + 6vw, 5.5rem) clamp(3rem, 2rem + 5vw, 6rem);
  overflow: clip;                    /* 绝不用 overflow:hidden —— 会掐死滚动时间线 */
}
.hero__texture {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 78%;
  z-index: -1;
  background:
    radial-gradient(52% 44% at 16% 12%, var(--accent-soft), transparent 68%),
    radial-gradient(42% 38% at 88% 4%, oklch(0.72 0.09 200 / .13), transparent 70%);
}

.hero__grid {
  display: grid;
  gap: clamp(2.4rem, 1rem + 5vw, 4rem);
  align-items: center;
}

.hero__title {
  font-size: var(--t-h1);
  font-weight: 640;
  letter-spacing: -0.034em;
  line-height: 1.02;
  max-width: 16ch;
}
.hero__title .hl::after { z-index: 0; }
.hero__title .hl { position: relative; z-index: 0; }

.hero__lede {
  margin-top: var(--s-4);
  max-width: 46ch;
  font-size: var(--t-lede);
  line-height: 1.62;
  color: var(--ink-2);
}
.hero__lede strong { color: var(--ink); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.hero__assure {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: var(--s-4);
  font-size: var(--t-small);
  color: var(--ink-3);
}
.hero__assure li { display: flex; align-items: center; gap: 0.42rem; }
.hero__assure li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ── 产品面板（示例界面）───────────────────────────────────────────── */
.panel {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.panel__chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex: none;
}
.dot:first-child { background: oklch(0.70 0.13 30 / .5); }
.panel__url {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel__body { padding: clamp(1rem, 0.6rem + 1.4vw, 1.6rem); }

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.panel__kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.panel__big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.panel__delta { font-size: var(--t-small); color: var(--ink-3); margin-top: 0.4rem; }

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.seg__btn {
  min-height: 30px;
  padding: 0 0.68rem;
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  color: var(--ink-3);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease);
}
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-on {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-1);
}

.chart {
  position: relative;
  margin-top: var(--s-4);
  color: var(--accent-line);   /* 图形角色：用更亮的橙，实测 3.8:1 */
}
.chart svg {
  display: block;
  width: 100%;
  height: clamp(96px, 20vw, 138px);
  overflow: visible;
}
.chart__line {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--len, 1200);
  transition: stroke-dashoffset 700ms var(--ease);
}
.chart__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-3);
}

.ptable {
  width: 100%;
  margin-top: var(--s-5);
  border-collapse: collapse;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}
.ptable th, .ptable td {
  padding: 0.52rem 0.4rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ptable thead th {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ptable th:first-child, .ptable td:first-child { text-align: left; font-weight: 520; }
.ptable tbody tr:last-child th, .ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr { transition: background-color var(--dur-micro) var(--ease); }
.ptable tbody tr:hover { background: var(--surface-2); }

.panel__cap {
  padding: 0.7rem clamp(1rem, 0.6rem + 1.4vw, 1.6rem);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.76rem;
  color: var(--ink-3);
}

/* ── 信任带 ───────────────────────────────────────────────────────────── */
.strip {
  border-block: 1px solid var(--line);
  background: var(--bg-tint);
  padding-block: clamp(1.8rem, 1rem + 2vw, 2.6rem);
}
.strip__inner {
  display: grid;
  gap: var(--s-4);
  align-items: center;
}
.strip__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.strip__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4) var(--s-5);
}
.strip__stats li { display: grid; gap: 0.1rem; }
.strip__stats b {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.strip__stats span { font-size: var(--t-small); color: var(--ink-3); }
.strip__note {
  font-size: 0.74rem;
  color: var(--ink-3);
  opacity: 0.85;
}

/* ── 区块骨架 ─────────────────────────────────────────────────────────── */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg-tint); border-block: 1px solid var(--line); }

.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 {
  font-size: var(--t-h2);
  font-weight: 620;
}
.sec-head--center h2 { margin-inline: auto; }
.sec-lede {
  margin-top: var(--s-3);
  max-width: 54ch;
  font-size: var(--t-lede);
  color: var(--ink-2);
}
.sec-head--center .sec-lede { margin-inline: auto; }

/* ── Bento：按内容权重分配尺寸，而不是随便做成不对称 ───────────────── */
.bento {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.2rem, 0.9rem + 1.1vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}
.card__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
:root[data-theme="dark"] .card__tag { color: var(--accent-hi); }
.card__title { font-size: var(--t-h3); font-weight: 600; }
.card__body { font-size: 0.94rem; color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: var(--s-3); }
.chips li {
  padding: 0.26rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
}

.mini {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line-strong);
  display: grid;
  gap: 0.5rem;
}
.mini__row {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.76rem; color: var(--ink-3);
}
.mini__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--good) 22%, transparent);
}
.mini__msg {
  padding: 0.7rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 2.5px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.mini__msg b { color: var(--ink); }

/* ── 步骤（编辑式编号时间线）───────────────────────────────────────── */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.step {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur-base) var(--ease);
}
.step__n {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--accent-ink);
}
:root[data-theme="dark"] .step__n { color: var(--accent-hi); }
.step h3 { font-size: var(--t-h3); font-weight: 600; }
.step p { font-size: 0.94rem; color: var(--ink-2); }
.step__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem !important;
  letter-spacing: 0.08em;
  color: var(--ink-3) !important;
}

/* ── 大引言：全幅编辑式段落，打破卡片节奏 ─────────────────────────── */
.pull {
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.pull__quote { margin: 0; max-width: 40ch; }
.pull__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 0.95rem + 2.5vw, 2.7rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.026em;
  text-wrap: balance;
}
/* 引号已在 HTML 里用「」，这里不再用伪元素重复加一次 */
.pull__quote footer {
  margin-top: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  font-size: var(--t-small);
  color: var(--ink-3);
}
.pull__quote cite { font-style: normal; font-weight: 620; color: var(--ink); }
.pull__note {
  margin-top: var(--s-4);
  font-size: 0.74rem;
  color: var(--ink-3);
  opacity: 0.85;
}

/* ── 定价 ─────────────────────────────────────────────────────────────── */
.billing { display: flex; justify-content: center; margin-bottom: var(--s-5); }
.switch {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 1.05rem;
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  color: var(--ink-3);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 520;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.switch__btn:hover { color: var(--ink); }
.switch__btn.is-on {
  background: var(--surface);
  color: var(--ink);
  font-weight: 620;
  box-shadow: var(--shadow-1);
}
.switch__save {
  padding: 0.12rem 0.42rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 620;
}
:root[data-theme="dark"] .switch__save { color: var(--accent-hi); }
.switch__btn.is-on .switch__save { background: var(--accent); color: var(--on-accent); }

.plans {
  display: grid;
  gap: var(--s-3);
  align-items: start;
}
.plan {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.plan:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.plan--hot {
  border-color: var(--accent);
  box-shadow: var(--shadow-2);
}
.plan__flag {
  position: absolute;
  top: -0.72rem; left: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  padding: 0.2rem 0.62rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 640;
  letter-spacing: 0.02em;
}
.plan__name { font-size: 1.12rem; font-weight: 620; }
.plan__for { font-size: var(--t-small); color: var(--ink-3); min-height: 2.6em; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.16rem;
  margin-top: var(--s-2);
  font-family: var(--font-display);
  font-weight: 640;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.plan__cur { font-size: 1.05rem; align-self: flex-start; margin-top: 0.35rem; }
.plan__num { font-size: clamp(2.05rem, 1.5rem + 2vw, 2.7rem); line-height: 1; }
.plan__per { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan__price--ask { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.plan__bill { font-size: 0.78rem; color: var(--ink-3); min-height: 1.4em; }
.plan .btn { margin-top: var(--s-3); }

.plan__list {
  display: grid;
  gap: 0.5rem;
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.plan__list li { display: flex; gap: 0.55rem; align-items: flex-start; }
.plan__list li::before {
  content: "";
  flex: none;
  width: 15px; height: 15px;
  margin-top: 0.34em;
  border-radius: 50%;
  background-color: var(--accent-soft);
  /* 用 mask 画真正的对勾，避免用渐变拼一个看起来像横杠的"勾" */
  -webkit-mask-image: var(--check);
  mask-image: var(--check);
  -webkit-mask-size: 15px 15px;
  mask-size: 15px 15px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
@supports not (mask-image: url("")) {
  .plan__list li::before {
    background: var(--accent);
    -webkit-mask: none;
    mask: none;
    width: 5px; height: 5px;
    margin-top: 0.6em;
  }
}

.plans__note {
  margin-top: var(--s-5);
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 0.35rem;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 1.05rem 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  font-weight: 560;
  letter-spacing: -0.012em;
  transition: color var(--dur-micro) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
:root[data-theme="dark"] .faq summary:hover { color: var(--accent-hi); }
.faq summary::after {
  content: "";
  flex: none;
  width: 13px; height: 13px;
  background:
    linear-gradient(var(--ink-3), var(--ink-3)) center / 100% 1.6px no-repeat,
    linear-gradient(var(--ink-3), var(--ink-3)) center / 1.6px 100% no-repeat;
  transition: transform var(--dur-base) var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.6px no-repeat;
}
.faq__body { padding: 0 0 1.15rem; max-width: 68ch; color: var(--ink-2); font-size: 0.95rem; }

/* ── 结尾 CTA ─────────────────────────────────────────────────────────── */
.endcta {
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
}
.endcta__inner { max-width: 44ch; }
.endcta h2 { font-size: var(--t-h2); font-weight: 620; }
.endcta p { margin-top: var(--s-3); font-size: var(--t-lede); color: var(--ink-2); }
.endcta__row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* ── 页脚 ─────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--bg); }
.foot__inner {
  display: grid;
  gap: var(--s-6);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.foot__brand { max-width: 30ch; }
.foot__tag { margin-top: var(--s-3); font-size: 0.9rem; color: var(--ink-3); }
.foot__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--s-5);
}
.foot__cols h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.foot__cols a {
  display: block;
  padding-block: 0.28rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color var(--dur-micro) var(--ease);
}
.foot__cols a:hover { color: var(--accent-ink); }
:root[data-theme="dark"] .foot__cols a:hover { color: var(--accent-hi); }

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem var(--s-4);
  justify-content: space-between;
  padding-block: var(--s-4) var(--s-5);
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--ink-3);
}

/* ── 响应式：只调结构，字号已由 clamp 处理 ───────────────────────── */
@media (min-width: 700px) {
  .strip__inner { grid-template-columns: 1fr 2fr; }
  .strip__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip__note { grid-column: 2 / -1; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themebtn__label { display: inline; }
}

@media (min-width: 940px) {
  .nav__links { display: flex; }
  .nav__login { display: inline-flex; }
  .burger { display: none; }
  .mobilenav { display: none !important; }

  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card--hero { grid-column: span 2; grid-row: span 2; }
  .card--wide { grid-column: span 2; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan--hot { transform: translateY(-10px); }
  .plan--hot:hover { transform: translateY(-12px); }
  .foot__inner { grid-template-columns: 1fr 1.4fr; align-items: start; }
}

@media (min-width: 1180px) {
  .hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
}

@media (max-width: 380px) {
  .hero__cta .btn { width: 100%; }
  .ptable { font-size: 0.78rem; }
}

/* ── 无障碍：减弱动态效果时保留功能，只换成淡入 ────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover, .card:hover, .plan--hot { transform: none !important; }
}

@media print {
  .nav, .progress, .mobilenav, .themebtn, .endcta { display: none !important; }
  body { background: #fff; color: #000; }
}
