/* ============================================================
   G15 5511 — Unlock Log
   Single dark theme · top segmented nav
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, 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: "Inter Tight";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("fonts/inter-tight.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, 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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/jetbrains.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #05060a;
  --panel: #0a0c13;
  --soft: #0d1018;
  --soft-2: #131826;
  --ink: #eef1f8;
  --ink-2: #c2c9db;
  --muted: #8d96ab;
  --faint: #6f788c;
  --line: #1a2030;
  --line-2: #29334a;

  --c-rose: #f0579d;
  --c-amber: #ff9d6b;
  --c-teal: #2fe3c4;
  --c-violet: #8b78f5;
  --c-blue: #45b6ff;

  --accent: #8b78f5;
  --accent-2: #45b6ff;
  --grad: linear-gradient(90deg, #2fe3c4 0%, #45b6ff 34%, #8b78f5 66%, #f0579d 100%);
  --ok: #34e2a4;

  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 11px;

  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 10px 30px -18px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 30px 70px -34px rgba(0, 0, 0, 0.95);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --surface-grad: linear-gradient(180deg, #0c0f18 0%, #080a11 100%);

  --nav-bg: rgba(9, 11, 17, 0.72);
  --track: #1a2233;
  --code-bg: #080b12;
  --fill: rgba(255, 255, 255, 0.05);
  --fill-2: rgba(255, 255, 255, 0.09);

  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.4, 0, 0.2, 1);
  --max: 1200px;
  color-scheme: dark;
}

section[data-num="01"] { --sec: var(--c-rose); }
section[data-num="02"] { --sec: var(--c-amber); }
section[data-num="03"] { --sec: var(--c-teal); }
section[data-num="04"] { --sec: var(--c-violet); }
section[data-num="05"] { --sec: var(--c-blue); }
section[data-num="06"] { --sec: var(--c-rose); }
section[data-num="07"] { --sec: var(--c-amber); }
section[data-num="08"] { --sec: var(--c-teal); }
section[data-num="09"] { --sec: var(--c-violet); }
section[data-num="10"] { --sec: var(--c-blue); }
section[data-num="11"] { --sec: var(--c-rose); }

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 8% -8%, rgba(47, 227, 196, 0.06), transparent 62%),
    radial-gradient(920px 560px at 96% -4%, rgba(139, 120, 245, 0.08), transparent 60%),
    radial-gradient(820px 520px at 50% 108%, rgba(240, 87, 157, 0.05), transparent 64%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.7;
  font-feature-settings: "cv02", "cv03", "cv04";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.02;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

body.switching main { opacity: 0.3; }
main { transition: opacity 0.2s linear; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #252e42; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #33405c; }

.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(130, 160, 220, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(130, 160, 220, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 76% 46% at 50% -4%, #000 8%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 76% 46% at 50% -4%, #000 8%, transparent 70%);
}
.bg-glow { display: none; }
.bg-cursor {
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 120, 245, 0.07) 0%, transparent 62%);
  left: var(--mx, 50%);
  top: var(--my, 30%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-2);
}
body.has-pointer .bg-cursor { opacity: 1; }

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 70;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- top nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 12px 20px 0;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 8px 0 16px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 34px -20px rgba(15, 17, 23, 0.55);
}
.nav-inner { transition: box-shadow 0.35s var(--ease-2), height 0.35s var(--ease-2), background 0.35s; }
.nav.scrolled .nav-inner { box-shadow: 0 20px 48px -24px rgba(0, 0, 0, 0.9); height: 52px; }
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.brand-dot {
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(255, 77, 106, 0.6);
}
.brand-t em { font-style: normal; color: var(--faint); font-weight: 500; padding: 0 4px; }

.seg {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding: 3px;
  border-radius: 999px;
  background: var(--fill);
  overflow-x: auto;
  scrollbar-width: none;
  flex: 0 1 auto;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 550;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ease-2), background 0.22s var(--ease-2),
    transform 0.22s var(--ease), box-shadow 0.22s var(--ease-2);
}
.seg button:hover {
  color: var(--ink);
  background: var(--fill-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px #000, inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.seg button:active { transform: translateY(0); }
.seg button.on {
  color: #06080e;
  background: var(--grad);
  box-shadow: 0 8px 22px -8px rgba(139, 120, 245, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #a8f0c9;
  background: rgba(62, 207, 142, 0.1);
  border: 1px solid rgba(62, 207, 142, 0.2);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-status i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.18);
  animation: pulse 3s var(--ease-2) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.lang {
  position: relative;
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--fill);
  border: 1px solid var(--line);
  flex: none;
}
.lang button {
  position: relative;
  z-index: 2;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s var(--ease-2);
}
.lang button.on { color: var(--ink); }
.lang-pill {
  position: absolute;
  z-index: 1;
  top: 3px; bottom: 3px;
  left: 3px;
  width: var(--w, 34px);
  background: var(--fill-2);
  box-shadow: 0 2px 6px -2px #000;
  border-radius: 999px;
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}

.gh {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.gh:hover { color: var(--ink); border-color: var(--line-2); background: var(--fill); }
.gh svg { width: 14px; height: 14px; }

/* ---------- hero ---------- */
.hero { padding: 0; position: relative; }

