@charset "utf-8";
/* ==========================================================================
   Responsive patch for yxwzsj.com (XYHCMS default theme)
   Loaded AFTER Common.css / Index.css / main.css so it wins on equal specificity.
   ========================================================================== */

/* 只做两件全局的事：解除强制最小宽度、隐藏移动端菜单按钮。
   其余（盒模型、图片缩放）一律放进媒体查询，保证 >1200px 的桌面端视觉完全不变。 */
html, body { min-width: 0 !important; }
body { overflow-x: hidden; }

/* 移动端菜单按钮：桌面隐藏 */
.nav-toggle { display: none; }

/* ---------- 1. 大屏到 1200px：解除最小宽度，容器改流式 ---------- */
@media screen and (max-width: 1200px) {
    html, body { min-width: 0 !important; }
    .caes { min-width: 0 !important; }

    /* 流式布局相关的重置只在此断点内生效 */
    *, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
    img, video, embed, object { max-width: 100%; height: auto; }

    .container, .header, .content, .footer, .t1_m, .foot, .Links,
    #jsddm, .newslistbox, .fanganclass, .fanganpingjialist, .fanganlist,
    .pingjialist, .pingjialist dl, .Client h3, .Clientlist, .works_link,
    .advantage .advantage_box, .gd2, .profession_list, .shuzi, .ad,
    .hzhb .hzCont ul, .khjz .khCont ul,
    #main, .platform, .news_wrap, .news, .works_wrap, #news_list, #works_list,
    .works_focus .focus_img, .works_info, .works_summary,
    .works_summary h2, .works_summary p, .listtop, .newslis {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100%;
    }

    /* 横向滚动的走马灯容器恢复成普通流式 */
    .newslistbox ul, .fanganpingjialist ul, .Clientlist ul { width: 100% !important; position: static !important; }
    .newslistbox ul li, .fanganpingjialist ul li, .Clientlist ul li,
    .Clientlist ul li dl { width: 100% !important; float: none !important; }

    .bannerBox, .bannerBox * { max-width: 100%; }
    img { max-width: 100% !important; height: auto; }
}

