/* Pro 定价页单独加载，直播流量包继续使用原卡片布局。 */
body[data-checkout="direct"] {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
}
.pro-ambient { position: absolute; inset: var(--header-height) 0 0; overflow: clip; z-index: -1; pointer-events: none; }
.pro-ambient::before {
  content: ""; position: absolute; width: min(60vw, 850px); height: 520px; top: -230px; left: -160px;
  border-radius: 50%; filter: blur(65px);
  background: radial-gradient(ellipse, rgba(255, 162, 84, .14), rgba(255, 192, 133, .05) 55%, transparent 75%);
}
.pro-main {
  /* 仅放大定价主体，固定顶栏的预留高度按其实际尺寸计算。 */
  --pricing-scale: 1.1;
  --pricing-header-offset: calc(var(--header-height) / var(--pricing-scale));
  zoom: var(--pricing-scale);
  --border: var(--line, #eee5dc);
  --panel: var(--surface, #fff);
  --soft: var(--card, #faf9f6);
  flex-grow: 1;
  width: 100%; max-width: 1184px; margin: 0 auto; padding: calc(var(--pricing-header-offset) + 34px) 32px 102px;
  color: var(--ink);
}
.pro-main [hidden] { display: none !important; }
.pro-heading, .monthly-amount, .pro-summary dl > div, .pro-mobile {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.pro-heading { align-items: end; margin-bottom: 25px; }
.pro-eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; color: var(--fox); font-size: 11px; line-height: 1.6; letter-spacing: 1.5px; font-weight: 700; }
.pro-eyebrow svg, .pro-history svg, .pro-product-icon svg {
  flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.pro-heading h1 { margin: 0; font-weight: 750; letter-spacing: -.8px; font-size: clamp(25px,3vw,30px); line-height: 1.4; }
.pro-heading p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.pro-history { display: flex; align-items: center; gap: 6px; padding: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-decoration: none; }
[dir="rtl"] .pro-history svg { transform: scaleX(-1); }
.pro-grid { display: grid; grid-template-columns: minmax(0,1fr) 326px; gap: 22px; align-items: start; }
.pro-selection, .pro-summary { min-width: 0; padding: 24px 26px; border: 1px solid var(--border); border-radius: 20px; background: var(--panel); }
.pro-main fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.pro-main legend, .pro-summary h2 { padding: 0; margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.pro-main legend b { display: inline-grid; place-items: center; margin-inline-end: 5px; width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); font-size: 12px; }
.pro-modes, .pro-durations, .pro-main .pay-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.pro-durations { grid-template-columns: repeat(3,minmax(0,1fr)); }
.pro-main #durations, #monthly-panel { margin-top: 18px; }
#durations legend { font-size: 13px; color: var(--muted); font-weight: 500; }
.pro-choice { cursor: pointer; position: relative; min-width: 0; }
.pro-choice input { position: absolute; inset-inline-start: 14px; top: 16px; margin: 0; width: 16px; height: 16px; accent-color: var(--fox); }
.duration input { opacity: 0; }
.pro-choice .choice-body { display: flex; height: 100%; flex-direction: column; gap: 4px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 650; }
.pro-selection { padding-block-start: 25px; }
.pro-modes { gap: 12px; }
#plan-legend { display: flex; align-items: center; gap: 9px; font-size: 15px; line-height: 1.6; margin-bottom: 15px; }
#plan-legend b { margin: 0; font-size: 11px; font-weight: 600; line-height: 1; }
.pro-choice.mode .choice-body { padding: 13px 15px; padding-inline-start: 41px; gap: 2px; font-weight: 700; line-height: 1.6; }
.pro-choice.mode small { font-size: 11px; }
.pro-choice.mode input { appearance: none; border: 1.5px solid #b2a599; border-radius: 50%; inset-inline-start: 16px; top: 18px; background: var(--panel); }
.pro-choice.mode input:checked { border-color: var(--fox); }
.pro-choice.mode input:checked::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--fox); }
.pro-choice small, .pro-total small, .pro-mobile small { color: var(--muted); font-size: 12px; font-weight: 400; }
.pro-choice input:checked + .choice-body, .pro-main .pay-option.selected { background: var(--fox-soft); border-color: var(--fox); }
.pro-choice input:focus-visible + .choice-body { outline: 2px solid var(--fox); outline-offset: 2px; }
.duration .choice-body { align-items: center; justify-content: center; text-align: center; }
.duration strong { font-size: clamp(19px,2.5vw,27px); font-variant-numeric: tabular-nums; }
.choice-tick { color: var(--fox-deep); visibility: hidden; line-height: 1; }
.pro-choice input:checked + .choice-body .choice-tick { visibility: visible; }
#summary-note { padding: 14px; border-radius: 12px; background: var(--soft); }
#monthly-panel { margin-top: 20px; }
.monthly-amount { gap: 16px; min-height: 142px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--soft); line-height: 1.6; }
.monthly-amount h3 { margin: 0; font-size: 14px; }
.monthly-amount p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.monthly-rate { flex: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
#monthly-price { color: var(--ink); font-size: 36px; font-weight: 750; line-height: 1.2; letter-spacing: -1px; }
#monthly-panel #auto-subscription-state { font-size: .875rem; }
#auto-subscription-state.is-subscribed { margin-block: 20px; margin-inline-start: 10px; }
#monthly-panel button { margin-top: 8px; }
#monthly-panel #auto-change-payment { width: auto; margin-inline: 0; margin-bottom: 0; }
.pro-benefits { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px 24px; margin: 20px 0 18px; padding: 16px 0 21px; border-block: 1px solid var(--border); list-style: none; }
.pro-benefits li { flex: 0 1 auto; min-width: 0; max-width: 100%; display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.6; }
.pro-benefits svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--fox); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pro-benefits b { font-weight: 650; }
#pro-methods > legend { margin-bottom: 30px; }
.pro-main .pay-options { grid-template-columns: repeat(auto-fit,minmax(0,1fr)); }
.pro-main .pay-option { position: relative; justify-content: center; min-width: 0; min-height: 48px; padding: 8px; border-radius: 12px; }
.pro-main .pay-option input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.pro-main .pay-logo { width: 23px; height: 23px; }
.pro-main .pay-option .pay-name { font-size: 13px; }
.pro-main .pay-option.selected { box-shadow: none; }
.pro-main .pay-option:focus-within { outline: none; }
.pro-main .pay-option input:focus-visible ~ .pay-text { text-decoration: underline; text-underline-offset: 3px; }
.pro-main .pay-option .pay-check { display: none; }
.pro-summary { position: sticky; top: calc(var(--pricing-header-offset) + 12px); padding: 23px 23px 18px; box-shadow: 0 6px 24px #4a321708; overflow-wrap: anywhere; }
.pro-summary h2 { margin-bottom: 20px; font-size: 15px; line-height: 1.6; }
.pro-product { font-size: 14px; display: flex; align-items: center; gap: 11px; padding-bottom: 17px; border-bottom: 1px solid var(--border); line-height: 1.6; }
.pro-product-icon { display: grid; flex: 0 0 40px; place-items: center; height: 40px; border-radius: 12px; background: var(--fox-soft); color: var(--fox); }
.pro-product-icon svg { width: 22px; height: 22px; }
.pro-product strong { display: block; font-size: 15px; }
.pro-product p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.pro-summary dl { margin: 12px 0; font-size: 13px; }
.pro-summary dl > div { align-items: baseline; padding: 4px 0; }
.pro-summary dt, #summary-note, #catalog-status { color: var(--muted); }
.pro-summary dd { margin: 0; text-align: end; }
#summary-note, .pro-summary #catalog-status { font-size: 12px; margin: 12px 0; }
.pro-summary #catalog-status.currency-note { font-size: 11px; }
.pro-total { padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; }
.pro-total strong { font-size: 36px; line-height: 1.4; }
[data-pro-buy] { display: block; width: 100%; margin-top: 14px; min-height: 46px; padding: 9px 12px; border: 0; border-radius: 12px; font: inherit; font-weight: 650; color: #fff; background: linear-gradient(125deg,#f78439,#dc5805); cursor: pointer; }
[data-pro-buy]:disabled { cursor: default; opacity: .55; }
.pro-mobile { display: none; }
.purchase-notes { display: flex; flex-wrap: wrap; gap: 27px; margin: 21px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; line-height: 1.6; }
.purchase-notes li { display: flex; align-items: center; gap: 6px; }
.purchase-notes svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width:1155px) {
  .pro-grid { grid-template-columns: minmax(0,1fr) 300px; gap: 17px; }
  .pro-benefits { row-gap: 7px; }
}
@media (max-width:836px) {
  .pro-benefits { margin-block: 15px 13px; padding-block: 13px 15px; row-gap: 6px; }
  .purchase-notes { margin-top: 17px; gap: 9px 18px; font-size: 10px; }
  #pro-methods > legend { margin-bottom: 25px; }
  .pro-main { padding: calc(var(--pricing-header-offset) + 20px) 16px 60px; }
  .pro-eyebrow { font-size: 10px; margin-bottom: 3px; }
  .pro-history { align-self: flex-start; margin-top: 5px; font-size: 10px; }
  .pro-history svg { display: none; }
  .pro-heading { align-items: start; gap: 8px; margin-bottom: 18px; }
  .pro-grid { grid-template-columns: minmax(0,1fr); }
  .pro-summary { position: static; }
  .pro-selection, .pro-summary { padding: 18px 15px; }
  .pro-summary [data-pro-buy] { display: none; }
  .pro-mobile { display: flex; position: fixed; z-index: 12; inset: auto 0 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--border); }
  .pro-mobile > div { min-width: 0; flex: 1; }
  .pro-mobile strong { font-size: 23px; }
  #mobile-caption { display: block; font-size: 11px; color: var(--muted); }
  .pro-mobile button { width: auto; max-width: 47%; margin: 0; }
  [data-checkout="direct"] .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  [data-checkout="direct"] .payment-status { bottom: 104px; }
  .pro-main .pay-option { gap: 4px; }
  .pro-choice .choice-body { padding: 9px 6px; }
  #monthly-panel { margin-top: 16px; }
  .monthly-amount { min-height: 122px; padding: 14px; }
  #monthly-price { font-size: 31px; }
  .monthly-amount p { font-size: 11px; }
  .pro-choice.mode .choice-body { padding: 10px; padding-inline-start: 28px; }
  .pro-choice.mode input { inset-inline-start: 7px; top: 13px; }
  .pro-durations, .pro-main .pay-options { gap: 6px; }
}
.pro-main .pay-option.selected::after { content: "✓"; color: var(--fox-deep); font-weight: 700; }
