:root {
  /* 色板 */
  --color-dark: #140E25;
  --color-paper: #F5F0E5;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #C8ED6E;
  
  /* 结构性 Token */
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(25, 21, 35, 0.3);
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 1120px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", sans-serif;
  --lh-body: 1.55;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-paper);
  color: var(--color-text);
  line-height: var(--lh-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* 排版基础 */
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.25; letter-spacing: 0.02em; margin-bottom: 1.2em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.01em; margin-bottom: 0.8em; }
p { max-width: 38em; margin-bottom: 1em; }
a { color: var(--color-brand); text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.85; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.2em; margin-bottom: 1em; }
li { margin-bottom: 0.4em; }

/* 容器与分节 */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: var(--section-y) 0; }
.surface-dark { background: var(--color-dark); color: var(--color-paper); }
.surface-dark .hl { color: var(--color-accent); }
.surface-dark a { color: var(--color-accent); }
.surface-dark .eyebrow { color: var(--color-accent); }
.surface-light { background: var(--color-paper); color: var(--color-text); }
.surface-light .hl { color: var(--color-brand); }
.surface-light a { color: var(--color-brand); }
.surface-light .eyebrow { color: var(--color-brand); }

/* 眉标与强调 */
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.5em; display: block; }
.hl { font-weight: 700; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0 1.4em; height: 50px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: none; transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { background: #b8dc5e; transform: translateY(-1px); }
.btn-secondary { background: transparent; border: 1px solid var(--color-text); color: var(--color-text); }
.surface-dark .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.surface-dark .btn-secondary:hover { background: rgba(245, 240, 229, 0.08); }
.btn:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* 卡片 */
.card {
  background: var(--color-paper); color: var(--color-text);
  border-radius: var(--radius-card); border: var(--card-border);
  box-shadow: var(--card-shadow); padding: 1.5em;
  transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: 0 12px 32px -12px rgba(25, 21, 35, 0.35); }
.surface-dark .card { background: var(--color-dark); color: var(--color-paper); }
.surface-dark .card .eyebrow { color: var(--color-accent); }
.surface-dark .card a { color: var(--color-accent); }

/* 网格布局 */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.flex-row { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; }
.col-content { flex: 1 1 300px; min-width: 0; }
.col-visual { flex: 1 1 320px; min-width: 0; }

/* 表格 */
table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.95rem; }
th, td { padding: 0.8em 1em; text-align: left; border-bottom: 1px solid rgba(25, 21, 35, 0.1); }
th { font-weight: 700; }
tr:last-child th, tr:last-child td { border-bottom: none; }

/* FAQ */
details { margin-bottom: 1em; border: 1px solid rgba(25, 21, 35, 0.1); border-radius: var(--radius-card); overflow: hidden; }
summary { padding: 1em; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2em; font-weight: 400; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 1em 1em; }

/* 页头页脚 */
header { position: sticky; top: 0; background: var(--color-paper); z-index: 100; border-bottom: 1px solid rgba(25, 21, 35, 0.08); padding: 0.75em 0; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { display: flex; align-items: center; gap: 0.5em; font-weight: 800; font-size: 1.1rem; color: var(--color-text); text-decoration: none; }
.brand-logo img { width: 32px; height: 32px; }
nav a { margin-left: 1.5em; font-weight: 500; font-size: 0.95rem; }
nav a[aria-current="page"] { color: var(--color-brand); font-weight: 700; }
footer { background: var(--color-dark); color: var(--color-paper); padding: var(--section-y) 0; }
footer .nav-inner { flex-direction: column; gap: 1em; text-align: center; }
footer nav a { margin: 0 0.8em; }
.footer-copy { margin-top: 2em; text-align: center; font-size: 0.85rem; opacity: 0.7; }

/* SVG 动效核心 */
.hero-svg-container { width: 100%; max-width: 480px; margin: 0 auto; }
.hero-svg { width: 100%; height: auto; }
.svg-path-flow { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.anim-draw { animation: dashFlow 4s ease-in-out infinite; }
.anim-float { animation: float 5s ease-in-out infinite; }
.anim-breathe { animation: breathe 2.5s ease-in-out infinite; }
.anim-slide { animation: slideIn 0.9s ease-out forwards; }
.svg-node { transform-box: fill-box; transform-origin: center; }

@keyframes dashFlow {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0.2; }
  100% { stroke-dashoffset: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 响应式与无障碍 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim-draw, .anim-float, .anim-breathe, .anim-slide { animation: none !important; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .col-visual { order: -1; }
  header .btn { display: none; }
}
