/* ==========================================================================
   Nice加速机场官网 - 原生极简高响应样式表 (科技风绿色 · 魔方翻转复原主题)
   零外部依赖 | 原生 CSS 变量 | 科技风翠绿模式 | 极速秒开 | 移动端自适应
   ========================================================================== */

:root {
  --bg-primary: #051412;
  --bg-secondary: #081d19;
  --bg-card: #0d2722;
  --bg-card-hover: #12352f;
  --bg-card-glass: rgba(13, 39, 34, 0.88);
  --text-main: #f0fdf4;
  --text-muted: #a7f3d0;
  --text-dim: #6ee7b7;
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.35);
  --accent: #34d399;
  --accent-cyan: #06b6d4;
  --accent-gold: #fbbf24;
  --border: rgba(52, 211, 153, 0.16);
  --border-focus: #34d399;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max-w: 1200px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-height: 72px;
}

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

html {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* 科技风绿色背景：微光粒子光晕 + 纳米数字网格 */
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(16, 185, 129, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 85% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
}

/* 无障碍跳过链接 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 20px;
  z-index: 9999;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid #ffffff;
}

/* 锚点偏移量，防止固定页眉遮挡 */
[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

/* 布局容器 */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 链接与按钮基类 */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #065f46 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-main) !important;
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* 页眉与导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 20, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.site-brand svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.site-brand span {
  background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-links a:hover {
  color: #ffffff;
  background: var(--bg-card);
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
}

/* ==========================================================================
   赛博科技数字空间：3D 青色发光魔方分层旋转复原与数字矩阵流 Canvas
   ========================================================================== */
.hero-matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #a7f3d0;
  margin-bottom: 24px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subheading {
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  font-weight: 700;
  color: #a7f3d0;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  line-height: 1.4;
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* 通用区块标题 */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-tag {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
}

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

/* 价格对比表 */
.pricing-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 720px;
}

.pricing-table caption {
  padding: 16px 24px;
  text-align: left;
  font-size: 0.875rem;
  color: var(--text-dim);
  background: rgba(8, 29, 25, 0.8);
  border-bottom: 1px solid var(--border);
}

.pricing-table th, .pricing-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-table thead th {
  background: rgba(8, 29, 25, 0.9);
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.pricing-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.pricing-table tbody tr.featured-row {
  background: rgba(16, 185, 129, 0.08);
}

.plan-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 1.1rem;
}

.plan-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}

.plan-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.plan-price small {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: normal;
}

/* 流媒体与 AI 支持图卡 */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.support-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.support-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-main);
}

.support-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

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

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* 常见问题解答 (FAQ) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

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

details.faq-item[open] {
  border-color: rgba(52, 211, 153, 0.4);
  background: var(--bg-card-hover);
}

summary.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

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

summary.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--primary);
  transition: transform 0.2s ease;
}

details[open] summary.faq-question::after {
  content: "−";
  color: var(--accent);
}

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

.faq-answer a {
  text-decoration: underline;
  color: var(--accent);
}

/* 文章列表网格 (知识科普聚合页) */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.article-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.article-card h2, .article-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card h2 a, .article-card h3 a {
  color: #ffffff;
}

.article-card h2 a:hover, .article-card h3 a:hover {
  color: var(--accent);
}

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

.article-card .read-more {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

/* 单篇文章内容排版 */
.article-container {
  max-width: 820px;
  margin: 40px auto;
  padding: 0 24px;
}

.breadcrumbs {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs span {
  margin: 0 8px;
}

.article-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-info-bar {
  display: flex;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 16px;
  color: #ffffff;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: #f1f5f9;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
}

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

.article-content strong {
  color: #ffffff;
}

.article-cta-box {
  margin: 40px 0;
  padding: 32px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(13, 39, 34, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  text-align: center;
}

.article-cta-box h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.article-cta-box p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* 网站地图与关于页面列表 */
.sitemap-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
}

.sitemap-section h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: #ffffff;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.sitemap-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.sitemap-list li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.sitemap-list li a:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--accent);
}

/* 页脚 (严格只保留四个链接) */
.site-footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  text-align: center;
}

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

.footer-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.footer-nav a:hover {
  color: #ffffff;
  background: var(--bg-card);
}

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

/* 移动端与响应式适配 (@media) */
@media (max-width: 1024px) {
  .features-grid, .reviews-grid, .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  
  .hero-matrix-canvas {
    opacity: 0.85;
  }

  .site-header .container {
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-top: 8px;
  }

  .nav-links {
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }

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

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

  .features-grid, .support-grid, .reviews-grid, .article-grid, .sitemap-list {
    grid-template-columns: 1fr;
  }

  .pricing-table th, .pricing-table td {
    padding: 14px 16px;
  }

  .footer-nav {
    gap: 16px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}
