/* 设计变量与基础重置 */
:root {
  --color-bg: #0B1929;
  --color-surface: #132740;
  --color-surface-hover: #1A3552;
  --color-text: #F1F5F9;
  --color-muted: #94A3B8;
  --color-accent: #F59E0B;
  --color-accent-hover: #D97706;
  --color-border: rgba(148, 163, 184, 0.18);
  --font-display: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --spacing-container: min(92vw, 1200px);
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 排版系统 */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.02em; color: #fff; }
h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); font-weight: 800; text-wrap: balance; margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; text-wrap: balance; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; margin-bottom: 0.75rem; color: var(--color-accent); }
p { color: var(--color-muted); margin-bottom: 1rem; max-width: 68ch; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }

/* 布局容器与网格 */
.container { max-width: var(--spacing-container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; position: relative; overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media(min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.stagger:nth-child(even) .grid-2 > *:first-child { order: 2; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }

/* 组件：按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.875rem 1.75rem; border-radius: var(--radius-md); font-weight: 600;
  transition: all 0.2s ease; cursor: pointer; border: none; font-size: 1rem;
  font-family: var(--font-body);
}
.btn-primary { background: var(--color-accent); color: #0B1929; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(245,158,11,0.35); outline: 2px solid transparent; outline-offset: 2px; }
.btn-outline { border: 1px solid var(--color-border); background: transparent; color: var(--color-text); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--color-accent); color: var(--color-accent); outline: none; }

/* 组件：卡片 */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.card:hover { border-color: var(--color-accent); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.card-meta { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.75rem; }

/* 组件：表格 */
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--color-border); text-align: left; white-space: nowrap; }
th { background: rgba(18, 38, 58, 0.6); color: var(--color-accent); font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:hover { background: var(--color-surface-hover); }

/* 组件：FAQ */
details { border-bottom: 1px solid var(--color-border); margin-bottom: 0.5rem; }
summary { padding: 1rem 0; cursor: pointer; font-weight: 600; color: #fff; list-style: none; display: flex; align-items: center; justify-content: space-between; outline: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--color-accent); transition: transform 0.2s; flex-shrink: 0; margin-left: 1rem; }
details[open] summary::after { transform: rotate(45deg); }
details > p { padding: 0.5rem 0 1rem; margin-bottom: 0; line-height: 1.7; }
details:focus-within { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: var(--radius-md); }

/* 页头与页脚 */
header { padding: 1rem 0; border-bottom: 1px solid var(--color-border); position: sticky; top: 0; background: rgba(11, 25, 41, 0.92); backdrop-filter: blur(10px); z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.25rem; color: #fff; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
nav ul { display: flex; gap: 1.5rem; flex-wrap: wrap; }
nav a { font-size: 0.95rem; font-weight: 500; padding: 0.25rem 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-accent); }
footer { padding: 3rem 0; border-top: 1px solid var(--color-border); text-align: center; color: var(--color-muted); font-size: 0.9rem; margin-top: 3rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--color-accent); }

/* SVG 图标通用样式 */
.icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.icon-lg { width: 32px; height: 32px; }
svg[role="img"], svg[aria-hidden="true"] { display: block; }

/* SVG 动效关键帧 */
@keyframes wave { 0% { transform: translateY(0); } 100% { transform: translateY(-12px); } }
@keyframes wave-subtle { 0% { transform: translateY(0); } 100% { transform: translateY(-6px); } }
.wave-anim { animation: wave 6s ease-in-out infinite alternate; }
.wave-subtle { animation: wave-subtle 5s ease-in-out infinite alternate; }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.svg-draw { animation: draw 8s linear infinite alternate; }

@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; }
}

/* 工具类 */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 2rem; }
