/* === 设计 Token 与变量 === */
:root {
  --color-dark: #141838;
  --color-paper: #FCFCFD;
  --color-text: #151723;
  --color-brand: #142CEB;
  --color-accent: #6EAFED;
  
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 2px solid var(--color-text);
  --card-shadow: 4px 4px 0 var(--color-text);
  
  --section-y: clamp(2.5rem, 5vw, 4rem);
  --gap: clamp(0.75rem, 1.5vw, 1.25rem);
  --content-max: 1280px;
  
  --font-main: 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; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-main); background: var(--color-paper); color: var(--color-text); line-height: 1.55; font-size: 16px; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--color-brand); transition: color 0.2s ease; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
p { margin-bottom: 1rem; }
strong { font-weight: 600; }

/* === 容器与网格 === */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
@media (max-width: 768px) { .split-grid { grid-template-columns: 1fr; } }
.reverse-order { direction: rtl; }
.reverse-order > * { direction: ltr; }

/* === 面与区块 === */
.section { padding: var(--section-y) 0; }
.section--dark { background: var(--color-dark); color: var(--color-paper); }
.section--dark a:not(.btn) { color: var(--color-accent); }
.section--light { background: var(--color-paper); color: var(--color-text); }

/* === 标题与眉标 === */
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-brand); margin-bottom: 0.5rem; display: block; }
.section--dark .eyebrow { color: var(--color-accent); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; margin-bottom: var(--gap); text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: 0.02em; line-height: 1.25; margin-bottom: var(--gap); text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.3; }
.hl { color: var(--color-brand); }
.section--dark .hl { color: var(--color-accent); }

/* === 按钮 === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 52px; padding: 0 24px; border-radius: var(--radius-btn); font-weight: 600; font-size: 1rem; cursor: pointer; transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease; border: none; text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.btn--primary { background: var(--color-accent); color: var(--color-dark); }
.btn--primary:hover { transform: translateY(-2px); background: #5a9bdc; }
.btn--secondary { background: transparent; border: 2px solid var(--color-text); color: var(--color-text); }
.section--dark .btn--secondary { border-color: var(--color-paper); color: var(--color-paper); }
.section--dark .btn--secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); }

/* === 卡片与面板 === */
.card { background: var(--color-paper); border: var(--card-border); box-shadow: var(--card-shadow); border-radius: var(--radius-card); padding: var(--gap); }
.panel-dark { background: var(--color-dark); border: 2px solid var(--color-paper); box-shadow: 4px 4px 0 var(--color-paper); border-radius: var(--radius-card); padding: var(--gap); }
.section--dark .card { background: var(--color-paper); border-color: var(--color-text); box-shadow: 4px 4px 0 var(--color-text); }

/* === 表格 === */
.table-wrapper { overflow-x: auto; margin-top: var(--gap); }
table { width: 100%; border-collapse: collapse; min-width: 0; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--color-text); white-space: nowrap; }
.section--dark th, .section--dark td { border-bottom-color: var(--color-paper); }
th { font-weight: 700; background: rgba(0,0,0,0.03); }
td:first-child { font-weight: 600; }

/* === 列表与要点 === */
.feature-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0.5rem; width: 6px; height: 6px; background: var(--color-brand); border-radius: 2px; }
.section--dark .feature-list li::before { background: var(--color-accent); }
.step-list { counter-reset: step; }
.step-list li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.5rem; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; background: var(--color-accent); color: var(--color-dark); font-weight: 700; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 0.9rem; }

/* === FAQ === */
details { margin-bottom: var(--gap); border: var(--card-border); border-radius: var(--radius-card); overflow: hidden; }
summary { padding: 1rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.02); }
.summary-icon { width: 16px; height: 16px; }
details[open] summary { background: rgba(0,0,0,0.05); }
details p { padding: 0 1rem 1rem; line-height: 1.6; }

/* === 页头页脚 === */
header { position: sticky; top: 0; background: var(--color-paper); border-bottom: 1px solid rgba(0,0,0,0.08); z-index: 100; backdrop-filter: blur(8px); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.1rem; color: var(--color-text); text-decoration: none; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; gap: 1.5rem; }
.nav a { font-weight: 500; color: var(--color-text); }
.nav a:hover { color: var(--color-brand); }
.nav a[aria-current="page"] { color: var(--color-brand); font-weight: 700; }
footer { background: var(--color-dark); color: var(--color-paper); padding: var(--section-y) 0; margin-top: var(--section-y); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.05em; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-accent); text-decoration: none; }
.footer-bottom { margin-top: var(--gap); padding-top: var(--gap); border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* === SVG 动效系统 === */
.svg-mockup { width: 100%; height: auto; }
.svg-anim { animation-duration: 4s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.float-slow { animation-name: floatSlow; }
.float-fast { animation-name: floatFast; }
.draw-line { stroke-dasharray: 1; stroke-dashoffset: 0; animation-name: drawLine; animation-duration: 6s; }
.breathe { animation-name: breathe; animation-duration: 3s; }
.pulse-dot { animation-name: pulseDot; animation-duration: 2s; }
.rotate-center { animation-name: rotateCenter; animation-duration: 12s; animation-timing-function: linear; animation-iteration-count: infinite; transform-box: fill-box; transform-origin: center; }

@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floatFast { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes drawLine { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes breathe { 0%, 100% { opacity: 0.5; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.02); } }
@keyframes pulseDot { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes rotateCenter { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .svg-anim { animation: none !important; }
  .rotate-center { animation: none !important; }
}

/* === 响应式微调 === */
@media (max-width: 640px) {
  .nav { display: none; }
  .split-grid { gap: var(--gap); }
  .table-wrapper { font-size: 0.9rem; }
}
