/* ============================================================
   小萌助手 · 前台站点样式

   视觉语言取自管理后台(scaffold-vue)的「珍珠玻璃」设计规范:
   灰白画布 + 细边线阅读面 + 克制的玻璃浮层;蓝色 = 主操作,青柠 = 正常状态,红色 = 异常。
   令牌的**变量名与取值**与后台 styles/tokens.css 保持一致 —— 后台调色,这里照着改。

   字体只用系统字体栈,不联网下载(国内访问 Google Fonts 经常超时,会让首屏文字闪烁甚至空白)。
   常驻动画只动 transform / opacity;尊重「减少动态效果」与「降低透明度」。
   首页 / 404 / 维护页三个页面共用这一份。
   ============================================================ */

:root {
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", -apple-system, BlinkMacSystemFont, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color-scheme: light;

  --ink: #101418;
  --ink-muted: #596368;
  --ink-soft: #7e888c;
  --ink-faint: #99a2a5;
  --leaf-text: #58a021;

  --blue: #236de9;
  --blue-hover: #1d61d5;
  --blue-soft: rgba(35, 109, 233, .1);
  --lime: #82dd2d;
  --lime-soft: rgba(130, 221, 45, .14);
  --red: #ff5a50;
  --red-text: #e0443b;
  --red-soft: rgba(255, 90, 80, .11);
  --focus: rgba(35, 109, 233, .8);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;

  --shade: 46, 58, 62;
  --line: rgba(var(--shade), .085);
  --line-strong: rgba(var(--shade), .11);
  --glass-line: rgba(255, 255, 255, .88);
  --glass-line-soft: rgba(255, 255, 255, .7);

  --e1: 0 1px 2px rgba(var(--shade), .05), 0 5px 14px rgba(var(--shade), .04);
  --e2: 0 1px 3px rgba(var(--shade), .06), 0 12px 30px rgba(var(--shade), .055);
  --e3: 0 2px 6px rgba(var(--shade), .07), 0 22px 50px rgba(var(--shade), .08);
  --e-accent: 0 1px 2px rgba(20, 66, 148, .28), 0 8px 18px rgba(35, 109, 233, .24);
  --e-accent-hover: 0 1px 2px rgba(20, 66, 148, .32), 0 12px 24px rgba(35, 109, 233, .3);
  --edge: inset 0 1px 0 rgba(255, 255, 255, .92);
  --edge-strong: inset 0 1px 0 rgba(255, 255, 255, .98);

  --canvas: #f6f8f7;
  --rail-bg: rgba(250, 251, 250, .92);
  --pill-bg: linear-gradient(145deg, rgba(255, 255, 255, .93), rgba(246, 251, 249, .62));
  --pill-inset: inset 0 -1px 0 rgba(105, 122, 128, .08);
  --float-bg: rgba(246, 248, 247, .86);
  --float-inset: inset 0 0 0 1px rgba(120, 132, 135, .13), inset 0 1px 0 rgba(255, 255, 255, .72);
  --surface: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(249, 252, 251, .93));
  --surface-solid: #fbfcfc;
  --groove-bg: rgba(225, 231, 229, .5);
  --groove-inset: inset 0 1px 0 rgba(255, 255, 255, .46);
  --input-bg: rgba(255, 255, 255, .78);
  --hover-bg: rgba(var(--shade), .045);
  --press-bg: rgba(var(--shade), .075);
  --dark-surface: #131619;

  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --track-eyebrow: .14em;

  --hatch-ink: rgba(var(--shade), .16);
  --hatch: repeating-linear-gradient(135deg, var(--hatch-ink) 0 1.5px, transparent 1.5px 6px);
  --tick: rgba(var(--shade), .22);
  --tick-strong: rgba(var(--shade), .5);

  --plate-bg: rgba(21, 24, 26, .9);
  --plate-line: rgba(255, 255, 255, .1);
  --plate-ink: #f2f5f4;
  --plate-soft: rgba(255, 255, 255, .56);

  --ambient-a: rgba(130, 221, 45, .07);
  --ambient-b: rgba(35, 109, 233, .055);

  --ease-premium: cubic-bezier(.16, 1, .3, 1);
  --topbar-h: 64px;
  --wrap: min(1120px, calc(100% - 48px));
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --ink: #eef2f1;
  --ink-muted: #b0babd;
  --ink-soft: #8d979a;
  --ink-faint: #6c7679;
  --leaf-text: #9be35a;

  --blue: #4c8dff;
  --blue-hover: #3d7ff2;
  --blue-soft: rgba(76, 141, 255, .16);
  --lime-soft: rgba(130, 221, 45, .16);
  --red-text: #ff7a71;
  --red-soft: rgba(255, 90, 80, .16);
  --focus: rgba(76, 141, 255, .85);

  --shade: 0, 0, 0;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .1);
  --glass-line: rgba(255, 255, 255, .1);
  --glass-line-soft: rgba(255, 255, 255, .07);

  --e1: 0 1px 2px rgba(0, 0, 0, .3), 0 5px 14px rgba(0, 0, 0, .2);
  --e2: 0 1px 3px rgba(0, 0, 0, .32), 0 12px 30px rgba(0, 0, 0, .28);
  --e3: 0 2px 6px rgba(0, 0, 0, .36), 0 22px 50px rgba(0, 0, 0, .42);
  --e-accent: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 18px rgba(76, 141, 255, .26);
  --e-accent-hover: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 24px rgba(76, 141, 255, .34);
  --edge: inset 0 1px 0 rgba(255, 255, 255, .06);
  --edge-strong: inset 0 1px 0 rgba(255, 255, 255, .09);

  --canvas: #121517;
  --rail-bg: rgba(22, 26, 28, .94);
  --pill-bg: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05));
  --pill-inset: inset 0 -1px 0 rgba(0, 0, 0, .2);
  --float-bg: rgba(30, 34, 37, .9);
  --float-inset: inset 0 0 0 1px rgba(255, 255, 255, .04), inset 0 1px 0 rgba(255, 255, 255, .06);
  --surface: linear-gradient(145deg, rgba(29, 33, 36, .98), rgba(25, 29, 31, .96));
  --surface-solid: #1b1f21;
  --groove-bg: rgba(0, 0, 0, .22);
  --groove-inset: inset 0 1px 2px rgba(0, 0, 0, .28);
  --input-bg: rgba(255, 255, 255, .04);
  --hover-bg: rgba(255, 255, 255, .05);
  --press-bg: rgba(255, 255, 255, .08);

  --hatch-ink: rgba(255, 255, 255, .12);
  --tick: rgba(255, 255, 255, .16);
  --tick-strong: rgba(255, 255, 255, .42);
  --plate-bg: rgba(8, 10, 11, .78);

  --ambient-a: rgba(130, 221, 45, .05);
  --ambient-b: rgba(76, 141, 255, .07);
}