.hero-shell {
  position: relative;
  max-width: none;
  margin: 0;
  border-radius: 0;
  min-height: 660px;
  display: flex;
  align-items: center;
  padding-top: 84px;
  overflow: hidden;
  isolation: isolate;
  background-color: #05060a;
  box-shadow: none;
}
/* 背景用真实 <img> 绘制，不依赖 CSS 变量拼接的 url() */
.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 52%;
  pointer-events: none;
  user-select: none;
}
/* 左侧压暗给文案，右侧几乎不加遮罩让照片透出来 */
.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(96deg, rgba(4, 5, 9, 0.9) 0%, rgba(4, 5, 9, 0.84) 26%, rgba(4, 5, 9, 0.58) 44%, rgba(4, 5, 9, 0.18) 62%, rgba(4, 5, 9, 0.02) 80%, rgba(4, 5, 9, 0) 100%),
    linear-gradient(to top, rgba(4, 5, 9, 0.85) 0%, rgba(4, 5, 9, 0.22) 30%, transparent 56%);
}
.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 72%, rgba(5, 6, 10, 0.55) 90%, var(--bg) 100%);
}
.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 40px 92px;
}
.hero-copy { min-width: 0; max-width: 600px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sec, var(--accent));
  margin: 0 0 18px;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--fill);
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sec, var(--accent));
  box-shadow: 0 0 8px var(--sec, var(--accent));
}
.hero .eyebrow {
  color: #d5e6ff;
  border-color: rgba(139, 120, 245, 0.38);
  background: rgba(139, 120, 245, 0.16);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(38px, 4.8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 750;
  margin: 0 0 20px;
  color: #fff;
}
.hero h1 .l2 { display: block; color: rgba(255, 255, 255, 0.8); font-weight: 600; }
.hero h1 .mark {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero h1 .dim { color: rgba(255, 255, 255, 0.5); }
html[data-lang="en"] .hero h1 .mark { margin-right: 0.28em; }

.hero-desc {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 24px;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 30px; }
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(20, 22, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 5px 11px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-meta span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.hero-meta span.ok { color: #b7f5d0; background: rgba(22, 163, 106, 0.2); border-color: rgba(98, 227, 155, 0.28); }
.hero-meta span.ok::before { background: #62e39b; box-shadow: 0 0 0 3px rgba(98, 227, 155, 0.16); }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 550;
  text-decoration: none;
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: var(--surface-grad);
  box-shadow: var(--inset-hi), var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease-2),
    background 0.25s var(--ease-2), border-color 0.25s var(--ease-2);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--inset-hi), var(--shadow-lg); border-color: var(--faint); }
.btn.primary { background: var(--grad); border-color: transparent; color: #06080e; font-weight: 600; box-shadow: 0 12px 30px -16px rgba(139, 120, 245, 0.85); }
.btn.primary:hover { filter: brightness(1.08); border-color: transparent; }
.hero .btn.primary { background: #fff; border-color: #fff; color: #0b0c11; box-shadow: 0 12px 34px -12px rgba(255, 255, 255, 0.45); }
.hero .btn.primary:hover { background: #f1f2f6; border-color: #f1f2f6; }
.btn svg { width: 14px; height: 14px; }
.hero .btn:not(.primary) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero .btn:not(.primary):hover { background: rgba(255, 255, 255, 0.15); }

.hero-credit {
  position: absolute;
  right: 28px;
  bottom: 96px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
}

.hero-panel { min-width: 0; }
.glass {
  position: relative;
  background: rgba(10, 12, 18, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px 24px;
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  color: #fff;
}
.glass + .glass { margin-top: 14px; }
.glass-k {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.glass-k .dot { width: 6px; height: 6px; border-radius: 50%; background: #62e39b; box-shadow: 0 0 0 3px rgba(98, 227, 155, 0.16); }
.glass-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.glass-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}
.glass-val {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.glass-row.old .glass-val { color: rgba(255, 255, 255, 0.4); font-size: 16px; font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1px; }
.glass-row.new .glass-val { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.glass-mini { padding: 16px 20px; }
.glass-mini .glass-k { margin-bottom: 10px; }
.glass-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}
.glass-line b { color: rgba(255, 255, 255, 0.9); font-weight: 500; }
.glass-foot {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(16, 15, 14, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: #62e39b; }

/* ---------- stats ---------- */
.stats-wrap { position: relative; z-index: 3; margin-top: -48px; padding: 0 20px; }
.stats {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat {
  position: relative;
  background: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 22px 20px;
  box-shadow: var(--inset-hi), var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease-2), border-color 0.3s;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--inset-hi), var(--shadow-lg); border-color: var(--line-2); }
.stat-k { font-size: 11px; color: var(--faint); margin-bottom: 10px; line-height: 1.5; }
.stat-v {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-v small { font-size: 13px; color: var(--faint); margin-left: 3px; font-weight: 500; }

/* ---------- panes ---------- */
main { padding-bottom: 20px; }
.pane { display: none; }
.pane.on { display: block; animation: paneIn 0.5s var(--ease) both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.wrap { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
section + section { padding-top: 0; }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: 14px 48px;
  align-items: end;
  margin-bottom: 40px;
}
.sec-head .eyebrow { grid-column: 1 / -1; justify-self: start; margin-bottom: 4px; }
.sec-head h2 { margin: 0; }
.sec-head > p:not(.eyebrow) { margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.75; }

h2 {
  font-family: var(--display);
  font-size: clamp(26px, 2.9vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.032em;
  font-weight: 700;
  color: var(--ink);
}
.sec-head h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sec, var(--accent)), transparent);
  margin-top: 16px;
}

/* ---------- cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  position: relative;
  background: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--inset-hi), var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease-2), border-color 0.3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--inset-hi), var(--shadow-lg); border-color: var(--line-2); }
.card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.card .kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sec, var(--accent));
  background: var(--fill);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- table ---------- */
.tbl-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-grad);
  box-shadow: var(--inset-hi), var(--shadow);
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  text-align: left;
  padding: 14px 20px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.2s var(--ease-2); }
tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
td.mono, th.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12px; }
td.strong { color: var(--ink); font-weight: 550; }
td .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--sec, var(--accent));
}
td .tick { color: var(--ok); font-size: 10px; }
td .dash { color: var(--faint); }

td.viz { width: 30%; min-width: 150px; }
.viz-cell { display: flex; align-items: center; gap: 10px; }
.viz-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 54px;
  height: 7px;
  border-radius: 999px;
  background: var(--fill-2);
  overflow: hidden;
}
.viz-track .fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: var(--bar, var(--accent));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--ease) 0.15s;
}
.tbl-wrap.in .viz-track .fill { transform: scaleX(1); }
.viz-track.hold .fill { background: var(--line-2); }
/* 档位切换：滑块停在左档，表示 2→1 / 2T→1T */
.viz-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 20px;
  border-radius: 999px;
  background: var(--fill-2);
  border: 1px solid var(--line);
}
.viz-switch i {
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bar, var(--accent));
  box-shadow: 0 1px 3px rgba(15, 17, 23, 0.25);
  transform: scale(0);
  transition: transform 0.7s var(--ease) 0.2s;
}
.tbl-wrap.in .viz-switch i { transform: scale(1); }
.viz-switch::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 4px; height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--line-2);
}
.viz-d {
  flex: none;
  min-width: 42px;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--faint);
}
.tbl-legend {
  margin: 18px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--faint);
}

