/* ============================================================
   Shanghai OSD 官网 — 移动端适配
   原站为 PC 固定 1200px 建站系统，此处做响应式重排
   ============================================================ */

/* ---------- 平板 / 小屏 PC ---------- */
@media screen and (max-width: 1240px) {
  html, body { width: 100% !important; overflow-x: hidden !important; }
  #wrapper { width: 100% !important; max-width: 100% !important; }
  .headerConArea, .headerCon, #navWrap, .nav-wrap,
  .bannerArea, .bannerCon, .ev-banner-module,
  #main_container, #add_container, .footer { width: 100% !important; max-width: 100% !important; }
}

/* ---------- 手机 ---------- */
@media screen and (max-width: 1024px) {

  html, body {
    width: 100% !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
  }
  #wrapper { width: 100% !important; max-width: 100% !important; }

  /* ========== 头部 ========== */
  .headerBg { display: none !important; }
  .headerConArea { height: 64px !important; }
  .headerCon { height: 64px !important; }

  #row_79 .CModulePA { height: 64px !important; }

  /* logo */
  #evMo_QSEHAa {
    position: absolute !important;
    left: 10px !important;
    top: 8px !important;
    width: 52px !important;
    height: 47px !important;
    z-index: 10 !important;
  }
  #evMo_QSEHAa img { width: 100% !important; height: auto !important; }

  /* 公司名 */
  #evMo_wL0EnI {
    position: absolute !important;
    left: 68px !important;
    top: 20px !important;
    width: 250px !important;
    height: 26px !important;
    z-index: 10 !important;
  }
  #evMo_wL0EnI .ev-module-text { transform: none !important; }
  #evMo_wL0EnI .ev-text-title-2 { text-align: left !important; }
  #evMo_wL0EnI span {
    font-size: 15px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
  }

  /* ========== 导航：汉堡菜单 ========== */
  .webNav {
    position: absolute !important;
    left: auto !important;
    right: 10px !important;
    top: 14px !important;
    width: auto !important;
    z-index: 999 !important;
  }
  .navInner { width: auto !important; }
  .nav { width: auto !important; }
  .nav .NLeft, .nav .NRight, .nav .NMainBg, .nav .NLine { display: none !important; }
  .nav .NCenter { width: auto !important; }
  .nav .NMain { display: none !important; }

  /* 汉堡按钮 */
  .osd-burger {
    display: flex !important;
    position: fixed !important;
    right: 10px !important;
    top: 14px !important;
    z-index: 1000 !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 36px;
    padding: 8px;
    box-sizing: border-box;
    cursor: pointer;
    background: #004F9F;
    border-radius: 3px;
  }
  .osd-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform .25s, opacity .25s;
  }
  .osd-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .osd-burger.is-open span:nth-child(2) { opacity: 0; }
  .osd-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 展开后的菜单面板 */
  .osd-mobile-menu {
    display: none;
    position: fixed;
    left: 0; right: 0; top: 64px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: #004F9F;
    z-index: 998;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
  }
  .osd-mobile-menu.is-open { display: block; }
  .osd-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .osd-mobile-menu > ul > li { border-bottom: 1px solid rgba(255,255,255,.15); }
  .osd-mobile-menu a {
    display: block;
    padding: 14px 20px;
    color: #fff !important;
    font-size: 15px;
    text-decoration: none;
    font-family: Tahoma, Arial, sans-serif;
  }
  .osd-mobile-menu .osd-sub { background: rgba(0,0,0,.15); }
  .osd-mobile-menu .osd-sub a { padding: 11px 20px 11px 38px; font-size: 14px; }
  .osd-mobile-menu .osd-sub a::before { content: "– "; opacity: .7; }

  /* ========== Banner ========== */
  .bannerArea { height: 46.67vw !important; min-height: 180px; }
  .bannerCon { height: 100% !important; }
  .ev-banner-module { height: 100% !important; }
  .ev-banner-inner { height: 100% !important; }
  .piclist-area { height: 100% !important; }
  .piclist-box { height: 100% !important; }
  .piclist-box .list-item { height: 100% !important; }
  .piclist-box .pic-item {
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
  }
  .ctrl-sidebar-area { bottom: 8px !important; }

  /* ========== 内容区通用 ========== */
  #main_container, #add_container { width: 100% !important; }
  .absoluteModuleInner, .absoluteModuleWrap, .headFullXY { width: 100% !important; }
  .customModuleRow { width: 100% !important; }
  .customModuleRowInner { width: 100% !important; }
  .CModulePA { width: 100% !important; height: auto !important; }

  /* ========== 内页通用：绝对定位模块 → 流式 ========== */
  .CModulePA > .customModule,
  .CModulePA > .ev-module-edit {
    position: static !important;
    left: auto !important; top: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 12px 0 !important;
    box-sizing: border-box;
  }
  .CModulePA > .customModule > div {
    width: 100% !important;
    height: auto !important;
  }
  /* 内页表格布局去边框 */
  .CModulePA > .customModule .MoT,
  .CModulePA > .customModule .MoB,
  .CModulePA > .customModule .MoL,
  .CModulePA > .customModule .MoR,
  .CModulePA > .customModule .MoTL,
  .CModulePA > .customModule .MoTR,
  .CModulePA > .customModule .MoBL,
  .CModulePA > .customModule .MoBR { display: none !important; }
  .CModulePA > .customModule table { width: 100% !important; }
  .CModulePA > .customModule .MoHeadM,
  .CModulePA > .customModule .MoBodyM { width: 100% !important; }
  /* 内页文字模块 */
  .CModulePA > .ev-module-edit .ev-module-text,
  .CModulePA > .ev-module-edit .ev-module-edit-box {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    left: auto !important; top: auto !important;
  }
  /* 内页图片自适应 */
  .CModulePA img { max-width: 100% !important; height: auto !important; }
  .CModulePA .ev-pic { width: auto !important; height: auto !important; }
  .CModulePA .ev-pic img { width: auto !important; height: auto !important; max-width: 100% !important; }
  /* 内联固定宽度的内容容器 */
  .CModulePA .MoBodyC,
  .CModulePA .MoHeadC,
  .CModulePA .pic-module {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  /* 图片容器（表格布局）限宽 */
  .CModulePA a.pics,
  .CModulePA .pics,
  .CModulePA .pic {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .CModulePA .pics table,
  .CModulePA .pic table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }
  .CModulePA .pics td,
  .CModulePA .pic td { width: 100% !important; max-width: 100% !important; }
  .CModulePA .pics img,
  .CModulePA .pic img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  /* 内页内容留白 */
  #main_container .CModulePA { padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box; }
  #row_121 .CModulePA, #row_139 .CModulePA, #row_80 .CModulePA { padding-left: 16px !important; padding-right: 16px !important; }
  /* 内页正文行距 */
  .CModulePA .ev-module-text span,
  .CModulePA .ev-module-text p {
    line-height: 1.85 !important;
  }
  .CModulePA .ev-module-text { font-size: 14px !important; }

  /* ========== row_121：标题 + 正文 ========== */
  #row_121 .CModulePA { padding: 26px 16px 10px !important; box-sizing: border-box; }
  #row_121 .ev-module-edit {
    position: static !important;
    left: auto !important; top: auto !important;
    width: 100% !important; height: auto !important;
    margin: 0 0 14px 0 !important;
  }
  #row_121 .ev-module-text,
  #row_121 .ev-module-edit-box {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    left: auto !important; top: auto !important;
  }
  #row_121 .ev-text-title-2 { text-align: center !important; }
  #row_121 .ev-text-title-2 span { font-size: 20px !important; line-height: 1.5 !important; }
  #row_121 #Mo_FIzbM .ev-text-title-2 { text-align: left !important; }
  #row_121 #Mo_FIzbM .ev-text-title-2 span { font-size: 14px !important; line-height: 1.85 !important; }

  /* ========== row_139：四张卡片 → 单列流式 ========== */
  #row_139 .CModulePA { padding: 10px 16px 24px !important; box-sizing: border-box; }
  #row_139 .ev-container {
    position: relative !important;
    left: auto !important; top: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 16px !important;
    box-sizing: border-box;
  }
  #row_139 .ev-container:last-child { margin-bottom: 0 !important; }
  #row_139 .ev-container > .ev-module-edit-box { width: 100% !important; height: auto !important; }
  #row_139 .ev-container-wap {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding: 26px 18px !important;
    box-sizing: border-box;
  }
  #row_139 .ev-container-bg {
    position: absolute !important;
    left: 0 !important; top: 0 !important;
    right: 0 !important; bottom: 0 !important;
    width: 100% !important; height: 100% !important;
    z-index: 0 !important;
  }
  #row_139 .ev-container .ev-module-edit {
    position: relative !important;
    z-index: 2 !important;
    left: auto !important; top: auto !important;
    width: 100% !important; height: auto !important;
    margin: 0 0 14px !important;
  }
  #row_139 .ev-container .ev-module-edit:last-child { margin-bottom: 0 !important; }
  #row_139 .ev-container .ev-module-edit-box {
    position: static !important;
    width: 100% !important; height: auto !important;
  }
  /* 图标：固定尺寸并居中 */
  #row_139 .ev-container .ev-module-edit:has(.ev-pic) {
    width: 52px !important;
    height: 52px !important;
    margin: 0 auto 16px !important;
  }
  #row_139 .ev-container .ev-module-edit:has(.ev-pic) .ev-module-edit-box,
  #row_139 .ev-container .ev-module-edit:has(.ev-pic) a {
    display: block !important;
    width: 52px !important;
    height: 52px !important;
  }
  #row_139 .ev-container .ev-pic {
    width: 52px !important;
    height: 52px !important;
    margin: 0 auto !important;
  }
  #row_139 .ev-container .ev-pic img {
    width: 52px !important; height: 52px !important;
    margin: 0 auto !important; display: block !important;
  }
  /* 卡片文字 */
  #row_139 .ev-container .ev-text-title-2 { text-align: center !important; }
  #row_139 .ev-container .ev-text-title-2 span { font-size: 19px !important; line-height: 1.4 !important; }
  #row_139 .ev-container .ev-module-text p,
  #row_139 .ev-container .ev-module-text span { font-size: 14px !important; line-height: 1.85 !important; }

  /* ========== row_80：页脚 → 单列 ========== */
  #row_80 .CModulePA {
    display: flex !important;
    flex-direction: column !important;
    padding: 26px 18px 16px !important;
    box-sizing: border-box;
    height: auto !important;
  }
  #row_80 .ev-module-edit,
  #row_80 .customModule {
    position: static !important;
    left: auto !important; top: auto !important;
    width: 100% !important; height: auto !important;
    margin: 0 0 10px 0 !important;
  }
  #row_80 .customModule > div { width: 100% !important; height: auto !important; }
  #row_80 .ev-module-text, #row_80 .ev-module-edit-box {
    position: static !important;
    width: 100% !important; height: auto !important;
    left: auto !important; top: auto !important;
  }
  #row_80 .MoT, #row_80 .MoB, #row_80 .MoL, #row_80 .MoR,
  #row_80 .MoTL, #row_80 .MoTR, #row_80 .MoBL, #row_80 .MoBR { display: none !important; }
  #row_80 table { width: 100% !important; }
  #row_80 .MoHeadM, #row_80 .MoBodyM { width: 100% !important; }
  #row_80 .ev-text-title-2 span { font-size: 13px !important; line-height: 1.9 !important; }
  #row_80 img { max-width: 100% !important; height: auto !important; }

  /* 装饰图标与竖线隐藏 */
  #evMo_O3SMg, #evMo_dSNR4, #evMo_nbneZ, #evMo_sFa1MX { display: none !important; }

  /* 视觉顺序重排 */
  #evMo_zX9pZm { order: 1 !important; margin-bottom: 14px !important; }
  #row_80 .customModule:nth-of-type(1) { order: 2 !important; margin-bottom: 22px !important; }
  #evMo_p2M5j { order: 3 !important; margin-bottom: 6px !important; }
  #row_80 .customModule:nth-of-type(2) { order: 4 !important; margin-bottom: 22px !important; }
  #evMo_MmoL9 { order: 5 !important; margin-bottom: 6px !important; }
  #row_80 .customModule:nth-of-type(3) { order: 6 !important; margin-bottom: 0 !important; }

  /* 页脚标题样式 */
  #evMo_zX9pZm .ev-text-title-2 span { font-size: 16px !important; }
  #evMo_p2M5j .ev-text-title-2 span,
  #evMo_MmoL9 .ev-text-title-2 span { font-size: 15px !important; font-weight: bold !important; }

  /* 页脚图文列表：图标 + 文字并排 */
  #row_80 .pic-text-list-module .inner {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: auto !important;
    line-height: 1.6 !important;
    padding: 4px 0 !important;
  }
  #row_80 .pic-text-list-module .pics {
    flex: 0 0 30px !important;
    width: 30px !important;
    display: block !important;
  }
  #row_80 .pic-text-list-module .pic {
    width: 30px !important;
    height: 30px !important;
    display: block !important;
  }
  #row_80 .pic-text-list-module .pic table { width: 30px !important; }
  #row_80 .pic-text-list-module .pic td { width: 30px !important; padding: 0 !important; }
  #row_80 .pic-text-list-module .pic img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    display: block !important;
  }
  #row_80 .pic-text-list-module .pic-attr {
    flex: 1 !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
  #row_80 .pic-text-list-module .pic-intro {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }
  #row_80 .pic-text-list-module .pic-title { display: none !important; }
  #row_80 .pic-text-list-module .pic-intro p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #fff !important;
  }
  #row_80 .pic-text-list-module ul, #row_80 .pic-text-list-module li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 页脚链接列表 */
  #row_80 .customModule a { font-size: 13px !important; line-height: 2 !important; }
  #row_80 .customModule p { margin: 0 !important; }
  #row_80 .text-list-module { height: auto !important; }
  #row_80 .text-list-module .inner {
    height: auto !important;
    line-height: 2.1 !important;
    padding: 0 !important;
  }
  #row_80 .MoBodyC, #row_80 .MoBody, #row_80 .MoBodyM { height: auto !important; }

  /* ========== 平板：卡片两列 ========== */
  @media screen and (min-width: 768px) {
    #row_139 .CModulePA {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 16px !important;
    }
    #row_139 .ev-container {
      width: calc(50% - 8px) !important;
      margin: 0 !important;
    }
  }

  /* ========== 页脚版权条 ========== */
  .footer { height: auto !important; }
  .ev_zhichi { font-size: 12px !important; line-height: 1.8 !important; padding: 8px 10px !important; }

  /* ========== 内页通用 ========== */
  .innerContent, .innerCon, .contentCon, .articleCon { width: 100% !important; }
  .innerContent img, .articleCon img, .contentCon img { max-width: 100% !important; height: auto !important; }
  table { max-width: 100% !important; }
  .ev-module-text img { max-width: 100% !important; height: auto !important; }
}

/* 汉堡按钮默认隐藏（PC） */
.osd-burger { display: none; }
.osd-mobile-menu { display: none; }
