/* ------------------------------------- */
/* 新闻详情页面样式                    */
/* ------------------------------------- */

/* 全屏页面设置 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

main {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding-top: 0;
    padding-bottom: 5vh;
    padding-left: 3.5vw;
    padding-right: 4.2vw !important;/*logo 2.7*/
    margin-top: 120px;
    box-sizing: border-box;
    background-color: white;
}

/* 英雄区域样式 */
.hero-section {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    margin-bottom: 5vw;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* 英雄区图片样式 */
.hero-section img {
    width: 100%;
    height: 550px;
    max-width: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 新闻详情区域样式 */
.news-detail-section {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: white;
    overflow: hidden;
    box-sizing: border-box;
}

.news-detail-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 新闻头部信息样式 */
.news-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.news-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: left;
}

.news-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.news-meta span:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.news-meta i {
    color: #4b4f58;
    font-size: 1rem;
}

/* 新闻内容样式 */
.news-content {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 1.0rem;
}
.news-content img {
    width: 99%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

.news-content p {
    margin-bottom: 0.8rem;
    text-align: left;
}

.news-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4b4f58;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    position: relative;
}

.news-content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
}

/* 图片容器样式 */
.image-container-one,
.image-container-two,
.image-container-three {
    width: 100%;
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
}

.image-container-one {
    width: 45%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.image-container-two {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-between;
}

.image-container-three {
    justify-content: space-between;
}

.image-item {
    flex: 1;
    text-align: center;
}

.image-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    transition: filter 0.3s ease;
}

.image-item img:hover {
    filter: brightness(0.7);
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6c757d;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .news-detail-container {
        width: 100%;
        padding: 0;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0;
        margin-top: 100px;
    }

    .hero-section {
        min-height: 16vh;
        margin-bottom: 3vw;
    }

    .hero-section img {
        height: auto;
    }

    .news-header h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .news-meta {
        display: none;
    }

    .news-content {
        font-size: 1rem;
        padding: 7px;
    }

    .news-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }

    .news-content p img {
        width: 98%;
    }

    .image-container-one,
    .image-container-two,
    .image-container-three {
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem 0;
        width: 100% !important;
    }

    .image-item img {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    main {
        padding: 0;
    }

    .news-detail-container {
        padding: 7px;
    }

    .news-header h1 {
        font-size: 1.8rem;
    }

    .news-meta {
        display: none;
    }

    .news-content h2 {
        font-size: 1.4rem;
    }

    .news-content p {
    }

    .image-container-one,
    .image-container-two,
    .image-container-three {
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem 0;
        width: 100% !important;
    }

    .image-caption {
        font-size: 0.9rem;
    }
}

/* 新闻内容中的视频样式 - 自动适应高度和宽度 */
.news-content video,
.news-video {
    width: 50%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 2rem 0;
    /* 确保视频响应式 */
    aspect-ratio: 16/9;
}

/* 视频容器样式 */
.video-container {
    width: 50%;
    max-width: 50%;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 响应式视频样式 */
@media (max-width: 768px) {
    .news-content video,
    .news-video {
        margin: 1.5rem 0;
        border-radius: 6px;
        width: 100%;
        max-width: 100%;
    }

    .video-container {
        margin: 1.5rem 0;
        border-radius: 6px;
    }
}

@media (max-width: 576px) {
    .news-content video,
    .news-video {
        margin: 1rem 0;
        border-radius: 4px;
        width: 100%;
        max-width: 100%;
    }

    .video-container {
        margin: 1rem 0;
        border-radius: 4px;
    }
}

/* 打印样式优化 */
@media print {
    .hero-section {
        display: none;
    }

    .news-header h1 {
        color: #000;
        font-size: 1.5rem;
    }

    .news-content {
        color: #000;
        font-size: 12pt;
    }

    .news-meta {
        color: #666;
        font-size: 10pt;
    }
}
