/* 新闻列表页样式 */

.article-list-wrapper {
    background: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 搜索结果页样式 */
.search-results-wrapper {
    background: #fff;
    padding: 0;
}

.search-results-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #06467c;
}

.search-results-title {
    font-size: 24px;
    font-weight: 700;
    color: #06467c;
    margin: 0 0 10px 0;
}

.search-results-info {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.search-results-count {
    color: #06467c;
    font-weight: 600;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.search-result-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #06467c;
}

.search-result-item:hover .search-result-title {
    color: #06467c;
}

.search-result-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-result-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.search-result-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.search-result-url {
    display: none;
}

.search-result-date {
    color: #999;
}

.article-list-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.article-list-link:hover .article-list-item {
    background: #ebebeb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    border-left-color: #06467c;
}

.article-list-link:hover .article-list-title {
    color: #06467c;
}

.article-list-link:hover .article-list-date {
    background: #06467c;
}

.article-list-link:hover .article-list-desc {
    color: #555;
}

.article-list-item {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-left: 3px solid transparent;
    overflow: hidden;
}

.article-list-image {
    flex: 0 0 200px;
    width: 200px;
    min-width: 200px;
    height: 100%;
    min-height: 150px;
    overflow: hidden;
    background: #e0e0e0;
    align-self: stretch;
}

.article-list-image img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.article-list-link:hover .article-list-image img {
    transform: scale(1.05);
}

.article-list-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-list-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 20px;
    transition: color 0.3s ease;
}

.article-list-date {
    font-size: 14px;
    font-weight: 600;
    background: #005faf;
    color: #fff;
    padding: 12px 14px;
    border-radius: 0;
    white-space: nowrap;
    flex-shrink: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.article-list-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 20px;
    flex: 1;
    transition: color 0.3s ease;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s ease;
}

.pagination-item:hover {
    color: #06467c;
    border-color: #06467c;
    background: #f0f7ff;
}

.pagination-item.active {
    color: #fff;
    background: #06467c;
    border-color: #06467c;
    font-weight: 600;
}

.pagination-item.prev,
.pagination-item.next {
    min-width: 80px;
}

/* 新闻详情页样式 */

.article-details-wrapper {
    background: #fff;
    padding: 0;
}

.article-details-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #06467c;
}

.article-details-title {
    font-size: 28px;
    font-weight: 700;
    color: #06467c;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.article-details-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.article-details-date,
.article-details-category {
    display: flex;
    align-items: center;
}

.article-details-content {
    margin-top: 30px;
}

.article-details-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.article-details-text p {
    margin: 0 0 20px 0;
}

.article-details-text h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
}

.article-details-text ul {
    margin: 15px 0;
    padding-left: 30px;
}

.article-details-text li {
    margin: 8px 0;
    color: #666;
}

.article-details-text img {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .sidebar-contact {
        display: none;
    }
    
    .article-list-item {
        flex-direction: row;
    }
    
    .article-list-image {
        flex: 0 0 120px;
        width: 120px;
        min-width: 120px;
        height: 120px;
    }
    
    .article-list-image img {
        height: 120px;
    }
    
    .article-list-title {
        font-size: 16px;
        gap: 8px;
        line-height: 38px;
        padding: 0 15px;
    }
    
    .article-list-date {
        font-size: 12px;
        padding: 10px 12px;
        height: 38px;
    }
    
    .article-list-desc {
        padding: 15px;
        font-size: 13px;
    }
    
    .article-details-title {
        font-size: 24px;
    }
    
    .article-details-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
    }
    
    .article-details-text {
        font-size: 14px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination-item {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
    
    .pagination-item.prev,
    .pagination-item.next {
        min-width: 70px;
    }
}
