/* UCVPN 首页/下载页 自定义样式覆盖
   注意：本文件在模板中最后加载，用于覆盖 styles-index-*.css 与 design-*.css
   改动后需在 index.php / download.php 里同步提升 ?v= 版本号 */

/* ===== 应用商店下载按钮 =====
   所有选择器都收敛在 .store-badges 作用域下（特指度 0,2,0），
   目的是压过下载页 design-global_1.css:58 的
       [class^="dg-"] a { color: inherit }   （特指度 0,1,1）
   否则按钮在下载页会继承成深色文字，黑底看不清。
   .store-badge-icon 上显式给 color，是为了让 fill="currentColor" 的
   苹果 logo 不依赖继承链，任何祖先样式都影响不到它。 */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.store-badges .store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 172px;
    padding: 9px 18px 9px 14px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    line-height: 1;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.store-badges .store-badge:hover {
    background: #1c1c1c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}

.store-badges .store-badge:active {
    transform: translateY(0);
}

.store-badges .store-badge:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.store-badges .store-badge-icon {
    width: 28px;
    height: 28px;
    flex: none;
    color: #fff;
}

.store-badges .store-badge-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: start;
}

.store-badges .store-badge-pre {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .2px;
    opacity: .92;
    white-space: nowrap;
}

.store-badges .store-badge-name {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.2px;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .store-badges {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .store-badges {
        gap: 10px;
        margin-top: 20px;
    }

    .store-badges .store-badge {
        min-width: 0;
        flex: 1 1 44%;
        max-width: 200px;
        padding: 8px 12px;
    }

    .store-badges .store-badge-icon {
        width: 24px;
        height: 24px;
    }

    .store-badges .store-badge-pre {
        font-size: 10px;
    }

    .store-badges .store-badge-name {
        font-size: 16px;
    }
}

/* ===== 修复首页 Hero 主图变形 =====
   styles-index-2.css 在 >=1201px 给 ._HXK1L 设了 height:100% + max-width:584px：
   列高一旦超过 496px（584 / 原图比例 1.177），宽度被 max-width 卡死而高度继续涨，
   图就被纵向硬拉。改回按宽度定尺寸、高度自适应，与 1024~1200px 断点保持一致。 */
._HXK1L {
    object-fit: contain;
}

@media screen and (min-width: 1201px) {
    ._HXK1L {
        height: auto;
        width: 100%;
        max-width: 584px;
    }
}