/* ── 基础 ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  min-width: 320px;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; }
::selection { background: var(--blue-soft); }

:focus { outline: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.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 {
  position: absolute; left: 16px; top: -48px; z-index: 300;
  padding: 8px 14px; border-radius: var(--r-xs);
  background: var(--ink); color: var(--canvas); font-size: 13px; font-weight: 600;
}
.skip:focus { top: 12px; }

* { scrollbar-width: thin; scrollbar-color: rgba(var(--shade), .18) transparent; }
:root[data-theme="dark"] * { scrollbar-color: rgba(255, 255, 255, .14) transparent; }

/* 环境光:画布上两团极淡的静态漫射光 */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 8% -6%, var(--ambient-a), transparent 70%),
    radial-gradient(55% 55% at 96% 4%, var(--ambient-b), transparent 70%);
}
/* 细颗粒层:打散大面积渐变的色带。静态、不接指针 */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
:root[data-theme="dark"] .grain { opacity: .045; }

/* ── 材质:阅读面 / 高亮玻璃 / 浮层 / 凹槽 ───────────────────── */
.m-surface { border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--edge), var(--e1); }
.m-pill {
  border: 1px solid var(--glass-line); background: var(--pill-bg);
  box-shadow: var(--e2), var(--edge-strong), var(--pill-inset);
  backdrop-filter: blur(22px) saturate(1.18); -webkit-backdrop-filter: blur(22px) saturate(1.18);
}
.m-float {
  border: 1px solid var(--glass-line); background: var(--float-bg);
  box-shadow: var(--e3), var(--float-inset);
  backdrop-filter: blur(28px) saturate(1.08); -webkit-backdrop-filter: blur(28px) saturate(1.08);
}
.m-groove { border: 1px solid var(--glass-line-soft); background: var(--groove-bg); box-shadow: var(--groove-inset); }

