/* ==========================================================================
   瑶瑶领先 (yyssr.cyou) - Master Stylesheet
   Design Theme: Light Gray Puff Cloud, Rainbow 3D Font, High Tech Speed
   ========================================================================== */

:root {
  --bg-main: #f4f6f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-orange: #f97316;
  --border-light: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 2px 8px rgba(148, 163, 184, 0.08);
  --shadow-md: 0 8px 24px rgba(148, 163, 184, 0.12);
  --shadow-lg: 0 20px 40px rgba(99, 102, 241, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

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

/* Background Puff Cloud Motifs (指令4: 浅灰色 + 泡芙云元素) */
.bg-puff-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(224, 231, 255, 0.5) 0%, transparent 40%),
              radial-gradient(circle at 80% 60%, rgba(236, 254, 255, 0.6) 0%, transparent 45%),
              linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
}

.puff-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(190, 205, 225, 0.25);
  animation: floatCloud 20s ease-in-out infinite alternate;
}

.puff-cloud-1 {
  width: 320px;
  height: 120px;
  top: 10%;
  left: -50px;
  animation-duration: 22s;
}

.puff-cloud-2 {
  width: 450px;
  height: 160px;
  top: 45%;
  right: -80px;
  animation-duration: 28s;
  animation-delay: -5s;
}

.puff-cloud-3 {
  width: 280px;
  height: 100px;
  bottom: 15%;
  left: 15%;
  animation-duration: 18s;
  animation-delay: -10s;
}

@keyframes floatCloud {
  0% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-15px) translateX(20px) scale(1.03); }
  100% { transform: translateY(10px) translateX(-15px) scale(0.98); }
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 3D Rainbow Gradient Title (指令5: 字体渐变彩虹色3d展示) */
.rainbow-3d-text {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 20%, #eab308 40%, #10b981 60%, #06b6d4 80%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  font-weight: 900;
  letter-spacing: -0.5px;
  filter: drop-shadow(2px 3px 0px rgba(99, 102, 241, 0.25))
          drop-shadow(4px 6px 1px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease;
}

.rainbow-3d-text:hover {
  transform: translateY(-2px) scale(1.01);
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.btn-accent {
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: white;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.45);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  color: var(--primary-color);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.stat-item h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
}

.stat-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Features Grid */
.section-padding {
  padding: 80px 0;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

/* Pricing Section (指令3: 价格表直排自动上下展示) */
.pricing-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.pricing-info {
  padding-right: 20px;
}

.pricing-vertical-wrapper {
  position: relative;
  height: 540px;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 10px 0;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.pricing-vertical-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: verticalPriceScroll 20s linear infinite;
}

.pricing-vertical-track:hover {
  animation-play-state: paused;
}

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

.price-card {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.price-card.featured {
  border-color: var(--primary-color);
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
  box-shadow: var(--shadow-lg);
}

.price-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.price-header {
  margin-bottom: 16px;
}

.price-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-color);
  margin: 10px 0 4px;
}

.price-amount span {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.price-features {
  list-style: none;
  margin: 16px 0 20px;
  border-top: 1px dashed var(--border-light);
  padding-top: 16px;
}

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

.price-features li svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Reviews Marquee (指令6: 客户评论 平排左右自动展示) */
.reviews-marquee-wrapper {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

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

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes horizontalMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); }
}

.review-card {
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.user-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.stars {
  color: #f59e0b;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

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

/* Articles Section & Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.3);
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.read-more-link {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* FAQ Accordion */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question svg {
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

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

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

/* Article Detail Template Styles */
.article-detail-header {
  padding: 60px 0 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--border-light);
}

.article-content {
  max-width: 860px;
  margin: 40px auto;
  background: #ffffff;
  padding: 48px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  line-height: 1.8;
  font-size: 1.05rem;
  color: #334155;
}

.article-content h2 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.article-content h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
}

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

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* Footer & PBN Injection (核心任务 2: 页脚 PBN 权重精准输血管道) */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 40px 0 24px;
  margin-top: 80px;
  text-align: center;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-brand {
  text-align: left;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-divider {
  height: 1px;
  background: var(--border-light);
  margin: 20px 0;
}

/* Strict Requirement: Low-key, aesthetic, small font size friend links section */
.pbn-friend-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.pbn-friend-links span {
  opacity: 0.7;
}

.pbn-friend-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.pbn-friend-links a:hover {
  color: var(--primary-color);
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .pricing-container { grid-template-columns: 1fr; }
  .pricing-info { padding-right: 0; text-align: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .nav-links { display: none; }
  .article-content { padding: 24px; }
  .hero-stats { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
}
