/* 侧边栏基础样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #fff url('{label:sidebar_bg}');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar.open {
    left: 0;
}

.sidebar-content {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* 添加半透明白色背景 */
    height: 100%;
}

/* 关闭按钮样式 */
.close-button {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.close-icon {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    padding: 5px;
}

.close-icon:hover {
    color: #000;
    background: rgba(255, 255, 255, 0.9);
    transform: rotate(90deg);
}

.close-icon svg {
    width: 24px;
    height: 24px;
}

/* Logo样式 */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.logo {
    height: 48px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

/* 确保导航菜单在侧边栏中有正确的宽度 */
.sidebar-content nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 导航项目样式 */
.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(226, 226, 226, 0.7);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    background-color: rgba(255, 255, 255, 0.5);
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-title {
    border-left: 4px solid #000;
    padding-left: 8px;
    font-weight: bold;
    margin-right: 8px;
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

.nav-subtitle {
    font-size: 12px;
    color: #555;
    font-style: italic;
}

/* 遮罩层样式 */
.sidebar-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-mask.open {
    opacity: 1;
    visibility: visible;
}

/* 侧边栏标题样式 */
.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    display: inline-block;
}

/* 分割线样式 */
.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(226, 226, 226, 0.8), transparent);
    margin: 15px 0;
}

/* 滚动条样式 */
.sidebar-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* 侧边栏底部样式 */
.sidebar-footer {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
}