/* ===================================================================
   星链机场 · 官方深空设计样式表 (style.css)
   配色规范：深空黑 #030014, 星空白 #ffffff, 蓝紫星云 #8b5cf6, 极光青 #22d3ee
   =================================================================== */

:root {
  --bg-deep-space: #030014;
  --bg-card: rgba(15, 12, 41, 0.65);
  --bg-card-hover: rgba(26, 21, 65, 0.85);
  --border-glass: rgba(139, 92, 246, 0.25);
  --border-glass-bright: rgba(34, 211, 238, 0.5);
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --cyan-accent: #22d3ee;
  --violet-accent: #8b5cf6;
  --gold-accent: #fbbf24;
  --font-display: 'Exo 2', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep-space);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* 字体设定 */
.font-display {
  font-family: var(--font-display);
}

/* Three.js 宇宙背景画板 */
#space-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#space-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* 针对低性能与移动端的静态渐变星空备选 */
.static-starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.12) 0%, transparent 50%),
    radial-gradient(2px 2px at 20px 30px, #ffffff 100%, transparent),
    radial-gradient(2px 2px at 90px 140px, #22d3ee 100%, transparent),
    radial-gradient(1.5px 1.5px at 150px 70px, #ffffff 100%, transparent),
    radial-gradient(2px 2px at 240px 320px, #a78bfa 100%, transparent),
    radial-gradient(1px 1px at 320px 190px, #ffffff 100%, transparent),
    var(--bg-deep-space);
  background-repeat: repeat;
  background-size: 100% 100%, 100% 100%, 350px 350px, 420px 420px, 280px 280px, 490px 490px, 310px 310px;
  pointer-events: none;
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #space-canvas-container {
    display: none !important;
  }
  .static-starfield {
    display: block !important;
  }
}

/* 顶部与全局遮罩层，确保文字可读性 */
.dark-gradient-scrim {
  position: relative;
  z-index: 1;
}

/* 容器规范 */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 顶部导航栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 0, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--cyan-accent), var(--violet-accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan-accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--violet-accent), #6366f1);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.55);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* 主视觉区 Hero */
.hero-section {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--cyan-accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 20%, #e0e7ff 50%, var(--cyan-accent) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.2);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #cbd5e1;
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-highlight-tag {
  color: var(--cyan-accent);
  font-weight: 700;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.4);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(34, 211, 238, 0.65);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border: 1px solid rgba(139, 92, 246, 0.4);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--cyan-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

/* 滚动提示图标 */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-sub);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-decoration: none;
  animation: bounce-cue 2.2s infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  margin-top: 4px;
}

@keyframes bounce-cue {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -8px); }
  60% { transform: translate(-50%, -4px); }
}

/* 通用Section规范 */
.section {
  padding: 90px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan-accent);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
}

.section-desc {
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.7;
}

/* 节点星系卡片 Planet Cards */
.planet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.planet-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 36px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.planet-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass-bright);
  box-shadow: 0 15px 35px rgba(34, 211, 238, 0.15), inset 0 0 25px rgba(139, 92, 246, 0.1);
}

.planet-visual-box {
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CSS绘制的光环行星球体 */
.css-planet {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: relative;
  box-shadow: inset -8px -8px 15px rgba(0, 0, 0, 0.7), 0 0 20px rgba(34, 211, 238, 0.4);
}

.css-planet.planet-us {
  background: radial-gradient(circle at 35% 35%, #60a5fa, #1d4ed8);
}

.css-planet.planet-jp {
  background: radial-gradient(circle at 35% 35%, #f472b6, #db2777);
  box-shadow: inset -8px -8px 15px rgba(0, 0, 0, 0.7), 0 0 20px rgba(244, 114, 182, 0.4);
}

.css-planet.planet-sg {
  background: radial-gradient(circle at 35% 35%, #34d399, #059669);
  box-shadow: inset -8px -8px 15px rgba(0, 0, 0, 0.7), 0 0 20px rgba(52, 211, 153, 0.4);
}

.planet-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-top-color: transparent;
  transform: translate(-50%, -50%) rotate(-25deg);
  pointer-events: none;
}

.planet-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.planet-ping-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(34, 211, 238, 0.15);
  color: var(--cyan-accent);
  border: 1px solid rgba(34, 211, 238, 0.3);
  margin-bottom: 14px;
}

.planet-desc {
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 核心优势卡片 3图文 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 36px 30px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-bright);
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--cyan-accent);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.feature-text {
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* 流媒体与AI支持卡片 */
.media-ai-card {
  background: linear-gradient(135deg, rgba(15, 12, 41, 0.8), rgba(30, 20, 60, 0.8));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 24px;
  padding: 42px;
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan-accent);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 6px;
  font-size: 0.8rem;
  margin-right: 8px;
  margin-bottom: 8px;
}

.service-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--cyan-accent);
}

.service-pill-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.service-pill-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* 套餐价格对比表 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 34px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border-color: var(--cyan-accent);
  background: linear-gradient(180deg, rgba(26, 21, 65, 0.95), rgba(15, 12, 41, 0.9));
  box-shadow: 0 0 35px rgba(34, 211, 238, 0.25);
}

.pricing-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.5);
}

.pricing-ribbon-gold {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5);
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}

.pricing-currency {
  font-size: 1.2rem;
  color: var(--cyan-accent);
  font-weight: 700;
}

.pricing-amount {
  font-size: 2.3rem;
  font-weight: 900;
  color: #ffffff;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.pricing-meta {
  font-size: 0.85rem;
  color: #cbd5e1;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-check-icon {
  color: var(--cyan-accent);
  font-weight: 900;
}

.pricing-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.4);
  transition: all 0.3s ease;
}

.pricing-btn:hover {
  background: linear-gradient(135deg, var(--cyan-accent), var(--violet-accent));
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.4);
}

.pricing-card.popular .pricing-btn {
  background: linear-gradient(135deg, var(--cyan-accent), #3b82f6);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(34, 211, 238, 0.4);
}

/* 用户评价 section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 26px;
  backdrop-filter: blur(10px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
}

.review-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.review-tag {
  font-size: 0.8rem;
  color: var(--text-sub);
}

.review-stars {
  color: var(--gold-accent);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.review-body {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* 常见问题 FAQ section */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--cyan-accent);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--text-sub);
  font-size: 0.93rem;
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* 页脚规范：严格只保留四个链接标题，点击在新标签打开对应页面 */
.site-footer {
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(2, 0, 15, 0.95);
  padding: 48px 0 36px;
  margin-top: 60px;
  position: relative;
  z-index: 10;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* 响应式媒体查询 @media */
@media (max-width: 1024px) {
  .planet-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .media-ai-card {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .site-nav {
    height: 64px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(3, 0, 20, 0.98);
    flex-direction: column;
    padding: 24px 20px;
    gap: 18px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  }
  .nav-links.show {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  .service-icon-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }
  .footer-nav {
    gap: 20px;
  }
}
