:root {
  /* 色板 */
  --color-dark: #2D1438;
  --color-paper: #F6F3F7;
  --color-text: #1F1523;
  --color-brand: #9E13DD;
  --color-accent: #6EEDA8;

  /* 结构 Token */
  --radius-card: 20px;
  --radius-btn: 12px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(31, 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, "Helvetica Neue", Arial, sans-serif;

  /* 取色变量（纸面默认） */
  --bg-page: var(--color-paper);
  --fg-body: var(--color-text);
  --fg-highlight: var(--color-brand);
  --fg-accent: var(--color-brand);
}

/* 基础重置与排版 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--fg-body);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 容器 */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* 区块节奏 */
.section {
  padding: var(--section-y) 0;
}
.section--dark {
  background: var(--color-dark);
  color: var(--color-paper);
  --bg-page: var(--color-dark);
  --fg-body: var(--color-paper);
  --fg-highlight: var(--color-accent);
  --fg-accent: var(--color-accent);
}
.section--paper {
  background: var(--color-paper);
  color: var(--color-text);
  --bg-page: var(--color-paper);
  --fg-body: var(--color-text);
  --fg-highlight: var(--color-brand);
  --fg-accent: var(--color-brand);
}

/* 标题系统 */
.h1-hero {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--gap);
}
.h2-section {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: calc(var(--gap) * 1.5);
}
.h3-sub {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: calc(var(--gap) * 0.8);
}
.text-hl { color: var(--fg-highlight); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-accent);
  margin-bottom: calc(var(--gap) * 0.5);
  position: relative;
  padding-left: 1.2em;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 0.6em; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 52px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--fg-highlight);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-dark);
  border: none;
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(0.95); }
.btn--secondary {
  background: transparent;
  color: var(--fg-body);
  border: 1px solid var(--fg-body);
}
.btn--secondary:hover { background: rgba(128,128,128,0.08); transform: translateY(-1px); }
.btn--icon { width: 20px; height: 20px; flex-shrink: 0; }

/* 卡片与面板 */
.card {
  background: var(--bg-page);
  border: var(--card-border) solid var(--fg-body);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: var(--gap);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgba(31, 21, 35, 0.35); }
.panel {
  border-radius: var(--radius-card);
  padding: var(--gap);
  position: relative;
  overflow: hidden;
}
.panel--dark { background: var(--color-dark); color: var(--color-paper); }
.panel--brand { background: var(--color-brand); color: #fff; }
.panel--light { background: var(--color-paper); color: var(--color-text); }

/* 网格布局 */
.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-col { display: flex; flex-direction: column; gap: var(--gap); }
.flex-row { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; }

/* 时间轴 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: "";
  position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: currentColor; opacity: 0.2;
}
.timeline-item { position: relative; margin-bottom: var(--gap); }
.timeline-item::before {
  content: "";
  position: absolute; left: -20px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--fg-accent);
  box-shadow: 0 0 0 4px var(--bg-page);
}
.timeline-time { font-size: 0.85rem; font-weight: 700; color: var(--fg-accent); margin-bottom: 0.25em; }

/* 步骤编号 */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--color-accent); color: var(--color-dark);
  font-weight: 800; font-size: 0.9rem; margin-right: 0.6em;
}

/* 表格 */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(128,128,128,0.2);
}
.spec-table th { font-weight: 600; color: var(--fg-highlight); }
.spec-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item details {
  background: var(--bg-page); border: 1px solid rgba(128,128,128,0.15);
  border-radius: 12px; padding: 16px; transition: background 0.2s;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex;
  justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2em; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: inherit; opacity: 0.9; line-height: 1.6; }

/* 新闻卡片 */
.news-card { display: flex; flex-direction: column; gap: 12px; }
.news-date { font-size: 0.8rem; font-weight: 600; color: var(--fg-accent); }

/* SVG 动效基础 */
.svg-container svg { width: 100%; height: auto; display: block; }
.orbit-ring { transform-box: fill-box; transform-origin: center; }
.draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes dashDraw {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
.orbit-ring--slow { animation: breathe 8s ease-in-out infinite; }
.orbit-ring--fast { animation: breathe 5s ease-in-out infinite; }
.float-slow { animation: float 6s ease-in-out infinite; }
.float-delayed { animation: float 6s ease-in-out infinite; animation-delay: 1.5s; }
.draw-line--anim { animation: dashDraw 4s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* 响应式微调 */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-layout { flex-direction: column-reverse; }
  .sidebar-note { order: -1; }
  h1, h2, h3 { text-wrap: balance; }
}
