/* === 设计变量 === */
:root {
  --color-bg: #070d1f;
  --color-surface: #0f162b;
  --color-surface-elevated: #161f3a;
  --color-text: #e6ecf5;
  --color-text-muted: #8fa3c9;
  --color-accent: #ff8a3d;
  --color-accent-hover: #ffa366;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-success: #34c759;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  --font-display: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --container-max: 1200px;
}

/* === 基础重置与排版 === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* 流体字号 */
.text-display { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.text-headline { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.25; font-weight: 600; margin-bottom: var(--space-sm); }
.text-body { font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--color-text-muted); }
.text-small { font-size: 0.875rem; }

/* 布局容器 */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-xl) 0; }
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); }

/* === 页头与导航 === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 13, 31, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { height: 72px; }
.brand { display: flex; align-items: center; gap: var(--space-xs); }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; }
.nav-list { display: flex; gap: var(--space-md); }
.nav-link { color: var(--color-text-muted); font-weight: 500; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); transition: all 0.2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-text); background: rgba(255, 255, 255, 0.06); }
.nav-link[aria-current="page"] { color: var(--color-accent); }
.mobile-toggle { display: none; background: none; border: none; color: var(--color-text); cursor: pointer; }

/* === 按钮 === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 600; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border 0.2s;
  font-size: 1rem; border: none;
}
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn-primary { background: var(--color-accent); color: #0a0f1a; box-shadow: 0 4px 12px rgba(255, 138, 61, 0.3); }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn-secondary { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* === 卡片与表格 === */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: var(--shadow-card); }
.card:hover { border-color: rgba(255, 138, 61, 0.3); transform: translateY(-2px); transition: all 0.3s; }
.card-icon { width: 40px; height: 40px; color: var(--color-accent); margin-bottom: var(--space-sm); }
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 1rem; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-surface-elevated); font-weight: 600; color: var(--color-text); }
td { color: var(--color-text-muted); }
tr:last-child td { border-bottom: none; }
.platform-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; background: rgba(255, 138, 61, 0.15); color: var(--color-accent); font-size: 0.8rem; font-weight: 600; }

/* === 分割线与装饰 === */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--color-border), transparent); margin: var(--space-xl) 0; }
.svg-decor { width: 100%; max-width: 600px; margin: var(--space-md) auto; display: block; }

/* === FAQ === */
details { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-sm); background: var(--color-surface); }
summary { padding: 1rem; cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-left: 2rem; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; position: absolute; left: 1rem; color: var(--color-accent); font-weight: 700; transition: transform 0.2s; }
details[open] summary::before { content: "-"; }
details[open] summary { border-bottom: 1px solid var(--color-border); }
.details-content { padding: 1rem; color: var(--color-text-muted); }

/* === SVG 动效 === */
.wave-path {
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0;
}
.wave-path-1 { stroke: var(--color-accent); animation: wave-flow 6s ease-in-out infinite alternate; }
.wave-path-2 { stroke: rgba(255, 138, 61, 0.5); animation: wave-flow 8s ease-in-out infinite alternate-reverse; }
.wave-path-3 { stroke: rgba(255, 255, 255, 0.2); animation: wave-flow 10s ease-in-out infinite alternate; }
@keyframes wave-flow {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
.pulse-circle {
  fill: none; stroke: var(--color-accent); stroke-width: 1.5; opacity: 0;
  transform-box: fill-box; transform-origin: center;
  animation: pulse-ring 4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .wave-path { animation: none; }
  .pulse-circle { animation: none; }
}

/* === 响应式 === */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-list { display: none; width: 100%; flex-direction: column; background: var(--color-surface); padding: var(--space-md); border-bottom: 1px solid var(--color-border); }
  .nav-list.active { display: flex; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
}
