/* ============================================================
   FHAZ · 站点样式表
   分区：1 变量  2 基础  3 布局  4 顶栏  5 抽屉  6 按钮
        7 Hero  8 动效  9 卡片  10 状态页  11 时间线
        12 技术栈  13 FAQ  14 页脚  15 工具类  16 响应式
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --bg: #08090c;
  --bg-soft: #0b0d12;
  --bg-elev: #0e1117;
  --card: rgba(255, 255, 255, .03);
  --card-hover: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);

  --fg: #f2f4f8;
  --fg-dim: #8b93a7;
  --fg-faint: #5b6274;

  --accent-1: #5eead4;
  --accent-2: #818cf8;
  --accent-grad: linear-gradient(135deg, #5eead4 0%, #818cf8 100%);

  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;

  --r-card: 18px;
  --r-btn: 11px;
  --r-pill: 999px;

  --maxw: 1120px;
  --pad: 24px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --header-h: 76px;
}

html[data-theme="light"] {
  --bg: #fbfbfd;
  --bg-soft: #f4f5f8;
  --bg-elev: #ffffff;
  --card: #ffffff;
  --card-hover: #ffffff;
  --line: rgba(15, 17, 21, .09);
  --line-strong: rgba(15, 17, 21, .18);

  --fg: #14161c;
  --fg-dim: #5d6475;
  --fg-faint: #8b91a1;

  --shadow-card: 0 1px 2px rgba(15, 17, 21, .04), 0 12px 28px -14px rgba(15, 17, 21, .18);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }

:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(129, 140, 248, .35); }

.num { font-variant-numeric: tabular-nums; }

/* 顶部滚动进度条 */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--accent-grad);
  z-index: 200;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 3. 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

main { display: block; }

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.section-title { font-size: clamp(24px, 3vw, 32px); }
.section-desc { color: var(--fg-dim); font-size: 15px; max-width: 52ch; margin-top: 10px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--fg-dim);
  white-space: nowrap;
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.link-more:hover { color: var(--fg); gap: 10px; }
.link-more svg { transition: transform .2s var(--ease); }
.link-more:hover svg { transform: translateX(3px); }

/* ---------- 4. 顶栏 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 120;
  display: flex;
  align-items: center;
  transition: height .3s var(--ease), background-color .3s var(--ease),
    border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  height: 64px;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: .06em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #07120f;
  letter-spacing: 0;
  flex: none;
}

.nav-desktop { display: flex; align-items: center; gap: 4px; }

.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--fg-dim);
  border-radius: 8px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover { color: var(--fg); background: var(--card-hover); }

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .28s var(--ease);
}

.nav-link[aria-current="page"] { color: var(--fg); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg-dim);
  transition: color .2s var(--ease), border-color .2s var(--ease),
    background-color .2s var(--ease), transform .12s var(--ease);
}
.icon-btn:hover { color: var(--fg); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(.94); }

.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; }

/* ---------- 5. 移动抽屉 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.drawer-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(78vw, 320px);
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .34s var(--ease);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
}

.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-link {
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--fg-dim);
  opacity: 0;
  transform: translateX(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
    background-color .2s var(--ease), color .2s var(--ease);
}
.drawer.is-open .drawer-link { opacity: 1; transform: translateX(0); }
.drawer.is-open .drawer-link:nth-child(1) { transition-delay: .06s; }
.drawer.is-open .drawer-link:nth-child(2) { transition-delay: .1s; }
.drawer.is-open .drawer-link:nth-child(3) { transition-delay: .14s; }
.drawer.is-open .drawer-link:nth-child(4) { transition-delay: .18s; }
.drawer.is-open .drawer-link:nth-child(5) { transition-delay: .22s; }
.drawer-link:hover { background: var(--card-hover); color: var(--fg); }
.drawer-link[aria-current="page"] { color: var(--fg); background: var(--card-hover); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  transition: transform .12s var(--ease), border-color .22s var(--ease),
    background-color .22s var(--ease), box-shadow .22s var(--ease);
  white-space: nowrap;
}
.btn:hover { border-color: var(--line-strong); background: var(--card-hover); }
.btn:active { transform: scale(.97); }

.btn--primary {
  border: 0;
  background: var(--accent-grad);
  color: #06110e;
  font-weight: 600;
  box-shadow: 0 8px 24px -10px rgba(94, 234, 212, .55);
}
.btn--primary:hover {
  background: var(--accent-grad);
  box-shadow: 0 10px 30px -8px rgba(129, 140, 248, .6);
  filter: brightness(1.06);
}

.btn--ghost { background: transparent; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.grid-plane {
  position: absolute;
  inset: -20% -20% 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .5;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 78%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: .16;
  will-change: transform;
}
.orb--a {
  width: 520px; height: 520px;
  top: -8%; left: 8%;
  background: radial-gradient(circle, #5eead4 0%, transparent 68%);
}
.orb--b {
  width: 620px; height: 620px;
  bottom: -18%; right: -4%;
  background: radial-gradient(circle, #818cf8 0%, transparent 68%);
  opacity: .2;
}

.hero-inner { position: relative; }

.hero-title {
  font-size: clamp(40px, 7.2vw, 82px);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 18px 0 22px;
  font-weight: 650;
}

.hero-title .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--fg-dim);
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 46ch;
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 34px;
  font-size: 13px;
  color: var(--fg-faint);
}
.hero-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  color: var(--fg-dim);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
  position: relative;
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2.4s var(--ease-out) infinite;
}
.dot--warn { background: var(--warn); }
.dot--err { background: var(--err); }
.dot--off { background: var(--fg-faint); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.dot--warn::after { animation-name: pulse-warn; }
@keyframes pulse-warn {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .5); }
  70% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
.dot--err::after { animation-name: pulse-err; }
@keyframes pulse-err {
  0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, .5); }
  70% { box-shadow: 0 0 0 8px rgba(248, 113, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  animation: cue-bob 2.6s var(--ease-out) infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: .75; }
  50% { transform: translate(-50%, 7px); opacity: 1; }
}

/* ---------- 8. 动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .56s var(--ease), transform .56s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .28s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

.page-enter { animation: page-enter .42s var(--ease-out) both; }
@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 9. 卡片 ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color .26s var(--ease), background-color .26s var(--ease),
    transform .26s var(--ease), box-shadow .26s var(--ease);
}

/* spotlight 光斑 */
.card--spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 0%),
    rgba(129, 140, 248, .16),
    transparent 62%
  );
  opacity: 0;
  transition: opacity .2s var(--ease);
  pointer-events: none;
}
.card--spot:hover::before { opacity: 1; }

