/* =========================================
   设计变量与基础重置
   ========================================= */
:root {
  --bg-primary: #0A0C10;
  --bg-secondary: #12151C;
  --bg-card: #161A23;
  --bg-hover: #1C212E;
  --border-subtle: #2A2F3A;
  --border-active: #3A4150;
  --accent: #00E676;
  --accent-hover: #00C85C;
  --accent-glow: rgba(0, 230, 118, 0.25);
  --text-primary: #EAECEF;
  --text-secondary: #8B94A5;
  --text-muted: #5C6370;
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1180px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg-primary); color: var(--text-primary); font-family: var(--font-main); line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding-left: 0; list-style: none; }

/* 焦点与无障碍 */
a:focus-visible, button:focus-visible, summary:focus-visible, details:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .particle, circle, path { animation: none !important; }
}

/* =========================================
   排版与容器
   ========================================= */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
h1, h2, h3, h4 { margin-top: 0; margin-bottom: 0.5em; line-height: 1.2; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1em; color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 600; }

/* =========================================
   页头与页脚
   ========================================= */
header { position: sticky; top: 0; z-index: 100; background: rgba(10, 12, 16, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-subtle); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; }
.brand img { height: 36px; width: auto; }
nav ul { display: flex; gap: 28px; margin: 0; padding: 0; }
nav a { font-size: 0.95rem; font-weight: 500; opacity: 0.8; }
nav a:hover, nav a[aria-current="page"] { opacity: 1; color: var(--accent); }
footer { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); padding: 64px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 48px; }
.footer-col h4 { color: var(--text-primary); margin-bottom: 18px; font-size: 1.05rem; font-weight: 600; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-secondary); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--accent); }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid var(--border-subtle); padding-top: 24px; }

/* =========================================
   通用组件
   ========================================= */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px; transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base); }
.card:hover { transform: translateY(-4px); border-color: var(--border-active); box-shadow: var(--shadow-sm); }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon { flex-shrink: 0; margin-top: 2px; }
.table-wrapper { overflow-x: auto; margin: 20px 0; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; }
th { background: var(--bg-secondary); color: var(--text-primary); font-weight: 600; border-bottom: 2px solid var(--border-subtle); }
td { color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; transition: all var(--transition-base); border: none; font-size: 1rem; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #0A0C10; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-outline { background: transparent; border: 2px solid var(--border-subtle); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(0, 230, 118, 0.05); }

/* FAQ Details */
details { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; transition: border-color var(--transition-base); }
details:hover { border-color: var(--border-active); }
summary { padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--text-primary); display: flex; justify-content: space-between; align-items: center; user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; color: var(--accent); transition: transform 0.2s; font-weight: 400; }
details[open] summary { border-bottom: 1px solid var(--border-subtle); }
details[open] summary::after { transform: rotate(45deg); }
details[open] > *:not(summary) { padding: 0 20px 16px; color: var(--text-secondary); }

/* SVG 图标基准 */
.svg-icon { width: 24px; height: 24px; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; color: var(--accent); }

/* =========================================
   SVG 动效 Keyframes
   ========================================= */
@keyframes orbit-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50% { opacity: 0.85; transform: scale(1.04); }
}
@keyframes dash-flow {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pulse-scale {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 1; }
}
/* 装饰性图形默认类 */
.anim-orbit { animation: orbit-pulse 6s ease-in-out infinite; transform-origin: center; }
.anim-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: dash-flow 4s linear infinite alternate; transform-origin: center; }
.anim-particle { transform-box: fill-box; transform-origin: center; animation: pulse-scale 3.5s ease-in-out infinite; }
