/* ===== 按钮 - 公共基础 ===== */
button {
    background: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 16px;
    margin-right: 10px;
}

button:hover {
    filter: brightness(0.95);
}

/* ===== 尺寸 ===== */
.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    margin-right: 6px;
}

.btn-md {
    padding: 6px 16px;
    font-size: 14px;
    margin-right: 8px;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 16px;
    margin-right: 10px;
}

/* ===== 颜色 ===== */

.btn-edit,
.btn-excute {
    background: #1976d2;
    border: 1px solid #1976d2;
}

.btn-delete {
    background: #ff0000;
    border: 1px solid #ff0000;
}

.btn-delete:hover {
    filter: none;
    background: #d70000;
}

.btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.btn-cancel:hover {
    filter: none;
    background: #e0e0e0;
}
/*输入*/
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: inline-block;
    min-width: 100px;
    height: 40px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.4s;
}

input:hover {
    border-color: #4CAF50;
}

input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    min-width: 100px;
    display: inline-block;
    height: 40px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.4s;
    cursor: pointer;
}

select:hover {
    border-color: #4CAF50;
}

select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* 弹框遮罩 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 弹框内容 */
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}
.modal-header {
    margin-bottom: 24px;
}

.modal-header h3 {
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #4a6ee0;
    padding-bottom: 10px;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
/* toast.css - 顶部提示组件 */

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    text-align: center;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 80%;
    word-break: break-word;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success { background: #4CAF50; }
.toast-error   { background: #f44336; }
.toast-warning { background: #ff9800; }
.toast-info    { background: #2196F3; }