/* 基础重置与设计变量 */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary: #229ed9;
  --primary-dark: #1a86bb;
  --primary-soft: #eaf6fc;
  --ink: #1a1a1a;
  --ink-muted: #5a6472;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --footer-bg: #12222e;
  --footer-ink: #cfdce5;
  --radius-btn: 10px;
  --radius-card: 14px;
  --radius-icon: 10px;
  --content: 1200px;
  --nav-h: 68px;
  --font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 { margin: 0; line-height: 1.28; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }

a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

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

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

button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--primary); 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;
}
