/* 分页样式 */

#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;
}

/* 轮播图样式 */
.focusBox {
    position: relative;
    width: 270px;
    height: 300px;
    overflow: hidden;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.focusBox .pic {
    position: relative;
    width: 1080px;
    height: 280px;
    overflow: hidden;
}

.focusBox .pic li {
    position: relative;
    float: left;
    width: 270px;
    height: 280px;
}

.deanfocuspic {
    position: relative;
    width: 250px;
    height: 168px;
    margin: 10px auto;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.deanfocuspic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.deanfocuspic:hover img {
    transform: scale(1.05);
}

.deanfocusbox {
    padding: 0 10px 10px;
}

.deanfocusbox h5 {
    margin: 10px 0 5px;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
}

.deanfocusbox h5 a {
    color: #333;
    display: block;
    transition: color 0.2s;
}

.deanfocusbox h5 a:hover {
    color: #73af0c;
}

.deanfocusbox p {
    margin: 0 0 5px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    height: 3em;
    overflow: hidden;
}

.read-more {
    color: #73af0c;
    font-weight: bold;
    margin-left: 5px;
    transition: color 0.2s;
}

.read-more:hover {
    color: #5a8f0a;
    text-decoration: none;
}

.focusBox .prev,
.focusBox .next {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    line-height: 24px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 16px;
    border-radius: 50%;
    z-index: 2;
    transition: background 0.2s;
}

.focusBox .prev:hover,
.focusBox .next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.focusBox .prev {
    left: 5px;
}

.focusBox .next {
    right: 5px;
}

.focusBox .hd {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.focusBox .hd li {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.focusBox .hd li.on {
    background: #fff;
}

/* 相关推荐 */
.recommendations {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    margin-top: 20px;
    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;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}

/* 没有找到搜索内容的样式 */
.no-search-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-search-icon {
    margin-bottom: 20px;
    color: #999;
    font-size: 48px;
    opacity: 0.8;
}

.no-search-text h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.no-search-text p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 25px;
}

.search-suggestions {
    width: 100%;
    max-width: 700px;
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #eee;
    text-align: left;
}

.search-suggestions h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.search-suggestions ul {
    padding-left: 20px;
}

.search-suggestions li {
    font-size: 15px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .no-search-results {
        padding: 30px 15px;
    }
    
    .no-search-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .no-search-text h3 {
        font-size: 20px;
    }
    
    .no-search-text p {
        font-size: 15px;
    }
    
    .search-suggestions {
        padding: 15px;
    }
    
    .search-suggestions h4 {
        font-size: 16px;
    }
    
    .search-suggestions li {
        font-size: 14px;
    }
}