@charset "utf-8";
/* ============================================
   移动端适配样式（经典版 index (2).htm）
   针对手机浏览器（≤768px）重排固定 1920px 布局
   ============================================ */

@media screen and (max-width: 768px) {

  /* ---------- 通用 ---------- */
  body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* ---------- 顶部固定栏：改为随页面滚动，logo 缩小居中 ---------- */
  .topstyle {
    position: static !important;
    height: auto !important;
    background: #fff !important;
  }
  .topstyle tbody,
  .topstyle tr {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .topstyle td {
    display: block;
    width: auto !important;
    float: none;
    padding: 4px 6px;
    text-align: center;
  }
  .topstyle td div {
    text-align: center !important;
  }
  /* 隐藏空的第三列 */
  .topstyle td:last-child {
    display: none;
  }
  .topstyle img {
    width: auto !important;
    height: auto !important;
    max-width: 40vw;
    max-height: 42px;
  }

  /* ---------- 下载 / 充值按钮区 ---------- */
  .navs {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    box-sizing: border-box;
    background: #1a1a1a;
  }
  .navs a {
    float: none !important;
    display: block;
    width: 30%;
    max-width: 120px;
  }
  .navs a img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* ---------- 主视觉视频区：16:9 自适应 ---------- */
  #Version {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    position: relative;
    padding-top: 0;
    overflow: hidden;
  }
  /* 隐藏 1920px 静态背景图，避免撑爆 */
  #Header {
    display: none !important;
  }
  #guodu {
    display: none !important;
  }
  #Flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
  }
  #Flash video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ---------- 各背景区块：改为流式 + 背景铺满 ---------- */
  .YZbg_02,
  .YZbg_04,
  .YZbgfoot {
    width: 100%;
    height: auto;
    left: auto;
    margin: 0;
    position: relative;
    background-size: cover;
    background-position: center top;
    /* 基础样式中的 overflow:hidden 会裁剪装备区，手机上必须可见 */
    overflow: visible !important;
  }
  .YZbgVideo {
    display: none;
  }

  /* ---------- 玩法介绍区 ---------- */
  .YZbg_02 {
    background-image: url("../images/bj_02.jpg");
    padding: 24px 12px 32px;
    box-sizing: border-box;
  }
  .YZbg_02::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
  }
  .YZbg_02 .YZshow {
    position: relative;
    left: auto;
    margin: 0;
    padding: 0;
    width: 100%;
    z-index: 1;
  }

  /* 玩法列表卡片 */
  .aboutYZ_box {
    width: 100%;
    height: auto;
    position: relative;
    margin: 0 auto;
    padding: 0;
    background: none !important;
  }
  .contentYZs {
    line-height: 1.5;
    font-size: 14px;
    margin: 0;
    padding: 8px 10px;
  }
  .contentYZs p {
    margin-bottom: 12px;
    padding-left: 26px;
    position: relative;
  }
  .contentYZs p .YZ_xh {
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    margin-top: -1px;
    margin-left: -26px;
    background-size: contain;
  }

  /* ---------- 装备展示区 ---------- */
  .YZbg_04 {
    background-image: url("../images/bj_04.jpg");
    padding: 20px 6px 28px;
    box-sizing: border-box;
  }
  .YZbg_04::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
  }
  .YZbg_04 .YZshow {
    position: relative;
    left: auto;
    margin: 0;
    padding: 0;
    width: 100%;
    z-index: 1;
  }
  .zhuangbeishow {
    width: 100%;
    height: auto;
    position: relative;
    top: auto;
    left: auto;
    margin: 0 auto;
    padding: 6px 2px;
    box-sizing: border-box;
    text-align: center;
  }
  .zhuangbei_ul {
    display: block;
    margin-bottom: 4px;
    font-size: 0;
    text-align: center;
    clear: both;
    overflow: visible;
  }
  .zhuangbei_ul li {
    float: none;
    display: inline-block;
    vertical-align: top;
    width: 25%;
    margin: 0 !important;
    padding: 2px;
    box-sizing: border-box;
  }
  .container-item {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-size: 100% 100%;
    position: relative;
    overflow: visible;
  }
  .container-item img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52%;
    height: auto;
    max-height: 70%;
    margin: 0 !important;
    object-fit: contain;
  }

  /* 装备大图预览：居中弹层 */
  #preview {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    margin: 0;
    max-width: 85vw;
    max-height: 75vh;
    overflow: auto;
    text-align: center;
    z-index: 999999;
  }
  #preview img {
    max-width: 82vw;
    max-height: 62vh;
    display: block;
  }

  /* ---------- 页脚 ---------- */
  .YZbgfoot {
    background-image: url("../images/footbgimg.jpg");
    padding: 18px 14px;
    box-sizing: border-box;
  }
  .YZbgfoot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
  }
  .YZbgfoot > div {
    position: relative;
    z-index: 1;
  }
  #Layer4,
  #Layer5,
  #layer2 {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    background: none !important;
  }
  .STYLE2 {
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
  }

  /* ---------- 背景音乐按钮：移到右上角 ---------- */
  .musicbox {
    left: auto;
    right: 10px;
    top: 8px;
    margin: 0;
    width: 36px;
    height: 56px;
    background-size: contain;
    z-index: 99999;
  }
}

/* ---------- 超小屏（≤400px）进一步收紧 ---------- */
@media screen and (max-width: 400px) {
  .contentYZs {
    font-size: 13px;
  }
  .zhuangbei_ul li {
    width: 33.33%;
  }
  .topstyle img {
    max-width: 42vw;
  }
}
