@charset "UTF-8";
/* ============================================================
   响应式补充样式
   加载顺序：style.css -> jquery.fancybox.css -> lightbox.css -> site.css -> 本文件
   桌面保持原有 980px 版式，平板/手机自动收拢为流式布局
   ============================================================ */

html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
body { overflow-x: hidden; }
.nav-toggle { display: none; }

/* 内页顶部横幅：使用旧站原始横幅图片（955x200），原尺寸居中显示，不放大、不拉伸、不裁切 */
.page-banner {
    position: relative;
    height: auto;
    line-height: 0;
    background: url("../data/template/whhg/images/page-banner.jpg") center center / 100% 100% no-repeat;
    overflow: hidden;
}
.page-banner .pb-inner {
    width: 955px;
    max-width: 100%;
    margin: 0 auto;
}
.page-banner .pb-photo {
    display: block;
    width: 955px;
    max-width: 100%;
    height: auto;
    border-radius: 0;
}
/* 页脚结构：底部信息与联系方式并排，窄屏自动上下排 */
.foot-links { font-size: 12px; line-height: 22px; }
.foot-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}
.foot-contact { flex: 0 0 auto; }
#footer .foot-contact img { width: 280px; height: auto; display: block; }

/* 移动端静态新闻列表：桌面隐藏 */
.news-static { display: none; }

/* ---------- ≤1100px：容器流式化、三栏收拢 ---------- */
@media (max-width: 1100px) {
    .fw { width: 100%; max-width: 980px; padding: 0 18px; box-sizing: border-box; }
    #nav .fw { min-width: 0; }
    #nav { overflow: visible; }

    /* Banner 原图 1920x350，按原始比例完整显示（不再居中裁切掉文案） */
    #banner { height: 18.2vw; min-height: 96px; max-height: 210px; }
    #banner li { height: 18.2vw; min-height: 96px; max-height: 210px; background-size: 100% 100%; background-position: center center; }


    /* 移动端正文优先：正文在前，侧栏在后 */
    #page .fw { display: flex; flex-direction: column; }
    #page .page-right { order: 1; }
    #page .page-left { order: 2; }

    .page-left,
    .page-right { float: none; width: 100%; }
    .page-left { padding-bottom: 0; margin-bottom: 18px; background: none; }
    .page-right .box .content { min-height: 0; padding: 18px 0; }
    .page-right .box .title { background-size: 100% 100%; }
    .page-right .box .title h2 { padding-left: 12px; }
    .page-right .box .title .location { padding-right: 4px; font-size: 11px; }

    /* 首页三个板块改为弹性排布：关于我们整行，视频 + 分类各半 */
    #index .fw { display: flex; flex-wrap: wrap; gap: 18px; padding: 24px 18px; }
    #index .unit { float: none; margin: 0; }
    #index .unit.about { width: 100%; }
    #index .unit.video,
    #index .unit.service { width: calc(50% - 9px); }
    #index .unit .text { max-height: none; }
    #index .unit .images a { width: 100%; height: auto; margin-bottom: 8px; }
    #index .unit .images a img { width: 100%; height: auto; }
    #index .unit.about img { max-width: 45%; height: auto; }

    /* 首页板块标题条：窄屏改为纯色条，避免精灵图拉伸错位 */
    #index .unit .title {
        height: auto;
        line-height: 34px;
        background: #16528f;
        border-radius: 3px;
        padding: 0 12px;
    }
    #index .unit .title.blue { background: #0d3887; }
    #index .unit .title h2 { float: none; margin: 0; color: #fff; font-size: 15px; }
    #index .unit .title .more { float: right; margin-top: 11px; }

    .index-news-content { width: 100%; }

    .page-right .product-list li { width: calc(50% - 20px); }

    #footer .fw > div { flex-wrap: wrap; }
    .copyright { float: none; width: 100%; height: auto; min-width: 0; }
    .footer-nav { display: none; }

    /* 页脚：底部信息与联系方式改为上下排，避免互相挤压 */
    .foot-bottom { flex-direction: column; gap: 12px; }
    .foot-contact { width: 100%; }
    #footer .foot-contact img { width: 280px !important; max-width: 100% !important; }
    .foot-links { line-height: 24px; }
}

