:root {
  --color-dark: #271231;
  --color-paper: #F5F0E5;
  --color-text: #1F1523;
  --color-brand: #9B12D8;
  --color-accent: #ED6EC0;
  --color-white: #FFFFFF;

  --radius-card: 0;
  --radius-btn: 0;
  --card-border: 1px solid rgba(31, 21, 35, 0.16);
  --card-shadow: none;
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 960px;
  --header-h: 64px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* 页面背景与分节 */
.surface-dark { background: var(--color-dark); color: var(--color-paper); }
.surface-paper { background: var(--color-paper); color: var(--color-text); }
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(31, 21, 35, 0.16);
}
.section-dark::after { background: rgba(245, 240, 229, 0.12); }

/* 排版 */
.meter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--gap);
}
.surface-paper .meter { color: var(--color-brand); }
.surface-dark .meter { color: var(--color-accent); }

h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: var(--gap);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--gap);
}
h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: calc(var(--gap) * 0.5);
}
p { margin-bottom: var(--gap); max-width: 38em; }
.hl { color: var(--color-brand); }
.surface-dark .hl { color: var(--color-accent); }

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 229, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 21, 35, 0.08);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.nav-list { display: flex; gap: 24px; align-items: center; }
.nav-link { font-size: 0.95rem; font-weight: 500; position: relative; }
.nav-link[aria-current="page"] { color: var(--color-brand); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-brand);
}
@media (max-width: 768px) {
  .nav-list { gap: 16px; }
  .brand span { display: none; }
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-dark);
  border: 2px solid var(--color-accent);
}
.btn-primary:hover { background: #d95aae; border-color: #d95aae; }
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}
.surface-dark .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }
.surface-dark .btn-secondary:hover { background: rgba(245, 240, 229, 0.1); }
.btn-icon { width: 20px; height: 20px; stroke-width: 1.8; }

/* 卡片与面板 */
.card {
  background: var(--color-paper);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
  padding: var(--gap);
}
.panel {
  background: var(--color-dark);
  border-radius: var(--radius-card);
  padding: var(--gap);
  position: relative;
  overflow: hidden;
}
.surface-dark .card { background: var(--color-paper); color: var(--color-text); border-color: rgba(31, 21, 35, 0.2); }

/* 表格 */
.table-wrap { overflow-x: auto; width: 100%; margin-block: var(--gap); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(31, 21, 35, 0.12);
}
th { font-weight: 600; }
td:first-child { font-weight: 500; color: var(--color-brand); }
.surface-dark th, .surface-dark td { border-color: rgba(245, 240, 229, 0.15); }
.surface-dark td:first-child { color: var(--color-accent); }

/* 列表与步骤 */
.step-list { counter-reset: step; }
.step-item {
  display: flex;
  gap: 16px;
  margin-bottom: var(--gap);
  align-items: flex-start;
}
.step-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
dl.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
dt { font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
dd { margin-left: 0; margin-bottom: 16px; opacity: 0.9; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1px; }
.faq-item { background: var(--color-paper); border: var(--card-border); }
.faq-item summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  opacity: 0.6;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 16px 16px; margin: 0; }

/* 资讯卡片 */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-card time { font-size: 0.8rem; opacity: 0.7; margin-bottom: 8px; display: block; }
.news-card p { flex-grow: 1; font-size: 0.95rem; margin-bottom: 0; }

/* 页脚 */
.site-footer {
  background: var(--color-dark);
  color: var(--color-paper);
  padding: var(--section-y) 0;
  border-top: 1px solid rgba(245, 240, 229, 0.1);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; opacity: 0.8; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { opacity: 0.8; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.copyright { margin-top: 48px; text-align: center; font-size: 0.85rem; opacity: 0.6; }

/* SVG 动效基础 */
.svg-panel { width: 100%; height: auto; }
.geo { transform-box: fill-box; transform-origin: center; }
.draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.bubble { transform-box: fill-box; transform-origin: center; }

@keyframes geo-spin-slow {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
}
@keyframes geo-match {
  0%, 100% { transform: rotate(0deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(4px, -4px); }
}
@keyframes draw-flow {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
@keyframes float-bubble {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-6px); opacity: 1; }
}
@keyframes pulse-ring {
  0% { r: 4; opacity: 1; }
  50% { r: 10; opacity: 0.4; }
  100% { r: 4; opacity: 1; }
}

.geo-spin { animation: geo-spin-slow 12s linear infinite; }
.geo-match { animation: geo-match 8s ease-in-out infinite alternate; }
.draw-flow { animation: draw-flow 4s ease-in-out infinite; }
.float-bubble { animation: float-bubble 3s ease-in-out infinite; }
.pulse-ring { animation: pulse-ring 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;
  }
  .draw-line { stroke-dashoffset: 0; }
  .pulse-ring { animation: none; r: 6; }
}

/* 响应式微调 */
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr !important; }
  .flex-row { flex-direction: column; }
  .btn { width: 100%; }
  table { font-size: 0.85rem; }
  th, td { padding: 10px 12px; }
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.flex-row { display: flex; gap: var(--gap); align-items: center; }
@media (min-width: 769px) {
  .hero-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
}
