/* ==========================================================================
   极速cloud - 未来感点阵数据风 样式系统 (Cyber Dot-Matrix Theme)
   ========================================================================== */

/* 1. 变量与设计标记 */
:root {
  --bg-primary: #060913;
  --bg-secondary: #0b1021;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(20, 32, 58, 0.85);
  
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.4);
  --accent-purple: #8a2be2;
  --accent-purple-glow: rgba(138, 43, 226, 0.4);
  --accent-blue: #0066ff;
  --accent-green: #00ff88;
  --accent-gold: #ffb700;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-color: rgba(0, 240, 255, 0.15);
  --border-highlight: rgba(0, 240, 255, 0.5);
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "Fira Code", "Cascadia Code", Consolas, Monaco, monospace;

  --nav-height: 72px;
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. 基础重置 */
*, *::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-family);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* 背景点阵纹理 */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(rgba(0, 240, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

canvas#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

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

/* 3. 导航栏 (Header) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.03);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-primary);
  border-radius: 8px;
}

.logo-symbol {
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-size: 20px;
  background: linear-gradient(to right, var(--accent-cyan), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.logo-text span {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan-glow);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

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

/* 4. 按钮样式 (CTA Buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #00a6ff);
  color: #040814;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.7);
  background: linear-gradient(135deg, #33f3ff, #1ab0ff);
}

.btn-recommend {
  background: linear-gradient(135deg, var(--accent-purple), #5e11ad);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

.btn-recommend:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.7);
  border-color: var(--accent-cyan);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
  border-radius: var(--radius-md);
}

/* 5. 章节通用样式 */
section.page-section {
  padding: 100px 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 6. 主视觉区 (Hero Section) */
.hero-section {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 100px;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-highlight);
  border-radius: 30px;
  color: var(--accent-cyan);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #00f0ff 0%, #7000ff 50%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item .stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.stat-item .stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* 动态科技卡片 (Hero Graphic) */
.hero-visual-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 240, 255, 0.05);
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  animation: scanline 4s linear infinite;
}

@keyframes scanline {
  0% { left: -100%; }
  100% { left: 100%; }
}

.node-status-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(8, 14, 28, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.node-item:hover {
  border-color: var(--accent-cyan);
}

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

.node-flag {
  font-size: 20px;
}

.node-name {
  font-weight: 600;
  font-size: 14px;
}

.node-type {
  font-size: 12px;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.node-speed {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-green);
}

/* 7. 产品核心优势 (3个卡片) */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.adv-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px rgba(0, 240, 255, 0.15);
  background: var(--bg-card-hover);
}

.adv-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-highlight);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.adv-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.adv-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

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

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  backdrop-filter: blur(12px);
}

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

.support-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tag-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.tag-item:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
}

/* 9. 价格表 (Pricing Table) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card.popular {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
  transform: scale(1.03);
  background: rgba(18, 30, 56, 0.85);
}

.pricing-card.popular::before {
  content: '热门推荐';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-cyan), #0077ff);
  color: #000;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 20px;
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.pricing-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 38px;
  font-weight: 900;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin: 16px 0;
}

.pricing-price span {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 24px 0 32px;
  flex-grow: 1;
}

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

.pricing-features li::before {
  content: '✓';
  color: var(--accent-cyan);
  font-weight: bold;
}

/* 10. 12篇 SEO 文章图卡区域 */
.seo-articles-section {
  background: rgba(8, 13, 26, 0.5);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.15);
}

.article-tag {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
  color: #fff;
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}

.article-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-link:hover {
  text-decoration: underline;
}

/* 11. FAQ (常见问题) */
.faq-grid {
  max-width: 860px;
  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-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--accent-cyan);
}

.faq-question {
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-toggle {
  font-size: 20px;
  color: var(--accent-cyan);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

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

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

/* 12. 用户评价 (Testimonials) */
.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;
}

.review-stars {
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-size: 16px;
}

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

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
}

.author-info h4 {
  font-size: 15px;
  font-weight: 700;
}

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

/* 13. 页脚 (Footer) */
.site-footer {
  background: #03050c;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  position: relative;
  z-index: 2;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

.footer-pbn {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
}

.footer-pbn a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 700;
  margin: 0 8px;
  transition: text-shadow var(--transition-fast);
}

.footer-pbn a:hover {
  text-decoration: underline;
  text-shadow: 0 0 8px var(--accent-cyan-glow);
}

/* 14. 右侧悬浮章节上下移动控制 (Floating Navigation Controls) */
.floating-nav-controls {
  position: fixed;
  right: 24px;
  bottom: 50%;
  transform: translateY(50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.nav-arrow-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(11, 16, 33, 0.85);
  border: 1px solid var(--border-highlight);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
}

.nav-arrow-btn:hover {
  background: var(--accent-cyan);
  color: #040814;
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  transform: scale(1.1);
}

.nav-arrow-btn:active {
  transform: scale(0.95);
}

/* 15. 响应式适配 (Mobile First Media Queries) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .advantages-grid, .pricing-grid, .articles-grid, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card.popular {
    transform: none;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }
  
  .nav-links {
    display: none; /* 移动端精简头部 */
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-desc {
    font-size: 15px;
  }

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

  .hero-cta-group .btn {
    width: 100%;
  }

  .advantages-grid, .media-ai-grid, .pricing-grid, .articles-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }

  .floating-nav-controls {
    right: 12px;
  }
  
  .nav-arrow-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

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