/* ======================================================================
   移动端自适应样式  (template/jinhei/css/mobile.css)
   说明：所有规则均包裹在媒体查询内，仅在小屏生效；
        PC 端（浏览器宽度 > 1024px）100% 保持原有样式不变。
   断点：
     ≤1024px  —— 平板：容器流式、双栏按比例缩放，避免横向溢出
     ≤768px   —— 手机：全部单列堆叠、网格变 1~2 列、字号/图片自适应
   ====================================================================== */

/* ========== 平板及以下 (≤1024px) ========== */
@media (max-width: 1024px) {
    * { box-sizing: border-box; }
    html, body { overflow-x: hidden; }

    /* 容器由固定 1200px 改为流式 */
    .center { width: auto; max-width: 100%; padding: 0 12px; margin: 0 auto; }

    /* 图片自适应，防止撑破屏幕 */
    img { max-width: 100%; height: auto; }

    /* 内页 banner */
    .banner { height: auto; }
    .banner img { width: 100%; height: auto; display: block; }

    /* 内页双栏：侧栏 + 内容 按比例 */
    /* inside.css 把 .body_content 设为 display:table（收缩到内容宽度），
       内部一旦有超宽元素就会把整栏撑破，这里改回普通块级 */
    .body_content { display: block; width: 100%; table-layout: fixed; }
    .body_left { width: 28%; }
    .body_right { width: 70%; }
    .body_right .right_content { width: 100%; }

    /* 产品列表：分类条 + 分类介绍 */
    .pro_con_con { width: 100%; }
    .product_list_con { width: 100%; }
    .pro_class_img { width: 48%; height: auto; }
    .pro_class_img img { width: 100%; height: auto; }
    .pro_class_c_t { width: 50%; }

    /* 产品详情：主图 + 简介 按比例 */
    .pro_img { width: 58%; }
    .pro_img_d { width: 100%; height: auto; line-height: normal; }
    .pro_img_img { max-width: 100%; max-height: none; }
    .pro_img_s { width: 100%; margin-left: 0; }
    .pro_tit_jj { width: 38%; margin-left: 2%; }

    /* 首页：产品展示左右栏 */
    .product_left { width: 30%; top: 0; height: auto; }
    .product_right { width: 68%; }
    .search { width: 100%; }

    /* 首页：新闻 / 常见问题 两栏 */
    .information, .problem { width: 49%; }

    /* 内容区表格可横向滚动，避免撑破 */
    .right_content table,
    .pro_c_con table,
    .case_con table,
    .new_details_con table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .right_content table td, .right_content table th,
    .pro_c_con table td, .pro_c_con table th,
    .case_con table td, .case_con table th,
    .new_details_con table td, .new_details_con table th {
        word-break: break-word;
    }
}

