:root {
  /* 色板 */
  --dark-face: #13102D;
  --paper: #F7F5F3;
  --body-text: #171523;
  --brand: #2714EB;
  --accent: #89ED6E;
  
  /* 排版与节奏 */
  --lh-body: 1.65;
  --fw-heading: 500;
  --rc-card: 24px;
  --rc-btn: 999px;
  --sec-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1280px;
  
  /* 卡片与阴影 */
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(23, 21, 35, 0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  background: var(--paper);
  color: var(--body-text);
  line-height: var(--lh-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* 区块基础 */
section {
  padding-block: var(--sec-y);
  position: relative;
}
.section-divider {
  border-top: 1px solid rgba(23, 21, 35, 0.12);
  margin-block: var(--sec-y);
}

/* 眉标 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.paper-surface .eyebrow { color: var(--brand); }
.dark-surface .eyebrow { color: var(--accent); }

/* 标题 */
h1, h2, h3 { font-weight: var(--fw-heading); line-height: 1.15; color: var(--body-text); }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; margin-bottom: 24px; }
h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 12px; }
.paper-surface h1, .paper-surface h2, .paper-surface h3 { color: var(--body-text); }
.dark-surface h1, .dark-surface h2, .dark-surface h3 { color: var(--paper); }

.hl { font-weight: 600; }
.paper-surface .hl { color: var(--brand); }
.dark-surface .hl { color: var(--accent); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--rc-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary {
  background: var(--accent);
  color: var(--dark-face);
  box-shadow: 0 4px 12px rgba(137, 237, 110, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(137, 237, 110, 0.35); }
.btn-secondary {
  background: transparent;
  border: 1.5px solid currentColor;
}
.paper-surface .btn-secondary { color: var(--body-text); border-color: var(--body-text); }
.dark-surface .btn-secondary { color: var(--paper); border-color: var(--paper); }
.btn-secondary:hover { opacity: 0.85; transform: translateY(-1px); }

/* 页头与页脚 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 243, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23, 21, 35, 0.08);
}
.dark-surface .site-header { background: rgba(19, 16, 45, 0.9); border-bottom-color: rgba(247, 245, 243, 0.1); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--brand); }
.dark-surface .nav-links a { color: var(--paper); }
.dark-surface .nav-links a:hover, .dark-surface .nav-links a[aria-current="page"] { color: var(--accent); }
.logo-area { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo-area img { height: 28px; width: auto; }

.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(23, 21, 35, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer-nav { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer-nav a { transition: color 0.2s; }
.paper-surface .footer-nav a:hover { color: var(--brand); }
.dark-surface .footer-nav a:hover { color: var(--accent); }

/* 卡片与网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--gap);
}
.card {
  background: var(--paper);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--rc-card);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.paper-surface .card { background: #FFFFFF; }
.dark-surface .card { background: var(--paper); }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px -12px rgba(23, 21, 35, 0.35); }

/* 表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.95rem;
}
.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(23, 21, 35, 0.1);
}
.data-table th { font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(23, 21, 35, 0.1);
  padding: 16px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(39, 20, 235, 0.1);
  color: var(--brand);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.dark-surface .faq-item summary::before { background: rgba(137, 237, 110, 0.15); color: var(--accent); }
.faq-item[open] summary::before { content: "−"; }
.faq-item p { margin-top: 12px; padding-left: 32px; opacity: 0.9; }

/* SVG 容器与动效 */
.svg-panel {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 4 / 3;
  min-width: 0;
  box-sizing: border-box;
}
.svg-panel svg { width: 100%; height: auto; display: block; }
.anim-line {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  fill: none;
}
@keyframes drawFlow {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
.anim-line.flow { animation: drawFlow 6s linear infinite alternate; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.anim-star { animation: twinkle 4s ease-in-out infinite; }
.anim-star:nth-child(odd) { animation-delay: 1.2s; }
.anim-star:nth-child(even) { animation-delay: 2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.anim-float { animation: float 5s ease-in-out infinite; }
.anim-float.delay-1 { animation-delay: 1.5s; }

@keyframes breathe {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.anim-breathe { animation: breathe 3s 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;
  }
  .anim-line, .anim-star, .anim-float, .anim-breathe {
    animation: none !important;
  }
}

/* 响应式微调 */
@media (max-width: 768px) {
  .nav-links { gap: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .flex-row { flex-direction: column !important; }
}
.flex-row { display: flex; gap: var(--gap); align-items: center; }
@media (min-width: 900px) {
  .split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
}

/* 兜底：裁掉横向溢出 */
div.download-grid {
  overflow-x: clip;
}
