/* =========================================
   全局设计变量与基础重置
   ========================================= */
:root {
  --bg-base: #08090b;
  --bg-surface: #111318;
  --bg-elevated: #181c23;
  --bg-overlay: rgba(8, 9, 11, 0.6);
  --text-primary: #f4f6f8;
  --text-secondary: #9ca3b0;
  --text-muted: #6b7280;
  --accent: #25D366;
  --accent-hover: #1ebe57;
  --accent-glow: rgba(37, 211, 102, 0.15);
  --border-subtle: #242830;
  --border-active: #3a3f4a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --container-max: 1180px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-btn: 0 6px 20px rgba(37, 211, 102, 0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.05rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =========================================
   排版系统
   ========================================= */
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.015em; color: var(--text-primary); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.6rem); font-weight: 800; text-wrap: balance; margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 700; margin-bottom: 1.5rem; text-wrap: balance; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); font-weight: 600; margin-bottom: 0.75rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; max-width: 72ch; }
strong { color: var(--text-primary); font-weight: 600; }
ul, ol { padding-left: 1.25rem; color: var(--text-secondary); }
li { margin-bottom: 0.6rem; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }

/* =========================================
   布局容器
   ========================================= */
.container { width: min(var(--container-max), 100% - 2.5rem); margin: 0 auto; }
section { padding: clamp(3.5rem, 6vw, 6.5rem) 0; }
.grid-auto { display: grid; gap: 1.5rem; }
.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.asymmetric-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
@media (max-width: 850px) {
  .asymmetric-layout { grid-template-columns: 1fr; }
  .asymmetric-layout.reverse-mobile { direction: rtl; }
  .asymmetric-layout.reverse-mobile > * { direction: ltr; }
}

/* =========================================
   组件：按钮
   ========================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 2rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: none; transition: all 0.2s ease; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #000; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-subtle); }
.btn-secondary:hover { border-color: var(--text-primary); background: rgba(255, 255, 255, 0.04); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* =========================================
   组件：卡片
   ========================================= */
.card {
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-active); box-shadow: var(--shadow-card); }
.card-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.card-icon { width: 28px; height: 28px; flex-shrink: 0; }
.card-body p { margin-bottom: 0.6rem; font-size: 0.98rem; }

/* =========================================
   组件：表格
   ========================================= */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--bg-surface); }
th, td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { background: rgba(255, 255, 255, 0.03); color: var(--text-primary); font-weight: 600; white-space: nowrap; }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* =========================================
   组件：FAQ
   ========================================= */
.faq-list details { border-bottom: 1px solid var(--border-subtle); padding: 1.2rem 0; }
.faq-list summary {
  cursor: pointer; list-style: none; font-weight: 600; color: var(--text-primary);
  display: flex; justify-content: space-between; align-items: center; user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; transition: transform 0.2s ease; margin-left: 0.5rem; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details[open] summary { color: var(--accent); }
.faq-list details > p { margin-top: 0.8rem; margin-bottom: 0; padding-right: 1rem; }

/* =========================================
   组件：页头与页脚
   ========================================= */
header { position: sticky; top: 0; z-index: 50; background: var(--bg-overlay); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border-subtle); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 1.1rem; color: var(--text-primary); text-decoration: none; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
nav ul { display: flex; gap: 1.6rem; list-style: none; }
nav a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--text-primary); }
footer { border-top: 1px solid var(--border-subtle); padding: 3.5rem 0 2rem; background: var(--bg-surface); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-col h4 { color: var(--text-primary); margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }

/* =========================================
   图标与 SVG 基础
   ========================================= */
svg.icon { width: 1.2em; height: 1.2em; stroke: currentColor; stroke-width: 1.5; fill: none; vertical-align: middle; flex-shrink: 0; }
svg.hero-svg, svg.mockup-svg, svg.divider-svg { width: 100%; height: auto; max-width: 100%; display: block; }

/* =========================================
   SVG 动效系统
   ========================================= */
@keyframes orbit-breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 0.35; }
}
@keyframes stroke-draw {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes drift-slow {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-10px) translateX(4px); }
}

.orbit-layer { animation: orbit-breathe 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.orbit-delay-1 { animation-delay: 0s; }
.orbit-delay-2 { animation-delay: 2.3s; }
.orbit-delay-3 { animation-delay: 4.1s; }
.draw-trace { stroke-dasharray: 1; animation: stroke-draw 9s linear infinite; }
.drift-element { animation: drift-slow 5s 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; }
  .orbit-layer, .draw-trace, .drift-element { animation: none; }
}
