/* ==========================================================================
   贝贝云 (beibeiyun.cyou) - 白红紫渐变 3D 酷炫暗黑风全站系统
   ========================================================================== */

:root {
  --bg-dark: #070913;
  --bg-card: rgba(15, 20, 35, 0.75);
  --bg-card-hover: rgba(26, 32, 54, 0.9);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 42, 95, 0.5);
  
  /* 白-红-紫 核心渐变色系 */
  --color-white: #ffffff;
  --color-red: #ff2a5f;
  --color-red-bright: #ff4d6d;
  --color-purple: #a200ff;
  --color-purple-deep: #7000ff;
  --accent-green: #00e676;
  
  --gradient-white-red-purple: linear-gradient(135deg, #ffffff 0%, #ff2a5f 50%, #a200ff 100%);
  --gradient-red-purple: linear-gradient(90deg, #ff2a5f 0%, #a200ff 100%);
  
  --text-main: #f0f4f8;
  --text-muted: #a0aec0;
  --text-dim: #64748b;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --max-width: 1280px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-normal: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 42, 95, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 60%, rgba(162, 0, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  color: var(--color-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #fff;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   指令：字体全部换白红紫渐变色 & 3D 字体
   ========================================================================== */
.gradient-3d-text,
h1, h2, h3, .hero-title, .section-title, .logo-text span, .blog-title a, .faq-question span {
  background: var(--gradient-white-red-purple) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
  font-weight: 900;
  /* 3D 文本阴影与立沉滤镜 */
  filter: drop-shadow(0 2px 4px rgba(255, 42, 95, 0.3)) drop-shadow(0 6px 12px rgba(162, 0, 255, 0.4));
  letter-spacing: -0.5px;
}

/* 3D 文字立沉立体投影样式 */
.text-3d {
  position: relative;
  text-shadow: 
    0 1px 0 rgba(255, 42, 95, 0.8),
    0 2px 0 rgba(200, 30, 80, 0.6),
    0 3px 0 rgba(162, 0, 255, 0.5),
    0 4px 0 rgba(112, 0, 255, 0.4),
    0 5px 10px rgba(0, 0, 0, 0.8);
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  height: 76px;
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

/* 指令 图片1生成icon 应用于 Logo */
.logo-icon-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.5), 0 0 10px rgba(162, 0, 255, 0.5);
  transition: transform 0.3s;
}

.logo:hover .logo-icon-img {
  transform: scale(1.1) rotate(5deg);
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 42, 95, 0.8);
}

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

/* 按钮组件 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-red-purple);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 4px 25px rgba(255, 42, 95, 0.4), 0 0 15px rgba(162, 0, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 35px rgba(255, 42, 95, 0.6), 0 0 25px rgba(162, 0, 255, 0.5);
}

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

.btn-secondary:hover {
  background: rgba(255, 42, 95, 0.15);
  border-color: var(--color-red);
  color: #fff;
}

/* ==========================================================================
   Hero 区块布局调整（指令3：图片3位置换取 H1 右边页面并直排上下展示）
   ========================================================================== */
.hero {
  padding: 130px 0 80px 0;
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  color: #ff4d6d;
  margin-bottom: 24px;
  font-weight: 600;
}

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

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 22px;
  letter-spacing: -1px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: 1.6rem;
  font-weight: 800;
}

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

