/* 侧边栏基础样式 */
.sidebar-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding-left: 12px;
    position: relative;
}

.sidebar-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #1e88e5;
    border-radius: 2px;
}

/* 分类列表样式 */
.category-list {
    padding: 10px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.category-item:hover {
    background: #f5f5f5;
    color: #1e88e5;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
}

/* 热门文章样式 */
.hot-articles {
    padding: 10px;
}

.hot-item {
    padding: 10px;
    border-bottom: 1px dashed #eee;
}

.hot-item:last-child {
    border-bottom: none;
}

.hot-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hot-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.hot-source {
    color: #1e88e5;
    font-weight: 500;
}

.hot-date {
    color: #999;
}

/* 悬停效果 */
.hot-link:hover .hot-title {
    color: #1e88e5;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .sidebar-section {
        margin-top: 20px;
    }
}

/* 深色主题支持 */
body.dark-theme .sidebar-section {
    background: #242424;
    border: 1px solid #333;
}

body.dark-theme .sidebar-header {
    border-bottom-color: #333;
}

body.dark-theme .sidebar-title {
    color: #e0e0e0;
}

body.dark-theme .category-item {
    color: #e0e0e0;
}

body.dark-theme .category-item:hover {
    background: #2a2a2a;
}

body.dark-theme .hot-title {
    color: #e0e0e0;
}

body.dark-theme .hot-item {
    border-bottom-color: #333;
}

body.dark-theme .hot-meta {
    color: #888;
} 