:root {
  --color-dark: #271231;
  --color-paper: #F6F3F7;
  --color-text: #1F1523;
  --color-brand: #9E13DD;
  --color-accent: #ED6EC0;
  --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: 1120px;
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::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-text);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

/* 容器与分节 */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid rgba(31, 21, 35, 0.1);
  background-color: var(--color-paper);
}
.section:last-child { border-bottom: none; }
.section.dark {
  background-color: var(--color-dark);
  color: var(--color-paper);
  border-bottom: none;
}

/* 排版 */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: 0; line-height: 1.25; }
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: 1.25rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; max-width: 38em; }
strong { font-weight: 600; }

/* 眉标 */
.milestone {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-brand);
}
.section.dark .milestone { color: var(--color-accent); }

/* 高亮词 */
.hl { color: var(--color-brand); }
.section.dark .hl { color: var(--color-accent); }

/* 布局网格 */
.row { display: flex; gap: var(--gap); align-items: center; }
.row.reverse { flex-direction: row-reverse; }
.col-text { flex: 1; min-width: 0; }
.col-visual { flex: 1; min-width: 0; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-weight: 600; font-size: 1rem; text-decoration: none;
  cursor: pointer; border: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: var(--radius-btn);
}
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-secondary { background: transparent; border: 1px solid var(--color-text); color: var(--color-text); }
.section.dark .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.section.dark .btn:focus-visible { outline-color: var(--color-accent); }

/* 卡片 */
.card {
  background: var(--color-paper);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 24px;
  border-radius: var(--radius-card);
}
.section.dark .card { background: rgba(255,255,255,0.05); }

/* 表格 */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(31,21,35,0.1); }
th { font-weight: 600; background: rgba(31,21,35,0.03); }
td:first-child { font-weight: 600; }

/* 列表 */
ul.specs { list-style: none; }
ul.specs li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
ul.specs li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; background: var(--color-brand); border-radius: 50%;
}
.section.dark ul.specs li::before { background: var(--color-accent); }

/* 步骤徽标 */
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: var(--color-accent); color: var(--color-dark);
  font-weight: 700; font-size: 0.9rem; border-radius: 4px; margin-right: 8px;
}

/* FAQ */
details { margin-bottom: 1rem; border-bottom: 1px solid rgba(31,21,35,0.1); padding-bottom: 1rem; }
summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 24px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; transition: transform 0.2s; }
details[open] summary::after { content: "−"; }
details p { margin-top: 0.5rem; color: inherit; }

/* SVG 基础 */
.svg-panel { width: 100%; height: auto; max-width: 100%; display: block; }
.svg-panel svg { width: 100%; height: auto; }

/* SVG 动效类 */
.anim-orbit { animation: orbit-breathe 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-bubble { animation: float-bubble 4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.anim-draw { animation: draw-stroke 5s ease-in-out infinite alternate; }
.anim-slide { animation: slide-in 4s ease-out forwards; }

@keyframes orbit-breathe {
  0%, 100% { transform: scale(0.98); opacity: 0.5; }
  50% { transform: scale(1.02); opacity: 0.8; }
}
@keyframes float-bubble {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
@keyframes draw-stroke {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes slide-in {
  0% { transform: translateX(24px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .anim-orbit, .anim-bubble, .anim-draw, .anim-slide { animation: none !important; }
}

/* 响应式微调 */
@media (max-width: 768px) {
  .row, .row.reverse { flex-direction: column; }
  h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
}