/* 指令3：图片3节点卡片放取 H1 右边页面 + 直排上下展示 (Vertical Stack) */
.hero-nodes-wrapper {
  background: rgba(15, 20, 35, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(162, 0, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-nodes-header {
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-nodes-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
}

.hero-nodes-header p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.nodes-vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

/* 隐蔽滚动条样式 */
.nodes-vertical-stack::-webkit-scrollbar {
  width: 4px;
}
.nodes-vertical-stack::-webkit-scrollbar-thumb {
  background: rgba(255, 42, 95, 0.4);
  border-radius: 4px;
}

.node-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.node-card:hover {
  border-color: var(--color-red);
  transform: translateX(6px);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 20px rgba(255, 42, 95, 0.25);
}

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

.node-flag {
  font-size: 1.6rem;
}

.node-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

.node-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.node-ping {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
}

/* ==========================================================================
   指令：图片2全部平排和自动左右展示 (Continuous Auto-Scroll Marquee)
   ========================================================================== */
.section {
  padding: 80px 0;
}

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

.section-tag {
  color: var(--color-red);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

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

/* 平排与自动左右展示容器 */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.features-horizontal-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marqueeAnimation 32s linear infinite;
}

.marquee-wrapper:hover .features-horizontal-track {
  animation-play-state: paused;
}

@keyframes marqueeAnimation {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.feature-card {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-red);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 42, 95, 0.25);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 42, 95, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

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

/* ==========================================================================
   指令：图片4滑鼠经过价格表会浮动展示 (Floating Hover Display)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
  margin-top: 30px;
  perspective: 1200px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  transform-style: preserve-3d;
}

/* 指令4: 鼠标悬停浮动展示 3D 效果 */
.pricing-card:hover {
  transform: translateY(-18px) scale(1.04) rotateX(4deg) rotateY(-2deg);
  border-color: var(--color-red);
  box-shadow: 
    0 20px 45px rgba(255, 42, 95, 0.35),
    0 0 30px rgba(162, 0, 255, 0.35),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
  z-index: 10;
  background: linear-gradient(180deg, rgba(255, 42, 95, 0.12) 0%, rgba(15, 20, 35, 0.95) 100%);
}

.pricing-card.popular {
  border-color: var(--color-red);
  background: linear-gradient(180deg, rgba(255, 42, 95, 0.1) 0%, rgba(15, 20, 35, 0.85) 100%);
  box-shadow: 0 0 30px rgba(255, 42, 95, 0.2);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-red-purple);
  color: #fff;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(255, 42, 95, 0.4);
}

.pricing-header h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.pricing-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-price {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

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

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

.pricing-features li {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li i {
  color: var(--color-red);
  font-size: 1rem;
  font-weight: bold;
}

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

/* 博客网格 */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--color-purple);
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(162, 0, 255, 0.25);
  background: var(--bg-card-hover);
}

.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 42, 95, 0.15);
  color: #ff4d6d;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
  width: fit-content;
}

.blog-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.45;
}

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

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

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

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
}

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

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

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-red-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}

.author-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.98rem;
}

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

/* FAQ 常见问题 */
.faq-list {
  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 0.3s;
}

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

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

.faq-toggle {
  font-size: 1.3rem;
  transition: transform 0.35s ease;
  color: var(--color-red);
}

.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: 0.95rem;
  line-height: 1.7;
}

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

/* 文章页特定样式 */
.article-page {
  padding-top: 130px;
  padding-bottom: 80px;
}

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

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

.article-title {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.article-body {
  max-width: 880px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.85;
  color: #d1d5db;
}

.article-body h2 {
  font-size: 1.7rem;
  margin: 38px 0 18px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-body h3 {
  font-size: 1.35rem;
  margin: 24px 0 12px 0;
}

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

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

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

.article-body blockquote {
  border-left: 4px solid var(--color-red);
  background: rgba(255, 42, 95, 0.06);
  padding: 18px 24px;
  border-radius: 0 10px 10px 0;
  margin: 26px 0;
  font-style: italic;
  color: var(--text-main);
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(255, 42, 95, 0.12), rgba(162, 0, 255, 0.12));
  border: 1px solid var(--color-red);
  border-radius: var(--radius-md);
  padding: 34px;
  text-align: center;
  margin: 40px 0;
}

/* 页脚 (核心任务2 专用 PBN) */
footer {
  background: #04060c;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

.friend-links-wrapper {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.friend-links-label {
  color: rgba(255, 255, 255, 0.35);
}

.friend-link-item {
  color: rgba(255, 255, 255, 0.45) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.friend-link-item:hover {
  color: var(--color-red) !important;
}

.copyright {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 10px;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-content {
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .nav-links { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
