/* ===================== 会员支付弹窗样式 ===================== */

/* 遮罩层 */
.member-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.member-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗卡片 */
.member-modal {
    background: #fff;
    border-radius: 12px;
    width: 90vw;
    max-width: 360px;
    padding: 32px 24px 24px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.member-modal-overlay.active .member-modal {
    transform: translateY(0) scale(1);
}

/* 关闭按钮 */
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    border: none;
    background: none;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

/* 标题区图标 */
.modal-icon {
    text-align: center;
    font-size: 40px;
    margin-bottom: 8px;
}

/* 标题文字 */
.modal-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}

/* 分隔线 */
.modal-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 16px 0;
}

/* 描述文字 */
.modal-desc {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

/* 价格行 */
.price-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

/* 原价 */
.price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* 促销价 */
.price-current {
    font-size: 28px;
    font-weight: 800;
    color: #ff4757;
}

/* /月 后缀 */
.price-unit {
    font-size: 14px;
    color: #666;
}

/* 支付方式区 */
.payment-method {
    margin: 20px 0 16px;
    padding: 12px 16px;
    border: 2px solid #1677FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
}

.payment-method .alipay-icon {
    font-size: 20px;
}

.payment-method .method-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.payment-method .method-check {
    margin-left: auto;
    color: #1677FF;
    font-size: 18px;
}

/* 主按钮 */
.pay-btn {
    width: 100%;
    padding: 14px 0;
    background: #1677FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.pay-btn:hover {
    background: #0960db;
}

.pay-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* loading 旋转动画 */
.pay-btn .btn-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: member-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

/* 底部协议 */
.modal-footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 16px;
}

.modal-footer a {
    color: #1677FF;
    text-decoration: none;
}

/* 支付结果提示 */
.member-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.member-toast.show {
    transform: translateX(-50%) translateY(0);
}

.member-toast.success {
    background: #52c41a;
}

.member-toast.error {
    background: #ff4d4f;
}

/* 旋转动画 keyframes */
@keyframes member-spin {
    to {
        transform: rotate(360deg);
    }
}

/* 弹窗打开时禁止背景滚动 */
body.modal-open {
    overflow: hidden;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .member-modal {
        padding: 24px 16px 16px;
    }

    .price-current {
        font-size: 24px;
    }

    .modal-title {
        font-size: 16px;
    }
}
