:root {
  --color-dark: #10112D;
  --color-paper: #F5F0E5;
  --color-text: #151523;
  --color-brand: #1416EB;
  --color-accent: #89ED6E;
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-border: 1px solid rgba(21, 21, 35, 0.16);
  --card-shadow: none;
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gap: clamp(1rem, 2vw, 1.75rem);
  --content-max: 1280px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --line-height-body: 1.65;
  --line-height-tight: 1.25;
}

/* 上下文取色覆盖 */
.dark-bg { --bg: var(--color-dark); --text: var(--color-paper); --hl: var(--color-accent); }
.paper-bg { --bg: var(--color-paper); --text: var(--color-text); --hl: var(--color-brand); }
.card-light { --bg: var(--color-paper); --text: var(--color-text); --hl: var(--color-brand); --border-color: rgba(21,21,35,0.12); }

*, *::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: var(--line-height-body);
  -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-block: var(--section-y); background: var(--bg); color: var(--text); }
.section-header { margin-bottom: var(--gap); }
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hl);
  margin-bottom: 0.5rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: 0.02em; line-height: var(--line-height-tight); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: var(--line-height-tight); margin-bottom: 0.8rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; max-width: 38em; }
.hl { color: var(--hl); }

/* 导航与页头 */
header { position: sticky; top: 0; z-index: 100; background: rgba(245, 240, 229, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; }
.logo img { height: 32px; width: auto; }
nav ul { display: flex; gap: 1.5rem; }
nav a { font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-brand); }
@media(max-width: 768px) { nav ul { display: none; } }

/* 按钮组件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  font-size: 1rem; font-weight: 600; border-radius: var(--radius-btn);
  cursor: pointer; transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--color-accent); color: var(--color-dark); border: none; }
.btn-primary:hover { transform: translateY(-2px); background: #7add5e; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--text); }
.btn-secondary:hover { transform: translateY(-2px); background: rgba(0,0,0,0.04); }
.btn:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 2px; }

/* 卡片与面板 */
.panel { background: var(--bg); border: var(--card-border); border-radius: var(--radius-card); padding: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--gap); }
.feature-card { background: var(--bg); border: var(--card-border); border-radius: var(--radius-card); padding: 1.5rem; height: 100%; display: flex; flex-direction: column; }
.feature-card h3 { color: var(--text); }
.feature-card p { font-size: 0.95rem; color: var(--text); opacity: 0.85; margin: 0; }
.feature-group-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }

/* 表格 */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.1); }
th { font-weight: 700; width: 40%; }
@media(max-width: 600px) { th, td { display: block; width: 100%; } th { padding-bottom: 0.5rem; } }

/* FAQ */
details { border: var(--card-border); border-radius: var(--radius-card); margin-bottom: 1rem; overflow: hidden; }
summary { padding: 1.25rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; }
details[open] summary::after { content: "-"; }
details > div { padding: 0 1.25rem 1.25rem; opacity: 0.9; line-height: 1.6; }

/* 时间线 */
.timeline { position: relative; padding-left: 2rem; border-left: 2px solid rgba(0,0,0,0.1); }
.timeline-step { position: relative; margin-bottom: 2rem; padding-left: 1rem; }
.timeline-step::before {
  content: attr(data-num);
  position: absolute; left: -2.6rem; top: 0;
  width: 2rem; height: 2rem;
  background: var(--color-accent); color: var(--color-dark);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
}
.timeline-step h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.timeline-step p { font-size: 0.95rem; margin: 0; }

/* 资讯卡片 */
.news-card { background: var(--bg); border: var(--card-border); border-radius: var(--radius-card); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.news-date { font-size: 0.85rem; color: var(--text); opacity: 0.6; }
.news-card h4 { font-size: 1.05rem; font-weight: 700; }
.news-card p { font-size: 0.95rem; margin: 0; }

/* 场景走查 */
.scenario-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media(max-width: 768px) { .scenario-split { grid-template-columns: 1fr; } }
.scenario-box { background: var(--bg); border: var(--card-border); border-radius: var(--radius-card); padding: 1.5rem; }
.scenario-box h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.8rem; }
.scenario-box ol { padding-left: 1.2rem; list-style: decimal; }
.scenario-box li { margin-bottom: 0.6rem; line-height: 1.6; }

/* SVG 动效基础 */
.svg-grid-node { fill: var(--color-brand); opacity: 0; transform: scale(0.5); transform-box: fill-box; transform-origin: center; animation: nodeLightUp 4s ease-in-out infinite; }
.svg-grid-node:nth-child(1) { animation-delay: 0s; }
.svg-grid-node:nth-child(2) { animation-delay: 0.4s; }
.svg-grid-node:nth-child(3) { animation-delay: 0.8s; }
.svg-grid-node:nth-child(4) { animation-delay: 1.2s; }
.svg-grid-node:nth-child(5) { animation-delay: 1.6s; }
.svg-grid-node:nth-child(6) { animation-delay: 2.0s; }
@keyframes nodeLightUp {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  20% { opacity: 1; transform: scale(1); }
  50% { opacity: 1; transform: scale(1); }
  80% { opacity: 0; transform: scale(0.5); }
}
.draw-line, .draw-path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.draw-line { animation: drawStroke 3s ease-in-out infinite; }
.draw-path { animation: drawPathStroke 2.5s ease-in-out infinite; }
@keyframes drawStroke {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
@keyframes drawPathStroke {
  0% { stroke-dashoffset: 1; }
  40% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
.bubble-float { animation: floatBubble 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes floatBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .svg-grid-node, .bubble-float, .draw-line, .draw-path { animation: none; opacity: 1; transform: none; }
}