/* ---------- steps ---------- */
.steps { position: relative; }
.steps::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 26px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-2) 10%, var(--line-2) 90%, transparent);
}
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 22px; padding: 0 0 30px; }
.step:last-child { padding-bottom: 0; }
.step-n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-grad);
  border: 1px solid var(--line-2);
  box-shadow: var(--inset-hi), var(--shadow);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sec, var(--accent));
}
.step h4 { margin: 10px 0 7px; font-family: var(--display); font-size: 16.5px; font-weight: 650; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.72; }

/* ---------- step cards ---------- */
.stepcard {
  position: relative;
  background: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--inset-hi), var(--shadow);
  transition: box-shadow 0.35s var(--ease-2), border-color 0.3s;
}
.stepcard + .stepcard { margin-top: 16px; }
.stepcard:hover { box-shadow: var(--inset-hi), var(--shadow-lg); border-color: var(--line-2); }
.stepcard-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.stepcard-n {
  flex: none;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: #fff;
  background: var(--sec, var(--accent));
  padding: 3px 9px;
  border-radius: 999px;
}
.stepcard h4 { margin: 0; font-family: var(--display); font-size: 16px; font-weight: 650; letter-spacing: -0.015em; }
.stepcard p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.72; }
.stepcard .code { margin-top: 12px; }
.stepcard-note {
  margin: 12px 0 0 !important;
  padding-left: 12px;
  border-left: 2px solid var(--line-2);
  font-size: 12.5px !important;
  line-height: 1.65 !important;
  color: var(--faint) !important;
}

