/* 设计变量 */
:root {
  --color-dark: #271231;
  --color-paper: #F6F3F7;
  --color-body: #1F1523;
  --color-brand: #9E13DD;
  --color-accent: #ED6EC0;
  --radius-card: 0;
  --radius-btn: 0;
  --card-border: 1px solid rgba(31, 21, 35, 0.16);
  --card-shadow: none;
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1120px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

/* 基础重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  line-height: 1.65;
  color: var(--color-body);
  background-color: 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 { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: var(--section-y) 0; position: relative; }

/* 背景切换 */
.bg-dark { background-color: var(--color-dark); color: var(--color-paper); }
.bg-dark .hl { color: var(--color-accent); }
.bg-dark a.link-accent { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.bg-paper { background-color: var(--color-paper); color: var(--color-body); }
.bg-paper .hl { color: var(--color-brand); }
.bg-paper a.link-brand { color: var(--color-brand); text-decoration: underline; text-underline-offset: 2px; }

/* 排版 */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: 0.02em; line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: calc(var(--gap) * 2); }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; max-width: 38em; }
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.bg-paper .eyebrow { color: var(--color-brand); }
.bg-dark .eyebrow { color: var(--color-accent); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
}
.btn-secondary {
  background-color: transparent;
  color: var(--color-body);
  border: 1px solid var(--color-body);
}
.bg-dark .btn-secondary {
  color: var(--color-paper);
  border-color: var(--color-paper);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* 卡片 */
.card {
  background: var(--color-paper);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: var(--gap);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bg-dark .card { background: rgba(246, 243, 247, 0.06); border-color: rgba(246, 243, 247, 0.12); }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid rgba(31, 21, 35, 0.1); }
th { font-weight: 600; }
.bg-dark th, .bg-dark td { border-color: rgba(246, 243, 247, 0.12); }

/* 定义列表 */
.dl-grid { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
.dl-item { padding: var(--gap); border: var(--card-border); background: var(--color-paper); }
.bg-dark .dl-item { background: rgba(246, 243, 247, 0.06); border-color: rgba(246, 243, 247, 0.12); }
.dl-item dt { font-weight: 700; margin-bottom: 0.5rem; }
.dl-item dd { font-size: 0.95rem; color: inherit; opacity: 0.9; }

/* 时间线 */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 0.75rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: currentColor; opacity: 0.2; }
.timeline-step { position: relative; margin-bottom: var(--gap); }
.timeline-step::before {
  content: attr(data-step);
  position: absolute; left: -2rem; top: 0;
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  background: var(--color-accent); color: var(--color-dark);
}
.bg-paper .timeline-step::before { background: var(--color-brand); color: var(--color-paper); }

/* FAQ */
details { border: var(--card-border); margin-bottom: 0.75rem; background: var(--color-paper); }
.bg-dark details { background: rgba(246, 243, 247, 0.06); border-color: rgba(246, 243, 247, 0.12); }
summary { padding: 1rem; 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-weight: 400; font-size: 1.2rem; }
details[open] summary::after { content: "−"; }
.details-content { padding: 0 1rem 1rem; font-size: 0.95rem; line-height: 1.7; }

/* SVG 容器 */
.svg-wrap { width: 100%; max-width: 600px; aspect-ratio: 4/3; position: relative; }
.hero-svg { width: 100%; height: auto; }

/* SVG 动效关键帧 */
@keyframes spin-slow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }
@keyframes draw-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes float-subtle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes breathe { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.anim-spin { animation: spin-slow 12s linear infinite; transform-box: fill-box; transform-origin: center; }
.anim-spin-rev { animation: spin-reverse 14s linear infinite; transform-box: fill-box; transform-origin: center; }
.anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 4s ease-in-out forwards; }
.anim-float { animation: float-subtle 6s ease-in-out infinite; }
.anim-breathe { animation: breathe 3s ease-in-out infinite; }

/* 减少动态效果 */
@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-spin, .anim-spin-rev, .anim-draw, .anim-float, .anim-breathe { animation: none !important; }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-layout { flex-direction: column; }
  .hero-text { text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .svg-wrap { max-width: 100%; margin-top: var(--gap); }
}
.grid-2 { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
