/* ==================== 设计变量 ==================== */
:root {
  --bg-deep: #040812;
  --bg-surface: #0b1120;
  --bg-card: #111827;
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-accent: rgba(0, 229, 255, 0.4);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --color-blue: #0ea5e9;
  --color-neon: #00e5ff;
  --color-accent-glow: rgba(0, 229, 255, 0.25);
  --font-base: 'PingFang SC', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 32px rgba(0, 229, 255, 0.15);
  --container-max: 1200px;
  --space-section: clamp(3rem, 8vw, 6rem);
  --space-inner: clamp(1.5rem, 4vw, 2.5rem);
}

/* ==================== 基础重置与排版 ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-base);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul, ol { list-style: none; }

/* 流体排版 */
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 1.5rem; line-height: 1.3; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 600; }

/* 容器与栅格 */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-inner); }
.section { padding: var(--space-section) 0; position: relative; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 2.5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 2rem; }

/* 导航与页头 */
.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); background: rgba(4, 8, 18, 0.85); border-bottom: 1px solid var(--border-subtle); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand span { font-weight: 600; font-size: 1.1rem; letter-spacing: 0.02em; }
.main-nav { display: flex; gap: 1.5rem; }
.main-nav a { font-size: 0.95rem; color: var(--text-secondary); padding: 0.4rem 0; position: relative; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-neon); }
.main-nav a[aria-current="page"]::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--color-neon); border-radius: 2px; }

/* 按钮组件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem; border-radius: 10px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: none; transition: all 0.25s ease; text-wrap: balance;
}
.btn-primary { background: linear-gradient(135deg, var(--color-blue), var(--color-neon)); color: #030812; box-shadow: 0 4px 16px var(--color-accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0, 229, 255, 0.35); }
.btn-outline { background: transparent; border: 1.5px solid var(--border-accent); color: var(--color-neon); }
.btn-outline:hover { background: rgba(0, 229, 255, 0.08); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.9rem; border-radius: 8px; }

/* 卡片与表格 */
.card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.8rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon { width: 48px; height: 48px; margin-bottom: 1rem; stroke: var(--color-neon); fill: none; stroke-width: 1.5; }
.table-wrapper { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.platform-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.platform-table th, .platform-table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.platform-table th { background: rgba(15, 23, 42, 0.6); color: var(--color-neon); font-weight: 600; }
.platform-table tr:last-child td { border-bottom: none; }
.platform-table td:first-child { font-weight: 600; color: var(--text-primary); }

/* FAQ 组件 */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); overflow: hidden; }
details summary {
  padding: 1.2rem 1.5rem; cursor: pointer; font-weight: 600; color: var(--text-primary);
  list-style: none; position: relative; user-select: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+'; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
  color: var(--color-neon); font-weight: 400; transition: transform 0.2s;
}
details[open] summary::after { content: '−'; }
details p { padding: 0 1.5rem 1.2rem; margin: 0; font-size: 0.95rem; line-height: 1.7; color: var(--text-secondary); }

/* 链接列表 */
.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.2rem; }
.link-item { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem; background: rgba(15, 23, 42, 0.4); border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); transition: border-color 0.2s; }
.link-item:hover { border-color: var(--color-blue); }
.link-item strong { font-size: 0.95rem; }
.link-item span { font-size: 0.85rem; color: var(--text-muted); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--border-subtle); padding: 3rem 0; background: rgba(4, 8, 18, 0.6); text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand img { width: 28px; height: 28px; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-links a:hover { color: var(--color-neon); }

/* ==================== SVG 动效系统 ==================== */
svg.anim-layer { width: 100%; height: auto; display: block; }
.star { fill: var(--color-neon); opacity: 0.6; }
.line-path { stroke: var(--color-blue); stroke-width: 1.2; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes drawLine {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes floatShift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -6px); }
}

.twinkle-1 { animation: twinkle 4s ease-in-out infinite; }
.twinkle-2 { animation: twinkle 5.5s ease-in-out infinite 1s; }
.twinkle-3 { animation: twinkle 4.8s ease-in-out infinite 2.2s; }
.draw-line { animation: drawLine 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.float-group { animation: floatShift 6s ease-in-out infinite; 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; }
  .twinkle-1, .twinkle-2, .twinkle-3, .float-group { animation: none; }
  .draw-line { animation: none; stroke-dashoffset: 0; }
}

/* 焦点可见性 */
:focus-visible { outline: 2px solid var(--color-neon); outline-offset: 3px; border-radius: 4px; }
