:root {
  --c-dark: #13102D;
  --c-paper: #D6D4ED;
  --c-text: #171523;
  --c-brand: #2714EB;
  --c-accent: #89ED6E;
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(23, 21, 35, 0.3);
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 1120px;
  --font-sans: 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-sans);
  background: var(--c-paper);
  color: var(--c-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* 排版与标题 */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: 0.02em; line-height: 1.15; margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.25; margin-bottom: 1.5rem; }
h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; max-width: 38em; }
a { color: var(--c-brand); text-decoration: underline; text-underline-offset: 2px; }
.bg-dark a { color: var(--c-accent); }
.hl { color: var(--c-brand); }
.bg-dark .hl { color: var(--c-accent); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-brand); margin-bottom: 0.5rem; display: block; }
.bg-dark .eyebrow { color: var(--c-accent); }

/* 布局容器 */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
section { padding: var(--section-y) 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--c-accent); color: var(--c-dark); }
.btn-secondary { background: transparent; border: 1px solid var(--c-text); color: var(--c-text); }
.bg-dark .btn-secondary { border-color: var(--c-paper); color: var(--c-paper); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* 卡片与面板 */
.card { background: #ffffff; border-radius: var(--radius-card); border: var(--card-border); box-shadow: var(--card-shadow); padding: var(--gap); }
.card-visual { background: var(--c-dark); border-radius: var(--radius-card); overflow: hidden; position: relative; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.card-light { background: var(--c-paper); color: var(--c-text); border-radius: var(--radius-card); box-shadow: var(--card-shadow); padding: var(--gap); }
.card-light .hl { color: var(--c-brand); }
.card-light .eyebrow { color: var(--c-brand); }

/* 表格 */
table { width: 100%; min-width: 0; border-collapse: collapse; margin-top: 1rem; }
th, td { padding: 0.75rem 0.5rem; border-bottom: 1px solid rgba(0,0,0,0.08); text-align: left; vertical-align: top; word-break: break-word; overflow-wrap: break-word; }
th { font-weight: 700; }
td a { white-space: normal; overflow-wrap: anywhere; }

/* FAQ */
details { margin-bottom: var(--gap); border: 1px solid rgba(0,0,0,0.1); border-radius: 12px; overflow: hidden; background: #fff; }
summary { padding: 1rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.25rem; font-weight: 400; }
details[open] summary::after { content: '−'; }
details > div { padding: 0 1rem 1rem; line-height: 1.6; color: var(--c-text); }
.bg-dark details { border-color: rgba(255,255,255,0.15); background: var(--c-paper); }
.bg-dark details > div { color: var(--c-text); }

/* 步骤徽标 */
.step-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--c-accent); color: var(--c-dark); font-weight: 700; font-size: 0.875rem; border-radius: 8px; flex-shrink: 0; }
.steps-row { display: flex; flex-direction: column; gap: var(--gap); }
@media (min-width: 768px) { .steps-row { flex-direction: row; flex-wrap: wrap; } }
.step-item { flex: 1 1 200px; display: flex; gap: 0.75rem; align-items: flex-start; }

/* 标签 */
.tag { display: inline-block; padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: rgba(39, 20, 235, 0.1); color: var(--c-brand); margin-bottom: 0.5rem; }
.bg-dark .tag { background: rgba(137, 237, 110, 0.15); color: var(--c-accent); }

/* 导航与页头页脚 */
header { position: sticky; top: 0; background: rgba(214, 212, 237, 0.95); backdrop-filter: blur(8px); z-index: 100; border-bottom: 1px solid rgba(0,0,0,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo img { height: 32px; width: auto; display: block; }
nav ul { display: flex; gap: 1.5rem; list-style: none; }
nav a { text-decoration: none; color: inherit; font-weight: 500; font-size: 0.95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--c-brand); }
.bg-dark nav a:hover, .bg-dark nav a[aria-current="page"] { color: var(--c-accent); }
footer { background: var(--c-dark); color: var(--c-paper); padding: var(--section-y) 0; margin-top: var(--section-y); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 1rem; color: var(--c-accent); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--c-paper); text-decoration: none; opacity: 0.85; font-size: 0.9rem; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: var(--gap); padding-top: var(--gap); text-align: center; font-size: 0.85rem; opacity: 0.7; }

/* SVG 动效基础 */
.svg-anim * { transform-box: fill-box; transform-origin: center; }
svg { width: 100%; height: auto; display: block; }
.anim-twinkle { animation: twinkle 4s ease-in-out infinite; }
.anim-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawLine 3s ease forwards; }
.anim-float { animation: float 6s ease-in-out infinite; }
.anim-slide-in { animation: slideIn 1s ease forwards; }
.anim-breathe { animation: breathe 3s ease-in-out infinite; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes twinkle { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes drawLine { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes slideIn { 0% { opacity: 0; transform: translateX(-20px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes breathe { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

@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-twinkle, .anim-draw, .anim-float, .anim-slide-in, .anim-breathe { animation: none !important; }
}
