/* 基础层：reset / focus / 容器 / 模块底色 / 眉标 / 模块头 / 标题层级
   拆分自 assets/css/design-system.css（2026-08-30）
   依赖 tokens.css。 */

/* ===== Reset（精细化，不影响语义列表） ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; touch-action: manipulation; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ===== Selection ===== */
::selection {
  background: var(--gold-200);
  color: var(--navy-900);
}

/* ===== Focus ring（全局可访问性） ===== */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

/* ===== 跳转链接（键盘用户） ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  background: var(--navy-800);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--r-s) var(--r-s);
  transition: top var(--duration-base) var(--ease-out);
}
.skip-link:focus-visible { top: 0; outline: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* ===== 模块通用 ===== */
.module { padding: var(--sp-7) 0; }
.module.bg-soft { background: var(--bg-soft); }
.module.bg-tint { background: var(--bg-tint); }
.module.bg-gold-tint { background: var(--bg-gold-tint); }
.module.bg-steel { background: linear-gradient(180deg, var(--bg-steel) 0%, var(--bg-steel-deep) 100%); }
.module.bg-navy { background: var(--navy-700); color: #fff; }
.module.bg-navy-deep { background: var(--navy-800); color: #fff; }
.module.compact { padding: var(--sp-5) 0; }

/* ===== 眉标 ===== */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-500);
}
.eyebrow.teal { color: var(--teal-500); }

/* ===== 模块头 ===== */
.module-head {
  max-width: 640px;
  margin-bottom: var(--sp-6);
}
.module-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.module-head .eyebrow { margin-bottom: var(--sp-2); }
.module-head h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy-700);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}
.module-head .lead {
  font-size: 17px;
  color: var(--ink-600);
  line-height: 1.7;
}

/* 深底模块头 */
.bg-navy .module-head h2,
.bg-navy-deep .module-head h2 { color: #fff; }
.bg-navy .module-head .lead,
.bg-navy-deep .module-head .lead { color: rgba(255,255,255,0.72); }
.bg-navy .module-head .eyebrow,
.bg-navy-deep .module-head .eyebrow { color: var(--gold-300); }

/* ===== 标题层级 ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy-700);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 19px; letter-spacing: -0.01em; font-weight: 700; }
h4 { font-size: 16px; font-weight: 600; }
