/* ==========================================================================
   白月光官网 (bygyun.mom) - 现代科技暗黑风核心设计系统 CSS
   ========================================================================== */

:root {
  --bg-dark: #0a0c14;
  --bg-card: rgba(18, 22, 36, 0.75);
  --bg-card-hover: rgba(28, 34, 56, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(147, 112, 219, 0.3);
  
  --primary-accent: #9d4edd;
  --cyan-accent: #00f2fe;
  --pink-accent: #ff007f;
  --gold-accent: #ffb703;
  --text-main: #f0f4fc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shadow-glow: 0 10px 30px rgba(157, 78, 221, 0.2);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  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;
  min-height: 100vh;
}

/* Background Canvas (Rain + Half Moon) */
#rainMoonCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

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

a:hover {
  color: #4facfe;
  text-shadow: 0 0 8px rgba(79, 172, 254, 0.4);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

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

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

.logo-icon {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.6));
}

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

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

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

.btn-primary {
  background: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 128, 0.5);
  color: #fff;
}

/* 5. 3D Rainbow Gradient Text Effect */
.rainbow-3d-text {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(
    90deg, 
    #ff007f, #7928ca, #00f2fe, #4facfe, #ffb703, #ff007f
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowMove 6s linear infinite;
  text-shadow: 
    0 2px 10px rgba(157, 78, 221, 0.4),
    0 4px 20px rgba(0, 242, 254, 0.2);
  display: inline-block;
  line-height: 1.25;
}

@keyframes rainbowMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero Section */
.hero-section {
  padding: 70px 0 50px 0;
  text-align: center;
}

.hero-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

/* 2. H1 右侧实时节点流量和下载人数 */
.live-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 8px 16px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00ff87;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff87;
  animation: pulse 1.5s infinite;
}

.pulse-dot.cyan {
  background-color: #00f2fe;
  box-shadow: 0 0 8px #00f2fe;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 36px auto;
}

.hero-cta-box {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0 80px 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  padding: 10px;
  background: rgba(157, 78, 221, 0.15);
  border-radius: var(--radius-md);
  color: var(--cyan-accent);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

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

/* 3. 价格表直排自动上下展示 (Vertical Auto Scroll Pricing) */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

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

.pricing-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto 80px auto;
  height: 440px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: rgba(15, 18, 30, 0.6);
  backdrop-filter: blur(12px);
}

.pricing-scroll-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  animation: scrollVertical 22s linear infinite;
}

.pricing-wrapper:hover .pricing-scroll-container {
  animation-play-state: paused;
}

@keyframes scrollVertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.pricing-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  gap: 20px;
  transition: border-color 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--cyan-accent);
  background: var(--bg-card-hover);
}

.pricing-plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.pricing-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-accent);
  margin-left: 8px;
}

.pricing-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-accent);
}

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

.pricing-features {
  font-size: 0.9rem;
  color: var(--text-sub);
}

/* 6. 客户评论 平排左右自动展示 (Horizontal Auto Scroll Reviews) */
.reviews-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 80px;
  padding: 10px 0;
}

.reviews-scroll-container {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollHorizontal 30s linear infinite;
}

.reviews-wrapper:hover .reviews-scroll-container {
  animation-play-state: paused;
}

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

.review-card {
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

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

.user-info h4 {
  color: #fff;
  font-size: 1rem;
}

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

.rating-stars {
  color: var(--gold-accent);
  margin-left: auto;
  font-size: 0.9rem;
}

.review-content {
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* SEO Articles Showcase Grid */
.articles-section {
  margin-bottom: 80px;
}

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

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

.article-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.article-tag {
  font-size: 0.75rem;
  color: var(--cyan-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.article-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

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

.article-link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* FAQ Accordion Section */
.faq-section {
  max-width: 900px;
  margin: 0 auto 90px auto;
}

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

.faq-question {
  width: 100%;
  padding: 20px 24px;
  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.3rem;
  transition: transform 0.3s ease;
  color: var(--cyan-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

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

/* Footer Section & PBN Links */
footer {
  background: rgba(6, 8, 14, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
}

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

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

.footer-nav a {
  color: var(--text-sub);
  font-size: 0.88rem;
}

/* 核心任务 2：页脚 PBN 权重链接 (Dofollow, Subtle & Clean) */
.pbn-links-area {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #525a70;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.pbn-links-area span {
  opacity: 0.6;
}

.pbn-links-area a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

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

/* Responsive Rules */
@media (max-width: 768px) {
  .rainbow-3d-text {
    font-size: 2rem;
  }
  .nav-links {
    display: none;
  }
  .pricing-card {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  .live-stats-badge {
    margin-top: 10px;
  }
}
