/* =========================================
   WhatsApp 品牌站点 · 全局样式与动效系统
   配色：紫粉双色调 + 玻璃层次 | 排版：圆体亲和 + 宽松行距
   ========================================= */
:root {
  /* 色彩系统 */
  --clr-bg: #f5f3ff;
  --clr-bg-alt: #faf5ff;
  --clr-surface: rgba(255, 255, 255, 0.72);
  --clr-surface-hover: rgba(255, 255, 255, 0.88);
  --clr-border: rgba(168, 85, 247, 0.18);
  --clr-border-strong: rgba(168, 85, 247, 0.35);
  --clr-primary-start: #8b5cf6;
  --clr-primary-end: #ec4899;
  --clr-text: #0f172a;
  --clr-text-secondary: #475569;
  --clr-accent: #c026d3;
  --clr-success: #10b981;
  
  /* 空间与圆角 */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* 字体与排版 */
  --font-main: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-h1: clamp(2.4rem, 5.5vw + 0.8rem, 3.75rem);
  --text-h2: clamp(1.8rem, 3.5vw + 0.6rem, 2.6rem);
  --text-h3: clamp(1.3rem, 1.8vw + 0.5rem, 1.5rem);
  --leading-tight: 1.25;
  --leading-normal: 1.75;
  --leading-loose: 1.9;
  
  /* 阴影与玻璃态 */
  --shadow-glass: 0 12px 40px rgba(139, 92, 246, 0.08), 0 4px 16px rgba(236, 72, 153, 0.06);
  --shadow-hover: 0 16px 48px rgba(139, 92, 246, 0.12), 0 6px 20px rgba(236, 72, 153, 0.08);
  --glass-blur: 16px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 40%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul, ol { list-style: none; }

/* 布局容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.section {
  padding-block: var(--space-xxl);
  position: relative;
}
.section-alt { background-color: var(--clr-bg-alt); }
.section-title {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}
.section-desc {
  color: var(--clr-text-secondary);
  font-size: clamp(1.05rem, 1.1vw, 1.2rem);
  max-width: 64ch;
  margin-bottom: var(--space-xl);
  line-height: var(--leading-loose);
}

/* 页头与导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 255, 0.85);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition-fast);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-logo img { height: 36px; width: auto; object-fit: contain; }
.nav-list { display: flex; gap: var(--space-lg); }
.nav-link {
  font-weight: 500;
  color: var(--clr-text-secondary);
  padding: 0.4rem 0;
  position: relative;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--clr-primary-start); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--clr-primary-start), var(--clr-primary-end));
  border-radius: 2px;
}
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-toggle svg { width: 24px; height: 24px; stroke: var(--clr-text); }

/* 按钮与表单 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  font-size: 1rem;
  line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--clr-primary-start); outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(135deg, var(--clr-primary-start), var(--clr-primary-end));
  color: #fff;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(168, 85, 247, 0.45); }
.btn-secondary {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-strong);
  color: var(--clr-text);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: var(--clr-surface-hover); }
.btn-icon { width: 20px; height: 20px; stroke-width: 2; }

/* 卡片与网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  min-width: 0;
}
.glass-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(var(--glass-blur));
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--clr-border-strong);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
  display: grid; place-items: center;
  margin-bottom: var(--space-md);
  color: var(--clr-primary-start);
}
.card-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.card-title { font-size: var(--text-h3); margin-bottom: var(--space-sm); font-weight: 600; }
.card-body { flex: 1; color: var(--clr-text-secondary); line-height: var(--leading-loose); }

/* 表格 */
.table-wrapper { overflow-x: auto; border: 1px solid var(--clr-border); border-radius: var(--radius-md); background: var(--clr-surface); backdrop-filter: blur(12px); min-width: 0; }
.platform-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.platform-table th, .platform-table td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--clr-border); }
.platform-table th { background: rgba(139, 92, 246, 0.06); font-weight: 600; color: var(--clr-text); }
.platform-table tr:last-child td { border-bottom: none; }
.platform-table td { color: var(--clr-text-secondary); }

/* 步骤与列表 */
.step-list { counter-reset: step; display: flex; flex-direction: column; gap: var(--space-md); }
.step-item {
  display: flex; gap: var(--space-md); align-items: flex-start;
  padding: var(--space-md); border-radius: var(--radius-md); background: var(--clr-surface); border: 1px solid var(--clr-border);
  min-width: 0;
}
.step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary-start), var(--clr-primary-end));
  color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.95rem;
  margin-top: 0.15rem;
}
.step-content strong { display: block; margin-bottom: 0.3rem; color: var(--clr-text); }
.step-content p { color: var(--clr-text-secondary); margin: 0; line-height: var(--leading-loose); }

.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-md); }
.related-item { padding: 1rem; border-radius: var(--radius-md); border: 1px solid transparent; background: var(--clr-surface); transition: border-color var(--transition-fast), background var(--transition-fast); }
.related-item:hover { border-color: var(--clr-border-strong); background: var(--clr-surface-hover); }
.related-title { font-weight: 600; margin-bottom: 0.4rem; display: block; }
.related-desc { font-size: 0.95rem; color: var(--clr-text-secondary); line-height: var(--leading-loose); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  padding: 1.1rem 1.3rem; font-weight: 600; cursor: pointer; list-style: none; position: relative;
  display: flex; align-items: center; gap: 0.8rem; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+"; font-size: 1.3rem; color: var(--clr-primary-start); font-weight: 700;
  transition: transform var(--transition-fast); display: inline-block;
}
.faq-item[open] summary::before { transform: rotate(45deg); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--clr-text-secondary); line-height: var(--leading-loose); }

/* 页脚 */
.site-footer { background: #0f172a; color: #cbd5e1; padding-block: var(--space-xl); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-xl); margin-bottom: var(--space-xl); }
.footer-heading { color: #fff; font-weight: 600; margin-bottom: var(--space-md); }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-lg); text-align: center; color: #94a3b8; }

/* SVG 动效系统 */
.svg-anim-line {
  path {
    pathLength: 1;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    fill: none;
    stroke: var(--clr-primary-start);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  @keyframes drawStroke {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
  }
  @keyframes breatheSlow {
    0%, 100% { stroke-width: 2; opacity: 1; }
    50% { stroke-width: 2.5; opacity: 0.85; }
  }
  .svg-anim-line path.draw {
    animation: drawStroke 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards, breatheSlow 4s ease-in-out 2.4s infinite;
  }
  .svg-anim-line path.delay-1 { animation-delay: 0.3s, 2.7s; }
  .svg-anim-line path.delay-2 { animation-delay: 0.6s, 3s; }
  .svg-anim-line path.delay-3 { animation-delay: 0.9s, 3.3s; }
  .svg-anim-line .fill-accent { fill: url(#grad-purple-pink); stroke: none; }
  .svg-anim-line .stroke-accent { stroke: var(--clr-primary-end); }
  .svg-anim-line { width: 100%; max-width: 480px; margin: 0 auto; }
}

/* 响应式 */
@media (max-width: 420px) {
  .btn {
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .nav-list { display: none; }
  .mobile-toggle { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr !important; }
}
@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;
  }
  .svg-anim-line path { animation: none !important; }
}

/* 兜底：裁掉横向溢出 */
body > * {
  overflow-x: clip;
}
