/* AI 3D 专用会员支付 / 挽留弹框 — 视觉对齐 3d-web kaitongvip + detainment */

.a3vip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10020;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.a3vip-overlay[hidden] {
    display: none !important;
}

.a3vip-overlay-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.a3vip-overlay-loading .a3vip-spinner {
    width: 36px;
    height: 36px;
    border-width: 3px;
}

.a3vip-overlay.is-ready .a3vip-overlay-loading {
    display: none;
}

/* ========== 支付弹框 ========== */
.a3vip-pay {
    position: relative;
    margin: auto;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 18px 48px rgba(0, 0, 0, 0.5);
    zoom: 0.86;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    visibility: hidden;
}

.a3vip-overlay.is-ready .a3vip-pay {
    opacity: 1;
    transform: none;
    visibility: visible;
}

.a3vip-retain {
    position: relative;
    width: min(480px, 92vw);
    max-height: 90vh;
    overflow: auto;
    margin: auto;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 24px 24px 20px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 80% 50% at 80% 0%, rgba(212, 175, 105, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 40% at 10% 100%, rgba(180, 140, 70, 0.1), transparent 50%),
        linear-gradient(180deg, #1a1610 0%, #0b0d12 100%);
    border: 1px solid rgba(212, 175, 105, 0.32);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 16px 40px rgba(0, 0, 0, 0.5),
        0 0 36px rgba(212, 175, 105, 0.1);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    visibility: hidden;
}

.a3vip-overlay.is-ready .a3vip-retain {
    opacity: 1;
    transform: none;
    visibility: visible;
}

.a3vip-pay-bg {
    width: 1000px;
    max-width: none;
    display: block;
}

@media (max-width: 1100px) {
    .a3vip-pay { zoom: 0.78; }
}

@media (max-width: 900px) {
    .a3vip-pay { zoom: 0.68; }
}

@supports not (zoom: 1) {
    .a3vip-pay {
        zoom: normal;
        transform: translateY(8px) scale(0.86);
        transform-origin: center center;
        margin: -45px -70px;
    }
    .a3vip-overlay.is-ready .a3vip-pay {
        transform: scale(0.86);
    }
    @media (max-width: 1100px) {
        .a3vip-pay {
            margin: -70px -110px;
            transform: translateY(8px) scale(0.78);
        }
        .a3vip-overlay.is-ready .a3vip-pay {
            transform: scale(0.78);
        }
    }
    @media (max-width: 900px) {
        .a3vip-pay {
            margin: -100px -160px;
            transform: translateY(8px) scale(0.68);
        }
        .a3vip-overlay.is-ready .a3vip-pay {
            transform: scale(0.68);
        }
    }
}

/* 左侧大字 + 10 行权益：对齐背景图金图标中心，不用 ::before 圆点 */
.a3vip-left {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    color: #fff;
}

.a3vip-left-brand {
    position: absolute;
    left: 10.2%;
    top: 6.8%;
    font-size: 13px;
    font-weight: 500;
    color: #d4af69;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.a3vip-left-title {
    position: absolute;
    left: 10.2%;
    top: 10.2%;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.a3vip-left-list {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.a3vip-left-list li {
    position: absolute;
    left: 10.2%;
    width: 17.5%;
    transform: translateY(-50%);
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.86);
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.a3vip-left-list li:nth-child(1) { top: 29.02%; }
.a3vip-left-list li:nth-child(2) { top: 35.57%; }
.a3vip-left-list li:nth-child(3) { top: 41.95%; }
.a3vip-left-list li:nth-child(4) { top: 48.70%; }
.a3vip-left-list li:nth-child(5) { top: 55.19%; }
.a3vip-left-list li:nth-child(6) { top: 61.73%; }
.a3vip-left-list li:nth-child(7) { top: 68.25%; }
.a3vip-left-list li:nth-child(8) { top: 74.83%; }
.a3vip-left-list li:nth-child(9) { top: 81.41%; }
.a3vip-left-list li:nth-child(10) { top: 87.76%; }

.a3vip-close {
    cursor: pointer;
    position: absolute;
    top: 52px;
    right: 64px;
    width: 32px;
    height: 32px;
    z-index: 5;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(240, 215, 140, 0.75);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.a3vip-close::before,
.a3vip-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    background: #f0d78c;
    border-radius: 1px;
}

.a3vip-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.a3vip-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.a3vip-close:hover {
    transform: scale(1.08);
    background: rgba(12, 12, 12, 0.95);
    border-color: #fff1b8;
}

.a3vip-close:hover::before,
.a3vip-close:hover::after {
    background: #fff1b8;
}

.a3vip-info {
    width: 66.5%;
    position: absolute;
    right: 52px;
    top: 48px;
    height: 85%;
    display: flex;
    flex-direction: column;
}

.a3vip-info-header {
    display: flex;
    align-items: center;
    padding: 0 22px;
    height: 11%;
    flex-shrink: 0;
}

.a3vip-avatar-box {
    margin-right: 13px;
    width: 34px;
    height: 34px;
    position: relative;
    flex-shrink: 0;
}

.a3vip-avatar {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: cover;
    background: #333;
}

.a3vip-vip-icon {
    width: 22px;
    height: 11px;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: -6px;
}

.a3vip-username {
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
    line-height: 20px;
}

.a3vip-time {
    font-weight: 400;
    font-size: 12px;
    color: #787878;
    line-height: 16px;
}

.a3vip-info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 42px 22px 0;
    box-sizing: border-box;
}

.a3vip-price-list {
    margin-bottom: 27px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a3vip-price-empty {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.a3vip-price-empty a {
    color: #d4af69;
    text-decoration: underline;
}

.a3vip-price-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('/public/img/vip/3d/vip-price-1.png?v=cleanbg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 190px;
    height: 220px;
    cursor: pointer;
    box-sizing: border-box;
}

.a3vip-price-item + .a3vip-price-item {
    margin-left: 22px;
}

.a3vip-price-item:first-of-type {
    background-image: url('/public/img/vip/3d/vip-price-2.png?v=cleanbg');
}

.a3vip-price-item:last-of-type {
    background-image: url('/public/img/vip/3d/vip-price-0.png?v=cleanbg');
}

.a3vip-price-item.check {
    background-image: url('/public/img/vip/3d/vip-price-1-check.png?v=tick3');
    box-shadow: 0 3px 12px 0 rgba(168, 132, 62, 0.26);
}

/* 选中角标对勾：圆角矢量勾，居中落在右下金标里 */
.a3vip-price-item.check::after {
    content: '';
    position: absolute;
    right: 8px;
    bottom: 10px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.2L6.5 11.6L13 4.2' stroke='%2314100a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 1px 0 rgba(255, 230, 160, 0.25));
}

@media (max-width: 1200px) {
    .a3vip-price-item.check::after {
        right: 7px;
        bottom: 9px;
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 960px) {
    .a3vip-price-item.check::after {
        right: 6px;
        bottom: 8px;
        width: 12px;
        height: 12px;
    }
}

.a3vip-price-type {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    line-height: 22px;
    padding-left: 22px;
}

.a3vip-price-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    padding-left: 22px;
}

.a3vip-price-sign {
    font-weight: 900;
    font-size: 20px;
    color: #ffffff;
    line-height: 26px;
    padding-top: 7px;
}

.a3vip-price-value {
    font-weight: 900;
    font-size: 28px;
    color: #ffffff;
    line-height: 38px;
    padding-left: 5px;
}

.a3vip-source-price {
    padding: 0 6px;
    background: #181818;
    border-radius: 10px;
    margin-left: 7px;
}

.a3vip-source-price span {
    font-weight: 700;
    font-size: 12px;
    line-height: 26px;
    text-decoration-line: line-through;
    background: linear-gradient(270deg, #f0d78c 0%, #ffffff 53%, #d4af69 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.a3vip-price-desc {
    margin-top: 40px;
    font-weight: 500;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 16px;
    padding-left: 22px;
}

.a3vip-pay-info {
    height: 154px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    background: #252b33;
    border-radius: 12px;
    padding: 16px;
    box-sizing: border-box;
}

.a3vip-qr-code {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid #787878;
    overflow: hidden;
    width: 113px;
    height: 113px;
    flex-shrink: 0;
    background: url('/public/img/vip/3d/ewm-bg.png') no-repeat center center / 100% 100%;
}

.a3vip-ewm {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    position: relative;
}

.a3vip-ewm img.a3vip-wxewm {
    width: 100%;
    height: 100%;
    display: block;
}

.a3vip-ewm iframe {
    width: 125px;
    height: 125px;
    margin-left: 5px;
    margin-top: 5px;
    padding: 10px;
    box-sizing: content-box;
    transform: scale(0.75);
    border: 0;
}

.a3vip-ewm-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
}

.a3vip-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #3a3a3a;
    border-top-color: #d4af69;
    border-radius: 50%;
    animation: a3vip-spin 0.8s linear infinite;
}

@keyframes a3vip-spin {
    to { transform: rotate(360deg); }
}

.a3vip-pay-other {
    margin-left: 45px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.a3vip-topjg {
    display: flex;
    align-items: flex-end;
}

.a3vip-yfwz {
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    line-height: 29px;
}

.a3vip-jgwz {
    font-weight: 700;
    font-size: 30px;
    line-height: 1em;
    background: linear-gradient(90deg, #f5e6b8, #d4af69);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.a3vip-ktnhy {
    margin: 12px 0 6px;
    font-weight: 700;
    font-size: 12px;
    color: #ffffff;
    line-height: 21px;
}

.a3vip-pay-methods {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.a3vip-pay-method {
    display: flex;
    align-items: center;
    margin-right: 10px;
    padding: 4px 8px;
}

.a3vip-pay-method img {
    width: 18px;
    margin-right: 5px;
}

.a3vip-pay-method span {
    color: #fff;
    font-size: 12px;
}

.a3vip-pay-method.active {
    background-color: #f7f7f7;
    border-radius: 8px;
}

.a3vip-pay-method.active span {
    color: #3d3d3d;
}

.a3vip-tips {
    display: flex;
    font-weight: 500;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 18px;
}

.a3vip-tips .left {
    flex: 1;
}

.a3vip-tips a {
    color: #e0c070;
    text-decoration: none;
}

/* ========== 挽留弹框 ========== */
.a3vip-retain-close {
    cursor: pointer;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    z-index: 3;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 175, 105, 0.5);
}

.a3vip-retain-close::before,
.a3vip-retain-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: #e0c070;
    border-radius: 1px;
}

.a3vip-retain-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.a3vip-retain-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.a3vip-retain-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #f0d78c;
    letter-spacing: 0.04em;
    line-height: 1.35;
    margin: 4px 0 18px;
    text-shadow: 0 0 18px rgba(212, 175, 105, 0.35);
}

.a3vip-retain-curve {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto 8px;
}

.a3vip-retain-curve-bg {
    width: 100%;
    display: block;
    user-select: none;
    pointer-events: none;
}

.a3vip-rc {
    position: absolute;
    top: 10%;
    left: 3%;
    right: 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    pointer-events: none;
}

.a3vip-rc #a3vipRcRight {
    text-align: right;
}

.a3vip-zj {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    pointer-events: none;
}

.a3vip-zj .title1 {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.a3vip-zj span {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.a3vip-finally {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2%;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.a3vip-jisuan {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    box-sizing: border-box;
    width: 100%;
    max-width: 400px;
    height: 56px;
    margin: 10px auto 18px;
    border-radius: 14px;
    background: linear-gradient(90deg, #d4af69 0%, #f5e6c0 48%, #e8c97a 100%);
    box-shadow: 0 6px 18px rgba(212, 175, 105, 0.28);
}

.a3vip-jisuan-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #111;
}

.a3vip-jisuan-item .item-top {
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
}

.a3vip-jisuan-item .rijg {
    font-size: 20px;
}

.a3vip-jisuan-item .item-botm {
    font-size: 11px;
    color: #333;
    margin-top: 1px;
}

.a3vip-jian {
    width: 12px;
    height: 2px;
    background-color: #111;
    margin: 0 4px;
    flex-shrink: 0;
}

.a3vip-dengyu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 4px;
    flex-shrink: 0;
}

.a3vip-dengyu div {
    width: 13px;
    height: 2px;
    background-color: #111;
    margin: 3px 0;
}

.a3vip-two-ewm {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 36px;
    margin: 4px 0 8px;
}

.a3vip-two-ewm .wxewm,
.a3vip-two-ewm .zfbewm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.a3vip-wxewmrq,
.a3vip-zfbwmrq {
    position: relative;
    width: 132px;
    height: 132px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #fff url('/public/img/vip/3d/ewm-bg.png') no-repeat center center / 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.a3vip-wxewmrq .a3vip-ewm-loading,
.a3vip-zfbwmrq .a3vip-ewm-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    z-index: 1;
}

.a3vip-wxewmrq img {
    width: 86%;
    height: 86%;
    object-fit: contain;
    opacity: 0;
}

.a3vip-iframe-box {
    width: 103px;
    height: 103px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.a3vip-iframe-box iframe {
    width: 125px;
    height: 125px;
    transform: scale(0.72);
    border: 0;
}

.a3vip-imgtxtzs {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
}

.a3vip-imgtxtzs span {
    color: #ffffff;
    font-size: 13px;
}

.a3vip-imgtxtzs img {
    width: 17px;
    height: 17px;
    margin-right: 8px;
}

.a3vip-crlk {
    cursor: pointer;
    text-align: center;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 500;
    margin-top: 14px;
    font-size: 13px;
    user-select: none;
}

.a3vip-crlk:hover {
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1100px) {
    .a3vip-pay-bg {
        width: 900px;
    }

    .a3vip-info {
        right: 40px;
        width: 68%;
    }

    .a3vip-price-item {
        width: 160px;
        height: 190px;
    }

    .a3vip-price-list {
        height: 190px;
    }

    .a3vip-close {
        top: 14px;
        right: 16px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 960px) {
    .a3vip-pay-bg {
        width: 720px;
    }

    .a3vip-info {
        width: 70%;
        right: 24px;
        top: 36px;
    }

    .a3vip-info-box {
        padding: 24px 12px 0;
    }

    .a3vip-price-item {
        width: 130px;
        height: 160px;
    }

    .a3vip-price-item + .a3vip-price-item {
        margin-left: 10px;
    }

    .a3vip-price-list {
        height: 160px;
        margin-bottom: 16px;
    }

    .a3vip-price-type {
        font-size: 13px;
        padding-left: 14px;
    }

    .a3vip-price-row {
        padding-left: 14px;
    }

    .a3vip-price-value {
        font-size: 22px;
    }

    .a3vip-price-desc {
        margin-top: 24px;
        padding-left: 14px;
        font-size: 11px;
    }

    .a3vip-pay-info {
        height: auto;
        padding: 12px;
    }

    .a3vip-pay-other {
        margin-left: 20px;
    }

    .a3vip-close {
        top: 12px;
        right: 14px;
        width: 34px;
        height: 34px;
    }

    .a3vip-retain {
        width: min(460px, 94vw);
        padding: 22px 18px 18px;
    }

    .a3vip-retain-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .a3vip-two-ewm {
        gap: 20px;
    }

    .a3vip-wxewmrq,
    .a3vip-zfbwmrq {
        width: 118px;
        height: 118px;
    }
}
