/* VIP支付弹窗样式 */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.payment-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    width: 92%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

.payment-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 12px 12px 0 0;
    color: white;
}

.payment-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-title .vip-icon {
    width: 24px;
    height: 24px;
}

.payment-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.payment-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.payment-body {
    padding: 32px;
    display: flex;
    gap: 32px;
}

/* 左侧价格区域 */
.price-section {
    flex: 1;
}

/* 右侧支付区域 */
.payment-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 支付内容容器 */
.payment-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 价格套餐列表 */
.price-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.price-item {
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 85px;
}

.price-item:hover {
    border-color: #ff6b35;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.price-item.selected {
    border-color: #ff6b35;
    background: #fff7e6;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.price-item.selected::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.price-info {
    flex: 1;
}

.price-des {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.price-values {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-top: auto;
}

.current-price {
    font-size: 20px;
    font-weight: 600;
    color: #ff6b35;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.recommend-tag {
    position: absolute;
    top: -1px;
    right: 8px;
    background: #ff6b35;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 0 0 4px 4px;
    font-weight: 500;
}

/* 支付方式选择 */
.payment-methods {
    margin-top: 0;
}

.payment-methods-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
}

.payment-method-list {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.payment-method-item {
    flex: 1;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.payment-method-item:hover {
    border-color: #ff6b35;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.payment-method-item.selected {
    border-color: #ff6b35;
    background: #fff7e6;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.payment-method-icon {
    width: 40px;
    height: 40px;
}

.payment-method-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 二维码显示区域 */
.qr-code-section {
    display: none;
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 16px;
}

.qr-code-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.qr-code-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
}

.qr-code-container {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    display: inline-block;
    margin-bottom: 16px;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.qr-code-tips {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.payment-status {
    font-size: 14px;
    font-weight: 500;
    color: #ff6b35;
    margin-bottom: 16px;
}

.payment-status.loading {
    color: #1890ff;
}

.payment-status.success {
    color: #52c41a;
}

.payment-status.error {
    color: #ff4d4f;
}



/* 支付按钮 - 在右侧底部 */
.payment-actions {
    display: flex;
    gap: 12px;
    padding-top: 24px;
}

.payment-actions .btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-actions .btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.payment-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.payment-actions .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.payment-actions .btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #e8e8e8;
}

.payment-actions .btn-secondary:hover {
    background: #f8f9fa;
    border-color: #ff6b35;
    color: #ff6b35;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .payment-content {
        width: 95%;
        max-width: 600px;
    }
    
    .payment-body {
        flex-direction: column;
        gap: 20px;
    }
    
    .payment-header {
        padding: 16px 20px 12px;
        border-radius: 8px 8px 0 0;
    }
    
    .payment-body {
        padding: 20px;
    }
    
    .price-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .payment-content {
        width: 98%;
        max-width: 400px;
        border-radius: 8px;
    }
    
    .payment-header {
        padding: 12px 16px 8px;
    }
    
    .payment-body {
        padding: 16px;
        gap: 16px;
    }
    
    .payment-method-list {
        flex-direction: column;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .qr-code-image {
        width: 180px;
        height: 180px;
    }
}

/* 加载状态 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}