/* style.css - 山海通信 样式文件 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    width: 100%;
}

.header-bg {
    width: 100%;
   
}
.bg_container {
    width: 100%;
    background: #fefcf7;
    background-image: url("../images/bg11.jpg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: left 160px;
}

.main {
    width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

section {
    margin-bottom: 40px;
}

/* ===== 头条模块 ===== */
.headline-section {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 24px;
    overflow: hidden;
}

/* 左侧头条小标（图片） */
.headline-tag {
    flex: none;
    display: block;
    height: 40px;
    width: auto;
}

/* 头条滚动容器：高度固定为一行，只显示一条 */
.headline-marquee {
    flex: 1;
    min-width: 0;
    height: calc(34px * 1.4);
    overflow: hidden;
}

.headline-title {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.4;
    /* 由 JS 控制滚动，这里只保留过渡效果 */
    transition: transform 0.6s ease-in-out;
}

.headline-text {
    flex: none;
    height: calc(34px * 1.4);
    line-height: calc(34px * 1.4);
}

.headline-text a {
    color: #1a1a1a;
    text-decoration: none;
    text-align: center;
    display: inline-block;
      width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.headline-marquee:hover .headline-text a {
    color: #c9302c;
}

/* JS 控制时禁用过渡，用于无缝跳回第一条 */
.headline-title.no-transition {
    transition: none;
}

/* ===== 首屏新闻模块：左轮播 + 右列表 ===== */
.news-section {
    display: flex;
    align-items: flex-start;
    gap: 36px;
}

/* --- 左侧轮播 --- */
.news-slider {
    width: 760px;
    height: 460px;
}

.news-swiper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.news-swiper .swiper-slide img {
    display: block;
    width: 100%;
    object-fit: cover;
}

/* 底部标题 + 翻页条 */
.slider-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.55);
}

