/* ===================================================================
   星链 (Starlink) 网络加速器 - 现代清爽浅色原生样式表 (Light Theme)
   零外部依赖 | 纯原生 CSS | 秒开级加载 | 全端响应式 | 现代轻盈质感
   =================================================================== */

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-glow: rgba(2, 132, 199, 0.35);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --accent-gold: #f59e0b;
  --accent-glow: 0 4px 20px rgba(2, 132, 199, 0.2);
  --tag-popular: linear-gradient(135deg, #f59e0b, #ea580c);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  --card-shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.1);
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 12% 15%, rgba(2, 132, 199, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 88% 65%, rgba(37, 99, 235, 0.035) 0%, transparent 45%);
  background-attachment: fixed;
}

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

ul {
  list-style: none;
}

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

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

/* ================= 导航栏 Header ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.03);
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.logo-text span {
  color: var(--accent-cyan);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

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

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  min-height: 44px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.4);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* ================= 主视觉区 Hero ================= */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: var(--accent-cyan);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 10px #16a34a;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1px;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-primary);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #0f172a 20%, var(--accent-cyan) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

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

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ================= 通用区块布局 ================= */
.section {
  padding: 90px 0;
}

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

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

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ================= 核心优势 Features ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

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

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--card-shadow-hover);
}

.feature-icon-wrap {
  width: 54px;
  height: 54px;
  background: rgba(2, 132, 199, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent-cyan);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ================= 流媒体与 AI 支持 Media & AI ================= */
.media-ai-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.media-ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}

.media-ai-card:hover {
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: var(--card-shadow-hover);
}

.badge-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.media-ai-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.media-ai-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

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

.service-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.service-pill:hover {
  background: #f1f5f9;
  border-color: var(--border-glow);
}

.service-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ================= 价格对比表 Pricing ================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--card-shadow-hover);
}

.pricing-card.featured {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.15);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tag-popular);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.pricing-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.price-box {
  margin: 18px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

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

.amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.billing-cycle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-left: 6px;
}

.pricing-features {
  flex-grow: 1;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  flex-shrink: 0;
  color: #16a34a;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features li.disabled svg {
  color: var(--text-muted);
}

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

/* ================= 用户评价 Reviews ================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--card-shadow-hover);
}

.stars {
  color: #f59e0b;
  margin-bottom: 14px;
  display: flex;
  gap: 3px;
}

.review-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.avatar-2 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.avatar-3 { background: linear-gradient(135deg, #059669, #0284c7); }

.reviewer-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.reviewer-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  padding: 22px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  user-select: none;
}

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

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

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

details[open] .faq-item {
  border-color: var(--border-glow);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.1);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ================= 页脚 Footer ================= */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 48px 0 36px;
  text-align: center;
}

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

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 6px 12px;
}

.footer-nav a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ================= 辅助页面样式 (关于我们/条款/政策/地图) ================= */
.subpage-hero {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.subpage-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.subpage-content {
  max-width: 860px;
  margin: 50px auto 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  line-height: 1.8;
  box-shadow: var(--card-shadow);
}

.subpage-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.subpage-content h2:first-of-type {
  margin-top: 0;
}

.subpage-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--accent-cyan);
}

.subpage-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.subpage-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.subpage-content ul li {
  margin-bottom: 8px;
}

.highlight-box {
  background: rgba(2, 132, 199, 0.06);
  border-left: 4px solid var(--accent-cyan);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  color: var(--text-primary);
}

.sitemap-tree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.sitemap-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.sitemap-card h3 {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.sitemap-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-card ul li {
  margin-bottom: 10px;
}

.sitemap-card ul li a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.sitemap-card ul li a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* ================= 高科技网格卡片 (Grid Cards) ================= */
.tech-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
  margin: 28px 0 36px;
}

.tech-article-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.tech-article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.tech-article-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--card-shadow-hover);
}

.tech-article-card:hover::before {
  opacity: 1;
}

.tech-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(2, 132, 199, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  width: fit-content;
}

.tech-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: var(--transition);
}

.tech-article-card:hover .tech-card-title {
  color: var(--accent-cyan);
}

.tech-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tech-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tech-card-link {
  color: var(--accent-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.tech-card-link:hover {
  color: var(--accent-blue);
}

/* ================= 响应式媒体查询 @media ================= */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  
  .media-ai-container {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 12px 0 10px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 0 2px;
    gap: 18px;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border-color);
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 0.88rem;
    flex-shrink: 0;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 50px;
    font-size: 1.05rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 18px 12px;
  }

  .stat-num {
    font-size: 1.45rem;
  }

  .section {
    padding: 60px 0;
  }

  .features-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }

  .icon-badges-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 30px 20px;
  }

  .pricing-card .btn {
    min-height: 50px;
    font-size: 1.05rem;
  }

  .tech-article-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }

  .subpage-content {
    padding: 28px 20px;
    margin: 30px auto 50px;
  }
}
