/* =====================================================
   文件说明：朗朗文化装备详情页面 2 样式表（备用版本）
   主要功能：定义装备详情页面的布局和样式
   依赖文件：由 less/web/equipment-detail-2.less 编译生成
   ===================================================== */

/* 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);
}

/* 移动端导航栏样式（当 useMobileNav=true 时使用） */
.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;
}

/* .equipment-detail-section: 装备详情内容区域容器 */
.equipment-detail-section {
    padding-top: 0;
    position: relative;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

/* 当使用移动端导航栏时，为内容添加顶部间距 */
.equipment-detail-section.has-mobile-nav {
    padding-top: var(--nav-height);
}

/* .equipment-detail-section h1: 装备标题隐藏，仅供SEO使用 */
.equipment-detail-section h1 {
    display: none;
}

/* .equipment-detail-content: 装备详细内容容器 */
.equipment-detail-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* 顶部图片区域 */
.top-image {
    position: relative;
    margin-bottom: 0px;
    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;
    margin: 0 auto;
    width: 100%;
    max-width: none;
    overflow: hidden;
    border-radius: 10px;
    z-index: 10;
    margin-top: 0px;
}

.carousel-section .swiper {
    width: 100%;
    height: auto;
}

.carousel-section .swiper-wrapper {
    height: auto;
}

.carousel-section .swiper-slide {
    height: auto;
}

.carousel-section .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.carousel-section .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-section .swiper-pagination-bullet-active {
    background: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .equipment-detail-section h1 {
        font-size: 28px;
    }
    
    .carousel-section {
        margin-top: 0;
    }
    
    .top-image img {
        height: auto;
        min-height: 200px;
        object-fit: cover;
    }
}

/* 底部图片区域 */
.bottom-image {
    position: relative;
    margin-top: 0px;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.bottom-image img {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
}