.card--spot:hover {
  border-color: var(--line-strong);
  background: var(--card-hover);
}

.card--tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.card-body { padding: 22px; position: relative; }

/* 服务卡 */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.svc-card { display: flex; flex-direction: column; }
.svc-card .card-body { display: flex; flex-direction: column; gap: 12px; height: 100%; }

.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.svc-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(129, 140, 248, .09);
  color: var(--accent-2);
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.svc-card:hover .svc-icon { transform: translateY(-2px) rotate(-4deg); color: var(--accent-1); }

.svc-name { font-size: 15px; font-weight: 600; }
.svc-desc { font-size: 13px; color: var(--fg-dim); line-height: 1.6; }

.svc-feats { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.svc-feats li {
  position: relative;
  padding-left: 15px;
  font-size: 12.5px;
  color: var(--fg-dim);
}
.svc-feats li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: .7;
}

.svc-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.svc-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-faint); }

.tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--fg-faint);
  letter-spacing: .02em;
}
.tag--accent { color: var(--accent-1); border-color: rgba(94, 234, 212, .3); background: rgba(94, 234, 212, .07); }

/* 指标卡 */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.metric .card-body { display: grid; gap: 10px; }
.metric-label { font-size: 12px; color: var(--fg-faint); letter-spacing: .04em; }
.metric-value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.metric-value small { font-size: 14px; font-weight: 500; color: var(--fg-dim); margin-left: 3px; }
.metric-value--time { font-size: 23px; letter-spacing: -.02em; }
.metric-sub { font-size: 12px; color: var(--fg-faint); }

