/* 侧边栏部件样式 */
.widget {
    direction: rtl;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.widget h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* 关于我部件 */
.author-info {
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.author-description {
    direction: rtl;
    margin-bottom: 1rem;
    color: #555;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 搜索部件 */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
}

.search-button {
    padding: 0.75rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #0056b3;
}

/* 名言名句部件 */
.quote-content {
    text-align: center;
    font-style: italic;
}

.quote-text {
    margin-bottom: 0.5rem;
    color: #555;
}

.quote-author {
    color: #6c757d;
    font-weight: bold;
}

/* 标签云部件 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud-item {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.tag-cloud-item:hover {
    background-color: #007bff;
    color: white;
}

/* 推荐文章部件 */
.recommended-posts,
.popular-posts,
.categories-list {
    list-style: none;
}

.recommended-posts li,
.popular-posts li,
.categories-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.recommended-posts li:last-child,
.popular-posts li:last-child,
.categories-list li:last-child {
    border-bottom: none;
}

.recommended-posts a,
.popular-posts a,
.categories-list a {
    color: #333;
    display: block;
    transition: color 0.3s ease;
}

.recommended-posts a:hover,
.popular-posts a:hover,
.categories-list a:hover {
    color: #007bff;
}

.categories-list span {
    float: right;
    color: #6c757d;
}