:root {
  /* 色板 */
  --color-bg-dark: #13102D;
  --color-bg-paper: #D6D4ED;
  --color-bg-paper-light: #EAE8F5;
  --color-text-main: #171523;
  --color-brand: #2714EB;
  --color-accent: #89ED6E;
  --color-text-on-dark: #D6D4ED;

  /* 设计 Token */
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(23, 21, 35, 0.3);
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 1120px;
  --header-h: 64px;

  /* 动态变量（默认纸面取色） */
  --color-text: var(--color-text-main);
  --color-highlight: var(--color-brand);
  --color-link: var(--color-brand);
}

/* 全局重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background-color: var(--color-bg-paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-link); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
ul, ol { list-style: none; }

/* 容器 */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* 区块背景切换 */
.bg-dark {
  background-color: var(--color-bg-dark);
  --color-text: var(--color-text-on-dark);
  --color-highlight: var(--color-accent);
  --color-link: var(--color-accent);
}
.bg-paper-light {
  background-color: var(--color-bg-paper-light);
}

/* 眉标 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-highlight);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
}

/* 标题 */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-text);
}
h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: var(--gap);
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: calc(var(--gap) * 0.75);
}
.hl {
  color: var(--color-highlight);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 48px;
  padding-inline: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
}
.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
}
.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 var(--color-text);
  color: var(--color-text);
}
.bg-dark .btn-secondary {
  border-color: var(--color-text-on-dark);
  color: var(--color-text-on-dark);
}
.btn-secondary:hover {
  background-color: rgba(137, 237, 110, 0.08);
}

/* 卡片 */
.card {
  background-color: var(--color-bg-paper);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: var(--gap);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bg-dark .card {
  background-color: var(--color-bg-paper);
  --color-text: var(--color-text-main);
  --color-highlight: var(--color-brand);
  --color-link: var(--color-brand);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -12px rgba(23, 21, 35, 0.35);
}

/* 网格 */
.grid {
  display: grid;
  gap: var(--gap);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }

/* 表格 */
.table-spec {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--gap);
}
.table-spec th, .table-spec td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(23, 21, 35, 0.1);
}
.table-spec th { font-weight: 600; }
.table-spec tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: var(--gap); }
.faq-item details {
  background-color: var(--color-bg-paper);
  border-radius: var(--radius-card);
  padding: var(--gap);
  box-shadow: var(--card-shadow);
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-highlight);
  transition: transform 0.2s;
}
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 0.75rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* 列表标记 */
.list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 6px;
  height: 6px;
  background-color: var(--color-highlight);
  border-radius: 50%;
}

/* 提示框 */
.callout {
  border-left: 4px solid var(--color-highlight);
  background-color: rgba(137, 237, 110, 0.06);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin-block: var(--gap);
}

/* SVG 动效 Keyframes */
@keyframes grid-blink {
  0%, 100% { stroke-dashoffset: 1; opacity: 0.4; }
  50% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes slide-in-right {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes dash-flow {
  to { stroke-dashoffset: -24; }
}
@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* 动效类 */
.anim-grid-node {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: grid-blink 3s ease-in-out infinite;
}
.anim-float { animation: float 4s ease-in-out infinite; }
.anim-slide-in { animation: slide-in-right 0.8s ease-out both; }
.anim-dash-flow {
  stroke-dasharray: 12;
  animation: dash-flow 1.5s linear infinite;
}
.anim-breathe {
  animation: breathe 2.5s ease-in-out infinite;
}

/* 延迟控制 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.9s; }
.delay-5 { animation-delay: 1.2s; }
.delay-6 { animation-delay: 1.5s; }

/* 页头页脚 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(214, 212, 237, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 21, 35, 0.08);
  height: var(--header-h);
}
.bg-dark .site-header {
  background-color: rgba(19, 16, 45, 0.85);
  border-bottom-color: rgba(214, 212, 237, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-links { display: flex; gap: calc(var(--gap) * 1.5); align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; }
.nav-links a[aria-current="page"] { color: var(--color-highlight); }
.site-footer {
  padding-block: var(--section-y);
  border-top: 1px solid rgba(23, 21, 35, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text);
  opacity: 0.8;
}

/* 响应式 */
@media (max-width: 768px) {
  h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; }
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
