/* 公共样式 - 薪资查询系统 */
* { box-sizing: border-box; }
body {
    font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
    margin: 0;
    background: #f5f6fa;
}
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    z-index: 99999;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 14px;
}
.toast.error { background: #dc3545; }
.btn {
    padding: 8px 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    background: #2b7cd3;
    color: #fff;
    transition: background 0.2s;
}
.btn:hover { background: #1b5b9c; }
.btn:disabled { background: #aaa; cursor: not-allowed; }
.btn-green { background: #28a745; }
.btn-green:hover { background: #1e7e34; }
.btn-red { background: #dc3545; }
.btn-red:hover { background: #c82333; }
.btn-gray { background: #6c757d; }
.btn-gray:hover { background: #5a6268; }
.btn-orange { background: #f0ad4e; }
.btn-orange:hover { background: #ec971f; }
input, select, textarea {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2b7cd3;
}
table {
    border-collapse: collapse;
    width: 100%;
}
th, td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
}
th { background: #f0f0f0; font-weight: 600; }
tr:hover { background: #f9f9f9; }
.warn { color: #d9534f; margin: 8px 0; font-size: 14px; }
.tip { color: #5bc0de; margin: 8px 0; font-size: 14px; }
.success { color: #28a745; margin: 8px 0; font-size: 14px; }
.mask {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 2000;
}
.modal-box {
    width: 380px;
    background: #fff;
    margin: 120px auto;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.modal-box h3 { margin: 0 0 15px; font-size: 18px; }
.modal-box input {
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0;
    padding: 10px;
}
.modal-box .btn-row { margin-top: 12px; display: flex; gap: 10px; }
.modal-msg { color: #e74c3c; margin-top: 10px; font-size: 13px; min-height: 18px; }
