/* 右侧功能边栏样式 */
.features-sidebar {
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    overflow-y: auto;
    transition: all 0.3s ease;
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
}

.features-sidebar-content {
    padding-right: 15px;
    position: relative;
}

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

.features-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.features-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.dark-mode .features-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 功能区菜单链接滑动线效果 */
.left-sidebar-widget .list-group-item a {
    position: relative;
    transition: all 0.3s ease;
    padding-left: 10px;
}

.left-sidebar-widget .list-group-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.left-sidebar-widget .list-group-item a:hover::before {
    transform: scaleY(1);
}

.left-sidebar-widget .list-group-item a:hover {
    color: var(--link-hover-color);
    padding-left: 15px;
}

/* 功能小部件样式 */
.left-sidebar-widget {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: var(--bg-color);
}

.left-sidebar-widget .card-header {
    padding: 10px 15px;
    background-color: var(--card-header-bg, #f8f9fa);
    border-bottom: 1px solid var(--border-color, #e6e6e6);
}

.left-sidebar-widget .widget-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.left-sidebar-widget .card-body {
    padding: 12px;
}

/* 书籍推荐样式 */
.book-recommendations {
    padding: 12px 12px 5px 12px;
}

.book-item {
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #e6e6e6);
}

.book-cover {
    width: 60px;
    height: 80px;
    margin-right: 12px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    flex: 1;
}

.book-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-color);
}

.book-author {
    font-size: 12px;
    color: var(--text-light, #666);
    margin: 0 0 4px 0;
}

.book-rating {
    display: flex;
    align-items: center;
}

.stars {
    color: #f39c12;
    font-size: 12px;
    margin-right: 5px;
}

.score {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light, #666);
}

.more-books, .vocab-next, .more-bugs {
    display: inline-block;
    font-size: 13px;
    color: var(--primary-color, #0078d7);
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.more-books:after, .vocab-next:after, .more-bugs:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color, #0078d7);
    transition: width 0.3s ease;
}

.more-books:hover:after, .vocab-next:hover:after, .more-bugs:hover:after {
    width: 100%;
}

/* 编程词汇卡片样式 */
.vocab-card {
    background-color: var(--bg-light, #f8f9fa);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.vocab-term {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color, #0078d7);
}

.vocab-category {
    font-size: 12px;
    color: var(--text-light, #666);
    margin-bottom: 8px;
    display: inline-block;
    padding: 2px 8px;
    background-color: #e7f0ff;
    border-radius: 12px;
}

.vocab-definition {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 8px;
}

.vocab-definition p {
    margin: 0;
}

.vocab-example {
    background-color: var(--code-bg, #f5f7fa);
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    overflow-x: auto;
}

.vocab-example code {
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    color: #d63384;
}

/* 列表项样式 */
.list-group-item {
    padding: 0;
    border: none;
    border-bottom: 1px solid var(--border-color, #e6e6e6);
    background-color: var(--bg-color);
}

.list-group-item:last-child {
    border-bottom: none;
}

/* 环境配置链接样式 */
.env-setup-link {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.env-setup-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color, #0078d7);
    transition: width 0.3s ease;
}

.env-setup-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--link-hover-color, #0056b3);
}

.env-setup-link:hover:before {
    width: 100%;
}

.env-setup-link i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Bug修复链接样式 */
.bug-fix-link {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.bug-fix-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color, #0078d7);
    transition: width 0.3s ease;
}

.bug-fix-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.bug-fix-link:hover:before {
    width: 100%;
}

.bug-fix-language {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color, #0078d7);
    margin-bottom: 4px;
}

.bug-fix-title {
    font-size: 13px;
}

/* 深色模式适配 */
.dark-mode .left-sidebar-widget {
    background-color: #1f2937;
    border-color: #374151;
}

.dark-mode .left-sidebar-widget .card-header {
    background-color: #111827;
    border-color: #374151;
}

.dark-mode .list-group-item {
    background-color: #1f2937;
    border-color: #374151;
}

.dark-mode .vocab-card {
    background-color: #1e2f4a;
}

.dark-mode .env-setup-link:hover,
.dark-mode .bug-fix-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .vocab-category {
    background-color: #15243b;
    color: #aaa;
}

.dark-mode .vocab-example {
    background-color: #15243b;
}

.dark-mode .vocab-example code {
    color: #ff89a9;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .features-sidebar {
        height: auto;
        position: relative;
    }
    
    .book-item {
        flex-direction: row;
    }
    
    .book-cover {
        width: 50px;
        height: 70px;
    }
} 