/* ==========================================================================
   白月光 (Baiyueguang) - 极简黄白现代风样式表 (Yellow & White Wallpaper Theme)
   ========================================================================== */

:root {
  --bg-wallpaper: #fafaf7;
  --bg-card: #ffffff;
  --bg-card-hover: #fffef9;
  --border-color: rgba(226, 232, 240, 0.9);
  --border-yellow: rgba(245, 158, 11, 0.35);
  
  --yellow-primary: #f59e0b;
  --yellow-amber: #d97706;
  --yellow-light: #fffbeb;
  --yellow-badge: #fef3c7;
  
  --gradient-brand: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
  --gradient-btn: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-btn-hover: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-yellow: 0 15px 35px rgba(245, 158, 11, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* Yellow & White Ambient Wallpaper Lighting */
body::before {
  content: "";
  position: fixed;
  top: -15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 65vh;
  background: radial-gradient(ellipse at top, rgba(253, 230, 138, 0.35) 0%, rgba(254, 243, 199, 0.15) 45%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  background: var(--yellow-badge);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  color: #b45309;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-main);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 680px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

/* Header & Navigation Directory */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

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

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-btn);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

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

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

.nav-directory a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-directory a:hover {
  color: var(--yellow-amber);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: var(--shadow-yellow);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  background: var(--yellow-light);
  border-color: var(--yellow-primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 2.25rem;
  font-size: 1.05rem;
}

/* Hero Section (Yellow & White Format) */
.hero-section {
  padding: 4.5rem 0 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

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

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
  color: var(--text-main);
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--yellow-amber);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Dynamic Visual Card - White Card with Yellow Accents */
.hero-right {
  position: relative;
}

.hero-dynamic-card {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.12), 0 4px 12px rgba(0,0,0,0.03);
  animation: floatCard 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.node-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--yellow-light);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: all 0.2s ease;
}

.node-item:hover {
  background: #fef3c7;
  border-color: var(--yellow-primary);
}

.node-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.node-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.node-metrics {
  text-align: right;
}

.node-ping {
  font-size: 0.85rem;
  font-weight: 800;
  color: #059669;
}

.speed-bar-container {
  width: 70px;
  height: 5px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.speed-bar-fill {
  height: 100%;
  background: var(--gradient-btn);
  border-radius: 999px;
  animation: speedPulse 3s ease-in-out infinite alternate;
}

@keyframes speedPulse {
  0% { width: 60%; }
  100% { width: 95%; }
}

/* Feature Section */
.features-section {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-yellow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.12);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--yellow-badge);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--yellow-amber);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

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

/* Unlock Section (Streaming & AI) */
.unlock-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(254, 243, 199, 0.4) 50%, transparent 100%);
}

.unlock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.unlock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--yellow-light);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #92400e;
}

/* Pricing Section (Yellow Highlight) */
.pricing-section {
  padding: 5rem 0 3rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.pricing-card.featured {
  border: 2px solid var(--yellow-primary);
  background: #fffdf5;
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.2);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

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

.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--yellow-amber);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

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

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

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.plan-features svg {
  width: 16px;
  height: 16px;
  fill: #d97706;
  flex-shrink: 0;
}

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

/* Articles Section (Yellow White Theme) */
.articles-section {
  padding: 5rem 0;
  background: #fefefe;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.article-card:hover {
  border-color: var(--border-yellow);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
}

.article-card-banner {
  height: 140px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.article-card-banner svg {
  width: 48px;
  height: 48px;
  fill: #d97706;
  opacity: 0.9;
}

.article-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.article-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title a:hover {
  color: var(--yellow-amber);
}

.article-excerpt {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.article-link {
  color: var(--yellow-amber);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.article-link:hover {
  gap: 0.6rem;
}

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

/* Testimonials */
.testimonials-section {
  padding: 5rem 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

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

.user-name {
  font-weight: 700;
  font-size: 0.95rem;
}

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

/* FAQ Accordion */
.faq-section {
  padding: 5rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

details {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease;
}

details[open] {
  border-color: var(--yellow-primary);
  background: #fffdf5;
}

summary {
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--yellow-amber);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

/* Footer: Clean White & Yellow Accent */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  padding: 3rem 0;
  margin-top: 4rem;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--yellow-amber);
}

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

/* Sub-page Specific Styling */
.page-header {
  padding: 4rem 0 2rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
  background: radial-gradient(ellipse at top, rgba(253, 230, 138, 0.3) 0%, transparent 70%);
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

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

.content-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-soft);
}

.content-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2rem 0 1rem 0;
  color: var(--text-main);
}

.content-box h2:first-child {
  margin-top: 0;
}

.content-box p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.content-box ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

.content-box li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Responsive Breakdown */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-directory {
    display: none;
  }

  .hero-headline {
    font-size: 2.15rem;
  }

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

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

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1.25rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .content-box {
    padding: 1.75rem;
  }
}