/* ---------- code ---------- */
.code {
  position: relative;
  margin: 16px 0 0;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 14px 46px 14px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  color: #c6cad4;
  overflow-x: auto;
  white-space: pre;
}
.code .c { color: #9aa0ae; }
.code .a { color: var(--sec, var(--accent)); font-weight: 500; }
.copy {
  position: absolute;
  top: 8px; right: 8px;
  width: 27px; height: 27px;
  display: grid;
  place-items: center;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: var(--faint);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.copy:hover { color: var(--ink); border-color: var(--line-2); background: var(--fill-2); }
.copy.done { color: var(--ok); border-color: var(--ok); }
.copy svg { width: 12px; height: 12px; }

/* ---------- tabs ---------- */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 20px;
}
.tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 550;
  padding: 8px 17px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s var(--ease-2), background 0.3s var(--ease-2);
}
.tabs button.on { color: var(--ink); background: #fff; box-shadow: 0 2px 8px -3px rgba(15,17,23,.3); }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: paneIn 0.45s var(--ease) both; }

/* ---------- downloads ---------- */
.dl { display: flex; flex-direction: column; gap: 6px; }
.dl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dl-name { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.dl-size {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  background: var(--fill);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.dl-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  margin-top: 14px;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.dl-btn:hover { color: var(--ink); border-color: var(--sec, var(--accent)); background: #fff; transform: translateY(-1px); }
.dl-btn svg { width: 12px; height: 12px; }

/* ---------- pack ---------- */
.pack {
  position: relative;
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.pack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pack::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 9, 12, 0.95) 0%, rgba(8, 9, 12, 0.86) 48%, rgba(8, 9, 12, 0.5) 100%);
  z-index: -1;
}
.pack-inner { padding: 32px 32px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.pack h3 { margin: 0 0 8px; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.pack p { margin: 0; color: rgba(255, 255, 255, 0.66); font-size: 13px; max-width: 520px; }
.pack .kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.pack .btn { background: #fff; color: #0b0c11; border-color: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); flex: none; }
.pack .btn:hover { background: #f1f2f6; border-color: #f1f2f6; }

/* ---------- tools ---------- */
.tools-head { margin: 34px 0 16px; }
.tools-head h3 { margin: 0 0 6px; font-family: var(--display); font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.tools-head p { margin: 0; color: var(--muted); font-size: 13px; }
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tool {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--inset-hi), var(--shadow);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease-2), border-color 0.3s;
}
.tool:hover { transform: translateY(-2px); box-shadow: var(--inset-hi), var(--shadow-lg); border-color: var(--line-2); }
/* 整卡指向官网（覆盖层），右下角小链接跳回正文对应段落 */
.tool-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tool-ref {
  position: relative;
  z-index: 2;
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--fill);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.tool-ref::after { content: "↓"; margin-left: 4px; font-size: 10px; opacity: 0.6; }
.tool-ref:hover { color: var(--accent); border-color: var(--accent); background: rgba(221, 58, 82, 0.08); }
/* 正文里的工具名：点回「配套工具」卡片 */
.tref {
  color: var(--ink);
  font-weight: 550;
  text-decoration: underline dashed;
  text-decoration-color: rgba(139, 120, 245, 0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s, text-decoration-color 0.2s;
}
.tref:hover {
  color: var(--accent-2);
  background: var(--fill);
  text-decoration-color: var(--accent-2);
  text-decoration-style: solid;
}
/* 卡片被从正文跳转命中时闪一下 */
.tool:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 120, 245, 0.18), var(--shadow-lg);
}
.tool .tool-arrow { position: relative; z-index: 2; }
.tool-ico {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--fill);
  border: 1px solid var(--line);
  color: var(--sec, var(--accent));
  transition: background 0.3s, border-color 0.3s;
}
.tool:hover .tool-ico { background: var(--fill-2); border-color: var(--line-2); }
.tool-ico svg { width: 16px; height: 16px; }
.tool-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tool-n {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-d { font-size: 11px; color: var(--faint); line-height: 1.4; }
.tool-arrow { margin-left: auto; flex: none; width: 13px; height: 13px; color: var(--faint); transition: transform 0.25s var(--ease), color 0.25s; }
.tool:hover .tool-arrow { transform: translateX(3px); color: var(--sec, var(--accent)); }
.tool-tag {
  margin-left: auto;
  flex: none;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #a8f0c9;
  background: rgba(62, 207, 142, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
}

/* ---------- notes ---------- */
.note { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.note:last-child { border-bottom: 0; }
.note-i { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--sec, var(--accent)); padding-top: 4px; }
.note h4 { margin: 0 0 5px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.note code {
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--fill);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--ink-2);
}

/* ---------- callout ---------- */
.callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--sec, var(--accent));
  background: var(--surface-grad);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: var(--inset-hi), var(--shadow);
}
.callout h3 { margin: 0 0 10px; font-family: var(--display); font-size: 15.5px; font-weight: 650; }
.callout p { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; line-height: 1.72; }
.callout ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.85; }
.callout code { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* ---------- calc ---------- */
.calc {
  background: var(--surface-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 28px;
  box-shadow: var(--inset-hi), var(--shadow);
}
.calc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.calc-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.calc-val {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.calc-val small { font-size: 12px; color: var(--faint); margin-left: 5px; font-weight: 500; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
  display: block;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--p, 33%), var(--track) var(--p, 33%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 12px rgba(255, 77, 106, 0.6);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: var(--track); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--accent); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--accent); border-radius: 50%; background: #fff; }
.calc-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--faint); margin: 2px 0 20px; }
.calc-hint { margin: 12px 0 0; font-size: 12px; color: var(--faint); }

/* ---------- misc ---------- */
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: color 0.25s, border-color 0.25s, gap 0.3s var(--ease), transform 0.3s var(--ease);
}
.more:hover { color: var(--ink); border-color: var(--sec, var(--accent)); gap: 11px; transform: translateY(-1px); }
.more svg { width: 13px; height: 13px; }

