/* ==========================================================================
   魔戒机场 落地页样式表
   设计风格：深色科技风 + 玻璃拟态卡片 + 荧光渐变强调色
   ========================================================================== */

:root {
  --bg-base: #0a0e1a;
  --bg-elevated: #10162a;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.1);
  --text-primary: #eef1fb;
  --text-secondary: #9aa4c2;
  --text-muted: #6b7494;
  --accent-cyan: #23d5f7;
  --accent-purple: #8b5cf6;
  --accent-gold: #f7c948;
  --gradient-brand: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  --gradient-bg: radial-gradient(circle at 20% -10%, rgba(139, 92, 246, 0.25), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(35, 213, 247, 0.18), transparent 40%),
    linear-gradient(180deg, #0a0e1a 0%, #0d1224 60%, #0a0e1a 100%);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-glow: 0 8px 40px rgba(35, 213, 247, 0.08);
  --container-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  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-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  background: rgba(35, 213, 247, 0.1);
  border: 1px solid rgba(35, 213, 247, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

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

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 16px;
}

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

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

.btn-primary {
  background: var(--gradient-brand);
  color: #06101c;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(139, 92, 246, 0.45);
}

.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
}

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

.btn-block {
  width: 100%;
}

/* ---------------------------------- 顶部导航 ---------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand-logo {
  width: 34px;
  height: 34px;
}

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

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

.nav-links a:hover {
  color: var(--text-primary);
}

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

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  padding: 168px 0 110px;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent-gold);
  background: rgba(247, 201, 72, 0.1);
  border: 1px solid rgba(247, 201, 72, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats div span {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(35, 213, 247, 0.18));
}

/* ---------------------------------- 通用卡片网格 ---------------------------------- */

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------------------------------- 核心优势 ---------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 30px 26px;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(35, 213, 247, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: #06101c;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ---------------------------------- 节点分布 ---------------------------------- */

.nodes {
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.04), transparent);
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.node-card {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-flag {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
}

.node-status {
  font-size: 12px;
  color: #3ee88a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.node-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ee88a;
  box-shadow: 0 0 8px #3ee88a;
}

.node-card h4 {
  font-size: 16px;
  font-weight: 700;
}

.node-card .node-line {
  font-size: 12.5px;
  color: var(--text-muted);
}

.node-ping {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-ping b {
  color: var(--accent-cyan);
  font-weight: 700;
}

.nodes-more {
  text-align: center;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ---------------------------------- 使用步骤 ---------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}

.step-card {
  padding: 28px 22px;
  position: relative;
}

.step-num {
  font-size: 34px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ---------------------------------- 套餐价格 ---------------------------------- */

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 46px;
}

.toggle-switch {
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  position: relative;
  transition: background 0.25s ease;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-brand);
  transition: transform 0.25s ease;
}

.toggle-switch.active {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

.save-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(247, 201, 72, 0.12);
  border: 1px solid rgba(247, 201, 72, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.popular {
  border-color: rgba(35, 213, 247, 0.5);
  background: linear-gradient(180deg, rgba(35, 213, 247, 0.08), rgba(139, 92, 246, 0.05));
  transform: scale(1.03);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #06101c;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

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

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

.price-original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 22px;
}

.price-features {
  margin: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.price-features svg {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* ---------------------------------- FAQ ---------------------------------- */

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

.faq-item {
  padding: 4px 24px;
}

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

.faq-question .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-question .icon svg {
  width: 12px;
  height: 12px;
}

.faq-item[data-open="true"] .faq-question .icon {
  transform: rotate(45deg);
  background: var(--gradient-brand);
}

.faq-item[data-open="true"] .faq-question .icon svg {
  color: #06101c;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 14px;
  color: var(--text-secondary);
}

.faq-item[data-open="true"] .faq-answer {
  padding-bottom: 22px;
}

/* ---------------------------------- CTA 横幅 ---------------------------------- */

.cta-banner {
  padding: 60px 48px;
  text-align: center;
  background: linear-gradient(135deg, rgba(35, 213, 247, 0.14), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
}

.cta-banner h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
}

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

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  padding: 70px 0 30px;
  border-top: 1px solid var(--border-soft);
}

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

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

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 16px;
}

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

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

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

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

.footer-disclaimer {
  max-width: 780px;
  margin: 0 auto 26px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}

/* ---------------------------------- 响应式 ---------------------------------- */

@media (max-width: 1080px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nodes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: flex;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }
  .price-card.popular {
    transform: none;
  }
}

@media (max-width: 640px) {
  .features-grid,
  .nodes-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero {
    padding: 140px 0 80px;
  }
  .cta-banner {
    padding: 44px 24px;
  }
}

@media (max-width: 460px) {
  .features-grid,
  .nodes-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 24px;
  }
}
