/* =========================================
   WhatsApp 品牌站共享样式 v1.0
   配色方向：紫粉双色调 + 玻璃层次
   字体搭配：圆体亲和 + 宽松行距
   ========================================= */

/* --- 设计变量 --- */
:root {
  --bg-base: #0c0914;
  --bg-surface: #161024;
  --bg-elevated: #21183a;
  
  --primary-start: #8b5cf6;
  --primary-end: #ec4899;
  --accent: #a78bfa;
  
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --font-stack: system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --container-max: 1200px;
  --section-gap: clamp(3rem, 6vw, 6rem);
}

/* --- 基础重置 --- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-stack);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* --- 排版系统 --- */
h1, h2, h3, h4 { letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; background: linear-gradient(135deg, var(--text-main), var(--accent)); -webkit-background-clip: text; background-clip: text; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; margin-bottom: 1.5rem; color: var(--text-main); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }
.section { padding: var(--section-gap) 0; position: relative; }
.section-header { margin-bottom: 3rem; text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-desc { font-size: 1.1rem; color: var(--text-muted); }

/* --- 通用组件 --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: none; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none; user-select: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  color: #fff; box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-primary:active { transform: translateY(0); }
.btn-glass {
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-main);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,0.12); }

.card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 1.5rem; backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.4); box-shadow: var(--glass-shadow); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

/* --- 页头与导航 --- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 9, 20, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 110px; height: 30px; object-fit: contain; }
.nav { display: flex; gap: 1.5rem; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); padding: 0.4rem 0; position: relative; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text-main); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
}
.mobile-toggle { display: none; background: none; border: none; color: var(--text-main); cursor: pointer; }

/* --- 表格样式 --- */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--glass-border); background: var(--glass-bg); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--glass-border); }
th { background: rgba(255,255,255,0.04); font-weight: 600; color: var(--text-main); }
td { color: var(--text-muted); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-md); overflow: hidden; }
.summary {
  padding: 1.25rem; font-weight: 600; cursor: pointer; position: relative;
  list-style: none; color: var(--text-main); transition: background 0.2s;
}
.summary::-webkit-details-marker { display: none; }
.summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; color: var(--accent); transition: transform 0.3s;
}
details[open] .summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-content { padding: 0 1.25rem 1.25rem; color: var(--text-muted); line-height: 1.7; }

/* --- 列表与步骤 --- */
.styled-list { padding-left: 1.2rem; list-style: disc; color: var(--text-muted); }
.styled-list li { margin-bottom: 0.6rem; }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step-card { position: relative; padding-top: 2.5rem; }
.step-card::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem;
}

/* --- SVG 图标与动效 --- */
.icon-svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svg-anim-container { position: relative; width: 100%; max-width: 500px; margin: 0 auto; }
.draw-path {
  pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: drawStroke 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.pulse-node { animation: pulseNode 4s infinite alternate ease-in-out; transform-box: fill-box; transform-origin: center; }
.float-layer { animation: floatLayer 6s infinite alternate ease-in-out; transform-box: fill-box; transform-origin: center; }

@keyframes drawStroke {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pulseNode {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.05); opacity: 1; }
}
@keyframes floatLayer {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
@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; }
  .draw-path, .pulse-node, .float-layer { animation: none !important; }
}

/* --- 响应式 --- */
@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .header-inner { padding: 0 1rem; }
}

/* --- 底部装饰 --- */
.footer { border-top: 1px solid var(--glass-border); padding: 3rem 0 1.5rem; background: rgba(0,0,0,0.2); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: var(--text-main); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; color: var(--text-subtle); font-size: 0.85rem; border-top: 1px solid var(--glass-border); padding-top: 1.5rem; }
