/* ===================================================================
   YKKCLOUD - 任务控制台终端原生样式表 (Mission Console Stylesheet)
   设计风格：暗黑“任务控制台” · 霓虹青发光 · 极简秒开 · 纯原生CSS
   =================================================================== */

:root {
  --bg-primary: #05080e;
  --bg-secondary: #0a0f18;
  --bg-card: rgba(14, 22, 36, 0.75);
  --bg-card-hover: rgba(20, 32, 52, 0.85);
  --border-color: rgba(0, 242, 254, 0.15);
  --border-glow: rgba(0, 242, 254, 0.5);
  --cyan-neon: #00f2fe;
  --cyan-deep: #4facfe;
  --green-matrix: #00ff88;
  --purple-accent: #a855f7;
  --text-main: #f1f5f9;
  --text-muted: #8e9db4;
  --text-dim: #53647c;
  --font-mono: 'Consolas', 'Courier New', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-cyan: 0 0 25px rgba(0, 242, 254, 0.35);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  line-height: 1.6;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #0c182b 0%, var(--bg-primary) 70%);
  min-height: 100vh;
}

/* 控制台扫描线与网格背景 */
.console-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(0, 242, 254, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 242, 254, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

/* 通用容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 8, 14, 0.82);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--cyan-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan-neon);
  animation: pulse-glow 2s infinite ease-in-out;
}

.brand-name {
  background: linear-gradient(135deg, #ffffff 30%, var(--cyan-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan-neon);
}

.nav-link.news-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 242, 254, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--cyan-neon);
}

.nav-link.news-pill:hover {
  background: rgba(0, 242, 254, 0.2);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 按钮规范与磁性辉光 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-deep) 0%, var(--cyan-neon) 100%);
  color: #030a14;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 242, 254, 0.7);
  background: linear-gradient(135deg, #5eb8ff 0%, #38f9d7 100%);
}

.btn-outline {
  background: rgba(14, 22, 36, 0.5);
  border: 1px solid var(--border-color);
  color: var(--cyan-neon);
}

.btn-outline:hover {
  border-color: var(--cyan-neon);
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 34px;
  font-size: 1.05rem;
}

/* 移动端汉堡按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  margin: 5px 0;
  transition: var(--transition);
}

/* 英雄区 (Hero Section) - 交互粒子画布与任务中控台 */
.hero-section {
  position: relative;
  padding: 100px 0 80px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--cyan-neon);
  font-family: var(--font-mono);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 40%, #b0c9e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--cyan-neon) 20%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

/* 实时遥测仪表盘 (Live Telemetry Console) */
.telemetry-dashboard {
  background: rgba(10, 15, 24, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  margin-top: 20px;
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.telemetry-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan-neon);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green-matrix);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-matrix);
  animation: pulse-glow 1.5s infinite;
}

.telemetry-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green-matrix);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.telemetry-item {
  background: rgba(5, 8, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.telemetry-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--cyan-neon);
  opacity: 0.6;
}

.telemetry-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.telemetry-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.telemetry-unit {
  font-size: 0.8rem;
  color: var(--cyan-neon);
  font-weight: normal;
}

.sparkline-box {
  margin-top: 8px;
  height: 28px;
}

#ping-canvas {
  width: 100%;
  height: 28px;
  display: block;
}

/* 区块通用结构 */
.section {
  padding: 90px 0;
  position: relative;
}

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

.section-tag {
  font-family: var(--font-mono);
  color: var(--cyan-neon);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #ffffff;
}

.section-desc {
  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-color);
  border-radius: 12px;
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 242, 254, 0.15);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--cyan-neon);
  margin-bottom: 24px;
}

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

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

.feature-metric {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.feature-metric span:first-child {
  color: var(--text-dim);
}

.feature-metric span:last-child {
  color: var(--cyan-neon);
  font-weight: 600;
}

/* 流媒体与 AI 支持图卡 */
.media-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.media-ai-card {
  background: linear-gradient(180deg, rgba(14, 22, 36, 0.8) 0%, rgba(9, 14, 24, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.media-ai-card:hover {
  border-color: var(--cyan-neon);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
}

.card-header-flex {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-neon);
  font-weight: 600;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

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

.tag-item:hover {
  border-color: var(--cyan-neon);
  background: rgba(0, 242, 254, 0.08);
  color: var(--cyan-neon);
}

.tag-status {
  width: 6px;
  height: 6px;
  background: var(--green-matrix);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green-matrix);
}

/* 控制台 Tab 面板 */
.console-tabs-section {
  background: rgba(8, 12, 20, 0.5);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(14, 22, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-color);
}

.tab-btn.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
}

.tab-pane {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 36px;
  animation: fadeIn 0.35s ease;
}

.tab-pane.active {
  display: block;
}

.tab-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.spec-list {
  list-style: none;
  margin-top: 20px;
}

.spec-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.spec-list li span:first-child {
  color: var(--text-muted);
}

.spec-list li span:last-child {
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 600;
}

.terminal-box {
  background: #020408;
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 8px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: #a0aec0;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a5568;
}

.terminal-dot.red { background: #e53e3e; }
.terminal-dot.yellow { background: #d69e2e; }
.terminal-dot.green { background: #38a169; }

.text-cyan { color: var(--cyan-neon); }
.text-green { color: var(--green-matrix); }

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(16, 28, 48, 0.85) 0%, rgba(10, 16, 26, 0.95) 100%);
  border: 2px solid var(--cyan-neon);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.25);
  transform: translateY(-8px);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan-neon);
}

.pricing-card.featured:hover {
  transform: translateY(-12px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #00f2fe, #4facfe);
  color: #030a14;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  min-height: 40px;
}

.plan-price {
  font-family: var(--font-mono);
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price .currency {
  font-size: 1.2rem;
  color: var(--cyan-neon);
}

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

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

.plan-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.check-icon {
  color: var(--green-matrix);
  font-weight: bold;
}

/* 用户评价 */
.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: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #ffb703;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--cyan-neon);
}

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

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

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

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

.faq-item:hover {
  border-color: rgba(0, 242, 254, 0.4);
}

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

.faq-arrow {
  font-size: 1.2rem;
  color: var(--cyan-neon);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding: 0 24px 20px;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

/* 页脚 Footer - 严格仅保留四个标题，在新页面打开 */
.footer {
  border-top: 1px solid var(--border-color);
  background: #03050a;
  padding: 60px 0 40px;
}

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

.footer-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--cyan-neon);
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.05);
}

.footer-copy {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

/* 动效 Keyframes */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 响应式媒体查询 (@media) - 手机端完美单栏，大触控热区 */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .media-ai-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .tab-content-grid {
    grid-template-columns: 1fr;
  }
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
  .footer-nav-grid {
    flex-direction: column;
    gap: 16px;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(5, 8, 14, 0.98);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    display: none;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-actions {
    display: none;
  }
  .btn {
    min-height: 48px;
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
  }
}
