/* ============ 基础重置 ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.5;
    background: #f7f8fa;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

/* ============ 遮罩层（微信/QQ 内提示用浏览器打开） ============ */
.shdow {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 999;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#mask-tip {
    width: 86%;
    max-width: 420px;
    display: block;
    margin: 6vh auto 0;
    opacity: 1;
}

/* ============ 顶部横幅 ============ */
.distribute-header {
    background: url(../images/distribute-bg.png) no-repeat center;
    background-size: cover;
    height: 140px; /* 旧内核（UC U3 等）回退 */
    height: clamp(140px, 34vw, 200px);
}

/* ============ 内容区 ============ */
.distribute-content {
    padding: 0 16px;
    padding-bottom: 30px; /* 旧内核回退 */
    padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
}

.distribute-content .cont {
    max-width: 640px;
    margin: -95px auto 0;
    text-align: center;
}

/* 应用图标 */
.icon-wrap {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrap img {
    width: 120px;
    height: 120px;
    border-radius: 22px;
    border: 1px solid #e5e5e5;
    display: block;
}

/* 应用名称 */
.distribute-content .name {
    font-size: 22px; /* 旧内核回退 */
    font-size: clamp(22px, 6vw, 30px);
    font-weight: 600;
    margin: 16px 0 6px;
    word-break: break-word;
    line-height: 1.3;
}

/* 版本信息 */
.distribute-content .name-info {
    font-size: 14px; /* 旧内核回退 */
    font-size: clamp(13px, 3.6vw, 15px);
    line-height: 1.7;
    color: #8a8f99;
    word-break: break-word;
}

/* 下载按钮 */
.btn-main {
    color: #fff;
    background: #08c1a0;
    border: 1px solid #08c1a0;
}

.distribute-content .download .download-btn {
    height: 48px;
    padding: 0 56px;
    line-height: 48px;
    font-size: 17px;
    margin: 18px auto 0;
    display: inline-block;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(8, 193, 160, 0.28);
    transition: opacity 0.2s;
}

.distribute-content .download .download-btn:active {
    opacity: 0.82;
}

.distribute-content .download .system {
    font-size: 13px;
    color: #8a8f99;
    text-align: center;
    margin-top: 10px;
}

/* 描述卡片 */
.distribute-content .desc {
    width: 100%;
    max-width: 640px;
    margin: 20px auto 0;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    text-align: left;
    font-size: 14px; /* 旧内核回退 */
    font-size: clamp(13px, 3.6vw, 15px);
    line-height: 1.7;
    color: #555;
    word-break: break-word;
}

.distribute-content .desc .title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #08c1a0;
    margin-bottom: 4px;
}

/* 二维码 */
.distribute-content .download-code {
    width: 160px;
    margin: 30px auto 0;
    text-align: center;
}

.distribute-content .download-code canvas {
    width: 146px;
    height: 146px;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    background: #fff;
}

.distribute-content .download-code img {
    width: 146px;
    height: 146px;
}

/* 提示文字 */
.distribute-content .tip {
    font-size: 13px;
    color: #8a8f99;
    text-align: center;
    margin-top: 8px;
}

/* 极小屏微调 */
@media (max-width: 359px) {
    .icon-wrap {
        width: 140px;
        height: 140px;
        border-radius: 22px;
    }
    .icon-wrap img {
        width: 104px;
        height: 104px;
    }
    .distribute-content .download .download-btn {
        padding: 0 44px;
    }
}
