:root {
  --bg-dark: #13102D;
  --bg-paper: #D6D4ED;
  --text-body: #171523;
  --brand: #2714EB;
  --accent: #89ED6E;
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 1px solid rgba(23, 21, 35, 0.16);
  --card-shadow: none;
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 1280px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 面与卡片的取色覆盖 */
.bg-dark {
  --surface: var(--bg-dark);
  --text-main: var(--bg-paper);
  --text-muted: rgba(214, 212, 237, 0.75);
  --link: var(--accent);
  --border: rgba(214, 212, 237, 0.12);
  background-color: var(--surface);
  color: var(--text-main);
}
.bg-paper {
  --surface: var(--bg-paper);
  --text-main: var(--text-body);
  --text-muted: rgba(23, 21, 35, 0.6);
  --link: var(--brand);
  --border: var(--card-border);
  background-color: var(--surface);
  color: var(--text-main);
}
.card-light {
  --surface: var(--bg-paper);
  --text-main: var(--text-body);
  --text-muted: rgba(23, 21, 35, 0.6);
  --link: var(--brand);
  --border: var(--card-border);
  background-color: var(--surface);
  color: var(--text-main);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  background-color: var(--bg-paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--gap); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 1rem; }
p { margin-bottom: 1.25rem; max-width: 38em; }
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
section { padding: var(--section-y) 0; }

/* 导航 */
header { position: sticky; top: 0; z-index: 100; background-color: rgba(214, 212, 237, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.25rem; }
.logo img { width: 32px; height: 32px; object-fit: contain; }
nav ul { display: flex; gap: 1.5rem; }
nav a { font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
nav a:hover, nav a[aria-current="page"] { color: var(--brand); }
.btn-nav { background: var(--accent); color: var(--bg-dark); padding: 0.6rem 1.2rem; border-radius: var(--radius-btn); font-weight: 600; font-size: 0.9rem; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 48px; padding: 0 1.5rem; border-radius: var(--radius-btn); font-weight: 600; font-size: 1rem; cursor: pointer; transition: transform 0.2s ease, opacity 0.2s ease; border: none; }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary { background-color: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-secondary { background: transparent; border: 1px solid var(--text-body); color: var(--text-body); }
.bg-dark .btn-secondary { border-color: var(--bg-paper); color: var(--bg-paper); }
.btn svg { width: 20px; height: 20px; stroke-width: 2; }

/* 网格与卡片 */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.card { background-color: var(--surface); border: var(--border); border-radius: var(--radius-card); padding: 1.5rem; box-shadow: var(--card-shadow); }
.card-light { --surface: var(--bg-paper); --text-main: var(--text-body); --text-muted: rgba(23, 21, 35, 0.6); --link: var(--brand); --border: var(--card-border); background-color: var(--surface); color: var(--text-main); }

/* 表格 */
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; min-width: 0; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); min-width: 0; overflow-wrap: break-word; word-break: break-all; }
th { font-weight: 600; }

/* FAQ */
details { border: var(--border); border-radius: var(--radius-card); margin-bottom: 1rem; overflow: hidden; }
summary { padding: 1rem 1.5rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details > p { padding: 0 1.5rem 1rem; color: var(--text-muted); }

/* 标签与强调 */
.label { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 0.5rem; color: var(--brand); }
.bg-dark .label { color: var(--accent); }
.hl { color: var(--brand); }
.bg-dark .hl { color: var(--accent); }

/* SVG 基础与动效 */
svg { width: 100%; height: auto; }
.anim-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawLine 8s ease-in-out infinite alternate; }
.anim-float { animation: floatUp 6s ease-in-out infinite alternate; }
.anim-breathe { animation: breathe 4s ease-in-out infinite alternate; }
.anim-slide { animation: slideIn 10s ease-in-out infinite alternate; }
.transform-box { transform-box: fill-box; transform-origin: center; }

@keyframes drawLine { 0%, 100% { stroke-dashoffset: 0; } 50% { stroke-dashoffset: 1; } }
@keyframes floatUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes breathe { 0%, 100% { opacity: 0.7; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes slideIn { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .anim-draw, .anim-float, .anim-breathe, .anim-slide { animation: none !important; }
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-inner { flex-wrap: wrap; height: auto; padding: 1rem 0; }
  nav ul { flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 0.5rem; }
  .steps-row { flex-direction: column; }
}
