/* 联合会概览头部样式 */

/* 飞入动画 */
@keyframes flyInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flyInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flyInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 初始隐藏状态 */
.main-news.animate-init {
    opacity: 0;
    transform: translateX(-50px);
}

.main-news-info.animate-init {
    opacity: 0;
    transform: translateX(50px);
}

.news-list-section.animate-init {
    opacity: 0;
    transform: translateY(50px);
}

/* 动画执行类 */
.main-news.animate {
    animation: flyInLeft 0.6s ease-out forwards;
}

.main-news-info.animate {
    animation: flyInRight 0.6s ease-out forwards;
    animation-delay: 0.2s;
}

.news-list-section.animate {
    animation: flyInUp 0.6s ease-out forwards;
    animation-delay: 0.4s;
}

/* 新闻容器 */
.news-container {
    width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 新闻内容 */
.news-content { 
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    height: 100%;
}

.news-content-inner {
    display: flex;
    max-width: 1670px;
    margin: 0 auto;
    /* height: 100%; */
}

/* 新闻卡片容器 */
.news-card {
    display: flex;
    background-color: white;
    width: 1670px;
    height: 600px;
}

/* 主要新闻 */
.main-news {
    flex: 1.6;
    position: relative;
    display: flex;
    flex-direction: column;
}

.main-news-img {
    width: 100%;
    flex: 1; 
    min-height: 250px;
}

/* 主要新闻内容 */
.main-news-info {
    flex: 1;
    padding: 80px 30px 30px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
}

.main-news-info .hot-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-image: url('/files/pub/img/sjlycslhh/hot-tag.svg');
    background-size: cover;
    color: white;
    padding: 16px 50px;
    font-size: 28px;
    font-weight: 500; 
}

.main-news-info .news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.main-news-info h3 {  
    margin: 100px 0 20px 0; 
    line-height: 1.4; 
    font-weight: 700;
    font-style: normal;
    font-size: 30px;
    color: #001528; 
    text-justify: inter-word;
    line-height: 50px;
    overflow: hidden;
    word-wrap: break-word;
    max-width: 100%;
}

.main-news-info p,
.main-news-info div.news-description {
    font-size: 20px;
    line-height: 1.8;
    margin: 0 0 45px 0; 
    color: #454D54;
    flex: 1;
    overflow: hidden;
    word-wrap: break-word;
    max-width: 100%;
}

.main-news-info .read-more {
    background-image: url('/files/pub/img/sjlycslhh/read-more.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center ;
    text-decoration: none; 
    display: inline-flex;  
    position: relative;
    height: 18px;
    padding-right: 60px;
}

.main-news-date {
    font-size: 20px;
    color: #A1A5A8;
    padding: 28px 0; 
    display: inline-block;
    margin-top: 10px;
}

/* 新闻轮播导航 */
.news-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.news-carousel-nav button {
    width: 40px;
    height: 80px;  
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    font-size: 50px;
    color: #5e8abc;
    background-color: transparent;
}

.news-carousel-nav button:hover {
    /* background-color: white;  */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 分页指示器 */
.pagination-indicators {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 8px;
}

.pagination-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-indicator.active {
    background-color: #0066cc;
}

 

.news-list-section-inner {
    max-width: 1670px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 新闻列表项 */
.news-list-item {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    background-color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 新闻列表图片 */
.news-list-img {
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
}

.news-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 新闻列表内容 */
.news-list-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-list-content h4 {
    margin: 0;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    color: #000000;
    line-height: 1.5;
}

.news-list-content h4 a {  
    font-weight: 500;
    font-style: normal;
    font-size: 22px;
    color: #001528;
    line-height: 38px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-list-content h4 a:hover {
    color: #0066cc;
}

.news-list-content .news-list-date {
    font-size: 16px;
    color: #A1A5A8;
    margin-top: auto;
}

/* 新闻列表底部 */
.news-list-footer {
    display: flex;
    flex:1;
    flex-direction: column;
    align-items: left;
}

.news-list-date {
    font-size: 16px;
    color: #999;
}

.news-list-divider { 
    margin-top: 10px;
    height: 4px; 
    position: relative;
    overflow: hidden;
}

.news-list-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #0066cc, #00cc66);
    transition: left 0.5s ease;
}

.news-list-item:hover .news-list-divider::after {
    left: 0;
}

/* 新闻列表 */
.news-list {
    width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 新闻项 */
.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-item-content {
    flex: 1;
}

.news-item-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.news-item-content p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px 0;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
 




.news-item-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
}



/* 分页样式 */
.page {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.page_total {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
}

.page_size {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
}

.page_item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    margin: 0 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
    box-sizing: border-box;
}

.page_item:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.page_item.page_current {
    background-color: #0066cc;
    border-color: #0066cc;
    color: #fff;
}

.page_item.page_disabled {
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
}

.page_item.page_disabled:hover {
    color: #ccc;
    border-color: #eee;
}

.page_item.page_total_info {
    border: none;
    background: none;
    color: #666;
    cursor: default;
    min-width: auto;
    padding: 0 10px;
}

.page_item.page_total_info:hover {
    color: #666;
}

.page_ellipsis {
    color: #666;
    font-size: 14px;
    margin: 0 4px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .federation-header-content,
    /* .federation-nav, */
    .news-container {
        width: 90%;
    }
}

@media (max-width: 1200px) {
    .news-content {
        flex-direction: column;
    }
    
    .news-list {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* .federation-nav {
        flex-direction: column;
        height: auto;
    }
    
    .federation-nav-item {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    } */
    
    .main-news-img {
        height: 300px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-item-img {
        width: 100%;
        height: 150px;
    }
}