/* 好鸭云 (haoyayun.cyou) 官方样式库 */

:root {
  --bg-main: #f4f5f7;
  --bg-card: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --accent-yellow: #facc15;
  --accent-yellow-hover: #eab308;
  --accent-dark: #18181b;
  --accent-dark-hover: #27272a;
  --border-color: #e5e7eb;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 245, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  padding: 16px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-logo img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  border-radius: 8px;
}

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

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

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

.btn-register-nav {
  background-color: #fef08a;
  color: #854d0e;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #fde047;
}

.btn-register-nav:hover {
  background-color: #fde047;
  transform: translateY(-1px);
}

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

/* Background confetti simulation */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(#f87171 20%, transparent 20%),
    radial-gradient(#60a5fa 20%, transparent 20%),
    radial-gradient(#facc15 20%, transparent 20%),
    radial-gradient(#34d399 20%, transparent 20%),
    radial-gradient(#c084fc 20%, transparent 20%);
  background-size: 180px 180px, 220px 220px, 160px 160px, 200px 200px, 240px 240px;
  background-position: 0 0, 40px 60px, 130px 20px, 70px 150px, 110px 90px;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: #18181b;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 500;
}

.blindbox-card-wrapper {
  margin: 0 auto 36px;
  position: relative;
  display: inline-block;
}

.blindbox-card {
  width: 260px;
  height: 260px;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 25px 50px -12px rgba(251, 191, 36, 0.25), 0 0 40px rgba(254, 240, 138, 0.4);
  border: 4px solid #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blindbox-card:hover {
  transform: translateY(-8px) scale(1.03);
}

.blindbox-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  border-radius: 12px;
}

.blindbox-badge {
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #52525b;
  margin-top: 10px;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background-color: var(--accent-dark);
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-primary:hover {
  background-color: var(--accent-dark-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
  background-color: #fde047;
  color: #713f12;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 10px 25px -5px rgba(253, 224, 71, 0.4);
}

.btn-hero-secondary:hover {
  background-color: #facc15;
  transform: translateY(-2px);
}

/* Sections Global */
.section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  background: #fef9c3;
  color: #854d0e;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

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

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

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

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

.pricing-card.popular {
  border: 2px solid #facc15;
  box-shadow: 0 15px 35px -10px rgba(250, 204, 21, 0.3);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #facc15;
  color: #713f12;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

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

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

.pricing-features li::before {
  content: "✓";
  color: #16a34a;
  font-weight: bold;
}

.btn-pricing {
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: 50px;
  background-color: var(--accent-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-pricing:hover {
  background-color: var(--accent-dark-hover);
}

.pricing-card.popular .btn-pricing {
  background-color: #facc15;
  color: #713f12;
}

.pricing-card.popular .btn-pricing:hover {
  background-color: #eab308;
}

/* Article Grid Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

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

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-tag {
  align-self: flex-start;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

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

.article-card h3 a:hover {
  color: #d97706;
}

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

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

.article-read-link {
  color: #d97706;
  font-weight: 700;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

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

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

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

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

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #475569;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

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

/* FAQ Section */
.faq-accordion {
  max-width: 840px;
  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-md);
  overflow: hidden;
}

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

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

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

.faq-icon {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

/* SEO Article Page Styles */
.article-page {
  padding: 40px 0 80px;
}

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

.breadcrumb a:hover {
  color: var(--text-primary);
}

.article-header {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

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

.article-body-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

.article-content {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 36px 0 16px;
  color: var(--text-primary);
  border-left: 4px solid #facc15;
  padding-left: 12px;
}

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

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

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

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

.cta-box {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  color: #ffffff;
  padding: 32px;
  border-radius: var(--radius-md);
  margin: 40px 0;
  text-align: center;
}

.cta-box h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.cta-box p {
  color: #d4d4d8;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.btn-cta-box {
  background: #fde047;
  color: #713f12;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  display: inline-block;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}

.related-list {
  list-style: none;
}

.related-list li {
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.related-list a:hover {
  color: #d97706;
}

/* Footer & PBN Links Pipeline */
footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  margin-top: 60px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.footer-brand img {
  height: 24px;
  width: 24px;
}

.pbn-links-wrapper {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  width: 100%;
  max-width: 600px;
  font-size: 0.82rem;
  color: #9ca3af;
}

.pbn-links-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin-top: 6px;
}

.pbn-links-list a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.82rem;
}

.pbn-links-list a:hover {
  color: #111827;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .nav-links {
    display: none;
  }
  .article-body-wrapper {
    grid-template-columns: 1fr;
  }
}
