/* ===== 下载APP 页面（搜图 → 下载APP） ===== */
#downloadAppOverlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}
#downloadAppOverlay.show { display: flex; }

/* 图片容器：尺寸随图片自适应，热区相对它定位 */
.dl-card {
    position: relative;
    display: inline-block;
    line-height: 0;
    margin: 0 auto;
    max-width: 100vw;
    max-height: calc(100vh - 8px);
    max-height: calc(100svh - 8px);   /* 小视口高度：地址栏展开时也保证整图（含底部下载按钮）完整可见 */
}
.dl-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: calc(100vh - 8px);
    max-height: calc(100svh - 8px);   /* 关键：整图等比缩放到一屏内，底部下载按钮无需滚动即可看到 */
}
@media (min-width: 768px) {
    .dl-img { max-width: 480px; }
}

/* 图1 底部的「安卓下载 / 苹果下载」点击热区（相对图片用百分比定位） */
.dl-hot {
    position: absolute;
    display: block;
    z-index: 2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.dl-hot:active { filter: brightness(0.92); }

/* 关闭按钮：悬浮在图片左上角，始终可见 */
.dl-close {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}
.dl-close i { color: #fff !important; }
