/* 充值定价页：参考插件 home 的套餐卡片与订单弹窗，保留官网固定导航。 */
.pricing-page { margin: 0; background: #f8f5f0; }
.pricing-main { min-height: 100vh; padding: calc(var(--header-height) + 52px) 32px 80px; }
.pricing-inner { max-width: 1120px; margin: 0 auto; }
.pricing-heading { margin-bottom: 28px; }
.pricing-heading h1 { margin: 0 0 10px; font-size: 2rem; line-height: 1.3; }
.pricing-heading p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.pricing-section { padding: 24px; border: 1px solid #ece3d9; border-radius: 22px; background: var(--paper); box-shadow: 0 12px 36px rgba(64, 45, 25, .055); }
.pricing-section + .pricing-section { margin-top: 24px; }
.payment-demo-note { margin: 0 0 20px; padding: 10px 14px; border-radius: 10px; background: #fff6eb; color: var(--fox-deep); font-size: .875rem; line-height: 1.6; }
.pricing-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.pricing-section-head h2 { margin: 0 0 7px; font-size: 1.125rem; line-height: 1.4; }
.pricing-section-head p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.renew-card { position: relative; overflow: hidden; border: 1px solid #ff9b50; border-radius: 17px; background: linear-gradient(112deg, #fffaf5, #fff 56%, #fff6ec); box-shadow: 0 8px 24px rgba(232, 93, 4, .06); }
.renew-card::after { position: absolute; right: -60px; bottom: -95px; width: 210px; height: 210px; border-radius: 50%; background: rgba(255, 199, 146, .18); content: ""; pointer-events: none; }
.renew-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid #f3ded0; font-size: 1rem; font-weight: 650; }
.renew-top > svg { width: 20px; height: 20px; color: var(--fox); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.recommend-tag { padding: 4px 9px; border-radius: 999px; background: var(--fox); color: #fff; font-size: .75rem; font-weight: 650; line-height: 1.4; box-shadow: 0 3px 10px rgba(232, 93, 4, .15); white-space: nowrap; }
.renew-main { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 20px 26px; padding: 26px 22px; }
.renew-name { font-size: 1.125rem; }
.renew-action { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.renew-price { display: flex; align-items: baseline; gap: 3px; }
.renew-price .currency { color: var(--fox-deep); font-size: 1rem; font-weight: 650; }
.renew-price strong { font-size: 2.5rem; line-height: 1.1; letter-spacing: -.04em; }
.renew-price .period { margin-left: 3px; color: var(--muted); font-size: .875rem; }
.renew-benefits { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 0; padding: 0; list-style: none; }
.renew-benefits li { display: flex; align-items: center; gap: 8px; font-size: .875rem; line-height: 1.6; }
.renew-benefits svg { width: 18px; height: 18px; flex-shrink: 0; color: #009b5e; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.renew-benefits b, .plan-feature b { color: var(--fox-deep); }
.renew-note { position: relative; z-index: 1; margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: .875rem; line-height: 1.75; }
.plans-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 22px; color: var(--muted); font-size: .875rem; line-height: 1.6; text-align: center; }
.plans-divider::before, .plans-divider::after { height: 1px; flex: 1; background: #e7e0d7; content: ""; }
.pricing-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pricing-plan { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 18px 16px 16px; border: 1px solid #e6e1db; border-radius: 16px; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.pricing-plan.is-selected { border-color: #ffb67f; background: linear-gradient(#fffaf6, #fff 70%); box-shadow: 0 10px 24px rgba(232, 93, 4, .07); }
.pricing-plan > .recommend-tag { position: absolute; top: -10px; right: 12px; }
.pricing-plan h3 { margin: 0; font-size: 1rem; line-height: 1.5; }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin: 14px 0 7px; }
.plan-price > span { color: var(--fox-deep); font-size: 1rem; font-weight: 650; }
.plan-price strong { font-size: 2rem; line-height: 1.1; letter-spacing: -.04em; }
.per-month { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.saving-note { color: #078342; font-weight: 600; }
.plan-feature { flex: 1; margin: 15px 0 0; padding-top: 14px; border-top: 1px dashed #e7e5e4; font-size: .875rem; line-height: 1.8; }
.buy-button { width: 100%; min-height: 40px; margin-top: 22px; padding: 9px 12px; border: 1px solid #fed0aa; border-radius: 11px; background: var(--fox-soft); color: var(--fox-deep); font-size: .875rem; font-weight: 650; line-height: 1.5; cursor: pointer; transition: background .2s, box-shadow .2s; }
.buy-button:hover { background: #ffe3cb; box-shadow: 0 5px 14px rgba(232, 93, 4, .09); }
.pricing-plan.is-selected .buy-button { border-color: var(--fox); background: var(--fox); box-shadow: 0 5px 14px rgba(232, 93, 4, .15); color: #fff; }
.buy-button:disabled { opacity: .65; cursor: wait; transform: none; }
.buy-button:disabled:not([aria-busy="true"]) { cursor: not-allowed; }
.buy-button[aria-disabled="true"]:not(:disabled) { opacity: .65; }
.payment-link { color: var(--fox-deep); font-weight: 600; text-underline-offset: 3px; }
.payment-notice { margin: 0 0 20px; padding: 12px 16px; border: 1px solid #fed0aa; border-radius: 12px; background: var(--fox-soft); color: var(--fox-deep); font-size: .875rem; line-height: 1.8; overflow-wrap: anywhere; }
.order-message { margin: 0 0 18px; color: var(--fox-deep); line-height: 1.8; font-size: .875rem; }
.renew-terms { display: flex; align-items: start; gap: 10px; margin-top: 16px; font-size: .875rem; line-height: 1.85; }
.renew-terms input { flex-shrink: 0; width: 17px; height: 17px; margin: 5px 0 0; accent-color: var(--fox); }
.renew-terms + .order-message { margin: 14px 0 0; }
.renew-terms.is-required { border-radius: 6px; background: var(--fox-soft); box-shadow: 0 0 0 6px var(--fox-soft); outline: 1px solid var(--fox); outline-offset: 6px; color: var(--fox-deep); }
.renew-terms[hidden], .payment-action[hidden], .balance-summary[hidden], .finance-card[hidden] { display: none; }
.pay-option.is-disabled { opacity: .55; cursor: not-allowed; }
.pay-option.is-disabled input { cursor: not-allowed; }
.buy-button.is-primary { border-color: var(--fox); background: linear-gradient(180deg, #ff7a2a, var(--fox)); box-shadow: 0 5px 14px rgba(232, 93, 4, .15); color: #fff; }
.buy-button.is-primary:hover { filter: brightness(.96); }
.renew-action .buy-button { width: auto; min-width: 140px; min-height: 46px; margin: 0; }
.dual-price { display: grid; gap: 9px; margin-top: 18px; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: .875rem; line-height: 1.5; }
.price-line strong { font-size: 1.25rem; }
.vip-price-line { color: var(--fox-deep); }
.normal-price-line { color: var(--muted); }
.normal-price-line strong { font-size: 1rem; }
[data-price-tier="regular"] .normal-price-line { color: var(--ink-secondary); }
[data-price-tier="regular"] .normal-price-line strong { font-size: 1.25rem; }
.pack-saving { margin: 12px 0 0; font-size: .875rem; line-height: 1.6; }
.pack-rules { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0 0; padding: 12px 14px; border: 1px solid #f0eeeb; border-radius: 12px; background: #fafaf9; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.pack-rules svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.has-order-dialog { overflow: hidden; }
.order-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; border: 1px solid #eee5db; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(28, 25, 23, .24); }
.order-dialog::backdrop { background: rgba(47, 38, 28, .4); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.order-dialog[open] { animation: order-reveal .18s ease-out; }
/* 等待窗口在订单上层；渠道主题独立，后续可追加 Payssion 等主题。 */
.payment-waiting { --provider-color: var(--teal); --provider-soft: #edf8f6; width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 40px 44px 34px; overflow: auto; border: 1px solid #eee5db; border-radius: 26px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(28, 25, 23, .2); text-align: center; }
.payment-waiting::backdrop { background: rgba(47, 38, 28, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.payment-waiting[data-provider="paypal"] { --provider-color: #0070ba; --provider-soft: #f1f6ff; }
.waiting-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px; border-radius: 999px; background: var(--fox-soft); color: var(--fox-deep); font-size: .75rem; font-weight: 650; line-height: 1.6; }
.waiting-live { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--fox); animation: waiting-ping 1.8s infinite; }
.waiting-bridge { display: grid; grid-template-columns: 108px minmax(0, 1fr) 108px; align-items: center; gap: 20px; margin: 32px 0 28px; direction: ltr; }
.waiting-party { display: grid; justify-items: center; align-self: start; gap: 12px; min-width: 0; }
.waiting-logo-card { display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid #efe5da; border-radius: 23px; background: #fff; box-shadow: 0 8px 20px rgba(70, 40, 16, .045); }
.waiting-logo-card img { width: 56px; height: 56px; object-fit: contain; }
.waiting-provider .waiting-logo-card { border-color: color-mix(in srgb, var(--provider-color) 15%, transparent); background: var(--provider-soft); }
.waiting-provider { color: var(--provider-color); }
.waiting-provider svg { stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.waiting-party-name { max-width: 100%; font-size: .9375rem; font-weight: 750; overflow-wrap: anywhere; }
.waiting-brand-dot { color: var(--fox); }
.waiting-signal { display: grid; gap: 18px; min-width: 0; margin-bottom: 30px; }
.waiting-track { --signal-color: var(--fox); display: flex; align-items: center; justify-content: space-between; position: relative; height: 16px; }
.waiting-track.is-reverse { --signal-color: var(--provider-color); flex-direction: row-reverse; }
.waiting-track::before { position: absolute; inset-inline: 0; top: 50%; height: 1px; background: var(--signal-color); opacity: .2; content: ""; }
.waiting-track span { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--signal-color); opacity: .2; animation: waiting-pulse 2.6s ease-in-out infinite; }
.waiting-track span:nth-child(2) { animation-delay: .15s; }
.waiting-track span:nth-child(3) { animation-delay: .3s; }
.waiting-track span:nth-child(4) { animation-delay: .45s; }
.waiting-track span:nth-child(5) { animation-delay: .6s; }
.waiting-track span:nth-child(6) { animation-delay: .75s; }
.waiting-track span:nth-child(7) { animation-delay: .9s; }
.waiting-track span:nth-child(8) { animation-delay: 1.05s; }
.waiting-track span:nth-child(9) { animation-delay: 1.2s; }
.waiting-title { margin: 0; font-size: 1.375rem; font-weight: 750; line-height: 1.5; }
.waiting-hint { margin: 10px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.9; overflow-wrap: anywhere; }
.waiting-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; width: fit-content; max-width: 100%; margin: 24px auto 0; padding: 12px 18px; border: 1px solid #efe5da; border-radius: 14px; background: #faf7f2; font-size: .8125rem; line-height: 1.8; }
.waiting-summary > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.waiting-summary dt { color: var(--muted); }
.waiting-summary dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
#waiting-amount { color: var(--fox-deep); font-weight: 750; }
.payment-waiting [hidden] { display: none; }
@keyframes waiting-pulse { 0%, 20%, 100% { transform: scale(.8); opacity: .2; } 40%, 52% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal-color) 15%, transparent); } }
@keyframes waiting-ping { 0% { box-shadow: 0 0 0 0 rgba(232, 93, 4, .35); } 75%, 100% { box-shadow: 0 0 0 7px rgba(232, 93, 4, 0); } }
@media (prefers-reduced-motion: reduce) { .waiting-track span, .waiting-live { animation: none; opacity: .65; } }
@media (max-width: 520px) {
  .payment-waiting { padding: 30px 20px 26px; border-radius: 22px; }
  .waiting-bridge { grid-template-columns: 70px minmax(0, 1fr) 70px; gap: 12px; margin: 28px 0 24px; }
  .waiting-logo-card { width: 64px; height: 64px; border-radius: 18px; }
  .waiting-logo-card img { width: 44px; height: 44px; }
  .waiting-party-name { font-size: .8125rem; }
  .waiting-track span { width: 5px; height: 5px; }
  .waiting-title { font-size: 1.125rem; }
  .waiting-summary { flex-direction: column; width: 100%; gap: 8px; }
}
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #e7e1da; }
.order-head h2 { margin: 0; font-size: 1.125rem; }
.order-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.order-close:hover { background: #f3ede6; }
.order-body { padding: 20px 22px; }
.order-body .payment-demo-note { margin-bottom: 16px; }
.order-details { display: grid; gap: 14px; margin: 0; padding: 18px; border: 1px solid #e6e1db; border-radius: 14px; background: #fff; }
.order-row { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: start; gap: 14px; font-size: .875rem; line-height: 1.7; }
.order-row dt { color: var(--muted); }
.order-row dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.order-row.order-total { align-items: center; margin-top: 6px; }
.order-total strong { display: block; color: var(--fox-deep); font-size: 1.625rem; line-height: 1.2; }
.order-total small { display: block; margin-top: 5px; color: var(--muted); font-size: .8125rem; font-weight: 400; }
.order-renew-note { margin: 14px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.pay-methods { margin: 20px 0 0; padding: 0; border: 0; }
.pay-methods legend { margin-bottom: 10px; padding: 0; font-size: .875rem; font-weight: 650; }
.pay-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pay-option { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid #e6e1db; border-radius: 12px; background: #fff; cursor: pointer; }
.pay-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pay-option:focus-within { outline: 2px solid var(--fox); outline-offset: 3px; }
.pay-option.selected { border-color: var(--fox); background: #fff7ef; box-shadow: 0 0 0 1px var(--fox) inset; }
.pay-logo { width: 28px; height: 28px; flex-shrink: 0; }
.pay-text { display: grid; gap: 3px; min-width: 0; }
.pay-name { font-size: .875rem; font-weight: 650; line-height: 1.5; }
.pay-hint { color: var(--muted); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.pay-check { position: absolute; top: -6px; right: -6px; display: none; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--fox); color: #fff; }
.pay-option.selected .pay-check { display: grid; }
.pay-check svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.order-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; padding: 0 22px 22px; }
.order-actions button { min-height: 44px; margin: 0; font-size: .875rem; }
.cancel-button { padding: 10px 12px; border: 1px solid #e6e1db; border-radius: 11px; background: #fff; color: var(--ink-secondary); font: inherit; cursor: pointer; }
.payment-status { position: fixed; z-index: 30; bottom: 24px; left: 50%; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: rgba(28, 25, 23, .94); color: #fff; font-size: .875rem; line-height: 1.7; text-align: center; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.payment-status.is-visible { opacity: 1; transform: translate(-50%, 0); }
@keyframes order-reveal { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) {
  .pricing-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 760px) {
  .pricing-main { padding: calc(var(--header-height) + 36px) 20px 64px; }
  .pricing-section { padding: 22px; }
  .pricing-section-head { flex-direction: column; gap: 14px; }
  .renew-main { gap: 18px; }
  .renew-benefits { width: 100%; }
}
@media (max-width: 520px) {
  .pricing-main { padding: calc(var(--header-height) + 28px) 16px 48px; }
  .pricing-section { padding: 20px 16px; border-radius: 18px; }
  .pricing-plans { grid-template-columns: 1fr; gap: 20px; }
  .renew-main { align-items: flex-start; padding: 22px 16px; }
  .renew-top { padding: 14px 16px; }
  .renew-action { width: 100%; gap: 14px; }
  .renew-action .buy-button { min-width: 120px; }
  .renew-note { padding: 0 16px 18px; }
  .renew-benefits { display: grid; gap: 12px; }
  .pricing-plan { padding: 22px 20px 20px; }
  .order-head { padding: 16px; }
  .order-body { padding: 18px 16px; }
  .order-details { padding: 14px; }
  .order-row { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
  .order-actions { padding: 0 16px 18px; }
  .pay-options { grid-template-columns: 1fr; }
}
