/* 侧边栏小工具样式 */
.sidebar-widget {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    box-shadow: 0 0 10px var(--main-shadow);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.widget-header {
    padding: 15px 15px 10px;
    border-bottom: 1px solid var(--main-border-color);
    position: relative;
}

.widget-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--key-color);
    display: flex;
    align-items: center;
}

.widget-header h3 i {
    margin-right: 8px;
    color: var(--focus-color);
    font-size: 18px;
}

.widget-content {
    padding: 15px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--muted-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.sidebar-widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-widget ul li:hover {
    transform: translateX(5px);
}

.sidebar-widget ul li a {
    color: var(--main-color);
    font-size: 14px;
    line-height: 1.5;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    transition: color 0.2s ease;
}

.sidebar-widget ul li a:hover {
    color: var(--focus-color);
}

/* 热门文章特殊样式 */
.hot-posts .post-views {
    font-size: 12px;
    color: var(--muted-2-color);
    background: var(--muted-border-color);
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    margin-left: 8px;
}

/* 文章分类特殊样式 */
.category-posts .cat-count {
    font-size: 12px;
    color: var(--muted-2-color);
    background: var(--muted-border-color);
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    margin-left: 8px;
}

/* 随便看看特殊样式 */
.random-posts ul li::before {
    content: "•";
    color: var(--focus-color);
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

.random-posts .post-views {
    font-size: 12px;
    color: var(--muted-2-color);
    background: var(--muted-border-color);
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    margin-left: 8px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .sidebar-widget {
        margin-bottom: 15px;
    }

    .widget-header {
        padding: 12px 15px 8px;
    }

    .widget-content {
        padding: 12px 15px;
    }
}

@media (max-width: 768px) {
    .sidebar-widget ul li {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .sidebar-widget ul li a {
        font-size: 13px;
    }
}