@charset "UTF-8";
/* =========================================================
   培训门户 PC 页面 —— 移动端适配样式
   说明：本文件只做样式覆盖，不改动任何页面结构（DOM）
   ========================================================= */

/* ---------------------------------------------------------
   一、通用：解除 1220px 定宽限制（平板及以下）
   --------------------------------------------------------- */
@media screen and (max-width: 1220px) {
  html,
  body {
    min-width: 0;
  }
  .w_1220,
  .contWidth {
    width: 100%;
    max-width: 1220px;
    padding-left: 12px;
    padding-right: 12px;
  }
  img {
    max-width: 100%;
  }
}

/* ---------------------------------------------------------
   二、移动端主体适配（<=768px）
   --------------------------------------------------------- */
@media screen and (max-width: 768px) {

  /* ===== 基础 ===== */
  html,
  body {
    min-width: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }
  body {
    font-size: 13px;
    background-color: #fafafa;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  .w_1220,
  .contWidth {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .mt10 {
    margin-top: 10px;
  }

  /* ===== 顶部城市条 ===== */
  .head-city {
    position: relative;
    z-index: 9000;
    height: auto;
    min-height: 30px;
    line-height: 22px;
    font-size: 11px;
    padding: 4px 0;
  }
  .head-city .head-city-1220 {
    /* 作为下拉面板的定位参照，使面板可以铺满整行宽度 */
    position: relative;
    flex-wrap: wrap;
  }
  .head-city .head-city-left > span,
  .head-city .head-city-right > span {
    margin: 0 3px;
  }
  .head-city .head-city-left > span:nth-of-type(2) {
    display: none;
  }
  .head-city .head-city-right > a {
    padding: 0 4px;
  }

  /* ===== 网站导航下拉 =====
     PC 是 1218px 宽的横向四列悬浮面板，移动端改为
     整屏宽度、纵向堆叠、可整块滚动的下拉面板，并改为点击展开 */
  .head-city .head-city-nav {
    position: static;
    margin-left: 10px;
  }
  .head-city .head-city-dh {
    padding: 3px 6px;
    font-size: 12px;
  }
  .head-city .head-city-dh img {
    width: 9px;
    height: 9px;
    margin-left: 3px;
    transition: transform 0.2s ease-out;
  }
  .head-city .head-city-nav.open .head-city-dh {
    color: #ff6c00;
  }
  .head-city .head-city-nav.open .head-city-dh img {
    transform: rotate(180deg);
  }
  /* 移动端屏蔽 hover 展开，统一用点击控制，避免触屏“粘滞 hover”打不开/关不掉 */
  .head-city .head-city-nav:hover .head-city-dropdown {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
  }
  .head-city .head-city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 4px 0 8px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform-origin: 50% 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease-out, transform 0.22s ease-out, visibility 0.22s;
  }
  /* 该 ul 带通用类 .border（1px #EDEDEE），与自身 box-shadow 冲突，移动端去掉 */
  .head-city .head-city-dropdown.border {
    border: 0;
  }
  .head-city .head-city-nav.open .head-city-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  /* 四列固定宽度 -> 单列纵向堆叠，取消各自独立滚动 */
  .head-city .head-city-dropdown li,
  .head-city .head-city-dropdown li.li1,
  .head-city .head-city-dropdown li.li2,
  .head-city .head-city-dropdown li.li3,
  .head-city .head-city-dropdown li.li4 {
    width: 100%;
    height: auto;
    padding: 0 12px 12px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #efefef;
    box-sizing: border-box;
  }
  .head-city .head-city-dropdown li:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
  }
  .head-city .head-city-dropdown li .m_sitenav_til {
    margin-top: 14px;
    font-size: 15px;
  }
  /* 链接改为胶囊标签，去掉 PC 的固定宽度与外边距，保证点击区域 */
  .head-city .head-city-dropdown li dl {
    padding-top: 6px;
  }
  .head-city .head-city-dropdown li dd {
    flex: 0 0 auto;
    margin: 8px 8px 0 0;
  }
  .head-city .head-city-dropdown li dl a {
    display: block;
    width: auto;
    margin: 0;
    padding: 7px 12px;
    font-size: 13px;
    line-height: 18px;
    color: #6d6d6d;
    background-color: #f6f7f9;
    border-radius: 4px;
    white-space: nowrap;
  }
  .head-city .head-city-dropdown li.li1 a,
  .head-city .head-city-dropdown li.li2 a,
  .head-city .head-city-dropdown li.li3 a,
  .head-city .head-city-dropdown li.li4 a {
    width: auto;
    margin-top: 0;
  }

  /* ===== LOGO + 搜索 ===== */
  .head-main .head-search-box {
    display: flex;
    flex-direction: column;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .head-main .head-search-box .logo {
    margin-top: 0 !important;
    height: auto;
    align-self: flex-start;
  }
  .head-main .head-search-box .logo img {
    width: 116px;
    height: auto;
  }
  .head-main .head-search-box .head-search-r {
    margin-top: 10px;
    width: 100%;
  }
  .head-main .head-search-box .head-search-r dl {
    padding-left: 0;
  }
  .head-main .head-search-box .head-search-input {
    width: 100%;
  }
  .head-main .head-search-box .head-search-input input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 38px;
    padding-left: 30px;
    font-size: 14px;
  }
  .head-main .head-search-box .head-search-input button {
    flex: 0 0 64px;
    width: 64px;
    height: 38px;
    line-height: 38px;
    font-size: 15px;
  }
  .head-main .head-search-box .head-search-input .input_lx {
    width: 100%;
    top: 38px;
  }
  .head-main .head-search-box .head-search-tj {
    padding-left: 0;
    margin-top: 6px;
    flex-wrap: wrap;
  }
  .head-main .head-search-box .head-search-tj a {
    margin-right: 12px;
    line-height: 24px;
  }

  /* ===== 主导航：横向滚动 ===== */
  .head-main .head-nav {
    margin-top: 6px;
    padding-bottom: 4px;
  }
  .head-main .head-nav-ul {
    margin-left: 0;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .head-main .head-nav-ul::-webkit-scrollbar {
    display: none;
  }
  .head-main .head-nav-ul li {
    flex: 0 0 auto;
    margin-right: 18px;
  }
  .head-main .head-nav-ul a {
    font-size: 14px;
    line-height: 34px;
  }

  /* ===== 全部城市 ===== */
  .all-city-box .guess-city {
    width: 100%;
    margin: 12px auto;
  }
  .all-city-box .province-city {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    font-size: 13px;
    line-height: 22px;
  }
  /* 标题独占一行 */
  .all-city-box .province-city > span {
    display: block;
    margin-bottom: 8px;
    color: #6d6d6d;
    font-size: 12px;
  }
  /* 省份 + 城市 + 进入 同排一行，不换行 */
  .all-city-box .province-city .province-city-select {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
  }
  .all-city-box .province-city .province-city-select .choose-province,
  .all-city-box .province-city .province-city-select .choose-city {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 34px;
    line-height: 34px;
    margin-left: 0;
    font-size: 13px;
  }
  .all-city-box .province-city .province-city-select .choose-city {
    margin-left: 8px;
  }
  .all-city-box .province-city .choose-province .choose-province-input,
  .all-city-box .province-city .choose-city .choose-city-input {
    padding-left: 10px;
  }
  .all-city-box .province-city .choose-province .choose-province-input input,
  .all-city-box .province-city .choose-city .choose-city-input input {
    font-size: 13px;
  }
  /* 下拉面板：加高、可滚动、贴合输入框 */
  .all-city-box .province-city .choose-province ul,
  .all-city-box .province-city .choose-city ul {
    top: 32px;
    height: auto;
    max-height: 210px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 50;
  }
  .all-city-box .province-city .choose-province ul li,
  .all-city-box .province-city .choose-city ul li {
    height: 36px;
    line-height: 36px;
    padding-left: 10px;
    font-size: 13px;
  }
  /* 进入按钮：固定宽度，保证点击区域 */
  .all-city-box .province-city .province-city-select .choose-inter {
    flex: 0 0 auto;
    margin-left: 8px;
    line-height: 34px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 2px;
  }
  /* 热门城市：独立一行，自动换行 */
  .all-city-box .province-city .hot-city {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ededee;
  }
  .all-city-box .province-city .hot-city dt {
    margin-right: 4px;
    color: #6d6d6d;
    font-size: 12px;
  }
  .all-city-box .province-city .hot-city dd {
    flex: 0 0 auto;
  }
  .all-city-box .province-city .hot-city a {
    margin-left: 0;
    margin-right: 14px;
    font-size: 13px;
    line-height: 24px;
  }

  /* ===== 按字母查找 ===== */
  .all-city-box .letter-list {
    padding: 12px;
    font-size: 13px;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  /* 标题独占一行，避免和字母按钮挤在一起 */
  .all-city-box .letter-list dt {
    flex: 0 0 100%;
    margin-bottom: 2px;
    color: #6d6d6d;
    font-size: 12px;
  }
  .all-city-box .letter-list dd {
    margin-left: 0;
    margin-right: 10px;
    margin-top: 0;
    padding: 0 12px;
    line-height: 26px;
  }
  .all-city-box .letter-city {
    padding: 12px;
  }
  .all-city-box .letter-city .letter-city-item dl {
    position: relative;
    flex-wrap: wrap;
    row-gap: 6px;
    /* 左侧留出字母方块的位置，换行后城市也保持对齐 */
    padding-left: 38px;
    margin-bottom: 12px;
    line-height: 24px;
  }
  /* 字母方块脱离文档流，固定在行首 */
  .all-city-box .letter-city .letter-city-item dl dt {
    position: absolute;
    left: 0;
    top: 1px;
    width: 26px;
    height: 26px;
  }
  .all-city-box .letter-city .letter-city-item dl dd {
    flex: 0 0 auto;
  }
  .all-city-box .letter-city .letter-city-item dl a {
    margin-left: 0;
    margin-right: 12px;
    line-height: 24px;
  }

  /* ===== 全部分类（行业） =====
     改纵向卡片：顶部分类标签条 + 下方课程标签云 */
  .all-class-box {
    width: 100%;
  }
  .all-class-box .all-class-item {
    flex-direction: column;
    width: 100%;
    height: auto;
    margin-top: 10px;
  }
  .all-class-box .all-class-item:nth-child(2n) {
    margin-left: 0;
  }

  /* 行业分类标签条：横向、可滑动 */
  .all-class-box .all-class-item .all-class-item-l {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    background: #fff;
    border-color: #ededee;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .all-class-box .all-class-item .all-class-item-l::-webkit-scrollbar {
    display: none;
  }
  .all-class-box .all-class-item .all-class-item-l dd {
    flex: 0 0 auto;
  }
  .all-class-box .all-class-item .all-class-item-l a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 60px;
    margin: 0;
    padding: 0 14px;
    line-height: 34px;
    font-size: 13px;
    color: #6d6d6d;
    border-width: 0 0 2px 0 !important;
    border-color: transparent !important;
    border-radius: 0;
  }
  .all-class-box .all-class-item .all-class-item-l a.active,
  .all-class-box .all-class-item .all-class-item-l a.active-hover {
    background: transparent;
    color: #ff6c00;
    border-color: #ff6c00 !important;
  }

  /* 课程列表区 */
  .all-class-box .all-class-item .all-class-item-r {
    width: 100%;
    height: auto;
    border-left: 1px solid #ededee;
    border-top: 0;
    overflow: hidden;
  }
  .all-class-box .all-class-item .all-class-item-r ul {
    width: auto;
    max-height: 178px;
    margin: 10px 12px 12px;
    font-size: 13px;
  }
  .all-class-box .all-class-item .all-class-item-r ul li {
    padding: 8px 0 0 10px;
    line-height: 18px;
  }
  .all-class-box .related-box {
    width: 100%;
  }

  /* ===== 品牌机构 / 精选课程 ===== */
  .related-box .related-jg,
  .related-box .related-course {
    padding: 12px 8px 0;
  }
  .related-box .related-jg li,
  .related-box .related-course li {
    width: calc(50% - 14px);
    margin: 0 7px 14px;
  }
  .related-box .related-jg li .related-logo,
  .related-box .related-course li .related-logo,
  .related-box .related-jg li .related-jg-logo,
  .related-box .related-course li .related-jg-logo {
    width: 100%;
    height: auto;
  }
  .related-box .related-jg li img,
  .related-box .related-course li img {
    width: 100%;
    height: auto;
  }
  .related-box ul.related-jg li .related-jg-logo img {
    padding: 10px 14px;
  }
  .related-box .related-jg li h3,
  .related-box .related-course li h3 {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    font-size: 14px;
  }
  .related-box .related-jg li .related-jg-info,
  .related-box .related-course li .related-jg-info {
    width: 100%;
    margin-top: 8px;
    font-size: 11px;
  }
  .related-box .related-jg li .related-course-price,
  .related-box .related-course li .related-course-price {
    margin-top: 8px;
    font-size: 15px;
  }

  /* ===== 区块标题 ===== */
  .related-tit p {
    padding-left: 12px;
    line-height: 44px;
    font-size: 15px;
  }
  .related-tit a {
    margin-right: 12px;
    line-height: 44px;
    font-size: 12px;
  }

  /* ===== 最新发布 ===== */
  .related-last-box {
    flex-direction: column;
  }
  .related-last-box .related-last-item {
    width: 100%;
    padding: 14px 12px;
    border-right: 0;
    border-bottom: 1px solid #ededee;
  }
  .related-last-box .related-last-item:last-child {
    border-bottom: 0;
  }
  .related-last-box .related-last-item .related-last-title {
    margin-bottom: 12px;
    font-size: 14px;
  }
  .related-last-box .related-last-item .related-last-title a {
    font-size: 12px;
  }
  .related-last-box .related-last-item ul li {
    margin-top: 8px;
  }
  .related-last-box .related-last-item ul li a {
    font-size: 13px;
  }

  /* ===== 内容页：面包屑 / 服务协议、隐私政策 ===== */
  .bread-crumbs {
    width: 100%;
    margin: 12px 0 0;
    padding: 0;
    font-size: 12px;
    line-height: 20px;
    flex-wrap: wrap;
  }
  .content {
    width: 100%;
    margin: 12px 0 !important;
    box-sizing: border-box;
  }
  .content > h4 {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 26px;
    text-align: center;
  }
  .m-common-main p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 26px;
    word-break: break-word;
  }
  .m-common-main strong {
    font-weight: 600;
  }

  /* ===== 底部说明文字 ===== */
  body .main-tip {
    width: auto;
    max-width: 100%;
    padding: 12px;
    margin: 10px auto;
    line-height: 20px;
    font-size: 12px;
  }

  /* ===== 相关推荐 ===== */
  .related-tj-box {
    padding: 12px;
  }
  .related-tj-box .tj-nav-tab {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .related-tj-box .tj-nav-tab::-webkit-scrollbar {
    display: none;
  }
  .related-tj-box .tj-nav-tab dd {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 13px;
  }
  .related-tj-box .related-tj-list {
    padding: 12px 12px 0;
  }
  .related-tj-box .related-tj-list ul li {
    margin: 0 12px 12px 0;
  }
  .related-tj-box .related-tj-list ul li a {
    font-size: 13px;
  }

  /* ===== 页脚 ===== */
  .m-footer {
    padding: 18px 10px 24px;
  }
  .m-footer .m-footer-link {
    flex-wrap: wrap;
    line-height: 22px;
  }
  .m-footer .m-footer-link span {
    margin: 0 2px;
  }
  .m-footer .m-footer-text1 {
    line-height: 26px;
  }
  .m-footer .m-footer-text2 {
    flex-wrap: wrap;
    line-height: 22px;
  }
  .m-footer .m-footer-text2 p {
    margin-right: 8px;
  }
  .m-footer .m-footer-orther-link {
    margin-top: 16px;
    flex-wrap: wrap;
  }
  .m-footer .m-footer-orther-link a {
    margin-right: 12px;
  }
  .m-footer .m-footer-orther-link img {
    height: 34px;
    width: auto;
  }
}

/* ---------------------------------------------------------
   三、超小屏（<=360px）微调
   --------------------------------------------------------- */
@media screen and (max-width: 360px) {
  .head-main .head-search-box .logo img {
    width: 100px;
  }
  .all-class-box .all-class-item .all-class-item-l a {
    min-width: 52px;
    padding: 0 10px;
  }
  .all-city-box .province-city .province-city-select .choose-inter {
    padding: 0 10px;
  }
  .related-box .related-jg li,
  .related-box .related-course li {
    width: calc(50% - 10px);
    margin: 0 5px 12px;
  }
  .m-footer .m-footer-orther-link img {
    height: 28px;
  }
}

/* ---------------------------------------------------------
   四、页头「LOGO + 搜索区」间距优化（>768px）
   --------------------------------------------------------- */
@media screen and (min-width: 769px) {
  /* 原布局 justify-content: space-between 把 LOGO 与搜索区顶到容器两端，
     中间留出 400px+ 空白；改为 LOGO 靠左、搜索区紧随其后，
     两块之间只保留 40px 间距（搜索框宽度保持原样，不拉伸） */
  .head-main .head-search-box {
    justify-content: flex-start;
    align-items: flex-start;
  }
  .head-main .head-search-box .logo {
    flex: 0 0 auto;
    margin-top: 44px;
  }
  .head-main .head-search-box .head-search-r {
    margin-top: 44px;
    margin-left: 40px;
    flex: 0 1 auto;
    min-width: 0;
  }
  /* 搜索框维持原有尺寸：输入框 511px + 按钮 76px，
     不做拉伸；仅在窄屏空间不足时才允许收缩 */
  .head-main .head-search-box .head-search-input input {
    flex: 0 1 auto;
    width: 511px;
    max-width: 100%;
    min-width: 0;
  }
  .head-main .head-search-box .head-search-input button {
    flex: 0 0 76px;
    width: 76px;
  }
  .head-main .head-search-box .head-search-input .input_lx {
    width: 542px;
    max-width: 100%;
  }
  /* 分类切换、热门词与搜索框左边缘对齐 */
  .head-main .head-search-box .head-search-r dl,
  .head-main .head-search-box .head-search-tj {
    padding-left: 0;
  }
  .head-main .head-search-box .head-search-tj {
    flex-wrap: wrap;
  }
    .common-layer {
        width: 365px !important;
    }

    .tc_box_div {
        width: 329px !important;
    }

    .yyst_box_form div input {
        width: 243px;
    }

    .common-layer .bxk-notice {
        width: 365px !important;
    }

    .yyst_box_form .formBtn {
        width: 330px !important;
    }
}
