/* 塔罗牌模块 - 侧边栏样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(15, 25, 45, 0.95);
    backdrop-filter: blur(10px);
    border-right: 2px solid #9966cc;
    padding: 20px;
    box-sizing: border-box;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

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

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

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

.function-item {
    margin-bottom: 8px;
}

.function-link {
    display: block;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
    border: 1px solid transparent;
}

.function-link:hover {
    background: rgba(153, 102, 204, 0.1);
    color: #dda0dd;
    border-color: rgba(153, 102, 204, 0.3);
    transform: translateX(5px);
}

.function-link.active {
    background: linear-gradient(135deg, rgba(153, 102, 204, 0.2), rgba(221, 160, 221, 0.1));
    color: #dda0dd;
    border-color: rgba(153, 102, 204, 0.5);
    box-shadow: 0 2px 10px rgba(153, 102, 204, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        background: rgba(15, 25, 45, 0.98);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        background: rgba(153, 102, 204, 0.9);
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 20px;
        color: #fff;
        box-shadow: 0 4px 15px rgba(153, 102, 204, 0.3);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: #9966cc;
        transform: scale(1.1);
    }
    
    .function-link {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* 侧边栏滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(153, 102, 204, 0.5);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(153, 102, 204, 0.8);
} 