/* VIP弹窗新样式 - 基于参考页面设计 */

/* 引入Inter字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 适配子比modal结构 */
#modal_pay_uservip .modal-dialog {
    max-width: 800px;
    width: 90%;
    margin: 20px auto;
}

#modal_pay_uservip .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

#modal_pay_uservip .modal-body {
    padding: 0;
}

/* 重置原有的payvip-modal样式 */
.payvip-modal-new {
    padding: 0 !important;
    background: #F2F3F5;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 头部区域样式 */
.vip-modal-header {
    background: linear-gradient(135deg, #165DFF 0%, #0E42D2 100%);
    color: white;
    padding: 24px;
    position: relative;
}

.vip-modal-header h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.vip-modal-header p {
    opacity: 0.9;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.vip-modal-header .close {
    position: absolute;
    right: 24px;
    top: 24px;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.vip-modal-header .close:hover {
    background: rgba(255,255,255,0.2);
    opacity: 1;
}

/* 主体内容区域 */
.vip-modal-body {
    padding: 24px;
    background: white;
}

/* 价格区域样式 */
.vip-price-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.vip-price-left {
    flex: 1;
    min-width: 280px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFF 100%);
    border: 1px solid #E8ECFF;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 180px;
}

.vip-price-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF7D00 0%, #FF5722 100%);
    border-radius: 12px 12px 0 0;
}

.vip-price-header {
    margin-bottom: 16px;
}

.vip-price-left h2 {
    font-size: 16px;
    font-weight: 600;
    color: #2D3748;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vip-price-left h2::before {
    content: '👑';
    margin-right: 8px;
    font-size: 14px;
}

.vip-price-main {
    margin-bottom: 16px;
}

.vip-original-price {
    color: #A0AEC0;
    text-decoration: line-through;
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 400;
    display: block;
}

.vip-current-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 6px;
}

.vip-current-price .price {
    color: #FF7D00;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(255, 125, 0, 0.15);
    letter-spacing: -1px;
}

.vip-current-price .unit {
    color: #718096;
    font-size: 18px;
    margin-left: 6px;
    font-weight: 600;
}

.vip-price-desc {
    color: #4A5568;
    font-size: 13px;
    margin-bottom: 0;
    opacity: 0.8;
    line-height: 1.4;
}

.vip-price-footer {
    display: none;
}

.vip-price-main .vip-promo-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #FFF5F5 0%, #FED7D7 100%);
    color: #E53E3E;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #FEB2B2;
    box-shadow: 0 2px 6px rgba(229, 62, 62, 0.15);
    letter-spacing: 0.3px;
    margin-top: 12px;
}

.vip-price-main .vip-promo-tag::before {
    content: '🔥';
    margin-right: 6px;
    font-size: 12px;
}

.vip-promo-tag {
    display: none;
}

.vip-promo-tag i {
    display: none;
}


/* 优势介绍区域 - 新的橙色梯度设计 */
.vip-advantage-box {
    flex: 1;
    min-width: 280px;
    background: linear-gradient(135deg, #FF7D00 0%, #FF5722 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(255, 125, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.vip-advantage-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.vip-advantage-box h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vip-advantage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vip-advantage-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    opacity: 0.95;
}

.vip-advantage-list li:last-child {
    margin-bottom: 0;
}

.vip-advantage-list i {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 12px;
}

.vip-advantage-list span {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

/* 权益区域样式 */
.vip-benefits-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #4E5969;
    margin: 0 0 16px 0;
}

.vip-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.vip-benefit-item {
    background: #F7F8FA;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    cursor: default;
}

.vip-benefit-item:hover {
    background: #E5E6EB;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.vip-benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(22, 93, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #165DFF;
    margin-right: 16px;
    flex-shrink: 0;
}

.vip-benefit-content h3 {
    font-size: 16px;
    font-weight: 500;
    color: #1D2129;
    margin: 0 0 4px 0;
}

.vip-benefit-content p {
    color: #4E5969;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* 支付方式区域 */
.vip-payment-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #4E5969;
    margin: 0 0 16px 0;
}

/* 单一支付方式显示 */
.single-payment-info {
    text-align: center;
    padding: 16px;
    background: #f7f8fa;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 16px;
    color: #4E5969;
}

.vip-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.vip-payment-method {
    border: 2px solid #E5E6EB;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.vip-payment-method:hover {
    border-color: #165DFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.vip-payment-method.active {
    border-color: #165DFF;
    background: rgba(22, 93, 255, 0.02);
}

.vip-payment-method-info {
    display: flex;
    align-items: center;
}

.vip-payment-method-info i {
    font-size: 24px;
    margin-right: 12px;
}

.vip-payment-method-info .fa-wechat {
    color: #1AAD19;
}

.vip-payment-method-info .fa-credit-card {
    color: #1677FF;
}

.vip-payment-method span {
    color: #4E5969;
    font-size: 16px;
}

.vip-payment-check {
    color: #165DFF;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vip-payment-method.active .vip-payment-check {
    opacity: 1;
}

/* 支付按钮容器 */
.vip-pay-button-wrapper {
    position: relative;
}

/* 隐藏原始支付按钮的样式 */
.vip-pay-button-wrapper .initiate-pay,
.vip-pay-button-wrapper .zib_ajax_payment,
.vip-pay-button-wrapper .but,
.vip-pay-button-wrapper .button {
    display: none !important;
}

/* 支付按钮 */
.vip-pay-button {
    width: 100%;
    background: linear-gradient(135deg, #FF7D00 0%, #FF5722 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 125, 0, 0.3);
}

.vip-pay-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #FF6F00 0%, #E64A19 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(255, 125, 0, 0.4);
}

.vip-pay-button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
}

.vip-pay-button i {
    margin-right: 8px;
    transition: all 0.3s ease;
}

.vip-pay-button .fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .vip-modal-header {
        padding: 24px;
    }
    
    .vip-modal-header h1 {
        font-size: 24px;
    }
    
    .vip-modal-body {
        padding: 24px;
    }
    
    .vip-price-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .vip-benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .vip-payment-methods {
        grid-template-columns: 1fr;
    }
    
    .vip-current-price .price {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .vip-modal-header {
        padding: 20px;
    }
    
    .vip-modal-header h1 {
        font-size: 20px;
    }
    
    .vip-modal-body {
        padding: 20px;
    }
    
    .vip-benefit-item {
        padding: 16px;
    }
    
    .vip-current-price .price {
        font-size: 28px;
    }
}