/* 首页专属样式 */

/* 轮播 1280*460 */
.banner{
  width:1280px;
  max-width:100%;
  height:460px;
  margin:0 auto 30px;
  position:relative;
  overflow:hidden;
  border:1px solid #c0c0c0;
  box-shadow:0 0 20px rgba(192,192,192,0.3);
  background:#111
}

/* 轮播容器 - 强制每次只显示一张图片 */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 轮播项 - 绝对定位确保层叠显示 */
.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  overflow: hidden;
  z-index: 1;
}

/* 活动轮播项 - 显示在最上层 */
.carousel-item.active {
  opacity: 1;
  z-index: 2;
  animation: scale 8s ease-in-out infinite;
}

/* 自动缩放动画 - 禁止裁剪，确保完整显示 */
@keyframes scale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* 圆点指示器 */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #d4af37;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(212, 175, 55, 0.8);
}

/* 轮播图片 - 使用contain模式确保完整显示不裁剪 */
.carousel-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  min-width: 100%;
  min-height: 100%;
}

/* 桌面端响应式 (≥1280px) - 固定高度460px */
@media(min-width:1280px){
  .banner{
    width:1280px;
    max-width:100%;
    height:460px;
    margin:0 auto 30px;
    position:relative;
    overflow:hidden
  }

  .carousel-item img {
    object-fit: cover
  }
}

/* 平板端响应式 (768px-1279px) - 高度自适应，最大50vh */
@media(min-width:768px) and (max-width:1279px){
  .banner{
    width:100%;
    height:auto;
    min-height:460px;
    max-height:50vh;
    margin:0 auto 30px;
    position:relative;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center
  }

  .carousel{
    position:relative
  }

  .carousel-item {
    position:relative;
    width:100%;
    height:100%
  }

  .carousel-item img {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center
  }
}

/* 移动端响应式 (≤768px) - 高度自适应，最大50vh */
@media(max-width:769px){
  .banner{
    width:100%;
    height:auto;
    min-height:460px;
    max-height:50vh;
    margin:0 auto 20px;
    position:relative;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center
  }

  .carousel{
    position:relative
  }

  .carousel-item {
    position:relative;
    width:100%;
    height:100%
  }

  .carousel-item img {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center
  }
}

/* 小屏移动设备 (≤480px) - 高度自适应，最大45vh */
@media(max-width:480px){
  .banner{
    width:100%;
    height:auto;
    min-height:300px;
    max-height:45vh;
    margin:0 auto 15px;
    position:relative;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center
  }

  .carousel{
    position:relative
  }

  .carousel-item {
    position:relative;
    width:100%;
    height:100%
  }

  .carousel-item img {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center
  }
}

/* 悬浮按钮 */
.float-btn{
  position:absolute;
  right:20px;
  top:50%;
  transform:translateY(-50%);
  background:linear-gradient(135deg, #d4af37, #c0c0c0);
  color:#000;
  padding:20px 15px;
  border-radius:50%;
  font-weight:bold;
  border:none;
  cursor:pointer;
  box-shadow:0 0 15px rgba(192,192,192,0.5);
  transition:all 0.3s;
  text-align:center;
  width:120px;
  height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 10;
}

@media(max-width:1280px){
  .banner{
    width:100%;
    height:auto;
    min-height:460px;
    max-height:60vh
  }

  /* 大轮播响应式 */
  .carousel,
  .carousel-item,
  .carousel-item img {
    position:relative
  }
  
  .carousel-item {
    position:absolute
  }
}

.float-btn:hover{
  background:linear-gradient(135deg, #c0c0c0, #d4af37);
  transform:translateY(-50%) scale(1.05)
}

/* 按钮动画 */
@keyframes pulse {
  0% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 15px rgba(192,192,192,0.5);
  }
  50% {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
  }
  100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 15px rgba(192,192,192,0.5);
  }
}

@keyframes flash {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.float-btn.pulse {
  animation: pulse 2s infinite ease-in-out, flash 3s infinite ease-in-out;
}

/* 弹窗 */
#modal{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.95);
  z-index:9999;
  align-items:center;
  justify-content:center
}

.modal-box{
  background:#0a0a0a;
  width:90%;
  max-width:400px;
  padding:30px;
  border:2px solid #d4af37;
  text-align:center;
  box-shadow:0 0 25px rgba(192,192,192,0.4)
}

.modal-box h2{
  color:#d4af37;
  margin-bottom:20px;
  text-shadow:0 0 8px rgba(212, 175, 55, 0.6)
}

.code{
  background:#111;
  border:1px dashed #c0c0c0;
  padding:15px;
  font-size:18px;
  color:#d4af37;
  margin:20px 0
}

