﻿.course-menu-items .course-menu-item-tit {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.course-menu-items .course-menu-item-tit .PC,
.category-menu-items .course-menu-item-tit .PC,
.course-seach-tips.PC,
.course-details-tab-mobile {
    display: block !important;
}
.course-collect-badge {
  visibility: hidden;
}
@media screen and (max-width: 768px) {

  /* 璇剧▼鍒楄〃椤甸潰鏍峰紡 --- 寮€濮?*/
  .course-menu-box {
    width: 100%;
    padding: 10px 0 0;
    margin: 0 auto 10px;
    box-sizing: border-box;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2) url(/static/index/images/member-mobile/course-img.png) no-repeat top center;
    border: 16px solid #F7F8FA;
    background-size: cover;
  }


  .course-menu-items {
    margin-bottom: 0;
    padding: 0 10px;
    border-bottom: none;
    box-sizing: border-box;
  }

  .category-menu-items {
    display: block;
    margin-top: 0;
    padding: 16px 10px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #FFFFFF;
    box-shadow: 0px -1px 6px 0px rgba(255, 63, 41, 0.05);
  }

  .course-menu-items .course-menu-item-tit .PC,
  .category-menu-items .course-menu-item-tit .PC,
  .course-seach-tips.PC {
    display: none !important;
  }
  .course-menu-items .course-menu-item-tit,
  .category-menu-items .course-menu-item-tit {
    font-family: PingFang SC;
    color:#2A3342;;
    font-weight: 700;
    font-size: 14px;
  }
  .course-menu-items .course-menu-item-tit {
    color: #F74747;
  }

  .course-menu-items .course-menu-item {
    height: 44px;
    line-height: 44px;
    border-radius: 3px 3px 0 0;
    border: 2px solid transparent;
    border-bottom: 0;
  }

  .course-menu-items .course-menu-item.active {
    border-color: #fff;
  }

  .category-menu-items .flexauto {
    display: flex !important;
    flex-wrap: wrap !important;
  }
  .category-menu-items .category-menu-item {
    width: 30%;
    height: 24px;
    line-height: 24px;
    padding: 0;
    margin-top: 10px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    font-family: PingFang SC;
    color: #2A3342;
    font-weight: 400;
    font-size: 12px;
    border-radius: 4px;
    background-color: #FFFFFF;
    border: 1px solid #F2F3F5;
  }
  .category-menu-items .category-menu-item:not(:nth-child(3n)) {
    margin-right: calc(10% / 2);
  }

  .category-menu-items .category-menu-item:nth-child(3n){
    margin-right: 0;
  }

  .category-menu-items .category-menu-item:hover, .category-menu-items .category-menu-item.active {
    border-bottom-color: #F74747;
  }
  .category-menu-items a.category-menu-item:focus {
    outline: none;
  }

  .course-container-sorts {
    width: 100%;
    margin-bottom: 32px;
    padding: 0 16px;
    font-family: PingFang SC;
    color: #2A3342;
    font-weight: 400;
    font-size: 14px;
    box-sizing: border-box;
  }

  .course-content-box {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4% !important;
  }

  .course-content-box.courseRec {
    justify-content: space-around;
  }

  .course-content-box.courseRec li.list-items-4 {
    margin-top: 16px;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.06);
  }

  .course-items-area .list-items-4 {
    width: 48% !important;
    margin-bottom: 16px !important;
    flex: none !important;
  }
  .course-items-area li.list-items-4:nth-child(2n){
    margin-right: 0 !important;
  }
  .course-content-box .list-items-4 img {
    height: 120px;
  }
  /* .course-content-box .list-item p{
    font-family: PingFang SC;
    color: #000000;
    font-weight: 700;
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space:unset;
  } */
  .learn-num p, .learn-num-vip,
  .learn-num span, .learn-vip span:first-child,
  .learn-vip span:last-child{
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 12px;
  }
  .learn-num span, .learn-vip span:first-child{
    color: #2A3342 !important;
    font-family: PingFang SC;
    font-weight: 700;
    font-size: 14px;
  }
  .learn-vip span:last-child {
    width: 68px;
    height: 24px;
    line-height: 24px;
    color: #6B3D1E;
  }
  .course-seach-tips {
    margin: 0 auto 16px;
  }
  .sub-course {
    justify-content: space-between;
  }
  .course-menu-items .flexauto, .category-menu-items .flexauto {
    flex: none !important;
  }

  .course-container-sorts .navcourse {
    display: none;
  }
  
  /* 璇剧▼鍒楄〃椤甸潰鏍峰紡 --- 缁撴潫 */
  /* 璇剧▼浣撶郴椤甸潰鏍峰紡 --- 寮€濮?*/
  .course-system-box {
    width: 100%;
    background: #fff;
  }

  .course-system-info {
    width: auto;
    margin: 0;
    padding: 24px 16px 12px;
    box-sizing: border-box;
  }

  .course-system-info img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 24px;
  }

  .course-system-info img:last-child {
    margin-bottom: 0;
  }
  /* 璇剧▼浣撶郴椤甸潰鏍峰紡 --- 缁撴潫 */

  /* 璇剧▼璇︽儏椤垫牱寮?--- 寮€濮?*/
  .course-details-box {
    width: 100%;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: #F7F8FA;
  }

  .course-details-items {
    padding: 0;
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
  }

  .course-details-item {
    padding: 0;
    background: transparent;
    flex-direction: column;
  }

  /* Banner鍥惧叏瀹?+ 鏀惰棌鏍囩瀹氫綅 */
  .course-banner-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .course-banner-wrapper .course-details-img {
    display: block;
    width: 100%;
    height: 174px;
    margin-right: 0;
    border-radius: 0;
  }

  /* 绉诲姩绔敹钘忔爣绛?- 瑕嗙洊鍦╞anner鍥句笂 */
  .course-collect-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 2;
    visibility: visible;
  }

  .course-collect-badge .collect-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
  }

  .course-collect-badge .collect-status.collected {
    background: rgba(230, 247, 220, 0.9);
    color: #52c41a;
  }

  .course-collect-badge .collect-status.uncollect {
    background: rgba(255, 238, 232, 0.95);
    color: #FF3F29;
  }

  .course-collect-badge .collect-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
  }

  .course-collect-badge .star-inactive {
    color: #c0c0c0;
  }

  .course-collect-badge .star-active {
    color: #fbca09;
  }

  /* PC绔敹钘忔寜閽?- 绉诲姩绔殣钘?*/
  .PC-collect {
    display: none !important;
  }

  /* 璇剧▼璇︽儏鍐呭鍖?- 鍦╞anner鍥句笅鏂?*/
  .course-details-content {
    width: 100%;
    padding: 12px 0 16px;
    background: #fff;
    box-sizing: border-box;
    position: relative;
  }

  .course-details-content h3 {
    margin-top: 0;
    font-family: PingFang SC;
    color: #2A3342;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
  }

  .course-details-content p {
    margin-top: 6px;
    font-family: PingFang SC;
    color: #666666;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    -webkit-line-clamp: 2;
  }

  /* 寮€濮嬪涔犳寜閽?- 鍙冲榻?*/
  .course-details-button {
    position: static;
    text-align: right;
    margin-top: 12px;
  }

  .course-details-content .buy-course-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 32px;
    padding: 0;
    float: none;
    border-radius: 16px;
    background: linear-gradient(235.98deg, rgba(255, 87, 71, 1) 0%, rgba(255, 114, 97, 1) 100%);
    font-family: PingFang SC;
    color: #ffffff;
    font-weight: 400;
    font-size: 14px;
    /* line-height: 20px; */
    margin: 0;
  }

  /* 浠锋牸淇℃伅 - 绉诲姩绔?*/
  .course-extra-info {
    margin-top: 24px;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .course-extra-info .course-price {
    font-family: PingFang SC;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
  }

  .course-extra-info .vipDiscount-new {
    /* position: static;
    margin-right: 8px; */
    font-size: 12px;
  }

  .course-extra-info .join-role-alert-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 111px;
    height: 34px;
    border-radius: 2px;
    background: linear-gradient(235.98deg, rgba(255, 87, 71, 1) 0%, rgba(255, 114, 97, 1) 100%);
    font-family: PingFang SC;
    color: #ffffff;
    font-weight: 400;
    font-size: 14px;
  }

  /* Tab鏍?*/
  .course-details-tab {
    display: flex;
    align-items: center;
    padding: 0 0 4px;
    margin: 0 16px 0;
    background: transparent;
  }

  .PC-tab {
    display: none !important;
  }

  .course-details-tab a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    font-family: PingFang SC;
    color: #2A3342;
    font-weight: 400;
    font-size: 15px;
    line-height: 32px;
    position: relative;
    width: 102px;
    height: 32px;
    margin-right: 10px;
    border-radius: 5px 5px 0px 0px;
    background-color: #FFFFFF;
  }
  /* .course-details-tab a:hover, .course-details-tab a.active  {
    background: #F74747 !important;
    color: #FFF;
  } */

  /* 璇剧▼浠嬬粛鍐呭鍖?*/
  .row.coursedetails-items {
    padding: 0;
    margin: 0;
  }

  .coursedetails-item {
    width: stretch;
    padding: 16px;
    margin: 0 16px 16px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .coursedetails-item table {
    width: auto !important;
  }

  .coursedetails-item img {
    max-width: 100%;
    height: auto;
  }

  /* 璇剧▼鐩綍绉诲姩绔?*/
  .catalogue-items {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
  }
  
  .catalogue-item-tit {
    padding: 14px 16px;
    background: #F7F8FA;
    font-family: PingFang SC;
    color: #2A3342;
    font-weight: 700;
    font-size: 15px;
  }

  .catalogue-item-content {
    padding: 12px 16px;
    border-bottom: 1px solid #F2F3F5;
  }

  /* 瀛﹀憳璁ㄨ鍖?- 绉诲姩绔?*/
  .discuss-textarea {
    padding: 16px;
  }

  .discuss-textarea-item {
    padding: 12px 16px;
  }

  /* 璇剧▼鎺ㄨ崘鍖哄煙 */
  .container-item-box {
    width: calc(100% - 32px);
    padding: 16px;
    margin: 0 16px;
    background: #fff;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .content-title {
    margin: 0 0 12px;
    padding: 0;
    font-family: PingFang SC;
    color: #2A3342;
    font-weight: 700;
    font-size: 16px;
  }

  .content-title span {
    font-family: PingFang SC;
    color: #2A3342;
    font-weight: 700;
    font-size: 16px;
    padding-left: 8px;
    /* border-left: 3px solid #F81919; */
    position:relative;
  }
  .content-title span::before {
    content: '';
    width: 2px;
    height: 15px;
    background-color: #F81919;
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -10px;
  }

  .course-content-box::-webkit-scrollbar {
    display: none;
  }

  .course-content-box .list-items-4 img {
    width: 150px;
    height: 92px;
    object-fit: cover;
  }

  .course-content-box .list-item {
    width: auto;
    padding: 8px 0 0;
  }

  /* .course-content-box .list-item p {
    font-family: PingFang SC;
    color: #2A3342;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
  } */

  .course-content-box .learn-num,
  .course-content-box .learn-num-vip,
  .course-content-box .learn-vip {
    padding: 4px 0;
  }

  /* .learn-num span,
  .learn-num p,
  .learn-vip span {
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 12px;
  }

  .learn-num span {
    color: #F74747;
    font-weight: 700;
    font-size: 14px;
  }

  .learn-num p {
    color: #999;
  }

  .learn-vip span:first-child {
    color: #F74747;
    font-weight: 700;
    font-size: 14px;
  } */

  .learn-vip span:last-child {
    width: 68px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 11px;
    background: linear-gradient(90deg, rgba(252, 238, 225, 1) 0%, rgba(252, 218, 194, 1) 100%);
    color: #6B3D1E;
    font-size: 11px;
    margin-left: auto;
  }

  .learn-num-vip {
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 12px;
    color: #999;
    margin: 0;
  }

  /* 椤甸潰搴曢儴闂磋窛 */
  .catalogue-items-mobile .catalogue-item-content {
    flex-direction: unset !important;
  }

  .catalogue-items .catalogue-item-content .catalogue-live-action {
    min-width: auto;
    width: 112px;
    height: 24px;
    font-family: PingFang SC;
    color: #FFFFFF;
    font-weight: 400;
    font-size: 14px;
    border: none;
    box-sizing: border-box;
    cursor:pointer;
    pointer-events: auto;
    border-radius: 16px;
    background: linear-gradient(235.98deg, rgba(255, 87, 71, 1) 0%, rgba(255, 114, 97, 1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .catalogue-items .catalogue-item-content .live-status {
    width: 88px;
    height: 24px;
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .catalogue-live-side {
    width: auto;
  }

  .course-details-tab-mobile {
    display: none !important;
  }

  /* 璇剧▼璇︽儏椤垫牱寮?--- 缁撴潫 */
}

/* 视频页移动端设计稿重构：页面背景、视频卡片、目录卡片和推荐卡片分层展示 */
@media screen and (max-width: 768px) {
  body {
    background: #f5f6f8;
  }

  .course-details-box.append-temp-treatment {
    padding: 16px 0;
    background: #f5f6f8;
  }

  .course-details-items {
    margin: 0;
  }

  .course-details-item {
    width: calc(100% - 32px);
    margin: 0 auto 20px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-sizing: border-box;
  }

  #dplayer {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.354 / 1;
    min-height: 0 !important;
    background: #000;
  }

  .row.coursedetails-items {
    width: 90%;
    margin-right: auto;
    margin-left: auto;
  }


  .row.coursedetails-items {
    margin-bottom: 30px;
    border-radius: 0 0 8px 8px;
  }

  .catalogue-item-tit {
    padding: 0 0 20px;
    background: #fff;
  }

  .catalogue-item-content,
  .catalogue-items .catalogue-item-content {
    align-items: center;
    /* min-height: 124px; */
    padding: 16px 24px;
    box-sizing: border-box;
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(42, 51, 66, .06);
  }
  dd:last-child .catalogue-item-content {
    border-bottom: 1px solid #e5e9ef;
  }

  .catalogue-items.catalogue-items-mobile .catalogue-item-content{
    margin-bottom: 8px;
  }

  .catalogue-items dd + dd {
    margin-top: 16px;
  }

  .course-content-box.courseRec {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px !important;
  }

  .course-content-box.courseRec li.list-items-4 {
    width: auto !important;
    margin: 0 !important;
  }

  .course-content-box.courseRec .list-items-4 img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.36 / 1;
    object-fit: cover;
  }
}

