/* ==========================================================================
   购买页（经营/下单页）· 复用 home.css 的 lp- 基础样式与令牌，私有样式带 jn- 前缀
   ========================================================================== */

.jn { background: var(--canvas); min-height: 100vh; }

.jn-back {
  background: transparent; border: 1px solid var(--line);
  color: var(--ink-700); font-size: 14px; font-family: inherit;
  height: 40px; padding: 0 16px; border-radius: var(--r-pill); cursor: pointer;
}
.jn-back:hover { border-color: var(--brand-300); color: var(--brand-700); }

.jn-plans { padding-top: 56px; }

/* ---------- 套餐卡 ---------- */
.jn-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.jn-plan {
  position: relative; text-align: left; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--r-lg); padding: 24px 22px 22px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}
.jn-plan:hover { border-color: var(--brand-300); }
.jn-plan:active { transform: translateY(1px); }
.jn-plan.is-active { border-color: var(--brand-600); box-shadow: var(--sh-card); }
.jn-plan__badge {
  position: absolute; top: -11px; right: 18px;
  background: var(--amber-500); color: #fff;
  font-size: 12px; font-weight: 650; padding: 4px 12px; border-radius: var(--r-pill);
}
.jn-plan__head { display: flex; align-items: center; gap: 10px; }
.jn-plan__name { font-size: 17px; font-weight: 650; color: var(--ink-900); }
.jn-plan__discount {
  font-size: 12px; font-weight: 650; color: var(--risk-600);
  background: var(--risk-100); padding: 2px 9px; border-radius: var(--r-pill);
}
/* 单月费用：主视觉数字，放大突出各套餐的每月优势 */
.jn-plan__monthly { display: flex; align-items: baseline; gap: 4px; color: var(--ink-500); margin-top: 2px; }
.jn-plan__monthly b { font-size: 40px; line-height: 1; font-weight: 700; color: var(--brand-600); }
.jn-plan__monthly-unit { font-size: 15px; font-weight: 600; color: var(--ink-500); }
/* 总价：清晰可读，不弱化；原价划线在其后 */
.jn-plan__total { display: flex; align-items: baseline; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ink-700); }
.jn-plan__total s { font-size: 14px; font-weight: 400; color: var(--ink-400); }
.jn-plan__note { font-size: 13px; color: var(--ink-400); line-height: 1.5; }
.jn-plan__radio {
  position: absolute; top: 22px; right: 22px;
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-200);
}
.jn-plan.is-active .jn-plan__radio { border-color: var(--brand-600); background: var(--brand-600); }
.jn-plan.is-active .jn-plan__radio::after {
  content: ""; position: absolute; left: 6px; top: 6px;
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
}

/* ---------- 共享权益 ---------- */
.jn-benefits {
  margin-top: 32px; background: var(--brand-050);
  border-radius: var(--r-lg); padding: 24px 26px;
}
.jn-benefits h3 { font-size: 16px; font-weight: 650; color: var(--ink-900); margin: 0 0 14px; }
.jn-benefit-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px;
}
.jn-benefit-list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-700); }
.jn-benefit-list li::before {
  content: ""; position: absolute; left: 2px; top: 6px;
  width: 13px; height: 7px; border-left: 2px solid var(--brand-600);
  border-bottom: 2px solid var(--brand-600); transform: rotate(-45deg);
}

/* ---------- 结算区 ---------- */
.jn-checkout { margin-top: 32px; display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; align-items: start; }
.jn-order {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; display: grid; gap: 16px;
}
.jn-order h3 { font-size: 18px; font-weight: 650; color: var(--ink-900); margin: 0; }
.jn-order__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--ink-500); }
.jn-order__row b { color: var(--ink-900); font-weight: 650; }
.jn-order__row--total { padding-top: 14px; border-top: 1px solid var(--line); }
.jn-order__row--total b { font-size: 26px; color: var(--brand-600); font-weight: 700; }

.jn-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.jn-pay__label { font-size: 14px; font-weight: 600; color: var(--ink-700); width: 100%; }
.jn-pay__opt {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 10px 16px; font-size: 15px; color: var(--ink-700);
}
.jn-pay__opt.is-active { border-color: var(--brand-600); background: var(--brand-050); color: var(--brand-700); }
.jn-pay__opt input { accent-color: var(--brand-600); }

.jn-guarantee { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.jn-guarantee h3 { font-size: 16px; font-weight: 650; color: var(--ink-900); margin: 0 0 14px; }
.jn-guarantee ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.jn-guarantee li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-500); line-height: 1.5; }
.jn-guarantee li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 12px; height: 7px; border-left: 2px solid var(--ok-600);
  border-bottom: 2px solid var(--ok-600); transform: rotate(-45deg);
}

/* ---------- 下单成功浮层 ---------- */
.jn-done {
  position: fixed; inset: 0; z-index: 50;
  background: var(--scrim); display: flex; align-items: center; justify-content: center; padding: 24px;
}
.jn-done__card {
  background: var(--surface); border-radius: var(--r-xl);
  padding: 36px 32px; max-width: 400px; width: 100%; text-align: center;
  box-shadow: var(--sh-pop);
}
.jn-done__check {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--ok-100); position: relative;
}
.jn-done__check::after {
  content: ""; position: absolute; left: 21px; top: 17px;
  width: 16px; height: 9px; border-left: 3px solid var(--ok-600);
  border-bottom: 3px solid var(--ok-600); transform: rotate(-45deg);
}
.jn-done__card h3 { font-size: 20px; font-weight: 700; color: var(--ink-900); margin: 0 0 10px; }
.jn-done__no { font-size: 14px; color: var(--ink-500); margin: 0 0 8px; }
.jn-done__tip { font-size: 14px; color: var(--ink-500); margin: 0 0 22px; line-height: 1.6; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .jn-plan-grid { grid-template-columns: 1fr; }
  .jn-checkout { grid-template-columns: 1fr; }
  .jn-benefit-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .jn-plans { padding-top: 40px; }
  .jn-plan__monthly b { font-size: 28px; }
}

/* 原生弹窗管理焦点与 Esc 关闭。 */
.jn-result-dialog { padding: 0; border: 0; border-radius: var(--r-xl); max-width: calc(100vw - 48px); background: transparent; }
.jn-result-dialog::backdrop { background: var(--scrim); }
.jn-result-dialog .jn-done__card { margin: 0 auto; }
.jn-result-dialog [data-close] { margin-top: 16px; }
