/* 新闻动态页面样式 */

/* 基础设置 */
:root {
    --accent-color: #A5282C;  /* 主题红色 */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f8f8;
    --bg-dark: #000000;
    --section-padding: 80px 5%;
}

body {
    font-family: 'PingFang SC', 'Alibaba PuHuiTi 3.0', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 优化文本选择样式 */
::selection {
    background-color: var(--accent-color);
    color: #fff;
}

/* 横幅区域样式 */
.hero-banner {
    position: relative;
    height: 300px;
    background-image: url('../images/hero_background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.banner-content p {
    font-size: 16px;
    margin: 0 auto;
    letter-spacing: 1px;
    line-height: 1.6;
    text-transform: uppercase;
}

/* 新闻分类导航 */
.news-nav {
    background-color: white;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.tab-btn:hover::after,
.tab-btn.active::after {
    width: 80%;
}

.tab-btn.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* 新闻列表 */
.news-list {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.news-item {
    display: flex;
    margin-bottom: 40px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-image {
    flex: 0 0 35%;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    padding: 30px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.news-category {
    color: var(--accent-color);
    font-weight: 500;
}

.news-title {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #8a2023;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 分页 */
.pagination {
    padding: 20px 0 60px;
    background-color: var(--bg-light);
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-link, .page-dots, .page-next {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-link.active {
    background-color: var(--accent-color);
    color: white;
}

.page-link:hover, .page-next:hover {
    background-color: #eee;
}

.page-dots {
    background: none;
    box-shadow: none;
}

/* 添加加载动画样式 */
.loading-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner-ring {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* 错误消息样式 */
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    color: #e74c3c;
}

.error-message i {
    font-size: 48px;
    margin-bottom: 15px;
}

.error-message span {
    font-size: 16px;
    font-weight: 500;
}

/* 无数据消息样式 */
.no-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    color: #7f8c8d;
}

.no-data-message i {
    font-size: 48px;
    margin-bottom: 15px;
}

.no-data-message span {
    font-size: 16px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-banner {
        height: 250px;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 992px) {
    .hero-banner {
        height: 220px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        flex: 0 0 200px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 200px;
    }
    
    .banner-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .banner-content p {
        font-size: 12px;
    }
    
    .news-tabs {
        flex-wrap: wrap;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 180px;
    }
    
    .banner-content h1 {
        font-size: 20px;
    }
    
    .tab-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .pagination-wrapper {
        gap: 5px;
    }
    
    .page-link, .page-dots, .page-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
} 