/* News页面专用样式 */

/* Hero区域样式 */
.hero-slider-container>div {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-slider-container>div>div:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hero-slider-container>div>div:last-child {
    position: absolute;
    bottom: 0px;
    left: 30px;
    z-index: 3;
    color: white;
}

/* 主要新闻区域样式 */
#news-section {
    height: 606px;
    background-color: #212121;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 50px;
}

#news-section>div {
    width: 100%;
    height: 506px;
    display: flex;
    gap: 40px;
}

#news-image-container {
    width: 50%;
    height: 506px;
    position: relative;
    overflow: hidden;
}

#news-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#news-image-container>div {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

#news-main-date {
    font-size: 18px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 10px 0;
}

#news-main-title {
    font-size: 28px;
    font-weight: 500;
    color: white;
    margin: 0;
    line-height: 1.2;
}

/* 右侧新闻列表样式 */
#news-section>div>div:last-child {
    width: 50%;
    height: 506px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* 新闻项悬停效果 */
.news-item:hover .news-date,
.news-item:hover .news-title,
.news-item:hover .news-desc {
    color: #FFFFFF !important;
}

/* 新闻项样式 */
.news-item {
    height: 127px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    transition: color 0.3s;
}

.news-title {
    font-size: 24px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 78%;
    overflow: hidden;
    transition: color 0.3s;
    margin: 0 0 5px 0;
    padding-right: 30px;
}

.news-desc {
    font-size: 18px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 78%;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

/* 普通新闻区域样式 */
#normal-news-section {
    height: 1242px;
    background-color: #000;
    padding: 50px;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 隐藏滚动条 */
#normal-news-section::-webkit-scrollbar {
    display: none;
}

/* 容器样式 */
#normal-news-section .container {
    margin: 26px auto;
    border-top: 1px solid rgb(255, 255, 255, 0.2);
}

/* 普通新闻项样式 */
.normal-news-item {
    height: 180px;
    margin: 26px 0 26px 0;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 40px;
    position: relative;
}

/* 新闻箭头样式 */
.news-arrow {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
}

/* 普通新闻日期样式 */
.normal-news-date {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 58px 0 0;
    flex-shrink: 0;
}

/* 普通新闻图片样式 */
.normal-news-image {
    width: 270px;
    height: 150px;
    object-fit: cover;
    margin-right: 30px;
    flex-shrink: 0;
}

/* 普通新闻内容区域样式 */
.normal-news-content {
    width: 70%;
}

/* 普通新闻标题样式 */
.normal-news-title {
    font-size: 26px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 10px 0;
}

/* 普通新闻描述样式 */
.normal-news-desc {
    width: 70%;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

/* 响应式调整：宽度小于1000px时 - news-section左右布局转上下布局 */
@media (max-width: 1000px) {
    #news-section {
        height: auto;
        padding: 30px 20px;
    }

    #news-section>div {
        height: auto;
        flex-direction: column;
        gap: 20px;
    }

    #news-image-container {
        width: 100%;
        height: 300px;
    }

    #news-section>div>div:last-child {
        width: 100%;
        height: auto;
    }

    .news-item {
        height: auto;
        min-height: 100px;
        padding: 20px 0;
    }

    .news-date {
        top: 20px;
        right: 20px;
    }

    .news-title {
        font-size: 24px;
        max-width: 80%;
        padding-right: 20px;
    }

    .news-desc {
        font-size: 16px;
        max-width: 80%;
    }
}

@media (max-width: 470px) {
    .series-name {
        margin: 0 !important;
        font-size: 36px !important;
    }
    .hero-slider-container>div {
        height: 240px !important;
    }
    #news-image-container>div {
        padding: 10px !important;
    }

    #news-main-title {
        font-size: 24px !important;
    }

    .news-title {
        max-width: 73% !important;
    }

    .news-date {
        top: 28px !important;
    }

    #normal-news-section {
        padding: 30px !important;
    }

    .normal-news-item {
        flex-direction: column !important;
        height: auto !important;
    }

    .normal-news-date {
        margin: 0 0 10px 0 !important;
    }

    .normal-news-image {
        width: 88% !important;
        height: auto !important;
        margin: 0 !important;
    }

    .normal-news-content,
    .normal-news-title,
    .normal-news-desc {
        width: 94% !important;
    }
}