/* 手相面相模块侧边栏样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px; /* 从顶部导航栏下方开始 */
    width: 280px;
    height: calc(100vh - 70px); /* 减去顶部导航栏的高度 */
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-right: 2px solid #00ffff;
    padding: 20px 0;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-category {
    margin-bottom: 20px;
}

.category-title {
    color: #00ffff;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 20px 10px;
    margin-bottom: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    line-height: 1.4;
}

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

.function-item {
    margin: 0;
}

.function-link {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 15px 20px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 16px;
}

.function-link:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    border-left-color: #00ffff;
    transform: translateX(5px);
}

.function-link.active {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border-left-color: #00ffff;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        z-index: 9999;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }
    
    .function-link {
        padding: 12px 15px;
        font-size: 14px;
    }
} 