* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.header {
    background-color: #8e0000;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    margin-right: 20px;
}

.staff-management-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.staff-management-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.logout-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.container {
    display: flex;
    min-height: calc(100vh - 64px);
}

.sidebar {
    width: 220px;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.menu-item.active {
    background-color: #f0e6e6;
    border-left: 4px solid #8e0000;
}

.menu-item:hover {
    background-color: #f9f9f9;
}

.menu-item i {
    margin-right: 10px;
    color: #666;
}

.content {
    flex: 1;
    padding: 20px;
}

/* 全局弹窗样式 */
.global-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-modal .modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px 24px 28px;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    text-align: center;
    animation: modalSlideIn 0.3s;
}

.global-modal .modal-title {
    color: #8e0000;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 18px;
}

.global-modal .modal-message {
    color: #333;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
}

.global-modal .modal-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.global-modal .modal-btn {
    padding: 10px 32px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.global-modal .modal-confirm-btn {
    background: #8e0000;
    color: #fff;
    border: none;
}

.global-modal .modal-confirm-btn:hover {
    background: #6b0000;
}

.global-modal .modal-cancel-btn {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.global-modal .modal-cancel-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}