/* =========================================
   全局变量与设计系统
   ========================================= */
:root {
  --color-bg: #0B0C10;
  --color-surface: #15171E;
  --color-surface-hover: #1C1F29;
  --color-border: #2A2E37;
  --color-text-primary: #F0F2F5;
  --color-text-secondary: #9BA3B5;
  --color-accent: #00E676;
  --color-accent-hover: #00C864;
  --color-accent-glow: rgba(0, 230, 118, 0.15);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --container-max: 1200px;
  --space-section: clamp(3rem, 6vw, 6rem);
  --space-block: clamp(1.5rem, 3vw, 2.5rem);
}

/* =========================================
   基础重置与排版
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; text-wrap: balance; color: var(--color-text-primary); }
h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 0.8rem; }
p { color: var(--color-text-secondary); margin-bottom: 1rem; }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* =========================================
   布局工具
   ========================================= */
.grid-auto { display: grid; gap: var(--space-block); }
.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)); }
.section { padding: var(--space-section) 0; position: relative; }
.section-alt { background-color: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-block); }

/* =========================================
   页头与页脚
   ========================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 32px; width: auto; object-fit: contain; }
.logo-area span { font-weight: 600; font-size: 1.1rem; color: var(--color-text-primary); }
.nav-list { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav-list a { font-size: 0.95rem; font-weight: 500; color: var(--color-text-secondary); padding: 8px 0; position: relative; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--color-accent); }
.nav-list a[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--color-accent); }
.footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 3rem 0; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h4 { color: var(--color-text-primary); margin-bottom: 1rem; font-size: 1rem; }
.footer-col a { display: block; color: var(--color-text-secondary); margin-bottom: 0.6rem; font-size: 0.95rem; }
.footer-col a:hover { color: var(--color-accent); }
.copyright { text-align: center; color: var(--color-text-secondary); font-size: 0.85rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }

/* =========================================
   按钮组件
   ========================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-size: 1rem; font-weight: 600; border-radius: var(--radius-md);
  cursor: pointer; border: none; transition: all 0.25s ease;
}
.btn-primary { background: var(--color-accent); color: #0B0C10; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 6px 16px var(--color-accent-glow); }
.btn-outline { background: transparent; border: 1.5px solid var(--color-border); color: var(--color-text-primary); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-glow); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; border-radius: var(--radius-sm); }

/* =========================================
   卡片与表格
   ========================================= */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: clamp(1.2rem, 2vw, 1.8rem);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--color-accent); box-shadow: var(--shadow-card); }
.card-title { color: var(--color-text-primary); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 500px; background: var(--color-surface); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #12141A; color: var(--color-text-secondary); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
td { color: var(--color-text-primary); font-size: 0.95rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--color-surface-hover); }

/* =========================================
   FAQ / Details
   ========================================= */
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--color-text-primary);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--color-accent); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--color-surface-hover); }
.faq-content { padding: 0 20px 20px; color: var(--color-text-secondary); font-size: 0.95rem; line-height: 1.6; }
.faq-content p { margin-bottom: 0.6rem; }

/* =========================================
   图标与 SVG 基础
   ========================================= */
.icon-svg { width: 24px; height: 24px; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; color: var(--color-accent); flex-shrink: 0; }
.icon-lg { width: 36px; height: 36px; stroke-width: 1.5; }

/* =========================================
   SVG 动效定义
   ========================================= */
.orbit-group { transform-box: fill-box; transform-origin: center; }
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }

@keyframes orbit-breathe {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.6; }
}
@keyframes draw-stroke {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pulse-glow {
  0% { filter: drop-shadow(0 0 4px var(--color-accent-glow)); opacity: 0.7; }
  50% { filter: drop-shadow(0 0 12px var(--color-accent)); opacity: 1; }
  100% { filter: drop-shadow(0 0 4px var(--color-accent-glow)); opacity: 0.7; }
}

.anim-orbit { animation: orbit-breathe 6s ease-in-out infinite; }
.anim-draw { animation: draw-stroke 3s ease forwards; }
.anim-pulse { animation: pulse-glow 4s ease-in-out infinite; }

@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-orbit, .anim-draw, .anim-pulse { animation: none !important; }
}

/* =========================================
   响应式适配
   ========================================= */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; gap: 12px; }
  .nav-list { flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.5rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
