/* Phase 1 global responsive baseline. Keep selectors conservative so legacy themes can opt in. */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin-right: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

/* Media must shrink with its container instead of forcing a page-wide scrollbar. */
picture,
picture img {
  max-width: 100%;
}

@media (max-width: 767px) {
  header.am-header {
    margin-bottom: 20px;
  }

  header.am-header .zyjn-header-logo {
    right: 50px;
    width: auto;
    height: 50px;
    margin-top: 10px;
    padding-bottom: 5px;
    overflow: hidden;
  }

  header.am-header .zyjn-header-logo .zyjn-logo-static {
    display: flex;
    align-items: center;
    width: 100%;
    height: 49px;
  }

  header.am-header .zyjn-header-logo img {
    display: block;
    width: auto !important;
    height: 40px !important;
    max-width: 100% !important;
    object-fit: contain;
    object-position: left center;
  }

  header.am-header .zyjn-header-logo .zyjn-logo-text {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1552a8;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  img,
  picture img,
  svg {
    max-width: 100% !important;
    height: auto !important;
  }
}

table {
  max-width: 100%;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.am-btn,
.btn,
.l-button,
.ui-button,
.el-button,
.layui-btn,
.layui-layer-btn a,
.k-button,
.sweet-alert button,
.swal2-styled,
.weui-btn,
.weui-dialog__btn,
.mint-button,
.mint-msgbox-btn,
.van-button,
.van-dialog__button,
.btn-m,
.btn-big,
.login-btn,
.register-btn,
.dialog-box .btn-o,
.dialog-bottom .btn-o,
[class~="am-modal-btn"],
a[class*="btn"],
a[class*="button"],
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, .12);
  transition: filter .12s ease, background-color .12s ease, border-color .12s ease, color .12s ease;
}

button:not(:disabled):not(.disabled):active,
input[type="button"]:not(:disabled):active,
input[type="submit"]:not(:disabled):active,
input[type="reset"]:not(:disabled):active,
.am-btn:not(:disabled):not(.am-disabled):active,
.btn:not(:disabled):not(.disabled):active,
.l-button:not(.l-button-disabled):active,
.ui-button:not(:disabled):not(.ui-state-disabled):active,
.el-button:not(:disabled):not(.is-disabled):active,
.layui-btn:not(.layui-btn-disabled):active,
.layui-layer-btn a:active,
.k-button:not(.k-disabled):not([disabled]):active,
.sweet-alert button:not(:disabled):active,
.swal2-styled:not(:disabled):active,
.weui-btn:not(.weui-btn_disabled):active,
.weui-dialog__btn:active,
.mint-button:not(.is-disabled):active,
.mint-msgbox-btn:active,
.van-button:not(.van-button--disabled):active,
.van-dialog__button:active,
.btn-m:active,
.btn-big:active,
.login-btn:active,
.register-btn:active,
.dialog-box .btn-o:active,
.dialog-bottom .btn-o:active,
[class~="am-modal-btn"]:active,
a[class*="btn"]:not(.disabled):not(.cx-btn-disabled):not(.u-btn-dis):active,
a[class*="button"]:not(.disabled):active,
.am-close:active,
.modal-header .close:active,
.aui_close:active,
.ui-dialog-close:active,
.el-dialog__headerbtn:active,
.el-message-box__headerbtn:active,
.layui-layer-setwin .layui-layer-close:active,
.swal2-close:active,
.mint-msgbox-headerbtn:active,
.van-popup__close-icon:active,
.k-window-action:active,
[role="button"]:not([aria-disabled="true"]):active {
  filter: brightness(.84) saturate(1.08) !important;
}

/*
 * Shared dialog baseline.
 * The project contains several generations of dialog libraries. Keep every
 * dialog inside the viewport even when a legacy page writes a pixel width
 * inline, and give all close controls the same mobile touch target.
 */
.am-modal-dialog,
.modal-dialog,
.aui_dialog,
.ui-dialog,
.el-dialog,
.el-message-box,
.layui-layer,
.sweet-alert,
.swal2-popup,
.weui-dialog,
.mint-msgbox,
.van-dialog,
.k-window,
.k-dialog {
  box-sizing: border-box;
  max-width: calc(100vw - 24px) !important;
  min-width: 0 !important;
}

