/* =========================================
   WhatsApp 品牌落地站 - 全局样式
   设计方向：黑金高级感 + 细线描边 + 衬线标题
   ========================================= */
:root {
  --color-bg: #0b0b0b;
  --color-surface: #141414;
  --color-surface-hover: #1c1c1c;
  --color-border: #262626;
  --color-border-gold: rgba(212, 175, 55, 0.35);
  --color-text: #e8e8e8;
  --color-text-muted: #8a8f96;
  --color-gold: #d4af37;
  --color-gold-light: #f0ce5a;
  --color-gold-dark: #b8922a;
  --color-white: #ffffff;
  --font-heading: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 4px 16px rgba(212, 175, 55, 0.15);
  --transition-base: 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-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-base), border-color var(--transition-base);
}

a:hover, a:focus-visible {
  color: var(--color-gold-light);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-white);
  margin: 0 0 var(--space-sm) 0;
  text-wrap: balance;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; }
p { margin: 0 0 var(--space-sm) 0; max-width: 70ch; }
ul, ol { margin: 0 0 var(--space-sm) 0; padding-left: 1.2em; }
li { margin-bottom: 0.6em; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-header {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.section-desc {
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 65ch;
}

/* 页头 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
}

.logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-base), color var(--transition-base);
}

nav a:hover, nav a[aria-current="page"] {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* 页脚 */
footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
  background: var(--color-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: var(--color-gold);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--color-text-muted); }
.footer-col a:hover { color: var(--color-text); }

.copyright {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}

/* 组件：按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: #0a0a0a;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: #000;
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-gold-light);
}

/* 组件：卡片 */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  border-color: var(--color-border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--color-gold);
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-md { gap: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.text-center { text-align: center; }

/* 表格 */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: rgba(212, 175, 55, 0.08);
  color: var(--color-gold);
  font-weight: 600;
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* FAQ */
details {
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
}

summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-base);
}

summary:hover { background: rgba(255, 255, 255, 0.03); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-gold);
  font-weight: 400;
  transition: transform var(--transition-base);
}

details[open] summary::after { transform: rotate(45deg); }
details > div {
  padding: 0 20px 18px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* SVG 动效关键帧 */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes align-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes draw-path {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

.geo-spin { animation: spin-slow 12s linear infinite; transform-box: fill-box; transform-origin: center; }
.geo-reverse { animation: spin-reverse 14s linear infinite; transform-box: fill-box; transform-origin: center; }
.geo-align { animation: align-pulse 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-path 6s ease forwards; }

@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;
  }
  .geo-spin, .geo-reverse, .geo-align, .draw-line { animation: none !important; }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .header-inner { height: 64px; }
  nav ul { gap: 16px; }
  nav a { font-size: 0.85rem; }
  section { padding: var(--space-lg) 0; }
  h2 { margin-bottom: var(--space-md); }
}

@media (max-width: 480px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .btn { width: 100%; padding: 12px 20px; }
}
