/* ============================================================
   Evaer v2 — 基础层：reset / 排版 / 容器 / 通用工具
   ============================================================ */

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

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 背景光晕：纯 CSS，不影响性能 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(34, 211, 238, 0.10), transparent 62%),
    radial-gradient(760px 460px at 12% 4%, rgba(99, 102, 241, 0.10), transparent 60%),
    radial-gradient(700px 500px at 50% 108%, rgba(34, 211, 238, 0.06), transparent 65%);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: #67E8F9; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
h3 { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }

p { margin: 0 0 1em; color: var(--text); }
p.lead { font-size: clamp(1rem, 1.35vw, 1.12rem); color: var(--muted); }
small, .small { font-size: 0.85rem; }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text-strong);
}

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin: 0.35em 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 布局容器 */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
}
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head p { color: var(--muted); margin-bottom: 0; }

/* 工具类 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-gradient {
  background: linear-gradient(96deg, #67E8F9 0%, #22D3EE 38%, #818CF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #04121A;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #04121A; }

/* 进入视口淡入（无 JS 时保持可见） */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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