.figure { position: relative; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--soft-2); }
.figure img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 20px 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 34px 20px 48px;
  margin-top: 20px;
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--faint);
}
.foot-inner a { color: var(--faint); text-decoration: none; transition: color 0.25s; }
.foot-inner a:hover { color: var(--ink-2); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 60ms);
}
.reveal.in { opacity: 1; transform: none; }

.hero-anim {
  opacity: 0;
  transform: translateY(16px);
  animation: heroIn 0.95s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 80ms + 60ms);
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- motion polish ---------- */
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-img { animation: heroZoom 18s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tbl-wrap.in tbody tr { animation: rowIn 0.55s var(--ease) both; }
.tbl-wrap.in tbody tr:nth-child(1) { animation-delay: 0.04s; }
.tbl-wrap.in tbody tr:nth-child(2) { animation-delay: 0.09s; }
.tbl-wrap.in tbody tr:nth-child(3) { animation-delay: 0.14s; }
.tbl-wrap.in tbody tr:nth-child(4) { animation-delay: 0.19s; }
.tbl-wrap.in tbody tr:nth-child(5) { animation-delay: 0.24s; }
.tbl-wrap.in tbody tr:nth-child(6) { animation-delay: 0.29s; }
.tbl-wrap.in tbody tr:nth-child(7) { animation-delay: 0.34s; }
.tbl-wrap.in tbody tr:nth-child(8) { animation-delay: 0.39s; }
.tbl-wrap.in tbody tr:nth-child(9) { animation-delay: 0.44s; }
.tbl-wrap.in tbody tr:nth-child(n+10) { animation-delay: 0.48s; }

.stats .stat { opacity: 0; animation: rowIn 0.7s var(--ease) both; }
.stats .stat:nth-child(1) { animation-delay: 0.55s; }
.stats .stat:nth-child(2) { animation-delay: 0.63s; }
.stats .stat:nth-child(3) { animation-delay: 0.71s; }
.stats .stat:nth-child(4) { animation-delay: 0.79s; }

/* 玻璃面板一道极淡的高光扫过 */
@keyframes sheen {
  0%   { transform: translateX(-140%) skewX(-12deg); opacity: 0; }
  18%  { opacity: 0.55; }
  70%, 100% { transform: translateX(170%) skewX(-12deg); opacity: 0; }
}
.glass { overflow: hidden; }
.glass::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 36%, rgba(255, 255, 255, 0.13) 50%, transparent 64%);
  transform: translateX(-140%) skewX(-12deg);
  animation: sheen 2.6s ease-out 1.2s both;
}

