/* PCB 官网移动端适配层：仅覆盖布局，不修改目标站原始 CSS */

/* 基础 */
html, body { max-width: 100%; overflow-x: hidden; background: #fff; }
img { max-width: 100%; }
.content { max-width: 1200px; width: 100%; box-sizing: border-box; }

.ty-banner-1 picture { display: block; width: 100%; }
.ty-banner-1 img { display: block; width: 100%; height: auto; }

/* 公司资质占位图（图片待补充） */
.qualification-placeholder {
    width: 253px; height: 176px; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    padding: 10px; background: #f5f6f7; border: 1px dashed #cfd4da;
    color: #9aa0a6; font-size: 14px; text-align: center; line-height: 1.6;
}
.qualification-detail-placeholder {
    min-height: 420px; box-sizing: border-box; padding: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #f7f8fa; border: 1px dashed #cfd4da;
    color: #9aa0a6; font-size: 16px; text-align: center;
}

/* 页头：logo + 标语 + 热线一行对齐，避免长标语换行压到导航 */
.header .t_con {
    display: flex; align-items: center; justify-content: space-between;
    height: auto !important; min-height: 120px; padding: 8px 0; box-sizing: border-box;
}
.header .t_logo { float: none; flex: 0 0 auto; order: 1; }
.header .t_text {
    float: none; flex: 1 1 auto; margin: 0 18px; padding-left: 18px;
    font-size: 24px; line-height: 34px; border-left: 1px solid #e0e0e0; order: 2;
}
.header .t_text span { display: block; font-size: 15px; line-height: 26px; }
.header .t_pho { float: none; flex: 0 0 auto; padding-left: 64px; padding-top: 0; background-position: 0 0; order: 3; }

/* 顶部导航：8 个一级栏目严格一行显示 */
.nav .content { padding-left: 0; padding-right: 0; }
.nav .content > ul > li { box-sizing: border-box; width: 16.6667%; float: left; }

/* 移动端导航按钮 */
.mobile-nav-toggle { display: none; }

@media (max-width: 1199px) {
    .content { max-width: 100%; }
    .header .t_con, .nav .content, .footer-bottom .content { padding-left: 15px; padding-right: 15px; }
}

@media (max-width: 991px) {
    /* 解除目标站桌面端最小宽度与固定宽度 */
    body { min-width: 0 !important; width: 100% !important; overflow-x: hidden !important; }
    html { overflow-x: hidden !important; }
    .banner, .case, .edge, .aboutbox, .part, .newbox, .case_c, .case_cl, .edge_w, .tempWrap {
        overflow: hidden !important;
    }
    .header, .footer, .blk-main, .part_c, .case_c, .case_cl dl, .case_cl dt img, .content {
        width: 100% !important; max-width: 100% !important; box-sizing: border-box;
    }

    /* 首页轮播 */
    .banner { height: 320px !important; overflow: hidden; }
    .qualification-placeholder { width: 100% !important; height: auto; aspect-ratio: 253 / 176; }
    .qualification-detail-placeholder { min-height: 260px; padding: 20px; }
    .ban_p, .ban_p ul, .ban_p li, .ban_p li a { width: 100% !important; height: 320px !important; }
    .ban_p li a { background-size: cover !important; background-position: center center !important; background-color: #0b1a2b; }
    /* 首页轮播移动端独立图：完整呈现主体，不裁切 */
    .banner .ban_p li:nth-child(1) a { background-image: url(/uploads/pcb/banner/ai/home-01-m.jpg) !important; }
    .banner .ban_p li:nth-child(2) a { background-image: url(/uploads/pcb/banner/ai/home-02-m.jpg) !important; }
    .banner .ban_p li:nth-child(3) a { background-image: url(/uploads/pcb/banner/ai/home-03-m.jpg) !important; }
    .banner .ban_p li:nth-child(4) a { background-image: url(/uploads/pcb/banner/ai/home-04-m.jpg) !important; }

    .ban_t { bottom: 8px; }
    .ban_txt_inner { max-width: calc(100% - 36px); }
    .ban_no { margin-bottom: 10px; padding: 4px 9px; font-size: 11px; }
    .ban_txt h2 { margin-bottom: 10px; font-size: clamp(24px, 4vw, 34px); letter-spacing: 0; }
    .ban_txt p {
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
        overflow: hidden; max-width: 94%; font-size: 13px; line-height: 1.8;
    }
    .ban_txt em { margin-top: 16px; padding: 9px 18px; font-size: 13px; }
    .case_cl dt img { height: auto !important; }
    .case_c, .case_cl dl { height: auto !important; }
    /* 顶部 */
    .h_top { height: auto !important; }
    .h_top .t_top { display: none; }
    .header { height: auto !important; background: #fff; }
    .header .t_con {
        display: flex; align-items: center; justify-content: center;
        height: auto; min-height: 72px; padding: 8px 12px; text-align: center;
    }
    .header .t_logo { float: none; display: block; }
    .header .t_logo img { max-height: 52px; width: auto; }
    .header .t_pho { display: none; }
    .header .t_text { display: none; }
    .header .t_con .t_logo { margin: 0 auto; }

    /* 四宫格优势 */
    .adss ul li { width: 50% !important; float: left; box-sizing: border-box; }
    .adss ul li img { max-width: 100%; height: auto; }

    /* 搜索条 */
    .seabox .content { padding: 0 10px; box-sizing: border-box; }
    .seabox .sea_inp { float: none; width: 100%; }
    .seabox .sea_inp form { display: flex; width: 100%; }
    .seabox .serach { flex: 1; width: auto !important; }
    .seabox .sub { flex: 0 0 46px; width: 46px; }

    /* 导航：汉堡菜单 */
    .nav { position: relative; }
    .nav .content { position: relative; }
    .mobile-nav-toggle {
        display: block; position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
        width: 42px; height: 38px; cursor: pointer; z-index: 20; background: transparent; border: 0;
    }
    .mobile-nav-toggle span {
        display: block; width: 24px; height: 2px; background: #fff; margin: 5px auto; transition: .25s;
    }
    .nav .content > ul {
        display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
        width: 100% !important; box-sizing: border-box;
        background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.12); max-height: 75vh; overflow-y: auto;
    }
    .nav.open .content > ul { display: block; }
    .nav .content > ul > li { display: block; width: 100% !important; height: auto !important; float: none !important; border-bottom: 1px solid #eee; }
    .nav .content > ul > li > a.big { display: block; padding: 12px 16px; font-size: 15px; color: #333; }
    .nav .content > ul > li > div {
        position: static !important; display: block !important; width: 100% !important;
        left: auto !important; top: auto !important; height: auto !important;
        padding: 0 16px 10px; background: transparent; box-shadow: none;
        box-sizing: border-box;
    }
    .nav .content > ul > li > div a {
        display: block !important; width: 100% !important; padding: 8px 0; font-size: 13px; color: #666; text-align: left;
        box-sizing: border-box;
    }
    .nav .content > ul > li.cur > a.big { color: #c00; }

    /* 内页 */
    .blk-main { padding: 0 15px; }
    .blk-xs, .blk-sm { float: none !important; width: 100% !important; }
    .blk-xs { margin-bottom: 18px; }
    .fdh-01-nav { display: flex; flex-wrap: wrap; gap: 6px; }
    .fdh-01-nav-one { width: auto; }
    .fdh-01-nav-one h3 { margin: 0; }
    .fdh-01-nav-one h3 a { display: block; padding: 6px 12px; background: #f5f5f5; border: 1px solid #e5e5e5; font-size: 13px; }
    .fdh-01-nav-one.sidenavcur h3 a { background: #0B63F6; border-color: #0B63F6; color: #fff; }
    .cl-cbgg-tys-02 { display: none; }
    .ty-banner-1 img { height: auto; }
    .p12-curmbs-1 { line-height: 1.8; padding: 10px 0; }

    /* 列表 */
    .p14-infolist-1-list dl { display: block; padding: 15px 0; }
    .p14-infolist-1-list dt { float: none; width: 100%; margin: 0 0 10px; }
    .p14-infolist-1-list dt img { width: 100%; height: auto; }
    .p14-infolist-1-list dd { margin: 0; }
    .p14-infolist-1-list h4 { font-size: 16px; line-height: 1.6; }

    /* 详情 */
    .zxxq-01-desc img { max-width: 100%; height: auto; }
    .zxxq-01-desc table { display: block; max-width: 100%; overflow-x: auto; }
    .zxxq-01-tit {
        height: auto !important; padding: 4px 6px 2px;
        font-size: 20px !important; line-height: 1.55 !important;
        white-space: normal !important; overflow: visible !important;
        text-overflow: clip !important;
    }

    /* 首页服务项目 */
    .probox .cate { display: flex; flex-wrap: wrap; gap: 6px; }
    .probox .cate a { margin: 0; padding: 6px 12px; }
    .prolist .pictureSet li { width: 50%; float: left; }
    .prolist .pictureSet li .item img { width: 100%; height: auto; }

    /* 首页案例 */
    .case .casetil ul { display: flex; flex-wrap: wrap; gap: 6px; }
    .case .case_cl .pictureSet li { width: 50%; float: left; }
    .case .case_cl .pictureSet li .item img { width: 100%; height: auto; }

    /* 核心优势 */
    .edge .edge_w dl { width: 50%; float: left; }
    .edge .edge_w dl img { max-width: 100%; }
    .edge_l { display: none; }

    /* 走进创一 */
    .aboutbox .about_l, .aboutbox .about_r { float: none; width: 100%; }
    .aboutbox .about_l img { width: 100%; height: auto; }
    .aboutbox .about_r { padding-left: 0; margin-top: 18px; }
    .part .part_cl ul li { width: 50% !important; }
    .part .part_cl ul li img { width: 100% !important; height: auto !important; }

    /* 新闻 */
    .newbox .new1, .newbox .new2 { float: none; width: 100%; }
    .newbox .new2 { margin-top: 20px; }
    .newbox .new_c .new_c1 dl { display: block; }
    .newbox .new_c .new_c1 dl dt img { width: 100%; height: auto; }

    /* 搜索条 */
    .seabox .k_word { display: none; }
    .seabox .sea_inp { float: none; width: 100%; }
    .seabox .sea_inp form { width: 100%; }
    .seabox .serach { width: 100% !important; box-sizing: border-box; }

    /* 页脚 */
    .footer-bottom .col-sm-5, .footer-bottom .col-sm-7,
    .footer-bottom .col-sm-6, .footer-bottom .col-md-6,
    .footer-bottom .col-md-4, .footer-bottom .col-md-3 { float: none; width: 100%; }
    .footer-bottom .col-xs-12 { margin-bottom: 16px; border-right: 0 !important; }

    /* 悬浮客服 */
    .nav_slide { display: none; }
}

@media (max-width: 767px) {
    .prolist .pictureSet li { width: 50%; }
    .edge .edge_w dl { width: 100%; }
    .case .casetil li { margin: 0; }
    .newbox .new_c .new_c1 > ul li { width: 100%; }
    .xgzx-pagin-01 dl dd { display: block; width: 100%; }
    .leaveword-form input, .leaveword-form textarea, .leaveword-form button { width: 100% !important; }
}

@media (max-width: 479px) {
    .prolist .pictureSet li, .case .case_cl .pictureSet li, .part .part_cl ul li { width: 100%; }
    .nav .content > ul > li > div a { width: 100%; }
    .header .t_logo img { max-height: 54px; }
}
