:root {
  --bg-dark: #121531;
  --bg-paper: #E8E9EA;
  --bg-paper-light: #f0f1f3;
  --text-main: #151723;
  --text-paper: #E8E9EA;
  --brand: #142CEB;
  --accent: #ED7D6E;
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 0;
  --card-shadow: none;
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1280px;
  --font-sans: "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-paper);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* 排版 */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-bottom: 0.8rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--gap); }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; max-width: 38em; }
strong { font-weight: 700; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; }

/* 主题切换类 */
.paper-bg { background: var(--bg-paper); color: var(--text-main); }
.dark-bg { background: var(--bg-dark); color: var(--text-paper); }
.paper-bg .hl, .paper-bg a:not(.btn) { color: var(--brand); }
.dark-bg .hl, .dark-bg a:not(.btn) { color: var(--accent); }
.paper-bg .eyebrow { color: var(--brand); }
.dark-bg .eyebrow { color: var(--accent); }

/* 眉标 */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--bg-dark); border: 2px solid var(--accent); }
.btn-primary:hover { background: #d96b5c; border-color: #d96b5c; }
.btn-secondary { background: transparent; color: var(--text-main); border: 2px solid var(--text-main); }
.dark-bg .btn-secondary { color: var(--text-paper); border-color: var(--text-paper); }
.dark-bg .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-icon { width: 20px; height: 20px; }

/* 卡片 */
.card {
  background: var(--bg-paper-light);
  border-radius: var(--radius-card);
  padding: var(--gap);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}
.dark-bg .card { background: rgba(255, 255, 255, 0.06); }

/* 网格 */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* 表格 */
.table-wrap { overflow-x: auto; margin-top: var(--gap); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(128, 128, 128, 0.25); }
th { font-weight: 700; }
.dark-bg th, .dark-bg td { border-bottom-color: rgba(255, 255, 255, 0.15); }

/* FAQ */
details { margin-bottom: 1rem; border-bottom: 1px solid rgba(128, 128, 128, 0.25); padding-bottom: 1rem; }
summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-left: 1.5rem; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; background: var(--brand); border-radius: 50%; }
.dark-bg summary::before { background: var(--accent); }
details[open] summary { margin-bottom: 0.5rem; }
details p { margin-top: 0.5rem; }

/* 步骤编号 */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 800;
  border-radius: 8px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* 资讯卡片 */
.news-card { background: rgba(255, 255, 255, 0.08); border-radius: var(--radius-card); padding: var(--gap); border: 1px solid rgba(255, 255, 255, 0.1); }
.news-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.news-card time { font-size: 0.85rem; opacity: 0.8; display: block; margin-bottom: 0.6rem; }

/* 导航与页脚 */
header { position: sticky; top: 0; z-index: 100; background: var(--bg-paper); border-bottom: 1px solid rgba(0,0,0,0.08); transition: background 0.3s; }
.dark-bg header { background: var(--bg-dark); border-bottom-color: rgba(255,255,255,0.1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.logo img { height: 28px; width: auto; }
nav ul { display: flex; gap: 24px; list-style: none; }
nav a { font-weight: 500; padding: 6px 0; position: relative; }
nav a:hover { color: var(--brand); }
.dark-bg nav a:hover { color: var(--accent); }
nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.dark-bg nav a[aria-current="page"] { color: var(--accent); }
footer { padding: 48px 0; text-align: center; font-size: 0.9rem; opacity: 0.8; }

/* SVG 动效 */
.hero-svg { width: 100%; height: auto; max-width: 560px; }
.geo-spin { animation: geo-spin 10s linear infinite; transform-box: fill-box; transform-origin: center; }
.draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 5s ease-in-out infinite alternate; }
.float-layer { animation: float-layer 6s ease-in-out infinite; }
.breathe-dot { animation: breathe-dot 2.5s ease-in-out infinite; }
.breathe-dot:nth-child(2) { animation-delay: 0.4s; }
.breathe-dot:nth-child(3) { animation-delay: 0.8s; }
.slide-in { animation: slide-in 4s ease-out forwards; }

@keyframes geo-spin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}
@keyframes draw-line {
  0% { stroke-dashoffset: 1; opacity: 0.4; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes float-layer {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes breathe-dot {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes slide-in {
  0% { transform: translateX(-20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 兜底：裁掉横向溢出 */
div.grid-2 {
  overflow-x: clip;
}
