
/* 模态框遮罩 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

/* 模态框卡片 */
.modal-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    width: 80%;
    max-width: 400px;
    transform: scale(0.9);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.modal-card h2 {
    margin: 0 0 10px 0;
    color: var(--text-main);
}

.modal-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.modal-btn:active {
    transform: translateY(1px);
}

/* 错误卡片特有样式 */
.error-card .modal-btn {
    background: var(--error-color);
    box-shadow: 0 4px 15px rgba(255, 77, 79, 0.3);
}

.error-card .modal-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 77, 79, 0.4);
}

@keyframes popIn {
    to {
        transform: scale(1);
    }
}
