/* ============ 价格页专属样式（继承 style.css） ============ */

body {
  background: var(--bg);
}

/* Hero */
.price-hero {
  padding: 120px 0 32px;
  text-align: center;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 22px;
  color: var(--fg);
}

.hero-sub {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
}

.gradient-text {
  background: linear-gradient(120deg, #0a84ff 0%, #5e5ce6 50%, #bf5af2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 计费切换 */
.cycle-toggle-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0 24px;
}

.cycle-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
}

.cycle-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cycle-btn.active {
  background: #fff;
  color: var(--fg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

[data-theme="dark"] .cycle-btn.active {
  background: #1c1c1e;
}

.cycle-badge {
  background: linear-gradient(120deg, #0a84ff, #5e5ce6);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

/* 套餐卡片网格 */
.pricing-grid-section {
  padding: 28px 0 80px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.plan-card.popular {
  background: linear-gradient(180deg, #0a84ff 0%, #0050d0 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 48px rgba(10, 132, 255, 0.32);
  transform: scale(1.04);
}

.plan-card.popular:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 24px 56px rgba(10, 132, 255, 0.42);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(120deg, #ffd60a, #ff9f0a);
  color: #1c1c1e;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(255, 159, 10, 0.3);
}

.plan-name {
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 6px;
}

.plan-tagline {
  font-size: 14px;
  margin: 0 0 20px;
  opacity: 0.7;
}

.plan-card.popular .plan-tagline,
.plan-card.popular .plan-feature {
  color: rgba(255,255,255,0.88);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.plan-price .currency {
  font-size: 22px;
  font-weight: 600;
  opacity: 0.7;
}

.plan-price .amount {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan-price .cycle {
  font-size: 14px;
  opacity: 0.6;
  margin-left: 6px;
}

.plan-unit {
  font-size: 13px;
  opacity: 0.65;
  margin-bottom: 22px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex: 1;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14.5px;
  color: var(--fg);
  opacity: 0.85;
}

.plan-feature::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: rgba(10, 132, 255, 0.12);
  color: #0a84ff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.plan-card.popular .plan-feature::before {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.plan-cta {
  display: inline-block;
  text-align: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #0a84ff;
  color: #fff;
}

.plan-cta:hover {
  background: #0066cc;
  transform: translateY(-1px);
}

.plan-card.popular .plan-cta {
  background: #fff;
  color: #0a84ff;
}

.plan-card.popular .plan-cta:hover {
  background: #f2f2f7;
}

/* 对比表 */
.compare-section {
  padding: 80px 0;
  background: var(--panel-2);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  text-align: center;
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 720px;
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--panel-2);
  font-weight: 600;
  color: var(--fg);
}

.compare-table .th-feature {
  text-align: left;
  width: 220px;
}

.compare-table .th-pro {
  background: linear-gradient(180deg, #0a84ff, #0066cc);
  color: #fff;
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table .check {
  color: #0a84ff;
  font-weight: 700;
}

.compare-table .cross {
  color: #c7c7cc;
}

/* 适合谁 */
.audience-section {
  padding: 80px 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.audience-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}

.audience-emoji {
  font-size: 36px;
  margin-bottom: 12px;
}

.audience-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--fg);
}

.audience-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 12px;
}

.audience-plan {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.audience-popular {
  color: #0a84ff;
  font-weight: 600;
}

/* FAQ */
.faq-section {
  padding: 80px 0;
  background: var(--panel-2);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  padding: 0;
}

.faq-toggle {
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  padding-right: 32px;
}

.faq-item.open .faq-a {
  max-height: 200px;
  margin-top: 12px;
}

/* CTA */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.cta-sub {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 32px;
}

.btn-large {
  padding: 16px 36px;
  font-size: 17px;
}

/* Footer */
.footer {
  background: var(--panel-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.footer h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.footer a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--fg);
}

.footer-contact {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* 响应式 */
@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-card.popular {
    transform: none;
  }
  .plan-card.popular:hover {
    transform: translateY(-4px);
  }
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .price-hero {
    padding-top: 90px;
  }
}


/* 折扣标签 - "比入门省 X%" */
.plan-card .discount-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 149, 0, 0.12);
  color: #ff9500;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.plan-card { position: relative; }
