:root {
  /* 基础色板 */
  --color-dark: #271231;
  --color-paper: #F6F3F7;
  --color-body: #1F1523;
  --color-brand: #9E13DD;
  --color-accent: #ED6EC0;

  /* 结构性设计 Token */
  --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: 960px;
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 表面层变量覆盖：让组件通过变量取色，不硬编码颜色 */
.surface-paper {
  --c-bg: var(--color-paper);
  --c-text: var(--color-body);
  --c-link: var(--color-brand);
  --c-accent: var(--color-brand);
  --c-divider: rgba(31, 21, 35, 0.15);
  --c-surface-alt: rgba(158, 19, 221, 0.06);
}

.surface-dark {
  --c-bg: var(--color-dark);
  --c-text: var(--color-paper);
  --c-link: var(--color-accent);
  --c-accent: var(--color-accent);
  --c-divider: rgba(246, 243, 247, 0.15);
  --c-surface-alt: rgba(237, 110, 192, 0.1);
}

/* 基础重置与排版 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-body);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* 容器与布局 */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}
section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  position: relative;
}
section:not(:last-child) {
  border-bottom: 1px solid var(--c-divider);
}

/* 页头与页脚 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-paper);
  border-bottom: 1px solid var(--c-divider);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: 24px; }
.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] { color: var(--c-accent); }

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--c-divider);
  font-size: 0.875rem;
  opacity: 0.85;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* 按钮系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  border: none;
}
.btn:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--c-accent);
  color: var(--color-dark);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--c-text);
  color: var(--c-text);
}
.btn-secondary:hover {
  background: var(--c-surface-alt);
  transform: translateY(-2px);
}

/* 眉标与标题 */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--c-accent);
}
h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-wrap: balance;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 16px;
}
.hl { color: var(--c-accent); }

/* 段落与正文 */
.lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 70ch;
}
.text-body {
  max-width: 38em;
  margin-bottom: 24px;
}

/* 卡片与面板 */
.card {
  background: var(--c-bg);
  border: var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -12px rgba(31, 21, 35, 0.35);
}
.panel {
  background: var(--c-surface-alt);
  border: 1px solid var(--c-divider);
  border-radius: var(--radius-card);
  padding: 24px;
}

/* 表格 */
.table-wrapper { overflow-x: auto; margin: 32px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-divider);
}
th { font-weight: 600; opacity: 0.8; }
td:first-child { font-weight: 500; }

/* 定义列表 */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.dl-item dt {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--c-accent);
}
.dl-item dd {
  font-size: 0.9375rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* 步骤编号 */
.step-list { counter-reset: step; }
.step-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 24px;
}
.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--c-accent);
  color: var(--color-dark);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
}
.step-item p { margin-top: 8px; opacity: 0.9; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item details {
  border: 1px solid var(--c-divider);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  background: var(--c-bg);
  transition: background 0.2s;
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  font-weight: 400;
  opacity: 0.6;
}
.faq-item details[open] summary::before { content: "-"; }
.faq-item details[open] { background: var(--c-surface-alt); }
.faq-item p { margin-top: 12px; font-size: 0.9375rem; line-height: 1.7; opacity: 0.9; }

/* SVG 动效：网格节点依次点亮 */
@keyframes node-glow {
  0%, 100% { opacity: 0.15; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
.node {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-glow 5s ease-in-out infinite;
}
.node:nth-child(1) { animation-delay: 0.0s; }
.node:nth-child(2) { animation-delay: 0.4s; }
.node:nth-child(3) { animation-delay: 0.8s; }
.node:nth-child(4) { animation-delay: 1.2s; }
.node:nth-child(5) { animation-delay: 1.6s; }
.node:nth-child(6) { animation-delay: 2.0s; }
.node:nth-child(7) { animation-delay: 2.4s; }
.node:nth-child(8) { animation-delay: 2.8s; }
.node:nth-child(9) { animation-delay: 3.2s; }
.node:nth-child(10) { animation-delay: 3.6s; }
.node:nth-child(11) { animation-delay: 4.0s; }
.node:nth-child(12) { animation-delay: 4.4s; }

/* 响应式与无障碍 */
@media (max-width: 768px) {
  .nav { display: none; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-layout { flex-direction: column; }
  .hero-visual { order: -1; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}
