/* =========================================
   WhatsApp 品牌落地站 · 全局共享样式
   ========================================= */

/* 设计变量 */
:root {
  /* 莫兰迪低饱和配色 */
  --color-primary: #6B9080;
  --color-primary-hover: #5A7D6D;
  --color-secondary: #A4C3B2;
  --color-accent: #EAF4F4;
  --color-bg: #FDFCF8;
  --color-surface: #FFFFFF;
  --color-border: #E2E8F0;
  --color-text: #2C3034;
  --color-text-muted: #5A6270;
  --color-link: #4A6B6A;
  
  /* 排版 */
  --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Consolas', monospace;
  
  /* 间距与尺寸 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-xxl: 96px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置与流体排版 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; width: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-link); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--color-primary); }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: var(--space-md); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: var(--space-lg); position: relative; padding-bottom: 16px; }
h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background: var(--color-secondary); border-radius: 2px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: var(--space-sm); }
p { margin-bottom: var(--space-sm); color: var(--color-text-muted); }
strong { color: var(--color-text); font-weight: 600; }
p, li, td, th { overflow-wrap: break-word; word-wrap: break-word; }

/* 布局容器 */
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-md); }
section { padding: var(--space-xxl) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* 头部导航 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 252, 248, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; color: var(--color-text); }
.nav-list { display: flex; gap: 32px; }
.nav-item { font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0; }
.nav-item::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-primary); transition: width var(--transition-base); }
.nav-item:hover::after, .nav-item[aria-current="page"]::after { width: 100%; }
.nav-item[aria-current="page"] { color: var(--color-primary); font-weight: 600; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-nav { display: none; background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: 16px; }
.mobile-nav.active { display: block; }

/* 按钮系统 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-weight: 600; font-size: 1rem; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all var(--transition-base);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 4px 12px rgba(107, 144, 128, 0.25); }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(107, 144, 128, 0.35); }
.btn-outline { background: transparent; border: 1.5px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-accent); }

/* 卡片与网格 */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 28px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon { width: 48px; height: 48px; margin-bottom: var(--space-sm); color: var(--color-primary); }
.card-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 12px; display: block; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-accent); font-weight: 600; color: var(--color-text); }
td { color: var(--color-text-muted); }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition-base);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--color-accent); }
.faq-item[open] summary { border-bottom: 1px solid var(--color-border); }
.faq-answer { padding: 16px 20px; color: var(--color-text-muted); line-height: 1.7; }
.faq-arrow { transition: transform var(--transition-base); }
.faq-item[open] .faq-arrow { transform: rotate(180deg); }

/* SVG 动效基础 */
.svg-flow { width: 100%; height: auto; overflow: visible; }
.flow-path { fill: none; stroke: var(--color-secondary); stroke-width: 2; stroke-linecap: round; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawLine 6s linear infinite; }
.dot-flow { fill: var(--color-primary); opacity: 0; animation: moveDot 8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.dot-flow.delay-1 { animation-delay: 2s; }
.dot-flow.delay-2 { animation-delay: 4s; }
.dot-flow.delay-3 { animation-delay: 6s; }

/* 减少动效适配 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flow-path { stroke-dashoffset: 0 !important; }
  .dot-flow { opacity: 0.6 !important; transform: none !important; }
}

/* 页脚 */
.site-footer { background: #F4F6F7; border-top: 1px solid var(--color-border); padding: 48px 0 24px; margin-top: var(--space-xxl); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 16px; color: var(--color-text); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--color-text-muted); }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--color-border); font-size: 0.85rem; color: var(--color-text-muted); }

/* 响应式调整 */
@media (max-width: 768px) {
  .nav-list { display: none; }
  .mobile-toggle { display: block; }
  section { padding: var(--space-xl) 0; }
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-layout { grid-template-columns: 1fr !important; gap: 24px; }
  .mock-screen {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px;
    right: auto !important;
    bottom: auto !important;
  }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
