/**
 * ZFVE 自定义模态弹窗样式
 */

/* 遮罩层 - 确保完美居中 */
.zfve-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 999999;  /* 提高层级，确保在最上层 */
    display: none;
    animation: zfve-fade-in 0.3s ease;
}

.zfve-modal-overlay.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* 弹窗容器 */
.zfve-modal {
    background: linear-gradient(135deg, #1e2a3a 0%, #2d3748 100%);
    border-radius: 12px;
    padding: 0;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    animation: zfve-modal-in 0.3s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* 弹窗头部 */
.zfve-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.zfve-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.zfve-modal-icon.warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.4);
}

.zfve-modal-icon.info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.zfve-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

/* 弹窗内容 */
.zfve-modal-body {
    padding: 24px;
    color: #cbd5e0;
    font-size: 14px;
    line-height: 1.6;
}

.zfve-modal-body p {
    margin: 0 0 12px 0;
}

.zfve-modal-body p:last-child {
    margin-bottom: 0;
}

.zfve-modal-episode-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
    border-left: 3px solid #ed8936;
}

.zfve-modal-episode-info .label {
    color: #a0aec0;
    font-size: 12px;
    margin-bottom: 4px;
}

.zfve-modal-episode-info .value {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

/* 弹窗底部按钮 */
.zfve-modal-footer {
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.zfve-modal-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.zfve-modal-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e0;
}

.zfve-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.zfve-modal-btn-primary {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
}

.zfve-modal-btn-primary:hover {
    background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(237, 137, 54, 0.4);
}

.zfve-modal-btn-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.zfve-modal-btn-info:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
}

/* 关闭按钮 */
.zfve-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #cbd5e0;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.zfve-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

/* 动画 */
@keyframes zfve-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zfve-modal-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zfve-modal-out {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.9);
        opacity: 0;
    }
}

.zfve-modal.closing {
    animation: zfve-modal-out 0.3s ease forwards;
}

/* 响应式 */
@media (max-width: 480px) {
    .zfve-modal {
        max-width: 95%;
    }
    
    .zfve-modal-header {
        padding: 16px 20px;
    }
    
    .zfve-modal-body {
        padding: 20px;
    }
    
    .zfve-modal-footer {
        padding: 12px 20px;
        flex-direction: column;
    }
    
    .zfve-modal-btn {
        width: 100%;
    }
}

