:root {
  --color-dark: #271231;
  --color-paper: #F6F3F7;
  --color-text: #1F1523;
  --color-brand: #9E13DD;
  --color-accent: #ED6EC0;
  --radius-card: 0;
  --radius-btn: 0;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(31, 21, 35, 0.3);
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 1120px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

/* 表面与容器 */
.surface-paper { background: var(--color-paper); color: var(--color-text); }
.surface-dark { background: var(--color-dark); color: var(--color-paper); }
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
section { padding-block: var(--section-y); }

/* 排版 */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-top: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { max-width: 38em; margin-bottom: 1em; }
a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}
.surface-paper .tag { color: var(--color-brand); }
.surface-dark .tag { color: var(--color-accent); }
.hl { font-weight: 800; }
.surface-paper .hl { color: var(--color-brand); }
.surface-dark .hl { color: var(--color-accent); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 52px;
  padding: 0 1.5em;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { background: #d65aa8; }
.btn-secondary { background: transparent; }
.surface-paper .btn-secondary { color: var(--color-text); border-color: var(--color-text); }
.surface-dark .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }
.btn-icon { width: 20px; height: 20px; stroke-width: 2; }

/* 卡片与面板 */
.card {
  background: var(--color-paper);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: var(--gap);
  border-radius: var(--radius-card);
}
.surface-dark .card {
  background: var(--color-dark);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}
.visual-panel {
  background: var(--color-dark);
  padding: var(--gap);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.surface-dark .visual-panel { background: #1f0e28; }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.data-table th, .data-table td { text-align: left; padding: 0.75em 1em; border-bottom: 1px solid currentColor; }
.data-table th { font-weight: 700; width: 40%; }
.data-table tr:last-child td { border-bottom: none; }

/* 步骤条 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); counter-reset: step; }
.step-item { position: relative; padding-left: 2.5em; counter-increment: step; }
.step-item::before {
  content: "0" counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-card);
}
.surface-paper .step-item::before { background: var(--color-brand); color: var(--color-paper); }

/* FAQ */
details { margin-bottom: 1em; border-bottom: 1px solid currentColor; padding-bottom: 1em; }
summary { font-weight: 700; cursor: pointer; list-style: none; padding: 0.5em 0; }
summary::-webkit-details-marker { display: none; }
summary::marker { display: none; content: ""; }
summary::after { content: "+"; float: right; font-weight: 300; }
details[open] summary::after { content: "-"; }

/* 导航与页脚 */
header { position: sticky; top: 0; z-index: 100; background: rgba(246, 243, 247, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,0.06); }
.surface-dark header { background: rgba(39, 18, 49, 0.9); border-bottom-color: rgba(255,255,255,0.08); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.5em; text-decoration: none; color: inherit; font-weight: 800; font-size: 1.2rem; }
.logo img { width: 32px; height: 32px; object-fit: contain; }
.nav-links { display: flex; gap: 1.5em; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
footer { padding: var(--section-y) 0; border-top: 1px solid currentColor; margin-top: var(--section-y); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.footer-col h4 { margin: 0 0 0.5em; font-size: 0.9rem; font-weight: 700; opacity: 0.7; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5em; }
.footer-col a { text-decoration: none; opacity: 0.8; }
.footer-col a:hover { opacity: 1; }
.copyright { text-align: center; opacity: 0.6; font-size: 0.85rem; margin-top: 2em; }

/* SVG 基础 */
.svg-container { width: 100%; height: auto; max-width: 100%; display: block; }
.svg-container svg { width: 100%; height: auto; display: block; }

/* SVG 动效 */
@keyframes orbit-breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 1; }
}
.anim-orbit { animation: orbit-breathe 6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.anim-orbit-1 { animation-delay: 0s; }
.anim-orbit-2 { animation-delay: -2s; }
.anim-orbit-3 { animation-delay: -4s; }

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.anim-float { animation: float-gentle 4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

@keyframes dash-flow {
  to { stroke-dashoffset: -100; }
}
.anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: dash-flow 8s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 响应式微调 */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; }
}
