/* 新闻页面专用样式 */

.news-hero {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(41, 128, 185, 0.8));
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.news-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.news-hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.news-filter {
    padding: 40px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-tab.active,
.filter-tab:hover {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.news-content {
    padding: 80px 0;
    background: white;
}

.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.news-article {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.news-article:hover {
    background: #e9ecef;
    transform: translateY(-5px);
}

.news-image {
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-article:hover .news-image img {
    transform: scale(1.05);
}

.news-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.news-category {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.news-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    color: #2980b9;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    padding: 10px 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-hero h1 {
        font-size: 36px;
    }
    
    .news-hero p {
        font-size: 18px;
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .news-article {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .news-image img {
        height: 250px;
    }
    
    .news-info h3 {
        font-size: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .news-content {
        padding: 50px 0;
    }
    
    .news-article {
        padding: 15px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-info h3 {
        font-size: 18px;
    }
}

/* 新闻资讯页面样式 */

/* 页面标题区域 */
.news-header {
    padding: 30px 0 30px;
}

.news-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-align: left;
    margin: 0;
    position: relative;
    padding-left: 20px;
}

.news-header h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: #4CAF50;
    border-radius: 2px;
}

/* 新闻内容区域 */
.news-content {
    padding: 0px 0 30px;
}

/* 新闻网格布局 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* 新闻卡片 */
.news-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 新闻图片 */
.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e8f5e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 新闻信息 */
.news-info {
    padding: 20px;
}

/* 新闻日期 */
.news-date {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.news-date::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 2.8em; 
    height: 2px;
    background: rgb(230,206,228);
    opacity: 0.6;
}

/* 新闻标题 */
.news-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻摘要 */
.news-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页控制器 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.page-btn.current {
    background: #4CAF50;
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.page-btn.prev,
.page-btn.next {
    font-weight: 600;
}

.page-btn.prev:disabled,
.page-btn.next:disabled,
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.page-btn.prev:disabled:hover,
.page-btn.next:disabled:hover,
.page-btn:disabled:hover {
    background: #f8f9fa;
    color: #666;
}

.dots {
    color: #999;
    font-size: 14px;
    padding: 0 8px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .news-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .news-header {
        padding: 40px 0 30px;
    }
    
    .news-header h1 {
        font-size: 28px;
        text-align: left;
        padding-left: 18px;
    }
    
    .news-header h1::before {
        width: 3px;
        height: 26px;
    }
    
    .news-content {
        padding: 30px 0 60px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-info {
        padding: 18px;
    }
    
    .news-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .news-summary {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-header {
        padding: 30px 0 20px;
    }
    
    .news-header h1 {
        font-size: 24px;
        padding-left: 16px;
    }
    
    .news-header h1::before {
        width: 3px;
        height: 22px;
    }
    
    .news-content {
        padding: 20px 0 40px;
    }
    
    .news-grid {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-info {
        padding: 15px;
    }
    
    .news-date {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .news-date::after {
        width: 2.5em;
        height: 1.5px;
    }
    
    .news-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .news-summary {
        font-size: 12px;
    }
    
    .page-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .dots {
        font-size: 12px;
        padding: 0 4px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 为不同的卡片添加延迟动画 */
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }
.news-card:nth-child(7) { animation-delay: 0.7s; }
.news-card:nth-child(8) { animation-delay: 0.8s; }
.news-card:nth-child(9) { animation-delay: 0.9s; } 