/* 小工具样式 */
.widget {
    background: var(--card-background);
    border: 1px solid var(--light-gray);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
}

.widget-title {
    font-family: var(--font-family-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

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

.widget ul li {
    padding: 5px 0;
    border-bottom: 1px solid var(--light-gray);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.widget ul li a:hover {
    color: var(--secondary-color);
}

/* 标签云小工具样式 */
.widget .tagcloud a {
    display: inline-block;
    padding: 4px 10px;
    margin: 3px;
    font-size: 1em !important; /* 覆盖默认大小 */
    text-decoration: none;
    background-color: var(--light-gray);
    color: var(--text-color);
    border-radius: 0;
    transition: all 0.2s ease;
}

.widget .tagcloud a:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* 随动小工具样式 */
.yingshizhuti-sticky-widget {
    position: -webkit-sticky;
    position: sticky;
    top: 80px; /* 顶部距离，可以根据 header 高度调整 */
    transition: top 0.3s ease;
}

.yingshizhuti-sticky-widget.is-sticky {
    top: 20px; /* 滚动时固定的位置 */
}