.pricing-hero {
  padding: 88px 0 40px;
  text-align: center;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(0, 168, 87, 0.12), transparent 70%), var(--paper-2);
}
.pricing-hero .eyebrow {
  justify-content: center;
}
.pricing-title {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
}
.pricing-hero .section-desc {
  margin: 14px auto 0;
  max-width: 560px;
}

.billing-toggle {
  display: inline-flex;
  margin-top: 36px;
  padding: 5px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.billing-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  color: var(--text-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.billing-toggle button[aria-checked='true'] {
  background: var(--ink);
  color: var(--white);
}
.save-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
}
.save-badge:empty {
  display: none;
}

/* ===== 套餐卡片 ===== */
.plans-section {
  padding: 24px 0 40px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.plan-featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 30px 70px rgba(8, 17, 16, 0.28), 0 0 0 1px rgba(0, 168, 87, 0.4) inset;
  transform: translateY(-12px);
}
.plan-ribbon {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}
.plan-name {
  font-size: 20px;
  font-weight: 700;
}
.plan-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}
.plan-featured .plan-desc {
  color: rgba(237, 234, 225, 0.66);
}
.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  min-height: 84px;
}
.price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-unit {
  color: var(--muted);
  font-size: 15px;
}
.plan-featured .price-unit {
  color: rgba(237, 234, 225, 0.6);
}
.price-note {
  flex-basis: 100%;
  font-size: 13px;
  color: #3ad48a;
}
.plan:not(.plan-featured) .price-note {
  color: var(--green-strong);
}
.plan-cta .btn,
.plan-cta .dl-actions .btn {
  width: 100%;
}
.plan-featured .btn-primary {
  box-shadow: 0 10px 30px rgba(0, 168, 87, 0.45);
}
.plan-features {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.plan-featured .plan-features {
  border-top-color: var(--ink-line);
}
.plan-features li {
  position: relative;
  padding-left: 28px;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m5 10.5 3.2 3L15 7" fill="none" stroke="%23008f4a" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/12px no-repeat;
}
.plan-featured .plan-features li::before {
  background-color: rgba(0, 168, 87, 0.2);
}
.plan-features li.no {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(113, 137, 122, 0.5);
}
.plan-features li.no::before,
.compare i.no {
  background: rgba(113, 137, 122, 0.14) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m6.5 6.5 7 7m0-7-7 7" fill="none" stroke="%2371897a" stroke-width="2.2" stroke-linecap="round"/></svg>') center/12px no-repeat;
}
.plan-status {
  font-size: 13px;
  color: var(--muted);
}
.plan-status:empty {
  display: none;
}

/* 周期切换 */
[data-billing='year'] [data-period='month'],
[data-billing='month'] [data-period='year'] {
  display: none !important;
}

/* 数据状态 */
[data-plan].is-loading .price,
[data-plan].is-loading .pack-price {
  color: transparent;
  background: linear-gradient(90deg, rgba(113, 137, 122, 0.15), rgba(113, 137, 122, 0.3), rgba(113, 137, 122, 0.15));
  background-size: 200% 100%;
  border-radius: 8px;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
[data-plan].is-unavailable {
  opacity: 0.6;
}
[data-plan].is-unavailable .plan-status,
[data-plan].is-error .plan-status {
  color: #b4441c;
}
.is-hidden {
  display: none !important;
}

/* ===== 加油包 ===== */
.packs-section {
  background: var(--paper);
}
.packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.pack {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
}
.pack-featured {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.pack-points {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.pack-points span {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}
.pack-price {
  display: inline-block;
  margin: 10px 0 12px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pack-meta {
  font-size: 13px;
  color: var(--muted);
}

/* ===== 对比表 ===== */
.compare-section {
  padding-top: 96px;
}
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
}
.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
.compare th,
.compare td {
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.compare th[scope='row'] {
  text-align: left;
  font-weight: 500;
}
.compare thead th {
  font-size: 14px;
  color: var(--muted);
  background: var(--paper-2);
}
.compare tbody tr:last-child > * {
  border-bottom: 0;
}
.compare .col-featured {
  background: rgba(0, 168, 87, 0.05);
}
.compare thead .col-featured {
  color: var(--green-strong);
  background: var(--green-soft);
}
.compare small {
  color: var(--muted);
}
.compare i.yes {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m5 10.5 3.2 3L15 7" fill="none" stroke="white" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/14px no-repeat;
  vertical-align: middle;
}
.compare i.no {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  vertical-align: middle;
}

.faq-narrow {
  max-width: 860px;
}

@media (max-width: 960px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .plan-featured {
    transform: none;
    order: -1;
  }
  .packs {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}
