body::-webkit-scrollbar {
    display: none;
}

body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* H5 新页面时 body 需要可滚动 */
@media screen and (max-width: 899px) {
    body {
        overflow-y: auto;
        height: auto;
    }
}

@media screen and (min-width: 900px) {
    html {
        font-size: calc(100vw / 9.6)
    }
}

@media screen and (max-width:899px) {
    html {
        font-size: 93.75px;
    }
}

.header {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 99;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header img {
    object-fit: cover;
}

.header .links img {
    width: 15vh;
}

.header .links {
    display: flex;
    gap: 2vh;
    flex-shrink: 1;
    min-width: 0;
}

.pc-bg {
    position: absolute;
    z-index: -1;
}

/* H5 专属元素默认隐藏，移动端媒体查询中打开 */
.h5-only { display: none; }

.pc-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.pc-page .left {
    max-width: 989px;
    width: 100%;
}

.pc-page .left .pc-title {
    width: 100%;
    height: auto;
}

.pc-title-qr {
    display: flex;
    align-items: center;
    gap: 30px;
}

.pc-title-qr-code {
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-title-qr-code canvas,
.pc-title-qr-code img,
.pc-title-qr-code table {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.pc-title-qr .right {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    letter-spacing: 0.05em;
}

.pc-title-qr-tip {
    color: #ffffff;
    font-family: JiangChengXieHei;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 36px;
    font-style: italic;
}
.pc-title-qr-tip-title {
    color: #faff5c;
    font-style: italic;
}
.pc-title-qr-tip-install {
    color: #ffffff;
    font-family: "PingFang SC";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    margin-top: 17px;
    width: 530px;
}

.pc-qr-modal {
    display: none;
}

.pc-qr-modal.is-visible {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
}

.pc-qr-modal .pc-qr-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.pc-qr-modal .pc-qr-panel {
    position: relative;
    z-index: 1;
    width: 360px;
    margin: 16vh auto 0;
    padding: 28px 28px 24px;
    border-radius: 20px;
    background: rgba(30, 34, 41, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.pc-qr-modal .pc-qr-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    line-height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.pc-qr-modal .pc-qr-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 700;
}

.pc-qr-modal .pc-qr-code {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-qr-modal .pc-qr-code canvas,
.pc-qr-modal .pc-qr-code img,
.pc-qr-modal .pc-qr-code table {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.pc-qr-modal .pc-qr-tip {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 1.5;
}

body.pc-qr-open {
    overflow: hidden;
}

main .right {
    max-width: 803px;
    width: 100%;
}

main .swiper-container {
    width: 804px;
    height: 593px;
}

main .tags {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
}

main .tags .tag {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: linear-gradient(180deg, #38B9FF 0%, #005EFF 100%);
    backdrop-filter: blur(0px);
    font-size: 24px;
    color: #fff;
    font-family: "PingFang SC";
    font-weight: 500;
    width: 130px;
    height: 50px;
    line-height: 50px;
    text-align: center;
}

main .swiper-container .swiper-slide {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding:15vh 10vh;
}

main .swiper-container .swiper-slide .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

main .swiper-container .swiper-slide .slide-bg img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    object-position: center center;
}

main .swiper-container .swiper-slide .title {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

main .swiper-container .swiper-slide .title img {
    width: 80%;
    max-width: min(80vw, 900px);
    height: auto;
}

main .swiper-container .swiper-slide .title .tips {
    width: 60%;
    margin-top: 1vh;
    margin-left: 6vh;
}
main .swiper-container .swiper-slide .title .download {
    width: 30%;
    margin-top: 6vh;
    margin-left: 5vh;
}

main .swiper-container .swiper-slide .qrcode-section { 
    display: flex;
    flex-direction: column;
    align-items: center;
}

main .swiper-container .swiper-slide .qrcode-section .qrcode {
    background-color: white;
    padding: 3px;
    border-radius: 2px;
    display: none;
}

/* PC：主文案在左、手机壳 mockup 固定右下，避免大图按百分比撑满屏宽 */
@media screen and (min-width: 900px) {
    .header {
        height: 150px;
        box-sizing: border-box;
        padding-right: 30px;
        padding-left: 40px;
    }

    .header .links {
        gap: 20px;
    }

    .header .links img {
        width: 203px;
        height: autp;
        object-fit: cover;
    }

    .header .logo img {
        width: auto;
        height: 90px;
        object-fit: cover;
    }

    main .swiper-container .swiper-slide {
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
    }

    main .swiper-container .swiper-slide .title {
        position: absolute;
        left: clamp(56px, 4.6vw, 88px);
        top: clamp(138px, 19.1vh, 206px);
        width: min(1155px, 60.2vw);
        align-items: flex-start;
        margin-right: 0;
    }

    /* 仅主标题图（首张），不含 tips / download */
    main .swiper-container .swiper-slide .title > img:first-of-type {
        width: min(1155px, 60.2vw);
        max-width: none;
        height: auto;
    }

    main .swiper-container .swiper-slide .title .tips {
        width: min(684px, 35.6vw);
        max-width: none;
        margin-top: clamp(18px, 2vh, 26px);
        margin-left: 0;
    }

    main .swiper-container .swiper-slide .title .download {
        width: min(348px, 18.1vw);
        max-width: none;
        margin-top: clamp(52px, 7.6vh, 82px);
        margin-left: clamp(42px, 5.3vw, 101px);
        cursor: pointer;
        pointer-events: auto !important;
        position: relative;
        z-index: 8;
    }

    main .swiper-container .swiper-slide .qrcode-section {
        position: absolute;
        right: clamp(84px, 8.8vw, 168px);
        top: clamp(106px, 14.5vh, 157px);
        z-index: 3;
        width: auto;
        pointer-events: none;
    }

    main .swiper-container .swiper-slide .qrcode-section .qr-tips img {
        width: min(409px, 21.3vw);
        max-width: none;
        height: auto;
    }

    .pc-qr-modal .pc-qr-panel {
        margin-top: 180px;
    }
}

/* ===== H5 新页面：仅在 < 900px 显示 ===== */
.h5-page { display: none; }

@media screen and (max-width: 899px) {
    .header {
        height: 86px;
        box-sizing: border-box;
        padding-right: 11px;
        padding-left: 12px;
    }

    .header .links {
        gap: 7px;
    }

    .header .links img {
        width: 84px;
        height: 24px;
        object-fit: cover;
    }
    .header .logo img {
        width: auto;
        height: 40px;
        object-fit: cover;
    }
    .pc-only { display: none !important; }
    .h5-only { display: revert; }
    .header.h5-only { display: flex; }
    .h5-footer.h5-only { display: flex; }
    .h5-page {
        display: block;
        position: relative;
        min-height: 100vh;
        background: #fff;
        overflow-x: hidden;
        padding-top: 86px;
        padding-bottom: 120px;
    }
}

.h5-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.h5-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}


.h5-body {
    position: relative;
    z-index: 1;
    padding-top: 8px;
}
.h5-dl-bar {
    position: relative;
    margin: 0 12px;
    height: auto;
    width: calc(100% - 24px);
    border-radius: 4px;
    cursor: pointer;
}
.h5-dl-bg-img {
    width: 100%;
    height: auto;
}
.h5-tabs {
    position: sticky;
    top: 0;
    z-index: 50;
    margin: 0 8px;
    height: 47px;
    display: flex;
    align-items: center;
    background: rgba(151,193,239,0.8);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    overflow: hidden;
}
.h5-tab-slider {
    position: absolute;
    top: 0; left: 0;
    width: calc(100% / 3);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}
.h5-tab-slider-pill {
    width: 79px;
    height: 24px;
    border-radius: 6px;
    background: #273DFF;
}
.h5-tab {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}
.h5-tab-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 79px;
    height: 24px;
    border-radius: 6px;
    font-family: "PingFang SC", sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: #4144FF;
    background: transparent;
    transition: color 0.25s;
}
.h5-tab.is-active .h5-tab-inner {
    color: #fff;
}

.h5-panels {
    overflow: hidden;
    width: 100%;
}
.h5-panels-track {
    display: flex;
    width: 300%;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.h5-panel {
    display: flex;
    width: calc(100% / 3);
    flex-shrink: 0;
    padding: 0 9px;
    box-sizing: border-box;
}

.h5-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 8px;
    padding: 0 7px;
    justify-content: space-between;
    background-color: #fff;
}
.h5-card-thumb {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.h5-sidebar {
    position: fixed;
    right: 0;
    top: calc(168px + env(safe-area-inset-top, 0px));
    width: 42px;
    min-height: 160px;
    background: rgba(17,17,17,0.87);
    border-radius: 21px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 22px 4.5px;
    box-sizing: border-box;
    z-index: 100;
    border: 0.767px solid #FFF;
    gap: 9px;
}
.h5-sb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
}
.h5-sb-item img {
    width: 18px; height: 18px;
    object-fit: contain;
}
.h5-sb-label {
    font-size: 7.7px;
    color: #DAE8FF;
    letter-spacing: 0.08em;
    font-family: "PingFang SC", sans-serif;
}

.h5-app-banner {
    position: relative;
    width: 100%;
    height: 88px;
    overflow: hidden;
    margin-top: 8px;
    cursor: pointer;
}
.h5-banner-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ===== H5 swiper 自适应 ===== */
.h5-page .swiper-container {
    width: calc(100% - 60px);
    margin: 0 30px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
}

.h5-page .swiper-slide {
    position: relative;
    width: 100%;
    padding: 0;
}

.h5-page .swiper-slide .slide-bg {
    position: relative;
    width: 100%;
    height: auto;
}

.h5-page .swiper-slide .slide-bg img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.h5-title {
    display: block;
    width: 100%;
    height: auto;
    margin: 16px auto 0;
}

.h5-page .tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: calc(100% - 60px);
    margin: 12px auto 0;
}

.h5-page .tags .tag {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: linear-gradient(180deg, #38B9FF 0%, #005EFF 100%);
    backdrop-filter: blur(0px);
    font-size: 15px;
    color: #fff;
    font-family: "PingFang SC";
    font-weight: 500;
    width: 100%;
    height: 32px;
    line-height: 32px;
    text-align: center;
    box-sizing: border-box;
}

.download-buttons {
    display: flex;
    width: 100%;
    gap: 12px;
}

.download-buttons .download-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-buttons .download-btn img {
    width: 100%;
    height: auto;
    display: block;
}

.h5-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: #202027;
    backdrop-filter: blur(8px);
    box-sizing: border-box;
    gap: 8px;
}

.download-note {
    color: #FFF;
    font-family: "PingFang SC";
    font-size: 12px;
    line-height: 17px;
    margin-top: 7px;
}
