/* =====================================================
   文件说明：朗朗文化课程详情页面样式表
   主要功能：定义课程详情页面的布局和样式
   依赖文件：由less/web/course.less编译生成
   ===================================================== */

/* .course-detail-section: 课程详情内容区域容器 */
/* padding-top: 0 移除顶部内边距 */
/* position: relative 设置相对定位 */
/* max-width: 100% 设置最大宽度为100% */
/* margin: 0 设置外边距为0 */
.course-detail-section {
    padding-top: 0;
    position: relative;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

/* .course-detail-section h1: 课程标题隐藏，仅供SEO使用 */
.course-detail-section h1 {
    display: none;
}

/* .course-detail-content: 课程详细内容容器 */
.course-detail-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* 顶部图片区域 */
.top-image {
    position: relative;
    margin-bottom: 50px;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.top-image img {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
}

/* 轮播图区域 */
.carousel-section {
    position: relative;
    left: 50%;
    transform: translateX(-50%) scale(1);
    width: 100%;
    max-width: 1280px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    margin-top: -100px;
    margin-bottom: 200px;
}

.carousel-section .swiper {
    width: 100%;
    height: auto;
}

.carousel-section .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-section .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-section .swiper-pagination-bullet-active {
    background: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .course-detail-section h1 {
        font-size: 28px;
    }
    
    .carousel-section {
        margin-top: -50px;
        margin-bottom: 50px;
    }
}

/* =====================================================
   移动端导航栏样式（当 useMobileNav=true 时使用）
   ===================================================== */

/* CSS 变量定义（移动端导航栏） */
:root {
  --nav-height: 44px;
  --nav-min-height: 44px;
  --nav-max-height: 44px;
  --dropdown-gap: 0;
  --dropdown-max-width: 85vw;
  --dropdown-padding: 3vh;
  --nav-item-gap: 1vh;
  --nav-item-font-size: clamp(12px, 1.8vh, 16px);
}

/* 移动端导航栏样式 */
.header.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  min-height: var(--nav-min-height);
  max-height: var(--nav-max-height);
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: none !important;
}

.header.mobile-header .search-bar {
  height: var(--nav-height);
  min-height: var(--nav-min-height);
  max-height: var(--nav-max-height);
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  box-sizing: border-box;
  box-shadow: none !important;
  width: 100%;
  flex: 1;
}

.header.mobile-header .search-bar .nav-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 15px;
}

.header.mobile-header .search-bar .nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
  z-index: 10001;
  position: relative;
}

.header.mobile-header .back-button {
  width: 30px;
  height: auto;
  cursor: pointer;
  margin-top: 5px;
  transform: scale(1);
  transform-origin: center center;
}

.header.mobile-header .menu-button {
  width: 26px;
  height: auto;
  cursor: pointer;
  margin-top: 5px;
  z-index: 10000;
  position: relative;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transform: scale(1.3);
  transform-origin: center center;
}

/* 下拉列表样式（移动端导航栏） */
.header.mobile-header ~ .dropdown-menu,
.header.mobile-header + .dropdown-menu,
body > .dropdown-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  margin-top: 0;
  z-index: 100000;
  background-color: transparent;
  opacity: 0;
  visibility: hidden;
  display: block !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  overflow-y: auto;
  padding-left: 10px;
  padding-right: 10px;
}

.header.mobile-header ~ .dropdown-menu.active,
.header.mobile-header + .dropdown-menu.active,
body > .dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header.mobile-header ~ .dropdown-menu .dropdown-bg,
.header.mobile-header + .dropdown-menu .dropdown-bg,
body > .dropdown-menu .dropdown-bg {
  position: relative;
  width: 100%;
  max-width: var(--dropdown-max-width);
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  border: 1px solid #ccc;
  padding: var(--dropdown-padding);
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 100001;
  display: block !important;
}

.header.mobile-header ~ .dropdown-menu .dropdown-bg .bg-base,
.header.mobile-header + .dropdown-menu .dropdown-bg .bg-base,
body > .dropdown-menu .dropdown-bg .bg-base {
  display: none;
}

.header.mobile-header ~ .dropdown-menu .dropdown-bg .nav-header,
.header.mobile-header + .dropdown-menu .dropdown-bg .nav-header,
body > .dropdown-menu .dropdown-bg .nav-header {
  display: flex;
  align-items: center;
  padding: 0 0 0 10px;
  cursor: pointer;
  height: auto;
  min-height: 0;
}

.header.mobile-header ~ .dropdown-menu .dropdown-bg .nav-header .home-icon,
.header.mobile-header + .dropdown-menu .dropdown-bg .nav-header .home-icon,
body > .dropdown-menu .dropdown-bg .nav-header .home-icon {
  width: clamp(16px, 2.5vh, 24px);
  height: auto;
  margin-right: 8px;
}

.header.mobile-header ~ .dropdown-menu .dropdown-bg .nav-header .home-text,
.header.mobile-header + .dropdown-menu .dropdown-bg .nav-header .home-text,
body > .dropdown-menu .dropdown-bg .nav-header .home-text {
  font-size: var(--nav-item-font-size);
  font-weight: 500;
  color: #333;
  line-height: normal;
  margin: 0;
  padding: 0;
}

.header.mobile-header ~ .dropdown-menu .dropdown-bg .nav-divider,
.header.mobile-header + .dropdown-menu .dropdown-bg .nav-divider,
body > .dropdown-menu .dropdown-bg .nav-divider {
  height: 1px;
  background-color: #999;
  margin: 0 5px;
  margin-top: 1vh;
}

.header.mobile-header ~ .dropdown-menu .dropdown-bg .nav-images,
.header.mobile-header + .dropdown-menu .dropdown-bg .nav-images,
body > .dropdown-menu .dropdown-bg .nav-images {
  display: grid;
  grid-template-columns: auto auto;
  gap: var(--nav-item-gap);
  padding-top: var(--nav-item-gap);
  box-sizing: border-box;
  z-index: 10;
  justify-items: start;
}

.header.mobile-header ~ .dropdown-menu .dropdown-bg .nav-images .nav-item,
.header.mobile-header + .dropdown-menu .dropdown-bg .nav-images .nav-item,
body > .dropdown-menu .dropdown-bg .nav-images .nav-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  width: max-content;
  justify-content: flex-start;
  padding: 0.5vh;
  min-width: 0;
}

.header.mobile-header ~ .dropdown-menu .dropdown-bg .nav-images .nav-item:nth-child(even),
.header.mobile-header + .dropdown-menu .dropdown-bg .nav-images .nav-item:nth-child(even),
body > .dropdown-menu .dropdown-bg .nav-images .nav-item:nth-child(even) {
  padding-left: 3vw;
}

.header.mobile-header ~ .dropdown-menu .dropdown-bg .nav-images .nav-arrow,
.header.mobile-header + .dropdown-menu .dropdown-bg .nav-images .nav-arrow,
body > .dropdown-menu .dropdown-bg .nav-images .nav-arrow {
  width: clamp(10px, 1.5vh, 16px);
  height: auto;
  margin-right: 5px;
  flex-shrink: 0;
}

.header.mobile-header ~ .dropdown-menu .dropdown-bg .nav-images .nav-text,
.header.mobile-header + .dropdown-menu .dropdown-bg .nav-images .nav-text,
body > .dropdown-menu .dropdown-bg .nav-images .nav-text {
  font-size: var(--nav-item-font-size) !important;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  flex: 0 0 auto;
  word-break: keep-all;
}