.am-modal-bd,
.modal-body,
.aui_content,
.ui-dialog-content,
.el-dialog__body,
.el-message-box__content,
.layui-layer-content,
.sweet-alert p,
.swal2-html-container,
.weui-dialog__bd,
.mint-msgbox-content,
.van-dialog__content,
.k-window-content,
.k-dialog-content {
  box-sizing: border-box;
  max-width: 100% !important;
  max-height: 72vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.am-modal-hd,
.modal-title,
.aui_title,
.ui-dialog-title,
.el-dialog__title,
.el-message-box__title,
.layui-layer-title,
.sweet-alert h2,
.swal2-title,
.weui-dialog__title,
.mint-msgbox-title,
.van-dialog__header,
.k-window-title {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.am-close,
.modal-header .close,
.aui_close,
.ui-dialog-close,
.el-dialog__headerbtn,
.el-message-box__headerbtn,
.layui-layer-setwin .layui-layer-close,
.swal2-close,
.mint-msgbox-headerbtn,
.van-popup__close-icon,
.k-window-action {
  box-sizing: border-box;
  min-width: 44px !important;
  min-height: 44px !important;
  touch-action: manipulation;
}

.am-close,
.modal-header .close,
.aui_close,
.ui-dialog-close,
.el-dialog__headerbtn,
.el-message-box__headerbtn,
.swal2-close,
.mint-msgbox-headerbtn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.el-dialog__headerbtn,
.el-message-box__headerbtn {
  top: 6px !important;
  right: 6px !important;
}

.modal-header,
.el-dialog__header,
.el-message-box__header,
.ui-dialog-header {
  padding-right: 56px !important;
}

.am-modal-btn,
.modal-footer .btn,
.aui_buttons button,
.ui-dialog-footer button,
.el-dialog__footer button,
.el-message-box__btns button,
.layui-layer-btn a,
.sweet-alert button,
.swal2-actions button,
.weui-dialog__btn,
.mint-msgbox-btn,
.van-dialog__button,
.k-dialog-buttongroup .k-button {
  min-height: 44px;
  touch-action: manipulation;
}

.el-message-box__input input,
.layui-layer-prompt .layui-layer-input,
.sweet-alert input,
.swal2-input,
.mint-msgbox-input input,
.van-dialog input,
.k-dialog input {
  box-sizing: border-box;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  .am-modal-dialog,
  .modal-dialog,
  .aui_dialog,
  .ui-dialog,
  .el-dialog,
  .el-message-box,
  .layui-layer-dialog,
  .layui-layer-page,
  .layui-layer-iframe,
  .sweet-alert,
  .swal2-popup,
  .weui-dialog,
  .mint-msgbox,
  .van-dialog,
  .k-window,
  .k-dialog {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  .sweet-alert {
    right: 12px !important;
    left: 12px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .layui-layer-title {
    height: auto;
    min-height: 44px;
    padding-right: 64px;
    line-height: 1.5;
  }

  .layui-layer-dialog,
  .layui-layer-lan[type="dialog"] {
    min-width: 0 !important;
  }

  .layui-layer-prompt .layui-layer-input,
  .layui-layer-prompt textarea.layui-layer-input {
    width: 100% !important;
  }

  .layui-layer-setwin .layui-layer-close2 {
    top: 0 !important;
    right: 0 !important;
  }
}

.member-menu-toggle,
.member-menu-mask {
  display: none;
}

/* Desktop scale member menus use fly-out submenus. The redesigned sidebar
 * clips its rounded container, so explicitly let an opened submenu render
 * above the content panel instead of being hidden behind it. */
@media (min-width: 768px) {
  body.scale-member-layout .my-content > .my-left.scale-member-menu {
    position: relative !important;
    z-index: 20 !important;
    overflow: visible !important;
  }

  body.scale-member-layout .scale-member-menu .my-left-list.myindex > li:hover > dl,
  body.scale-member-layout .scale-member-menu .my-left-list.myindex > li.submenu-open > dl {
    left: 100% !important;
    z-index: 1001 !important;
    width: 168px !important;
    min-width: 168px !important;
    padding: 8px 0 !important;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, .12);
  }

  body.scale-member-layout .scale-member-menu .my-left-list.myindex > li > dl dd a {
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 10px 16px !important;
    line-height: 1.5 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
}

#vld-tooltip {
  display: none;
  position: absolute;
  z-index: 1200;
  max-width: min(90vw, 420px);
  padding: 6px 10px;
  border-radius: 4px;
  background: #f37b1d;
  color: #fff;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body {
    min-width: 0 !important;
    overflow: visible !important;
  }

  html.member-menu-open,
  body.member-menu-open {
    overflow: hidden !important;
  }

  .header-layout,
  .header-layout.top-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 72px;
    padding: 10px 15px;
    overflow: hidden;
  }

  .header-layout .logo.fl {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .header-layout .logo img {
    display: block;
    width: auto !important;
    max-width: min(52vw, 192px) !important;
    height: auto !important;
  }

  .header-layout .logo p {
    width: auto !important;
    max-width: 100% !important;
    margin: 8px 0 0 !important;
    font-size: 18px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
  }

  .header-layout > .fr {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 8px;
  }

  .header-layout > .fr > div {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    text-align: left !important;
  }

  body.member-menu-open {
    overflow: hidden;
  }

  .layout,
  .container,
  .wrapper,
  .center,
  .main-wrap,
  .main,
  .content-wrap,
  .register-container,
  .login-container,
  .login-box,
  .register-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .main-wrap,
  .content-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  input,
  select,
  textarea,
  .am-form input,
  .am-form select,
  .am-form textarea {
    max-width: 100%;
  }

  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  .am-btn,
  .btn,
  .l-button,
  .ui-button {
    min-height: 44px !important;
    line-height: 1.4;
    white-space: normal;
  }

  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"] {
    min-width: 44px !important;
  }

  .btn-m,
  .btn-big,
  .login-btn,
  .register-btn,
  .dialog-box .btn-o,
  .dialog-bottom .btn-o {
    min-height: 44px !important;
    height: auto !important;
    line-height: 1.4 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .am-modal-dialog,
  .modal-dialog,
  .aui_dialog {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    margin: 6vh auto 0 !important;
    left: auto !important;
  }

  .am-close,
  .modal-header .close,
  .aui_close {
    min-width: 44px;
    min-height: 44px;
    line-height: 44px;
  }

  .am-modal-footer .am-modal-btn,
  .modal-footer .btn,
  .aui_buttons button {
    min-height: 44px;
  }

  .responsive-table,
  .table-responsive,
  .demand-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .demand-table-scroll > table {
    min-width: 640px;
  }

  .check li {
    display: flex;
    align-items: center;
    min-height: 76px;
    height: auto !important;
    padding: 14px 10px;
  }

  .check li .m-left {
    flex: 1;
    min-width: 0;
  }

  .check li .fore2 small {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .check li .fore3 {
    width: auto !important;
    padding-left: 10px;
  }

  .member-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 1102;
    min-width: 88px;
    min-height: 44px;
    padding: 0 16px;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: #0e90d2;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  }

  .member-menu-mask {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, .45);
  }

  body.member-menu-open .member-menu-mask {
    display: block;
  }

  aside.menu {
    display: block !important;
    float: none !important;
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1101;
    width: min(82vw, 320px) !important;
    max-width: 320px;
    height: 100vh;
    max-height: none;
    overflow-y: auto;
    margin: 0 !important;
    padding-top: 12px !important;
    background: #fff;
    box-shadow: 6px 0 24px rgba(0, 0, 0, .2);
    transform: translateX(-105%);
    transition: transform .22s ease;
  }

  aside.menu.open {
    transform: translateX(0);
  }

  /* 无 JS 兜底：抽屉未激活（body 无 scale-member-layout）时，左右栏纵向堆叠，
     保证菜单可点击、个人资料不与侧栏重叠。抽屉激活后由下方 body 类规则接管。 */
  body:not(.scale-member-layout) .my-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
  }
  body:not(.scale-member-layout) .my-content > .my-left {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body:not(.scale-member-layout) .my-content > .my-right {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  /* Scale member pages use .my-left instead of aside.menu. */
  body.scale-member-layout .my-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
  }

  body.scale-member-layout .my-content > .my-right {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-left: 0 !important;
    border-radius: 12px !important;
  }

  body.scale-member-layout .my-content > .my-left.scale-member-menu {
    display: block !important;
    float: none !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1101 !important;
    width: min(82vw, 320px) !important;
    max-width: 320px !important;
    min-width: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 12px 0 24px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 0 12px 12px 0 !important;
    background: #fff !important;
    box-shadow: 6px 0 24px rgba(0, 0, 0, .2) !important;
    transform: translateX(-105%) !important;
    transition: transform .22s ease !important;
  }

  body.scale-member-layout .my-content > .my-left.scale-member-menu.open {
    transform: translateX(0) !important;
  }

  body.scale-member-layout .scale-member-menu .user-block {
    width: 100% !important;
    margin: 0 !important;
    padding: 16px 20px !important;
  }

  body.scale-member-layout .scale-member-menu .my-left-list,
  body.scale-member-layout .scale-member-menu .my-left-list li,
  body.scale-member-layout .scale-member-menu .my-left-list li > a,
  body.scale-member-layout .scale-member-menu .my-left-list li:hover > a,
  body.scale-member-layout .scale-member-menu .my-left-list li.cur > a {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.scale-member-layout .scale-member-menu .my-left-list li > a,
  body.scale-member-layout .scale-member-menu .my-left-list li:hover > a,
  body.scale-member-layout .scale-member-menu .my-left-list li.cur > a {
    padding: 12px 16px 12px 60px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 48px !important;
  }

  body.scale-member-layout .scale-member-menu .my-left-list.myindex li dl,
  body.scale-member-layout .scale-member-menu .my-left-list.myindex li:hover dl {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 4px 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #f8fafc !important;
  }

  body.scale-member-layout .scale-member-menu .my-left-list.myindex li dl dd a,
  body.scale-member-layout .scale-member-menu .my-left-list.myindex li:hover dl dd a {
    width: 100% !important;
    height: auto !important;
    min-height: 42px !important;
    padding: 10px 20px 10px 52px !important;
    line-height: 1.5 !important;
    text-align: left !important;
    white-space: normal !important;
  }

  aside.menu ul {
    margin: 0;
  }

  header,
  .header,
  .top,
  .nav-contain {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  aside.menu,
  .scale-member-menu {
    transition: none;
  }
}

/* 首页课程图片、加盟卡片及页脚品牌图响应式优化 */
.scale-home-page .subject-box .subject-list {
  width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.scale-home-page .subject-box .subject-list a,
.scale-home-page .subject-box .subject-list a .pic {
  min-width: 0;
}

.scale-home-page .subject-box .subject-list a .pic {
  height: auto !important;
  padding-bottom: 0 !important;
  aspect-ratio: auto !important;
}

.scale-home-page .subject-box .subject-list a .pic img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  transform: none !important;
}

.scale-home-page .foot-logo-new2023 {
  overflow: hidden;
}

.scale-home-page .foot-logo-new2023 .wrapper {
  width: min(100%, 1200px) !important;
  max-width: 1200px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

.scale-home-page .foot-logo-new2023 .wrapper > img {
  display: block !important;
  width: 100% !important;
  max-width: 766px !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 1024px) {
  .scale-home-page .subject-box > .wrapper {
    width: calc(100% - 32px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .scale-home-page .subject-box .subject-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .scale-home-page .topbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    gap: 10px;
    box-sizing: border-box !important;
  }

  .scale-home-page .topbar .logo,
  .scale-home-page .topbar .logo a {
    display: block !important;
    width: min(100%, 300px) !important;
    height: auto !important;
    flex: none !important;
  }

  .scale-home-page .topbar .logo img {
    display: block !important;
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
  }

  .scale-home-page .header .topbar .topright {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
  }

  .scale-home-page .header .topbar .top-phone,
  .scale-home-page .header .topbar .top-cart,
  .scale-home-page .header .topbar .top-login {
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    white-space: nowrap;
  }

  .scale-home-page .header .topbar .top-login {
    display: flex !important;
    align-items: center;
    gap: 4px;
  }

  .scale-home-page .header .topbar .top-cart a,
  .scale-home-page .header .topbar .top-login a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .scale-home-page .header .topbar .top-login a {
    padding: 6px 12px !important;
  }

  .scale-home-page .home-cooperation {
    padding: 36px 0 !important;
  }

  .scale-home-page .home-cooperation .h2title {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .scale-home-page .home-cooperation .hc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-top: 18px !important;
  }

  .scale-home-page .home-cooperation .hc-list li {
    width: 100% !important;
    height: auto !important;
    min-height: 205px;
    margin: 0 !important;
    padding: 16px 10px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .scale-home-page .home-cooperation .hc-list li .pic {
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    flex: 0 0 48px;
  }

  .scale-home-page .home-cooperation .hc-list li .pic img {
    width: 30px !important;
    height: 30px !important;
  }

  .scale-home-page .home-cooperation .hc-list li .text {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  .scale-home-page .home-cooperation .hc-list li .coop-desc {
    width: 100%;
    min-height: 36px;
    margin: 0 !important;
    line-height: 1.5 !important;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .scale-home-page .home-cooperation .hc-list li a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 104px;
    min-height: 40px;
    height: auto !important;
    margin-top: auto !important;
    padding: 6px 14px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
  }

  .scale-home-page .foot-logo-new2023 .wrapper {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* 学历教育、网上书城等旧版公共头部：手机端改为可换行网格，避免菜单逐字竖排。 */
@media (max-width: 767px) {
  .header-mod,
  .header-mod .header-layout,
  .header-mod .nav-contain,
  .header-mod .nav-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .header-mod .header-layout.top-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px 16px !important;
    gap: 10px !important;
  }

  .header-mod .header-layout.top-panel > .fl,
  .header-mod .header-layout.top-panel > .fr,
  .header-mod .header-layout.top-panel > form,
  .header-mod .header-layout.top-panel > .am-input-group {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .header-mod .header-layout.top-panel > .fr > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .header-mod .nav-contain .nav-inner .am-nav.am-nav-justify {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .header-mod .nav-contain .nav-inner .am-nav.am-nav-justify > li {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .header-mod .nav-contain .nav-inner .am-nav.am-nav-justify > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 44px !important;
    height: auto !important;
    padding: 8px 5px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  /* 旧版书城轮播使用了内联 1200/800px，手机端必须由设备宽度接管。 */
  .banner-slide-img,
  .layout-container .am-slider {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    left: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .banner-slide-img img,
  .layout-container .am-slider img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 390px) {
  .header-mod .nav-contain .nav-inner .am-nav.am-nav-justify {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Legacy channel home pages still contain 1200px desktop shells. */
@media (max-width: 767px) {
  a.am-icon-btn,
  a.more-btn,
  a.btn-normal {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    min-height: 44px !important;
    height: auto !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  body.page-responsive-legacy,
  body.page-responsive-legacy #app,
  body.page-responsive-legacy .g-container,
  body.page-responsive-legacy .g-main,
  body.page-responsive-legacy .g-center,
  body.page-responsive-legacy .p-wrap-full,
  body.page-responsive-legacy .classlist,
  body.page-responsive-legacy .m-bar-double,
  body.page-responsive-legacy .layout,
  body.page-responsive-legacy .container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.page-responsive-legacy .g-container *,
  body.page-responsive-legacy .g-mn *,
  body.page-jxjy .layout * {
    max-width: 100%;
  }

  body.page-responsive-legacy .f-flex,
  body.page-responsive-legacy .m-nav .g-center,
  body.page-responsive-legacy .nav-bd {
    flex-wrap: wrap !important;
  }

  body.page-responsive-legacy .m-nav a,
  body.page-responsive-legacy .nav a,
  body.page-responsive-legacy .nav-item {
    min-height: 44px;
    height: auto !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  body.page-jxjy .container > .section {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 24px 12px !important;
  }

  body.page-jxjy .container > .section > .am-fl,
  body.page-jxjy .am-form-inline .am-form-group {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.page-jxjy #ChinaMap,
  body.page-jxjy #ChinaMap > div,
  body.page-jxjy #ChinaMap svg,
  body.page-jxjy #mapTipContent {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.page-jxjy #ChinaMap {
    position: relative;
    margin: 0 auto 20px;
  }

  body.page-jxjy .mod-entry {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.page-jxjy .mod-entry-user {
    right: 12px !important;
    width: min(300px, calc(100% - 24px)) !important;
    max-width: calc(100% - 24px) !important;
  }

  body.page-jxjy .mod-entry-user-hover,
  body.page-jxjy .mod-entry-user-hover > div,
  body.page-jxjy .mod-entry-user-hover .am-panel-bd {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.page-jxjy .am-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  body.page-jxjy .am-form-inline .am-form-field {
    width: 100% !important;
  }

  body.page-tet .specialSubject,
  body.page-heal .g-container.gate,
  body.page-build .g-mn,
  body.page-build .g-mn-bd {
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  body.page-tet .m-banner,
  body.page-tet .m-login-box,
  body.page-heal .m-banner,
  body.page-heal .m-head,
  body.page-heal .m-nav,
  body.page-build .banner-box,
  body.page-build .main-bg,
  body.page-build .w570 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.page-tet .m-course-list,
  body.page-tet .m-enter-bar,
  body.page-heal .m-bar-double,
  body.page-heal .m-course-list,
  body.page-build .classlist {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* .m-nav 桌面端固定 height:50px 单行，7 个入口在手机端排成 2 列 4 行网格，容器高度不跟着涨会把下面的登录卡片盖住 */
  body.page-build .m-nav {
    height: auto !important;
    line-height: normal !important;
  }
  body.page-build .m-nav .nav-bd {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-build .m-nav .nav-bd > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    padding: 8px 4px !important;
    text-align: center;
  }

  body.page-build .wrapper,
  body.page-build .chinamap,
  body.page-build #ChinaMap,
  body.page-build #ChinaMap > div,
  body.page-build #ChinaMap svg {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.page-build .footer2,
  body.page-build .footer2 .wrapper,
  body.page-build .footer2 .foot-right,
  body.page-build .footer2 .foot-nav,
  body.page-build .footer2 .foot-link,
  body.page-build .footer2 .foot-phone,
  body.page-build .footer2 .foot-ercode {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
  }

  body.page-build .footer2 .foot-right {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    padding: 0 16px;
  }

  body.page-build .footer2 .foot-link,
  body.page-build .footer2 .foot-ercode {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  body.page-build .footer2 .foot-link a {
    margin-right: 12px !important;
    margin-bottom: 8px !important;
    padding-right: 12px !important;
  }
}

/* ── OEM 三站(page-tet/page-heal/page-build)手机端补全 ── */
@media (max-width: 767px) {

  /* 顶部信息条：换行 + 隐藏欢迎语，避免和登录/注册挤压 */
  body.page-tet .m-top .g-center.f-flex,
  body.page-heal .m-top .g-center.f-flex {
    /* width:100% 是 content-box，不加 border-box 的话 padding 会撑出视口外 */
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    height: auto !important;
    padding: 6px 12px !important;
  }
  body.page-tet .m-top .wel-txt,
  body.page-heal .m-top .wel-txt {
    display: none !important;
  }
  body.page-tet .m-top .nav-btn,
  body.page-heal .m-top .nav-btn,
  body.page-tet .m-top .login-btn,
  body.page-heal .m-top .login-btn {
    width: auto !important;
  }
  /* .welcome 是 white-space:nowrap 的欢迎语，桌面端有足够宽度不会溢出，手机端要截断，否则文字直接跑出屏幕右侧 */
  body.page-heal .welcome {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 55% !important;
  }

  /* Logo 区域 */
  body.page-tet .m-header,
  body.page-heal .m-header {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px 12px !important;
  }
  body.page-tet .m-header .logo img {
    display: block;
    width: auto !important;
    height: 36px !important;
  }
  /* heal 的 logo 选择器之前写的是 .m-header，实际类名是 .m-head，规则一直没生效；
     原图 900x60 比例太扁（15:1），裁切放大到 40px 高会把结尾"平台"两个字切掉，
     改成只轻微放大（30px），裁掉的部分压缩到能接受范围，尽量把文字留住 */
  body.page-heal .m-head .logo img,
  body.page-heal .m-head img[src*="hash"] {
    display: block !important;
    width: 100% !important;
    height: 30px !important;
    object-fit: cover !important;
    object-position: left center !important;
  }

  /* heal 顶部导航：之前选择器 .m-nav .nav-bd 在这个页面不存在（实际结构是 .g-center.nav > a），规则一直没生效；
     每个 a 桌面端 margin-left:60px 是按宽屏 3 列留白算的，手机端直接把首列顶出一大截空白 */
  body.page-heal .m-nav {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  body.page-heal .g-center.nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 12px !important;
  }
  body.page-heal .g-center.nav a {
    margin: 0 0 16px 0 !important;
    width: 30% !important;
    text-align: center !important;
  }
  /* "培训报名快捷入口" 白字容器背景是透明的，白字落在白底页面上基本看不清；
     第一版用纯色实心蓝底太抢眼，改成浅色底 + 深色字，观感更轻 */
  body.page-heal .m-training-entrance {
    background-color: #eef4fc !important;
    border-radius: 6px;
    padding: 4px 0 !important;
    margin-top: 10px !important;
  }
  body.page-heal .m-training-entrance .training-tit {
    color: #2d6fc4 !important;
  }
  body.page-heal .m-training-entrance .hb-iconfont {
    color: #2d6fc4 !important;
  }
  /* 欢迎语顶条按要求直接移除 */
  body.page-heal .m-top {
    display: none !important;
  }
  /* 资讯摘要文字贴着屏幕左边，没有留白 */
  body.page-heal .m-banner-bottom {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

  /* 登录卡片 + 轮播 Banner：改为单栏纵向堆叠 */
  body.page-tet .m-banner,
  body.page-heal .m-banner {
    display: flex !important;
    flex-direction: column !important;
  }
  /* .m-head/.m-banner 桌面端固定 140px/330px 高度，内容（logo 图/轮播+资讯）实际没那么高，
     多出来的空间就是"上下留白太多"和"通知与登录框之间留空太多" */
  body.page-heal .m-head {
    height: auto !important;
    padding: 12px 0 !important;
  }
  /* 客服热线图桌面端 padding-top:17px，手机端离 logo 太远 */
  body.page-heal .tel {
    padding-top: 4px !important;
  }
  body.page-heal .m-banner {
    height: auto !important;
    min-height: 0 !important;
  }
  body.page-tet .m-login-box,
  body.page-heal .m-login-box {
    order: 2;
    margin: 12px 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.page-tet .el-carousel,
  body.page-heal .el-carousel,
  body.page-tet .el-carousel__container,
  body.page-heal .el-carousel__container {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  /* .m-popular-training-index .content 桌面端 item 固定 271px 宽 + margin-right:22px，flex-wrap:wrap 本身没问题，
     但两个卡片加上间距超过手机端容器宽度，每行只能塞得下 1 个，变成又窄又长的单列，要滚很久才翻完；
     改用 space-between 让容器自己分配间距，item 不再自带 margin-right */
  /* .m-popular-training-index/.content 桌面端固定 678px/560px 高度（按单排横向卡片算的），
     改成两列纵向排列后 4 行卡片远超这个高度，容器不跟着变高会把下一个板块盖住/被盖住 */
  body.page-heal .m-popular-training-index {
    height: auto !important;
  }
  body.page-heal .m-popular-training-index .content {
    height: auto !important;
    justify-content: space-between !important;
  }
  body.page-heal .m-popular-training-index .content .item {
    width: 47% !important;
    margin-right: 0 !important;
    /* 悬浮"查看详情"是 position:absolute 贴着卡片底部展开的，触屏没有 hover 但鼠标测试时会露出来，
       加 overflow:hidden 兜底，保证它绝不会视觉上盖到下一行卡片 */
    overflow: hidden !important;
  }
  /* .pic-box 桌面端固定 height:152px（按桌面卡片比例算的），img 缩到手机端卡片宽度后按原图比例只有 89px 高，
     容器没跟着收缩，多出的 63px 空白就是图片和标题之间那截留白 */
  body.page-heal .m-popular-training-index .content .item .pic-box {
    height: auto !important;
  }
  body.page-heal .m-popular-training-index .content .item .pic-box img {
    width: 100% !important;
    height: auto !important;
  }
  /* "查看详情"手机端一直常显（不是只在 hover 才出现），桌面端那种大块实心蓝底在这里显得太抢眼；
     改成小号浅底描边样式，跟"培训报名快捷入口"的浅色处理风格统一 */
  body.page-heal .m-popular-training-index .content .item .bottom-op {
    position: static !important;
    background: transparent !important;
    padding: 0 0 10px !important;
  }
  /* 桌面端继承下来的 line-height 很大（32px），跟手动设的 padding 叠加后文字在框里没法居中；
     改用 flex 居中，不再依赖 line-height 计算，保证上下间距真正一致 */
  body.page-heal .m-popular-training-index .content .item .btn-normal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px !important;
    line-height: normal !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    background-color: transparent !important;
    color: #2d6fc4 !important;
    border: 1px solid #2d6fc4 !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    text-align: center !important;
  }
  body.page-tet .el-carousel__item img,
  body.page-heal .el-carousel__item img,
  body.page-tet .m-server img,
  body.page-heal .m-server img {
    width: 100% !important;
    height: auto !important;
  }
  /* "培训流程"图是一整条 1050x72 的宽图（6 步骤文字都画在图里），缩到 390px 宽后只剩 23px 高，字完全看不清；
     改成按可读高度显示、允许横向滚动，而不是硬压宽度 */
  body.page-heal .m-training-process .content {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  body.page-heal .m-training-process .content img[src*="pic-process"] {
    width: auto !important;
    height: 48px !important;
    max-width: none !important;
  }

  /* 中国地图：与 page-build 保持一致，随视口收窄（JS 已按 <=767px 动态计算 mapWidth） */
  body.page-tet .chinamap,
  body.page-heal .chinamap,
  body.page-tet #ChinaMap,
  body.page-heal #ChinaMap,
  body.page-tet #ChinaMap > div,
  body.page-heal #ChinaMap > div,
  body.page-tet #ChinaMap svg,
  body.page-heal #ChinaMap svg {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: auto !important;
  }
  body.page-tet .m-process,
  body.page-heal .m-process {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px !important;
  }
  /* 登录卡片（忘记密码/新用户注册那一行）紧贴着下面的地图，加点间距 */
  body.page-tet .m-process:has(#ChinaMap) {
    margin-top: 16px !important;
  }
  /* .m-process 同时被地图容器和培训流程图两个不同用途复用，图片不需要地图那份左右留白，让图片撑满两侧 */
  body.page-tet .m-process > img,
  body.page-heal .m-process > img {
    display: block !important;
    width: calc(100% + 24px) !important;
    max-width: calc(100% + 24px) !important;
    margin: 0 -12px !important;
  }

  /* 报名入口条 / 培训报名区块 */
  body.page-tet .m-subject-training .g-center,
  body.page-heal .m-subject-training .g-center {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px !important;
  }
  body.page-tet .m-subject-training .tit-box,
  body.page-heal .m-subject-training .tit-box {
    flex-wrap: wrap !important;
    height: auto !important;
  }
  /* 桌面端"报名培训"标题 40px、"点击查看更多培训"图片按桌面比例放大，手机端字号/图片同步缩小保持协调 */
  body.page-tet .m-subject-training .tit-box .cont .txt,
  body.page-heal .m-subject-training .tit-box .cont .txt {
    font-size: 22px !important;
    height: auto !important;
    line-height: 1.3 !important;
  }
  body.page-tet .m-subject-training .tit-box .cont .en,
  body.page-heal .m-subject-training .tit-box .cont .en {
    font-size: 12px !important;
  }
  body.page-tet .m-subject-training .more img,
  body.page-heal .m-subject-training .more img {
    max-width: 160px !important;
    height: auto !important;
  }

  /* 资讯中心列表：纵向堆叠，长文本换行 */
  body.page-tet .m-news,
  body.page-heal .m-news {
    width: 100% !important;
    max-width: 100% !important;
  }
  /* .content 桌面端靠负 margin-left 抵消子项左内边距做等宽栅格，手机端会把整列顶到屏幕外，文字被裁掉一截 */
  body.page-tet .m-news .content,
  body.page-heal .m-news .content {
    box-sizing: border-box !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 12px !important;
    width: 100% !important;
  }
  body.page-tet .m-news .content .item,
  body.page-heal .m-news .content .item {
    flex-wrap: wrap !important;
    height: auto !important;
    padding: 8px 0 !important;
    line-height: 1.5 !important;
  }
  body.page-tet .m-news .content .item .txt,
  body.page-heal .m-news .content .item .txt {
    white-space: normal !important;
    /* flex-basis:0% 会压过 width，必须连同 flex-grow/shrink 一起重置，否则文字被压成竖排 */
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  /* 右侧悬浮客服条：手机端无 hover，隐藏避免遮挡内容 */
  body.page-tet .m-sidebar,
  body.page-heal .m-sidebar,
  body.page-build .sidebar-panel {
    display: none !important;
  }

  /* footer（page-tet/page-heal 用的是 .footer，非 page-build 的 .footer2） */
  body.page-tet .footer.new2023,
  body.page-heal .footer.new2023 {
    height: auto !important;
    padding: 16px 0 10px 0 !important;
  }
  body.page-tet .footer.new2023 .wrapper,
  body.page-heal .footer.new2023 .wrapper,
  body.page-tet .footer.new2023 .foot-right,
  body.page-heal .footer.new2023 .foot-right,
  body.page-tet .footer.new2023 .foot-nav,
  body.page-heal .footer.new2023 .foot-nav,
  body.page-tet .footer.new2023 .foot-link,
  body.page-heal .footer.new2023 .foot-link,
  body.page-tet .footer.new2023 .foot-phone,
  body.page-heal .footer.new2023 .foot-phone,
  body.page-tet .footer.new2023 .foot-ercode,
  body.page-heal .footer.new2023 .foot-ercode {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
  }
  body.page-tet .footer.new2023 .foot-right,
  body.page-heal .footer.new2023 .foot-right {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    padding: 0 16px !important;
  }
  body.page-tet .footer.new2023 .foot-link,
  body.page-heal .footer.new2023 .foot-link,
  body.page-tet .footer.new2023 .foot-ercode,
  body.page-heal .footer.new2023 .foot-ercode {
    display: flex !important;
    flex-wrap: wrap !important;
  }
  body.page-tet .footer.new2023 .foot-link a,
  body.page-heal .footer.new2023 .foot-link a {
    margin-right: 12px !important;
    margin-bottom: 8px !important;
    padding-right: 12px !important;
  }

  /* ── page-build 补全：登录卡片、课程列表、流程步骤、分类 tab ── */
  /* .top-wrap 桌面端 .left(欢迎访问...) 和 .right(登录|注册) 左右浮动分居一行，
     "欢迎访问..."文字太长手机端占满整行，.right 放不下就换到下一行——但 .top-wrap 高度固定 30px 不会跟着长高，
     换行后的"登录|注册"文字（白色）就落在了下面的白色背景区域上，看起来像一块空白，其实是白字白底看不见 */
  body.page-build .top-wrap .right {
    display: none !important;
  }
  /* .clear 的伪元素实现是 content:"clear";display:block（不是标准隐藏式清浮动），
     手机端一旦把容器改成 grid/flex，这个伪元素会被当成第一个网格/弹性项，把真实内容全部挤后一位、
     同时自身当块级盒子还会占出一截空白，这是"首页跑到右边""课程卡片第一格空白""顶部留白太多"的共同根因 */
  body.page-build .m-header .clear:before,
  body.page-build .m-header .clear:after,
  body.page-build .m-nav .clear:before,
  body.page-build .m-nav .clear:after,
  body.page-build .classlist-index-3:before,
  body.page-build .classlist-index-3:after {
    content: none !important;
    display: none !important;
  }
  /* .m-header 桌面端固定 height:180px，logo+客服热线 换行后内容变高，被裁切并因 z-index:200 盖住紧邻的登录卡片 */
  body.page-build .m-header {
    height: auto !important;
    padding-bottom: 12px !important;
  }
  /* 客服信息靠右对齐，图标背景图原尺寸太大，缩小并同步收紧留白区；.num 28px 与 .txt-g 13px 落差太大，手机端收窄字号让整块更协调 */
  body.page-build .m-header .tel-box {
    box-sizing: border-box !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 8px !important;
    margin-right: 0 !important;
    text-align: right !important;
    background-position: right top !important;
    background-size: 44px auto !important;
    padding-left: 0 !important;
    padding-right: 52px !important;
    font-size: 13px !important;
  }
  body.page-build .m-header .tel-box .bd,
  body.page-build .m-header .tel-box .b,
  body.page-build .m-header .tel-box .num,
  body.page-build .m-header .tel-box .txt-g {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.page-build .m-header .tel-box .num {
    font-size: 20px !important;
  }
  body.page-build .m-header .logo {
    display: block !important;
    max-width: 90% !important;
    width: 330px !important;
    height: auto !important;
  }
  /* .top-wrap（欢迎语条）和下面 logo 行之间量出来有约 30px 空白，两边自身 margin/padding 都是 0，
     找不到具体来源，直接把 logo 行上提贴近 */
  /* 负 margin 一直不生效，是因为这个元素 class 里的 .clear 真的带 clear:both——
     它必须避开 .top-wrap 里浮动的欢迎语/登录注册，无论 margin 多负都会被钳制在浮动元素下沿，
     直接去掉 clear 需求才能让负 margin 真正生效 */
  body.page-build .m-header .p-wrap-full.clear.rel {
    clear: none !important;
    margin-top: 4px !important;
  }
  /* .banner-box 背景图桌面端按固定 370px 高度居中裁切，容器变成 height:auto 被登录卡片撑高后，
     图片还是居中不铺满，卡片顶部正好卡在图片裁切边缘上，看起来像卡片"戳出"了背景 */
  body.page-build .banner-box {
    height: auto !important;
    padding-bottom: 16px;
    padding-top: 160px !important;
    margin-top: 8px;
    /* 只让背景图铺满顶部 160px 这一条带（跟 padding-top 对应），下面登录卡片挡住的区域不需要背景图；
       宽度用 auto 而不是 100%，保持原图宽高比按高度等比缩放再居中裁切，避免二维码被横向拉伸压扁 */
    background-size: auto 160px !important;
    /* 往右多裁掉一截左侧建筑，让二维码在视觉上更靠左，而不是居中 */
    background-position: -100px top !important;
    background-repeat: no-repeat !important;
  }
  body.page-build .banner-box .login-box {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0;
  }
  body.page-build .p-wrap-full {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px !important;
    box-sizing: border-box;
  }
  body.page-build .w570 {
    margin-bottom: 20px;
  }
  /* 课程列表外层桌面端内联 height:510px;overflow:hidden（按 4 列高度写死），手机端 2 列需要更高，
     不覆盖的话大部分课程卡片会被直接裁掉看不见 */
  body.page-build .clear[style*="510px"] {
    height: auto !important;
    overflow: visible !important;
  }
  body.page-build .classlist-index-3 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    margin-top: 16px !important;
    margin-right: 0 !important;
  }
  body.page-build .classlist-index-3 li {
    width: 47% !important;
    height: auto !important;
    margin-right: 0 !important;
    margin-bottom: 20px !important;
  }
  /* .tabheadtow 桌面端固定 height:42px 单行，.tab-tit 换行后撑高但父容器高度不跟着涨，
     溢出的内容会盖住紧随其后的课程卡片（"专业课"被课程图片压住就是这个原因） */
  body.page-build .tabheadtow {
    height: auto !important;
    min-height: 42px;
    padding-bottom: 8px;
  }
  /* .more(更多+) 没设 top，absolute 定位默认按它在文档流里原本的位置摆放；
     .tab-tit 换行变高后把它顶到了第二行下面，这里钉死在右上角 */
  body.page-build .tabheadtow .more {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
  }
  body.page-build .tabheadtow .tab-tit {
    box-sizing: border-box !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-top: 8px;
    display: flex !important;
    flex-wrap: wrap !important;
  }
  /* .lc-list 实际是 float 布局（不是 flex，之前当 flex 处理没生效），li 换行后撑高，
     但父级 .process-panel 桌面端固定高度不够，第三步会被裁掉一截 */
  body.page-build .p-wrap-full.process-panel {
    height: auto !important;
    min-height: 0 !important;
    /* 背景是固定尺寸的图片，容器变高后图片盖不住新增的行，露出白底导致白字看不见，改用纯色背景兜底 */
    background-color: #4a90d9 !important;
    background-size: cover !important;
  }
  body.page-build .lc-list {
    height: auto !important;
    padding-bottom: 8px !important;
  }
  body.page-build .lc-list li {
    margin-bottom: 12px;
  }
}

/* ── page-tet 手机端修复：顶部固定条溢出、Logo 区域越界定位、报名条被挤压成竖排文字 ── */
@media (max-width: 767px) {
  /* .m-top 桌面端 position:fixed + height:40px，换行后内容会溢出固定高度、悬浮盖住下方内容 */
  body.page-tet .m-top {
    box-sizing: border-box !important;
    position: static !important;
    height: auto !important;
    line-height: 1.6 !important;
    padding: 4px 12px !important;
  }
  /* 精简为一行：隐藏培训报名/帮助中心胶囊按钮，只保留登录/注册 */
  body.page-tet .m-top .nav-btn {
    display: none !important;
  }
  /* 登录/注册胶囊：desktop 的 height:30px 被别处 padding:10px 15px 撑成两三行文字纵向堆叠，这里强制单行、固定尺寸、靠右对齐 */
  /* 按钮桌面端金色实心样式在浅色背景上太扎眼，缩小尺寸、降低高度，减少突兀感 */
  /* 全局有条 .login-btn{min-height:44px!important} 规则（第521行左右），一直把高度顶回 44px，
     必须同时覆盖 min-height 才能真正缩小 */
  body.page-tet .m-top .login-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 26px !important;
    min-height: 26px !important;
    line-height: 26px !important;
    padding: 0 14px !important;
    margin: 4px 0 4px auto !important;
    white-space: nowrap !important;
    font-size: 13px !important;
  }
  body.page-tet .m-top .login-btn a,
  body.page-tet .m-top .login-btn i {
    white-space: nowrap !important;
  }

  /* .m-header 桌面端 position:absolute;left:50%;margin-left:-600px;width:860px，手机端整块被推出屏幕外；
     徽章图是整张图片（黄底文字都画在图里，改不了内部样式），没法真的和"登录/注册"拼到同一行里，
     退而求其次：背景改成和 .m-top 一样的蓝色、紧贴不留缝，看起来是同一块蓝色区域的延续，不再是分离的两块 */
  /* .m-top 和 .m-header 在 DOM 里不是同级兄弟（.m-header 嵌套更深一层），没法用 flex order 互换顺序；
     两者紧挨着、高度固定，用 position:relative + top 做视觉互换：只挪画面位置，不占用的文档流位置不变，
     不会影响后面地图等内容的排版。徽章放上面、登录按钮条放下面 */
  body.page-tet .m-header {
    box-sizing: border-box !important;
    position: relative !important;
    top: -80px !important;
    left: auto !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 6px 12px !important;
    text-align: center;
    background-color: #ebf1ff !important;
    margin-top: -1px !important;
  }
  body.page-tet .m-top {
    position: relative !important;
    top: 57px !important;
  }
  body.page-tet .m-header .logo {
    font-size: 20px !important;
    height: auto !important;
  }
  /* .g-main 桌面端 padding-top:40px 是给桌面导航留的顶部空间，手机端 .m-top 已经是 static 正常流，不需要这块空白 */
  body.page-tet .g-main.pb0 {
    padding-top: 0 !important;
  }
  /* 轮播图按要求直接移除，客服热线宣传图挪到原来轮播图的位置（登录卡片上方） */
  body.page-tet .el-carousel {
    display: none !important;
  }
  body.page-tet .m-server {
    order: -1 !important;
  }
  body.page-tet .m-server img {
    max-width: 80% !important;
    width: auto !important;
    height: auto !important;
    margin: 12px auto !important;
    display: block !important;
  }
  /* "培训流程"图是画在 1200x120 原图里的，缩到 390px 宽只剩 39px 高，字看不清；
     跟 heal 页同样处理：固定可读高度，超出部分横向滑动查看 */
  body.page-tet .m-process:has(img[src*="2c9081569714b0fd019a0fb2c7c50849"]) {
    overflow-x: auto !important;
  }
  body.page-tet img[src*="2c9081569714b0fd019a0fb2c7c50849"] {
    width: auto !important;
    height: 76px !important;
    max-width: none !important;
  }
  /* 资讯列表内容贴边，太紧凑 */
  body.page-tet .m-news .content {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }
  /* Logo 是图片而非文字，已经占满整行宽度，再要放大只能靠裁切变焦；
     原图上下有透明留白，居中裁切会把底部空白也露出来，改成从顶部裁，把空白裁掉 */
  body.page-tet .m-header .logo img {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
    height: 68px !important;
    object-fit: cover !important;
    object-position: left top !important;
    margin-top: 40px !important;
  }
  /* 顶部欢迎语条深黑底(#2d303d)偏重；先改过品牌蓝，现在按要求改用页面原本那种浅色背景 */
  body.page-tet .m-top {
    background-color: #ebf1ff !important;
  }
  /* 轮播图文字是画在 1920x420 原图里的，缩到 390px 宽只剩 85px 高，字看不清；
     用 object-fit:cover 稍微放大裁切，牺牲两侧留白换取文字可读 */
  body.page-tet .el-carousel__item.is-active img {
    height: 120px !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  /* .m-screen 固定 height:80px 单行 flex，.words 无 flex-basis 时被挤到宽度趋近于0，中文逐字换行成竖排 */
  body.page-tet .m-subject-training .m-screen {
    box-sizing: border-box !important;
    height: auto !important;
    flex-wrap: wrap !important;
    padding: 12px !important;
  }
  body.page-tet .m-subject-training .words {
    display: none !important;
  }

  /* .m-login-box 桌面端 position:absolute;right:50%;margin-right:-600px 假定 1200px 宽视口，
     手机端整块被推到屏幕右侧屏外；.m-banner 固定 height:420px 导致下方内容被顶开一大块空白 */
  body.page-tet .m-banner {
    height: auto !important;
    min-height: 0 !important;
  }
  body.page-tet .m-login-box {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-top: 2px !important;
    margin-bottom: 20px !important;
  }
  /* 协议复选框和文字之间没有间距，贴在一起 */
  body.page-tet .m-protocol-login .el-checkbox {
    margin-right: 8px !important;
  }
  /* "忘记密码/新用户注册"那行下面桌面端 padding-bottom:0，跟上面 15px 不对称，补上 */
  body.page-tet .login-before.login-before-4 {
    padding-bottom: 15px !important;
  }
  body.page-tet .el-carousel,
  body.page-tet .el-carousel__container,
  body.page-heal .el-carousel,
  body.page-heal .el-carousel__container {
    height: auto !important;
    min-height: 180px;
  }
  /* .el-carousel__item 桌面端 position:absolute + transform:translateX(固定像素) 假定桌面宽度，
     这是纯静态快照没有轮播 JS 在跑，手机端直接只显示当前这张、按正常文档流排列 */
  body.page-tet .el-carousel__item,
  body.page-heal .el-carousel__item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    height: auto !important;
  }
  body.page-tet .el-carousel__item:not(.is-active),
  body.page-heal .el-carousel__item:not(.is-active) {
    display: none !important;
  }
  /* 轮播指示点 .el-carousel__button 桌面端渲染成 50x44 的白底方块（没有 hover/激活态样式区分），
     静态快照没有轮播 JS 在跑，点了也没用，这就是截图里反复出现的"两个白框" */
  body.page-tet .el-carousel__indicators,
  body.page-heal .el-carousel__indicators {
    display: none !important;
  }
  body.page-tet .el-carousel__item img,
  body.page-heal .el-carousel__item img {
    position: static !important;
    left: auto !important;
    margin-left: 0 !important;
    width: 100% !important;
    height: auto !important;
  }
}
