.k-nav .navbar-nav li a {
    margin: 0 auto;
    /* margin-bottom: -35px; */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 17px;
    padding: 10px;
    color: #ffffff;
}

/* 分页样式 */

#pagi {
    text-align: center;
    margin: 20px 0;
}

#pagi a,
#pagi b {
    border-radius: 10px;
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
}

#pagi a:hover {
    background-color: #f5f5f5;
}

.zit {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.widget.w-recommend .recommend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.widget.w-recommend .recommend-item {
    flex: 1 1 30%;
    min-width: 200px;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.widget.w-recommend .recommend-item:hover {
    transform: translateY(-5px);
}

.widget.w-recommend .recommend-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.widget.w-recommend .recommend-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.widget.w-recommend .recommend-item h4 {
    padding: 10px;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.widget.w-recommend .recommend-item p {
    padding: 0 10px 10px;
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* 相关推荐 */
.recommendations {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #4CAF50;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.recommendation-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommendation-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 15px;
}

.card-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: #e8f5e9;
    color: #4CAF50;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.card-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 13px;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 无搜索结果样式 */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-results-icon {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.no-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.search-suggestions {
    background-color: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions p {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.search-suggestions ul {
    padding-left: 20px;
    margin: 0;
}

.search-suggestions li {
    margin-bottom: 8px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .no-results {
        padding: 30px 15px;
    }

    .no-results-icon {
        font-size: 50px;
    }

    .no-results h3 {
        font-size: 22px;
    }

    .no-results p {
        font-size: 15px;
    }
}