.close-btn{
  margin-top:10px;
  padding:8px 20px;
  background:linear-gradient(135deg, #d4af37, #c0c0c0);
  border:none;
  border-radius:4px;
  cursor:pointer;
  color:#000;
  font-weight:bold;
  transition:all 0.3s
}

.close-btn:hover{
  background:linear-gradient(135deg, #c0c0c0, #d4af37)
}

/* 下载按钮 带图标 分颜色 */
.download{
  margin:40px 0;
  text-align:center
}

.download-wrap{
  display:flex;
  justify-content:center;
  gap:30px;
  flex-wrap:wrap
}

.download-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:220px;
  padding:22px 0;
  font-size:18px;
  font-weight:bold;
  color:#fff;
  border-radius:10px;
  text-decoration:none;
  box-shadow:0 6px 15px rgba(0,0,0,0.4);
  transition:all 0.3s;
}

.download-btn i{
  font-size:22px;
}

.download-btn:hover{
  transform:translateY(-5px);
  opacity:0.9;
}

/* 安卓：橘黄色 */
.download-btn.android {
  background: #f59e0b;
  color: #000;
}

/* 苹果：银色 */
.download-btn.apple {
  background: #c0c0c0;
  color: #000;
}

/* TapTap：天蓝色 */
.download-btn.taptap {
  background: #1fb8ed;
  color: #000;
}

/* 合并后的轮播+资讯容器 */
.combined-container{
  background:#0a0a0a;
  border:1px solid #c0c0c0;
  margin:30px 0;
  border-radius:8px;
  overflow:hidden;
}

/* 顶部切换按钮栏 */
.combined-tabs{
  display:flex;
  border-bottom:1px solid #c0c0c0;
}

.combined-tab-btn{
  flex:1;
  text-align:center;
  padding:12px 0;
  background:#0a0a0a;
  border:none;
  color:#ccc;
  font-weight:bold;
  cursor:pointer;
  transition:all 0.3s;
  font-size:16px;
}

.combined-tab-btn.active{
  background:linear-gradient(135deg, #d4af37, #c0c0c0);
  color:#000;
}

.combined-tab-btn:hover:not(.active){
  color:#c0c0c0
}

/* 内容区域 */
.combined-content{
  display:flex;
  min-height:280px;
}

/* 轮播区域（占1/2） */
.combined-banner{
  flex:1;
  position:relative;
  overflow:hidden;
  border-right:1px solid #c0c0c0;
  background:#111;
  min-height:280px
}

/* 小轮播容器 - 强制每次只显示一张图片 */
.mini-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* 小轮播项 - 绝对定位确保层叠显示 */
.mini-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  overflow: hidden;
  z-index: 1;
}

/* 活动小轮播项 - 显示在最上层 */
.mini-carousel-item.active {
  opacity: 1;
  z-index: 2;
  animation: scale 8s ease-in-out infinite;
}

/* 小轮播图片 - 使用contain确保完整显示不裁剪 */
.mini-carousel-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  min-width: 100%;
  min-height: 100%;
}

/* 小轮播响应式 */
@media(min-width:1280px){
  .combined-banner{
    min-height:280px;
    max-height:280px
  }

  .mini-carousel-item img {
    object-fit:cover
  }
}

/* 平板端小轮播 (768-1279px) */
@media(min-width:768px) and (max-width:1279px){
  .combined-banner{
    min-height:240px;
    max-height:50vh
  }

  .mini-carousel{
    position:relative
  }

  .mini-carousel-item{
    position:relative;
    width:100%;
    height:100%
  }

  .mini-carousel-item img{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center
  }
}

@media(max-width:769px){
  .combined-banner{
    min-height:240px;
    max-height:50vh
  }

  .mini-carousel{
    position:relative
  }

  .mini-carousel-item{
    position:relative;
    width:100%;
    height:100%
  }

  .mini-carousel-item img{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center
  }
}

@media(max-width:480px){
  .combined-banner{
    min-height:200px;
    max-height:45vh
  }

  .mini-carousel-item img{
    object-fit:contain
  }
}

/* 小轮播圆点指示器 */
.mini-carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.mini-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mini-indicator.active {
  background: #d4af37;
  transform: scale(1.2);
}

.mini-indicator:hover {
  background: rgba(212, 175, 55, 0.8);
}

/* 文字内容区域（占1/2） */
.combined-text{
  flex:1;
  padding:15px;
  display:none;
}

.combined-text.active{
  display:block;
}

/* 通用列表样式 */
.content-list li{
  list-style:none;
  padding:8px 0;
  border-bottom:1px dashed #222
}

.content-list li:last-child{
  border-bottom:none
}

.content-list a{
  color:#ccc;
  text-decoration:none;
  transition:all 0.3s;
  display:block
}

.content-list a:hover{
  color:#c0c0c0;
  padding-left:8px
}

/* 游戏特色 4个卡片带图 */
.features{
  margin:40px 0;
  text-align:center
}

.features h2{
  color:#d4af37;
  margin-bottom:20px;
  text-shadow:0 0 8px rgba(212, 175, 55, 0.6)
}

.features-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:center
}

.feature-item{
  background:#0a0a0a;
  width:250px;
  padding:0;
  border-radius:8px;
  border:1px solid #c0c0c0;
  transition:all 0.3s;
  overflow:hidden;
}

.feature-item:hover{
  transform:translateY(-5px);
  box-shadow:0 8px 15px rgba(192,192,192,0.3);
}

.feature-img{
  width:100%;
  height:160px;
  background:linear-gradient(45deg, #000, #1a1a1a);
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid #c0c0c0;
}

.feature-img img{
  width:100%;
  height:100%;
  object-fit:cover
}

.feature-text{
  padding:20px
}

.feature-item h3{
  color:#d4af37;
  margin-bottom:10px
}

.feature-item p{
  color:#c0c0c0
}

/* 轮播响应式 - 确保所有屏幕尺寸正确显示 */
@media(max-width:768px){
  .banner {
    height:auto;
    min-height:300px;
    max-height:50vh
  }

  .carousel-item img,
  .mini-carousel-item img {
    position:absolute
  }
}

@media(max-width:480px){
  .banner {
    height:auto;
    min-height:250px;
    max-height:45vh
  }

  /* 小轮播响应式 */
  .combined-banner {
    min-height:200px
  }
}
