/* 会员页 /vips —— UI 对齐 B2 主题 vips 页 */

#vips {
    padding: 1rem 0 48px;
    background: #f4f6f7;
    min-height: 60vh;
}

#vips .wrapper,
#vips .content-area.wrapper {
    max-width: 1250px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.content-area.vip-page {
    width: 1250px;
    max-width: 100%;
}

.vip-top {
    background: url(../img/vip-bg.svg) center / cover no-repeat;
    margin-top: -10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.vip-top > div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
}

.vip-current {
    padding: 20px;
    font-size: 17px;
    border: 2px dashed rgb(255, 0, 0);
    font-weight: 700;
    margin: 20px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
    width: 100%;
    box-sizing: border-box;
}

.vip-current strong {
    font-weight: 700;
}

.vip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 15px 0;
    justify-content: flex-start;
}

.vip-item {
    flex: 0 0 calc(25% - 12px);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.vip-list-in {
    padding: 20px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.b2-radius {
    border-radius: 8px;
}

.vip-list-in:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.vip-level-icon {
    text-align: center;
    margin-bottom: 15px;
}

.vip-level-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: inline-block;
}

.vip-list-in h2 {
    text-align: center;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    font-size: 24px;
    font-weight: 600;
}

.vip-hot-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4d4f;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9;
}

.vip-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 0 0 25px;
}

.vip-price-money {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.vip-price-day {
    font-size: 14px;
    color: #bcbcbc;
    padding-left: 5px;
}

.vip-price-save {
    margin: -12px 0 18px;
    text-align: center;
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
}

.vip-row {
    flex: 1;
    margin-bottom: 25px;
}

.vip-row ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vip-allow {
    color: #bcbcbc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    font-size: 13px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.vip-allow:nth-child(odd) {
    background: #fafafa;
}

.vip-allow.allow {
    color: initial;
}

.vip-allow.allow .vip-ico-ok {
    color: green;
}

.vip-allow .vip-ico-no {
    color: #c0c0c0;
}

.vip-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.vip-buy {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
}

.vip-buy form {
    width: 100%;
    margin: 0;
}

.vip-buy-btn,
.vip-buy button,
.vip-buy a.vip-buy-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-radius: 6px;
    border: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    color: #fff !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.vip-buy-btn:hover,
.vip-buy button:hover {
    opacity: 0.9;
}

.vip-buy-btn.is-disabled,
.vip-buy button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.vip-balance {
    margin-left: 12px;
    font-style: normal;
    font-size: 13px;
    color: #8a919f;
    font-weight: 400;
}

.vip-balance a {
    color: #1677ff;
    text-decoration: none;
}

body.vip-pay-open {
    overflow: hidden;
}

.vip-pay-modal {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    pointer-events: none;
}

.vip-pay-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

.vip-pay-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.vip-pay-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 28px 24px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
    transform: translate3d(0, 12px, 0) scale(0.96);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
}

.vip-pay-modal.is-show .vip-pay-modal-mask {
    opacity: 1;
}

