/* payment */
.recharge-form {
    padding: 8px 22px 22px
}

.exchange-panel {
    padding: 8px 22px 22px
}

.exchange-input-row.withdraw-input-wrap {
    align-items: stretch;
    gap: 10px
}

.exchange-input-row > .withdraw-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    display: block;
    height: 44px;
    box-sizing: border-box
}

.exchange-input-row > .exchange-submit.btn.btn-primary {
    flex: 0 0 auto;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    margin: 0;
    padding: 0 18px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap
}

.exchange-result {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px dashed var(--line)
}

.exchange-result-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted)
}

.exchange-result-num {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -.02em
}

.exchange-result-unit {
    font-size: 14px;
    font-weight: 700;
    color: var(--text)
}

.recharge-section {
    margin: 0 0 18px
}

.recharge-label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted)
}

.recharge-packages,.recharge-channels {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px
}

.recharge-pack {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--chip);
    cursor: pointer;
    user-select: none
}

.recharge-pack input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.recharge-pack strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--text)
}

.recharge-pack span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 650
}

.recharge-pack.on {
    border-color: var(--accent);
    background: var(--accent-soft)
}

.recharge-pack-custom {
    grid-column: 1 / -1
}

.recharge-custom-box {
    margin-top: 10px;
    padding: 14px;
    border-radius: 12px;
    border: 1px dashed var(--line);
    background: var(--chip)
}

.recharge-custom-box.is-hidden {
    display: none
}

.recharge-custom-row {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    box-sizing: border-box
}

.recharge-custom-prefix {
    font-size: 16px;
    font-weight: 800;
    color: var(--muted)
}

.recharge-custom-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em
}

.recharge-custom-input::-webkit-outer-spin-button,
.recharge-custom-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.recharge-custom-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield
}

.recharge-custom-preview {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--muted)
}

.recharge-custom-preview strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent)
}

.recharge-pack-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    margin: 0;
    padding: 3px 8px 4px 9px;
    border-radius: 0 12px 0 10px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 750;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: .02em;
    pointer-events: none
}

.recharge-channel {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 14px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--chip);
    text-align: left;
    font: inherit;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    transition: border-color .15s ease,background .15s ease,box-shadow .15s ease,color .15s ease
}

.recharge-channel .pay-ico {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: remixicon!important;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    -webkit-font-smoothing: antialiased
}

.recharge-channel.pm-zfb .pay-ico::before {
    content: "\ea2b"
}

.recharge-channel.pm-wx .pay-ico::before {
    content: "\f2b7"
}

.recharge-channel.pm-qq .pay-ico::before {
    content: "\f03a"
}

.recharge-channel span {
    font-size: 14px;
    font-weight: 750
}

.recharge-channel.pm-zfb {
    color: #1677ff!important;
    border-color: #1677ff!important;
    background: rgba(22,119,255,.10)!important
}

.recharge-channel.pm-zfb .pay-ico,.recharge-channel.pm-zfb span {
    color: #1677ff!important
}

.recharge-channel.pm-zfb.is-on,.recharge-channel.pm-zfb:hover {
    background: rgba(22,119,255,.18)!important;
    box-shadow: inset 0 0 0 1px rgba(22,119,255,.55)
}

.recharge-channel.pm-wx {
    color: #07c160!important;
    border-color: #07c160!important;
    background: rgba(7,193,96,.10)!important
}

.recharge-channel.pm-wx .pay-ico,.recharge-channel.pm-wx span {
    color: #07c160!important
}

.recharge-channel.pm-wx.is-on,.recharge-channel.pm-wx:hover {
    background: rgba(7,193,96,.18)!important;
    box-shadow: inset 0 0 0 1px rgba(7,193,96,.55)
}

.recharge-channel.pm-qq {
    color: #12b7f5!important;
    border-color: #12b7f5!important;
    background: rgba(18,183,245,.10)!important
}

