/* ==========================================================================
   GW树洞 - 全局样式
   设计语言：深色科技风，青紫渐变高光，玻璃拟态卡片
   ========================================================================== */

:root {
  --bg: #090c16;
  --bg-alt: #0d1226;
  --bg-soft: #0f1530;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0fa;
  --text-muted: #9aa3c2;
  --text-faint: #6b7396;
  --accent: #29e0d6;
  --accent-2: #8b5cf6;
  --accent-3: #f472b6;
  --accent-grad: linear-gradient(135deg, #29e0d6 0%, #7c6bf0 55%, #a855f7 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(41, 224, 214, 0.16), rgba(139, 92, 246, 0.16));
  --success: #34d399;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --container: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: radial-gradient(1200px 800px at 85% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(1000px 700px at -10% 20%, rgba(41, 224, 214, 0.14), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-grad-soft);
  border: 1px solid rgba(41, 224, 214, 0.28);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.18;
}

h2 {
  font-size: clamp(26px, 3.6vw, 38px);
}

h3 {
  font-size: 20px;
}

.section-head p {
  color: var(--text-muted);
  margin-top: 14px;
  font-size: 16px;
}

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-grad);
  color: #061014;
  box-shadow: 0 12px 30px -10px rgba(124, 107, 240, 0.65);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(124, 107, 240, 0.8);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(9, 12, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 168px 0 110px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy p.lead {
  color: var(--text-muted);
  font-size: 18px;
  margin: 20px 0 30px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tags span {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
}

.hero-visual .glow {
  position: absolute;
  inset: -60px;
  background: var(--accent-grad);
  filter: blur(90px);
  opacity: 0.35;
  z-index: -1;
  border-radius: 50%;
}

/* ---------- 信任指标 ---------- */
.stats-bar {
  padding: 0 0 40px;
  margin-top: -40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  backdrop-filter: blur(10px);
}

.stat {
  text-align: center;
}

.stat .num {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .label {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
}

/* ---------- 卡片通用 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

/* ---------- 特性网格 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-grad-soft);
  border: 1px solid rgba(41, 224, 214, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card .icon-wrap img {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ---------- 全球节点 ---------- */
.nodes-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.region-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}

.region-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14.5px;
}

.region-item b {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.region-item span {
  color: var(--text-faint);
}

.region-item .count {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- 价格 ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pricing-grid.full {
  grid-template-columns: repeat(3, 1fr);
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(41, 224, 214, 0.05));
}

.price-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--accent-grad);
  color: #061014;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
}

.price-card .plan-name {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.price-card .plan-price {
  margin: 12px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-card .plan-price .amount {
  font-size: 40px;
  font-weight: 800;
}

.price-card .plan-price .unit {
  color: var(--text-muted);
  font-size: 14px;
}

.price-card .plan-desc {
  color: var(--text-faint);
  font-size: 13.5px;
  margin-bottom: 22px;
}

.price-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
  flex: 1;
}

.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.price-card li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

/* ---------- 评价 ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card .stars {
  color: #fbbf24;
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-card p.quote {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.testimonial-user b {
  display: block;
  font-size: 14px;
}

.testimonial-user span {
  color: var(--text-faint);
  font-size: 12.5px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-category {
  margin-bottom: 40px;
}

.faq-category h3 {
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  text-align: left;
  font-weight: 600;
  font-size: 15.5px;
}

.faq-question .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.25s ease;
}

.faq-question .plus::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.faq-question .plus::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.faq-item.open .faq-question .plus::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  background: var(--accent-grad-soft);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 14px;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.cta-banner .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- 步骤 ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-top: 10px;
}

.step-card .step-num {
  font-size: 46px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ---------- 平台下载卡片 ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.platform-card img {
  width: 42px;
  height: 42px;
}

.platform-card .meta span {
  display: block;
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 4px;
}

.platform-card .btn {
  margin-left: auto;
}

/* ---------- 关于页 ---------- */
.about-hero {
  max-width: 760px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.value-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.value-item {
  display: flex;
  gap: 16px;
}

.value-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-grad);
  margin-top: 8px;
  flex-shrink: 0;
}

.contact-card {
  display: grid;
  gap: 16px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.contact-row b {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-row span {
  font-size: 15px;
  font-weight: 600;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 16px 0 20px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 18px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- 页面头部横幅（内页通用） ---------- */
.page-hero {
  padding: 160px 0 70px;
  text-align: center;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 16px auto 0;
}

/* ---------- 价格对比表 ---------- */
.compare-wrap {
  overflow-x: auto;
  margin-top: 60px;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

table.compare th,
table.compare td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

table.compare th {
  color: var(--text-muted);
  font-weight: 600;
}

table.compare td.yes {
  color: var(--accent);
}

/* ---------- 滚动显现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .nodes-section .container,
  .about-content {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }

  .stats-grid,
  .features-grid,
  .pricing-grid,
  .pricing-grid.full,
  .testimonial-grid,
  .steps-grid,
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(13, 18, 38, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    backdrop-filter: blur(16px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta .btn-ghost {
    display: none;
  }

  .stats-grid,
  .features-grid,
  .pricing-grid,
  .pricing-grid.full,
  .testimonial-grid,
  .steps-grid,
  .platform-grid,
  .region-list {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding: 140px 0 70px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
