/* ==========================================================================
   VPNVL — pricing.css
   套餐页专属样式:价格一览摘要、计费方式切换、选档说明、包含清单、
   付款方式卡、退款步骤。所有设计值引用 base.css 的 :root 令牌。
   ========================================================================== */

/* ---------------------------------------------------------------
   1. 页首行动区
   --------------------------------------------------------------- */
.page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

/* ---------------------------------------------------------------
   2. 价格一览
   --------------------------------------------------------------- */
.price-summary {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--accent-06);
  border: 1px solid var(--accent-16);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-2);
}
.price-summary b {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
}

.plan-table tbody th { white-space: nowrap; }
.plan-table .price-cell {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.plan-table .mono-cell {
  font-family: var(--font-mono);
  white-space: nowrap;
}
.compare-table .price-cell {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.compare-table .mono-cell {
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ---------------------------------------------------------------
   3. 区块标题组
   --------------------------------------------------------------- */
.sec-head {
  max-width: 74ch;
  margin-bottom: 18px;
}
.sec-head h2 { margin-bottom: 10px; }
.sec-head p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}
.sec-head .price-summary { margin-top: 4px; }

/* ---------------------------------------------------------------
   4. 计费方式切换(锚点跳转,不隐藏内容)
   --------------------------------------------------------------- */
.billing-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
}
.billing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.billing-link:hover {
  background: var(--accent-06);
  color: var(--accent-dark);
}
.billing-link.is-current {
  background: var(--panel-3);
  color: var(--accent-dark);
  box-shadow: var(--shadow-chip);
}

/* ---------------------------------------------------------------
   5. 选档说明
   --------------------------------------------------------------- */
.tier-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.tier-note {
  min-width: 0;
  padding: 20px 20px 22px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-rail);
}
.tier-tag {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--accent-dark);
}
.tier-note h3 { font-size: 15px; }
.tier-note p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--text-2);
}

/* ---------------------------------------------------------------
   6. 说明块(计费细则 / 流量包规则 / 退款之后)
   --------------------------------------------------------------- */
.note-block {
  margin-top: 20px;
  padding: 20px 22px 22px;
  border-radius: var(--r-lg);
  background: var(--panel-3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
}
.note-block h3 { font-size: 15.5px; }
.note-block p {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}

.traffic-notes {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.traffic-notes .note-block { margin-top: 0; }

/* ---------------------------------------------------------------
   7. 所有套餐均包含
   --------------------------------------------------------------- */
.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--panel-soft);
  border: 1px solid var(--border-soft);
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--text-2);
}
.check-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--mint-18);
  flex: 0 0 auto;
}
.check-list li > span { min-width: 0; }
.check-list b { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------
   8. 付款方式
   --------------------------------------------------------------- */
.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pay-card {
  min-width: 0;
  padding: 22px;
  border-radius: var(--r-xl);
  background: var(--panel-3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
}
.pay-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.pay-name::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-16);
  flex: 0 0 auto;
}
.pay-card p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--text-2);
}
.pay-note {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--mint-10);
  border: 1px solid var(--mint-28);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
}

/* ---------------------------------------------------------------
   9. 退款步骤
   --------------------------------------------------------------- */
.refund-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: refund-step;
}
.refund-steps li {
  position: relative;
  counter-increment: refund-step;
  padding: 14px 18px 14px 54px;
  border-radius: var(--r-md);
  background: var(--panel-3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-2);
}
.refund-steps li::before {
  content: counter(refund-step);
  position: absolute;
  left: 16px;
  top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-10);
  border: 1px solid var(--accent-16);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
}

/* ---------------------------------------------------------------
   10. 断点
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .tier-notes { grid-template-columns: minmax(0, 1fr); }
  .pay-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .check-list { grid-template-columns: minmax(0, 1fr); }
  .sec-head { margin-bottom: 14px; }
  .note-block { padding: 18px; }
  .pay-card { padding: 18px; }
}

@media (max-width: 640px) {
  .page-cta { gap: 10px; }
  .page-cta .btn { width: 100%; }
  .billing-switch {
    display: flex;
    width: 100%;
    border-radius: var(--r-md);
  }
  .billing-link {
    flex: 1 1 auto;
    padding: 0 14px;
    border-radius: var(--r-md);
  }
  .tier-note { padding: 16px 16px 18px; }
  .refund-steps li { padding: 12px 14px 12px 48px; }
  .refund-steps li::before {
    left: 12px;
    top: 11px;
    width: 24px;
    height: 24px;
  }
}