/* =========================================
   WhatsApp 品牌落地站 · 全局样式系统
   设计语言：紫粉双色调 / 玻璃拟态 / 亲和排版
   ========================================= */
:root {
  /* 色彩体系 */
  --color-primary: #8B5CF6;
  --color-primary-dark: #7C3AED;
  --color-secondary: #EC4899;
  --color-accent: #F472B6;
  --color-bg: #F8F9FC;
  --color-surface: rgba(255, 255, 255, 0.72);
  --color-glass: rgba(255, 255, 255, 0.38);
  --color-border: rgba(139, 92, 246, 0.15);
  --color-text: #1F2937;
  --color-text-muted: #6B7280;
  --color-success: #10B981;

  /* 排版与间距 */
  --font-main: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --container-max: 1120px;
  --section-pad-y: 5.5rem;
  --header-h: 68px;

  /* 阴影与光效 */
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
  --shadow-elevated: 0 12px 28px rgba(139, 92, 246, 0.18), 0 4px 10px rgba(236, 72, 153, 0.12);
  --glow-primary: 0 0 24px rgba(139, 92, 246, 0.25);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 基础排版 */
h1, h2, h3, h4, h5 {
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin-bottom: 0.8rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; color: #374151; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover, a:focus-visible { color: var(--color-secondary); }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* 布局容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}
section {
  padding: var(--section-pad-y) 0;
  position: relative;
}
.section-header {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.text-center { text-align: center; }

/* 玻璃拟态卡片 */
.glass-card {
  background: var(--color-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
}

/* 按钮组件 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
  user-select: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.45);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--color-primary);
  color: #fff;
}

/* 网格系统 */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

@media (max-width: 640px) {
  nav ul {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* 表格样式 */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  backdrop-filter: blur(8px);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
th, td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid #E5E7EB;
  text-align: left;
  vertical-align: middle;
}
th {
  font-weight: 600;
  background: rgba(139, 92, 246, 0.06);
  color: var(--color-text);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.6); }

/* 页头导航 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 252, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  height: var(--header-h);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}
.brand img { height: 34px; width: auto; object-fit: contain; }
nav ul { display: flex; gap: 1.6rem; }
nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 0.4rem 0;
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.25s ease;
}
nav a:hover, nav [aria-current="page"] { color: var(--color-primary); }
nav [aria-current="page"]::after { width: 100%; }

/* 页脚 */
footer {
  background: #F3F4F6;
  padding: 4rem 0 2rem;
  margin-top: 4.5rem;
  border-top: 1px solid #E5E7EB;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 { margin-bottom: 1rem; color: var(--color-text); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--color-text-muted); font-size: 0.9rem; }
.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #9CA3AF;
  border-top: 1px solid #E5E7EB;
  padding-top: 1.5rem;
}

/* 可访问性 */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================
   SVG 动效系统
   ========================================= */
.svg-anim-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
}
.hero-svg, .feature-svg, .process-svg {
  width: 100%;
  height: auto;
  max-width: 420px;
}
.draw-ring, .draw-path, .arc-move {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.draw-ring {
  animation: drawRing 5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
.arc-move {
  animation: arcAdvance 6s cubic-bezier(0.25, 0.8, 0.25, 1) infinite alternate;
}
.pulse-core {
  animation: corePulse 4s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes drawRing {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes arcAdvance {
  0% { stroke-dashoffset: 0.85; opacity: 0.6; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes corePulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.05); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}
