/* 设计变量 */
:root {
  --color-brand: #25D366;
  --color-brand-hover: #1da851;
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-text: #111827;
  --color-text-secondary: #4b5563;
  --color-border: #e5e7eb;
  --color-accent-light: #ecfdf5;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
  --font-main: "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --container-max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.75;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* 排版与容器 */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); font-weight: 600; margin: 0 0 1rem; color: var(--color-text); }
h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; color: var(--color-text-secondary); }
a { color: var(--color-brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-brand-hover); }
img { display: block; max-width: 100%; height: auto; }

/* 布局区块 */
section { padding: 4.5rem 0; }
.section-header { margin-bottom: 2.5rem; }
.section-header p { max-width: 720px; margin-top: 0.5rem; }

/* 导航与页头 */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; font-size: 1.125rem; color: var(--color-text); text-decoration: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
nav a { padding: 0.5rem 0; color: var(--color-text-secondary); font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-brand); }

/* 页脚 */
.site-footer { background: var(--color-text); color: #d1d5db; padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #9ca3af; }
.footer-col a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #374151; font-size: 0.875rem; color: #6b7280; }

/* 组件：按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; font-size: 1rem; }
.btn-primary { background: var(--color-brand); color: #fff; }
.btn-primary:hover { background: var(--color-brand-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-text); background: #f3f4f6; }

/* 组件：卡片 */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-card); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* 表格 */
.table-wrapper { 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: 0.875rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #f9fafb; font-weight: 600; color: var(--color-text); }
td { color: var(--color-text-secondary); }
tr:last-child td { border-bottom: none; }

/* 列表与步骤 */
.step-list { counter-reset: step; list-style: none; padding: 0; }
.step-list li { position: relative; padding-left: 2.5rem; margin-bottom: 1rem; counter-increment: step; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.75rem; height: 1.75rem; background: var(--color-accent-light); color: var(--color-brand); font-weight: 700; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--color-text-secondary); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.45rem; width: 6px; height: 6px; background: var(--color-brand); border-radius: 50%; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary { padding: 1rem 0; cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 2rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-weight: 300; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 0.75rem; padding-bottom: 0.5rem; }

/* 网格布局 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* 焦点状态 */
:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }

/* SVG 动效基础 */
.svg-anim-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes wave-draw { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes wave-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.wave-line { animation: wave-draw 6s linear infinite alternate, wave-float 4s ease-in-out infinite alternate; }
.wave-line:nth-child(2) { animation-delay: -2s; --delay-y: 3px; transform: translateY(3px); }
.wave-line:nth-child(3) { animation-delay: -4s; --delay-y: 6px; transform: translateY(6px); }
@media (prefers-reduced-motion: reduce) { .wave-line, svg path { animation: none !important; transform: none !important; } }

/* 移动端适配微调 */
@media (max-width: 640px) {
  .header-inner nav ul { display: none; }
  section { padding: 3rem 0; }
  h1 { font-size: 2rem; }
}