/* ── 按钮 ───────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 620; letter-spacing: .005em; white-space: nowrap; flex: none;
  user-select: none; -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .25s var(--ease-premium);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { color: #fff; background: var(--blue); box-shadow: var(--e-accent); font-weight: 660; }
.btn-primary:hover { background: var(--blue-hover); box-shadow: var(--e-accent-hover); }
.btn-secondary { color: var(--ink); }
.btn-secondary:hover { box-shadow: var(--e2), var(--edge-strong), var(--pill-inset); }
.btn-ghost { color: var(--ink-muted); }
.btn-ghost:hover { color: var(--ink); background: var(--hover-bg); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: var(--r-xs); gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r-xs); color: var(--ink-soft); flex: none;
  transition: color .2s ease, background .2s ease;
}
.icon-btn:hover { color: var(--ink); background: var(--hover-bg); }
.icon-btn svg { width: 18px; height: 18px; }
/* 外观按钮三个图标只显示当前偏好那一个;脚本没跑起来时默认显示「跟随系统」 */
#theme svg { display: none; }
#theme .i-auto { display: block; }
:root[data-theme-pref="light"] #theme .i-auto, :root[data-theme-pref="dark"] #theme .i-auto { display: none; }
:root[data-theme-pref="light"] #theme .i-light, :root[data-theme-pref="dark"] #theme .i-dark { display: block; }

/* ── 顶栏 ───────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--topbar-h);
  background: var(--rail-bg); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.topbar-in { width: var(--wrap); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 680; letter-spacing: -.01em; flex: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; flex: none; box-shadow: var(--e1); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.nav a { padding: 7px 12px; border-radius: var(--r-xs); font-size: 13.5px; font-weight: 560; color: var(--ink-muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--hover-bg); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* ── 版心 / 区块 ────────────────────────────────────────────── */
main, .site-foot, .topbar { position: relative; z-index: 1; }
.wrap { width: var(--wrap); margin: 0 auto; }
.block { padding: 72px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.section-label { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 690; letter-spacing: -.02em; }
.section-label::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px; flex: none;
  background: var(--lime); box-shadow: 0 0 0 5px var(--lime-soft);
}
.section-sub { margin-top: 6px; color: var(--ink-soft); font-size: 14px; }
.section-note { color: var(--ink-soft); font-size: 12.5px; }

