/* 基础层：重置、排版、语义焦点、动效降级 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.7;
  letter-spacing: 0.02em;
  /* 队旗底色：深军绿渐变 + 装甲板几何暗纹，与班旗背景同调 */
  background-image:
    linear-gradient(135deg, rgba(112, 148, 96, 0.13) 25%, transparent 25%) -16px 0 / 64px 64px,
    linear-gradient(225deg, rgba(112, 148, 96, 0.13) 25%, transparent 25%) -16px 0 / 64px 64px,
    linear-gradient(45deg, rgba(112, 148, 96, 0.13) 25%, transparent 25%) 16px 0 / 64px 64px,
    linear-gradient(315deg, rgba(112, 148, 96, 0.13) 25%, transparent 25%) 16px 0 / 64px 64px,
    linear-gradient(180deg, #162d20 0%, #2b4a30 45%, #14291d 100%);
  background-attachment: fixed;
}

/* 颗粒质感层：低透明噪点，不拦截交互 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
::selection { background: var(--color-accent-soft); color: var(--color-ink); }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.muted { color: var(--color-muted); }
.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;
}

.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }
.reveal:nth-child(5) { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
