/* news.css - 新闻中心页面样式 */


body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Hero */
.page-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/public/static/img/building.jpg');
    background-size: cover;
    background-position: center;
    animation: zoom-in 10s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fade-in-up 1s ease-out;
}

.page-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
}

/* 新闻主体区域 */
.news-main-section {
    padding: 80px 0 100px;
    background: #fff;
}

/* 新闻标签切换 */
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
}

.news-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 30px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.news-tab-btn .tab-en {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.news-tab-btn .tab-zh {
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-tab-btn.active .tab-en {
    color: var(--primary-color);
}

.news-tab-btn.active .tab-zh {
    color: var(--primary-color);
}

.news-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    transition: transform 0.3s ease;
}

.news-tab-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

.news-tab-btn:hover .tab-en,
.news-tab-btn:hover .tab-zh {
    color: var(--primary-color);
}

/* 标签内容 */
.news-tab-content {
    display: none;
}

.news-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 新闻列表项 */
.news-list-item {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    text-decoration: none;
}

.news-list-item:hover {
    background: #fafafa;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
    margin-right: -20px;
}

/* 左侧：日期+图片 */
.news-left {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-shrink: 0;
}

/* 日期盒子 */
.news-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
}

.date-day {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.date-month-year {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.date-month {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.date-year {
    font-size: 0.85rem;
    color: #999;
}

/* 缩略图 */
.news-thumbnail {
    width: 200px;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-list-item:hover .news-thumbnail img {
    transform: scale(1.08);
}

/* 右侧：标题+描述 */
.news-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.news-list-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.news-list-item:hover .news-list-title {
    color: var(--primary-color);
}

.news-list-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-read-more:hover {
    gap: 12px;
    color: #003d7a;
}

.news-read-more i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.news-read-more:hover i {
    transform: translateX(4px);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 60px 0 0;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary-color);
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-btn:hover:not([disabled]) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: #666;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-number:hover,
.pagination-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-dots {
    color: #999;
    font-weight: 600;
    padding: 0 8px;
}

/* 动画效果 */
@keyframes zoom-in {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .news-tabs {
        gap: 40px;
    }
    
    .news-left {
        gap: 20px;
    }
    
    .news-thumbnail {
        width: 160px;
        height: 120px;
    }
    
    .news-list-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .page-title {
        font-size: 3rem;
    }
    
    .news-tabs {
        gap: 30px;
    }
    
    .news-tab-btn .tab-zh {
        font-size: 1.1rem;
    }
    
    .news-list-item {
        flex-direction: column;
        gap: 20px;
        padding: 30px 0;
    }
    
    .news-left {
        flex-direction: row;
        gap: 20px;
        width: 100%;
    }
    
    .news-date-box {
        width: 70px;
    }
    
    .date-day {
        font-size: 2.5rem;
    }
    
    .news-thumbnail {
        flex: 1;
        width: auto;
        height: 180px;
    }
    
    .news-list-title {
        font-size: 1.15rem;
    }
    
    .news-list-desc {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .news-tabs {
        gap: 20px;
    }
    
    .news-tab-btn {
        padding: 8px 20px;
    }
    
    .news-tab-btn .tab-en {
        font-size: 0.75rem;
    }
    
    .news-tab-btn .tab-zh {
        font-size: 1rem;
    }
    
    .news-date-box {
        width: 60px;
    }
    
    .date-day {
        font-size: 2rem;
    }
    
    .date-month {
        font-size: 0.85rem;
    }
    
    .news-thumbnail {
        height: 140px;
    }
    
    .news-list-title {
        font-size: 1.05rem;
    }
    
    .pagination-btn,
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
