/* 移动端课程页面样式 */
@media screen and (max-width: 768px) {
  /* Banner区域 */
  .banner {
    height: auto;
    min-height: 300rem;
    padding: 0;
    background-size: cover;
    background-position: center;
  }

  .banner-content {
    box-sizing: border-box;
    padding: 0 16rem;
    height: 100%;
    min-height: 300rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8rem;
    padding-top: 16rem;
    margin-bottom: 0;
    font-size: 12rem;
    color: #fff;
    position: relative;
    z-index: 2;
  }

  .breadcrumb-home {
    font-size: 12rem;
    color: #fff;
    text-decoration: none;
  }

  .breadcrumb-separator {
    font-size: 12rem;
    color: #fff;
  }

  .breadcrumb-current {
    font-size: 12rem;
    color: #fff;
  }

  .faq-hero {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: auto;
    margin-bottom: 30rem;
  }

  .faq-overlay {
    background-color: rgba(51, 51, 51, 0.55);
    width: 100%;
    max-width: 100%;
    padding: 24rem 20rem;
    position: relative;
    z-index: 1;
    text-align: center;
  }

  .faq-title {
    font-size: 28rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16rem;
    font-family: sans-serif;
    line-height: 1.2;
  }

  .faq-description {
    font-size: 14rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
  }

  /* 主导航区域 */
  .ecademy-section {
    padding-top: 12rem;
    padding-bottom: 12rem;
    background-color: #ffffff;
  }

  .ecademy-nav {
    border-bottom: 1px solid #e0e0e0;
  }

  .ecademy-nav-inner {
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    gap: 16rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .ecademy-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .ecademy-nav-link {
    padding: 14rem 0;
    font-size: 15rem;
    color: #333;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease;
  }

  .ecademy-nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2rem;
    background-color: #c57a1a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  .ecademy-nav-link.active {
    font-weight: 700;
  }

  .ecademy-nav-link.active::after {
    transform: scaleX(1);
  }

  /* 主内容区域 */
  .main-content-section {
    padding: 24rem 0;
  }

  .main-content-inner {
    padding: 0 16rem;
    display: block;
    gap: 24rem;
    box-sizing: border-box;
  }

  /* 筛选侧边栏 - 移动端隐藏或改为可折叠 */
  .filter-sidebar {
    width: 100%;
    order: 2;
    background-color: rgba(237, 240, 242, 1);
    padding: 20rem 16rem;
    margin-top: 0;
    box-sizing: border-box;
  }

  .filter-title {
    font-size: 16rem;
    padding: 16rem 0;
  }

  .filter-group {
    padding-top: 20rem;
    margin-bottom: 20rem;
    padding-bottom: 12rem;
  }

  .filter-group-title {
    font-size: 15rem;
  }

  .filter-option {
    font-size: 13rem;
    padding: 8rem 0;
  }

  .filter-show-more {
    font-size: 13rem;
  }

  .filter-options-tags {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    gap: 8rem;
    padding-top: 2rem;
  }

  .filter-options-tags-wrap {
    display: flex;
    flex-direction: column;
    gap: 14rem;
  }

  .tag-category-block {
    display: flex;
    flex-direction: column;
    gap: 8rem;
  }

  .tag-category-title {
    font-size: 12rem;
    font-weight: 700;
    color: #144279;
    line-height: 1.4;
    padding-left: 2rem;
  }

  .filter-option-tag {
    position: relative;
    padding: 0;
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    border: 1rem solid #cfd8e3;
    border-radius: 6rem;
    background: #ffffff;
    color: #17405f;
    overflow: hidden;
  }

  .filter-option-tag input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
  }

  .filter-option-tag span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28rem;
    padding: 0 11rem;
    font-size: 12rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
  }

  .filter-option-tag.is-active {
    color: #ffffff;
    border-color: #144279;
    background: #144279;
  }

  /* 内容区域 */
  .content-area {
    width: 100%;
    order: 1;
  }

  /* 课程区域 */
  .courses-section {
    margin-bottom: 40rem;
    padding: 0 !important;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20rem;
    margin-bottom: 30rem;
  }

  .course-card {
    width: 100%;
  }

  .course-image {
    height: 180rem;
  }

  .course-name {
    font-size: 16rem;
    padding: 0 16rem;
    margin: 20rem 0 12rem;
  }

  .course-description {
    font-size: 13rem;
    padding: 0 16rem;
    margin-bottom: 16rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  /* 分页 */
  .pagination {
    flex-wrap: wrap;
    gap: 6rem;
    margin-top: 40rem;
    padding: 16rem 0;
    justify-content: center;
  }

  .pagination-link {
    padding: 6rem 10rem;
    font-size: 12rem;
    min-width: 36rem;
    text-align: center;
  }

  .pagination-ellipsis {
    padding: 6rem 2rem;
    font-size: 12rem;
  }

  /* 隐藏部分分页按钮文字，只显示符号 */
  .pagination-link:first-child,
  .pagination-link:nth-child(2),
  .pagination-link:nth-last-child(2),
  .pagination-link:last-child {
    font-size: 14rem;
    padding: 6rem 8rem;
  }
}

