/* =========================================
   WhatsApp Web 品牌落地站 · 全局样式
   ========================================= */

/* 设计变量 */
:root {
  --bg-base: #0b0b0b;
  --bg-elevated: #161616;
  --bg-card: #1e1e1e;
  --bg-hover: #262626;
  --text-primary: #f2f2f2;
  --text-secondary: #a3a3a3;
  --text-muted: #6b6b6b;
  --accent-gold: #c9a227;
  --accent-gold-hover: #e0b833;
  --accent-gold-subtle: rgba(201, 162, 39, 0.15);
  --border-subtle: rgba(201, 162, 39, 0.25);
  --border-strong: rgba(201, 162, 39, 0.6);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: "Inter", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --container-max: 1240px;
  --gutter: 1.5rem;
  --section-gap: 5.5rem;
}

/* 基础重置与排版 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  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: inherit; text-decoration: none; transition: color 0.2s ease; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* 流体排版 */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--text-primary); letter-spacing: 0.015em; line-height: 1.25; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); text-wrap: balance; margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-wrap: balance; margin-bottom: 1.8rem; position: relative; padding-left: 1.2rem; }
h2::before { content: ""; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 3px; background: var(--accent-gold); border-radius: 2px; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.9rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 600; }

/* 布局容器 */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-gap) 0; position: relative; }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* 导航与页头 */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: rgba(11, 11, 11, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle); padding: 1rem 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 36px; width: auto; object-fit: contain; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; color: var(--text-primary); }
nav ul { display: flex; gap: 1.5rem; flex-wrap: wrap; }
nav a {
  position: relative; padding: 0.4rem 0; font-size: 0.95rem; font-weight: 500; color: var(--text-secondary);
}
nav a:hover, nav a[aria-current="page"] { color: var(--accent-gold); }
nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent-gold); transition: width 0.25s ease;
}
nav a:hover::after, nav a[aria-current="page"]::after { width: 100%; }

/* 按钮组件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-sm); font-weight: 600;
  cursor: pointer; transition: all 0.25s ease; border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent-gold); color: #0b0b0b; border-color: var(--accent-gold);
}
.btn-primary:hover { background: var(--accent-gold-hover); border-color: var(--accent-gold-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(201, 162, 39, 0.35); }
.btn-outline {
  background: transparent; color: var(--accent-gold); border-color: var(--accent-gold);
}
.btn-outline:hover { background: var(--accent-gold-subtle); }
.btn:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }

/* 卡片与列表 */
.card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  padding: 1.8rem; border-radius: var(--radius-md); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-gold); box-shadow: var(--shadow-md); }
.card__icon { width: 48px; height: 48px; margin-bottom: 1.2rem; stroke: var(--accent-gold); fill: none; }
.card__title { font-family: var(--font-serif); font-size: 1.15rem; color: var(--text-primary); margin-bottom: 0.6rem; }
.card__desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

.divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-subtle), transparent); margin: 3rem 0; opacity: 0.6; }

/* 表格 */
.table-wrapper { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 1rem 1.2rem; text-align: left; vertical-align: middle; }
th { background: var(--bg-elevated); color: var(--accent-gold); font-family: var(--font-serif); font-weight: 600; }
td { border-top: 1px solid var(--border-subtle); color: var(--text-secondary); }
tr:hover td { background: var(--bg-hover); color: var(--text-primary); }

/* 问答组件 (Details/Summary) */
.faq-item { margin-bottom: 1rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-card); }
summary {
  padding: 1.1rem 1.2rem; cursor: pointer; font-weight: 600; color: var(--text-primary);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-gold); font-size: 1.4rem; font-weight: 400; transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { background: var(--bg-elevated); }
.faq-item p { padding: 0 1.2rem 1.2rem; margin: 0; color: var(--text-secondary); }

/* 新闻卡片 */
.news-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; display: block; }
.news-title { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 0.6rem; line-height: 1.4; }
.news-excerpt { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 1rem; }
.tag { display: inline-block; font-size: 0.75rem; padding: 0.2rem 0.6rem; background: var(--accent-gold-subtle); color: var(--accent-gold); border-radius: 20px; margin-bottom: 0.8rem; }

/* 锚点与辅助 */
.anchor-target { scroll-margin-top: 80px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* 页脚 */
.footer { background: var(--bg-elevated); border-top: 1px solid var(--border-subtle); padding: 4rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 3rem; }
.footer-col h4 { font-size: 1rem; color: var(--accent-gold); margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent-gold); }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* 响应式适配 */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  h2 { padding-left: 0; margin-bottom: 1.2rem; }
  h2::before { display: none; }
  nav ul { gap: 1rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 0.8rem; }
  table { min-width: 100%; }
}

/* =========================================
   SVG 动效系统
   ========================================= */
.svg-anim-group { transform-box: fill-box; transform-origin: center; }
@keyframes float-layer-1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-layer-2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes float-layer-3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse-opacity { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.hero-card-1 { animation: float-layer-1 5s ease-in-out infinite; }
.hero-card-2 { animation: float-layer-2 6s ease-in-out infinite 0.8s; }
.hero-card-3 { animation: float-layer-3 7s ease-in-out infinite 1.5s; }
.icon-pulse { animation: pulse-opacity 4s ease-in-out infinite; }
.line-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 3s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-card-1, .hero-card-2, .hero-card-3, .icon-pulse { animation: none !important; }
  .line-draw { stroke-dashoffset: 0; animation: none !important; }
}