/* ── 首屏 ───────────────────────────────────────────────────── */
.hero { padding: 56px 0 8px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.hero h1 {
  margin: 18px 0 18px; font-size: clamp(52px, 8.4vw, 92px); line-height: .98;
  font-weight: 730; letter-spacing: -.055em;
}
.hero h1 span { color: var(--ink-soft); }
.hero-lead { max-width: 30em; font-size: 18px; line-height: 1.75; color: var(--ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.source-chip {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px;
  max-width: 100%; padding: 8px 8px 8px 16px; border-radius: 999px;
  font-size: 13px; color: var(--ink-muted);
}
.source-chip code { font-family: var(--font-mono); font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 舞台:深色画布 + 珍珠球。与后台登录页左侧的深色画布同一语汇 */
.stage {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 28px;
  /* 顶部状态行 / 圆球 / 铭牌三段按内容竖排。不用固定宽高比 + 绝对定位:
     那样圆球的位置是按百分比硬套的,窄屏上会被铭牌压住一截 */
  display: flex; flex-direction: column; gap: 16px; padding: 22px;
  background:
    radial-gradient(70% 55% at 12% 0%, rgba(130, 221, 45, .13), transparent 70%),
    radial-gradient(60% 60% at 100% 100%, rgba(76, 141, 255, .16), transparent 70%),
    var(--dark-surface);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: var(--e3), inset 0 1px 0 rgba(255, 255, 255, .07);
  color: var(--plate-ink);
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask: radial-gradient(75% 75% at 50% 46%, #000 30%, transparent 100%);
          mask: radial-gradient(75% 75% at 50% 46%, #000 30%, transparent 100%);
}
.stage-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--plate-soft); }
.stage-state { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--ink-faint); flex: none; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; background: currentColor; opacity: 0; }
[data-state="ok"] > .dot, .dot[data-state="ok"] { background: var(--lime); color: var(--lime); }
[data-state="ok"] > .dot::after, .dot[data-state="ok"]::after { animation: halo 2.6s ease-out infinite; }
[data-state="down"] > .dot, .dot[data-state="down"] { background: var(--red); color: var(--red); }
[data-state="checking"] > .dot, .dot[data-state="checking"] { background: var(--ink-faint); }
@keyframes halo { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(1.9); opacity: 0; } }

.orb { position: relative; z-index: 1; flex: none; width: min(76%, 340px); aspect-ratio: 1; margin: 8px auto 2px; }
.orb-sphere {
  position: absolute; inset: 15%; border-radius: 50%;
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 255, 255, .98) 0 6%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 74% 82%, rgba(76, 141, 255, .46), transparent 54%),
    radial-gradient(circle at 20% 84%, rgba(130, 221, 45, .5), transparent 56%),
    radial-gradient(circle at 60% 30%, rgba(255, 255, 255, .5), transparent 46%),
    linear-gradient(150deg, #f4f8f7, #cfdcd9 58%, #b8c8c5);
  box-shadow:
    inset 0 -22px 44px rgba(31, 52, 56, .26),
    inset 0 2px 0 rgba(255, 255, 255, .9),
    0 0 0 1px rgba(255, 255, 255, .18),
    0 30px 70px rgba(0, 0, 0, .5),
    0 0 90px rgba(130, 221, 45, .12);
  animation: breathe 7s ease-in-out infinite;
}
/* 刻度环:细刻度 + 每 30° 一根主刻度,整环缓慢转动。
   遮罩用 closest-side:此时 100% = 半径,「100% - Npx」才是距外缘 N 像素
   (默认的 farthest-corner 会把半径算成对角线,环就跑到框外去了)。 */
.orb-ring, .orb-ring-major, .orb-sweep { position: absolute; inset: 0; border-radius: 50%; }
.orb-ring {
  background: repeating-conic-gradient(from -.35deg, rgba(255, 255, 255, .34) 0 .7deg, transparent .7deg 3deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 16px), #000 calc(100% - 15px), #000 calc(100% - 5px), transparent calc(100% - 4px));
          mask: radial-gradient(closest-side, transparent calc(100% - 16px), #000 calc(100% - 15px), #000 calc(100% - 5px), transparent calc(100% - 4px));
  animation: spin 120s linear infinite;
}
.orb-ring-major {
  background: repeating-conic-gradient(from -.6deg, rgba(255, 255, 255, .8) 0 1.2deg, transparent 1.2deg 30deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 23px), #000 calc(100% - 22px), #000 calc(100% - 4px), transparent calc(100% - 3px));
          mask: radial-gradient(closest-side, transparent calc(100% - 23px), #000 calc(100% - 22px), #000 calc(100% - 4px), transparent calc(100% - 3px));
  animation: spin 120s linear infinite;
}
/* 扫描:一道青柠渐隐的扇面沿刻度环转一圈 */
.orb-sweep {
  background: conic-gradient(from 0deg, transparent 0 292deg, rgba(130, 221, 45, 0) 292deg, rgba(130, 221, 45, .62) 359deg, transparent 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 17px), #000 calc(100% - 16px), #000 calc(100% - 4px), transparent calc(100% - 3px));
          mask: radial-gradient(closest-side, transparent calc(100% - 17px), #000 calc(100% - 16px), #000 calc(100% - 4px), transparent calc(100% - 3px));
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018); } }

/* 规格铭牌:只读汇总,深色面在浅 / 深两态都是深色 */
.plate {
  position: relative; z-index: 3; flex: none; margin: 0;
  padding: 12px 16px; border-radius: var(--r-md);
  border: 1px solid var(--plate-line); background: var(--plate-bg);
  box-shadow: var(--e2), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--plate-soft);
}
.plate-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 3px 0; }
.plate-row dt { letter-spacing: .06em; }
.plate-row dd { margin: 0; font-weight: 650; color: var(--plate-ink); text-align: right; }

