/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--card-border);
    position: relative;
    z-index: 10000;
}

.modal-overlay.show .modal-container {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--card-text);
    margin: 0;
}

.modal-body {
    text-align: center;
    margin-bottom: 25px;
}

.modal-message {
    font-size: 15px;
    color: var(--card-text);
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 取消按钮 - 深青蓝 */
.modal-btn-cancel {
    background: #004D61;
    color: #F0F0F0;
    border: 1px solid rgba(0, 77, 97, 0.5);
}

.modal-btn-cancel:hover {
    background: #006B7D;
}

/* 成功按钮 - 森林绿 */
.modal-btn-success {
    background: #3E5641;
    color: #F0F0F0;
    border: 1px solid rgba(62, 86, 65, 0.5);
}

.modal-btn-success:hover {
    background: #4E6651;
}

/* 错误按钮 - 深宝石红 */
.modal-btn-error {
    background: #822659;
    color: #F0F0F0;
    border: 1px solid rgba(130, 38, 89, 0.5);
}

.modal-btn-error:hover {
    background: #9A3069;
}

/* 警告按钮 - 金色 */
.modal-btn-warning {
    background: #D4AF37;
    color: #1A1A1A;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.modal-btn-warning:hover {
    background: #E4BF47;
}

/* 信息按钮 - 深青蓝 */
.modal-btn-info {
    background: #004D61;
    color: #F0F0F0;
    border: 1px solid rgba(0, 77, 97, 0.5);
}

.modal-btn-info:hover {
    background: #006B7D;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .modal-container {
        width: 85%;
        padding: 25px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-message {
        font-size: 14px;
    }
    
    .modal-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
