body, html {
 margin:0;
 padding:0;
 overflow: hidden;
 height:100%;
}

.container {
 display: flex;
 height:100vh;
 transition: all0.3s;
 flex-direction: row; /* 默认横屏布局 */
}

/* 主图区域 */
.main-container {
 position: relative;
 flex:1;
 overflow: hidden;
}

.main-image {
 width:100%;
 height:100%;
 background-size: contain;
 background-position: center;
 background-repeat: no-repeat;
 transition: background-image0.3s;
}

/* 导航按钮样式 */
.nav-btn {
 position: absolute;
 width:40%;
 height:70%;
 background: rgba(255,255,255,0.05);
 border-radius:0;
 display: flex;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 opacity:0.8;
 transition: opacity0.3s;
 color: #999; /* 图标颜色 */
}

.left {
 left:20px;
 top:70%;
 transform: translateY(-75%);
}

.right {
 right:20px;
 top:70%;
 transform: translateY(-75%);
}

.center {
 bottom:20px;
 left:50%;
 transform: translateX(-50%);
 width:300px;
 height:50px;
 border-radius:5%;
 background: rgba(255,255,255,0.2);
}


/* 缩略图容器 */
.thumbnail-container {
 display: none;
 padding:5px;
 background: rgba(250,250,250,0.1);
}

/* 缩略图项基础样式 */
.thumbnail-item {
 width:120px; /* 固定宽度 */
 height:120px;
 margin:5px;
 background-size: cover;
 background-position: center;
 cursor: pointer;
 transition: transform0.2s;
 box-sizing: border-box;
}

.thumbnail-item:hover {
 transform: scale(1.1);
}

/* 响应式布局 */
@media (orientation: portrait) {
 .container {
 flex-direction: column; /* 竖屏模式切换为纵向布局 */
 }

 /* 竖屏模式下的缩略图容器 */
 .thumbnail-container {
 display: flex !important; /* 强制显示 */
 flex-direction: row; /* 水平排列 */
 flex-wrap: wrap; /* 禁止换行 */
 overflow-x: auto; /* 水平滚动条 */
 white-space: nowrap;
 width:1080px; /* 占满屏幕宽度 */
 max-height:260px; /* 固定容器高度 */
 padding:5px;
 }

 /* 竖屏下缩略图项强制固定宽度 */
 .thumbnail-item {
 width:45px !important;
 height:60px !important;
 margin:2px !important;
 }
}

@media (orientation: landscape) {
 .container { flex-direction: row; }
 .thumbnail-container { width:130px; /* 横屏时右侧竖版 */
 max-height:100%;
 overflow-y: auto;
 overflow-x: hidden;
 }
}

/* 滚动条样式优化（可选） */
.thumbnail-container::-webkit-scrollbar {
 width:8px;
}
.thumbnail-container::-webkit-scrollbar-thumb {
 background: rgba(0,0,0,0.5);
}

