:root {
  /* 基础色板 */
  --color-bg-dark: #2D1438;
  --color-bg-paper: #F6F3F7;
  --color-text-body: #1F1523;
  --color-brand: #9E13DD;
  --color-accent: #6EEDA8;
  
  /* 设计 Token */
  --radius-card: 20px;
  --radius-btn: 12px;
  --card-border: 1px solid rgba(31,21,35,0.16);
  --card-shadow: none;
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 960px;
  
  /* 排版节奏 */
  --font-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --line-height-base: 1.75;
  --line-height-tight: 1.1;
}

/* 全局重置与基础 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--line-height-base);
  color: var(--color-text-body);
  background: var(--color-bg-paper);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* 容器与区块 */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--paper {
  background: var(--color-bg-paper);
  --text-main: var(--color-text-body);
  --text-heading: var(--color-text-body);
  --text-link: var(--color-brand);
  --text-icon: var(--color-brand);
}
.section--dark {
  background: var(--color-bg-dark);
  --text-main: var(--color-bg-paper);
  --text-heading: var(--color-bg-paper);
  --text-link: var(--color-accent);
  --text-icon: var(--color-accent);
}
.card-light {
  background: #ffffff;
  border: var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  --text-main: var(--color-text-body);
  --text-heading: var(--color-text-body);
  --text-link: var(--color-brand);
  --text-icon: var(--color-brand);
}

/* 排版系统 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--text-link);
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  margin-bottom: 32px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-heading);
  margin-bottom: 12px;
}
p { margin-bottom: 16px; color: var(--text-main); }
.text-hl {
  color: var(--text-link);
  font-weight: 700;
}
a.link {
  color: var(--text-link);
  font-weight: 600;
  border-bottom: 1px dashed var(--text-link);
  transition: opacity 0.2s;
}
a.link:hover { opacity: 0.8; }
.icon-sm {
  width: 20px;
  height: 20px;
  stroke: var(--text-icon);
  stroke-width: 1.8;
  fill: none;
  vertical-align: -4px;
  flex-shrink: 0;
}

/* 头部与导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31,21,35,0.08);
  transition: background 0.3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-text-body);
}
.brand img { width: 28px; height: 28px; object-fit: contain; }
.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--color-text-body);
  padding: 6px 0;
  position: relative;
}
.nav-links a[aria-current="page"] {
  color: var(--color-brand);
}
.nav-links a:not([aria-current="page"]):hover {
  color: var(--color-brand);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.header-cta:hover { transform: translateY(-1px); }
.header-cta:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  border: none;
  cursor: pointer;
}
.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-main);
}

/* 按钮组件 */
.btn-group { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; }

/* 特性胶囊 */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(31,21,35,0.06);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}
.pill svg { width: 16px; height: 16px; stroke: var(--text-icon); }

/* 网格与面板 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--gap);
  align-items: center;
}
.visual-panel {
  background: var(--color-bg-dark);
  border-radius: var(--radius-card);
  padding: var(--gap);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-inner {
  width: 100%;
  height: 100%;
}

/* 时间轴与步骤 */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid rgba(31,21,35,0.1);
}
.section--dark .timeline { border-left-color: rgba(255,255,255,0.15); }
.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(31,21,35,0.06);
}
.section--dark .timeline-item { border-bottom-color: rgba(255,255,255,0.08); }
.timeline-item:last-child { margin-bottom: 0; border-bottom: none; }
.timeline-item::before {
  content: attr(data-time);
  position: absolute;
  left: -48px;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: var(--color-bg-dark);
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  color: var(--color-bg-dark);
  font-weight: 800;
  border-radius: 10px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* 表格 */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: var(--card-border);
  background: #fff;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data-table th, .data-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(31,21,35,0.08);
}
.data-table th {
  background: rgba(31,21,35,0.04);
  font-weight: 700;
  color: var(--color-text-body);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { font-weight: 600; color: var(--color-text-body); width: 35%; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details {
  background: #fff;
  border: var(--card-border);
  border-radius: var(--radius-card);
  padding: 20px;
  transition: box-shadow 0.2s;
}
details:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-icon);
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
.details-content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(31,21,35,0.06);
  color: var(--text-main);
}

/* 新闻卡片 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.news-card {
  background: #fff;
  border: var(--card-border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-date {
  font-size: 0.85rem;
  color: var(--color-text-body);
  font-weight: 600;
}
.news-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.news-card p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 0; }

/* 页脚 */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* SVG 动效核心 */
.svg-root { width: 100%; height: auto; max-width: 100%; }
.anim-draw {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: drawLine 4s ease-in-out infinite alternate;
}
.anim-float {
  animation: floatPanel 6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.anim-pulse {
  animation: pulseDot 3s ease-in-out infinite;
}
.anim-flow {
  pathLength: 1;
  stroke-dasharray: 0.08 0.92;
  stroke-dashoffset: 0;
  animation: flowDash 2s linear infinite;
}
@keyframes drawLine {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes floatPanel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes flowDash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .visual-panel { order: -1; aspect-ratio: 16/9; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* 无障碍：减少动态效果 */
@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;
  }
  .anim-draw, .anim-float, .anim-pulse, .anim-flow {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
