/* 新闻动态页面特定样式 */

.news-page {
    padding: 30px 0;
    background-color: #fff;
}

/* 分页控件样式 */
.pagination {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e5e5e5;
}

.pagination-info {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 12px;
    margin: 2px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 36px;
}

.pagination-btn:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.pagination-btn.active {
    background-color: #003366;
    color: white;
    border-color: #003366;
}

.pagination-btn.prev-btn,
.pagination-btn.next-btn {
    padding: 8px 16px;
    font-weight: 500;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination-controls {
        gap: 3px;
    }

    .pagination-btn {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 32px;
    }

    .pagination-btn.prev-btn,
    .pagination-btn.next-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .pagination-info {
        font-size: 13px;
    }
}

.news-page.single-column .news-sections {
    grid-template-columns: 1fr;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.8rem;
    color: #003366;
    font-weight: bold;
}

/* 栏目切换 */
.news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 16px;
    border: 1px solid #003366;
    background: #fff;
    color: #003366;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-btn:hover {
    background-color: rgba(0, 51, 102, 0.08);
}

.tab-btn.active {
    background-color: #003366;
    color: #fff;
}

.tab-select-label {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #003366;
}

.tab-select-label select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    min-width: 180px;
}

/* 双栏目布局 */
.news-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.news-section {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.news-section.hidden {
    display: none;
}

.section-header {
    margin-bottom: 15px;
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
}

.section-header h2 {
    color: #003366;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.section-desc {
    color: #666;
    font-size: 0.95rem;
}

/* 新闻项 */
.news-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

/* 新闻缩略图 */
.news-thumbnail {
    flex: 0 0 250px;
    height: 200px;
    overflow: hidden;
}

.news-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef3f8 0%, #d9e4ef 100%);
    color: #5d7186;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.news-thumbnail-placeholder span {
    padding: 0 20px;
    text-align: center;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-thumbnail img:hover {
    transform: scale(1.05);
}

/* 新闻内容 */
.news-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.news-title {
    margin-bottom: 10px;
}

.news-title a {
    color: #003366;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #0055aa;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.news-summary {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    max-height: 64px; /* 限制摘要最大高度约为4行 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* 最多显示4行 */
    -webkit-box-orient: vertical;
}

.read-more {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0055aa;
    text-decoration: underline;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    text-decoration: none;
    color: #003366;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover:not(.current) {
    background-color: #f0f0f0;
}

.pagination a.current {
    background-color: #003366;
    color: white;
    border-color: #003366;
}

.pagination a.prev,
.pagination a.next {
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-controls {
        gap: 10px;
    }

    .tab-buttons {
        display: none;
    }

    .tab-select-label {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .news-sections {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2.2rem;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-thumbnail {
        flex: none;
        height: 200px;
    }
    
    .news-title a {
        font-size: 1.2rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination a {
        margin: 3px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .news-thumbnail {
        height: 150px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .news-title a {
        font-size: 1.1rem;
    }
    
    .news-summary {
        font-size: 0.9rem;
    }
}
