:root {
  --bg-dark: #13102D;
  --bg-paper: #F7F5F3;
  --text-body: #171523;
  --color-brand: #2714EB;
  --color-emphasis: #89ED6E;
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(23, 21, 35, 0.3);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 960px;
  --font-weight-title: 600;
  --line-height-title: 1.25;
  --line-height-body: 1.65;
  --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family-base);
  color: var(--text-body);
  line-height: var(--line-height-body);
  background: var(--bg-paper);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* 表面取色覆盖规则 */
.surface-dark {
  --text-primary: var(--bg-paper);
  --text-secondary: rgba(247, 245, 243, 0.75);
  --accent: var(--color-emphasis);
  --link: var(--color-emphasis);
  background: var(--bg-dark);
}
.surface-light {
  --text-primary: var(--text-body);
  --text-secondary: rgba(23, 21, 35, 0.7);
  --accent: var(--color-brand);
  --link: var(--color-brand);
}
.light-card {
  --text-primary: var(--text-body);
  --text-secondary: rgba(23, 21, 35, 0.7);
  --accent: var(--color-brand);
  --link: var(--color-brand);
  background: var(--bg-paper);
  border: var(--card-border) solid transparent;
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* 排版 */
h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: var(--font-weight-title);
  line-height: var(--line-height-title);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: var(--font-weight-title);
  line-height: var(--line-height-title);
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}
p { margin: 0 0 1rem; max-width: 38em; }
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.hl { color: var(--accent); }
small { font-size: 0.875rem; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  height: 52px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-emphasis);
  color: var(--bg-dark);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
}
.surface-dark .btn-secondary {
  border-color: var(--bg-paper);
  color: var(--bg-paper);
}
.btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 布局与网格 */
section { padding-block: var(--section-y); }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--gap);
  align-items: center;
}
.feature-visual {
  background: var(--bg-dark);
  border-radius: var(--radius-card);
  padding: var(--gap);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.light-card {
  background: var(--bg-paper);
  border-radius: var(--radius-card);
  padding: var(--gap);
  box-shadow: var(--card-shadow);
}
.text-col { min-width: 0; }

/* 表格 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(23, 21, 35, 0.1);
}
th { font-weight: 600; }
.surface-dark th, .surface-dark td { border-bottom-color: rgba(247, 245, 243, 0.1); }

/* FAQ */
details {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(23, 21, 35, 0.1);
  padding-bottom: 1rem;
}
.surface-dark details { border-bottom-color: rgba(247, 245, 243, 0.1); }
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 0.75rem; }

/* 步骤条 */
.step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1.5rem;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  min-width: 0;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--color-emphasis);
  color: var(--bg-dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* 场景标签 */
.scenario-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.tag-problem { background: rgba(39, 20, 235, 0.1); color: var(--color-brand); }
.tag-action { background: rgba(137, 237, 110, 0.2); color: #0a5f04; }
.tag-result { background: rgba(23, 21, 35, 0.08); color: var(--text-body); }

/* 新闻卡片 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--gap);
}
.news-card {
  background: var(--bg-paper);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.news-card time { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.news-card p { margin: 0; font-size: 0.95rem; }

/* 页头页脚 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23, 21, 35, 0.08);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.95rem;
}
nav a[aria-current="page"] {
  color: var(--color-brand);
  font-weight: 700;
}
footer {
  background: var(--bg-dark);
  color: var(--bg-paper);
  padding: 3rem 0;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 2rem;
}
footer a { color: var(--color-emphasis); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }

/* SVG 基础与动效 */
.svg-responsive { width: 100%; height: auto; max-width: 100%; display: block; }
.svg-element { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svg-fill { fill: currentColor; }
@keyframes draw-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes slide-up { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.anim-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 6s ease-in-out infinite alternate; }
.anim-float { animation: float 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-blink { animation: blink 4s ease-in-out infinite; }
.anim-slide { animation: slide-up 0.8s ease-out forwards; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-draw, .anim-float, .anim-blink, .anim-slide { animation: none !important; }
}

/* 响应式微调 */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
  .header-inner { flex-direction: row; }
  nav { gap: 1rem; }
  nav a { font-size: 0.85rem; }
}
