.sidebar {
    position: fixed;
    bottom: 0%; 
    left: 0%;
    width: 4%;
    height: 100%;
    padding: 10px;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
    cursor: default;
    font-family: MiSans;
    letter-spacing: 1px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 图标的容器样式 */
.sidebar-element-container {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    gap: 7.5%; /* SVG 之间的间距 */
    margin-top: 30px;
    margin-bottom: 30px; /* 底部留出空间 */ 
    /* justify-content: center; 垂直居中对齐 */
    align-items: center; /* 水平居中对齐 */
    height: 100%; /* 确保容器有高度，便于居中 */
}

/* 每个图标和文本的容器 */
.sidebar-element {
    display: flex; /* 使用 flexbox 布局 */
    align-items: center; /* 垂直居中对齐 */
    position: relative; /* 使位置相对 */
    cursor: pointer;
    transition: transform 0.2s; /* 鼠标悬停动画 */
}
.sidebar-element:hover {
    transform: scale(1.1); /* 鼠标悬停时放大 */
}

/* 图标的样式 */ 
.sidebar-element-icon {
    width: 3rem;
    height: 3rem; 
    object-fit: contain; /* 保持图标的比例 */
    margin: 0 auto; /* 自动左右边距以实现居中 */
}

/* 文本的样式 */
.sidebar-element-text {
    margin-left: 10px; /* 图标和文本之间的间距 */
    font-size: 2rem; /* 设置字体大小 */
    color: #ffffff; /* 文本颜色 */
    display: none; /* 初始隐藏 */
    visibility: hidden; /* 使文本不可见 */
    transition: visibility 0s 1.5s, opacity 1.5s ease; /* 添加平滑过渡效果 */
    opacity: 0; /* 初始透明度为0 */
}

/* 显示文本时的样式 */
.sidebar-element-text.show {
    display: inline; /* 显示文本 */
    visibility: visible; /* 使文本可见 */
    opacity: 1; /* 完全不透明 */
    transition: opacity 1.5s ease; /* 过渡效果 */
}
