@charset "UTF-8";
/* =========================================================
   机构课程详情页（course-detail）PC 页面 —— 移动端适配样式
   说明：本文件只做样式覆盖，不改动任何页面结构（DOM）
   ========================================================= */

/* ---------------------------------------------------------
   一、通用：解除 1200 / 1220px 定宽限制（平板及以下）
   --------------------------------------------------------- */
@media screen and (max-width: 1220px) {
  html,
  body {
    min-width: 0;
  }
  .div-block,
  .course-main {
    width: 100%;
    max-width: 1200px;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }
  img {
    max-width: 100%;
  }
  /* 左栏自适应，右栏保持固定宽 */
  .main-l {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }
  .main-r {
    width: 260px;
    flex: 0 0 260px;
  }
}

/* ---------------------------------------------------------
   二、移动端主体适配（<=768px）
   --------------------------------------------------------- */
@media screen and (max-width: 768px) {
  html,
  body {
    min-width: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  .div-block,
  .course-main {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
  }

  /* ===== 课程头部卡片：图上文下 ===== */
  .course-box {
    flex-direction: column;
    margin-top: 12px;
  }
  .course-box .course-img {
    width: 100%;
    height: auto;
  }
  .course-box .course-img img {
    width: 100%;
    height: auto;
    max-height: 220px;
  }
  .course-box .course-detail {
    padding: 12px;
  }
  .course-box .course-detail .course-name {
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 26px;
  }
  .course-box .course-detail.experience-class-detail .course-name span {
    height: 24px;
    min-width: 44px;
    margin-left: 6px;
    padding: 4px 6px 2px 3px;
    font-size: 12px;
    line-height: 16px;
  }
  .course-box .course-detail .course-data {
    flex-wrap: wrap;
    margin-bottom: 8px;
  }
  .course-box .course-detail .course-data p {
    font-size: 13px;
    line-height: 20px;
  }
  /* PC 给课时/班型/校区限了定宽并单行截断，移动端放开 */
  .course-box .course-detail .course-data .course-hour,
  .course-box .course-detail .course-data .course-shift {
    width: auto;
  }
  .course-box .course-detail .course-data .course-size span,
  .course-box .course-detail .course-data .course-campus span {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }
  .course-box .course-detail .course-data p .no-hour {
    width: auto;
  }
  /* 价格 + 按钮：PC 是绝对定位在卡片底部，移动端回到常规流 */
  .course-box .course-detail .course-b {
    position: static;
    width: 100%;
    padding: 0;
    margin-top: 12px;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .course-box .course-detail .course-b .course-b-l p {
    font-size: 20px;
    line-height: 28px;
  }
  .course-box .course-detail .course-b .course-b-l span {
    font-size: 12px;
    line-height: 18px;
  }
  .course-box .course-detail .course-b .course-b-r {
    display: flex;
    width: 100%;
  }
  .course-box .course-detail .course-b .course-b-r button {
    flex: 1 1 0;
    width: auto;
    height: 40px;
    margin-left: 0;
    font-size: 15px;
    line-height: 38px;
  }
  .course-box .course-detail .course-b .course-b-r button + button {
    margin-left: 10px;
  }

  /* ===== 主体两栏 -> 单栏 ===== */
  .course-main {
    flex-direction: column;
  }
  .main-l {
    width: 100%;
    flex: 0 0 auto;
  }
  .main-r {
    width: 100%;
    margin-left: 0;
    flex: 0 0 auto;
  }
  .main-l > .main-l-content {
    margin-top: 12px;
  }
  /* 选项卡：定宽 125px + 80px 间距 -> 横向滑动 */
  .main-title {
    height: 48px;
    padding: 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-title::-webkit-scrollbar {
    display: none;
  }
  .main-title li {
    flex: 0 0 auto;
    width: auto;
    margin-right: 24px;
    font-size: 15px;
    line-height: 48px;
  }
  .main-title li.active::before {
    height: 3px;
  }

  /* ===== 课程详情正文 ===== */
  .course-content .course-intro {
    padding: 16px 12px;
    font-size: 14px;
    line-height: 24px;
  }
  .course-content .course-intro p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 24px;
  }
  .course-content .course-intro img {
    margin-top: 14px;
  }

  /* ===== 学习评价 ===== */
  .course-content .course-pj {
    padding: 16px 12px 0;
  }
  .course-content .course-pj .course-pj-con {
    padding-bottom: 14px;
    margin-top: 14px;
  }
  .course-content .course-pj .course-pj-con .student-comment-text {
    margin-top: 10px;
    font-size: 13px;
  }
  .course-content .course-pj .more-pj {
    height: 40px;
    line-height: 38px;
    margin-bottom: 20px;
  }

  /* ===== 上课校区 ===== */
  .course-content .campus-school {
    padding: 16px 12px;
  }
  .course-content .campus-school .campus-list-box .campus-list li {
    padding: 16px 12px;
  }
  .course-content .campus-school #school-map {
    height: 220px;
    margin-left: 0;
    margin-top: 12px;
  }
  .course-content .campus-school .more-xq {
    height: 40px;
    line-height: 38px;
  }

  /* ===== 微信条（936px 背景图）===== */
  .wechat-box {
    width: 100%;
    height: auto;
    min-height: 96px;
    padding: 14px 12px;
    margin-top: 16px;
    margin-left: 0;
    box-sizing: border-box;
    background-size: 100% 100%;
  }
  .wechat-box .wechat-content {
    flex-wrap: wrap;
  }
  .wechat-box .wechat-content p span + span {
    margin-left: 16px;
  }
  .wechat-box .wechat-content button {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }

  /* ===== 右栏：授课教师 / 关于我们 ===== */
  .main-r-box {
    margin-top: 12px;
  }
  .main-r-box .main-r-box-tit {
    height: 48px;
    padding: 0 12px;
  }
  .main-r-box .main-r-box-tit span {
    font-size: 16px;
    line-height: 24px;
  }
  .main-r-box .teacher-list {
    padding: 0 12px 16px;
  }
  .main-r-box .teacher-list li {
    margin-top: 14px;
  }
  .main-r-box .teacher-list li .teacher-info > img {
    width: 40px;
    height: 40px;
  }
  .main-r-box .teacher-list li .teacher-info .teacher-info-l h3 {
    font-size: 15px;
    line-height: 20px;
  }
  .main-r-box .teacher-list li .teacher-intro {
    margin-top: 8px;
  }
  .main-r-box .about-us {
    padding: 0 12px 16px;
  }
  .main-r-box .about-us p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 22px;
  }
    .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;
    }
}