.slider-caption {
    flex: 1;
    color: #fff;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-nav {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 覆盖 swiper 默认的绝对定位箭头样式 */
.news-swiper .swiper-button-prev,
.news-swiper .swiper-button-next {
    position: static;
    width: 20px;
    height: 20px;
    margin: 0;
    background-image: none;
    color: #fff;
    cursor: pointer;
}

.news-swiper .swiper-button-prev::after,
.news-swiper .swiper-button-next::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin: 6px auto;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.news-swiper .swiper-button-prev::after {
    transform: rotate(-135deg);
}

.news-swiper .swiper-button-next::after {
    transform: rotate(45deg);
}

.news-swiper .swiper-button-disabled {
    opacity: 0.4;
}

/* 覆盖 swiper 默认的分页容器定位 */
.news-swiper .swiper-pagination {
    position: static;
    width: auto;
    color: #fff;
    font-size: 15px;
}

/* --- 右侧文字列表 --- */
.news-list {
    width: 410px;
    height: 460px;
}

.news-headline {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
}

.news-headline a {
    color: #1a1a1a;
    text-decoration: none;
}

.news-headline a:hover {
    color: #c9302c;
}

.news-summary {
    margin-top: 12px;
    font-size: 15px;

    color: #888;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ddd;
}

.news-links {
    list-style: none;
    margin-top: 8px;
}

.news-links li {
    padding: 10px 0;
}

.news-links a {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90%;
    white-space: nowrap;

}

.news-links a:hover {
    color: #c9302c;
}

.news-more,
.clip-more,
.talk-more {
    text-align: right;
    margin-top: 22px;
   
}
.news-more a,
.clip-more a,
.talk-more a{
   color: #ee9b12;
    border: 1px solid #ee9b12;
    padding: 3px 30px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    line-height: 1.5;
   text-align: center;
}
 .news-more{
    margin-top: 22px;
    text-align: right;
}
.special-section {
    /* 图片高度，同时用于计算两侧按钮的垂直位置 */
    margin-top: 60px;
    background-color: #fbe2b6;
    padding: 60px 90px 40px;
    border-radius: 10px;
    position: relative;
}

/* 顶部横幅标题 */
.special-banner {
    position: absolute;
    top: -23px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height:65px;
    margin: 0 auto 34px;
    padding: 12px 60px;
    background: url('../images/tbbd_tit_bg.png') no-repeat center center;
    background-size: contain;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}



/* 箭头的定位参照系 */
.special-slider {
    position: relative;
}

.special-item {
    display: block;
    text-decoration: none;
}

.special-item img {
    display: block;
    width: 100%;
    height: var(--special-img-height);
    object-fit: cover;
    background-color: #fff;
}

.special-title {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: #333;
    /* 标题最多两行 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.special-item:hover .special-title {
    color: #c9302c;
}

/* 左右箭头：橙色方块，垂直居中对齐图片区 */
.special-slider .swiper-button-prev,
.special-slider .swiper-button-next {
    width: 46px;
    height: 76px;
    margin-top: 0;
    transform: translateY(-50%);
    background-color: #e8946f;
    background-image: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.special-slider .swiper-button-prev {
    left: -70px;
}

.special-slider .swiper-button-next {
    right: -70px;
}

.special-slider .swiper-button-prev::after,
.special-slider .swiper-button-next::after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.special-slider .swiper-button-prev::after {
    transform: rotate(-135deg);
}

.special-slider .swiper-button-next::after {
    transform: rotate(45deg);
}

.special-slider .swiper-button-disabled {
    opacity: 0.45;
}

/* ===== 第三模块：视频轮播 ===== */
.video-section {
    /* 视频高度，同时用于计算两侧按钮的垂直位置 */
    --video-height: 500px;

    padding: 40px 90px 50px;
        margin-left: 60px;
}

/* 箭头的定位参照系（swiper-container 带 overflow:hidden，不能作为参照） */
.video-slider {
    position: relative;
    width: 900px;
}

.video-item {
    text-align: center;
    
}

.video-player {
    display: block;
    width: 100%;
    height: var(--video-height);
    background-color: #000;
    object-fit: cover;
}

.video-title {
    margin-top: 22px;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

/* 左右箭头：图片按钮，垂直居中对齐视频区域 */
.video-slider .swiper-button-prev,
.video-slider .swiper-button-next {
    width: 44px;
    height: 100px;
    top: calc(var(--video-height) / 2);
    margin-top: 0;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.video-slider .swiper-button-prev {
    left: -70px;
    background-image: url("../images/swiper_left_big1.jpg");
}

.video-slider .swiper-button-next {
    right: -70px;
    background-image: url("../images/swiper_right_big1.jpg");
}

.video-slider .swiper-button-disabled {
    opacity: 0.45;
}

/* ===== 第四模块：左大图 + 右图文列表 ===== */
.story-section {
    padding: 0 0 140px 0;
}
.story-content {
    display: flex;
    align-items: stretch;
    gap: 44px;
    padding: 40px 0;
}

/* --- 右侧大图 --- */
.story-poster {
    width: 400px;
}

.story-poster a,
.story-poster img {
    display: block;
    width: 100%;
}

.story-poster img {
    object-fit: cover;
}

/* --- 右侧图文列表 --- */
.story-list {
    flex: 1;
    min-width: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 28px;
    /* 与右侧大图高度一致，内容超出时出现下拉滚动条 */
    height: 700px;
    padding-right: 20px;
    overflow-y: auto;
}

/* 自定义滚动条 */
.story-list::-webkit-scrollbar {
    width: 6px;
}

.story-list::-webkit-scrollbar-track {
    background: #e1ebf0;
    border-radius: 3px;
}

.story-list::-webkit-scrollbar-thumb {
    background: #fbe2b6;
    border-radius: 3px;
}

.story-item {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.story-thumb {
   
    display: block;
}

.story-thumb img {
    display: block;
    width: 260px;
    height: 160px;
    object-fit: cover;
}

.story-text {
    flex: 1;
    min-width: 0;
}

.story-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    /* 标题超出单行时显示省略号 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.story-title a:hover {
    color: #c9302c;
}

.story-desc {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.9;
    color: #888;
    /* 摘要最多显示两行 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* ===== 第五模块：视频列表（三列网格） ===== */
.clip-section {
    padding: 40px 0 60px;
}

.clip-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.clip-item {
    background-color: #f9ebd0;
}

.clip-thumb {
    position: relative;
    display: block;
}

.clip-thumb img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* 图片上的圆形播放按钮 */
.clip-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border: 3px solid #fff;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.12);
}

.clip-play::after {
    content: "";
    position: absolute;
    left: 54%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.clip-thumb:hover .clip-play {
    background-color: rgba(0, 0, 0, 0.3);
}

.clip-info {
    padding: 18px 20px 22px;
}

.clip-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
    /* 固定两行高度，保证各卡片对齐 */
    height: 54px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.clip-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
}

.clip-link:hover {
    text-decoration: underline;
}

/* ===== 第六模块：对话气泡卡片 ===== */
.talk-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 50px;
}

.talk-item {
    /* 背景图由 HTML 行内 style 逐个指定 */
    background-image: url("../images/list_bg2.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
   width: 580px;
   height: 270px;
    padding: 75px 44px 0;
}

.talk-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
}
.talk-title a {
    color: #fff;
    text-decoration: none;
}
.talk-title a:hover {
    text-decoration: underline;
}
.talk-desc {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.95);
}

/* 气泡卡片为两列网格，“更多”需横跨整行才能居中 */
.talk-more {
    grid-column: 1 / -1;
}
.main_container{
    background-image: url("../images/bg11.jpg");
    background-size: cover;
    background-position: center;
}
/* --- 窄屏改为上下排列 --- */
@media (max-width: 600px) {
    .main {
        width: 100%;
        padding: 20px 10px;
    }
    .section_title, .section_title img {
        width: 100%;
    }
    .special-banner{
        width: 100%;
    }
    .headline-marquee {
        height: calc(18px * 1.4);
    }

    .headline-title {
        font-size: 18px;
    }

    .headline-text {
        height: calc(18px * 1.4);
        line-height: calc(18px * 1.4);
    }
    .video-slider {
        width: 100%;
    }
    .headline-tag {
        height: 28px;
    }

    .news-section {
        flex-direction: column;
    }

    .news-slider {
        flex: none;
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .news-swiper .swiper-slide img {
        height: 260px;
    }
    .news-list {
       width: 100%;
    }
    .special-section {
        /* 一屏只显 1 个，图片占满宽度，相应加高 */
        --special-img-height: 200px;
        padding: 24px 50px 30px;
    }

    .special-banner {
        padding: 10px 24px;
        font-size: 17px;
    }

    .special-title {
        font-size: 13px;
        line-height: 1.6;
    }

    .special-slider .swiper-button-prev,
    .special-slider .swiper-button-next {
        width: 32px;
        height: 56px;
    }

    .special-slider .swiper-button-prev {
        left: -42px;
    }

    .special-slider .swiper-button-next {
        right: -42px;
    }

    .video-section {
        --video-height: 240px;
        padding: 24px 40px 30px;
        margin-left: 0;
    }

    .video-slider .swiper-button-prev,
    .video-slider .swiper-button-next {
        width: 32px;
        height: 64px;
    }

    .video-slider .swiper-button-prev {
        left: -42px;
    }

    .video-slider .swiper-button-next {
        right: -42px;
    }

    .story-content {
        flex-direction: column;
        gap: 28px;
        padding: 24px 10px;
    }

    .story-poster {
        flex: none;
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .story-list {
        height: auto;
        max-height: 520px;
        padding-right: 12px;
    }

    .story-item {
        gap: 16px;
    }

    .story-thumb {
        flex: 0 0 140px;
    }

    .story-thumb img {
       width: 100%;
       height: auto;
    }
    .story-poster a, .story-poster img {
        width: 100%;
        height: auto;
    }

    .story-title {
        font-size: 16px;
        /* 窄屏标题改为换行显示 */
        white-space: normal;
    }

    .story-desc {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.7;
    }

    .clip-section {
        padding: 24px 10px 40px;
    }

    .clip-list {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }

    .clip-thumb img {
        height: auto;
    }

    .clip-info {
        padding: 12px 12px 16px;
    }

    .clip-title {
        font-size: 14px;
        height: 48px;
    }

    .talk-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .talk-item {
        width: 100%;
        padding: 20px 20px 40px;
        height: auto;
    }

    .talk-title {
        font-size: 17px;
    }

    .talk-desc {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.7;
    }
    .story-section {
        padding: 0;
    }
    .bg_container {
        background-image: none;
    }
}


footer {
    text-align: center;
    padding: 20px;
    padding-top: 80px;
    font-size: 14px;
    color: #666;
    line-height: 28px;
}
footer a{
    color: #666;
    text-decoration: none;
}<!--ecms sync check [sync_thread_id="3bcee7cc5a424330844ab778a62d31c1" sync_date="2026-09-14 11:46:24" check_sum="3bcee7cc5a424330844ab778a62d31c1]-->