/* =========================================
   WhatsApp 品牌落地站 · 全局共享样式
   ========================================= */

/* 0. 设计变量 */
:root {
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-primary: #25D366;
  --color-warm-start: #FF9A8B;
  --color-warm-end: #FECFEF;
  --color-gradient-hero: linear-gradient(135deg, rgba(255,154,139,0.08) 0%, rgba(37,211,102,0.06) 100%);
  --color-text: #111827;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-focus: #25D366;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
  --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. 基础重置与排版 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* 流体字号 */
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; }
p { margin-top: 0; margin-bottom: var(--space-sm); }
small { font-size: 0.875em; color: var(--color-muted); }

/* 容器 */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.section-padding { padding: var(--space-xl) 0; }
.bg-white { background-color: var(--color-surface); }
.bg-gradient { background: var(--color-gradient-hero); position: relative; overflow: hidden; }

/* 排版工具类 */
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }
.accent-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-warm-start);
  background: rgba(255,154,139,0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  margin-bottom: var(--space-xs);
}

/* 2. 组件：按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,211,102,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,211,102,0.35); }
.btn-primary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn-outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* 3. 组件：卡片 */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,211,102,0.08);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.card-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }

/* 4. 组件：表格 */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { font-weight: 600; background: rgba(0,0,0,0.02); font-size: 0.9rem; color: var(--color-muted); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(37,211,102,0.03); }

/* 5. 组件：FAQ */
.faq-list details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  background: var(--color-surface);
  overflow: hidden;
}
.faq-list summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  position: relative;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute; right: 1.25rem; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition-base);
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details[open] summary { border-bottom: 1px solid var(--color-border); }
.faq-list .faq-answer { padding: 1rem 1.25rem; color: var(--color-muted); line-height: 1.7; }
.faq-list summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }

/* 6. 页头与导航 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 32px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: var(--space-md); }
.nav-links a { font-size: 0.95rem; color: var(--color-muted); font-weight: 500; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px;
  background: var(--color-primary); border-radius: 1px;
}
.mobile-menu-btn { display: none; }

/* 7. SVG 动效体系 */
.contour-svg { width: 100%; height: 300px; position: absolute; inset: 0; pointer-events: none; opacity: 0.6; }
.contour-path {
  fill: none;
  stroke: url(#warmGradient);
  stroke-width: 1.5;
  stroke-linecap: round;
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: contourFlow 8s linear infinite;
}
.contour-path:nth-child(even) { animation-duration: 10s; stroke-width: 1; opacity: 0.7; }
.contour-path.delay-1 { animation-delay: -2s; }
.contour-path.delay-2 { animation-delay: -5s; }
@keyframes contourFlow {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .contour-path { animation: none; }
  .feature-grid, .scene-list { animation: none !important; }
}

/* 8. 响应式适配 */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .split-layout { flex-direction: column; gap: var(--space-md); }
  .split-media { order: -1; }
}
@media (min-width: 901px) {
  .split-layout { display: flex; align-items: center; gap: var(--space-lg); }
  .split-text { flex: 1.2; }
  .split-media { flex: 1; }
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); }

/* 页脚 */
.site-footer { background: #111827; color: #9CA3AF; padding: var(--space-lg) 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); margin-bottom: var(--space-md); }
.footer-col h4 { color: #fff; margin-bottom: var(--space-sm); font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a:hover { color: #fff; }
.copyright { text-align: center; border-top: 1px solid #1F2937; padding-top: var(--space-md); font-size: 0.85rem; }
