/* ------------------------------------- */
/* 新闻详情页面样式                    */
/* ------------------------------------- */

/* 全屏页面设置 */
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;
    transition: height 0.3s ease;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

/* 英雄区域媒体容器 */
.hero-media-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* 英雄区图片样式 */
.hero-section .hero-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 英雄区视频样式 */
.hero-section .hero-video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
    /* 移除所有边框和轮廓 */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    /* 确保视频在容器中居中显示 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 移除视频的所有状态下的边线和轮廓 */
.hero-section .hero-video:focus,
.hero-section .hero-video:hover,
.hero-section .hero-video:active,
.hero-section .hero-video:visited {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 移除WebKit浏览器的默认控件 */
.hero-section .hero-video::-webkit-media-controls,
.hero-section .hero-video::-webkit-media-controls-panel,
.hero-section .hero-video::-webkit-media-controls-start-playback-button,
.hero-section .hero-video::-webkit-media-controls-play-button,
.hero-section .hero-video::-webkit-media-controls-timeline,
.hero-section .hero-video::-webkit-media-controls-current-time-display,
.hero-section .hero-video::-webkit-media-controls-time-remaining-display,
.hero-section .hero-video::-webkit-media-controls-mute-button,
.hero-section .hero-video::-webkit-media-controls-volume-slider {
    display: none !important;
}

/* 移除Firefox浏览器的默认控件 */
.hero-section .hero-video::-moz-range-track {
    display: none !important;
}

/* 移除所有浏览器的默认样式 */
.hero-section .hero-video {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* case-detail 页面视频样式 - 自动适应高度和宽度 */
.case-detail-video {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
    /* 确保视频响应式 */
    aspect-ratio: 16/9;
}

/* 视频容器样式 */
.video-container {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 新闻详情区域样式 */
.news-detail-section {
    width: 100%;
    margin: 0;
    padding: 0;
    margin-top: -5vw;
    background-color: white;
    overflow: hidden;
    box-sizing: border-box;
}

.news-detail-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 新闻头部信息样式 */
.news-header {
    margin-bottom: 0;
    padding: 0;
    border: none;
}

.news-header-content {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.news-main-info {
    flex: 1;
    background-color: #fce4ec;
    padding: 2rem;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-main-info h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: left;
}

.news-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.news-info-card {
    width: 30%;
    background-color: #fafafa;
    padding: 2rem;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.4;
}

/* 新闻内容样式 */
.news-content {
    line-height: 1.8;
    color: #2c3e50;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

/* 新闻内容中的图片样式 */
.news-content img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.news-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-indent: 0;
}

.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: 30vh;
        margin-bottom: 3vw;
        /* 手机端保持自动高度调整 */
        height: auto !important;
    }

    .hero-section img,
    .hero-section video { /* Added video to this rule */
        height: auto;
    }

    .news-header-content {
        flex-direction: column;
        gap: 0;
    }

    .news-main-info {
        padding: 2rem;
    }

    .news-main-info h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .news-info-card {
        width: 100%;
        border: none;
        border-radius: 0;
        padding: 1.5rem;
    }

    .news-content {
        font-size: 1rem;
        padding: 7px;
    }

    .news-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }

    .news-content p {
        text-indent: 1.5em;
    }

    .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%;
    }

    .case-detail-video {
        margin: 1.5rem 0;
        border-radius: 6px;
    }
    
    .video-container {
        width: 100%;
    }
}

@media (max-width: 576px) {
    main {
        padding: 0;
    }



    .news-detail-container {
        padding: 7px;
    }

    .news-header-content {
        flex-direction: column;
        gap: 0;
    }

    .news-main-info {
        padding: 1.5rem;
    }

    .news-main-info h1 {
        font-size: 1.8rem;
    }

    .news-info-card {
        width: 100%;
        border: none;
        border-radius: 0;
        padding: 1rem;
    }

    .news-content h2 {
        font-size: 1.4rem;
    }

    .news-content p {
        text-indent: 1em;
    }

    .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;
    }

    .case-detail-video {
        margin: 1rem 0;
        border-radius: 4px;
    }
    
    .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;
    }
}
