body {
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ================ 新布局样式 ================ */

/* 顶部固定导航栏 */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid #e8ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 40px;
    width: auto;
}

.header-slogan {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-menu:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-home {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-home:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-profile:hover {
    background: #f8f9fa;
}

.user-avatar {
    font-size: 24px;
    color: #6c757d;
}

.user-name {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

/* 左侧竖向导航栏 */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 200px;
    height: calc(100vh - 60px);
    background: white;
    border-right: 1px solid #e8ecef;
    z-index: 999;
    overflow-y: auto;
}

.sidebar-content {
    padding: 20px 0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #4a90e2;
    text-decoration: none;
}

.nav-link.active {
    background: #e8f4fd;
    color: #4a90e2;
    border-left-color: #4a90e2;
}

.nav-link i {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

/* 多级导航菜单样式 */
.nav-group {
    margin-bottom: 2px;
}

.nav-group-title {
    position: relative;
    padding-right: 40px !important;
}

.nav-group-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    font-size: 12px;
}

.nav-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.nav-subitem {
    margin: 0;
}

.nav-sublink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 50px;
    color: #6c757d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-sublink:hover {
    background: #e9ecef;
    color: #4a90e2;
    text-decoration: none;
}

.nav-sublink.active {
    background: #e8f4fd;
    color: #4a90e2;
    border-left-color: #4a90e2;
}

.nav-sublink i {
    font-size: 14px;
    width: 14px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: #6c757d;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.nav-group.expanded .nav-group-title {
    background: #f8f9fa;
    color: #4a90e2;
}

/* 主要内容区域 */
.main-content {
    margin-left: 200px;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    background: #f8f9fa;
}

.content-wrapper {
    padding: 24px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header-slogan {
        display: none;
    }
    
    .user-name {
        display: none;
    }
    
    .btn-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-left {
        gap: 10px;
    }
    
    .header-logo {
        height: 32px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .btn-home {
        padding: 8px 12px;
        min-width: 40px;
    }
}

.navbar {
    margin-bottom: 1rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.btn-group .btn {
    margin-right: 2px;
}

/* 自定义下拉菜单样式 */
.dropdown-menu {
    background-color: #f8f9fa; /* 背景色 */
    border: 1px solid rgba(0, 0, 0, 0.15); /* 边框 */
    border-radius: 0.5rem; /* 圆角 */
}
.dropdown-item {
    color: #212529; /* 字体颜色 */
}
.dropdown-item:hover {
    background-color: #007bff; /* 悬停背景色 */
    color: white; /* 悬停字体颜色 */
}
.dropdown-item:focus {
    outline: none; /* 去掉聚焦时的轮廓 */
    background-color: #0056b3; /* 聚焦背景色 */
    color: white; /* 聚焦字体颜色 */
}