/* ── 安装三步 ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 20px; border-radius: var(--r-lg); }
.step-meter { display: flex; gap: 4px; margin-bottom: 4px; }
.step-meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--hover-bg); }
.step-meter i.on { background: var(--lime); }
.step-no { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); }
.step h3 { font-size: 18px; font-weight: 690; letter-spacing: -.015em; }
.step p { font-size: 14px; line-height: 1.8; color: var(--ink-muted); }
.step-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.hint { margin-top: 12px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; }
.hint[hidden] { display: none; }

/* ── 服务状态 ───────────────────────────────────────────────── */
.status-card { border-radius: var(--r-xl); overflow: hidden; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px 28px 28px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric-label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.metric-figure { display: flex; align-items: baseline; gap: 6px; min-height: 52px; font-size: 44px; line-height: 1; font-weight: 720; letter-spacing: -.045em; }
.metric-figure .unit { position: relative; top: -.1em; font-size: 15px; font-weight: 640; letter-spacing: 0; color: var(--ink-soft); }
.metric-figure.is-text { font-size: 30px; letter-spacing: -.03em; align-items: center; gap: 12px; }
.metric-foot { min-height: 22px; font-size: 12.5px; color: var(--ink-soft); }
.metric-figure .dot { width: 12px; height: 12px; margin-top: 2px; }
.metric-figure[data-state="ok"] { color: var(--ink); }
.metric-figure[data-state="down"] { color: var(--red-text); }

/* 读数逐位滚动:每一位是一条 0-9 的竖带,按数字平移 */
.odometer { display: inline-flex; align-items: baseline; line-height: 1; }
.odo-cell { position: relative; display: inline-block; height: 1em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; transition: transform .9s var(--ease-premium); }
.odo-strip > span { display: block; height: 1em; line-height: 1; text-align: center; }
.odo-sep { display: inline-block; height: 1em; line-height: 1; color: var(--ink-faint); }

/* 延迟柱:最近若干次探测,当前柱用斜线填充 */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
/* 柱色用后台的刻度令牌:浅色是深墨低透明,深色是白色低透明,两态都看得见 */
.bars i { flex: 1; min-width: 3px; max-width: 8px; border-radius: 2px; background: var(--tick); transition: height .5s var(--ease-premium); }
.bars i:last-child { background: var(--lime); }

.notice { display: flex; align-items: flex-start; gap: 14px; padding: 18px 28px 22px; border-top: 1px solid var(--line); }
.notice-label { flex: none; padding-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.notice-body { min-width: 0; font-size: 14px; line-height: 1.8; color: var(--ink-muted); white-space: pre-wrap; word-break: break-word; }
.notice-body.is-empty { color: var(--ink-faint); }

/* ── 常见问题 ───────────────────────────────────────────────── */
.faq { border-radius: var(--r-xl); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 26px; font-size: 15.5px; font-weight: 640; letter-spacing: -.01em; cursor: pointer; list-style: none;
  transition: background .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--hover-bg); }
.faq summary::after {
  content: ""; flex: none; width: 18px; height: 18px; opacity: .55;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 12px no-repeat;
  transition: transform .3s var(--ease-premium);
}
.faq details[open] > summary::after { transform: rotate(135deg); }
.faq details[open] > summary { color: var(--ink); }
.faq-body { padding: 0 26px 22px; max-width: 46em; font-size: 14.5px; line-height: 1.85; color: var(--ink-muted); }

/* ── 页脚 ───────────────────────────────────────────────────── */
.site-foot { margin-top: 88px; border-top: 1px solid var(--line); }
.foot-in { width: var(--wrap); margin: 0 auto; padding: 28px 0 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; font-size: 13px; color: var(--ink-soft); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a:hover { color: var(--ink); }

/* ── 单页(404 / 维护)───────────────────────────────────────── */
.solo { position: relative; z-index: 1; min-height: calc(100dvh - var(--topbar-h)); display: grid; place-items: center; padding: 32px 0 64px; }
.solo-card { width: min(560px, calc(100% - 40px)); padding: 40px 40px 34px; border-radius: var(--r-xl); text-align: left; }
.solo-code { font-family: var(--font-mono); font-size: clamp(64px, 14vw, 104px); line-height: 1; font-weight: 700; letter-spacing: -.06em; }
.solo-code .hatch { display: block; height: 10px; margin-top: 16px; border-radius: 4px; background: var(--hatch); }
/* 维护页:三个点依次呼吸,表示「在重试」。只动 opacity */
.solo-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; min-height: 76px; }
.solo-dots i { width: 18px; height: 18px; border-radius: 999px; background: var(--ink); animation: breathe-dot 1.5s ease-in-out infinite; }
.solo-dots i:nth-child(2) { animation-delay: .2s; }
.solo-dots i:nth-child(3) { animation-delay: .4s; }
.solo-dots .hatch { flex: 0 0 100%; }
@keyframes breathe-dot { 0%, 80%, 100% { opacity: .18; } 40% { opacity: 1; } }
.solo-card h1 { margin: 26px 0 10px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.solo-card p { color: var(--ink-muted); line-height: 1.85; font-size: 15px; }
.solo-path { margin-top: 18px; padding: 10px 14px; border-radius: var(--r-sm); font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); word-break: break-all; }
.solo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.retry { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 13px; color: var(--ink-soft); }
.retry svg { width: 34px; height: 34px; flex: none; transform: rotate(-90deg); }
.retry circle { fill: none; stroke-width: 3; }
.retry .track { stroke: var(--hover-bg); }
.retry .arc { stroke: var(--lime); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }

/* ── 入场 ───────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-premium), transform .7s var(--ease-premium); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .06s; }
.js .reveal[data-d="2"] { transition-delay: .12s; }
.js .reveal[data-d="3"] { transition-delay: .18s; }

/* 提示条 */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 16px);
  padding: 10px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--plate-bg); color: var(--plate-ink); box-shadow: var(--e3);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .35s var(--ease-premium);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── 响应式 ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; }
  .stage { max-width: 520px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 720px) {
  :root { --wrap: calc(100% - 36px); }
  body { font-size: 14.5px; }
  .block { padding-top: 56px; }
  .hero-lead { font-size: 16.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .metrics { grid-template-columns: 1fr; }
  .metric + .metric { border-left: 0; border-top: 1px solid var(--line); }
  .metric { padding: 20px 22px 22px; }
  .notice { padding: 16px 22px 20px; flex-direction: column; gap: 6px; }
  .faq summary { padding: 18px 20px; }
  .faq-body { padding: 0 20px 20px; }
  .solo-card { padding: 30px 26px 26px; }
  .topbar-in { gap: 14px; }
  .btn-admin span { display: none; }
  .btn-admin { padding: 0; width: 34px; }
}

/* 降低透明度:玻璃退成实色,可读性优先 */
@media (prefers-reduced-transparency: reduce) {
  .topbar, .m-pill, .m-float, .plate, .toast { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topbar { background: var(--surface-solid); }
  .m-float { background: var(--surface-solid); }
}
@media (prefers-contrast: more) { .grain { display: none; } }

/* 减少动态效果:保留语义、去掉过程 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .ambient, .grain, .topbar, .stage, .toast { display: none !important; } }
