/* ============================================================
   ytqygl 主题响应式（原站为固定宽 PC 站，一条 @media 都没有）
   PC（>1024px）：不写任何规则，保证与原站像素一致
   断点：1160(窄桌面) / 1024(平板) / 768 / 480
   栅格思路：手机段统一用「width:50% + padding 内边距」做两列，
             避免 nth-child 选择器与原生 margin-left 打架
   ============================================================ */

.nav-toggle { display: none; }

/* ============================================================
   首页「举报」标识：jubap（12377）+ wq.png，宽度统一 212，上下叠放

   · 桌面段：两张图【始终固定在视口最右边悬浮】（right:0; bottom:0）
   · 平板/手机：悬浮会压住正文，改回文档流，落在页脚之后的白条里
   · .home-report-bar 排在页脚版权行之后，桌面段固定 155px 高
     （44 + 8 + 71 + 上下各 16）——这块空地是给悬浮图「落地」用的：
     滚到页面最底部时浮层正好落进去，版权行在它上方，永远不会被压住。
   ============================================================ */
.home-report-bar {
    height: 155px;
    /* 与页脚背景图最底行同色（#181715），看起来就是页脚自然的延伸，不会出现白带 */
    background: #181715;
    box-sizing: border-box;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-report-inner {
    width: 1100px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 10px;
    text-align: right;
}

.home-report-fixed {
    display: inline-block;
    text-align: left;
    line-height: 0;
    vertical-align: top;
    /* 桌面段常驻悬浮 */
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 9990;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}

.home-report-fixed .home-report-link {
    display: block;
    line-height: 0;
}

.home-report-fixed .home-report-jubap {
    display: block;
    width: 212px !important;
    height: 44px !important;
    max-width: none !important;
    margin: 0 0 8px 0;
    border: 0;
}

.home-report-fixed .home-report-wq {
    display: block;
    width: 212px !important;
    height: 71px !important;
    max-width: none !important;
    margin: 0;
    border: 0;
}

/* 窄屏（≤1439）：右侧没有 212px 的空白可以放这两张图，硬贴右边会压住正文/新闻卡片，
   改回文档流，落在页脚之后预留的条里（桌面保持深色与页脚连成一体） */
@media screen and (max-width: 1439px) {
    .home-report-fixed {
        position: static;
        box-shadow: none;
    }

    .home-report-bar {
        height: auto;
        padding: 16px 0;
        display: block;
    }

    .home-report-inner {
        padding: 0 24px;
    }
}

/* 平板 / 手机：白底更干净，图本身是白底的 */
@media screen and (max-width: 1024px) {
    .home-report-bar {
        background: #fff;
    }
}

@media screen and (max-width: 480px) {
    .home-report-bar {
        padding: 14px 0;
    }

    .home-report-fixed .home-report-jubap {
        width: 170px !important;
        height: 36px !important;
    }

    .home-report-fixed .home-report-wq {
        width: 170px !important;
        height: 57px !important;
    }
}


/* ---------- 1025 ~ 1160px：窄桌面（笔记本常见区间） ----------
   原站正文是固定宽（1100 / 1080 / 1000），而平板断点在 1024，
   于是 1025~1115 这段既没进响应式、又放不下固定宽 → 全站横向溢出、右侧被切。
   这一档只把外层容器改成「100% + max-width」，版式（两栏/三栏）完全不动。 */
@media screen and (min-width: 1025px) and (max-width: 1160px) {
    .top_cont {
        width: 100%;
        max-width: 1100px;
        box-sizing: border-box;
    }

    .pro_1,
    .list_1,
    .foot_cet {
        width: 100%;
        max-width: 1000px;
        box-sizing: border-box;
    }

    .content02 {
        width: 100%;
        max-width: 1080px;
        box-sizing: border-box;
    }

    .index_hd {
        width: 100%;
        max-width: 994px;
        box-sizing: border-box;
    }
}

/* 内容区图片一律不溢出 */
@media screen and (max-width: 1024px) {
    img { max-width: 100%; }
}

/* ---------- 1024px：平板 ---------- */
@media screen and (max-width: 1024px) {
    /* --- 头部：去掉 600px 大图 + 绝对定位导航 --- */
    .header { height: auto; }
    .template_banner {
        height: 0;
        padding-top: 31.25%;           /* 1920 x 600 的比例 */
        overflow: hidden;
        background: url(../images/banner_02.jpg) 50% 50% / cover no-repeat;
    }
    .template_banner .flexslider { display: none; }

    .top {
        position: static;
        height: auto;
        background: #fff;
        border-top: none;
        border-bottom: 1px solid #e7e7e7;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    }
    .top_cont { position: relative; height: auto; width: 100%; max-width: 1100px; padding: 10px; box-sizing: border-box; }
    .logo { width: auto; max-width: 46%; height: auto; padding-top: 0; }
    .logo img { max-width: 100%; height: auto; display: block; }
    .slip { width: 100%; float: none; }

    /* 汉堡按钮 */
    .nav-toggle {
        display: block;
        position: absolute;
        right: 12px;
        top: 50%;
        margin-top: -13px;
        width: 32px;
        height: 26px;
        cursor: pointer;
        z-index: 100000;
    }
    .nav-toggle span {
        display: block;
        height: 3px;
        margin: 5px 0;
        background: #bf101d;
        border-radius: 2px;
        transition: transform .25s;
    }
    .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* 导航列表：默认收起（.slip 原生是 display:table，max-height 对它无效，必须先改 block） */
    .slip { display: block; width: 100%; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
    .slip.open { max-height: 1600px; overflow: visible; }
    #navBoxlist { width: 100%; }
    .slip ul li {
        width: 100%;
        height: auto;
        line-height: 1.6;
        font-size: 14px;
        padding: 9px 4px;
        box-sizing: border-box;
        text-align: left;
        border-top: 1px solid #f0f0f0;
    }
    .slip ul li a { display: inline-block; line-height: 1.6; font-weight: 600; color: #333; }
    .slip ul li a + a { font-weight: 400; color: #999; font-size: 12px; margin-left: 6px; }
    .shadowBox { display: none; }
    .slip .second { position: static; display: block; box-shadow: none; width: auto; background: none; }
    .slip .second li { border: none; padding: 3px 14px; }
    .slip .second li a { font-weight: 400; color: #666; font-size: 13px; }

    /* --- 容器 --- */
    .pro_1, .list_1, .foot_cet, .content02, .index_hd {
        width: 100%;
        max-width: 1000px;
        box-sizing: border-box;
        padding-left: 12px;
        padding-right: 12px;
    }
    .pro_1 { display: block; height: auto; }

    /* --- 内页两栏 → 上下 --- */
    .content02 { display: block; }
    .left { width: 100%; float: none; }
    .left .main-left { display: flex; flex-wrap: wrap; }
    .left .main-left li { width: auto; margin-right: 12px; }
    .right { width: 100%; float: none; margin-left: 0; margin-top: 16px; }
    .content1 { width: 100%; box-sizing: border-box; display: block; }
    .blk_t2 { font-size: 16px; }
    .blk_t2 span { float: none; display: block; font-size: 12px; font-weight: 400; margin-top: 6px; }

    /* --- 首页 服务展示 --- */
    /* 左栏原本是深蓝底图 + 白色文字，去掉底图后必须补底色，否则白字看不见 */
    .fl {
        width: 100%;
        height: auto;
        float: none;
        background: #2b5f9f;
        border: 1px solid #2b5f9f;
        padding: 0 0 12px 0;
        box-sizing: border-box;
    }
    .fl_1 { color: #fff; text-align: left; padding: 10px 0 6px 14px; }
    .fl_cont { padding: 0 14px; }
    .fl_cont ul { display: flex; flex-wrap: wrap; }
    .fl_cont ul li { width: auto; margin: 0 10px 6px 0; background: none; padding-left: 0; line-height: 26px; }
    .fl_cont ul li a { color: #fff; }
    .pro_cot { width: 100%; float: none; margin-left: 0; margin-top: 10px; }
    .pro_cot ul::after { content: ''; display: block; clear: both; }
    .pro_cot ul li { width: 50%; float: left; height: auto; margin: 0 0 12px 0; padding: 0 6px; box-sizing: border-box; }
    /* img 是替换元素，aspect-ratio 会被固有比例覆盖，改用 padding-top 撑高 + object-fit 填满 */
    .pro_cot ul li a { display: block; position: relative; padding-top: 60.2%; overflow: hidden; }
    .pro_cot ul li img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

    /* --- 首页 客户案例 --- */
    .index_hd .hd_r ul::after { content: ''; display: block; clear: both; }
    .index_hd .hd_r ul li { width: 33.33%; height: auto; float: left; margin: 0; padding: 5px; box-sizing: border-box; }
    .index_hd .hd_r ul li img { width: 100%; height: auto; display: block; aspect-ratio: 241 / 145; object-fit: cover; }
    /* 原站案例卡是 3D 翻转效果（a/span 全部 position:absolute，高度靠 li 的 145px 撑），
       手机端必须把绝对定位链整条解掉，否则 li 高度 auto 后整块会塌成一条 */
    .index_hd .hd_r .major-list li a { position: relative; width: 100%; height: auto; }
    .index_hd .hd_r .major-list li a span { position: static; width: 100%; height: auto; }
    .index_hd .hd_r .major-list li a span img { width: 100%; height: auto; display: block; aspect-ratio: 241 / 145; object-fit: cover; }
    .index_hd .hd_r .major-list li a span.back-face { display: none !important; }

    /* --- 首页 新闻 --- */
    .list_1 ul::after { content: ''; display: block; clear: both; }
    .list_1 ul li { width: 33.33%; float: left; margin: 0 0 18px 0; padding: 6px; box-sizing: border-box; }
    .list_1 ul li img { width: 100%; height: auto; aspect-ratio: 213 / 284; object-fit: cover; }
    .list_1 li .ti { height: auto; line-height: 26px; font-size: 15px; }
    .list_1 li p { height: auto; max-height: 96px; }

    /* --- 产品列表 --- */
    #productlist { width: 100%; }
    #productlist::after { content: ''; display: block; clear: both; }
    .wai { width: 33.33%; height: auto; float: left; margin: 0; padding: 6px; box-sizing: border-box; }
    .wai .probox { height: auto; padding-top: 92%; }   /* 195 x 180 比例 */
    .wai .probox .img { position: absolute; top: 0; left: 0; }
    .proinfo { height: auto; }
    #productlist .clear { display: none; }

    /* --- 内容页 --- */
    #newscontent { width: 100%; padding: 6px; box-sizing: border-box; }
    #newcontent { float: none; width: 100%; margin: 10px 0 0 0; }
    #newcontent img, .artcontent img { max-width: 100%; height: auto; }
    #newsconttitle p { height: auto; }
    #newsconttitle p a { width: 100%; float: none; }
    #articleHeader { height: auto; }
    #articleHeader h4 { height: auto; line-height: 22px; }
    .probox img { max-width: 100%; height: auto; }

    /* --- 留言表单 --- */
    #guestsmt { width: 100%; box-sizing: border-box; }
    .guestinfo, .usertel { width: 100%; box-sizing: border-box; }
    .usersbmt { margin-left: 0; }

    /* --- 页脚 --- */
    /* .footer_1 基础规则是 height:500px + 背景图，平板/手机上内容比 500 高，
       .ft_gy 改成 static 后会溢出到页脚之外，压住后面的举报标识 → 必须放开高度 */
    .footer_1 { height: auto; min-height: 0; padding-bottom: 24px; background-size: cover; }
    .foot_cet { display: block; height: auto; }
    .ft_gy { position: static; width: 100%; height: auto; box-sizing: border-box; margin-top: 16px; }
    .ft_gy .fp_2 { padding: 12px; }
    .footer_2 { height: auto; min-height: 140px; background-size: cover; background-position: 50% 0; }
    .footer_2 p { padding: 40px 16px; box-sizing: border-box; }

    /* 右下角固定举报块缩小 */
    .side-fixed { width: 140px !important; height: 48px !important; }
    .side-fixed img { width: 100%; height: auto; }
}

/* ---------- 768px：手机 ---------- */
@media screen and (max-width: 768px) {
    .pro_1, .list_1, .foot_cet, .content02, .index_hd { padding-left: 10px; padding-right: 10px; }
    .index_hd .hd_r ul li { width: 50%; }
    .wai { width: 50%; }
    .list_1 ul li { width: 50%; }
    .biaoti { padding-top: 24px; }
    .blk_t1 { font-size: 15px; }
    .side-fixed { width: 110px !important; height: 38px !important; }
}

/* ---------- 480px：小屏手机 ---------- */
@media screen and (max-width: 480px) {
    .template_banner { padding-top: 42%; }
    .logo { max-width: 52%; }
    .list_1 ul li,
    .index_hd .hd_r ul li,
    .pro_cot ul li,
    .wai { width: 100%; }
    .wai .probox { padding-top: 78%; }
    .list_1 li p { max-height: none; }
    .footer_2 p { font-size: 12px; padding: 28px 12px; line-height: 20px; }
    .ft_lx img { max-width: 100%; height: auto; }
    .side-fixed { display: none; }
}

/* ---------- 溢出兜底（2026-10-28）----------
   手机端个别长串（正文来源链接、服务展示标题）会把页面撑出几像素到几十像素，
   统一在这里收口，避免出现横向滚动条 */
@media screen and (max-width: 768px) {
    .details,
    #newscontent,
    .artcontent,
    .right {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .details a,
    #newscontent a {
        white-space: normal;
        word-break: break-word;
    }

    .fl_1 {
        box-sizing: border-box;
    }
}

/* 文章详情「来源」那一行：站点名是个超长链接，会把页面顶出去 */
@media screen and (max-width: 768px) {
    #newsconttitle,
    #newsconttitle * {
        max-width: 100%;
        word-break: break-word;
    }

    #newsconttitle a {
        display: inline;
        white-space: normal;
    }
}

/* ---------- 新闻标题不再被“拦腰截断”（2026-10-28）----------
   原站 .list_1 li .ti 是 height:44 + line-height:44 = 单行，
   标题一长就被裁掉后半句（scrollHeight 88 vs clientHeight 44）。
   改成盒高不变、行高 22、最多两行 + 省略号：排版不位移，信息更完整。 */
.list_1 li .ti {
    height: 44px;
    line-height: 22px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* ============================================================
   桌面段（>1160px）保持原站固定宽不动：
   1100 内容 + 1920 轮播图在原站本来就是居中裁切，改它反而会位移版式。
   1025~1160 的窄桌面在文件上半部分用「100% + max-width」收口，
   避免 1366 笔记本上全站右侧被切。
   ============================================================ */
