:root {
  --bg-dark: #13102D;
  --bg-paper: #D6D4ED;
  --text-main: #171523;
  --brand: #2714EB;
  --accent: #89ED6E;
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 1px solid rgba(23, 21, 35, 0.16);
  --card-shadow: none;
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 960px;
  --font-body: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-paper);
  color: var(--text-main);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }

.container { 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; }

/* 面色控制 */
.paper-section { background: var(--bg-paper); }
.dark-section { background: var(--bg-dark); color: var(--bg-paper); }
.dark-section a { color: var(--accent); }
.dark-section .btn-secondary { color: var(--bg-paper); border-color: var(--bg-paper); }
.dark-section .card { background: #1a173a; border-color: rgba(214, 212, 237, 0.16); color: var(--bg-paper); }
.dark-section details { background: #1a173a; border-color: rgba(214, 212, 237, 0.16); }

/* 排版 */
h1, h2, h3 { font-weight: 600; line-height: 1.25; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--gap); }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { max-width: 38em; margin-bottom: 1rem; }
ul, ol { margin-left: 1.25rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; }

.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 0.5rem; text-transform: uppercase; }
.paper-section .eyebrow { color: var(--brand); }
.dark-section .eyebrow { color: var(--accent); }

.hl { font-weight: 700; }
.paper-section .hl { color: var(--brand); }
.dark-section .hl { color: var(--accent); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 52px; padding: 0 24px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 1rem; cursor: pointer; border: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--text-main); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 卡片与面板 */
.card {
  background: var(--bg-paper); border: var(--card-border);
  border-radius: var(--radius-card); padding: var(--gap);
  box-shadow: var(--card-shadow);
}
.panel {
  background: var(--bg-dark); border-radius: var(--radius-card);
  padding: var(--gap); overflow: hidden;
}
.dark-section .panel { background: #1a173a; border: 1px solid rgba(214, 212, 237, 0.12); }

/* 表格 */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--card-border); text-align: left; }
th { font-weight: 600; }
.dark-section th, .dark-section td { border-color: rgba(214, 212, 237, 0.16); }

/* FAQ */
details { border: var(--card-border); border-radius: var(--radius-card); padding: 1rem var(--gap); margin-bottom: 0.75rem; background: var(--bg-paper); }
summary { 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; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 0.75rem; }

/* 页头页脚 */
header { position: sticky; top: 0; z-index: 100; background: var(--bg-paper); border-bottom: 1px solid var(--card-border); padding: 1rem 0; backdrop-filter: blur(8px); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
nav ul { display: flex; gap: 1.5rem; list-style: none; }
nav a { color: var(--text-main); font-weight: 500; }
nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
footer { background: var(--bg-dark); color: var(--bg-paper); padding: var(--section-y) 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-links ul { list-style: none; display: flex; gap: 1rem; flex-wrap: wrap; }

/* SVG 缩放基础 */
.svg-icon { width: 100%; height: auto; }

/* SVG 动效关键帧 */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes draw-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rotate-geo { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes slide-up { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.anim-float { animation: float 6s ease-in-out infinite; }
.anim-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 4s ease forwards; }
.anim-rotate { animation: rotate-geo 14s linear infinite; transform-box: fill-box; transform-origin: center; }
.anim-pulse { animation: pulse-dot 2s ease-in-out infinite; }
.anim-slide { animation: slide-up 0.8s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* 响应式网格 */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.flex-row { display: flex; gap: var(--gap); align-items: center; }
.reverse { flex-direction: row-reverse; }
@media (max-width: 768px) { .flex-row, .reverse { flex-direction: column; } }
