:root {
  /* 基础色板 */
  --color-dark: #2D1438;
  --color-paper: #F6F3F7;
  --color-body: #1F1523;
  --color-brand: #9E13DD;
  --color-accent: #6EEDA8;
  --color-white: #FFFFFF;
  --color-muted: rgba(31, 21, 35, 0.6);
  --color-border: rgba(31, 21, 35, 0.16);

  /* 设计 Token */
  --radius-card: 20px;
  --radius-btn: 12px;
  --card-border: 1px solid var(--color-border);
  --card-shadow: none;
  --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;
  --title-weight: 600;
  --title-line-height: 1.25;
  --body-size: 18px;
  --body-line-height: 1.75;
}

/* 面层级变量覆盖 */
.dark-surface {
  background: var(--color-dark);
  color: var(--color-paper);
}
.dark-surface .hl { color: var(--color-accent); }
.dark-surface .tag { color: var(--color-accent); border-color: var(--color-accent); }
.dark-surface .link { color: var(--color-accent); text-decoration-thickness: 1px; }
.dark-surface .btn-primary { background: var(--color-accent); color: var(--color-dark); }
.dark-surface .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.dark-surface .card { background: var(--color-paper); color: var(--color-body); border-color: var(--color-border); }
.dark-surface .timeline::before { background: rgba(246, 243, 247, 0.2); }
.dark-surface .timeline-item::before { background: var(--color-accent); border-color: var(--color-paper); }
.dark-surface th { background: rgba(0, 0, 0, 0.08); }

.paper-surface {
  background: var(--color-paper);
  color: var(--color-body);
}
.paper-surface .hl { color: var(--color-brand); }
.paper-surface .tag { color: var(--color-brand); border-color: var(--color-brand); }
.paper-surface .link { color: var(--color-brand); text-decoration-thickness: 1px; }
.paper-surface .btn-primary { background: var(--color-brand); color: var(--color-white); }
.paper-surface .btn-secondary { border-color: var(--color-body); color: var(--color-body); }
.paper-surface .timeline::before { background: var(--color-border); }
.paper-surface .timeline-item::before { background: var(--color-brand); border-color: var(--color-paper); }
.paper-surface th { background: rgba(0, 0, 0, 0.03); }

/* 重置与基础 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font-sans); font-size: 100%; scroll-behavior: smooth; }
body { line-height: var(--body-line-height); -webkit-font-smoothing: antialiased; background: var(--color-paper); color: var(--color-body); }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* 布局容器 */
.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gap); }
section { padding-block: var(--section-y); }

/* 排版 */
h1, h2, h3, h4 { font-weight: var(--title-weight); line-height: var(--title-line-height); letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.8rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.6rem; }
p { margin-bottom: 1em; max-width: 38em; }
.lead { font-size: 1.125rem; opacity: 0.9; margin-bottom: 2rem; line-height: 1.6; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; padding: 0.25rem 0.75rem; border-radius: 999px; border: 1px solid; margin-bottom: 1rem; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }

/* 按钮 */
.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, background-color 0.2s ease, border-color 0.2s ease; border: none; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* 网格与卡片 */
.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); }
.card { background: var(--color-paper); border: var(--card-border); border-radius: var(--radius-card); padding: var(--gap); box-shadow: var(--card-shadow); }

/* 特性交错行 */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.feature-row.reverse { direction: rtl; }
.feature-row > * { direction: ltr; }
.visual-panel { aspect-ratio: 4/3; border-radius: var(--radius-card); overflow: hidden; position: relative; background: var(--color-dark); }

/* 时间轴 */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0.5rem; top: 0; bottom: 0; width: 2px; background: var(--color-border); }
.timeline-item { position: relative; margin-bottom: var(--gap); }
.timeline-item::before { content: ''; position: absolute; left: -1.75rem; top: 0.5rem; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--color-paper); }
.timeline-time { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.25rem; display: block; }

/* 表格 */
.table-wrap { overflow-x: auto; border: var(--card-border); border-radius: var(--radius-card); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 1rem; text-align: left; border-bottom: var(--card-border); vertical-align: top; }
th { font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* FAQ */
details { border: var(--card-border); border-radius: var(--radius-card); margin-bottom: 1rem; overflow: hidden; }
summary { padding: 1rem 1.25rem; 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.25rem; flex-shrink: 0; }
details[open] summary::after { content: '−'; }
.faq-answer { padding: 0 1.25rem 1rem; line-height: 1.7; }

/* 资讯卡片 */
.news-card { background: var(--color-paper); border: var(--card-border); border-radius: var(--radius-card); padding: var(--gap); display: flex; flex-direction: column; gap: 0.5rem; }
.news-date { font-size: 0.8rem; color: var(--color-muted); margin-top: auto; }

/* 页头页脚 */
header { position: sticky; top: 0; z-index: 100; background: rgba(246, 243, 247, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); }
.dark-surface header { background: rgba(45, 20, 56, 0.9); border-bottom-color: rgba(246, 243, 247, 0.1); }
.nav { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.25rem; }
.logo img { height: 32px; width: auto; }
nav ul { display: flex; gap: 1.5rem; align-items: center; }
nav a { font-weight: 500; opacity: 0.8; transition: opacity 0.2s; }
nav a:hover, nav a[aria-current="page"] { opacity: 1; }
footer { padding-block: var(--section-y); border-top: 1px solid var(--color-border); }

/* SVG 动效类 */
.svg-container svg { width: 100%; height: auto; }
.anim-draw { animation: draw 4s ease-out infinite alternate; stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim-twinkle { animation: twinkle 4s ease-in-out infinite; }
.anim-float { animation: float 6s ease-in-out infinite; }
.anim-slide { animation: slideIn 1s ease-out forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } 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; }
}

/* 响应式微调 */
@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }
  nav ul { gap: 1rem; }
  .hide-mobile { display: none; }
}
