/* Loading dots animation */
@keyframes animate_dots {
  0% {
    opacity: 1
  }
  to {
    opacity: 0
  }
}
@-webkit-keyframes animate_dots {
  0% {
    opacity: 1
  }
  to {
    opacity: 0
  }
}
.dot0,
.dot1 {
  animation: animate_dots 0.9s infinite;
  -moz-animation: animate_dots 0.9s infinite;
  -webkit-animation: animate_dots 0.9s infinite;
  -o-animation: animate_dots 0.9s infinite
}
.dot1 {
  animation-delay: 0.2s;
  -webkit-animation-delay: 0.2s
}
.dot2 {
  animation: animate_dots 0.9s infinite;
  -moz-animation: animate_dots 0.9s infinite;
  -webkit-animation: animate_dots 0.9s infinite;
  -o-animation: animate_dots 0.9s infinite;
  animation-delay: 0.4s;
  -webkit-animation-delay: 0.4s
}
.dots_item {
  display: inline-block;
  margin-right: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4886ff
}
.verify-icon {
  position: absolute;
  width: 100%;
  margin-top: 70px;
  text-align: center
}
.t-embed-loading {
  position: relative;
  width: 300px;
  height: 230px;
  background-color: #fff
}
.t-embed-dots {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -22.5px;
  margin-top: -5px
}
.t-embed-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  background: #4886ff
}
.t-mask {
  width: 100%;
  height: 100%;
  position: fixed;
  _position: absolute;
  left: 0;
  top: 0;
  background: #000;
  opacity: 0.5;
  filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50);
  z-index: 2000000000
}

/* 首页轮播 */
.banner-wrap {
  width: 100%;
  max-width: 1800px;
  overflow: hidden;
  position: relative;
  margin: 50px auto 0;
  background: #000;
}

.banner-swiper,
.banner-swiper.swiper-container {
  width: 100% !important;
  height: auto;
  background: #000 !important;
}

.banner-swiper .swiper-wrapper {
  height: auto !important;
  background: #000 !important;
}

.banner-swiper .swiper-slide {
  height: auto !important;
  width: 100% !important;
}

.banner-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-pagination {
  width: auto !important;
  left: 76% !important;
  bottom: 30px !important;
}

.banner-pagination span {
  width: 18px;
  height: 18px;
  background: #d6d5dd;
  opacity: 1;
}

.banner-pagination .swiper-pagination-bullet-active {
  width: 30px;
  background: #fff;
  border-radius: 20px;
}

.banner-swiper .move {
  position: absolute;
  top: 164px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  color: #f4f5f7;
}

.banner-swiper .move .icon {
  display: inline-block;
  vertical-align: middle;
  position: relative;
}

.banner-swiper .move .icon img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 6px;
}

.banner-swiper .move .icon i {
  display: inline-block;
  width: 203px;
  height: 185px;
  background: url(../images/ic-bg.png) no-repeat center;
  background-size: cover;
  position: absolute;
  left: -60%;
  top: -50%;
  z-index: -1;
}

.banner-swiper .move .qr {
  display: inline-block;
  width: 109px;
  height: 102px;
  background: url(../images/qr-bg.png) no-repeat center;
  background-size: cover;
  margin-left: 42px;
  vertical-align: middle;
}

.banner-swiper .move .qr img {
  display: block;
  width: 94px;
  height: 94px;
  margin-left: 11px;
  margin-top: 4px;
}

.banner-swiper .move h3 {
  font-size: 36px;
  font-weight: bold;
  line-height: 88px;
  padding-top: 12px;
}

.banner-swiper .move p {
  padding-bottom: 64px;
  padding-left: 3px;
}

.banner-swiper .move a.btn {
  display: block;
  width: 160px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  color: #f4f5f7;
  background: var(--primary-dark);
  border-radius: 20px;
  position: relative;
}

.banner-swiper .move a.btn:after {
  content: '';
  background: url(../images/drop-right.png) no-repeat center;
  width: 9px;
  height: 15px;
  position: absolute;
  right: 36px;
  top: 14px;
}

/* 热门游戏 */
.hot-games {
  padding-bottom: 40px;
}

.hot-games .title {
  padding: 40px 0 30px;
}

.hot-games .title .icon {
  float: left;
  width: 58px;
  height: 52px;
  background: url(../images/hot-games.png) no-repeat center;
  background-size: cover;
  vertical-align: middle;
}

.hot-games .title h3,
.hot-games .title h2 {
  float: left;
  font-weight: normal;
  font-size: 32px;
  color: #fff;
}

.hot-games .title h3 i,
.hot-games .title h2 i {
  color: #f27048;
}

.hot-games .title h3 span,
.hot-games .title h2 span {
  color: #d9dada;
  padding-left: 16px;
}

