/* =========================================
   WhatsApp 品牌站全局样式
   浅色编辑风 · 克制灰阶 · 响应式排版
   ========================================= */

:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-text: #1d1d1f;
  --color-text-secondary: #4a4a4c;
  --color-text-muted: #6e6e73;
  --color-accent: #007a5e;
  --color-accent-hover: #005f48;
  --color-border: #e5e5ea;
  --color-border-light: #f0f0f5;
  --color-focus: #00a884;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.08);
  --font-serif: "Noto Serif SC", "Source Han Serif CN", Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --container-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* 排版流体缩放 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: #111;
  line-height: 1.2;
  text-wrap: balance;
  margin-top: 0;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: var(--space-sm); }
p { margin-top: 0; margin-bottom: var(--space-sm); }
strong { font-weight: 600; color: #000; }

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }

/* 布局容器 */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* 头部与导航 */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: var(--space-sm); font-family: var(--font-serif); font-weight: 600; color: #000; }
.brand img { height: 28px; width: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-md); }
.nav-link { font-size: 0.95rem; color: var(--color-text-secondary); padding: 0.5rem 0; position: relative; }
.nav-link[aria-current="page"], .nav-link:hover { color: #000; text-decoration: none; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--color-accent); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 500;
  transition: all 0.2s ease; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-card); text-decoration: none; }
.btn-outline { background: transparent; color: var(--color-accent); border-color: var(--color-border); }
.btn-outline:hover { background: #f5f5f7; text-decoration: none; }

/* 卡片与模块 */
.card { background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); padding: var(--space-lg); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: var(--space-xs); display: block; }
.section-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: var(--space-sm); display: block; }

/* 表格 */
.table-wrapper { overflow-x: auto; margin: var(--space-md) 0; border-radius: var(--radius-md); border: 1px solid var(--color-border-light); }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border-light); }
th { background: #fafafa; font-weight: 600; color: var(--color-text-secondary); }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-item { border: 1px solid var(--color-border-light); border-radius: var(--radius-md); margin-bottom: var(--space-sm); background: var(--color-surface); }
.faq-item details { padding: 0; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: var(--space-md); font-weight: 500; position: relative;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--color-text-muted); transition: transform 0.2s; }
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 var(--space-md) var(--space-md); color: var(--color-text-secondary); line-height: 1.6; }

/* SVG 基础与动效 */
.svg-container { width: 100%; max-width: 800px; margin: 0 auto; }
svg { width: 100%; height: auto; display: block; }
.wave-path { fill: none; stroke: var(--color-accent); stroke-width: 1.5; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes flow-draw {
  to { stroke-dashoffset: 1; }
}
.animate-wave { animation: flow-draw 6s ease-in-out infinite alternate; }
.pulse-ring { fill: none; stroke: var(--color-accent); opacity: 0.4; transform-origin: center; transform-box: fill-box; }
@keyframes pulse-scale {
  0%, 100% { transform: scale(0.95); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.6; }
}
.animate-pulse { animation: pulse-scale 5s ease-in-out infinite; }

/* 媒体查询 */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-list { position: fixed; top: 64px; left: 0; right: 0; background: var(--color-surface); flex-direction: column; padding: var(--space-md); border-bottom: 1px solid var(--color-border); transform: translateY(-110%); transition: transform 0.3s ease; }
  .nav-list.open { transform: translateY(0); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-wave, .animate-pulse { animation: none !important; }
  .card:hover { transform: none; box-shadow: var(--shadow-card); }
}
