/* =========================================
   WhatsApp 品牌落地站 - 全局共享样式
   ========================================= */

:root {
  /* 色彩系统：黑金高级感 + 细线描边 */
  --color-bg: #08080a;
  --color-surface: #111116;
  --color-surface-hover: #1a1a22;
  --color-border: rgba(212, 175, 55, 0.25);
  --color-border-strong: rgba(212, 175, 55, 0.6);
  --color-gold: #d4af37;
  --color-gold-light: #f2d570;
  --color-gold-dark: #a88b2e;
  --color-text: #eaeaed;
  --color-text-muted: #9a9aa6;
  --color-accent: #25d366; /* WhatsApp 品牌绿点缀 */
  
  /* 排版系统 */
  --font-heading: 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1rem);
  --space-md: clamp(1rem, 2vw, 1.5rem);
  --space-lg: clamp(1.5rem, 3vw, 2.5rem);
  --space-xl: clamp(2rem, 4vw, 4rem);
  --space-xxl: clamp(3rem, 6vw, 6rem);
  
  /* 布局参数 */
  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 排版 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin-bottom: var(--space-sm); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-bottom: var(--space-xs); }

p { margin-bottom: var(--space-sm); color: var(--color-text); }
strong { font-weight: 600; color: var(--color-gold-light); }

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-base);
}
a:hover { color: var(--color-gold-light); text-decoration: underline; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  margin-top: var(--space-sm);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  text-decoration: none;
  gap: 0.6rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #000;
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--color-border-strong);
  text-decoration: none;
}

/* 卡片 */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.grid-auto {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

/* 表格 */
.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;
  font-size: 0.95rem;
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
th {
  background: rgba(212, 175, 55, 0.08);
  font-weight: 600;
  color: var(--color-gold-light);
  white-space: nowrap;
}
td { color: var(--color-text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* FAQ */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  background: var(--color-surface);
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-base);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--color-gold);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform var(--transition-base);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover {
  background: rgba(212, 175, 55, 0.05);
}
.faq-item p {
  padding: 0 1.2rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* 页头页脚 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
}
.brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.nav {
  display: flex;
  gap: var(--space-md);
}
.nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--color-gold);
  text-decoration: none;
}
.nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-text-muted);
}
.footer-meta {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.7;
}

/* 焦点与无障碍 */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
@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;
  }
  svg { animation: none !important; }
}

/* =========================================
   SVG 动效体系
   ========================================= */
.svg-geom {
  width: 100%;
  height: auto;
  max-width: 400px;
  overflow: visible;
}
.svg-anim-rotate {
  transform-box: fill-box;
  transform-origin: center;
  animation: rotate-slow 12s linear infinite;
}
.svg-anim-rotate-reverse {
  transform-box: fill-box;
  transform-origin: center;
  animation: rotate-reverse 15s linear infinite;
}
.svg-anim-assemble {
  transform-box: fill-box;
  transform-origin: center;
  animation: assemble-pulse 8s ease-in-out infinite;
}
.svg-anim-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-line 6s ease-in-out infinite;
}

@keyframes rotate-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes rotate-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}
@keyframes assemble-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50% { transform: scale(1.08) rotate(4deg); opacity: 1; }
}
@keyframes draw-line {
  0%, 100% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: var(--space-sm); }
  .nav { flex-wrap: wrap; justify-content: center; }
  .section { padding: var(--space-lg) 0; }
}
