/* ==========================================================================
   留白 WHITE SPACE · 基础层
   设计变量 / 重置 / 排版
   ========================================================================== */

:root {
  /* 深色沉浸式色板：近黑底 + 暖白字 + 黄铜点缀 */
  --bg: #0a0a0a;
  --bg-2: #0d0d0e;
  --surface: #131314;
  --line: rgba(255, 255, 255, .13);
  --line-soft: rgba(255, 255, 255, .07);
  --text: #ece9e3;
  --muted: #918d85;
  --dim: #5f5c56;
  --accent: #c9a86a;

  --serif: "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Microsoft YaHei UI", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 1280px;
  --gutter: 40px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--accent); color: #0a0a0a; }

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

/* 滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #26262a; border: 3px solid #0a0a0a; border-radius: 8px; }

/* ----------------------------- 排版工具 ----------------------------- */
.eyebrow {
  font-size: 10.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}

.serif { font-family: var(--serif); font-weight: 400; }

.muted { color: var(--muted); }
.dim { color: var(--dim); }

.rule {
  height: 1px;
  background: var(--line-soft);
}

.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(22px);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

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