/* =========================================
   WhatsApp 品牌落地站共享样式系统
   设计变量 / 基础排版 / 通用组件 / SVG动效
   ========================================= */

/* --- 设计变量 --- */
:root {
  --color-bg-base: #F8F9FC;
  --color-surface: #FFFFFF;
  --color-text-primary: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  
  --gradient-warm-start: #F97316;
  --gradient-warm-mid: #FB923C;
  --gradient-warm-end: #FBBF24;
  --gradient-warm: linear-gradient(135deg, var(--gradient-warm-start) 0%, var(--gradient-warm-mid) 50%, var(--gradient-warm-end) 100%);
  
  --color-accent-green: #25D366;
  --color-accent-hover: #128C7E;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.1);
  
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

/* --- 基础重置与排版 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: var(--color-bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: 0.75em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-top: 1.5em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p { margin-bottom: 1em; color: var(--color-text-secondary); }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* 容器 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 节间距 */
.section { padding: 5rem 0; }
.section-alt { background-color: var(--color-surface); }
.section-dark { background-color: var(--color-text-primary); color: #F1F5F9; }
.section-dark p, .section-dark li { color: #CBD5E1; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #F8FAFC; }
@media (min-width: 768px) {
  .section-hero .container { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 1rem;
}
.btn:focus-visible { outline: 2px solid var(--color-accent-green); outline-offset: 3px; }
.btn-primary {
  background: var(--gradient-warm);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-primary);
}
.btn-outline:hover { border-color: var(--color-accent-green); color: var(--color-accent-green); }

/* 头部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.125rem; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.nav-menu { display: flex; gap: 1.5rem; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--color-text-secondary); position: relative; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-primary); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: var(--gradient-warm); border-radius: 2px;
}
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

/* 网格与布局 */
.grid-auto { display: grid; gap: 2rem; }
.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.flex-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }

/* 卡片组件 */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-body { padding-top: 1rem; }
.card-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0.5rem; display: block; }
.card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--color-text-primary); }
.card-desc { font-size: 0.95rem; color: var(--color-text-secondary); margin-bottom: 1rem; }

/* 表格 */
.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: 0; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #F8FAFC; font-weight: 600; color: var(--color-text-primary); }
td { color: var(--color-text-secondary); }
tr:last-child td { border-bottom: none; }

/* 列表标记 (无 Emoji) */
.list-styled { counter-reset: item; }
.list-styled > li { position: relative; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.list-styled > li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 10px; height: 10px;
  border-radius: 50%; background: var(--gradient-warm);
}

/* FAQ / Details */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
summary {
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-size: 1.25rem; color: var(--color-text-muted); transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
.details-content { padding: 0 1.5rem 1.25rem; color: var(--color-text-secondary); line-height: 1.65; }

/* 页脚 */
.site-footer { background: #0B1120; color: #94A3B8; padding: 3rem 0 2rem; font-size: 0.9rem; border-top: 1px solid #1E293B; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: #F1F5F9; margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a:hover { color: #FBBF24; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 1.5rem; text-align: center; color: #64748B; }

/* SVG 动效基类 */
.svg-anim-container { width: 100%; max-width: 100%; overflow: hidden; }
.star-point { fill: #FBBF24; }
.connect-line { fill: none; stroke: url(#grad-warm); stroke-width: 1.5; stroke-linecap: round; pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}
@keyframes drawLine {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
.animate-twinkle { animation: twinkle 4s ease-in-out infinite; }
.animate-draw { animation: drawLine 6s ease-in-out forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-twinkle, .animate-draw { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
}

/* 响应式 */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: var(--header-height); left: 0; width: 100%;
    background: var(--color-surface); flex-direction: column; padding: 1.5rem; border-bottom: 1px solid var(--color-border);
  }
  .nav-menu.open { display: flex; }
  h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .grid-cols-2, .grid-cols-3 { grid-template-columns: 1fr; }
}

/* 兜底：裁掉横向溢出 */
body > * {
  overflow-x: clip;
}
