/* ============================================================
   base.css — 重置 + 基础排版 + 容器 + 通用元素统一
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* —— 标题族：全站统一字号 / 行高 / 边距 —— */
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--c-brand); /* H1/H2 品牌陶土棕红（标准允许按品牌色适配） */
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 700;
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 600;
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 600;
  color: var(--c-text);
}

h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: 500;
  color: var(--c-text-2);
}

p {
  margin: 0;
}

::selection {
  background: var(--c-brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
}

/* —— 容器与模块节奏 —— */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--space-sec);
}

/* —— 小节标签（eyebrow）：刻度短横 + 小字 —— */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-aux);
  line-height: var(--lh-aux);
  letter-spacing: 0.18em;
  color: var(--c-brand);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--c-brand);
  flex: none;
}

/* —— 滚动显现（reveal） —— */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* —— 动效降级 —— */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— 无障碍：仅供读屏 —— */
.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;
}
