/* 新闻详情页面一：途拓文化周 - 两排布局样式 */

/* 基础布局 */
.news-section.news-section--two-rows { 
    background: #ffffff;
    padding: 60px 0; 
    border-top: 0px solid #f0f0f0; /* 顶部边框 */
    border-bottom: 1px solid #f0f0f0;
}

.news-container.news-container--two-rows {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-areas:
        "content1 media1"
        "media2   content2"
        "ending   ending";
    gap: 40px;
    align-items: start;
}

/* 网格区域映射 */
.news-content--first { grid-area: content1; }
.news-media--north   { grid-area: media1; }
.news-media--south   { grid-area: media2; }
.news-content--second{ grid-area: content2; }
.news-ending         { grid-area: ending; }

/* 文字样式 */
.news-section--two-rows .news-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.news-section--two-rows .news-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin: 0 0 16px 0;
}

.news-section--two-rows .news-lead,
.news-section--two-rows .news-content--first p,
.news-section--two-rows .news-content--second p,
.news-section--two-rows .news-ending p {
    font-size: 16px;
    line-height: 1.9;
    color: #000;
    margin: 0 0 14px 0;
    text-align: left;
}

/* 媒体容器样式 */
.news-section--two-rows .news-media .media-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.news-section--two-rows .news-media iframe,
.news-section--two-rows .news-media video {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.news-section--two-rows .news-media video { 
    object-fit: cover; 
}

.news-section--two-rows .news-media .media-caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* 结尾样式 */
.news-section--two-rows .news-ending {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e9ecef;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.news-section--two-rows .news-ending::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.3"/><circle cx="80" cy="40" r="1.5" fill="%23ffffff" opacity="0.4"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.5"/></svg>');
    pointer-events: none;
}

.news-section--two-rows .news-ending p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* 中屏（≤1023px）：均衡比例 */
@media (max-width: 1023px) {
    .news-container.news-container--two-rows {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    .news-section--two-rows .news-title { font-size: 32px; }
    .news-section--two-rows .news-lead,
    .news-section--two-rows .news-content--first p,
    .news-section--two-rows .news-content--second p,
    .news-section--two-rows .news-ending p { font-size: 15px; }
    
    .news-section--two-rows .news-ending {
        padding: 30px 20px;
    }
    
    .news-section--two-rows .news-ending p {
        font-size: 16px;
        color: #333;
        position: relative;
        z-index: 1;
        font-weight: 500;
    }
}

/* 小屏（≤767px）：顺序堆叠 */
@media (max-width: 767px) {
    .news-section.news-section--two-rows { padding: 40px 0; }
    .news-container.news-container--two-rows {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content1"
            "media1"
            "media2"
            "content2"
            "ending";
        gap: 20px;
    }
    .news-section--two-rows .news-title { font-size: 28px; margin-bottom: 12px; }
    .news-section--two-rows .news-lead,
    .news-section--two-rows .news-content--first p,
    .news-section--two-rows .news-content--second p,
    .news-section--two-rows .news-ending p { font-size: 15px; line-height: 1.8; }
    
    .news-section--two-rows .news-ending {
        padding: 25px 20px;
    }
    
    .news-section--two-rows .news-ending p {
        font-size: 15px;
        line-height: 1.7;
        color: #333;
        position: relative;
        z-index: 1;
        font-weight: 500;
    }
}