:root {
  /* 色板 */
  --color-dark: #240F29;
  --color-paper: #F6F3F7;
  --color-text: #201523;
  --color-brand: #A711CF;
  --color-accent: #ED6E73;
  --color-white: #ffffff;

  /* 结构性约束 */
  --radius-card: 0;
  --radius-btn: 0;
  --card-border: 2px solid var(--color-text);
  --card-shadow: 4px 4px 0 var(--color-text);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1120px;
  --line-height: 1.65;

  /* 字体栈 */
  --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);
  color: var(--color-text);
  background: var(--color-paper);
  line-height: var(--line-height);
  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; }
p { margin-bottom: var(--gap); max-width: 38em; }
h1, h2, h3 { font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; margin-bottom: var(--gap); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

/* 眉标 */
.eyebrow {
  display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-brand); margin-bottom: 0.5em;
}
.dark-section .eyebrow { color: var(--color-accent); }

/* 高亮词 */
.hl { color: var(--color-brand); font-weight: 800; }
.dark-section .hl { color: var(--color-accent); }

/* 布局容器 */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
section { padding: var(--section-y) 0; border-top: 1px solid var(--color-text); }
section:first-of-type { border-top: none; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.btn-primary { background: var(--color-accent); color: var(--color-dark); border-color: var(--color-accent); }
.btn-secondary { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.dark-section .btn-secondary { color: var(--color-paper); border-color: var(--color-paper); }

/* 卡片 */
.card {
  background: var(--color-paper); border: var(--card-border);
  box-shadow: var(--card-shadow); padding: var(--gap);
}
.dark-section .card { background: var(--color-paper); color: var(--color-text); }

/* 表格 */
table { width: 100%; border-collapse: collapse; margin-bottom: var(--gap); }
th, td { padding: 12px; border-bottom: 1px solid var(--color-text); text-align: left; }
th { font-weight: 700; }

/* FAQ */
details { border: 1px solid var(--color-text); margin-bottom: var(--gap); }
summary { padding: var(--gap); cursor: pointer; font-weight: 700; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: var(--gap); top: 50%; transform: translateY(-50%); }
details[open] summary::after { content: '-'; }
.faq-content { padding: 0 var(--gap) var(--gap); }

/* 页头页脚 */
header { position: sticky; top: 0; z-index: 100; background: var(--color-paper); border-bottom: 1px solid var(--color-text); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: var(--gap); }
.logo-img { height: 32px; width: auto; }
nav ul { display: flex; gap: var(--gap); }
nav a { font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--color-brand); }
.dark-section nav a { color: var(--color-paper); }
.dark-section nav a:hover, .dark-section nav a[aria-current="page"] { border-bottom-color: var(--color-accent); }
footer { background: var(--color-dark); color: var(--color-paper); padding: var(--section-y) 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--gap); }
.footer-links a { display: block; margin-bottom: 8px; color: var(--color-accent); }
.footer-copy { color: var(--color-paper); opacity: 0.8; margin-top: var(--gap); }

/* SVG 响应式基类 */
.svg-responsive { width: 100%; height: auto; max-width: 100%; }

/* SVG 动效：网格节点依次点亮 */
@keyframes grid-pulse {
  0%, 100% { opacity: 0.2; fill: var(--color-brand); }
  50% { opacity: 1; fill: var(--color-accent); }
}
.grid-node { animation: grid-pulse 6s infinite ease-in-out; }
.d1 { animation-delay: 0.0s; } .d2 { animation-delay: 0.4s; } .d3 { animation-delay: 0.8s; }
.d4 { animation-delay: 1.2s; } .d5 { animation-delay: 1.6s; } .d6 { animation-delay: 2.0s; }
.d7 { animation-delay: 2.4s; } .d8 { animation-delay: 2.8s; } .d9 { animation-delay: 3.2s; }

/* SVG 动效：描边绘制 */
@keyframes draw-line {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
.draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 4s infinite linear; }

/* SVG 动效：呼吸点 */
@keyframes breathe {
  0%, 100% { r: 3; opacity: 0.6; }
  50% { r: 5; opacity: 1; }
}
.breath-dot { animation: breathe 3s infinite ease-in-out; }

/* 浮动微动效 */
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.float-slow { animation: float-slow 5s infinite ease-in-out; transform-box: fill-box; transform-origin: center; }

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  .grid-node, .draw-line, .breath-dot, .float-slow { animation: none !important; }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .nav-inner { flex-direction: column; gap: var(--gap); }
  nav ul { flex-wrap: wrap; justify-content: center; }
  .grid-layout { grid-template-columns: 1fr !important; }
  h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
}
