/* 设计变量与基础重置 */
:root {
  --color-dark: #17203F;
  --color-paper: #FCFCFD;
  --color-text: #151823;
  --color-brand: #1441EB;
  --color-accent: #6EEDBD;
  --radius-card: 8px;
  --radius-btn: 6px;
  --card-border: 0;
  --card-shadow: 0 10px 28px -14px rgba(21,24,35,0.3);
  --section-y: clamp(5rem, 10vw, 9rem);
  --gap: clamp(1.5rem, 3vw, 2.5rem);
  --content-max: 1280px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: opacity 0.2s; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; border-radius: 2px; }

/* 容器与排版 */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: var(--section-y) 0; position: relative; }
.surface-dark { background-color: var(--color-dark); color: var(--color-paper); }
.surface-dark .hl, .surface-dark a { color: var(--color-accent); }
.surface-dark .overline { color: var(--color-accent); }
.surface-dark .card-light { background-color: var(--color-paper); color: var(--color-text); border-radius: var(--radius-card); padding: var(--gap); box-shadow: var(--card-shadow); }
.surface-dark .card-light .hl, .surface-dark .card-light a { color: var(--color-brand); }
.surface-dark .card-light .overline { color: var(--color-brand); }

.surface-paper { background-color: var(--color-paper); color: var(--color-text); }
.surface-paper .hl { color: var(--color-brand); }
.surface-paper .overline { color: var(--color-brand); }
.surface-paper a { color: var(--color-brand); }

h1, h2, h3, h4 { margin: 0 0 1rem; font-weight: 600; line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2em; margin: 0 0 1rem; }
li { margin-bottom: 0.5rem; }

.overline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0 1.25rem; height: 48px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 1rem; cursor: pointer; border: none; transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.btn-primary { background-color: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(110,237,189,0.35); }
.btn-secondary { background: transparent; border: 1.5px solid currentColor; color: inherit; }
.surface-paper .btn-secondary { border-color: var(--color-text); }
.surface-dark .btn-secondary { border-color: var(--color-paper); }
.btn-secondary:hover { background-color: rgba(128,128,128,0.1); }

/* 卡片与网格 */
.card-grid { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--color-paper);
  border: var(--card-border) solid currentColor;
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
  padding: var(--gap);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgba(21,24,35,0.35); }
.surface-dark .card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); box-shadow: none; }
.surface-dark .card:hover { background: rgba(255,255,255,0.1); }

/* 表格 */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-card); border: 1px solid rgba(128,128,128,0.2); }
table { width: 100%; border-collapse: collapse; min-width: 400px; }
th, td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid rgba(128,128,128,0.15); }
th { font-weight: 600; background: rgba(128,128,128,0.05); }
td strong { font-weight: 600; }

/* FAQ */
details { margin-bottom: 1rem; border-radius: var(--radius-card); border: 1px solid rgba(128,128,128,0.2); overflow: hidden; }
summary { padding: 1rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2em; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 1rem 1rem; }

/* 编号徽标 */
.badge-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px; background: var(--color-accent); color: var(--color-dark);
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.step-list { list-style: none; padding: 0; counter-reset: step; }
.step-list li { position: relative; padding-left: 2.5rem; margin-bottom: 1.25rem; }
.step-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; }
.step-list .badge-num { position: absolute; left: 0; top: 0; }

/* 页头页脚 */
header { position: sticky; top: 0; z-index: 100; background: rgba(252,252,253,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(128,128,128,0.15); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; }
.nav-links a[aria-current="page"] { color: var(--color-brand); font-weight: 700; }
footer { padding: var(--section-y) 0; border-top: 1px solid rgba(128,128,128,0.15); margin-top: var(--section-y); }
.footer-grid { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-col h4 { margin-bottom: 0.8rem; font-size: 0.95rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a:hover { text-decoration: underline; }
.copyright { margin-top: 2rem; font-size: 0.85rem; opacity: 0.7; text-align: center; }

/* SVG 基础与动效 */
.svg-panel { width: 100%; height: auto; }
.anim-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawLine 2.5s ease-in-out infinite alternate; }
.anim-float { animation: float 4s ease-in-out infinite; }
.anim-breathe { animation: breathe 3s ease-in-out infinite; }
.anim-slide-in { animation: slideIn 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.anim-pulse { animation: pulse 2s ease-in-out infinite; }
.anim-flow { stroke-dasharray: 8 16; animation: flowDash 1.5s linear infinite; }

@keyframes drawLine { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes breathe { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes slideIn { 0% { transform: translateX(20px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes flowDash { to { stroke-dashoffset: -24; } }

/* 减少动态效果 */
@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; }
  .anim-draw, .anim-float, .anim-breathe, .anim-slide-in, .anim-pulse, .anim-flow { animation: none !important; }
}

/* 响应式微调 */
@media (max-width: 768px) {
  .hero-layout { flex-direction: column-reverse !important; }
  .feature-row { flex-direction: column !important; }
  .feature-row.reverse { flex-direction: column !important; }
  .svg-panel { max-width: 100%; }
}
