/* =========================================
   WhatsApp 官网共享样式表
   浅色编辑风 + 克制中性灰阶 | 衬线标题 + 无衬线正文
   ========================================= */
:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text-primary: #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-accent: #0d6efd;
  --color-accent-hover: #0b5ed7;
  --color-success: #108866;
  --color-highlight: #f3f4f6;

  --font-serif: "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.08);

  --container-width: 1140px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  --transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: var(--transition-base); }
button, input, select, textarea { font: inherit; color: inherit; }

/* Focus & Accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); text-wrap: balance; margin-bottom: var(--space-sm); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); text-wrap: balance; margin-bottom: var(--space-md); position: relative; }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); text-wrap: balance; margin-bottom: var(--space-xs); }
p { margin-bottom: var(--space-sm); color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.section-desc { max-width: 720px; margin-bottom: var(--space-lg); font-size: 1.05rem; }

/* Layout */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 var(--space-md); }
section { padding: var(--space-xl) 0; border-bottom: 1px solid var(--color-border); }
section:last-of-type { border-bottom: none; }

/* Header & Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  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: var(--space-xs); }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand span { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; color: var(--color-text-primary); }
nav ul { display: flex; gap: var(--space-md); list-style: none; }
nav a { font-size: 0.95rem; font-weight: 500; color: var(--color-text-secondary); padding: 0.25rem 0; position: relative; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-accent); }
nav a[aria-current="page"]::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--color-accent); border-radius: 1px;
}
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 1rem; cursor: pointer;
  transition: var(--transition-base); 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-sm); }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-text-primary); }
.btn-outline:hover { border-color: var(--color-text-muted); background: var(--color-highlight); }
.btn-link { background: none; color: var(--color-accent); padding: 0; border: none; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }

/* Cards & Grid */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.card {
  background: var(--color-surface); padding: var(--space-md);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  transition: var(--transition-base);
}
.card:hover { border-color: var(--color-text-muted); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon { width: 40px; height: 40px; margin-bottom: var(--space-sm); color: var(--color-accent); }
.news-card { position: relative; }
.news-date { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: var(--space-xs); display: block; }
.news-summary { margin-bottom: var(--space-sm); font-size: 0.95rem; }

/* Table */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; 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: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-highlight); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  padding: 1.25rem; cursor: pointer; font-weight: 500;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.2rem; font-weight: 300; transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.25rem 1.25rem; margin: 0; font-size: 0.95rem; }

/* Download Section */
.download-zone { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); text-align: center; }
.download-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); margin-bottom: var(--space-lg); counter-reset: step; }
.step-item { flex: 1; min-width: 200px; text-align: left; padding-left: 2.5rem; position: relative; }
.step-item::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2rem; height: 2rem;
  background: var(--color-accent); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem;
}
.install-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: var(--space-sm); }

/* Footer */
.site-footer { background: var(--color-surface); padding: var(--space-lg) 0; border-top: 1px solid var(--color-border); margin-top: var(--space-xl); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); }
.footer-links { display: flex; gap: var(--space-md); list-style: none; font-size: 0.9rem; }
.copyright { font-size: 0.85rem; color: var(--color-text-muted); }

/* SVG Animation System */
.svg-animation-container { position: relative; width: 100%; max-width: 600px; margin: 0 auto; aspect-ratio: 1 / 1; }
.orbit-ring { transform-box: fill-box; transform-origin: center; }
.draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }

@keyframes orbitBreathe {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.06); opacity: 0.8; }
}
@keyframes drawStroke {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(13,110,253,0.1)); }
  50% { filter: drop-shadow(0 0 8px rgba(13,110,253,0.3)); }
}

.anim-orbit-1 { animation: orbitBreathe 6s ease-in-out infinite; }
.anim-orbit-2 { animation: orbitBreathe 8s ease-in-out infinite reverse; }
.anim-draw { animation: drawStroke 5s ease-in-out infinite alternate; }
.anim-pulse { animation: pulseGlow 4s ease-in-out infinite; }

@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;
  }
  .anim-orbit-1, .anim-orbit-2, .anim-draw, .anim-pulse {
    animation: none !important;
    opacity: 0.7; transform: none !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  nav { display: none; }
  .mobile-toggle { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
