﻿/* iPhone/Safari mobile compatibility patch. Desktop keeps the original site CSS. */
@media screen and (max-width: 820px) {
  html,
  body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
    background: #f5f6fa;
  }

  body * {
    box-sizing: border-box;
  }

  #app,
  #app > div,
  .child,
  .wrap,
  .width,
  .content,
  .content-all,
  .hot-game-box,
  .hot-game-label {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .wrap,
  .width,
  .hot-game-label {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  img,
  video,
  canvas,
  iframe {
    max-width: 100% !important;
  }

  .tab-box {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: hidden;
    background: #fff;
  }

  .tab-box .content {
    display: block !important;
    height: auto !important;
    padding: 8px !important;
    text-align: center;
  }

  .tab-box .logo {
    display: block;
    max-width: 210px !important;
    height: auto !important;
    margin: 0 auto 8px;
  }

  .tab-box .tab {
    width: 100% !important;
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    white-space: nowrap;
    padding-bottom: 4px;
  }

  .tab-box .tab a,
  .tab-box .tab span {
    flex: 0 0 auto;
  }

  .lyIndex_style {
    display: inline-block;
    padding: 8px 10px !important;
    font-size: 14px !important;
    line-height: 20px !important;
  }

  .topswiper58,
  .swiper-box,
  #test1,
  #preview,
  #preview > div,
  #preview > div > div {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .topswiper58 .wrap {
    padding: 0 !important;
  }

  .swiper-image {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    object-fit: contain !important;
  }

  .swiper_image {
    display: none !important;
  }

  a[href*="agetips"] {
    display: none !important;
  }

  .image-box-activity {
    width: 100% !important;
    min-width: 0 !important;
    margin: 10px 0 0 !important;
    padding: 0 8px !important;
    position: static !important;
    transform: none !important;
  }

  .image-box-activity .content,
  .image-box-activity .head {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .image-box-activity a,
  .image-box-activity .activity,
  .image-box-activity .person,
  .image-box-activity .item {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 10px !important;
  }

  .image-box-activity .item img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .image-box-activity .intro {
    position: static !important;
    width: 100% !important;
    padding: 10px !important;
    background: #fff !important;
  }

  .image-box-activity .title,
  .image-box-activity .subtitle {
    display: block;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  div[align="center"] {
    width: 100% !important;
    margin: 12px 0 !important;
    padding: 0 8px !important;
  }

  div[align="center"] > div[style*="width: 1200px"] {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .class_button,
  .class_button_1,
  .class_button_2 {
    width: calc(50% - 4px) !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 6px !important;
    font-size: 13px !important;
    line-height: 32px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hot-game-label > .dis-flex,
  .tab-search,
  .tab-search > .dis-flex,
  .tab-select {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .hot-game-label .title {
    width: 100% !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 26px !important;
    margin: 10px 0 !important;
  }

  .titleIcon {
    max-width: 58px !important;
    height: auto !important;
  }

  .tab-search {
    padding: 8px !important;
    margin: 8px 0 !important;
  }

  .search-box {
    width: 100% !important;
    height: 34px !important;
    display: flex !important;
    align-items: center;
    margin: 8px 0 !important;
  }

  .search-box .ant-input {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  .search-div {
    flex: 0 0 38px;
  }

  .typesetting {
    display: none !important;
  }

  .game_tuwen_item,
  .game_datu_item,
  .game_liebiao_item,
  .border-d1d1d1.home {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 10px !important;
  }

  .game_tuwen_item .item,
  .game_datu_item .item,
  .game-items {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    padding: 8px !important;
  }

  .item-box,
  .item-detail,
  .item-info,
  .game-detail,
  .game-name,
  .game_label {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
  }

  .item-image,
  .game-image,
  .game-image-box img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .rightimg,
  .az-content,
  .lqzx {
    display: none !important;
  }

  .foot,
  .foot .content,
  .foot .container,
  .foot .table-container,
  .footIconBox {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
  }

  .foot .content,
  .foot .tab,
  .footIconBox {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
  }

  .dialog-content,
  .czshy-dialog > div,
  .layui-layer,
  .layui-layer-content {
    max-width: calc(100vw - 20px) !important;
  }

  .dialog-content {
    height: auto !important;
    background-size: contain !important;
  }
}

@media screen and (max-width: 390px) {
  .class_button,
  .class_button_1,
  .class_button_2 {
    width: 100% !important;
  }

  .lyIndex_style {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 13px !important;
  }
}
