/* =========================================
   WhatsApp Web 全站共享样式
   视觉系统：午夜蓝 + 暖橙强调 | 科技质感 | 满屏视觉+浮层文字
   ========================================= */

:root {
  --color-bg: #020c1b;
  --color-surface: #0a192f;
  --color-surface-elevated: #112240;
  --color-primary: #ff6b35;
  --color-primary-hover: #ff8c5a;
  --color-text: #e6f1ff;
  --color-text-secondary: #8892b0;
  --color-border: #233554;
  --color-success: #64ffda;
  --color-overlay: rgba(2, 12, 27, 0.85);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --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;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover, a:focus-visible {
  color: var(--color-primary-hover);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: var(--space-lg); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; margin-bottom: var(--space-sm); }
p { margin-bottom: var(--space-md); color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-secondary); font-size: 0.875rem; }

.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}
.section--alt {
  background-color: var(--color-surface);
}

/* Header & Footer */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-overlay);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
}
.brand img {
  height: 32px;
  width: auto;
}
.nav-list {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}
.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: var(--space-xs) 0;
  position: relative;
}
.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--color-text);
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
}

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-2xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: var(--space-sm);
}
.footer-links a {
  color: var(--color-text-secondary);
}
.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

/* Components: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  font-size: 1rem;
}
.btn-primary {
  background: var(--color-primary);
  color: #000;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: rgba(255, 107, 53, 0.1);
}

/* Components: Cards */
.card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition-base), border-color var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}
.icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}
.icon-box svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Components: Tables */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
th {
  background: var(--color-surface-elevated);
  color: var(--color-text);
  font-weight: 600;
}
td {
  color: var(--color-text-secondary);
}
tr:last-child td {
  border-bottom: none;
}

/* Components: FAQ / Details */
.faq-list {
  display: grid;
  gap: var(--space-md);
}
details {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: border-color var(--transition-fast);
}
details[open] {
  border-color: var(--color-primary);
}
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}
details[open] summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  margin-top: var(--space-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Lists Custom */
.list-custom {
  list-style: none;
  padding-left: 0;
}
.list-custom li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
}
.list-custom li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* Grid Utilities */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-lg); }

/* SVG Animation Classes */
.wave-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.wave-1 { stroke: var(--color-primary); opacity: 0.8; }
.wave-2 { stroke: var(--color-text-secondary); opacity: 0.4; }
.wave-3 { stroke: var(--color-border); opacity: 0.3; }

@keyframes float-wave-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float-wave-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes float-wave-3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.anim-wave-1 { animation: float-wave-1 6s ease-in-out infinite; }
.anim-wave-2 { animation: float-wave-2 7s ease-in-out infinite -2s; }
.anim-wave-3 { animation: float-wave-3 5s ease-in-out infinite -1s; }

.draw-path {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
@keyframes draw-stroke {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
.animate-draw {
  animation: draw-stroke 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;
    scroll-behavior: auto !important;
  }
  .anim-wave-1, .anim-wave-2, .anim-wave-3, .animate-draw {
    animation: none !important;
  }
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .nav-list { display: none; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