.recharge-channel.pm-qq .pay-ico,.recharge-channel.pm-qq span {
    color: #12b7f5!important
}

.recharge-channel.pm-qq.is-on,.recharge-channel.pm-qq:hover {
    background: rgba(18,183,245,.18)!important;
    box-shadow: inset 0 0 0 1px rgba(18,183,245,.55)
}

.recharge-channel.pm-bank {
    color: #b45309!important;
    border-color: #b45309!important;
    background: rgba(180,83,9,.10)!important
}

.recharge-channel.pm-bank .pay-ico,.recharge-channel.pm-bank span {
    color: #b45309!important
}

.recharge-channel.pm-bank .bank-ico::before {
    content: "\f2d2"
}

.recharge-channel.pm-bank.is-on,.recharge-channel.pm-bank:hover {
    background: rgba(180,83,9,.18)!important;
    box-shadow: inset 0 0 0 1px rgba(180,83,9,.55)
}

.withdraw-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px
}

.withdraw-input-wrap > .withdraw-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto
}

.withdraw-input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--chip);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color .15s,box-shadow .15s
}

.withdraw-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft)
}

.withdraw-select-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--chip);
    transition: border-color .15s,box-shadow .15s
}

.withdraw-select-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft)
}

.withdraw-select-wrap > .withdraw-select {
    display: block;
    width: 100%;
    height: 100%;
    border: 0 !important;
    border-radius: 12px;
    background: transparent !important;
    background-image: none !important;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer
}

.withdraw-select-wrap:has(.uc-select) {
    height: auto;
    border: 0;
    background: transparent;
    box-shadow: none
}

.withdraw-select-wrap:has(.uc-select):focus-within {
    border-color: transparent;
    box-shadow: none
}

.withdraw-select-wrap .uc-select-trigger {
    height: 44px;
    font-size: 14px
}

.withdraw-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center
}

.withdraw-input::placeholder {
    color: var(--muted);
    font-weight: 400
}

.withdraw-hint {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-soft);
    white-space: nowrap
}

.recharge-tip {
    margin: 0 22px 16px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5
}

.recharge-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px
}

.recharge-sandbox {
    margin: 0 22px 22px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--chip);
    border: 1px dashed var(--line)
}

.recharge-sandbox.is-hidden {
    display: none
}

.pay-order-panel {
    width: min(420px,100%);
    padding: 22px 20px 20px;
    text-align: center
}

.pay-order-card {
    display: flex;
    flex-direction: column;
    align-items: center
}

.pay-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 12px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: var(--chip);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700
}

.pay-order-badge i {
    font-size: 15px;
    line-height: 1
}

.pay-order-badge .pay-ico {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: remixicon!important;
    font-style: normal;
    font-size: 15px;
    line-height: 1
}

.pay-order-badge.pm-zfb .pay-ico::before {
    content: "\ea2b"
}

.pay-order-badge.pm-wx .pay-ico::before {
    content: "\f2b7"
}

.pay-order-badge.pm-qq .pay-ico::before {
    content: "\f03a"
}

.pay-order-badge.pm-zfb {
    color: #1677ff;
    background: rgba(22,119,255,.10);
    border-color: rgba(22,119,255,.28)
}

.pay-order-badge.pm-wx {
    color: #07c160;
    background: rgba(7,193,96,.10);
    border-color: rgba(7,193,96,.28)
}

.pay-order-badge.pm-qq {
    color: #12b7f5;
    background: rgba(18,183,245,.10);
    border-color: rgba(18,183,245,.28)
}

.pay-order-amount {
    margin: 4px 0 8px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    line-height: 1.1
}

.pay-order-meta {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.5
}

.pay-order-no {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--muted);
    word-break: break-all
}

.pay-order-qr-wrap {
    margin: 0 0 10px
}

.pay-order-qr-wrap.is-hidden,.pay-order-sandbox.is-hidden {
    display: none
}