.bar {
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent-grad);
  transition: width .9s var(--ease);
}
.bar-fill.is-warn { background: linear-gradient(135deg, #fbbf24, #f87171); }

/* 迷你 sparkline */
.spark { width: 100%; height: 44px; display: block; }

/* ---------- 10. 状态页 ---------- */
.page-head {
  padding: calc(var(--header-h) + 56px) 0 44px;
  border-bottom: 1px solid var(--line);
}
.page-title { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -.03em; }
.page-desc { color: var(--fg-dim); margin-top: 12px; max-width: 60ch; }

.big-timer {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(38px, 7vw, 62px);
  font-weight: 600;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.big-timer .unit { font-size: 15px; font-weight: 500; color: var(--fg-dim); letter-spacing: 0; }
.timer-flip { animation: flip-in .2s var(--ease-out); }
@keyframes flip-in {
  from { opacity: .45; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 13px;
  color: var(--fg-faint);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  transition: background-color .22s var(--ease);
  flex: none;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .22s var(--ease);
}
.switch input:checked + .switch-track { background: var(--accent-2); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent-1); outline-offset: 2px; }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.chart-box { position: relative; }
.chart-box .card-body { display: grid; gap: 12px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chart-title { font-size: 13px; color: var(--fg-dim); }
.chart-canvas { width: 100%; height: 150px; display: block; }

.svc-list { display: grid; gap: 0; }
.svc-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.svc-row:last-child { border-bottom: 0; }
.svc-row-name { display: flex; align-items: center; gap: 9px; }
.svc-row-lat { color: var(--fg-dim); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.svc-row-state { color: var(--fg-dim); font-size: 12px; }
.svc-row-state.is-err { color: #e5484d; }
.svc-row-time { color: var(--fg-faint); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 68px; text-align: right; }

.info-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.info-table th, .info-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { color: var(--fg-faint); font-weight: 400; width: 34%; }
.info-table td { color: var(--fg); font-variant-numeric: tabular-nums; }

details.raw {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 14px 18px;
}
details.raw summary { cursor: pointer; font-size: 13px; color: var(--fg-dim); }
details.raw pre {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  color: var(--fg-dim);
}

/* 顶部告警条 */
.alert-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 190;
  padding: 9px 18px;
  font-size: 13px;
  text-align: center;
  background: rgba(248, 113, 113, .14);
  border-bottom: 1px solid rgba(248, 113, 113, .3);
  color: #fecaca;
  transform: translateY(-100%);
  transition: transform .3s var(--ease);
}
html[data-theme="light"] .alert-bar { color: #991b1b; background: #fef2f2; border-bottom-color: #fecaca; }
.alert-bar.is-on { transform: none; }

/* ---------- 11. 时间线 ---------- */
.timeline {
  position: relative;
  padding-left: 30px;
  display: grid;
  gap: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.timeline-progress {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
  height: 0;
  transition: height .6s var(--ease);
}
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.tl-item.is-in::before {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, .12);
  transform: scale(1.08);
}
.tl-date { font-size: 12px; color: var(--accent-1); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tl-title { font-size: 15.5px; font-weight: 600; margin: 4px 0 5px; }
.tl-desc { font-size: 13.5px; color: var(--fg-dim); line-height: 1.65; }

/* ---------- 12. 技术栈 ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  font-size: 13.5px;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.tech-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tech-item svg { color: var(--accent-2); flex: none; }
.tech-item small { display: block; font-size: 11.5px; color: var(--fg-faint); }

/* ---------- 13. FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  padding: 0 18px;
  transition: border-color .22s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-size: 14.5px;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--fg-dim);
  border-bottom: 1.5px solid var(--fg-dim);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
  flex: none;
  margin-top: -3px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq .faq-body { padding: 0 0 18px; font-size: 13.5px; color: var(--fg-dim); line-height: 1.7; }

/* ---------- 14. 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 46px;
  font-size: 13px;
  color: var(--fg-faint);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--fg); }

/* ---------- 15. 工具类 ---------- */
code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .92em;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(129, 140, 248, .12);
  color: var(--accent-2);
}
html[data-theme="light"] code { background: rgba(99, 102, 241, .1); color: #4f46e5; }

.muted { color: var(--fg-dim); }
.faint { color: var(--fg-faint); }
.stack-sm > * + * { margin-top: 12px; }
.stack-md > * + * { margin-top: 22px; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.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;
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 860px) {
  :root { --pad: 20px; }
  .section { padding: 68px 0; }
  .nav-desktop { display: none; }
  .nav-toggle { display: grid; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 56px) 0 72px; }
  .scroll-cue { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 520px) {
  body { font-size: 14.5px; }
  .hero-title { font-size: clamp(34px, 10vw, 48px); }
  .svc-grid, .metric-grid, .tech-grid, .chart-grid, .grid-2 { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .svc-row-state { display: none; }
  .svc-row-time { grid-column: 2; }
  .big-timer { font-size: 34px; }
  .info-table th { width: 42%; }
}

/* ---------- 17. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .scroll-cue { animation: none; }
  .page-enter { animation: none; }
  @view-transition { navigation: none; }
}
