/* ===================================================================
   mobile-responsive.css
   深度IT教育 - 全内页手机版自适应样式
   不改动电脑版样式，仅在移动端（<=768px）和平板端（<=1024px）生效
   =================================================================== */

/* ===================================================================
   一、平板适配 (max-width: 1024px)
   =================================================================== */
@media screen and (max-width: 1024px) {

  /* ---- 全局固定宽度解除 ---- */
  body { min-width: 100% !important; }
  .container { min-width: 100% !important; max-width: 100% !important; width: 100% !important; }
  .panel { width: 100% !important; max-width: 100% !important; box-sizing: border-box; padding: 0 15px; }
  .frame { width: 100% !important; }
  .newUI-body { min-width: 100% !important; max-width: 100% !important; }
  .common-header { min-width: 100% !important; max-width: 100% !important; height: auto !important; }
  .header-logoData { width: 100% !important; position: relative !important; left: 0 !important; margin-left: 0 !important; padding: 15px !important; }
  .header-nav { width: 100% !important; position: relative !important; left: 0 !important; margin-left: 0 !important; top: 0 !important; }
  .flex-header, .flex-footer { width: 100% !important; }

  /* ---- 导航栏 ---- */
  .topbox { width: 100% !important; box-sizing: border-box; padding: 10px 15px !important; }
  .topbox img { max-width: 180px; height: auto; }
  .topbox .z_header_nav { float: none !important; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .topbox .z_header_nav ul { white-space: nowrap; display: inline-flex; flex-wrap: nowrap; }
  .topbox .z_header_nav ul li { width: auto !important; padding: 0 15px; white-space: nowrap; }

  /* ---- 通用图片自适应 ---- */
  img { max-width: 100%; height: auto; }

  /* ---- lay 内部容器 ---- */
  .lay .inner { width: 100% !important; box-sizing: border-box; padding: 0 15px; }
  .lay_4 .inner { width: 100% !important; box-sizing: border-box; padding: 0 15px; }

  /* ---- Bootstrap 行覆盖 ---- */
  .row { margin-left: -10px; margin-right: -10px; }
  [class*="col-"] { padding-left: 10px; padding-right: 10px; }

  /* ---- 侧边栏隐藏 ---- */
  #side-bar { display: none !important; }
}


/* ===================================================================
   二、手机适配 (max-width: 768px)
   =================================================================== */
@media screen and (max-width: 768px) {

  /* ============================== */
  /* 1. 全局重置                    */
  /* ============================== */
  body {
    min-width: 100% !important;
    font-size: 14px;
    overflow-x: hidden;
  }
  .container {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden;
  }
  .panel {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0 12px;
  }
  .frame { width: 100% !important; }
  .center.frame { padding-bottom: 10px; }
  .newUI-body { min-width: 100% !important; max-width: 100% !important; }
  .flex-header, .flex-footer { width: 100% !important; }
  .common-header { min-width: 100% !important; max-width: 100% !important; height: auto !important; }
  .header-logoData {
    width: 100% !important; position: relative !important;
    left: 0 !important; top: 0 !important; margin-left: 0 !important;
    padding: 10px 15px !important; height: auto !important;
  }
  .header-nav {
    width: 100% !important; position: relative !important;
    left: 0 !important; top: 0 !important; margin-left: 0 !important;
    height: auto !important;
  }
  .header-logo { width: 120px; height: auto; }
  .nav-left { width: auto !important; }
  .nav-center { padding: 0 10px !important; }
  .nav-ul { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .nav-li { float: none !important; display: inline-block; margin-right: 20px !important; }

  /* ============================== */
  /* 2. 导航栏 .topbox               */
  /* ============================== */
  .topbox {
    width: 100% !important;
    box-sizing: border-box;
    padding: 8px 12px !important;
    overflow: hidden;
  }
  .topbox img {
    float: none !important;
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  .topbox .logobox {
    text-align: center;
    margin-bottom: 5px;
  }
  .topbox .z_header_nav {
    float: none !important;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .topbox .z_header_nav ul {
    white-space: nowrap;
    display: inline-flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .topbox .z_header_nav ul li {
    float: none !important;
    width: auto !important;
    padding: 0 12px;
    font-size: 15px;
    line-height: 42px;
    white-space: nowrap;
    display: inline-block;
  }
  .topbox .z_header_nav ul li a { font-size: 15px; }

  /* ============================== */
  /* 3. 通用图片自适应              */
  /* ============================== */
  img {
    max-width: 100%;
    height: auto;
  }
  .container img,
  .panel img {
    max-width: 100%;
    height: auto;
  }

  /* ============================== */
  /* 4. Bootstrap 栅格              */
  /* ============================== */
  .row { margin-left: -8px; margin-right: -8px; }
  [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }
  .service .post {
    width: 100% !important;
    margin-bottom: 15px;
  }

  /* ============================== */
  /* 5. 侧边栏 & 面包屑             */
  /* ============================== */
  #side-bar { display: none !important; }
  .breadcrumb-nav {
    max-width: 100% !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }

  /* ============================== */
  /* 6. lay 通用容器                */
  /* ============================== */
  .lay .inner { width: 100% !important; box-sizing: border-box; padding: 0 12px; }
  .lay_4 .inner { width: 100% !important; box-sizing: border-box; padding: 0 12px; }

  /* ============================== */
  /* 7. flex-box 布局修正           */
  /* ============================== */
  .flex-box {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* ============================== */
  /* 8. banner 区域                 */
  /* ============================== */
  .container#banner {
    height: 200px !important;
    background-size: cover !important;
    background-position: center !important;
  }
  .container#banner a {
    height: 200px !important;
  }
  .container#banner .panel img {
    max-width: 90%;
    height: auto;
  }

  /* ============================== */
  /* ===== 页面特定样式 =====       */
  /* ============================== */

  /* ---- 8.1 java.html ---- */
  #salaries .swiper-slide { flex-wrap: wrap; }
  #salaries .swiper-slide .wrapper {
    width: 45%;
    margin: 5px;
  }
  #salaries .swiper-slide .wrapper img { max-width: 100%; height: auto; }
  #apps .content { flex-wrap: wrap; }
  #apps .wrapper {
    width: 100% !important;
    margin-bottom: 15px;
  }
  #apps .flip-card {
    width: 100% !important;
    margin-bottom: 15px;
  }
  #diagram .content { flex-wrap: wrap; }
  #diagram .wrapper {
    width: 100% !important;
    margin-bottom: 15px;
  }
  #diagram #tagcloud { width: 100% !important; height: 300px !important; }
  #free .panel { padding: 0 12px; }
  #stages .content { flex-wrap: wrap; }
  #stages .wrapper {
    width: 100% !important;
    margin-bottom: 15px;
  }
  #management .content { flex-wrap: wrap; }
  #management .wrapper {
    width: 100% !important;
    margin-bottom: 15px;
  }
  #services .content { flex-wrap: wrap; }
  #services .wrapper {
    width: 100% !important;
    margin-bottom: 15px;
  }

  /* ---- 8.2 python.html ---- */
  #intro .panel { flex-wrap: wrap; }
  #intro .panel .picture {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 15px;
  }
  #intro .panel .text-wrapper {
    width: 100% !important;
    padding: 0 10px;
    box-sizing: border-box;
  }
  #intro .panel .description { font-size: 14px; line-height: 1.8; }
  #bars .content.flex-box { flex-wrap: wrap; }
  #bars .content .wrapper {
    width: 100% !important;
    margin-bottom: 20px;
  }
  #bars .content .wrapper img.bar { max-width: 100%; height: auto; }
  #education .content.flex-box { flex-wrap: wrap; }
  #education .content .wrapper {
    width: 100% !important;
    margin-bottom: 20px;
    padding: 0 10px;
    box-sizing: border-box;
  }
  #salaries .bars.flex-box { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 10px 0; }
  #salaries .bars .bar { min-width: 60px; }
  #salaries img.average { max-width: 100%; height: auto; }
  #stages .content { flex-wrap: wrap; }
  #stages .content .wrapper {
    width: 100% !important;
    margin-bottom: 15px;
  }
  #services .content { flex-wrap: wrap; }
  #services .wrapper {
    width: 100% !important;
    margin-bottom: 15px;
  }
  #FAQ .content { flex-wrap: wrap; }
  #FAQ .wrapper {
    width: 100% !important;
    margin-bottom: 10px;
  }

  /* ---- 8.3 ui.html ---- */
  .newUI-body { min-width: 100% !important; max-width: 100% !important; }
  .flex-content { width: 100% !important; }
  .newUI-contain { width: 100% !important; }
  .contain-model1, .contain-model2, .contain-model3,
  .contain-model4, .contain-model8, .contain-model9, .contain-model10 {
    width: 100% !important;
    box-sizing: border-box;
    padding: 30px 12px !important;
  }
  .contain-model1-content { padding-top: 20px !important; }
  .contain-content-list {
    width: 100% !important;
    display: block !important;
    padding-right: 0 !important;
    margin-bottom: 20px !important;
  }
  .contain-content-list:nth-of-type(n+3) { margin-bottom: 20px !important; }
  .content-list-child {
    width: 100% !important;
    height: auto !important;
    padding: 15px !important;
    box-sizing: border-box;
  }
  .list-child-left { width: 80px !important; flex-shrink: 0; }
  .list-child-left img { max-width: 60px; height: auto; }
  .list-child-right { flex: 1; }
  .right-title { font-size: 16px !important; }
  .right-text { font-size: 13px !important; }

  /* contain-model2 市场需求 */
  .contain-model2-content { width: 100% !important; }
  .contain-model2-list {
    width: 100% !important;
    display: block !important;
    margin-bottom: 20px !important;
  }

  /* contain-model3 课程阶段 */
  .contain-model3-content { width: 100% !important; }
  .contain-model3-list {
    width: 100% !important;
    display: block !important;
    margin-bottom: 20px !important;
  }

  /* contain-model4 设计方法论 */
  .contain-model4-content { width: 100% !important; }
  .contain-model4-list {
    width: 100% !important;
    display: block !important;
    margin-bottom: 20px !important;
  }

  /* contain-model8 学习管理 */
  .contain-model8-content { width: 100% !important; }
  .contain-model8-list {
    width: 48% !important;
    display: inline-block !important;
    margin-bottom: 15px !important;
    box-sizing: border-box;
  }

  /* contain-model9 FAQ */
  .contain-model9-content { width: 100% !important; }
  .contain-model9-list {
    width: 100% !important;
    display: block !important;
    margin-bottom: 15px !important;
  }

  /* contain-model10 增值服务 */
  .contain-model10-content { width: 100% !important; }
  .contain-model10-list {
    width: 48% !important;
    display: inline-block !important;
    margin-bottom: 15px !important;
    box-sizing: border-box;
  }

  /* ---- 8.4 rjkf.html ---- */
  .breadcrumb-nav {
    max-width: 100% !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
  .wbanner { width: 100% !important; padding: 10px 0 !important; }
  .wbanner .container { width: 100% !important; }
  .wban-l { float: none !important; width: 100% !important; }
  .wban-r { float: none !important; width: 100% !important; }
  .wban-text-block { width: 100% !important; margin-left: 0 !important; padding: 0 12px; box-sizing: border-box; }
  .wban-text1, .wban-text2 { width: 100% !important; }
  .wban-text img { width: 100%; }
  .wban-cercle { width: 100% !important; height: auto !important; margin: 20px 0 !important; }
  .wban-cercle span {
    position: relative !important;
    display: inline-block !important;
    width: 30% !important;
    height: auto !important;
    padding: 15px 5px;
    margin: 2px;
    box-sizing: border-box;
  }
  .wbanc1, .wbanc2, .wbanc3, .wbanc4, .wbanc5, .wbanc6 {
    position: relative !important;
    width: 30% !important;
    height: auto !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    left: 0 !important;
    top: 0 !important;
  }

  /* rjkf retail 痛点 */
  .retail { width: 100% !important; box-sizing: border-box; padding: 0 12px; }
  .retail .retail-item,
  .retail .item,
  .retail li {
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin-bottom: 15px;
  }

  /* rjkf xcx-hyk 适用行业 */
  .xcx-hyk { width: 100% !important; box-sizing: border-box; padding: 0 12px; }
  .xcx-hyk .hyk-item,
  .xcx-hyk li,
  .xcx-hyk .item {
    width: 48% !important;
    float: left !important;
    margin-bottom: 10px;
    box-sizing: border-box;
  }

  /* rjkf choose 选择理由 */
  .choose { width: 100% !important; box-sizing: border-box; padding: 0 12px; }
  .choose .choose-item,
  .choose li,
  .choose .item {
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin-bottom: 15px;
  }

  /* ---- 8.5 h5.html ---- */
  /* h5 页面 qf-2018-html5.css 已有 @media(max-width:768px) 支持 */
  /* 补充一些遗漏的样式 */
  .flex-header { width: 100% !important; height: auto !important; }
  .flex-footer { width: 100% !important; height: auto !important; }
  .frontEndModel1-container { width: 100% !important; }
  .frontEndModel2-container { width: 100% !important; }
  .frontEndModel3-content { width: 100% !important; }
  .frontEndModel4-content { width: 100% !important; }
  .frontEndModel4-content-list { width: 100% !important; }

  /* ---- 8.6 aigc.html ---- */
  /* aigc 使用 Bootstrap grid，已有响应式支持 */
  .service .post { width: 100% !important; }
  .frontEndModel2-control-array img { max-width: 100%; height: auto; }
  .frontEndModel2-control-array { width: 100%; }
  .frontEndModel2-control-list {
    width: 100% !important;
    margin-bottom: 15px;
  }

  /* ---- 8.7 shipin.html ---- */
  /* shipin 使用 Bootstrap grid + shipin.css，已有部分响应式支持 */
  .service .post { width: 100% !important; }
  #xinzi { width: 100% !important; box-sizing: border-box; padding: 0 12px; }
  #xinzi img { max-width: 100%; height: auto; }
  .lay .inner { width: 100% !important; }
  .lay_2 .inner, .lay_4 .inner { width: 100% !important; }

  /* ---- 8.8 agent.html ---- */
  /* agent 已有内联 @media(max-width:768px) 支持，仅补充遗漏项 */
  .agent-page { overflow-x: hidden; }
  #matrixCanvas { display: none; }

  /* ---- 8.9 aiduanju.html ---- */
  /* aiduanju 已有内联 @media(max-width:768px) 支持，仅补充遗漏项 */
  .film-page { overflow-x: hidden; }
  .film-grain { display: none; }

  /* ---- 8.10 airuanjian.html ---- */
  /* airuanjian 已有内联 @media(max-width:768px) 支持，仅补充遗漏项 */
  .saas-page { overflow-x: hidden; }
  .saas-bg-shapes { display: none; }

  /* ============================== */
  /* 9. 通用工具样式                */
  /* ============================== */
  /* 隐藏桌面端专用元素 */
  .desktop-only { display: none !important; }

  /* 浮动清除 */
  .fl { float: none !important; }
  .fr { float: none !important; }

  /* 内边距修正 */
  .center.frame { padding-bottom: 15px; }
  .center.frame .panel { margin-top: 15px !important; }

  /* 标题文字缩小 */
  .center.frame .panel .title-bar .text { font-size: 18px; }

  /* swiper 容器自适应（不覆盖 slide 宽度，由 Swiper JS 控制） */
  .swiper-container { width: 100% !important; }

  /* 表格自适应 */
  table { width: 100% !important; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* 视频自适应 */
  video, iframe { max-width: 100%; }

  /* 通用 section 间距（不使用 !important，避免覆盖已有样式） */
  section { padding: 20px 0; }

  /* 图片自适应 - 缩小不放大 */
  .container > img,
  .panel > img,
  .container img[width],
  .panel img[width] {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 标题图片居中全宽 */
  .container img[src*="title"],
  .panel img[src*="title"],
  .container img[src*="pretitle"],
  .panel img[src*="pretitle"],
  .container img[class*="title"],
  .panel img[class*="title"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* 保留小图标/二维码原始尺寸 */
  .container img[src*="icon"],
  .panel img[src*="icon"],
  img[src*="ewm"],
  img[src*="qr"],
  img[src*="logo"],
  .list-child-left img,
  .content-list-child img {
    width: auto !important;
    max-width: 120px;
  }
}


/* ===================================================================
   三、超小屏幕适配 (max-width: 480px)
   =================================================================== */
@media screen and (max-width: 480px) {
  /* 导航更紧凑 */
  .topbox .z_header_nav ul li {
    padding: 0 8px;
    font-size: 13px;
    line-height: 38px;
  }
  .topbox img { max-width: 120px; }

  /* 标题更小 */
  .center.frame .panel .title-bar .text { font-size: 16px; }

  /* 双列布局改单列 */
  .contain-model8-list,
  .contain-model10-list {
    width: 100% !important;
    display: block !important;
  }

  .xcx-hyk .hyk-item,
  .xcx-hyk li,
  .xcx-hyk .item {
    width: 100% !important;
  }

  /* swiper 每项更小 */
  #salaries .swiper-slide .wrapper {
    width: 100%;
    margin: 5px 0;
  }

  /* banner 更矮 */
  .container#banner {
    height: 150px !important;
  }
  .container#banner a {
    height: 150px !important;
  }
}
