/* ==========================================================================
   Gatern 云机场 (gaternjc.homes) - 官方极速轻量原生设计系统
   纯原生 CSS，零重型第三方库，毫秒级响应渲染
   ========================================================================== */

:root {
  --bg-dark: #060913;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(26, 36, 64, 0.9);
  --border-color: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(0, 240, 255, 0.4);
  --primary: #00F0FF;
  --primary-glow: rgba(0, 240, 255, 0.35);
  --secondary: #3B82F6;
  --accent: #8B5CF6;
  --success: #10B981;
  --warning: #F59E0B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
  font-size: 16px;
  background-color: transparent; /* 保持透明，使 z-index 画布与宇宙星云正常透视显示 */
}

/* ================= 动态背景 (Cosmic Space & 3D Cyber Earth) ================= */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}

/* 页面所有主要结构层浮于动态画布之上 */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

main,
.hero,
.section,
.footer,
.page-header {
  position: relative;
  z-index: 2;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: floatOrb 22s ease-in-out infinite alternate;
  will-change: transform;
}

.aurora-orb-1 {
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(217, 70, 239, 0.18) 45%, transparent 75%);
  top: -120px;
  right: -150px;
  animation-duration: 20s;
}

.aurora-orb-2 {
  width: 850px;
  height: 850px;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.32) 0%, rgba(59, 130, 246, 0.22) 50%, transparent 75%);
  bottom: -150px;
  left: -200px;
  animation-duration: 26s;
  animation-direction: alternate-reverse;
}

.aurora-orb-3 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.4) 0%, rgba(79, 70, 229, 0.2) 55%, transparent 80%);
  top: 25%;
  left: 30%;
  animation-duration: 24s;
}

@keyframes floatOrb {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(60px, 80px, 0) scale(1.12); }
  100% { transform: translate3d(-50px, -60px, 0) scale(0.92); }
}

/* ================= 容器与网格 ================= */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ================= 顶部导航 Header ================= */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(6, 9, 19, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-brand img, .nav-brand svg {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

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

/* ================= 按钮通用风格 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #00F0FF 0%, #3B82F6 50%, #8B5CF6 100%);
  color: #060913;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 240, 255, 0.55);
  color: #030712;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 14px 34px;
  font-size: 17px;
  border-radius: var(--radius-full);
}

/* ================= Hero 区域 ================= */
.hero {
  position: relative;
  padding: 70px 0 50px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--primary); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #00F0FF 0%, #60A5FA 45%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 860px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ================= 实时运行指标 Stats Bar ================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  margin-bottom: 60px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-color);
}

.stat-val {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat-lbl {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ================= 价格区域 (严格满足：所有价格要同排) ================= */
.section {
  padding: 60px 0;
  position: relative;
}

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

.section-tag {
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* 同排横向网格：5个套餐一行展示 */
.pricing-row-container {
  width: 100%;
  overflow-x: auto;
  padding: 16px 4px 32px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) transparent;
}

.pricing-row-container::-webkit-scrollbar {
  height: 6px;
}
.pricing-row-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}
.pricing-row-container::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

.pricing-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 14px;
  min-width: 1160px; /* 确保5个套餐完全同排对齐不折行 */
  align-items: stretch;
}

.pricing-card {
  flex: 1 1 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 36px rgba(0, 240, 255, 0.18);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.12) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 12px 32px rgba(0, 240, 255, 0.22);
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00F0FF, #3B82F6);
  color: #060913;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.4);
}

.card-plan-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #FFF;
}

.card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  min-height: 38px;
  margin-bottom: 16px;
}

.card-price-box {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.card-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.card-price-sym {
  font-size: 20px;
  font-weight: 600;
  margin-right: 2px;
}

.card-price-cycle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.card-traffic {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93C5FD;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.card-features {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-features li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-features li span.check {
  color: var(--primary);
  font-weight: bold;
}

.pricing-card .btn {
  width: 100%;
}

/* ================= 核心特色 / 卖点 Grid ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFF;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ================= 协议客户端与节点区域 ================= */
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.client-card:hover {
  border-color: var(--secondary);
  transform: translateY(-4px);
}

.client-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.client-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

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

/* ================= 5-8 篇核心机场技术文章展示 ================= */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: var(--bg-card-hover);
  box-shadow: 0 14px 30px rgba(0, 240, 255, 0.12);
}

.article-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 240, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.article-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 12px;
  line-height: 1.45;
  transition: var(--transition);
}

.article-card:hover .article-title {
  color: var(--primary);
}

.article-summary {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.read-more-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.testi-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.testi-rating {
  color: #FBBF24;
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 2px;
}

.testi-comment {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
  font-style: italic;
}

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

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #FFF;
  font-size: 16px;
}

.testi-meta h5 {
  font-size: 14.5px;
  font-weight: 700;
  color: #FFF;
}

.testi-meta p {
  font-size: 12px;
  color: var(--text-dim);
}

/* ================= 常见问题 FAQ ================= */
.faq-wrap {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(0, 240, 255, 0.3);
}

.faq-question {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #FFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 18px;
  color: var(--primary);
  transition: transform 0.25s ease;
}

details[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 6px;
  padding-top: 14px;
}

/* ================= 外部优质友情链接与生态 ================= */
.outbound-strip {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  margin-top: 50px;
}

.outbound-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.outbound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.outbound-links a {
  color: var(--text-dim);
  font-size: 13.5px;
  text-decoration: none;
  transition: var(--transition);
}

.outbound-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ================= 底部 CTA 区域 ================= */
.cta-banner {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12) 0%, rgba(59, 130, 246, 0.15) 50%, rgba(139, 92, 246, 0.12) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin: 60px 0 20px;
}

.cta-banner h2 {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 900;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 30px;
}

/* ================= 页脚 Footer ================= */
.footer {
  border-top: 1px solid var(--border-color);
  background: rgba(6, 9, 19, 0.95);
  padding: 60px 0 30px;
  margin-top: 60px;
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-brand p {
  margin-top: 14px;
  line-height: 1.65;
  color: var(--text-dim);
  font-size: 13.5px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 18px;
}

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

.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 13.5px;
}

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

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

/* ================= 响应式适配 ================= */
@media (max-width: 1024px) {
  .features-grid, .articles-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .features-grid, .articles-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .stat-item::after {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 40px 0 30px;
  }
}