/* ---------- 2. <= 992px：多栏结构改为单栏堆叠 ---------- */
@media screen and (max-width: 992px) {
    .left2, .left3, .right, .right2, .right3,
    .left2_main, .right_main, .right2_main,
    .header_r, .advantage .advantage_left, .advantage .advantage_right,
    .zxys_t_m, .zlbz_r, .zlbr_l, .alList,
    .works_info dt, .works_info dd.summary,
    .content .purchase, .content .purchase .pur_1 {
        width: 100% !important;
        float: none !important;
        margin-left: auto;
        margin-right: auto;
        clear: both;
    }

    .profession, .kunrao .wenhao, .kunrao .kunrao_list, .kunrao .kunrao04,
    .shuzi li, .newslis dl, .foot dl dt, .foot dl dd,
    .foot ul li.footyw, .foot ul li.footys, .foot ul li.footabout,
    .foot ul li.footyw p, .foot ul li.footys p,
    #news_list li, #news_list li.first, #works_list li, #works_list .item2,
    .correlation .list li, .platform a {
        width: 100% !important;
        float: none !important;
    }

    .platform { padding: 20px 0; }
    .platform a { margin: 0 0 8px; }
    .hd_logo dt, .hd_logo dd { float: none; text-align: center; }
    .hd_logo dd { padding-top: 8px; }
    .header_r { text-align: center; }
    .bannerBox { height: auto !important; min-height: 0 !important; max-height: none !important; }
    /* ===== Banner：原图为 1920x600，整张等比显示，不再裁切 ===== */
    .bannerBox { position: relative !important; height: auto !important; padding-top: 31.25% !important; }
    #flashs { position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; height: 100% !important; }
    #flashs .bgitem {
        position: absolute !important; top: 0 !important; left: 0 !important;
        width: 100% !important; height: 100% !important;
        background-size: 100% 100% !important; background-position: center top !important; }
    /* 栏目页顶部 500px 通栏图 */
    [style*="height:500px"] { height: 200px !important; background-size: cover !important; }

    /* ===== 实力区（"4年来…"）：802px 绝对定位大图改满宽流式 ===== */
    .shili { height: auto !important; padding-bottom: 30px; background-size: cover; }
    .shili p { margin-top: 40px !important; padding: 0 14px; }
    .shili h3 { font-size: 24px !important; padding: 0 14px 20px !important; }
    .shili .sl01 { position: static !important; width: 100% !important; height: auto !important; margin: 0 !important; display: block; }
    .shili a { position: static !important; display: block !important; margin: 5px auto 0 !important; }

    /* ===== 困惑区：撤销 1200 布局的绝对定位偏移，改纵向流式 ===== */
    .kunrao { height: auto !important; padding-bottom: 25px; }
    .kunrao h2 { font-size: 22px !important; margin-top: 30px !important; padding: 0 14px 20px !important; line-height: 1.5; }
    .kunrao .b01, .kunrao .b02 { display: none !important; }
    .kunrao .wenhao { position: static !important; width: 88% !important; height: auto !important; margin: 0 auto !important; background: none !important; }
    .kunrao .wenhao img { position: static !important; width: 100% !important; max-width: 336px !important; height: auto !important; }
    .kunrao .kunrao_list, .kunrao .kunrao01, .kunrao .kunrao02, .kunrao .kunrao03, .kunrao .kunrao04 {
        position: static !important; width: 100% !important; height: auto !important;
        margin: 12px 0 !important; padding: 0 12px !important; }
    /* 每一项：文字气泡 + 图标横向并排居中（原站为 1200px 绝对定位偏移） */
    .kunrao .kunrao_list > a {
        position: static !important; display: flex !important; align-items: center; justify-content: center;
        width: 100% !important; height: auto !important; margin: 0 !important; padding: 0 !important; }
    /* 只保留默认态：原站 .kunrao .wen02 / .img02 是 hover 切换图，本就 display:none */
    /* 注意：必须写在 .wen / .img 规则之后，否则同优先级被后面的 display:block 覆盖 */
    .kunrao .kunrao_list .wen {
        position: static !important; display: block !important; flex: 0 1 auto;
        width: auto !important; max-width: 66% !important; height: auto !important; margin: 0 !important; }
    .kunrao .kunrao_list .img {
        position: static !important; display: block !important; flex: 0 0 auto;
        width: auto !important; max-width: 30% !important; height: auto !important; margin: 0 !important; }
    .kunrao .wen01, .kunrao .img01 { display: block !important; }
    .kunrao .kunrao_list .wen02, .kunrao .kunrao_list .img02,
    .kunrao .wen02, .kunrao .img02 { display: none !important; }
    .kunrao .lijizixun { position: static !important; width: 88% !important; height: auto !important; margin: 12px auto 0 !important; text-align: center; }
    .kunrao .lijizixun p img { width: 100% !important; max-width: 233px !important; height: auto !important; }

    /* ===== 方案&客户评价：tab 行、走马灯、案例卡片改满宽 ===== */
    .fanganclass { width: 100% !important; }
    .commonclass { padding: 14px 8px 0 !important; }
    .commonclass span a { margin: 0 4px !important; }
    /* 前后翻页箭头在触屏上无意义，"更多+"改为跟在 tab 下方的居中块 */
    .fanganpingjiamore { position: static !important; width: 100% !important; text-align: center !important; padding: 12px 0 !important; }
    .fanganpingjiaPrev, .fanganpingjianext { display: none !important; }
    .fanganpingjialink { width: 96px !important; }
    .fanganpingjialist ul li { width: 100% !important; padding-right: 0 !important; }
    .fanganlist { width: 100% !important; }
    .fanganlist dl dd {
        width: 100% !important; float: none !important; margin: 0 0 14px !important;
        -moz-box-sizing: border-box; box-sizing: border-box; }
    .fanganlist dl dd span { width: 100% !important; height: auto !important; }
    .fanganlist dl dd img { position: static !important; width: 100% !important; height: auto !important; margin: 0 !important; }

    /* ===== 右侧在线咨询浮窗：缩小 25%，减少对内容的遮挡 ===== */
    #XYHOnlineView, .xyh_online_view { transform: scale(0.75); transform-origin: 100% 50%; }
}

