/* 侧边栏样式 */
.sidebar {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Logo区域样式 */
.logo-area {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* 导航按钮容器 */
.nav-buttons {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    min-height: 0;
}

/* 用户状态区域 */
.user-status {
    flex-shrink: 0;
    width: 100%;
}

/* 导航按钮样式 */
.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.nav-button:hover {
    cursor: pointer;
}

.nav-button span:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button span:last-child:not(:only-child) {
    margin-left: 8px;
}

/* 收缩按钮样式 - 发光小球 */
.collapse-button {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 100;
    cursor: pointer;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #B8F0E2 25%, #98DBC6 50%, #6AB8A0 75%, #4A9B82 100%);
    box-shadow:
        inset 0 1px 4px rgba(255, 255, 255, 0.6),
        inset 0 -1px 4px rgba(0, 0, 0, 0.1),
        0 0 12px rgba(152, 219, 198, 0.6),
        0 0 24px rgba(152, 219, 198, 0.3),
        0 0 36px rgba(152, 219, 198, 0.15),
        0 4px 16px rgba(152, 219, 198, 0.4);
    overflow: hidden;
    animation: collapseBreathe 3s ease-in-out infinite;
    flex-shrink: 0;
}

/* 动态光晕动画 */
.collapse-button::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 50%);
    opacity: 0;
    animation: collapseShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

/* 宝石高光效果 */
.collapse-button::after {
    content: '';
    position: absolute;
    width: 35%;
    height: 25%;
    top: 12%;
    left: 18%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 50%;
    filter: blur(0.5px);
    pointer-events: none;
}

/* 呼吸动画 */
@keyframes collapseBreathe {
    0%, 100% {
        box-shadow:
            inset 0 1px 4px rgba(255, 255, 255, 0.6),
            inset 0 -1px 4px rgba(0, 0, 0, 0.1),
            0 0 12px rgba(152, 219, 198, 0.6),
            0 0 24px rgba(152, 219, 198, 0.3),
            0 0 36px rgba(152, 219, 198, 0.15),
            0 4px 16px rgba(152, 219, 198, 0.4);
    }
    50% {
        box-shadow:
            inset 0 1px 4px rgba(255, 255, 255, 0.8),
            inset 0 -1px 4px rgba(0, 0, 0, 0.08),
            0 0 18px rgba(152, 219, 198, 0.8),
            0 0 36px rgba(152, 219, 198, 0.5),
            0 0 54px rgba(152, 219, 198, 0.25),
            0 4px 16px rgba(152, 219, 198, 0.5);
    }
}

/* 光晕扫过动画 */
@keyframes collapseShimmer {
    0%, 100% {
        opacity: 0;
        transform: translate(-20%, -20%) rotate(0deg);
    }
    50% {
        opacity: 0.6;
        transform: translate(20%, 20%) rotate(180deg);
    }
}

.collapse-button:hover {
    transform: scale(1.2) rotate(5deg);
    box-shadow:
        inset 0 1px 6px rgba(255, 255, 255, 0.8),
        inset 0 -1px 4px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(152, 219, 198, 0.9),
        0 0 40px rgba(152, 219, 198, 0.6),
        0 0 60px rgba(152, 219, 198, 0.3),
        0 6px 24px rgba(152, 219, 198, 0.5);
}

.collapse-button:hover::before {
    animation-duration: 2s;
}

.collapse-button:active {
    transform: scale(1.1) rotate(0deg);
    box-shadow:
        inset 0 1px 4px rgba(255, 255, 255, 0.7),
        inset 0 -1px 6px rgba(0, 0, 0, 0.15),
        0 0 15px rgba(152, 219, 198, 0.7),
        0 0 30px rgba(152, 219, 198, 0.4),
        0 0 45px rgba(152, 219, 198, 0.2),
        0 3px 12px rgba(152, 219, 198, 0.4);
}

.collapse-button span {
    pointer-events: none;
    display: none;
}

/* 内容区样式 */
.content-area {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 加载状态 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #999;
}