/* ========== 手机 (≤768px)：单列堆叠 ========== */
@media (max-width: 768px) {
    .center { padding: 0 10px; }

    /* ---------- 顶部条 ---------- */
    .top_t { height: auto; padding: 4px 0 2px; }
    .top_t_left { float: none; text-align: center; line-height: 24px; font-size: 12px; }
    .top_t_right { float: none; text-align: center; }
    .top_t_right ul { display: inline-block; }
    .top_t_right li { width: auto; line-height: 26px; padding-left: 16px; padding-right: 10px; background-position: left center; }
    .top_t_right li a { font-size: 12px; }

    /* ---------- Logo 区 ---------- */
    .logo { display: block; text-align: center; margin-bottom: 10px; }
    .logo_left { width: 100%; float: none; margin-top: 8px; text-align: center; }
    .logo_left_span1 { font-size: 11px; letter-spacing: .5px; }
    .logo_left_span2 { font-size: 19px; line-height: 28px; }
    .logo_left_span3 { font-size: 13px; line-height: 22px; }
    .logo_center { float: none; margin: 8px 0; text-align: center; }
    .logo_right { width: 100%; float: none; margin-top: 4px; text-align: center; padding-bottom: 0; background: none; }
    .logo_right_t { font-size: 13px; color: #888; line-height: 20px; }
    .logo_right_tel { font-size: 20px; line-height: 30px; background: none; }

    /* ---------- 导航：小屏自动换行，全部可见 ---------- */
    .nav_t { height: auto; margin-top: 8px; }
    .nav { overflow: visible; }
    .nav ul { display: flex; flex-wrap: wrap; justify-content: center; white-space: normal; }
    .nav li { float: none; }
    .nav li a { padding: 0 10px; line-height: 42px; font-size: 14px; font-weight: normal; }

    /* ---------- 焦点图：缩小左右按钮 ---------- */
    .focus .prev, .focus .next { width: 30px; height: 56px; background-size: 60px 112px; margin-top: -28px; }
    .focus .prev { background-position: 0 -56px; }
    .focus .next { right: 0; background-position: -30px -56px; }
    .focus .fbg { bottom: 8px; right: 8px; }

    /* ---------- 内页通用双栏 → 单列 ---------- */
    .body_left, .body_right { width: 100%; float: none; }
    .body_right { margin-top: 15px; }

    .right_title { height: auto; line-height: 36px; padding: 6px 10px; }
    .right_tit_left { display: block; padding-left: 22px; font-size: 16px; }
    .right_tit_right { display: block; float: none; margin-right: 0; font-size: 12px; }
    .right_content { padding: 10px; }
    /* 后台录入的富文本里可能有固定宽度的地图/嵌入内容，限制在屏内 */
    .right_content div, .right_content iframe, .right_content embed { max-width: 100%; }

    /* 侧栏精品推荐固定高度在手机改为自适应 */
    .list_pro_con { height: auto; }

    /* ---------- 新闻列表（内页） ---------- */
    .news_list_ul li { display: block; }
    .news_list_img { float: none; width: 100%; }
    .news_list_img img { width: 100%; height: auto; }
    .news_list_con { width: 100%; float: none; margin-left: 0; margin-top: 10px; }

    /* ---------- 案例/设备 网格 → 2 列（仅内页，不影响首页案例轮播） ---------- */
    .body_content .case_ul li { width: 48%; height: auto; margin-right: 4%; margin-bottom: 12px; }
    .body_content .case_ul li:nth-child(2n) { margin-right: 0; }
    .cases_img { width: 100%; height: auto; line-height: normal; }
    .cases_img img { max-width: 100%; max-height: none; }

    /* ---------- 业务范围：标题 + 分类导航 ---------- */
    .product_t { margin-top: 20px; }
    .product_t h3 { font-size: 24px; }
    .product_t p { font-size: 11px; letter-spacing: 6px; margin: 10px 0 16px; }
    .product_list { height: auto; border-bottom: none; padding-bottom: 4px; }
    .pro_con_con { display: block; width: 100%; margin: 0; background: none; }
    .product_list_con { width: 100%; overflow: visible; padding: 0 10px; overflow-x: visible; }
    .pro_left, .pro_right { display: none; }
    .product_list_ul { width: 100%; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; }
    .pro_list_li1 { width: 48.5%; float: none; margin-bottom: 10px; }
    .pro_list_li1_a {
        display: flex; align-items: center; justify-content: center;
        width: 100%; height: 52px; margin: 0; padding: 0 8px;
        font-size: 14px; line-height: 1.3; text-align: center; white-space: normal; color: #555;
        background-color: #f4f4f4; border-radius: 6px; box-sizing: border-box;
    }
    /* 分类介绍区 → 单列 */
    .product_class_t { padding-bottom: 24px; border-bottom: none; }
    .pro_class_con { display: block; width: 100%; margin-top: 22px; background: none; }
    .pro_class_img { width: 100%; height: auto; float: none; padding: 0; border: none; box-shadow: none; }
    .pro_class_img img { width: 100%; height: auto; display: block; border-radius: 8px; }
    .pro_class_c_t { width: 100%; float: none; margin-top: 16px; }
    .pro_class_name { font-size: 18px; }
    .pro_class_h { margin: 10px 0 12px; }
    .pro_class_c { font-size: 14px; line-height: 24px; color: #777; text-indent: 0; }
    .product_class_t .product_400 {
        width: 100%; max-width: 320px; height: 40px; line-height: 40px;
        margin-top: 20px; top: 0;
    }
    .product_content { padding-top: 24px; }

    /* ---------- 产品网格（首页 + 列表 + 搜索）2 列 ---------- */
    .product_right_con { text-align: center; }
    .product_right_con ul { display: block; }
    .product_right_con li { width: 48%; float: left; margin-right: 4%; margin-bottom: 14px; height: auto; }
    .product_right_con li:nth-child(2n) { margin-right: 0; }
    .product_img { line-height: normal; }
    .product_img img { max-width: 100%; max-height: none; }
    .product_hover_title { width: 100%; height: 100%; }
    .product_tit { font-size: 13px; line-height: 20px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* ---------- 产品详情 → 单列 ---------- */
    .pro_t { display: block; }
    .pro_img, .pro_tit_jj { width: 100%; float: none; margin-left: 0; }
    .pro_tit_jj { margin-top: 20px; }
    .pro_img_d { width: 100%; }
    .pro_img_s { width: 100%; margin-top: 10px; }

    /* 上一页/下一篇 堆叠 */
    .case_par, .case_next { width: 100%; float: none; text-align: left; }

    /* ================= 首页 ================= */

    /* ---------- 业务范围 + 产品展示 ---------- */
    .product_left, .product_right { width: 100%; float: none; }
    .product_left { margin-bottom: 24px; padding: 0 10px 12px; background: #f7f7f7; }
    .product_left h3 { height: 56px; line-height: 56px; font-size: 22px; letter-spacing: 2px; border-radius: 8px; margin-bottom: 14px; }
    .product_list .yiji {
        width: 100%; margin: 0 0 10px; background-image: none; background-color: #ff8600;
        border-radius: 8px; display: flex; align-items: center; justify-content: space-between;
        padding: 0 14px 0 16px;
    }
    .product_list .yiji a {
        width: auto; flex: 1; display: block; padding-left: 0; line-height: 46px;
        font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .product_list .yiji span { flex: 0 0 15px; margin-left: 10px; }

    .product_right { margin-top: 0; }
    .product_right_t { text-align: center; }
    .product_right_h3 { float: none; display: inline-block; text-align: center; }
    .product_right_t_span1 { font-size: 22px; }
    .product_right_t_span2 { font-size: 12px; }
    .product_right_t_span3 { margin: 14px auto 18px; }

    /* 搜索框：移动端改为圆角输入 + 橙色按钮 */
    .search { float: none; width: 100%; height: auto; margin: 12px auto 0; background: none; }
    .search form { display: flex; align-items: center; }
    .search .search_i {
        flex: 1; width: auto; height: 40px; padding: 0 14px; float: none;
        background: #f5f5f5; border: 1px solid #e4e4e4; border-right: none;
        border-radius: 20px 0 0 20px; font-size: 14px;
    }
    .search .submit {
        flex: 0 0 60px; width: 60px; height: 40px; padding: 0; border: none; cursor: pointer;
        border-radius: 0 20px 20px 0; background-color: #ff8600;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3C/svg%3E");
        background-repeat: no-repeat; background-position: center; background-size: 20px 20px;
        -webkit-appearance: none;
    }

    /* ---------- 应用案例轮播：一屏一张，统一尺寸 ---------- */
    .cases_t h3 { padding-top: 26px; padding-bottom: 14px; }
    .cases_t_span1 { font-size: 22px; }
    .cases_t_span2 { font-size: 11px; letter-spacing: 1px; }
    .cases .cases_list { position: relative; overflow: hidden; }
    .cases .case_ul { width: auto; display: flex; align-items: flex-start; }
    /* 固定 1:1 比例，不同原图统一裁切为相同大小，避免有高有矮 */
    .cases .case_ul li { width: 100%; flex: 0 0 100%; float: none; aspect-ratio: 1 / 1; overflow: hidden; background: #f5f5f5; }
    .cases .case_ul li a { display: block; width: 100%; height: 100%; }
    .cases .case_ul li img { width: 100%; height: 100%; object-fit: cover; display: block; }
    /* 左右切换按钮：改用矢量箭头，避免雪碧图缩放后只显示一半 */
    .cases .case_left, .cases .case_right {
        width: 38px; height: 38px; top: 50%; margin-top: -19px; z-index: 3;
        border-radius: 50%; background-color: rgba(0, 0, 0, .35);
        background-repeat: no-repeat; background-position: center; background-size: 16px 16px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 5 8 12 15 19'/%3E%3C/svg%3E");
    }
    .cases .case_left { left: 10px; right: auto; }
    .cases .case_right {
        right: 10px; left: auto;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 5 16 12 9 19'/%3E%3C/svg%3E");
    }
    .cases .case_left:hover, .cases .case_right:hover { background-color: rgba(0, 0, 0, .55); }

    /* ---------- 联系条 ---------- */
    .contact { width: auto; margin: 22px 10px 28px; height: auto; padding: 14px 12px; border-radius: 16px; line-height: 1.6; }
    .contact_tel, .contact_qq, .contact_qq a { float: none; display: block; text-align: center; margin: 0; padding: 0; border: none; }
    .contact_tel { width: auto; height: auto; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed #ddd; }
    .contact_tel img { float: none; display: inline-block; vertical-align: middle; margin: 0 6px 0 0; width: 20px; height: auto; }
    .contact_tel span { font-size: 16px; }
    .contact_qq { height: auto; line-height: 24px; }
    .contact_qq a { display: inline-block; }
    .contact_qq img { vertical-align: middle; }

    /* ---------- 企业优势 ---------- */
    .youshi_con { display: block; margin-top: 24px; background: none; }
    .youshi_li { display: block; height: auto; margin-bottom: 30px; }
    .youshi_li_con { display: flex; align-items: flex-start; width: 100%; float: none; }
    .number {
        float: none; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; margin: 2px 0 0;
        background: #ff8600; background-image: none; border-radius: 8px;
        font-size: 22px; font-style: normal; line-height: 44px; text-align: center;
    }
    /* 覆盖 PC 端按序号设置的固定高度（.youshi2/3/4 .number 特异性更高） */
    .youshi1 .number, .youshi2 .number, .youshi3 .number, .youshi4 .number { height: 44px; }
    .youshi_content { float: none; width: auto; flex: 1; min-width: 0; padding-left: 14px; }
    .youshi_content_tit { font-size: 22px; padding-bottom: 10px; margin-bottom: 12px; background-size: 100% 2px; }
    .youshi_content_tit span { font-size: 14px; margin-left: 8px; }
    .youshi_content_con { font-size: 14px; line-height: 24px; text-align: justify; }
    .youshi_li_img { float: none; width: 100%; margin-top: 14px; text-align: center; }
    .youshi_li_img img { width: 100%; height: auto; display: block; border-radius: 8px; }
    .youshi2 .youshi_li_con, .youshi4 .youshi_li_con { float: none; }
    .youshi2 .youshi_li_img, .youshi4 .youshi_li_img { float: none; }
    .youshi3, .youshi4 { position: static; top: 0; }

    /* ---------- 关于我们 ---------- */
    .about_t { background: none; height: auto; }
    .about_img { float: none; width: 100%; text-align: center; }
    .about_img img { width: 100%; height: auto; display: block; }
    .about_con { width: 100%; float: none; height: auto; padding: 24px 0 28px; background: #ff8600; }
    .about_c { width: auto; padding: 0; margin: 0 18px; font-size: 14px; line-height: 26px; letter-spacing: .5px; text-align: justify; }
    .about_m { width: 160px; height: 40px; line-height: 40px; margin: 22px auto 0; font-size: 14px; }

    /* ---------- 荣誉证书 ---------- */
    .case_t { height: auto; padding-bottom: 24px; }
    .case_t .case_con { width: 100%; height: auto; float: none; padding: 20px 0; background-color: #ff9b2f; background-image: none; }
    .case_con_p1 { margin-top: 0; font-size: 24px; }
    .case_con_p2 { margin-top: 8px; font-size: 12px; letter-spacing: 1px; }
    .case_t .case_list { padding-top: 16px; }
    /* 证书卡片：统一 3:4 比例、2 列居中，图片整体 contain 不裁切，避免高低不一 */
    .case_t .case_list ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 4%; }
    .case_t .case_list li { width: 48%; height: auto; float: none; margin: 0; text-align: center; background: none; }
    .case_t .case_img {
        margin: 0; padding: 8px; background: #fff; border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
        aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center;
    }
    .case_t .case_img img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; display: block; }
    .case_t .case_m { display: none; }

    /* ---------- 新闻 + 常见问题 ---------- */
    .index_news { display: block; margin-bottom: 24px; }
    .information, .problem { width: 100%; float: none; }
    .information { margin-bottom: 20px; }
    .information_con { position: static; }
    .information h3, .problem h3 { height: 54px; display: flex; align-items: center; }
    .news_gs, .news_hy, .news_wt {
        float: none; width: auto; height: 100%; flex: 1; padding: 0;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        font-size: 15px; line-height: 20px;
    }
    .news_gs p, .news_hy p, .news_wt p { font-size: 11px; line-height: 14px; margin-top: 2px; }
    .news_m { float: none; margin: 0 12px 0 0; line-height: 0; }
    .news_m img { width: 42px; height: auto; vertical-align: middle; }
    .information_con li a { display: block; }
    .news_left { width: 64px; }
    .news_r { font-size: 26px; margin-top: 12px; }
    .news_y { font-size: 12px; margin-bottom: 10px; }
    .news_right { width: auto; float: none; overflow: hidden; }
    .news_tit { font-size: 14px; line-height: 20px; margin: 12px 10px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .news_con { font-size: 12px; line-height: 18px; margin: 0 10px 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .news_wt_con { height: auto; padding: 2px 0 8px; }
    .news_wt_con li { height: auto; padding: 12px 0; }
    .news_wt_title, .news_wt_p span { margin-top: 0; font-size: 13px; line-height: 20px; }
    .news_wt_c { font-size: 12px; line-height: 18px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* ---------- 友情链接 ---------- */
    .link { height: auto; padding: 20px 0 24px; }
    .link .center { display: flex; flex-direction: column; align-items: center; }
    .link_t, .link_c, .link_ewm, .link_logo { float: none; margin: 0; background: none; }
    .link_t { width: auto; margin-bottom: 12px; }
    .link_t img { max-width: 120px; height: auto; display: block; }
    .link_c { width: 100%; }
    .link_c ul { display: flex; flex-wrap: wrap; justify-content: center; }
    .link_c li { width: auto; margin: 0 8px 8px; }
    .link_c li a { font-size: 13px; color: #666; }
    .link_ewm { width: auto; text-align: center; margin-top: 8px; }
    .link_ewm span { display: block; width: auto; margin: 0 0 8px; position: static; bottom: auto; color: #666; font-size: 13px; }
    .link_ewm img { display: inline-block; width: 96px; height: 96px; margin: 0; position: static; border: 4px solid #fff; }
    .link_logo { display: none; }

    /* ---------- 页脚 ---------- */
    .footer { height: auto; padding: 26px 0 30px; }
    .footer_copy { width: 100%; float: none; text-align: center; }
    .foot_company { margin: 0 0 10px; font-size: 16px; }
    .footer_copy p { font-size: 12px; line-height: 20px; }
    .foot_left {
        width: 100%; float: none; height: auto; margin-top: 0; padding: 14px 0;
        border-right: none; border-bottom: 1px dashed #565656;
        display: flex; align-items: flex-start;
    }
    .foot_left:last-child { border-bottom: none; }
    .foot_left_icon { float: none; width: 38px; flex: 0 0 38px; margin: 0 12px 0 2px; text-align: center; }
    .foot_left_icon img:first-child { width: 34px; height: auto; }
    .foot_left_icon img:last-child { display: none; }
    .foot_left_con { float: none; width: auto; flex: 1; margin: 0; }
    .foot_left_con h3 { font-size: 13px; letter-spacing: 1px; }
    .foot_left_con p { margin-top: 6px; font-size: 13px; line-height: 22px; word-break: break-word; }

    /* ---------- 底部导航 ---------- */
    .foot_nav { height: auto; padding: 8px 0; }
    .foot_nav_ul { margin-left: 0; display: flex; flex-wrap: wrap; justify-content: center; }
    .foot_nav li { float: none; }
    .foot_nav li a { padding: 7px 10px; font-size: 12px; line-height: 20px; background: none; }
    .foot_nav .foot_next a { background: none; }

    /* 搜索结果页的搜索框（内联样式覆盖） */
    .search_result_form input[type="text"] { width: 90% !important; }
}

/* ========== 小屏手机 (≤480px) 微调 ========== */
@media (max-width: 480px) {
    /* 产品/案例/证书统一保持双列，避免单列页面过长 */
    .product_right_con li { width: 48%; margin-right: 4%; }
    .product_right_con li:nth-child(2n) { margin-right: 0; }
    .body_content .case_ul li { width: 48%; margin-right: 4%; }
    .body_content .case_ul li:nth-child(2n) { margin-right: 0; }
    .nav li a { padding: 0 8px; font-size: 13px; line-height: 40px; }
    .product_left h3 { font-size: 20px; }
}
