/* =========================================================
   设计系统 Token —— 「绿点（The Green Mark）」· 浅色版
   白底 / 近黑字 / 极淡分隔线；唯一强调色绿，仅用于点、线、填充。
   无渐变辉光、无漂浮球、无粒子；浅底不用 glow。
   ========================================================= */
:root {
  /* —— 色板（浅色） —— */
  --c-bg: #ffffff;          /* 基底白 */
  --c-surface-1: #f6f7f9;   /* 区块交替浅灰 */
  --c-surface-2: #eef1f4;   /* 抬升区块 */
  --c-border: #e7eaee;      /* 分隔线（极淡） */
  --c-text: #16191d;        /* 文字主 */
  --c-text-2: #585f68;     /* 文字次 */
  --c-text-3: #8b929b;     /* 文字弱 */

  --c-mark: #00e676;        /* 绿点（品牌亮绿，仅用于填充/线/小点缀） */
  --c-mark-deep: #007a3e;   /* 可读深绿（文字 / 链接 / 大数字） */
  --c-mark-strong: #006630; /* 深绿 hover/active */
  --c-clash: #e5484d;       /* 冲突红（仅时间轴未解决态） */

  --glow-mark: none;        /* 浅底不用辉光 */

  /* —— 字体 —— */
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* —— 间距（4 基础） —— */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* —— 圆角（硬边建筑感） —— */
  --r-btn: 2px;
  --r-card: 0px;
  --r-mark: 50%;

  /* —— 网格 —— */
  --max-w: 1180px;
  --gutter: 24px;

  /* —— 动效曲线 —— */
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-emp: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-reveal: 600ms;
  --dur-cut: 800ms;

  /* —— 层级 —— */
  --z-nav: 100;
  --z-rail: 90;
  --z-modal: 200;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* 数字统一等宽，避免计数跳动 */
.num, .stat-number, .timeline-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.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;
}

/* ============ 容器 ============ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ 跳转链接（a11y） ============ */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -60px;
  z-index: var(--z-modal);
  background: var(--c-mark-deep);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-btn);
  transition: top var(--dur-reveal) var(--ease-std);
}
.skip-link:focus { top: var(--sp-4); }

/* ============ 焦点环 ============ */
:focus-visible {
  outline: 2px solid var(--c-mark-deep);
  outline-offset: 2px;
}

/* ============ prefers-reduced-motion 全局兜底 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
