.msg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.msg-modal-overlay.active {
    opacity: 1;
    visibility: visible;

}

.msg-modal {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    transform: translateY(-20px);
    transition: transform 0.3s;
    overflow: hidden;
}

.msg-modal-overlay.active .msg-modal {
    transform: translateY(0);
}

.msg-modal-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.msg-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.msg-modal-title {
    font-size: 1.3rem;
    color: #2c3e50;
}

.msg-modal-body {
    padding: 20px 25px;
    color: #7f8c8d;
    line-height: 1.6;
}

.msg-modal-footer {
    padding: 15px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.msg-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    min-width: 80px;
}

.msg-modal-btn-primary {
    background: #3498db;
    color: white;
}

.msg-modal-btn-primary:hover {
    background: #2980b9;
}

/* 成功弹窗样式 */
.success-modal .msg-modal-header {
    background: rgba(46, 204, 113, 0.1);
}

.success-modal .msg-modal-icon {
    background: #2ecc71;
    color: white;
}

/* 错误弹窗样式 */
.error-modal .msg-modal-header {
    background: rgba(231, 76, 60, 0.1);
}

.error-modal .msg-modal-icon {
    background: #e74c3c;
    color: white;
}

/* 输入弹窗样式 */
.input-modal .msg-modal-header {
    background: rgba(52, 152, 219, 0.1);
}

.input-modal .msg-modal-icon {
    background: #3498db;
    color: white;
}

.input-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.3s;
    margin-top: 10px;
}

.input-field:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

