/* ==========================================================================
   九云机场官网 (9-cloud.lat) - 核心原生样式表
   极简无依赖、秒开级性能、全面响应式适配与无障碍增强
   ========================================================================== */

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;
  
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --warning: #f59e0b;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --container-max: 1200px;
  --header-height: 72px;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --transition-fast: 0.2s ease;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: #0b0f19;
  background-image: 
    /* 阳光高光穿透层：右上角金色太阳光晕与丁达尔神圣光芒折射 */
    radial-gradient(circle at 80% 8%, rgba(254, 240, 138, 0.22) 0%, rgba(251, 191, 36, 0.10) 28%, transparent 60%),
    /* 深度大气层光影过渡遮罩：让翻涌的云海和阳光自然透出，同时确保全站文本清晰锐利（对比度 > 7:1） */
    linear-gradient(180deg, rgba(11, 15, 25, 0.65) 0%, rgba(11, 15, 25, 0.78) 30%, rgba(11, 15, 25, 0.88) 65%, rgba(11, 15, 25, 0.96) 100%),
    url("atmospheric-clouds.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* 锚点防遮挡 */
h1, h2, h3, h4, section {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

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

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

/* 焦点可见样式 */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* 容器与版心 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.35));
  transition: transform var(--transition-fast);
}

.brand-logo:hover svg {
  transform: scale(1.08);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.special {
  color: #60a5fa;
  font-weight: 600;
  position: relative;
}

.nav-link.special::after {
  content: "HOT";
  position: absolute;
  top: -6px;
  right: -8px;
  font-size: 0.65rem;
  background: #ef4444;
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.2;
}

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

/* ==========================================================================
   按钮规范 (严格保底 44x44px 点击区域)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  min-height: 40px;
}

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

.hero-section::before {
  content: "";
  position: absolute;
  top: -30px;
  right: 18%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.16) 0%, rgba(251, 191, 36, 0.08) 35%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
  z-index: -1;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-full);
  color: #93c5fd;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 32px;
}

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

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  backdrop-filter: blur(8px);
}

.stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: #60a5fa;
  line-height: 1.2;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

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

/* ==========================================================================
   套餐价格对比表 (Pricing Table)
   ========================================================================== */
.section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

.pricing-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

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

.pricing-table caption {
  caption-side: bottom;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

.pricing-table th, .pricing-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.pricing-table th {
  background-color: rgba(255, 255, 255, 0.02);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.plan-name-cell {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.plan-badge.popular {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}

.price-text {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

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

.feature-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
}

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

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

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #60a5fa;
}

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

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   流媒体与 AI 支持图卡 (Ecosystem Card)
   ========================================================================== */
.ecosystem-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.ecosystem-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.eco-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
}

.eco-block-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eco-block-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eco-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
}

.eco-tag svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

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

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #fbbf24;
  margin-bottom: 14px;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-body {
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

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

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

/* ==========================================================================
   常见问题解答 (FAQ - 默认展开、纯原生 details)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

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

.faq-item[open] {
  border-color: rgba(59, 130, 246, 0.4);
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

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

.faq-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

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

.faq-answer {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: -4px;
  padding-top: 16px;
}

.faq-answer a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   知识科普文章与汇总页专用样式
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.4);
}

.article-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  align-self: flex-start;
}

.article-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-main);
}

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

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

/* 单篇文章排版容器 */
.article-detail-container {
  max-width: 860px;
  margin: 40px auto 80px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

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

.breadcrumbs a:hover {
  color: var(--primary);
}

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

.article-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

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

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 14px;
  color: #f3f4f6;
}

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

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

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

.article-callout {
  background: rgba(59, 130, 246, 0.08);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
}

.article-callout p:last-child {
  margin-bottom: 0;
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 48px 0;
}

/* ==========================================================================
   页脚规范 (严格只保留四个单页外链入口)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: #070a12;
  border-top: 1px solid var(--border-color);
  padding: 48px 0 36px;
}

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

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: 8px 12px;
}

.footer-link:hover {
  color: #ffffff;
}

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

/* ==========================================================================
   响应式断点与适配 (@media)
   ========================================================================== */
@media (max-width: 1024px) {
  .features-grid, .reviews-grid, .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-wrapper {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding: 10px 0;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 0.875rem;
  }

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

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

  .ecosystem-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer-nav {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

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