/**
 * 数字命理模块 - 侧边栏组件样式
 * 与八字命理模块的侧边栏风格保持一致
 */

.sidebar {
    position: fixed;
    top: 70px; /* 为顶部导航栏留出空间 */
    left: 0;
    width: 280px;
    height: calc(100vh - 70px); /* 减去顶部导航栏高度 */
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 170, 0, 0.2);
    padding: 20px 0;
    z-index: 999;
    overflow-y: auto;
    color: white;
}

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

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

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

.function-item {
    margin: 0;
}

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

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
    
    .function-link {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* 侧边栏滚动条样式 */
.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(255, 215, 0, 0.5);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.8);
} 