/* ---------- ≤900px：导航折叠为汉堡菜单 ---------- */
@media (max-width: 900px) {
    #header { height: auto; padding: 10px 0; }
    #header .fw { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    #header .logo,
    .logo { float: none; width: 260px; height: 46px; margin: 0; }
    .logo h1 { float: none; }
    .logo h1 a { width: 260px; height: 46px; background-size: contain; background-position: left center; }
    .search { float: none; margin: 0; width: 170px; flex: 0 0 auto; }
    .search .sbox { width: 120px; }

    #nav { height: auto; }
    #nav .fw { max-width: 100%; padding: 0; }
    .nav-toggle {
        display: block;
        height: 40px;
        line-height: 40px;
        padding: 0 18px;
        color: #fff;
        font-size: 15px;
        letter-spacing: 1px;
    }
    .nav-toggle:after { content: "\2630"; float: right; font-size: 16px; }
    #nav ul { display: none; }
    #nav.nav-open ul { display: block; }
    #nav li { float: none; width: 100%; background: #1b5fa6 !important; border-top: 1px solid rgba(255, 255, 255, .18); }
    #nav li a { padding: 0 18px; line-height: 40px; color: #fff; }
    #nav li a:hover { background: rgba(255, 255, 255, .12); }

    #index .unit.video,
    #index .unit.service { width: 100%; }
    #index .unit.about img { max-width: 100%; }
    /* 宣传片/画面类图片铺满栏宽，避免小图靠左留白 */
    #index .unit.video .content img,
    #index .unit.video .content a img { width: 100%; height: auto; display: block; }
    #index .unit.video .content .btn-list { margin-top: 10px; }

    /* 首页新闻：窄屏隐藏滚动字幕，改用静态列表（标题完整可换行） */
    .index-news .index-news-content,
    .index-news .marquee { display: none !important; }
    .index-news .index-news-title .prev,
    .index-news .index-news-title .next { display: none !important; }
    .index-news { overflow: hidden; }
    .news-static {
        display: block;
        margin: 10px 0 0;
        padding: 0 12px;
        list-style: none;
        background: #fff;
        border: 1px solid #e6ecf3;
        border-radius: 3px;
    }
    .news-static li {
        display: flex;
        align-items: baseline;
        gap: 10px;
        padding: 9px 0;
        border-bottom: 1px dashed #e6ecf3;
        line-height: 22px;
        font-size: 14px;
    }
    .news-static li:last-child { border-bottom: 0; }
    .news-static li a {
        flex: 1 1 auto;
        min-width: 0;
        color: #333;
        text-decoration: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .news-static li span { flex: 0 0 auto; color: #999; font-size: 12px; }

    /* 栏目页标题条：标题与“当前位置”分行，避免右侧被截断 */
    .page-right .box .title {
        height: auto;
        background: #f2f6fb;
        border-bottom: 2px solid #16528f;
        padding: 8px 0;
        line-height: 26px;
    }
    .page-right .box .title h2 { float: none; display: block; padding: 0 12px; }
    .page-right .box .title .location { float: none; display: block; padding: 2px 12px 0; word-break: break-all; }

    /* 富文本正文：宽表格/长内容在窄屏不撑破整页，改为内部横向滚动 */
    #page .fw,
    #page .page-right,
    .page-right .box,
    .page-right .box .content,
    .page-right .box .content .detail,
    .page-right .box .content .detail .ke_content { max-width: 100%; box-sizing: border-box; }
    .detail .ke_content { width: 100%; word-wrap: break-word; overflow-wrap: anywhere; overflow-x: auto; }
    .detail .ke_content img { max-width: 100%; height: auto; }
    .detail .ke_content table { max-width: none; margin: 8px 0; }
    .detail .ke_content table td,
    .detail .ke_content table th { word-break: break-all; padding: 4px 6px; font-size: 12px; }

    /* 侧栏小标题：窄屏去掉精灵图，改为浅底+左竖条 */
    .page-left .widget .title {
        height: auto;
        line-height: 38px;
        padding: 0 10px;
        margin-bottom: 8px;
        background: #f2f6fb;
        border-left: 3px solid #16528f;
    }
    .page-left .widget .title h2 { background: none; padding-left: 4px; }
    .page-left .widget { margin-bottom: 14px; }
    .page-left .contact .content { padding: 0 10px; }

    /* 列表页：原样式把整列表固定为 30px 高，导致内容溢出并与侧栏重叠 */
    .news-list { height: auto !important; line-height: 24px; }
    .news-list ul { padding: 0; }
    .news-list li {
        display: flex;
        align-items: baseline;
        gap: 8px;
        height: auto;
        line-height: 26px;
        margin: 0;
        padding: 8px 0 8px 16px;
        border-bottom: 1px dashed #ddd;
    }
    .news-list li a { flex: 1 1 auto; min-width: 0; }
    .news-list li span { float: none; display: block; flex: 0 0 auto; margin: 0; color: #999; font-size: 12px; }

    .page-right .product-intro,
    .page-right .product-thumb { float: none; width: 100%; padding: 0; }
    .page-right .product-thumb { margin-top: 12px; }
    .page-right .product-thumb img { width: 100%; max-width: 280px; height: auto; margin: 0 auto; }

    .message { width: 100%; box-sizing: border-box; }
    .joblist, .jobdetail, .jobtable { display: block; width: 100%; overflow-x: auto; }

    #footer img { width: 100% !important; max-width: 300px; }
    /* 页脚联系方式图固定原始宽度，避免被 100% 拉伸变形（ID 选择器覆盖上面规则） */
    #footer .foot-contact img { width: 280px !important; max-width: 100% !important; height: auto !important; }
    #footer .copyright { margin-top: 0; }
    #footer .copyright p { font-size: 12px; line-height: 20px; }
    #footer .copyright p a { word-break: keep-all; }
}

/* ---------- ≤640px：单列、字号微调 ---------- */
@media (max-width: 640px) {
    .fw { padding: 0 12px; }
    /* 顶部：logo 居中，搜索框整行显示（脱离精灵图，避免溢出） */
    #header { padding: 10px 0 12px; }
    #header .fw { flex-wrap: wrap; justify-content: center; }
    #header .logo, .logo { width: 210px; height: 40px; margin: 0 auto; }
    .logo h1 a { width: 210px; height: 40px; }
    .search {
        float: none;
        width: 100%;
        max-width: 340px;
        height: auto;
        margin: 10px auto 0;
        background: none;
        display: flex;
        align-items: center;
    }
    .search .sbox {
        float: none;
        flex: 1 1 auto;
        width: auto;
        height: 32px;
        line-height: 30px;
        padding: 0 10px;
        border: 1px solid #cfd8e3;
        border-right: 0;
        border-radius: 3px 0 0 3px;
        background: #fff;
        color: #666;
        box-sizing: border-box;
    }
    .search .sbtn {
        float: none;
        width: 62px;
        height: 32px;
        line-height: 32px;
        border: 0;
        border-radius: 0 3px 3px 0;
        background: #1a5fa8;
        color: #fff;
        font-size: 13px;
        text-indent: 0;
        cursor: pointer;
    }

    #banner { height: 18.2vw; min-height: 0; }
    #banner li { height: 18.2vw; min-height: 0; background-size: 100% 100%; background-position: center center; }


    #index .fw { padding: 18px 12px; gap: 14px; }
    #index .unit .title { background-size: 100% 100%; }
    #index .unit .images a { margin-bottom: 6px; }

    .index-news { line-height: 30px; }
    .index-news-title { width: 100%; height: 24px; }
    .index-news-content { height: auto; }

    .page-right .product-list li { width: 100%; margin: 0 0 14px; }
    .image-list li { width: 100%; padding: 0; margin: 0 0 14px; }
    .image-list li a img { width: 100%; height: auto; }

    .page_nav span, .page_nav a { padding: 2px 6px; font-size: 13px; }
    .page-right .article-info h1 { font-size: 16px; line-height: 26px; }

    .contact-form .form-row label { flex: 0 0 100%; width: 100%; }

    /* 页脚版权字号略收，避免“技术支持：逗号网络”折行断字 */
    .foot-links { font-size: 11px; }
    #footer .copyright p { font-size: 11px; line-height: 19px; }
    .foot-bottom { gap: 10px; }
}



