:root {
  /* 色板 */
  --bg-dark: #231334;
  --bg-paper: #E9E8EA;
  --text-body: #1C1523;
  --brand-color: #7D14EB;
  --accent-color: #EDD26E;

  /* 上下文变量（默认纸面） */
  --text: var(--text-body);
  --brand: var(--brand-color);
  --accent: var(--accent-color);

  /* 设计 Token */
  --radius-card: 20px;
  --radius-btn: 12px;
  --card-border: 2px solid var(--text);
  --card-shadow: 4px 4px 0 var(--text);
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 960px;
  --lh-base: 1.75;
  --fw-heading: 600;
  --h1-size: clamp(2rem, 4.6vw, 3.4rem);
}

/* 上下文覆盖 */
.surface-dark {
  --text: var(--bg-paper);
  --brand: var(--accent-color);
  --accent: var(--bg-paper);
  background: var(--bg-dark);
  color: var(--text);
}
.card-light {
  --text: var(--text-body);
  --brand: var(--brand-color);
  --accent: var(--accent-color);
}

/* 基础重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg-paper);
  color: var(--text-body);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus-visible { text-decoration: underline; }
ul, ol { padding-left: 1.5em; }

/* 布局容器 */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.grid-2 { 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; }
.flex-col { display: flex; flex-direction: column; }

/* 排版 */
h1 { font-size: var(--h1-size); font-weight: var(--fw-heading); line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 0.8em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: var(--fw-heading); line-height: 1.25; margin-top: 0; margin-bottom: 1.2em; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: var(--fw-heading); line-height: 1.3; margin-bottom: 0.6em; }
p { max-width: 38em; margin-bottom: 1em; }
small { font-size: 0.85rem; opacity: 0.85; }

/* 眉标与高亮 */
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; color: var(--brand); margin-bottom: 0.6rem; text-transform: uppercase; }
.hl { color: var(--brand); font-weight: 700; }
.surface-dark .hl { color: var(--accent); }

/* 页头 */
header { position: sticky; top: 0; z-index: 100; background: rgba(233, 232, 234, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(28, 21, 35, 0.08); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; color: var(--text-body); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--text-body); font-weight: 500; }
nav a[aria-current="page"], nav a:hover { color: var(--brand-color); text-decoration: none; font-weight: 600; }

/* 页脚 */
footer { background: var(--bg-dark); color: var(--bg-paper); padding: var(--section-y) 0; margin-top: var(--section-y); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.footer-grid h4 { color: var(--accent-color); margin: 0 0 0.8em 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5em; }
.footer-grid a { color: var(--bg-paper); opacity: 0.85; }
.footer-grid a:hover { opacity: 1; }
.copyright { text-align: center; margin-top: var(--gap); opacity: 0.7; font-size: 0.85rem; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.4em;
  font-size: 1rem; font-weight: 600; line-height: 1;
  border-radius: var(--radius-btn); text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-secondary { background: transparent; border: 2px solid var(--text); color: var(--text); }
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(237, 210, 110, 0.35); }
.btn-secondary:hover, .btn-secondary:focus-visible { transform: translateY(-2px); background: rgba(28, 21, 35, 0.06); }
.btn svg { width: 20px; height: 20px; stroke: currentColor; flex-shrink: 0; }

/* 卡片与面板 */
.card { background: var(--bg-paper); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--card-shadow); padding: var(--gap); }
.panel { background: var(--bg-dark); border-radius: var(--radius-card); padding: var(--gap); }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
@media (max-width: 768px) { .hero-layout { grid-template-columns: 1fr; } }

/* 表格 */
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.95rem; }
th, td { padding: 0.9em 1em; border-bottom: 1px solid rgba(28, 21, 35, 0.1); text-align: left; }
th { font-weight: 600; background: rgba(28, 21, 35, 0.03); color: var(--text-body); }
td:first-child { font-weight: 600; width: 35%; }

/* 时间线 */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 0.65rem; top: 0; bottom: 0; width: 2px; background: rgba(28, 21, 35, 0.15); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.step-badge { position: absolute; left: -2.8rem; top: 0; width: 1.8rem; height: 1.8rem; background: var(--accent-color); color: var(--bg-dark); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }

/* Tab 导航 */
.tabs-nav { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-btn { background: transparent; border: 2px solid var(--text); border-radius: var(--radius-btn); padding: 0.6em 1.2em; font-weight: 600; cursor: pointer; color: var(--text); transition: all 0.2s; }
.tab-btn[aria-selected="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.3s ease-out; }

/* 资讯卡片 */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.news-card { display: flex; flex-direction: column; background: var(--bg-paper); border: var(--card-border); border-radius: var(--radius-card); padding: 1.5rem; box-shadow: var(--card-shadow); }
.news-card time { font-size: 0.8rem; color: var(--brand); font-weight: 600; margin-bottom: 0.5rem; display: block; }
.news-card p { font-size: 0.95rem; margin: 0; }

/* FAQ */
details { margin-bottom: 1rem; border: 1px solid rgba(28, 21, 35, 0.1); border-radius: 12px; padding: 1.2em; background: var(--bg-paper); }
summary { 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(90deg); }
details p { margin: 0.8em 0 0 0; }

/* SVG 动效基础 */
svg.animated { width: 100%; height: auto; max-width: 600px; }
.draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawPath 4s ease-in-out infinite alternate; }
.float-bubble { animation: floatY 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.breathe-dot { animation: breathe 2.5s ease-in-out infinite; }
.slide-in { animation: slideRight 0.8s ease-out forwards; opacity: 0; }

@keyframes drawPath { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes breathe { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes slideRight { from { transform: translateX(-24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 减少动态效果 */
@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; }
  .draw-line, .float-bubble, .breathe-dot, .slide-in { animation: none !important; opacity: 1; transform: none; }
}

/* 响应式微调 */
@media (max-width: 640px) {
  .nav-inner { flex-direction: column; height: auto; padding: 1rem 0; }
  nav ul { gap: 1rem; }
  .tabs-nav { flex-direction: column; }
  .tab-btn { width: 100%; text-align: left; }
}
