.recharge-body { background: var(--df-color-recharge-page-bg); }
.recharge-body .console-top-links { display: flex; gap: 24px; }
.recharge-body .console-top-links a { color: inherit; text-decoration: none; }
.recharge-body .membership-subscribe { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; height: 100vh; min-height: 0; margin-top: -48px; padding: 0 72px; place-items: center; background: var(--df-color-recharge-page-bg); }
.recharge-body .membership-subscribe__close { display: none; }
.recharge-panel { width: 100%; min-width: 0; padding: 16px 24px 13px; border-radius: 8px; background: var(--df-color-surface); }
.recharge-panel h1 { margin: 0 0 41px; font-size: 16px; line-height: 24px; }
.points-recharge-dialog__balance { font-size: 14px; font-weight: 600; }
.points-recharge-dialog__summary { display: flex; flex-direction: column; gap: 4px; }

/* 套餐列表：线上 .points-package-list（视口 + 左右渐隐 + 翻页按钮） */
.points-package-list { position: relative; width: 100%; margin-top: 17px; }
.points-package-list__fade { position: absolute; top: 0; bottom: 0; z-index: 1; width: 48px; pointer-events: none; }
.points-package-list__fade--left { left: 0; background: linear-gradient(90deg, var(--df-color-recharge-list-fade), transparent); }
.points-package-list__fade--right { right: 0; background: linear-gradient(270deg, var(--df-color-recharge-list-fade), transparent); }
.points-package-list__nav { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--df-color-border-hairline); border-radius: 50%; background: var(--df-color-recharge-nav-bg); color: var(--df-color-recharge-nav-text); cursor: pointer; transform: translateY(-50%); transition: background-color .2s; }
.points-package-list__nav:hover { background: var(--df-color-recharge-nav-bg-hover); }
.points-package-list__nav--left { left: -14px; }
.points-package-list__nav--right { right: -14px; }
.points-package-list__nav .df-icon { width: 16.8px; height: 16.8px; }
.recharge-options { display: flex; gap: 16px; width: 100%; padding: 2px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.recharge-options::-webkit-scrollbar { display: none; }

/* 套餐卡：线上 .points-package-card */
.recharge-option { position: relative; display: flex; flex: 0 0 240px; flex-direction: column; width: 240px; height: 220px; padding: 0; overflow: hidden; border: 1px solid var(--df-color-border-hairline); border-radius: 16px; background: var(--df-color-recharge-card-bg); color: var(--df-color-text-body); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.recharge-option:not(.is-selected):hover { border-color: var(--df-color-hover-border); }
.recharge-option.is-selected { border-color: var(--df-color-primary-hover); box-shadow: inset 0 0 0 1px var(--df-color-primary-hover); }
.recharge-option__selected { position: absolute; top: -1px; right: -1px; z-index: 1; display: flex; width: 33px; height: 33px; padding: 5px 6px 0 0; align-items: flex-start; justify-content: flex-end; background: var(--df-color-primary-hover); clip-path: polygon(0 0, 100% 0, 100% 100%); color: var(--df-color-text-on-card); pointer-events: none; }
.recharge-option__selected .df-icon { width: 10.5px; height: 10.5px; }
.recharge-option:not(.is-selected) .recharge-option__selected { display: none; }
.recharge-option__name { margin: 24px 20px 0; color: var(--df-color-text); font-size: 16px; line-height: 26px; }
.recharge-option__value { display: flex; align-items: center; gap: 6px; margin: 4px 20px 0; color: var(--df-color-text-strong); font-size: 30px; font-weight: 700; line-height: 40px; }
.recharge-option__value .df-icon { width: 21.6px; height: 21.6px; color: var(--df-color-text-strong); font-weight: 400; }
.recharge-option__desc { flex: 1; margin: 8px 20px 0; color: var(--df-color-text-secondary); font-size: 12px; line-height: 20px; word-break: break-all; }
.recharge-option__price { display: flex; align-items: center; height: 50px; margin-top: auto; padding: 0 20px; background: var(--df-color-fill-soft); color: var(--df-color-text); font-size: 16px; font-weight: 500; }

/* 自定义金额：线上 .points-package-custom-card__input */
.recharge-custom { display: flex; align-items: center; gap: 6px; height: 40px; margin: 4px 20px 0; }
.recharge-custom > .df-icon { flex: 0 0 21.6px; width: 21.6px; height: 21.6px; margin: 0; color: var(--df-color-text-strong); }
.recharge-custom input { width: 100%; min-width: 0; height: 32px; padding: 0 11px; border: 0; background: var(--df-color-fill-input); color: var(--df-color-text-strong); font-size: 24px; font-weight: 700; }
.recharge-custom input::-webkit-inner-spin-button { opacity: 1; }

/* 协议：线上 Element Plus checkbox（14×14，底色 #191919） */
.recharge-agreement { display: flex; align-items: center; gap: 8px; height: 18px; margin-top: 34px; color: var(--df-color-text-secondary); font-size: 12px; line-height: 18px; }
.recharge-agreement input { position: relative; flex: 0 0 14px; width: 14px; height: 14px; margin: 0; border: 1px solid var(--df-color-checkbox-border); border-radius: 2px; background: var(--df-color-checkbox-bg); cursor: pointer; appearance: none; -webkit-appearance: none; }
.recharge-agreement input:checked { border-color: var(--df-color-primary-hover); background: var(--df-color-primary-hover); }
.recharge-agreement input:checked::after { content: ""; position: absolute; top: 50%; left: 50%; box-sizing: content-box; width: 3px; height: 7px; border: 1px solid var(--df-color-text-on-card); border-top: 0; border-left: 0; transform: translate(-50%, -60%) rotate(45deg); }
.recharge-agreement a { color: var(--df-color-text-strong); text-decoration: underline; }
.recharge-agreement-error { margin: 16px 0 -20px; color: var(--df-color-danger); font-size: 12px; line-height: 18px; }
.recharge-toast { position: fixed; bottom: 48px; left: 50%; z-index: var(--df-z-toast); padding: 8px 16px; border: 1px solid var(--df-color-divider); border-radius: var(--df-radius-lg); background: var(--df-color-panel); color: var(--df-color-text); font-size: 12px; box-shadow: var(--df-shadow-popover); transform: translateX(-50%); }

/* 结算条 */
.points-recharge-dialog__footer { margin: 40px -4px 0 0; padding: 0; border: 0; background: transparent; }
.points-recharge-dialog__price-label::after { content: "："; }
.points-recharge-dialog__price-value::before { content: "¥ "; font-weight: 400; }
.points-recharge-dialog__btn-confirm { padding: 5px 16px; border: 1px solid var(--df-color-primary-fill); border-radius: 4px; background: var(--df-color-primary-fill); color: var(--df-color-text-on-card); font-size: 12px; line-height: 20px; cursor: pointer; }
.points-recharge-dialog__btn-confirm:hover { border-color: var(--df-color-primary-fill-hover); background: var(--df-color-primary-fill-hover); }
.recharge-disclaimer { display: none; }

/* 收银台（BCP）页面：线上把控制台外壳降亮度，内容保持原亮度 */
.recharge-body .topbar, .recharge-body .home-shortcuts { opacity: .48; }

/* 充值以订阅页上的模态层呈现；窄屏套餐保留横向滚动。 */
.recharge-backdrop-page { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.recharge-body > .topbar, .recharge-body > .home-shortcuts { visibility: hidden; pointer-events: none; }
.recharge-body .membership-subscribe { position: fixed; inset: 0; z-index: 100; margin: 0; padding: 24px; background: var(--df-color-mask); }
.recharge-panel { position: relative; width: min(75vw, 1320px); max-height: calc(100vh - 48px); overflow: auto; padding: 20px 24px 12px; background: var(--df-color-surface); }
.recharge-panel h1 { margin: -20px -24px 24px; padding: 16px 24px; border-bottom: 1px solid var(--df-color-border-subtle); }
.recharge-close { position: absolute; top: 20px; right: 24px; color: var(--df-color-text-secondary); }
.recharge-close .df-icon { width: 16px; height: 16px; }
.recharge-close:focus-visible { outline: 2px solid var(--df-color-focus-ring); outline-offset: 2px; }
.recharge-option { flex-basis: calc((100% - 64px) / 5); width: auto; min-width: 240px; }
.recharge-option__value, .recharge-option__value .df-icon, .recharge-custom > .df-icon, .recharge-custom input { color: var(--df-color-text-strong); }
.recharge-option__value .df-icon { flex-shrink: 0; }
.recharge-option__desc { word-break: normal; overflow-wrap: break-word; }
.recharge-custom input { border: 1px solid var(--df-color-control-edge); border-radius: var(--df-radius-sm); background: var(--df-color-surface-raised); color-scheme: dark; }
html[data-theme="light"] .recharge-custom input { color-scheme: light; }
.recharge-option__selected { color: var(--df-color-primary-text); }
.recharge-agreement { height: auto; align-items: flex-start; }
.recharge-agreement input { box-sizing: border-box; margin-top: 2px; flex-shrink: 0; }
.recharge-agreement input:focus-visible { outline: 2px solid var(--df-color-focus-ring); outline-offset: 2px; }
.recharge-agreement input:checked::after { border-color: var(--df-color-primary-text); }
.points-recharge-dialog__footer { margin: 26px -24px -12px; padding: 12px 20px; border-top: 1px solid var(--df-color-border-subtle); }
.points-recharge-dialog__actions { display: flex; gap: var(--df-space-3); }
.recharge-cancel { display: inline-flex; align-items: center; padding: 5px 16px; border: 1px solid var(--df-color-border); border-radius: 4px; color: var(--df-color-text-secondary); text-decoration: none; font-size: 12px; }
.points-recharge-dialog__btn-confirm { color: var(--df-color-primary-text); }
.recharge-agreement-error { margin: 16px 0 0; }
@media (max-width: 1100px) { .recharge-panel { width: 92vw; } }
