:root {
  --color-dark: #17203F;
  --color-paper: #FCFCFD;
  --color-text: #151823;
  --color-brand: #1441EB;
  --color-accent: #6EEDBD;
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 1px solid rgba(21, 24, 35, 0.16);
  --card-shadow: none;
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 960px;
  --font-sans: 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;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-paper);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* 颜色与背景覆盖层 */
.bg-dark {
  background: var(--color-dark);
  color: var(--color-paper);
}
.bg-dark .eyebrow { color: var(--color-accent); }
.bg-dark .hl { color: var(--color-accent); }
.bg-dark a:not(.btn) { color: var(--color-accent); }
.bg-dark table th, .bg-dark table td { border-color: rgba(252, 252, 253, 0.12); }

.card-light {
  background: var(--color-paper);
  color: var(--color-text);
  border: var(--card-border);
  border-radius: var(--radius-card);
  padding: var(--gap);
}

/* 排版系统 */
.section-block {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  border-bottom: 1px solid rgba(21, 24, 35, 0.08);
}
.section-block:last-child { border-bottom: none; }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-brand);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: var(--gap);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  max-width: 38em;
}

.hl { color: var(--color-brand); }
.bg-dark .hl { color: var(--color-accent); }

/* 按钮组件 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-dark);
}
.btn-primary:hover { background: #5de0ad; transform: translateY(-2px); }
.btn-secondary {
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
}
.btn-secondary:hover { background: rgba(21, 24, 35, 0.04); transform: translateY(-2px); }
.bg-dark .btn-secondary { border-color: var(--color-paper); color: var(--color-paper); }
.bg-dark .btn-secondary:hover { background: rgba(252, 252, 253, 0.08); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* 网格与布局 */
.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-center { display: flex; align-items: center; justify-content: center; }
.text-right { text-align: right; }
.mt-sm { margin-top: var(--gap); }

/* 卡片与表格 */
.card {
  border: var(--card-border);
  border-radius: var(--radius-card);
  padding: var(--gap);
  background: var(--color-paper);
  color: var(--color-text);
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--gap) 0;
  font-size: 0.95rem;
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(21, 24, 35, 0.1);
  text-align: left;
}
th { font-weight: 700; }
td:first-child { font-weight: 600; width: 40%; }

/* 步骤条 */
.steps-row {
  display: flex;
  gap: var(--gap);
  flex-wrap: wrap;
  counter-reset: step;
}
.step-item {
  flex: 1 1 200px;
  counter-increment: step;
  position: relative;
  padding-left: 3.5rem;
}
.step-item::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
}
.bg-dark .step-item::before { background: var(--color-accent); color: var(--color-dark); }

/* 流程箭头 */
.flow-arrow {
  display: flex;
  align-items: center;
  gap: var(--gap);
  flex-wrap: wrap;
}
.flow-node {
  flex: 1 1 240px;
  padding: 16px;
  border: var(--card-border);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  color: var(--color-text);
  text-align: center;
  font-weight: 600;
}
.flow-arrow svg { flex-shrink: 0; width: 32px; height: 32px; }

/* FAQ */
details {
  margin-bottom: 16px;
  border: var(--card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-paper);
}
summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-left: 32px;
  color: var(--color-text);
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-brand);
  font-weight: 700;
}
details[open] summary::before { content: "-"; }
details > p {
  padding: 0 16px 16px;
  color: var(--color-text);
  margin: 0;
}

/* 页头页脚 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 252, 253, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(21, 24, 35, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
nav ul { display: flex; gap: 24px; }
nav a { font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--color-brand); }
nav a[aria-current="page"] { color: var(--color-brand); font-weight: 700; }
.footer-inner {
  padding: 48px 0;
  border-top: 1px solid rgba(21, 24, 35, 0.08);
  text-align: center;
  color: var(--color-text);
  font-size: 0.9rem;
}
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer-links a:hover { color: var(--color-brand); }

/* SVG 基础与缩放控制 */
.svg-container { width: 100%; height: auto; }
.svg-container svg { width: 100%; height: auto; display: block; }

/* SVG 动效 Keyframes */
@keyframes dash-flow {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes pulse-opacity {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}
@keyframes slide-in-right {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.anim-flow { animation: dash-flow 6s linear infinite; }
.anim-float { animation: float-y 5s ease-in-out infinite; }
.anim-pulse { animation: pulse-opacity 4s ease-in-out infinite; }
.anim-slide { animation: slide-in-right 4s ease-out forwards; }

/* 变换中心规范 */
.svg-panel { transform-box: fill-box; transform-origin: center; }

/* 减少动态效果适配 */
@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;
  }
}

/* 响应式微调 */
@media (max-width: 640px) {
  .nav-inner { height: 56px; }
  nav ul { gap: 16px; }
  .steps-row { flex-direction: column; }
  .step-item { padding-left: 0; padding-top: 3.5rem; }
  .step-item::before { top: 0; left: 0; }
}
