
/* 侧边菜单 */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.side-menu.active {
    left: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #2196F3;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.side-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.menu-close {
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s;
}

.menu-close:hover {
    transform: rotate(90deg);
}

.side-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu-list > li {
    border-bottom: 1px solid #f0f0f0;
}

.side-menu-list > li > a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
}

.side-menu-list > li > a:hover {
    background: #f5f5f5;
    color: #2196F3;
}

/* 二级菜单样式 */
.has-submenu {
    position: relative;
}

.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
    cursor: pointer;
}

.submenu-toggle:hover {
    background: #f5f5f5;
    color: #2196F3;
}

.submenu-toggle i {
    font-size: 12px;
    transition: transform 0.3s;
}

.has-submenu.active .submenu-toggle i {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
}

.has-submenu.active .submenu {
    max-height: 500px;
}

.submenu li {
    border-bottom: 1px solid #f0f0f0;
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu li a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
}

.submenu li a:hover {
    background: #f0f0f0;
    color: #2196F3;
}

.header-title {
    flex: 1;
    text-align: center;
}

.header-title h1 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.header-title p {
    font-size: 0.7rem;
    opacity: 0.9;
}

.home-btn {
    /* padding: 8px 12px; */
    /* background: rgba(255, 255, 255, 0.2); */
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.home-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.home-btn i {
    font-size: 1.9rem;
}