.hot-games .title .more {
  float: right;
  font-size: 14px;
  color: #bbb;
  border: 1px solid #bbb;
  border-radius: 20px;
  background: #fff;
  padding: 4px 18px;
  margin-top: 12px;
}

.hot-games .games-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 35px 38px;
  width: 100%;
}

.hot-games .games-list li {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.hot-games .games-list li .game-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.hot-games .games-list li:hover img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.hot-games .games-list li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-transition: 0.6s all ease;
  transition: 0.6s all ease;
}

.hot-games .games-list li:hover {
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-box-shadow: 0 4px 10px 0 #999;
  box-shadow: 0 4px 10px 0 #999;
}

.hot-games .games-list li:hover .cover {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.hot-games .games-list .cover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

.hot-games .games-list .game-icon {
  display: block;
  width: 40%;
  max-width: 101px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 25% auto 0;
  border-radius: 6px;
}

.hot-games .games-list .game-title {
  font-size: clamp(14px, 2vw, 20px);
  font-weight: bold;
  color: #fff;
  padding: 8% 0 15%;
}

.hot-games .games-list .cover a,
.hot-games .games-list .cover .enter-btn {
  text-align: center;
  font-size: clamp(12px, 1.5vw, 14px);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 4% 12%;
  display: inline-block;
}

.hot-games .games-list li.no-game {
  background: rgba(255, 255, 255, 0.8);
}

.hot-games .games-list li.no-game:hover {
  -webkit-box-shadow: 0 0 0 transparent;
  box-shadow: 0 0 0 transparent;
}

.hot-games .games-list li.no-game p {
  text-align: center;
  font-size: 24px;
  color: #c3c3c3;
  padding-top: 132px;
}

.hot-games .games-list li.no-game h3 {
  text-align: center;
  font-size: 33px;
  font-weight: bold;
  color: #c3c3c3;
}

/* 最新动态 */
.hot-news .title {
  padding: 40px 0 30px;
  position: relative;
}

.hot-news .title .icon {
  float: left;
  width: 40px;
  height: 52px;
  background: url(../images/hot-news.png) no-repeat center;
  background-size: cover;
  vertical-align: middle;
}

.hot-news .title h3 {
  float: left;
  font-weight: normal;
  font-size: 32px;
  color: #2e2f2f;
}

.hot-news .title h3 i {
  color: #4cc622;
}

.hot-news .title h3 span {
  color: #d9dada;
  padding-left: 16px;
}

.hot-news .title .more {
  float: right;
  font-size: 14px;
  color: #bbb;
  border: 1px solid #bbb;
  border-radius: 20px;
  background: #fff;
  padding: 4px 18px;
  margin-top: 12px;
}

.hot-news .news-pagination {
  float: right;
  margin: 16px 20px 0 0;
}

.hot-news .news-pagination span {
  margin: 0 4px;
  border-radius: 50%;
}

.hot-news .swiper-pagination-bullet-active {
  background: #5ac92c;
  outline: none;
}

.hot-news .news-list {
  margin-right: -64px;
}

.hot-news .news-list li {
  float: left;
  width: 564px;
  height: 92px;
  margin: 0 64px 54px 0;
}

.hot-news .news-list .news-img {
  float: left;
  width: 180px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  background: url(../images/news-bg.png) no-repeat center;
  background-size: cover;
}

.hot-news .news-list a:hover img {
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}

.hot-news .news-list .news-img img {
  width: 100%;
  height: 100%;
  -webkit-transition: 0.6s all ease;
  transition: 0.6s all ease;
}

.hot-news .news-list .news-txt {
  float: right;
  width: 364px;
  font-size: 14px;
  color: #666;
  overflow: hidden;
}

.hot-news .news-list .news-txt h3 {
  height: 24px;
  font-size: 16px;
  line-height: 24px;
  font-weight: normal;
  color: #333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.hot-news .news-list .news-txt span {
  color: #bbb;
}

.hot-news .news-list .news-txt p {
  height: 48px;
  line-height: 24px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.apply {
  background: url(../images/apple-line.jpg) repeat-x top;
  padding: 48px 0 68px;
}

.apply li {
  float: left;
  width: 20%;
}

.apply li .icon {
  display: inline-block;
  width: 76px;
  height: 69px;
  margin-right: 4px;
  vertical-align: middle;
  position: relative;
  top: -4px;
}

.apply li .icon1 {
  background: url(../images/apple-icon1.png) no-repeat;
}
.apply li a:hover .icon1 {
  background: url(../images/apple-icon01.png) no-repeat;
}

.apply li .icon2 {
  background: url(../images/apple-icon2.png) no-repeat;
}
.apply li a:hover .icon2 {
  background: url(../images/apple-icon02.png) no-repeat;
}

.apply li .icon3 {
  background: url(../images/apple-icon3.png) no-repeat;
}
.apply li a:hover .icon3 {
  background: url(../images/apple-icon03.png) no-repeat;
}

.apply li .icon4 {
  background: url(../images/apple-icon4.png) no-repeat;
}
.apply li a:hover .icon4 {
  background: url(../images/apple-icon04.png) no-repeat;
}
.apply li .icon5 {
  background: url(../images/apple-icon5.png) no-repeat;
}
.apply li a:hover .icon5 {
  background: url(../images/apple-icon05.png) no-repeat;
}

.apply li .text {
  display: inline-block;
}

.apply li h3 {
  font-size: 18px;
  font-weight: normal;
  color: #35383d;
}

.apply li p {
  font-size: 14px;
  color: #a6aaad;
}

.apply li.li1 a:hover h3 {
  color: #2a8df6;
}
.apply li.li1 a:hover p {
  color: #7cb1f7;
}
.apply li.li2 a:hover h3 {
  color: #e7b552;
}
.apply li.li2 a:hover p {
  color: #fec34a;
}
.apply li.li3 a:hover h3 {
  color: #b18ffc;
}
.apply li.li3 a:hover p {
  color: #df98fd;
}
.apply li.li4 a:hover h3 {
  color: #3ccf66;
}
.apply li.li4 a:hover p {
  color: #6ac583;
}
.apply li.li5 a:hover h3 {
  color: #fa9659;
}
.apply li.li5 a:hover p {
  color: #f06a6d;
}

/* 视频播放区域 */
.video-section {
  width: 100%;
  background: #000;
  position: relative;
}

.video-section.hidden {
  display: none;
}

.video-container {
  width: 100%;
  min-width: 600px;
  max-width: 1800px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* 视频加载占位区域 - 16:9比例 */
.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-placeholder.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 加载进度条 */
.loading-progress {
  width: 60%;
  max-width: 300px;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--primary-color, #1890ff);
  border-radius: 2px;
  transition: width 0.2s ease;
}

.progress-text {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.video-controls {
  position: absolute;
  top: 30px;
  right: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  z-index: 10;
}

.video-controls-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  color: #fff;
}

.video-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.video-btn svg {
  pointer-events: none;
}

/* 清晰度切换按钮 */
.video-btn.quality-btn {
  width: auto;
  min-width: 50px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 18px;
  letter-spacing: 0.5px;
}

/* 移动端响应式 */
@media (max-width: 1200px) {
  /* 全局宽度限制 */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* body和容器宽度设置 */
  body, html {
    min-width: auto !important;
    max-width: none !important;
    width: 100% !important;
    overflow-x: hidden;
  }

  body .container, body main, .container, main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 页眉宽度为屏幕宽度的90% */
  .sy-header {
    height: 4vh !important;
    min-height: 40px !important;
    width: 100% !important;
    min-width: auto !important;
    position: relative !important;
  }

  .sy-header .header {
    width: 80% !important;
    max-width: none !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap;
  }

  /* 隐藏banner区域 */
  .banner-wrap {
    display: none;
  }

  /* 视频区域宽度为屏幕宽度的90% */
  .video-section {
    margin-top: 10px;
    width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .video-container {
    width: 100% !important;
    min-width: auto !important;
    max-width: none !important;
    position: relative;
  }

  /* 热门游戏区域宽度为屏幕宽度的90% */
  .hot-games {
    width: 90% !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .hot-games .games-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hot-games .games-list li {
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    box-sizing: border-box !important;
  }

  .hot-games .games-list li a,
  .hot-games .games-list li .game-link {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
  }

  .video-container video {
    pointer-events: none;
  }

  .video-controls {
    position: absolute;
    top: 15px;
    right: 5px;
    justify-content: flex-end;
    gap: 8px;
    z-index: 1;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .video-controls-right {
    gap: 8px;
  }

  .video-btn {
    width: 44px;
    height: 44px;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
  }

  .video-btn:active {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(0.95);
  }

  .video-btn.quality-btn {
    width: auto;
    min-width: 56px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 22px;
  }

  .hot-games .games-list li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 移动端：取消下拉效果，文本直接显示在底部 */
  .hot-games .games-list .cover {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    background: rgba(0, 0, 0, 0.7) !important;
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
    padding: 5px 0 !important;
  }

  .hot-games .games-list .game-icon {
    display: none;
  }

  /* 热门游戏标题居中，字号适配移动端 */
  .hot-games .title {
    text-align: center;
    padding: 15px 0 10px;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .hot-games .title h2,
  .hot-games .title h3 {
    float: none;
    display: block;
    font-size: 24px;
    max-width: 100% !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hot-games .title .icon,
  .hot-games .title .more {
    display: none;
  }

  .hot-games .games-list .game-title {
    font-size: 24px;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.2;
  }

  .hot-games .games-list .cover a,
  .hot-games .games-list .cover .enter-btn {
    font-size: clamp(12px, 3vw, 14px);
    padding: 5px 20px;
  }
}
