/* 设计变量 */
:root {
  --color-dark: #10112D;
  --color-paper: #F5F0E5;
  --color-text: #151523;
  --color-brand: #1416EB;
  --color-accent: #89ED6E;
  --radius-card: 24px;
  --radius-btn: 999px;
  --card-shadow: 0 10px 28px -14px rgba(21, 21, 35, 0.3);
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 960px;
}

/* 基础重置与排版 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  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%; }
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); position: relative; }
.section-paper { background: var(--color-paper); color: var(--color-text); }
.section-dark { background: var(--color-dark); color: var(--color-paper); }
.card-light {
  background: var(--color-paper);
  color: var(--color-text);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: var(--gap);
  border: 1px solid transparent;
}

/* 标题与眉标 */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  margin-bottom: 0.75rem; text-transform: uppercase;
}
.badge::before { content: ""; width: 12px; height: 2px; background: currentColor; border-radius: 2px; }
.section-dark .badge { color: var(--color-accent); }
.section-paper .badge { color: var(--color-brand); }

h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 600; line-height: 1.25; letter-spacing: 0;
  margin-bottom: 1rem;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600; line-height: 1.25; margin-bottom: 0.75rem;
}
h3 {
  font-size: 1.125rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.5rem;
}
p { margin-bottom: 1rem; max-width: 38em; }
.hl { font-weight: 700; }
.section-dark .hl { color: var(--color-accent); }
.section-paper .hl { color: var(--color-brand); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 1rem; cursor: pointer; border: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--color-accent); color: var(--color-dark);
  box-shadow: 0 4px 12px rgba(137, 237, 110, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(137, 237, 110, 0.35); }
.btn-secondary {
  background: transparent; border: 1.5px solid currentColor; color: currentColor;
}
.btn-secondary:hover { background: rgba(128, 128, 128, 0.08); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* 网格与布局 */
.grid-2 { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.flex-row { display: flex; gap: var(--gap); align-items: center; flex-wrap: wrap; }
.flex-col { display: flex; flex-direction: column; gap: var(--gap); }

/* 列表与提示框 */
.feature-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: 0.6;
}
.callout {
  border-left: 4px solid var(--color-brand); padding: 1rem 1.25rem;
  background: rgba(20, 22, 235, 0.05); border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin-top: 1rem;
}
.section-dark .callout { border-color: var(--color-accent); background: rgba(137, 237, 110, 0.08); }

/* 表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-card); }
table { width: 100%; border-collapse: collapse; min-width: 400px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(128, 128, 128, 0.2); }
th { font-weight: 600; opacity: 0.9; }
td { vertical-align: middle; }
tr:last-child td { border-bottom: none; }

/* FAQ */
details {
  border: 1px solid rgba(128, 128, 128, 0.3); border-radius: var(--radius-card);
  padding: 1rem 1.25rem; margin-bottom: 0.75rem; background: rgba(128, 128, 128, 0.04);
  transition: background 0.2s ease;
}
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(128, 128, 128, 0.15); font-size: 0.9rem; }
details[open] summary::before { content: "−"; }
details p { margin-top: 0.75rem; margin-bottom: 0; font-size: 0.95rem; }

/* 步骤条 */
.steps { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.step-item { flex: 0 0 200px; background: rgba(128, 128, 128, 0.06); padding: 16px; border-radius: var(--radius-card); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: var(--color-accent); color: var(--color-dark);
  font-weight: 700; border-radius: 8px; margin-bottom: 8px; font-size: 0.9rem;
}
.section-dark .step-num { background: var(--color-accent); color: var(--color-dark); }

/* 新闻卡片 */
.news-card {
  background: rgba(128, 128, 128, 0.04); padding: 1.25rem; border-radius: var(--radius-card);
  border: 1px solid rgba(128, 128, 128, 0.15);
}
.news-date { font-size: 0.8rem; opacity: 0.7; margin-bottom: 0.5rem; display: block; }

/* 场景卡片 */
.scene-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 4px 10px;
  border-radius: 99px; background: rgba(128, 128, 128, 0.1); margin-bottom: 0.5rem;
}

/* SVG 动效容器 */
.svg-container { width: 100%; height: auto; }
.svg-container svg { width: 100%; height: auto; }

/* 关键帧与动效类 */
@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floatMid { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes floatFast { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drawPath { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes breathe { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes flowDash { 0% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }

.float-1 { animation: floatSlow 6s ease-in-out infinite; }
.float-2 { animation: floatMid 5s ease-in-out infinite 0.5s; }
.float-3 { animation: floatFast 4.5s ease-in-out infinite 1s; }
.draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawPath 3s ease-in-out infinite alternate; }
.breathe { animation: breathe 3s ease-in-out infinite; }
.slide-up { animation: slideIn 0.8s ease-out both; }
.flow-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: flowDash 2s linear infinite; }

/* 变换中心 */
.g-transform { transform-box: fill-box; transform-origin: center; }

/* 减少动态效果 */
@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;
  }
  .float-1, .float-2, .float-3, .breathe, .slide-up, .draw-line, .flow-path {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* 响应式微调 */
@media (max-width: 768px) {
  .flex-row { flex-direction: column; align-items: flex-start; }
  .steps { flex-direction: column; }
  .step-item { flex: 1 1 100%; }
}