.vip-pay-modal.is-show .vip-pay-modal-panel {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

.vip-pay-modal-x {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.vip-pay-modal-x:hover {
    background: #f1f5f9;
    color: #475569;
}

.vip-pay-modal-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

.vip-pay-modal-sub {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

.vip-pay-modal-amount {
    margin: 14px 0 18px;
    text-align: center;
    font-size: 28px;
    font-weight: 750;
    color: #1677ff;
    letter-spacing: -0.03em;
}

.vip-pay-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.vip-pay-opt {
    display: block;
    margin: 0;
    cursor: pointer;
}

.vip-pay-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vip-pay-opt-card {
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #1f2329;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.vip-pay-opt-card i {
    grid-row: 1 / span 2;
    font-size: 20px;
    color: #1677ff;
    text-align: center;
}

.vip-pay-opt-card em {
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
}

.vip-pay-opt-card small {
    font-size: 12px;
    color: #8a919f;
}

.vip-pay-opt input:checked + .vip-pay-opt-card {
    border-color: #1677ff;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.vip-pay-opt.is-off {
    cursor: not-allowed;
    opacity: 0.55;
}

.vip-pay-opt.is-off .vip-pay-opt-card {
    background: #f8fafc;
}

.vip-pay-tip {
    margin: 12px 0 0;
    font-size: 12px;
    color: #8a919f;
    line-height: 1.5;
}

.vip-pay-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}

.vip-pay-btn {
    min-width: 108px;
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.vip-pay-btn.is-ghost {
    background: #fff;
    border-color: #e2e8f0;
    color: #475569;
}

.vip-pay-btn.is-ghost:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.vip-pay-btn.is-primary {
    background: #1677ff;
    color: #fff !important;
}

.vip-pay-btn.is-primary:hover {
    background: #0f66e0;
}

.vip-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vip-pay-qr-box {
    display: block;
    margin: 8px auto 0;
    padding: 16px;
    width: fit-content;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.vip-pay-qr-box img {
    display: block;
    margin: 0 auto 12px;
}

.vip-pay-qr-box p {
    margin: 0;
    font-size: 13px;
    color: #646a73;
}

.vip-footer {
    padding: 30px 15px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.vip-footer > h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 30px;
    font-weight: 600;
    color: #1a1a1a;
}

.vip-footer > p {
    text-align: center;
    color: #8590a6;
    margin: 0 0 10px;
}

.vip-faq {
    margin-top: 20px;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
}

.vip-faq-list {
    font-size: 18px;
    padding: 20px;
    cursor: pointer;
}

.vip-faq-list + .vip-faq-list {
    border-top: 1px solid #f5f6f7;
}

.vip-faq-list h2 {
    text-align: left;
    font-size: 16px;
    margin: 0;
    color: #bcbcbc;
    font-weight: 600;
}

.vip-faq-list p {
    font-size: 15px;
    margin-top: 10px;
    line-height: 1.7;
    color: #4a4a4a;
}

.vip-faq-list .b2-hidden {
    display: none;
}

/* 右侧悬浮开通条（对齐参考站） */
.gdd-quick-link-buy-vip {
    position: fixed;
    right: 0;
    bottom: 120px;
    height: 108px;
    width: 40px;
    z-index: 90;
    color: #fff;
}

.gdd-quick-link-buy-vip,
.gdd-quick-link-buy-vip__hover-block,
.gdd-quick-link-buy-vip__popover,
.gdd-quick-link-buy-vip__popover--btn {
    background-color: #ef0053;
}

.gdd-quick-link-buy-vip__hover-block {
    position: absolute;
    right: 0;
    z-index: 100;
    width: 40px;
    height: 108px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.gdd-quick-link-buy-vip__hover-block img {
    margin-top: 10px;
    margin-bottom: 5px;
    width: 28px;
    height: auto;
}

.gdd-quick-link-buy-vip__hover-block p {
    width: 28px;
    margin: 0 auto;
    font-size: 12px;
    text-align: center;
    line-height: 1.35;
    color: #fff;
}

.gdd-quick-link-buy-vip a {
    text-decoration: none !important;
    color: #fff;
}

.gdd-quick-link-buy-vip__popover {
    position: absolute;
    right: 0;
    top: 0;
    width: 200px;
    height: 108px;
    padding: 8px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    overflow: hidden;
    transform: translateX(200px);
    transition: all 0.3s;
    box-sizing: border-box;
}

.gdd-quick-link-buy-vip__popover > div {
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    height: 100%;
    box-sizing: border-box;
}

.gdd-quick-link-buy-vip__popover--title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #121212;
}

.gdd-quick-link-buy-vip__popover--desc {
    margin: 6px 0 8px;
    font-size: 12px;
    color: #8590a6;
}

.gdd-quick-link-buy-vip__popover--btn {
    margin: 0;
    width: 60px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    color: #fff !important;
    background-color: #ef0053;
}

.gdd-quick-link-buy-vip:hover .gdd-quick-link-buy-vip__popover {
    transform: translateX(0);
}

@media (min-width: 768px) and (max-width: 992px) {
    .vip-item {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 767px) {
    .vip-item {
        flex: 0 0 100%;
    }

    .vip-list-in {
        padding: 15px;
    }

    .vip-price-money {
        font-size: 24px;
    }

    .vip-current {
        font-size: 15px;
        padding: 14px;
    }

    .gdd-quick-link-buy-vip {
        display: none;
    }
}
