﻿/* H5 首页底部下载条 - 沿用原悬浮栏定位 */
.home-a2hs-bar,
.home-a2hs-modal {
  display: none;
}

@media screen and (max-width: 640px) {
  .home-a2hs-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;
    display: block;
    height: 64px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .home-a2hs-bar[hidden],
  .home-a2hs-modal[hidden] {
    display: none !important;
  }

  .home-a2hs-bar-inner {
    position: relative;
    width: 100%;
    max-width: 375px;
    height: 64px;
    margin: 0 auto;
    overflow: hidden;
  }

  .home-a2hs-bg {
    position: absolute;
    top: -7px;
    left: 55px;
    z-index: 0;
    width: 126px;
    height: 42px;
    max-width: none;
    margin: 0 !important;
    object-fit: cover;
    pointer-events: none;
  }

  .home-a2hs-logo {
    position: absolute;
    top: 23px;
    left: 17px;
    z-index: 1;
    width: 120.74px;
    height: 23.25px;
    max-width: none;
    margin: 0 !important;
    object-fit: fill;
  }

  .home-a2hs-text {
    position: absolute;
    top: 24.39px;
    left: 135.95px;
    z-index: 1;
    width: 152.05px;
    height: 23.65px;
    max-width: none;
    margin: 0;
    object-fit: fill;
  }

  .home-a2hs-add {
    position: absolute;
    top: 23px;
    right: 11px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    box-sizing: border-box;
    gap: 2px;
    flex-wrap: nowrap;
    margin: 0;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: #ff2b2b;
    color: #fff;
    font-size: 10px;
    font-weight: 400;
    line-height: 12px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
  }

  .home-a2hs-add img {
    width: 12px;
    height: 12px;
    margin: 0 !important;
  }

  .home-a2hs-bar-close {
    position: absolute;
    top: 4px;
    right: 3px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .home-a2hs-bar-close img {
    width: 16px;
    height: 16px;
    margin: 0 !important;
  }

  .home-a2hs-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
  }

  .home-a2hs-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    transform: translateY(-14px);
  }

  .home-a2hs-guide {
    display: block;
    width: 343px;
    max-width: calc(100vw - 32px);
    height: auto;
    margin: 0 !important;
    border-radius: 15px;
  }

  .home-a2hs-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .home-a2hs-modal-close img {
    width: 25px;
    height: 25px;
    margin: 0 !important;
  }

  body.home-a2hs-modal-open {
    overflow: hidden !important;
  }
}
