/* ==== 幻灯片容器 ==== */
#gallery {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial;
}
#gallery * { box-sizing: border-box; }

/* ==== 幻灯片主图区域 ==== */
#gallery .stage{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#gallery .stage img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: opacity .35s ease;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}
#gallery .meta{
  position:absolute;
  left:12px;
  bottom:12px;
  color:#fff;
  background:rgba(0,0,0,0.4);
  padding:6px 10px;
  border-radius:6px;
  font-size:13px;
}

/* ==== 左右按钮 ==== */
#gallery .btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:60px;
  height:60px;
  border-radius:50%;
  background:rgba(0,0,0,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  border:0;
  cursor:pointer;
  z-index:10;
}
#gallery .btn:hover{background:rgba(0,0,0,0.5)}
#gallery .btn.prev{left:12px}
#gallery .btn.next{right:12px}
#gallery .btn svg{width:28px;height:28px}

/* ==== 缩略图 ==== */
#gallery .thumbs{
  position:relative;
  padding:10px 0;
  border-top:1px solid #eee;
  display:flex;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}
#gallery .list{
  display:flex;
  gap:8px;
}
#gallery .item{
  flex:0 0 auto;
  width:100px;
  height:100px;
  border-radius:6px;
  overflow:hidden;
  cursor:pointer;
  border:2px solid transparent;
}
#gallery .item img{width:100%;height:100%;object-fit:cover;}
#gallery .item.active{border-color:#ff6a00;box-shadow:0 4px 12px rgba(255,106,0,0.18);}

/* ==== 响应式 ==== */
@media (max-width:600px){
  #gallery .btn{width:30px;height:30px;}
  #gallery .btn svg{width:22px;height:22px;}
  #gallery .stage{aspect-ratio: 4 / 3;}
  #gallery .item{width:100px;height:100px;}
}
