/* =========================================
   WhatsApp 品牌落地站 · 全局样式系统
   Dark Immersive + High-Saturation Accent
   ========================================= */

/* --- 设计变量 --- */
:root {
  --bg-root: #0a0c10;
  --bg-surface: #11141a;
  --bg-card: #181c24;
  --bg-hover: #212630;
  --text-primary: #e8eaed;
  --text-secondary: #8f95a1;
  --text-tertiary: #6b7280;
  --accent: #00d9a6;
  --accent-glow: rgba(0, 217, 166, 0.18);
  --accent-hover: #00ffb3;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(0, 217, 166, 0.5);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 24px var(--accent-glow);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-condensed: "SF Pro Display", "Noto Sans SC", system-ui, sans-serif;
  --container-max: 1200px;
  --section-py: clamp(4rem, 10vw, 7rem);
  --block-py: clamp(2rem, 5vw, 3.5rem);
}

/* --- 重置与基础 --- */
*, *::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-root);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
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; }

/* --- 排版 --- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
h1, h2, h3, h4 { font-family: var(--font-condensed); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1.5rem; position: relative; padding-left: 1rem; }
h2::before { content: ""; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 4px; background: var(--accent); border-radius: 4px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
.section-desc { font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 720px; margin-bottom: var(--block-py); color: var(--text-secondary); }

/* --- 布局模块 --- */
.grid-auto { display: grid; gap: var(--block-py); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* --- 按钮 --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem; font-weight: 600; font-size: 0.95rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.25s ease; border: 1px solid transparent; outline: none;
}
.btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-glow); }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border-color: var(--border-subtle); }
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--text-tertiary); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* --- 卡片 --- */
.card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: clamp(1.2rem, 2vw, 1.6rem); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(0, 217, 166, 0.3); box-shadow: var(--shadow-card); }
.card-icon { width: 40px; height: 40px; background: var(--bg-hover); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--accent); }

/* --- 表格 --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); background: var(--bg-card); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { background: var(--bg-surface); font-weight: 600; color: var(--text-primary); white-space: nowrap; }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-hover); }

/* --- FAQ (Details/Summary) --- */
.faq-list { display: grid; gap: 1rem; }
details { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.2s; }
details[open] { border-color: var(--border-focus); }
summary {
  padding: 1.1rem 1.3rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  user-select: none; transition: background 0.2s;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 1.2rem; color: var(--text-tertiary); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { background: var(--bg-hover); }
.faq-body { padding: 1.2rem 1.3rem; color: var(--text-secondary); line-height: 1.7; }
.faq-body p { margin: 0; }

/* --- 头部与页脚 --- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10, 12, 16, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-subtle); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav { display: flex; gap: 1.5rem; }
.nav a { font-size: 0.95rem; color: var(--text-secondary); position: relative; padding: 0.2rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-primary); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--accent); border-radius: 2px; }
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); padding: 3rem 0 2rem; margin-top: var(--section-py); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: var(--text-primary); margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { text-align: center; color: var(--text-tertiary); font-size: 0.85rem; border-top: 1px solid var(--border-subtle); padding-top: 1.5rem; }

/* --- SVG 动效核心 --- */
.svg-anim-group { width: 100%; height: 100%; overflow: visible; }
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.float-node { fill: var(--bg-card); stroke: var(--accent); stroke-width: 1.5; }
@keyframes drawLine {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.animate-draw { animation: drawLine 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-float { animation: floatNode 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.delay-1 { animation-delay: 0.4s; }
.delay-2 { animation-delay: 0.8s; }
.delay-3 { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .animate-draw, .animate-float { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* --- 响应式微调 --- */
@media (max-width: 768px) {
  .nav { display: none; } /* 移动端可改为汉堡菜单，此处保持静态简洁 */
  h2::before { width: 3px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
