/**
 * 自定义模态框样式
 */

/* 遮罩层 */
.vc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99999;
    animation: vcModalFadeIn 0.2s ease-out;
}

/* 模态框容器 */
.vc-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 500px;
    overflow: hidden;
}

/* 模态框头部 */
.vc-modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
}

/* 关闭按钮 */
.vc-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.vc-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* 图标 */
.vc-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.vc-modal-icon svg {
    width: 36px;
    height: 36px;
}

.vc-modal-icon-success {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
}

.vc-modal-icon-success svg {
    stroke: white;
}

.vc-modal-icon-error {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
}

.vc-modal-icon-error svg {
    stroke: white;
}

.vc-modal-icon-warning {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
}

.vc-modal-icon-warning svg {
    stroke: white;
}

.vc-modal-icon-info {
    background: linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);
}

.vc-modal-icon-info svg {
    stroke: white;
}

/* 标题 */
.vc-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 内容区 */
.vc-modal-body {
    padding: 0 30px 30px;
    text-align: center;
}

.vc-modal-message {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 底部按钮区 */
.vc-modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* 按钮样式 */
.vc-modal-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.vc-modal-btn-primary {
    background: linear-gradient(135deg, #FF6A00 0%, #FF8C00 100%);
    color: white;
}

.vc-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.vc-modal-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.vc-modal-btn-secondary:hover {
    background: #e0e0e0;
}

/* 动画 */
@keyframes vcModalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes vcModalSlideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .vc-modal {
        min-width: 90%;
        max-width: 90%;
    }
    
    .vc-modal-header {
        padding: 25px 20px 15px;
    }
    
    .vc-modal-body {
        padding: 0 20px 25px;
    }
    
    .vc-modal-footer {
        padding: 15px 20px 25px;
        flex-direction: column;
    }
    
    .vc-modal-btn {
        width: 100%;
    }
}
