/* ==========================================================
   湘南食为天 移动端适配补丁  v2
   只作用于屏宽 <= 820px，桌面端完全不受影响
   全部为"追加覆盖"，删除本文件即完全恢复原样
   ========================================================== */
@media screen and (max-width: 820px) {

  /* ---------- 0. 基础 ---------- */
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
  }
  * { box-sizing: border-box; }
  /* 关键：任何 div 都不允许超出父级宽度，一次性压掉站点里所有 1200px 定宽 */
  div { max-width: 100% !important; }
  img, video, iframe, embed, object {
    max-width: 100% !important;
    height: auto !important;
  }

  /* ---------- 1. 头部 ---------- */
  .header_global { display: none !important; }          /* 顶部问候条 */
  .headernew { padding: 8px 0 !important; height: auto !important; }
  .header_logo, .header_logo a {
    float: none !important; width: auto !important; height: auto !important;
    text-align: center !important; display: block !important;
  }
  .header_logo img { max-height: 64px !important; width: auto !important; }

  /* ---------- 2. 主导航：换行居中，去掉大块色块 ---------- */
  #xiangmu { display: none !important; }                /* “技术分类”桌面下拉入口 */
  .header_dhang, .header_dhang_style { height: auto !important; }
  .header_dhang_style { padding: 0 6px !important; }
  .header_dhang_ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    height: auto !important;
    width: 100% !important;
  }
  .header_dhang_ul li {
    float: none !important;
    flex: 0 0 auto !important;
    background: none !important;
    border: 0 !important;
    padding: 4px 12px !important;
    height: auto !important;
    line-height: 26px !important;
  }
  .header_dhang_ul li a { font-size: 15px !important; line-height: 26px !important; color: #fff !important; }
  .acenter_left_shidian { display: none !important; }   /* 二级大菜单 */

  /* ---------- 3. 首屏轮播（JS 插件，用绝对定位锁定高度） ---------- */
  .fullSlide {
    height: 0 !important;
    padding-bottom: 30% !important;                       /* 390 宽 → 约 117px 高，接近原图比例 */
    position: relative !important;
    overflow: hidden !important;
  }
  .fullSlide .bd,
  .fullSlide .bd ul {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
  }
  .fullSlide .bd li {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    padding: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
  .fullSlide .hd { display: none !important; }

  /* ---------- 4. 课程区 ---------- */
  ._content7_1 {
    font-size: 16px !important; line-height: 1.5 !important;
    padding: 10px 0 !important; height: auto !important; background: none !important;
  }
  ._content7_1 span { display: block !important; padding: 4px 0 0 0 !important; font-size: 12px !important; }
  ._content7_1 .link { float: none !important; height: auto !important; line-height: 24px !important; padding: 6px 0 0 0 !important; }

  ._content7_2_left {
    width: 100% !important; float: none !important;
    display: flex !important; flex-wrap: wrap !important;
    padding: 6px 8px !important;
  }
  ._content7_2_left h4 {
    width: auto !important; height: auto !important; line-height: 28px !important;
    text-indent: 0 !important; margin: 3px !important; padding: 0 10px !important;
    border: 1px solid #ddd !important; border-radius: 3px !important;
    font-size: 13px !important; background: #f6f6f6 !important;
  }
  ._content7_2_left h4 a { height: auto !important; line-height: 28px !important; font-size: 13px !important; }
  ._content7_2_left .hk_On { background: #cc0001 !important; border-color: #cc0001 !important; }
  ._content7_2_left .hk_On a { color: #fff !important; }

  ._content7_2_right {
    width: 100% !important; float: none !important;
    padding: 0 !important; overflow: visible !important;
  }

  /* ---------- 5. 课程卡片：统一两列、统一图高 ---------- */
  .kc_list {
    width: calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    height: auto !important;
    min-height: 0 !important;
    float: left !important;
    margin: 4px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.12) !important;
  }
  .kc_img { width: 100% !important; height: 130px !important; overflow: hidden !important; }
  .kc_img a { display: block !important; width: 100% !important; height: 100% !important; }
  .kc_img img, .kc_img a img {
    width: 100% !important; height: 130px !important;
    object-fit: cover !important; display: block !important;
  }
  .kc_words {
    position: static !important; width: 100% !important;
    height: auto !important; padding: 6px 8px 8px !important; bottom: auto !important;
  }
  .kc_words h5 { margin: 0 0 2px !important; height: 22px !important; overflow: hidden !important; }
  .kc_words h5 a { font-size: 13px !important; line-height: 22px !important; white-space: nowrap !important; }
  .kc_words p { font-size: 12px !important; line-height: 18px !important; margin: 0 0 4px !important; }
  .kc_words h6 { margin: 0 !important; height: auto !important; }
  .kc_words h6 a {
    float: left !important; width: 50% !important; height: 26px !important;
    line-height: 26px !important; font-size: 12px !important; text-align: center !important;
  }

  /* ---------- 6. 关于我们 / 学员风采 ---------- */
  ._content2_2_left, ._content2_2_right {
    width: 100% !important; float: none !important;
    padding: 0 !important; overflow: visible !important;
  }
  #_content2_2_right_img .kc_list {
    width: calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    margin: 4px !important;
    height: auto !important;
  }

  /* ---------- 7. 底部三块竖排 ---------- */
  .index_content_top_baoxi,
  .index_content_top_xinwen,
  .index_content_top_shipin {
    width: 100% !important; float: none !important;
    height: auto !important; margin-bottom: 12px !important;
  }
  .index_content_top_shipin_1 img,
  .index_content_top_baoxi_1 img { height: auto !important; }
  .index_content_top_xinwen ul li { height: auto !important; line-height: 24px !important; padding: 6px 0 !important; }
  .index_content_top_xinwen ul li a { display: block !important; width: 78% !important; font-size: 13px !important; }
  .index_content_top_xinwen ul li span { float: right !important; font-size: 12px !important; }

  /* ---------- 8. 关于我们四宫格 ---------- */
  .group_pro { width: 100% !important; }
  .group_pro li { width: 100% !important; height: auto !important; float: none !important; }
  .group_pro li.colspan { width: 100% !important; }
  .group_pro .img { width: 100% !important; height: auto !important; }
  .group_pro .text { width: 100% !important; height: auto !important; padding: 14px 12px !important; }
  .group_pro .h400 { height: auto !important; max-height: none !important; overflow: visible !important; font-size: 13px !important; line-height: 22px !important; }

  /* ---------- 9. 页脚 ---------- */
  .footer_banner { display: none !important; }          /* 巨大电话号码条，手机上无意义且撑破布局 */
  .footer { height: auto !important; padding: 12px 10px !important; text-align: center !important; }
  .footer_logo { float: none !important; text-align: center !important; }
  .footer p, .footer .adress, .footer .tell,
  .footer p *, .footer_con p {
    float: none !important; text-align: center !important;
    white-space: normal !important; word-break: break-all !important;
    font-size: 13px !important; line-height: 22px !important;
  }
  .footer .main_center, .footer_con .main_center { padding: 0 4px !important; }
  .footer .fl, .footer .fr { float: none !important; width: 100% !important; }
  .footer_top_1, .footer_2_style, .footer_3 { width: 100% !important; height: auto !important; padding: 10px !important; }
  .footer_2 dl { float: none !important; width: 100% !important; height: auto !important; margin: 0 0 10px !important; border: 0 !important; }
  .footer_top_1_bd li { float: none !important; display: inline-block !important; padding: 0 10px !important; }

  /* ---------- 10. 正文通用 ---------- */
  h1 { font-size: 20px !important; line-height: 1.4 !important; }
  h2 { font-size: 18px !important; }
  h3 { font-size: 16px !important; }
  p, li, h1, h2, h3, h4, h5 { word-wrap: break-word; }
  table { width: 100% !important; max-width: 100% !important; }

  /* ---------- 11. 栏目页 / 详情页 ---------- */
  /* 栏目页顶部的横向滚动图片条（1200px 定宽表格），手机上直接隐藏 */
  #demo, #demo1 { display: none !important; height: 0 !important; }
  #Bodyer_csindex_mright, #Bodyer_cproduct_index { width: 100% !important; }

  /* 左侧分类栏 + 热门推荐：整宽、两列 */
  .xm_content2_1, .xm_content2_1_dl, .xm_content2_1_dl2 {
    width: 100% !important; float: none !important;
  }
  .xm_content2_1_dl dt, .xm_content2_1_dl2 dt {
    width: 100% !important; height: auto !important; line-height: 36px !important;
    font-size: 16px !important;
  }
  .xm_content2_1_dl dd, .xm_content2_1_dl2 dd {
    width: 48% !important; float: left !important; height: auto !important;
    margin: 1% !important; font-size: 13px !important; line-height: 26px !important;
  }
  .xm_content2_1_dl dd a, .xm_content2_1_dl2 dd a { width: 100% !important; height: auto !important; }
  .xm_content2_1_dl2 dd img { width: 100% !important; height: auto !important; display: block; }
  .xm_content2_2, .xm_content2_3 { width: 100% !important; float: none !important; }
  .xm_content2_3 { height: auto !important; }
  ._content2_3_left { width: 100% !important; float: none !important; height: auto !important; line-height: 36px !important; }
  ._content2_3_right { width: 100% !important; float: none !important; height: auto !important; line-height: 22px !important; font-size: 13px !important; }

  /* 详情页 */
  .zixun_js { display: none !important; }               /* 右侧浮动客服卡，会盖住正文 */
  .center_js, .left_js, .left_js_1, .right_js { width: 100% !important; float: none !important; }
  .caipin_js { width: 100% !important; height: auto !important; overflow: visible !important; }
  .caipin_js img { width: 100% !important; height: auto !important; }
  .biaoti_js h1 { font-size: 19px !important; }
  .jishao_js_1 { height: auto !important; line-height: 24px !important; font-size: 13px !important; }
  .jishao_js_2 { display: flex !important; flex-wrap: wrap !important; height: auto !important; padding: 6px 0 !important; }
  .jishao_js_2 .spantitle { width: 100% !important; margin: 0 0 4px !important; font-size: 13px !important; }
  .jishao_js_2 span {
    display: inline-block !important; float: none !important;
    width: auto !important; max-width: 100% !important; height: 24px !important;
    line-height: 24px !important; padding: 0 8px !important; margin: 3px !important;
    font-size: 12px !important; background-size: 100% 100% !important;
  }
  .jishao_js_6 { width: 100% !important; display: flex !important; height: 40px !important; }
  .jishao_js_6 span { flex: 1 1 auto !important; width: auto !important; height: 40px !important; line-height: 40px !important; font-size: 15px !important; background-size: 100% 100% !important; }
  .jishao_js_6 span.jishao_js_6_span2 { flex: 0 0 40% !important; text-align: center !important; }

  /* 详情正文图片、段落 */
  .content_js, .neirong_js, .article_content { width: 100% !important; }
  .content_js img, .neirong_js img, .article_content img { max-width: 100% !important; height: auto !important; }
  .content_js p, .neirong_js p { font-size: 15px !important; line-height: 1.8 !important; }
}
/* ---------- 12. 内页小结构修补 ---------- */
@media screen and (max-width: 820px) {
  .left_js_2 { width: 100% !important; height: auto !important; }
  .left_js_2 h2 { width: 100% !important; height: auto !important; line-height: 40px !important; }
  .left_js_h2_span { display: inline-block !important; width: auto !important; height: auto !important; padding: 0 14px !important; font-size: 18px !important; line-height: 40px !important; background: #cc0001 !important; color: #fff !important; border-radius: 3px !important; }
  .left_js_newstext { width: 100% !important; padding: 0 6px !important; }
  .left_js_newstext img { max-width: 100% !important; height: auto !important; }
  .left_js_newstext p, .left_js_newstext span { font-size: 15px !important; line-height: 1.8 !important; }
  .left_js_newstext table { width: 100% !important; }
  .left_js_newstext table td { display: block !important; width: 100% !important; }
}

/* ---------- 13. 通用宽度上限（兜底） ---------- */
@media screen and (max-width: 820px) {
  section, article, main, p, ul, ol, dl, dd, dt,
  h1, h2, h3, h4, h5, h6, table, tbody, tr, td {
    max-width: 100% !important;
  }
  ul, ol { padding-left: 18px !important; }
  p { font-size: 14px !important; line-height: 1.75 !important; }
}

/* ---------- 14. 单页/旧版模板（dedecms 结构） ---------- */
@media screen and (max-width: 820px) {
  .w960 { width: 100% !important; padding: 0 8px !important; }
  .pleft, .pright { width: 100% !important; float: none !important; }
  .place { width: 100% !important; height: auto !important; line-height: 24px !important; font-size: 13px !important; }
  .viewbox { width: 100% !important; }
  .viewbox .title { width: 100% !important; height: auto !important; padding: 8px 0 !important; }
  .viewbox .title h2 { font-size: 20px !important; line-height: 1.4 !important; }
  .viewbox .content { width: 100% !important; padding: 0 !important; font-size: 15px !important; line-height: 1.8 !important; }
  .viewbox .content div, .viewbox .content p, .viewbox .content span,
  .viewbox .content h1, .viewbox .content h2, .viewbox .content h3 {
    margin-left: 0 !important; margin-right: 0 !important;
    float: none !important; left: auto !important; right: auto !important;
  }
  .viewbox .content img { max-width: 100% !important; height: auto !important; }
  .viewbox .content table { width: 100% !important; }
  .viewbox .content td, .viewbox .content th { display: block !important; width: 100% !important; }
}

/* ---------- 15. 关于我们单页（.about / .part_block） ---------- */
@media screen and (max-width: 820px) {
  .about, .about .title_msg, .about ul, .about li.part_block, .about .part_block {
    width: 100% !important; float: none !important;
    margin: 0 !important; padding: 0 6px !important;
    height: auto !important; overflow: visible !important;
  }
  .about .msg_left, .about .msg_right { width: 100% !important; float: none !important; }
  .col_h1 { font-size: 22px !important; line-height: 1.3 !important; }
  .about .title_msg p { font-size: 13px !important; line-height: 1.6 !important; }
  .about .image, .about .part_block .image {
    width: 100% !important; float: none !important; height: auto !important; text-align: center !important;
  }
  .about .image img { width: 100% !important; max-width: 100% !important; height: auto !important; }
  .about .text, .about .part_block .text,
  .about .test, .about .part_block .test {
    width: 100% !important; float: none !important; padding: 10px 6px !important; height: auto !important;
  }
  .about li.ou, .about li.oe, .about li.part_block { float: none !important; width: 100% !important; margin: 0 0 18px !important; display: block !important; }
  .about .test h3 { font-size: 16px !important; line-height: 1.6 !important; }
  .about .test strong { font-size: 19px !important; display: block !important; margin: 4px 0 8px !important; }
  .about .test p, .about .test span { font-size: 14px !important; line-height: 1.8 !important; }
  .about .text p, .about .text span, .about .text div { font-size: 14px !important; line-height: 1.8 !important; }
  .about h2, .about h3 { font-size: 19px !important; }
}

/* ---------- 16. 关于我们 交错排布复位 ---------- */
@media screen and (max-width: 820px) {
  .about li.part_block, .about li.ou, .about li.oe {
    left: auto !important; right: auto !important;
    margin-left: 0 !important; margin-right: 0 !important;
    padding-left: 0 !important; padding-right: 0 !important;
    text-align: left !important; clear: both !important;
    transform: none !important;
  }
  .about li .image, .about li .test { left: auto !important; right: auto !important; transform: none !important; }
  .about li .test { text-align: left !important; }
}

/* ---------- 17. 关于我们：彻底拉平为单列（该页原为左右交错图文） ---------- */
@media screen and (max-width: 820px) {
  .about, .about * {
    float: none !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    left: auto !important; right: auto !important; top: auto !important;
    transform: none !important;
    background: none !important;
  }
  .about { padding: 0 8px 10px !important; }
  .about img { width: 100% !important; height: auto !important; display: block; margin: 8px 0 !important; }
  .about h1, .about .col_h1 { font-size: 22px !important; line-height: 1.4 !important; margin-bottom: 6px !important; }
  .about .title_msg p { font-size: 13px !important; color: #888 !important; }
  .about h3 { font-size: 15px !important; color: #c00 !important; margin-top: 14px !important; }
  .about strong { display: block !important; font-size: 20px !important; margin: 4px 0 8px !important; }
  .about p, .about span, .about div { font-size: 14px !important; line-height: 1.8 !important; color: #444 !important; }
  .about li { margin-bottom: 18px !important; }
}

/* ---------- 18. 面包屑去重 ---------- */
@media screen and (max-width: 820px) {
  .nav_title p span { display: none !important; }
  .nav_title { height: auto !important; line-height: 26px !important; padding: 0 8px !important; }
  .nav_title p { font-size: 13px !important; }
}

/* ---------- 19. 详情页电话条 ---------- */
@media screen and (max-width: 820px) {
  .jishao_js_6 { background: #f7f7f7 !important; border: 1px solid #eee !important; border-radius: 4px !important; }
  .jishao_js_6 span {
    background: none !important; background-image: none !important;
    color: #c00 !important; font-size: 16px !important; font-weight: bold !important;
    text-align: center !important; padding: 0 !important;
  }
  .jishao_js_6 span.jishao_js_6_span1::before { content: "咨询电话："; font-size: 13px; color: #666; font-weight: normal; }
  .jishao_js_6 span.jishao_js_6_span2, .jishao_js_6 span.jishao_js_6_span2 a { color: #c00 !important; background: #ffe9e9 !important; }
}

/* ---------- 20. 课程标签区左右留白 ---------- */
@media screen and (max-width: 820px) {
  .content_content7 { padding: 0 8px !important; overflow: hidden !important; }
}

/* ==========================================================
   全局小修补（不限于手机，桌面同样生效）
   1) 关于我们页 "学校文化""学校优势" 两张图已 404，隐藏掉，避免显示破图
   2) 详情页主图容器的灰色底和描边（大图下方那条灰带）
   ========================================================== */
img[alt="学校文化"], img[alt="学校优势"] { display: none !important; }

.caipin_js {
  background: none !important;
  border: 0 !important;
  line-height: 0 !important;
}
.caipin_js img { display: block !important; }

/* ---------- 21. 详情页白卡塌陷修正（浮动未清除导致背景露灰） ---------- */
@media screen and (max-width: 820px) {
  .left_js_1, .center_js {
    overflow: hidden !important;
    height: auto !important;
    float: none !important;
    background: #fff !important;
  }
  .left_js_1::after { content: ""; display: block; clear: both; }
  .caipin_js { float: none !important; margin: 0 0 8px !important; }
  .biaoti_js {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
