:root {
  /* 色板 */
  --color-dark: #141838;
  --color-paper: #FCFCFD;
  --color-text: #151723;
  --color-brand: #142CEB;
  --color-accent: #6EAFED;
  --color-card-light: #F1F3F8;
  --color-card-dark: #1A1F4A;

  /* 设计 Token */
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 0;
  --card-shadow: none;
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --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; }
body {
  font-family: var(--font-sans);
  background: var(--color-paper);
  color: var(--color-text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
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); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); position: relative; }
.section + .section { border-top: 1px solid rgba(21, 23, 35, 0.08); }
.section-dark { background: var(--color-dark); color: var(--color-paper); }
.section-dark .section + .section { border-top-color: rgba(252, 252, 253, 0.12); }
.grid-2 { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-3 { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 标题系统 */
.subtitle-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.section-paper .subtitle-tag { color: var(--color-brand); }
.section-dark .subtitle-tag { 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: 1.2rem;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}
.hl { font-weight: 700; }
.section-paper .hl { color: var(--color-brand); }
.section-dark .hl { color: var(--color-accent); }
p { max-width: 38em; margin-bottom: 1.2rem; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 48px;
  padding: 0 1.2rem;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  border: none;
}
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { transform: translateY(-1px); background: #5a9ee0; }
.btn-secondary { background: transparent; color: var(--color-text); border: 1px solid var(--color-text); }
.section-dark .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }
.btn-secondary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* 卡片 */
.card {
  background: var(--color-card-light);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}
.section-dark .card { background: var(--color-card-dark); }
.card h4 { font-size: 1.1rem; margin-bottom: 0.6rem; font-weight: 600; }
.card p { font-size: 0.95rem; margin-bottom: 0; }
.card-meta { font-size: 0.8rem; opacity: 0.7; margin-bottom: 0.8rem; display: block; }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.data-table th, .data-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid rgba(21, 23, 35, 0.1); }
.section-dark .data-table th, .section-dark .data-table td { border-bottom-color: rgba(252, 252, 253, 0.1); }
.data-table th { font-weight: 600; width: 40%; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(21, 23, 35, 0.1); margin-bottom: 0; }
.section-dark .faq-item { border-bottom-color: rgba(252, 252, 253, 0.1); }
.faq-item summary {
  padding: 1.2rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 0 1.2rem; line-height: 1.7; opacity: 0.9; }

/* 头部与页脚 */
.site-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, 23, 35, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; }
.logo img { width: 28px; height: 28px; object-fit: contain; }
.nav-list { display: flex; gap: 1.5rem; }
.nav-list a { font-size: 0.95rem; font-weight: 500; padding: 0.4rem 0; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.nav-list a:hover, .nav-list a[aria-current="page"] { border-bottom-color: var(--color-brand); color: var(--color-brand); }
.section-dark .nav-list a { color: var(--color-paper); }
.section-dark .nav-list a:hover, .section-dark .nav-list a[aria-current="page"] { border-bottom-color: var(--color-accent); color: var(--color-accent); }
@media (max-width: 640px) { .nav-list { display: none; } }

.site-footer { background: var(--color-dark); color: var(--color-paper); padding: 3rem 0; margin-top: auto; }
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { opacity: 0.8; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; }
.footer-copy { font-size: 0.85rem; opacity: 0.6; margin-top: 1rem; }

/* SVG 容器与动效 */
.svg-container { width: 100%; height: auto; overflow: visible; }
.svg-layer { transform-box: fill-box; transform-origin: center; }
/* 漂浮 */
@keyframes float-cycle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.anim-float-1 { animation: float-cycle 6s ease-in-out infinite; }
.anim-float-2 { animation: float-cycle 7.5s ease-in-out infinite 1.2s; }
.anim-float-3 { animation: float-cycle 8s ease-in-out infinite 0.6s; }
/* 描边绘制 */
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.anim-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.anim-draw-delay { animation-delay: 0.4s; }
/* 呼吸点 */
@keyframes pulse-dot { 0%, 100% { opacity: 0.4; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); } }
.anim-pulse { animation: pulse-dot 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
/* 滑入通知 */
@keyframes slide-in { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.anim-slide-in { animation: slide-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

/* 减少动态效果 */
@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;
  }
  .svg-layer { transform: none !important; }
}
