/* ----------------------------------------------------
   梦想云 (mengxiangyun.sbs) 官方落地页样式库
   Style System: Cyber Glassmorphism & Modern Dark Mode
---------------------------------------------------- */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121d;
  --bg-card: rgba(18, 25, 41, 0.65);
  --bg-card-hover: rgba(28, 38, 61, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.4);
  
  --primary-cyan: #00f2fe;
  --primary-blue: #4facfe;
  --primary-purple: #7000ff;
  --accent-pink: #f72585;
  --accent-green: #00f5d4;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 鼠标尾翼 Canvas */
#mouse-trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* 全局背景氛围光晕 */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-glow-1 {
  position: absolute;
  top: -10%;
  left: 15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
}

.bg-glow-2 {
  position: absolute;
  top: 40%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(112, 0, 255, 0.14) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(90px);
}

.bg-glow-3 {
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(247, 37, 133, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(100px);
}

/* 容器通用类 */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--primary-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* 导航栏 Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.logo-text span {
  background: linear-gradient(90deg, #fff, var(--primary-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.nav-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 按钮通用组件 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  color: #040810;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.55);
  color: #000;
}

.btn-recommend {
  background: linear-gradient(135deg, rgba(112, 0, 255, 0.3), rgba(247, 37, 133, 0.3));
  border: 1px solid rgba(247, 37, 133, 0.5);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(247, 37, 133, 0.2);
}

.btn-recommend:hover {
  background: linear-gradient(135deg, rgba(112, 0, 255, 0.6), rgba(247, 37, 133, 0.6));
  border-color: var(--accent-pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247, 37, 133, 0.4);
  color: #fff;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg) translateY(-100%);
  transition: transform 0.8s ease;
}

.btn-glow:hover::after {
  transform: rotate(45deg) translateY(100%);
}

/* 首页 Hero Section */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
}

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

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-cyan) 50%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-cta-group .btn {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

/* 核心特性标语牌 */
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}

.feature-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  padding: 1.2rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.feature-pill:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.feature-pill-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.feature-pill-title {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.feature-pill-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 通用 Section 标语 */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  color: var(--primary-cyan);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* ====================================================
   【核心需求】价格套餐卡片：强行一排 (Horizontal Row Grid)
==================================================== */
.pricing-grid-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 强制桌面端分列一排 4 个 */
  gap: 1.5rem;
  min-width: 900px; /* 保护一排布局不会被过于压缩 */
}

@media (min-width: 992px) {
  .pricing-grid {
    min-width: 0; /* 992px 以上全屏自然一行 4 个 */
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-cyan);
  box-shadow: 0 12px 35px rgba(0, 242, 254, 0.15);
  background: var(--bg-card-hover);
}

.pricing-card.popular {
  border-color: var(--primary-cyan);
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.08) 0%, rgba(18, 25, 41, 0.8) 100%);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.2);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  color: #040810;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}

.plan-price {
  margin-bottom: 1.5rem;
}

.price-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
}

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

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.plan-features li svg {
  width: 16px;
  height: 16px;
  fill: var(--primary-cyan);
  flex-shrink: 0;
}

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

/* 软件客户端下载 Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all var(--transition-normal);
}

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

.client-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.client-info h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.client-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* 5 - 8 篇 文章推荐区域 (Articles Grid) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.8rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.article-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-tag {
  display: inline-block;
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  width: fit-content;
}

.article-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.article-title a {
  color: #fff;
}

.article-title a:hover {
  color: var(--primary-cyan);
}

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

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

.article-meta .read-more {
  color: var(--primary-cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* 用户评价 (Testimonials) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-normal);
}

.review-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

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

.reviewer-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

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

.stars {
  color: #ffd166;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 常见问题 FAQ Accordion */
.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
  color: var(--primary-cyan);
}

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

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

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

/* 文章详情页专用样式 */
.article-page {
  padding-top: 8rem;
  padding-bottom: 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: var(--text-main);
  line-height: 1.8;
}

.article-content h1 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 1.5rem;
  color: var(--primary-cyan);
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-content h3 {
  font-size: 1.2rem;
  color: #fff;
  margin: 1.5rem 0 0.8rem 0;
}

.article-content p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: #cbd5e1;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.8rem;
  color: #cbd5e1;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.internal-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* ====================================================
   【核心需求】页脚 PBN 权重精准输血管道 样式
==================================================== */
footer {
  background: rgba(4, 6, 11, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

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

/* 友情链接 PBN 输血区 (低调、小字号、水平居中、纯正 Dofollow) */
.friendly-links-pbn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 600px;
}

.friendly-links-pbn span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.friendly-links-pbn a {
  font-size: 0.78rem;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.friendly-links-pbn a:hover {
  color: var(--primary-cyan);
  text-decoration: underline;
}

/* 移动端响应式适配 */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none; /* 移动端导航简化 */
  }
  .pricing-grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pricing-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
  }
  .pricing-card {
    min-width: 260px;
    flex: 0 0 auto;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-features {
    grid-template-columns: 1fr;
  }
  .article-content {
    padding: 1.8rem 1.2rem;
  }
}
