/* =============================================================
   AI达人BD系统（海外版）—— pricing.html 页面专属样式
   依赖 assets/css/style.css 的令牌与通用组件（.price-toggle / .price-grid
   / .price-card / .table-wrap / .compare / .faq / .feature-card）。
   此处只写价格页需要的补充与对齐规则，不改动全局设计系统。
   ============================================================= */

/* ---------- 1 价格区：切换器 + 三档卡片 ---------- */
.billing-switch {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: 28px;
}
.billing-switch-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }

.price-grid { align-items: stretch; }

/* 三卡与卡内各行之上的间距统一由本页控制，避免与全局 gap 叠加 */
.price-card { gap: 0; padding: 36px 30px 32px; }
.price-card:not(.price-card--featured):hover { box-shadow: var(--shadow); }

.price-head { display: flex; flex-direction: column; gap: 8px; }
.price-card .price-desc { min-height: calc(1.7em * 2); } /* 固定两行，保证三卡价格行水平对齐 */
.price-card .price-amount { margin-top: 22px; }
.price-card .price-note { margin-top: 10px; min-height: 1.6em; }
.price-card .btn { margin-top: 22px; }
.price-card .price-list { margin-top: 24px; flex: 1; align-content: start; }
.price-card--featured .price-amount .num { color: var(--brand-700); }

/* 通用说明条（价格区 / 对比表下） */
.note-strip {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 24px; padding: 14px 18px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 12.5px; line-height: 1.7; color: var(--text-2);
}
.note-strip svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--brand-600); }
.note-strip b { color: var(--text); font-weight: 650; }
.note-strip--table { margin-top: 18px; }

/* ---------- 2 功能对比表 ---------- */
.compare tbody th {
  font-weight: 600; color: var(--text); text-align: left;
  letter-spacing: 0; text-transform: none; background: #fff; font-size: 13.5px;
}
.compare tbody th { white-space: nowrap; }
.compare tr:last-child th { border-bottom: 0; }
.compare .col-featured { background: #fff8fa; }
.compare thead th.col-featured { background: #fdeff4; color: var(--brand-700); }
.compare tbody tr:hover .col-featured { background: #fef3f6; }
.compare .yes { margin-right: 4px; }
.compare td { line-height: 1.65; }

.table-hint { display: none; margin: 0 0 12px; font-size: 12px; color: var(--text-3); }

/* ---------- 3 用量与计费说明 ---------- */
.usage-card { display: flex; flex-direction: column; }
.usage-card .feature-icon { margin-bottom: 16px; }
.usage-formula {
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 12px; line-height: 1.65; color: var(--text-2);
}
.usage-formula b { color: var(--brand-700); font-weight: 700; }

/* ---------- 4 增强包 ---------- */
.addon-card { display: flex; flex-direction: column; gap: 14px; }
.addon-top { display: flex; align-items: flex-start; gap: 14px; }
.addon-top .feature-icon { margin-bottom: 0; flex: 0 0 auto; }
.addon-top h3 { margin: 0; padding-top: 2px; min-width: 0; }
.addon-price { margin-left: auto; text-align: right; white-space: nowrap; }
.addon-price b { display: block; font-size: 14px; font-weight: 750; color: var(--text); letter-spacing: -.01em; }
.addon-price small { display: block; margin-top: 2px; font-size: 11px; color: var(--text-3); }
.addon-who { font-size: 12.5px; line-height: 1.6; font-weight: 650; color: var(--brand-700); }
.addon-who b { color: var(--brand-700); }
.addon-card .addon-desc { margin: 0; font-size: 13.5px; line-height: 1.75; }

/* ---------- 5 计费与发票 ---------- */
.billing-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: start; }
.billing-copy .lead { margin-top: 16px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pay-chip {
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.pay-chip svg { width: 16px; height: 16px; color: var(--brand-600); }

.billing-list.check-list { margin-top: 0; gap: 12px; }
.billing-list li {
  display: flex; gap: 12px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow-sm);
}
.billing-list li > div { min-width: 0; }
.billing-list li b { display: block; font-size: 14.5px; color: var(--text); font-weight: 650; }
.billing-list li p { margin-top: 4px; font-size: 13.5px; line-height: 1.75; color: var(--text-2); }

/* 年付 / 月付对比小卡（补齐左栏留白） */
.billing-summary {
  margin-top: 26px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
}
.billing-summary-title { font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.billing-summary ul { margin-top: 14px; display: grid; gap: 12px; }
.billing-summary li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding-bottom: 12px; border-bottom: 1px dashed var(--line);
}
.billing-summary li:last-child { padding-bottom: 0; border-bottom: 0; }
.billing-summary li span { width: 62px; flex: 0 0 auto; font-size: 13px; font-weight: 650; color: var(--text-2); }
.billing-summary li b { font-size: 14px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.billing-summary li em { font-style: normal; font-size: 12px; font-weight: 650; color: var(--green); }
.billing-summary-note { margin-top: 14px; font-size: 12px; line-height: 1.65; color: var(--text-3); }

/* ---------- 6 本页响应式 ---------- */
@media (max-width: 1120px) {
  .billing-grid { gap: 36px; }
}
@media (max-width: 960px) {
  .billing-grid { grid-template-columns: 1fr; gap: 32px; }
  .price-card { padding: 30px 26px 28px; }
}
@media (max-width: 720px) {
  .price-grid { margin-top: 0; }
  .price-card .price-desc { min-height: 0; }
  .price-card { padding: 28px 22px 26px; }
  .billing-switch { margin-top: 22px; }
  .addon-top { flex-wrap: wrap; }
  .addon-price { margin-left: 0; text-align: left; width: 100%; }
  .addon-price b, .addon-price small { display: inline; }
  .addon-price small { margin-left: 6px; }
  .table-hint { display: block; }
  .compare tbody th { white-space: normal; }
}
