﻿/* 遮罩层样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 模态框容器 */
.modal-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 500px;
    max-width: 90%;
    border-top: 4px solid #007bff;
    position: relative;
}

/* 关闭按钮 */
.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f1f1f1;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal-close:hover {
        background-color: #e0e0e0;
    }

/* 模态框头部 */
.modal-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* 模态框内容 */
.modal-content {
    padding: 20px;
    color: #666;
    line-height: 1.6;
}

    .modal-content p {
        margin: 0 0 10px 0;
    }

/* 模态框底部 */
.modal-footer {
    padding: 15px 20px 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-content,
.modal-footer {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    outline: none;
    box-shadow: none;
}
/* 按钮样式 */
.modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    min-width: 120px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

    .btn-primary:hover {
        background-color: #0069d9;
    }

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background-color: #5a6268;
    }

.btn-dark {
    background-color: #343a40;
    color: white;
}

    .btn-dark:hover {
        background-color: #23272b;
    }

/* 响应式调整 */
@media (max-width: 576px) {
    .modal-footer {
        flex-direction: column;
        align-items: center;
    }

    .modal-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* 隐藏模态框 */
.hidden {
    display: none;
}
