:root {
  /* 色板 */
  --color-dark: #271231;
  --color-paper: #F5F0E5;
  --color-text: #1F1523;
  --color-brand: #9B12D8;
  --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(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 960px;

  /* 排版 */
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", sans-serif;
  --lh-tight: 1.15;
  --lh-body: 1.65;
}

/* 基础重置与排版 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; 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); }
.section-dark { background-color: var(--color-dark); color: var(--color-paper); }
.section-paper { background-color: var(--color-paper); color: var(--color-text); }

/* 色彩覆盖规则 */
.section-paper .hl { color: var(--color-brand); }
.section-dark .hl { color: var(--color-accent); }
.section-paper .eyebrow { color: var(--color-brand); }
.section-dark .eyebrow { color: var(--color-accent); }
.section-paper .link { color: var(--color-brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.section-dark .link { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* 标题系统 */
h1, h2, h3, h4 { font-weight: 500; line-height: var(--lh-tight); margin: 0 0 calc(var(--gap) * 0.6) 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; margin-bottom: calc(var(--gap) * 0.4); }
p { margin: 0 0 var(--gap) 0; max-width: 38em; }
strong { font-weight: 600; }

/* 眉标 */
.eyebrow { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; margin-bottom: calc(var(--gap) * 0.5); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0 1.5rem; height: 52px; font-size: 1rem; font-weight: 600;
  border: none; cursor: pointer; transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-primary { background-color: 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-icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; }

/* 网格与卡片 */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.card {
  background: var(--color-paper);
  border: 1px solid rgba(31, 21, 35, 0.12);
  box-shadow: var(--card-shadow);
  padding: var(--gap);
  transition: box-shadow 0.2s ease;
}
.section-dark .card { background: var(--color-dark); border-color: rgba(245, 240, 229, 0.15); }
.card:hover { box-shadow: 0 12px 32px -12px rgba(31, 21, 35, 0.4); }

/* 表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--gap) 0; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid rgba(31, 21, 35, 0.15); vertical-align: top; }
th { font-weight: 600; white-space: nowrap; }
td { max-width: 40ch; }
.section-dark th, .section-dark td { border-bottom-color: rgba(245, 240, 229, 0.15); }

/* 定义列表 */
.dl-list dt { font-weight: 600; margin-bottom: 0.3rem; }
.dl-list dd { margin: 0 0 var(--gap) 1.5rem; line-height: 1.7; }

/* 时间线 */
.timeline { position: relative; padding-left: 2rem; border-left: 2px solid rgba(31, 21, 35, 0.15); margin: var(--gap) 0; }
.section-dark .timeline { border-left-color: rgba(245, 240, 229, 0.2); }
.timeline-item { position: relative; margin-bottom: var(--gap); }
.timeline-item::before {
  content: attr(data-step);
  position: absolute; left: -2.65rem; top: 0;
  width: 2.4rem; height: 2.4rem; display: flex; align-items: center; justify-content: center;
  background: var(--color-accent); color: var(--color-dark);
  font-weight: 700; font-size: 0.9rem;
}

/* FAQ */
details { border: 1px solid rgba(31, 21, 35, 0.15); margin-bottom: var(--gap); padding: 1rem 1.25rem; background: transparent; }
.summary-row { cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.summary-row::-webkit-details-marker { display: none; }
.summary-row::after { content: '+'; font-size: 1.2rem; font-weight: 400; transition: transform 0.2s ease; }
details[open] .summary-row::after { transform: rotate(45deg); }
.details-content { margin-top: 1rem; line-height: 1.7; }

/* 页头页脚 */
header { position: sticky; top: 0; z-index: 100; background: var(--color-paper); border-bottom: 1px solid rgba(31, 21, 35, 0.1); padding: 0.75rem 0; }
.section-dark header { background: var(--color-dark); border-color: rgba(245, 240, 229, 0.15); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; }
.brand-img { height: 32px; width: auto; }
nav a { margin-left: 1.5rem; font-weight: 500; transition: color 0.2s ease; }
.section-dark nav a { color: var(--color-paper); }
nav a:hover, nav a[aria-current="page"] { color: var(--color-brand); }
.section-dark nav a[aria-current="page"] { color: var(--color-accent); }
.footer { padding: 3rem 0; border-top: 1px solid rgba(31, 21, 35, 0.1); margin-top: var(--section-y); }
.section-dark .footer { border-color: rgba(245, 240, 229, 0.15); }
.footer-links a { margin-right: 1.5rem; font-size: 0.9rem; }
.copyright { margin-top: 1.5rem; font-size: 0.85rem; opacity: 0.8; }

/* SVG 视觉容器 */
.visual-panel { width: 100%; height: auto; }

/* SVG 动效关键帧 */
@keyframes orbit-breathe {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.06); opacity: 0.8; }
}
@keyframes orbit-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes dash-draw {
  0%, 100% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* 动效类绑定 */
.anim-orbit-1 { animation: orbit-breathe 8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.anim-orbit-2 { animation: orbit-spin 16s linear infinite; transform-origin: center; transform-box: fill-box; }
.anim-orbit-3 { animation: orbit-breathe 12s ease-in-out infinite reverse; transform-origin: center; transform-box: fill-box; }
.anim-float-1 { animation: bubble-float 4.5s ease-in-out infinite; }
.anim-float-2 { animation: bubble-float 5.2s ease-in-out infinite 0.8s; }
.anim-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: dash-draw 6s ease-in-out infinite; }
.anim-pulse { animation: pulse-dot 2s 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;
  }
}