/* ---------- 3. <= 768px：手机端 —— 菜单、间距、字号 ---------- */
@media screen and (max-width: 768px) {
    /* 菜单按钮：主题绿色，与黑色 banner 明显区分；提高层级防被浮窗/轮播遮挡 */
    /* 菜单按钮：改到头部右侧，与 logo 同一行（body 为 position:relative，绝对定位锚定页面顶部） */
    .nav-toggle {
        display: block;
        position: absolute;
        top: 39px;
        right: 10px;
        z-index: 9999;
        background: #77b306;
        color: #fff;
        font-size: 15px;
        font-weight: bold;
        line-height: 1;
        padding: 11px 14px;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        letter-spacing: 1px;
        border: 0;
        border-radius: 3px;
    }
    .nav-toggle:before { content: "\2630  "; }

    .nav { height: auto !important; }
    /* 展开的菜单容器：白底 + 阴影 + 高层级，确保盖在 banner 之上 */
    #navMenu { display: none; background: #fff; position: relative; z-index: 9998; box-shadow: 0 5px 12px rgba(0,0,0,.3); }
    #navMenu.open { display: block; }

    /* ===== 手机菜单：整体重写为浅色面板，规避旧站固定高度/浮动/绝对定位造成重叠 ===== */
    /* 双 ID 选择器 (2,0,0)，稳压原站 Common.css 里任何单 ID 规则 */
    #navMenu { background: #fff !important; border-top: 1px solid #e6e6e6; }

    #navMenu #jsddm,
    #navMenu #jsddm > li {
        width: 100% !important; height: auto !important; max-height: none !important;
        float: none !important; display: block !important; overflow: visible !important;
        margin: 0 !important; padding: 0 !important; position: static !important;
    }
    #navMenu #jsddm > li { border-bottom: 1px solid #eee; }

    /* 一级菜单项：白底深字，彻底清掉原本的深色底图和 60px 固定行高 */
    #navMenu #jsddm > li > a {
        display: block !important; float: none !important; position: static !important;
        width: 100% !important; height: auto !important; min-height: 0 !important;
        line-height: 1.5 !important; font-size: 15px !important;
        padding: 14px 16px !important; margin: 0 !important;
        background: #fff !important; background-image: none !important;
        color: #333 !important; text-align: left !important;
        border: 0 !important; -webkit-tap-highlight-color: transparent;
    }
    #navMenu #jsddm > li > a:active { background: #f2f8e6 !important; color: #4e7a04 !important; }

    /* 二级菜单：常驻展开、参与文档流，父级 li 自动撑高 */
    #navMenu #jsddm li ul,
    #navMenu #jsddm ul {
        position: static !important; display: block !important; visibility: visible !important;
        float: none !important; width: 100% !important;
        height: auto !important; max-height: none !important;
        overflow: visible !important; left: auto !important; top: auto !important;
        margin: 0 !important; padding: 0 !important;
        background: #f7f7f7 !important; border: 0 !important; box-shadow: none !important;
        z-index: auto !important;
    }
    #navMenu #jsddm li ul li {
        display: block !important; float: none !important; position: static !important;
        width: 100% !important; height: auto !important; line-height: normal !important;
        margin: 0 !important; padding: 0 !important;
        border-bottom: 1px solid #ececec;
    }
    #navMenu #jsddm li ul li:last-child { border-bottom: 0; }
    #navMenu #jsddm li ul li a {
        display: block !important; float: none !important; position: static !important;
        width: 100% !important; height: auto !important; min-height: 0 !important;
        line-height: 1.5 !important; font-size: 13.5px !important;
        padding: 10px 16px 10px 32px !important; margin: 0 !important;
        background: #f7f7f7 !important; background-image: none !important;
        color: #666 !important; text-align: left !important;
        border: 0 !important; border-right: 0 !important;
    }
    #navMenu #jsddm li ul li a:active { background: #eef5df !important; color: #4e7a04 !important; }

    /* ===== 头部只保留 logo 和菜单按钮（用户要求，2026-10-20）===== */
    /* 顶部通栏：深圳网站建设/深圳网站设计/电话/QQ 全部隐藏 */
    .t1 { display: none !important; }
    /* 右侧：官方微博/官方博客/加入收藏/联系我们/网站地图/电话 */
    .header_r, .headr_t, .hd_top, .dh_phone { display: none !important; }
    /* logo 旁的标语文字（营销策划网站专家/让网络营销为您解决问题） */
    .hd_logo dd { display: none !important; }

    /* 头部：logo 居左，菜单按钮绝对定位到右侧同一行，压缩上下留白 */
    /* 原站 .hd_cont/.hd_logo 固定 height:132px、dt 有 24px 顶部内边距，是白底过多的主因 */
    .header, .hd_cont { width: 100% !important; height: auto !important; padding: 10px 10px !important; }
    .hd_logo { position: static !important; width: auto !important; height: auto !important; float: none !important; text-align: left !important; padding: 0 !important; margin: 0 !important; }
    .hd_logo dt { float: none !important; display: inline-block; height: auto !important; padding: 0 !important; }
    .hd_logo img { max-width: 170px !important; height: auto !important; display: block; }

    /* 内容区留白 */
    .content, .container { padding-left: 10px; padding-right: 10px; }
    .fnews, .shili, .kunrao, .advantage, .Client, .fanganpingjia, .gdb { padding-left: 0; padding-right: 0; }

    /* 标题字号收敛 */
    h1 { font-size: 24px !important; }
    h2 { font-size: 20px !important; }
    h3 { font-size: 18px !important; }
    .common-t, .advantage_title, .fanganpingjiatitle, .Client h3 { font-size: 18px !important; }

    /* 底部 */
    .footer, .foot { width: 100% !important; padding: 15px 10px; text-align: center; }
    .foot ul li { float: none !important; width: 100% !important; text-align: center; margin-bottom: 14px; }
    .footer span { float: none; display: block; }

    /* 表单与表格 */
    input[type="text"], input[type="password"], input[type="tel"], input[type="email"], textarea, select {
        width: 100% !important; max-width: 100% !important;
    }
    table { display: block; width: 100% !important; overflow-x: auto; }

    /* ===== 手机专用 Banner：4:3 竖版新设计（1200x900），整图完整显示 ===== */
    .bannerBox { padding-top: 75% !important; }
    #flashbg0, #flashbg1, #flashbg2 {
        background-image: url(/Public/default/images/banner_m_2026.jpg) !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}

/* ---------- 4. <= 480px：小屏进一步压缩 ---------- */
@media screen and (max-width: 480px) {
    .hd_logo img { max-width: 160px; }
    .headerh1 { font-size: 14px !important; }
    h1 { font-size: 20px !important; }
    h2 { font-size: 18px !important; }
    #jsddm li a { padding: 11px 14px !important; font-size: 15px; }
    [style*="height:500px"] { height: 140px !important; }
    .shuzi li, .kunrao .kunrao_list { margin-bottom: 10px; }
}
