/* =========================================
   WhatsApp 官网共享样式 (style.css)
   主题：冷蓝科技 + 霓虹点缀 / 沉浸氛围
   ========================================= */

/* --- 设计变量 --- */
:root {
  --color-bg-primary: #0B132B;
  --color-bg-secondary: #1C2541;
  --color-bg-card: #232D4A;
  --color-accent-neon: #00E5FF;
  --color-accent-secondary: #00B4D8;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #A8B2D1;
  --color-text-muted: #6C7A96;
  --color-border: rgba(0, 229, 255, 0.2);
  --color-glass: rgba(28, 37, 65, 0.65);
  
  --font-main: 'PingFang SC', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --transition-base: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- 基础排版与重置 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent-neon); text-decoration: none; transition: var(--transition-base); }
a:hover, a:focus-visible { color: #fff; text-shadow: 0 0 8px var(--color-accent-neon); }
img { max-width: 100%; height: auto; display: block; }

/* 流体排版 */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 1.5rem; text-wrap: balance; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); line-height: 1.3; margin-bottom: 0.8rem; }
p { color: var(--color-text-secondary); font-size: clamp(1rem, 1.2vw, 1.125rem); margin-bottom: 1.2rem; }
strong { color: var(--color-text-primary); font-weight: 600; }

/* --- 布局容器 --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1rem, 3vw, 2rem); }

/* --- 按钮 --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 2rem; border-radius: var(--radius-md); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: var(--transition-base); border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-neon), var(--color-accent-secondary));
  color: var(--color-bg-primary); box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 229, 255, 0.5); }
.btn-outline { border-color: var(--color-accent-neon); color: var(--color-accent-neon); background: transparent; }
.btn-outline:hover, .btn-outline:focus-visible { background: rgba(0, 229, 255, 0.1); }

/* --- 头部导航 --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 19, 43, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border); padding: 1rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.8rem; font-weight: 700; font-size: 1.25rem; color: #fff; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.nav-list { list-style: none; display: flex; gap: 2rem; }
.nav-link { color: var(--color-text-secondary); font-weight: 500; position: relative; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-accent-neon); }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--color-accent-neon); transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }

/* --- 卡片与组件 --- */
.card {
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 2rem; transition: var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--color-accent-secondary); }
.card-icon {
  width: 48px; height: 48px; background: rgba(0, 229, 255, 0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--color-accent-neon); stroke-width: 1.5; fill: none; }

/* --- 表格 --- */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
table { width: 100%; border-collapse: collapse; background: var(--color-bg-card); }
th, td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: rgba(0, 229, 255, 0.08); color: var(--color-accent-neon); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  padding: 1.2rem 0; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--color-accent-neon); transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 1.5rem 0; color: var(--color-text-secondary); }

/* --- 页脚 --- */
.site-footer { background: var(--color-bg-secondary); padding: 4rem 0 2rem; margin-top: 4rem; border-top: 1px solid var(--color-border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { color: #fff; margin-bottom: 1.2rem; font-size: 1.1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--color-text-secondary); }
.footer-bottom { text-align: center; color: var(--color-text-muted); font-size: 0.9rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); }

/* --- SVG 动效系统 --- */
.svg-anim-container { width: 100%; max-width: 600px; margin: 0 auto; position: relative; }
svg { overflow: visible; width: 100%; height: auto; }

/* 网格节点依次点亮 */
@keyframes node-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  15% { opacity: 1; transform: scale(1.2); filter: drop-shadow(0 0 6px var(--color-accent-neon)); }
  30% { opacity: 0.3; transform: scale(0.9); }
}
.node { animation: node-pulse 6s infinite ease-in-out; transform-origin: center; }
.node:nth-child(1) { animation-delay: 0.0s; }
.node:nth-child(2) { animation-delay: 0.8s; }
.node:nth-child(3) { animation-delay: 1.6s; }
.node:nth-child(4) { animation-delay: 2.4s; }
.node:nth-child(5) { animation-delay: 3.2s; }

/* 描边绘制动画 */
@keyframes draw-stroke {
  0% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
.draw-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-stroke 8s infinite linear; }
.draw-path-fast { animation-duration: 5s; }

/* 呼吸光晕 */
@keyframes glow-breathe {
  0%, 100% { opacity: 0.4; filter: blur(4px); }
  50% { opacity: 0.8; filter: blur(8px); }
}
.glow-layer { animation: glow-breathe 7s infinite ease-in-out; }

/* 减少动态效果媒体查询 */
@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;
  }
}

/* --- 响应式调整 --- */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 1rem; }
  .nav-list { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }
  /* 防止 Flex/Grid 子项因固有宽度或间隙撑破视口 */
  .grid-2 > *, .grid-3 > *, .hero-actions > * { min-width: 0; }
  h1 { text-align: center; }
  p { text-align: center; overflow-wrap: break-word; }
  .hero-actions { justify-content: center; }
  .btn { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
}

/* 兜底：裁掉横向溢出 */
body > * {
  overflow-x: clip;
}