.pay-order-qr {
    width: 220px;
    height: 220px;
    display: block;
    margin: 0 auto 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 10px;
    box-sizing: border-box
}

.pay-order-hint {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5
}

.pay-order-sandbox {
    margin: 4px 0 12px;
    width: 100%
}

.pay-order-sandbox .btn {
    width: 100%;
    margin-top: 10px
}

.pay-order-status {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 650;
    color: var(--text-soft)
}

.pay-order-status.is-ok {
    color: #15803d
}

.pay-order-status.is-err {
    color: #b91c1c
}

/* 游客免登录：确认支付弹层 */
.guest-pay-checkout.pay-order-panel {
    width: min(400px, calc(100vw - 32px));
    padding: 0;
    text-align: left;
    overflow: hidden
}

.guest-pay-checkout .pay-order-card {
    align-items: stretch;
    padding: 22px 22px 18px
}

.guest-pay-checkout .uc-modal-title {
    margin: 0 28px 18px 0;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.01em;
    text-align: left
}

.guest-pay-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 0 18px;
    padding: 18px 16px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--chip) 0%, transparent 100%);
    border: 1px solid var(--line)
}

.guest-pay-hero .pay-order-amount {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums
}

.guest-pay-hero .pay-order-meta {
    margin: 0;
    font-size: 13px;
    color: var(--muted)
}

.guest-pay-section-label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .02em
}

.guest-pay-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 18px
}

.guest-pay-method {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg, #fff);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease
}

.guest-pay-method:hover {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    background: var(--chip)
}

.guest-pay-method.is-on {
    border-color: var(--accent);
    background: var(--accent-soft, color-mix(in srgb, var(--accent) 10%, transparent));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent)
}

.guest-pay-method .pay-ico {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: remixicon!important;
    font-style: normal;
    font-size: 18px;
    line-height: 1
}

.guest-pay-method.pm-zfb .pay-ico {
    color: #1677ff;
    background: rgba(22,119,255,.12)
}

.guest-pay-method.pm-zfb .pay-ico::before {
    content: "\ea2b"
}

.guest-pay-method.pm-wx .pay-ico {
    color: #07c160;
    background: rgba(7,193,96,.12)
}

.guest-pay-method.pm-wx .pay-ico::before {
    content: "\f2b7"
}

.guest-pay-method.pm-qq .pay-ico {
    color: #12b7f5;
    background: rgba(18,183,245,.12)
}

.guest-pay-method.pm-qq .pay-ico::before {
    content: "\f03a"
}

.guest-pay-method-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.guest-pay-method-text strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25
}

.guest-pay-method-text span {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.3
}

.guest-pay-method-check {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    transition: background .15s ease, border-color .15s ease, color .15s ease
}

.guest-pay-method.is-on .guest-pay-method-check {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff
}

.guest-pay-actions {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.guest-pay-actions .btn-primary {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700
}

.guest-pay-actions .guest-pay-cancel {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    padding: 6px;
    cursor: pointer
}

.guest-pay-actions .guest-pay-cancel:hover {
    color: var(--text)
}

.guest-pay-sandbox-tip {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--chip);
    border: 1px dashed var(--line);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5
}

.recharge-result {
    padding: 36px 22px 40px;
    text-align: center
}

.recharge-result i {
    font-size: 42px;
    display: block;
    margin-bottom: 10px
}

.recharge-result.is-ok i {
    color: #15803d
}

.recharge-result.is-wait i {
    color: var(--muted)
}

.recharge-result strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px
}

.recharge-result p {
    margin: 0 0 8px;
    color: var(--text-soft);
    font-size: 14px
}

.recharge-order-no {
    font-size: 12px!important;
    color: var(--muted)!important
}

.recharge-result-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap
}

@media (max-width: 640px) {
    .recharge-packages,.recharge-channels {
        grid-template-columns:1fr
    }
}
