/* ==========================================================================
   VueIC · 基础层：重置、排版、容器、无障碍
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: 0.01em;
  color: var(--text);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
figure { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease-out);
}

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

input, select, textarea { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 说明：本站不再隐藏系统光标。
   鼠标光效只是叠加在指针位置的图层，系统箭头始终可见，
   以避免任何情况下出现「鼠标不见了」的问题。 */

.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;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform var(--dur-hover) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---- 容器 ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--pad-x) * 2);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--narrow { max-width: calc(var(--container-text) + var(--pad-x) * 2); }

/* ---- 篇章 ---------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--section-y);
}

/* ---- 章节标签 / 标题 ---------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow__num {
  display: inline-block;
  padding-right: 12px;
  border-right: 1px solid var(--border);
  color: var(--text-3);
  letter-spacing: 0.08em;
}
.eyebrow--warm { color: var(--warm); }
.eyebrow--hero {
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--text-2);
  letter-spacing: 0.22em;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 1.55rem + 1.6vw, 36px);
  line-height: 1.3;
  margin-bottom: var(--space-4);
}
.section__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(22px, 1.2rem + 1vw, 28px);
  margin-bottom: var(--space-4);
}
.section__lead {
  max-width: 560px;
  margin-bottom: var(--space-6);
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.85;
}

/* 正文段落 */
.prose p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}
.prose p + p { margin-top: var(--space-3); }

/* 滚动条（桌面端） */
@media (min-width: 1024px) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb {
    background: var(--border);
    border: 3px solid var(--bg);
    border-radius: var(--radius-pill);
  }
  ::-webkit-scrollbar-thumb:hover { background: #2A3040; }
}