/* 从正文跳到工具卡片时的呼吸高亮 */
@keyframes targetPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(139, 120, 245, 0.18), var(--shadow-lg); }
  45% { box-shadow: 0 0 0 7px rgba(139, 120, 245, 0.26), var(--shadow-lg); }
}
.tool:target { animation: targetPulse 1.5s ease-out 2; }

/* 表格横向滚动条（移动端会用到） */
.tbl-wrap { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.tbl-wrap::-webkit-scrollbar { height: 6px; }
.tbl-wrap::-webkit-scrollbar-thumb { background: var(--line-2); border: 0; border-radius: 99px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-status { display: none; }
  .seg { margin-left: 0; }
}

@media (max-width: 900px) {
  .nav { padding: calc(10px + env(safe-area-inset-top)) 12px 0; }
  .nav-inner { height: 54px; padding: 0 6px 0 12px; gap: 10px; }
  .seg { flex: 1 1 auto; min-width: 0; -webkit-overflow-scrolling: touch; }
  .seg button { padding: 6px 11px; font-size: 12.5px; }
  .gh { display: none; }
  .hero { padding: 0; }
  .hero-shell { min-height: 0; padding-top: 76px; }
  .hero-img { object-position: 62% 50%; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; padding: 30px 22px 64px; max-width: none; }
  .hero-copy { max-width: none; }
  .hero-panel { max-width: 520px; }
  .hero-credit { display: none; }
  .stats-wrap { margin-top: -34px; padding: 0 12px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sec-head { grid-template-columns: 1fr; gap: 10px; }
  .sec-head .eyebrow { grid-column: 1; }
  .grid-2, .grid-3, .tools-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .wrap { padding: 0 16px; }

  /* 表格：整表可横向滑动，首列吸附，避免窄屏挤成一团 */
  .tbl-wrap { -webkit-overflow-scrolling: touch; position: relative; }
  table { font-size: 12.5px; min-width: 620px; }
  thead th, tbody td { padding: 12px 14px; }
  td.viz { min-width: 96px; }
  th:first-child, td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 1px 0 0 var(--line);
  }
  thead th:first-child { background: #0c1018; }
  tbody td:first-child { background: #0a0d14; }
  tbody tr:hover td:first-child { background: #0d1119; }
}

@media (max-width: 620px) {
  .brand-t { display: none; }
  .nav { padding: calc(8px + env(safe-area-inset-top)) 10px 0; }
  .nav-inner { height: 50px; gap: 8px; padding: 0 5px 0 10px; }
  .seg button { padding: 5px 9px; font-size: 12px; }
  .gh { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 16px 16px 14px; }
  .stat-v { font-size: 22px; }
  .step { grid-template-columns: 34px 1fr; gap: 14px; }
  .steps::before { left: 16px; }
  .step-n { width: 34px; height: 34px; font-size: 10px; }
  .hero h1 { font-size: 30px; }
  .hero-desc { font-size: 14.5px; line-height: 1.75; }
  .hero-meta span { font-size: 11px; padding: 4px 9px; }
  .hero-inner { padding: 26px 18px 56px; gap: 22px; }
  .cta-row { gap: 8px; }
  .cta-row .btn { flex: 1 1 140px; justify-content: center; }
  .pack-inner { padding: 24px 20px; gap: 16px; }
  .pack h3 { font-size: 18px; }
  .stepcard { padding: 20px 18px; }
  .callout { padding: 18px 16px; }
  h2 { font-size: 24px; }
  .code { font-size: 11px; padding: 12px 40px 12px 13px; line-height: 1.75; }
  .note { grid-template-columns: 26px 1fr; gap: 12px; }
  .note-i { font-size: 10px; }
  .tools-grid { gap: 10px; }
  .tool { padding: 14px 14px; gap: 10px; }
  .tool-arrow { display: none; }
  .tool-ref { font-size: 11px; padding: 3px 8px; }
  .tool-body { min-width: 0; }
  .tool-d { font-size: 11.5px; }
  .calc { padding: 20px 18px; }
  .calc-head { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 16px; }
  .calc-val { font-size: 30px; }
  table { min-width: 560px; }
  .tbl-legend { font-size: 12px; }
  .foot-inner { font-size: 11.5px; }
}

/* 手机竖屏：遮罩改为自上而下，配合单列堆叠布局 */
@media (max-width: 620px) {
  .hero-shell::before {
    background:
      linear-gradient(to bottom,
        rgba(4, 5, 9, 0.95) 0%,
        rgba(4, 5, 9, 0.9) 34%,
        rgba(4, 5, 9, 0.66) 58%,
        rgba(4, 5, 9, 0.44) 78%,
        rgba(4, 5, 9, 0.34) 100%);
  }
  .hero-img { object-position: 60% 44%; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 27px; }
  .hero-inner { padding: 22px 14px 50px; }
  .cta-row .btn { flex: 1 1 100%; }
  .stat-v { font-size: 20px; }
  .stepcard { padding: 18px 15px; }
  .tool { flex-wrap: wrap; }
  .tool-ref { margin-left: auto; }
  .toast, .copy { font-size: 11px; }
}

@keyframes copyPop { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
.copy.done { color: var(--ok); animation: copyPop 0.42s var(--ease); }
.btn:active, .tool:active { transform: scale(0.985); }

/* 触屏设备不要保留 hover 位移 */
@media (hover: none) {
  .tool:hover, .btn:hover, .card:hover, .stepcard:hover, .dl:hover { transform: none; }
  .tool:hover .tool-arrow { transform: none; }
}

@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;
  }
  .reveal, .hero-anim { opacity: 1; transform: none; }
  .hero-img, .pane.on, .tool:target, .copy.done { animation: none !important; transform: none !important; }
  .stats .stat, .tbl-wrap.in tbody tr { animation: none !important; opacity: 1 !important; transform: none !important; }
  .glass::after { animation: none !important; opacity: 0 !important; }
}
