/**
 * 套餐价格与周期切换样式 (Pricing, FAQ & Feedback Components)
 * 配套 054 薄荷治愈 - 白色明朗纯净版
 */

/* 1. 周期切换开关 (Billing Period Switcher) */
.billing-switcher-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.billing-switcher {
  display: inline-flex;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 14px;
  border: 1.5px dashed var(--border-dashed);
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.billing-tab-btn {
  background: transparent;
  border: none;
  color: #475569;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-tab-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.billing-tab-btn.active {
  background: var(--color-mint-brand);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.billing-tab-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #fef08a;
  color: #854d0e;
  font-weight: 800;
}

.billing-tab-btn.active .billing-tab-badge {
  background: #ffffff;
  color: #065f46;
}

/* 2. 套餐卡片 4 列网格 (Pricing Grid - White Theme) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border: 2px dashed rgba(16, 185, 129, 0.35);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-mint-brand);
  background: #f0fdf4;
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.14);
}

/* 官方主推旗舰卡片 (Featured Flagship Card) */
.pricing-card.featured {
  border: 2px solid var(--color-mint-brand);
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.16);
}

.card-popular-tag {
  position: absolute;
  top: 14px;
  right: -32px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 38px;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pricing-plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.pricing-plan-desc {
  font-size: 0.86rem;
  color: #64748b;
  margin-bottom: 20px;
  min-height: 40px;
}

.pricing-price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(16, 185, 129, 0.3);
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-mint-dark);
}

.price-amount {
  font-family: var(--font-mono);
  font-size: 2.75rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

.plan-features-list {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
}

.plan-features-list li svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-mint-brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-cta-btn {
  width: 100%;
  padding: 12px 18px;
  font-size: 0.98rem;
  border-radius: 10px;
}

/* 3. 使用教程与全平台矩阵 (Tutorials & Platforms) */
.tutorial-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.tutorial-step-card {
  background: #ffffff;
  border: 1.5px dashed rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  padding: 24px 20px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.tutorial-step-card:hover {
  border-color: var(--color-mint-brand);
  transform: translateY(-3px);
  background: #f0fdf4;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.step-num-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-mint-50);
  border: 1.5px dashed var(--color-mint-brand);
  color: var(--color-mint-deep);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}

/* 4. 原创知识文章列表展示 (Articles Section) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: #ffffff;
  border: 1.5px dashed rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-mint-brand);
  background: #f0fdf4;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.12);
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.article-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: #065f46;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px dashed rgba(16, 185, 129, 0.45);
}

.article-date {
  font-size: 0.78rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.article-title-link {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-title-link:hover {
  color: var(--color-mint-dark);
}

.article-excerpt {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.article-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-mint-dark);
}

/* 5. 真实用户客观评价卡片组 (Community Feedback & Real Reviews - Pattern Fig 3) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.review-card {
  background: #111c2e;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, #06b6d4, transparent);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 18px 40px -8px rgba(16, 185, 129, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.review-card:hover::before {
  opacity: 1;
}

.review-stars {
  color: #fbbf24;
  margin-bottom: 14px;
  font-size: 16px;
  letter-spacing: 2.5px;
  line-height: 1;
}

.review-text {
  font-size: 14px;
  line-height: 1.68;
  color: #e2e8f0;
  margin-bottom: 22px;
  flex-grow: 1;
}

.review-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.user-badge-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #34d399;
  font-size: 16px;
  flex-shrink: 0;
}

.user-detail h5 {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 3px 0;
  line-height: 1.3;
}

.user-detail span {
  font-size: 12px;
  color: #94a3b8;
  display: block;
}

/* 6. 常见问题解答手风琴 (FAQ Accordion) */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1.5px dashed rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-item:hover {
  border-color: var(--color-mint-brand);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--color-mint-dark);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding: 0 24px 20px 24px;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.75;
  border-top: 1px dashed rgba(16, 185, 129, 0.2);
  margin-top: 4px;
  padding-top: 16px;
}

/* 7. 页脚样式 (Footer - White & Light Slate Theme) */
.site-footer {
  background: #f8fafc;
  border-top: 1.5px dashed rgba(16, 185, 129, 0.35);
  padding: 72px 0 36px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 320px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: #475569;
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--color-mint-dark);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  font-size: 0.84rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 16px;
}

/* 响应式断点 */
@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tutorial-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .tutorial-steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}
