:root {
  /* 基础色板 */
  --color-dark: #140E25;
  --color-paper: #F5F0E5;
  --color-paper-light: #EBE6DA;
  --color-text: #191523;
  --color-brand: #5214EB;
  --color-accent: #C8ED6E;
  --color-white: #F5F0E5;

  /* 设计 Token */
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(25,21,35,0.3);
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 1120px;
  --line-height-base: 1.55;
  --font-weight-title: 500;
  --line-height-title: 1.15;
  --h1-size: clamp(2.6rem, 6.4vw, 5rem);
  --h2-size: clamp(1.8rem, 3vw, 2.8rem);
  --h3-size: clamp(1.3rem, 2vw, 1.6rem);
  --body-size: 16px;
  --header-h: 64px;
  --container-pad-x: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--body-size);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

/* 排版系统 */
h1, h2, h3, h4 { font-weight: var(--font-weight-title); line-height: var(--line-height-title); letter-spacing: -0.02em; }
h1 { font-size: var(--h1-size); margin-bottom: var(--gap); }
h2 { font-size: var(--h2-size); margin-bottom: calc(var(--gap) * 1.5); }
h3 { font-size: var(--h3-size); margin-bottom: var(--gap); }
p { margin-bottom: var(--gap); max-width: 38em; }
a { color: var(--color-brand); text-decoration: none; transition: color 0.2s; }
.bg-dark a { color: var(--color-accent); }
a:hover { opacity: 0.85; }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.hl { color: var(--color-brand); }
.bg-dark .hl { color: var(--color-accent); }

/* 布局容器 */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--container-pad-x); }
section { padding: var(--section-y) 0; }
.bg-dark { background-color: var(--color-dark); color: var(--color-white); }
.bg-paper-light { background-color: var(--color-paper-light); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.flex-row { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; }

/* 页头与导航 */
header { position: sticky; top: 0; z-index: 100; background: var(--color-paper); border-bottom: 1px solid rgba(25,21,35,0.1); }
.bg-dark header { background: var(--color-dark); border-bottom: none; }
.nav-inner { height: var(--header-h); display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 32px; width: auto; vertical-align: middle; margin-right: 8px; }
.brand-name { font-weight: 700; font-size: 1.1rem; }
nav ul { list-style: none; display: flex; gap: var(--gap); }
nav a { font-weight: 500; padding: 8px 12px; border-radius: var(--radius-btn); }
nav a[aria-current="page"], nav a:hover { background: rgba(82,20,235,0.1); }
.bg-dark nav a[aria-current="page"] { background: rgba(200,237,110,0.15); color: var(--color-accent); }

/* 按钮组件 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; font-size: 1rem; font-weight: 600; border-radius: var(--radius-btn); cursor: pointer; transition: transform 0.2s, background 0.2s, box-shadow 0.2s; text-decoration: none; height: 48px; }
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(200,237,110,0.4); }
.btn-secondary { background: transparent; border: 1px solid var(--color-text); color: var(--color-text); }
.bg-dark .btn-secondary { border-color: var(--color-white); color: var(--color-white); }
.btn-secondary:hover { background: rgba(25,21,35,0.05); }
.bg-dark .btn-secondary:hover { background: rgba(245,240,229,0.1); }

/* 卡片面板 */
.card { background: var(--color-paper); border: var(--card-border); border-radius: var(--radius-card); box-shadow: var(--card-shadow); padding: var(--gap); transition: transform 0.2s, box-shadow 0.2s; }
.bg-dark .card { background: rgba(245,240,229,0.05); border: 1px solid rgba(245,240,229,0.1); box-shadow: none; color: var(--color-white); }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px -12px var(--color-text); }
.bg-dark .card:hover { box-shadow: 0 10px 20px -10px rgba(200,237,110,0.2); }

/* 表格 */
table { width: 100%; border-collapse: collapse; margin-bottom: var(--gap); }
table.info-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(25,21,35,0.1); white-space: normal; word-break: break-word; }
th { font-weight: 600; }
.bg-dark th, .bg-dark td { border-bottom-color: rgba(245,240,229,0.15); }

/* FAQ 手风琴 */
details { margin-bottom: var(--gap); border: 1px solid rgba(25,21,35,0.1); border-radius: var(--radius-card); overflow: hidden; }
.bg-dark details { border-color: rgba(245,240,229,0.15); }
summary { padding: 16px; 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-size: 1.2rem; }
details[open] summary::after { content: "-"; }
details p { padding: 0 16px 16px; margin: 0; }

/* 列表标记 */
ul.check-list { list-style: none; padding-left: 0; }
ul.check-list li { position: relative; padding-left: 1.5em; margin-bottom: 0.5em; }
ul.check-list li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 6px; height: 6px; background: var(--color-brand); border-radius: 50%; }
.bg-dark ul.check-list li::before { background: var(--color-accent); }

/* SVG 动效基础 */
svg { width: 100%; height: auto; max-width: 100%; overflow: visible; }
@keyframes rotate-align {
  0%, 100% { transform: rotate(0deg) translateX(0); opacity: 0.8; }
  50% { transform: rotate(180deg) translateX(10px); opacity: 1; }
}
@keyframes float-bubble {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(-6px); opacity: 1; }
}
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}
.anim-rotate { animation: rotate-align 12s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-float { animation: float-bubble 6s ease-in-out infinite; }
.anim-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 4s ease forwards; }
.anim-pulse { animation: pulse-dot 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }
.delay-3 { animation-delay: 1.5s; }

@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; }
}
