* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-image) var(--bg-position, top center);
    background-size: 380px auto;
    background-repeat: no-repeat;
    position: relative;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-position: center var(--download-bar-height, 80px);
    transition: background-position 0.3s ease;
}

/* 滚动时的body样式 */
body.scrolled {
    background-position: var(--bg-position-x, center) var(--bg-position-y-scrolled, top);
}



.content {
    width: 100%;
    position: relative;
    z-index: 10;
    /* 根据720*2333的比例计算高度，宽度优先 */
    height: calc(100vw * 2333 / 720);
    min-height: 100vh;
    padding-top: var(--download-bar-height, 80px);
    transition: padding-top 0.3s ease;
}

/* 滚动时的content样式 */
body.scrolled .content {
    padding-top: 0;
}

/* 下载框整体样式 - 使用CSS变量 */
.btn-dl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--btn-dl-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: var(--btn-dl-backdrop, blur(10px));
    border-bottom: var(--btn-dl-border, 1px solid rgba(0, 0, 0, 0.1));
    box-shadow: var(--btn-dl-shadow, 0 2px 12px rgba(0, 0, 0, 0.1));
    z-index: 1000;
    padding: 12px 16px;
    transition: background 0.3s ease;
}

/* 滚动时的下载框样式 */
body.scrolled .btn-dl {
    background: var(--btn-dl-bg-scrolled, var(--btn-dl-bg, rgba(255, 255, 255, 0.95)));
}

.download-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 16px;
}

/* 左侧logo区域 */
.logo-section {
    flex-shrink: 0;
}

.logo-img {
    width: 59px;
    height: 59px;
    border-radius: 12px;
}

/* 中间信息区域 */
.info-section {
    flex: 1;
    min-width: 0;
}

.app-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-text-color);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.star-rating-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.star-rating {
    display: flex;
    margin-right: 8px;
}



.rate {
    font-size: 12px;
    color: var(--primary-text-color);
}

.introduction {
    font-size: 12px;
    color: var(--primary-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.base-btn {
    background: var(--btn-bg);
    color: var(--btn-text-color, white);
    padding: 10px 28px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: var(--btn-border, none);
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
    box-shadow: var(--btn-shadow);
    text-shadow: var(--btn-text-shadow, );
}



@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}



.star-rating-wrapper {
    margin-bottom: 4px;
}

.star-rating {
    display: flex;
    margin-right: 8px;
}

.star {
    width: 14px;
    height: 14px;
    background: var(--star-color);
    margin-right: 2px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.rate {
    font-size: 12px;
    color: var(--second-text-color);
}

.introduction {
    font-size: 12px;
    color: var(--second-text-color);
}

.btn {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 调整内容区域 */
.content {
    padding-top: var(--download-bar-height, 80px);
    transition: padding-top 0.3s ease;
}



.base-btn-txt {
    font-size: 11px;
    color: var(--second-text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}



@media (max-width: 768px) {
    .content {
        height: calc(100vw * 2333 / 720);
        min-height: 100vh;
        padding-top: 4.9375rem;
    }

    body {
        background-size: 100% auto;
    }

    .btn-dl {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 10px 12px;
    }

    .download-container {
        gap: 12px;
    }



}

@media (min-width: 769px) {
    body {
        width: 620px;
        margin: 0 auto;
        background: var(--bg-image) var(--bg-position, top center) no-repeat;
        background-size: 380px auto;
        background-position: center var(--download-bar-height, 80px);
    }

    .content {
        width: 380px;
        margin: 0 auto;
        height: calc(380px * 2333 / 720);
    }

    /* 桌面端下载按钮样式 */
    .btn-dl {
        width: 380px !important;
        left: 50% !important;
        transform: translateX(-50%);
        padding: 16px 20px;
    }

    .download-container {
        gap: 20px;
    }



    .app-title {
        font-size: 16px;
    }

    .base-btn {
        padding: 10px 25px;
        font-size: 13px;
    }

    /* 如果计算的宽度超过视口宽度，则改为宽度优先 */
    @media (min-width: 769px) and (max-aspect-ratio: 720/2333) {
        body {
            background-size: 100vw auto;
            width: 100vw;
        }

        .content {
            width: 100vw;
            height: calc(100vw * 2333 / 720);
            margin: 0;
        }

        .btn-dl {
            width: 100% !important;
            left: 0 !important;
            transform: none;
            border-radius: 0;
        }
    }
}

.floating-buttons {
    position: fixed;
    right: 10px;
    top: 128px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    background-color: #e6322e;
    color: white;
    font-size: 12px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile.floating-buttons {
    gap: 15px;
    top: 50%;
}

.mobile .fwq-video-btn, .mobile .wl-video-btn {
    display: none;
}

.mobile .floating-btn {
    padding: 0;
    font-size: 12px;
    border-radius: 100%;
    width: 30px;
    height: 30px;
    padding: 8px;
    box-sizing: content-box;
}

a {
    text-decoration: none;
}

.pc-side {
    display: none;
    position: fixed;
    width: 150px;
    right: 0;
    top: 0;
    left: 50%;
    margin-left: 220px;
    height: 100vh;
    box-sizing: border-box;
}

.kefu {
    margin-bottom: 20px;
}

.kefu .tt {
    font-size: 14px;
    color: #000;
    font-weight: bold;
    white-space: nowrap;
}

.kefu .tt2 {
    font-size: 12px;
    color: #494949;
    white-space: nowrap;
}

.kefu img {
    width: 200px;
    height: 200px;
    margin: 5px 0;
}

.info {
    display: none;
}

@media (max-width:768px) {
    body {
        display: block !important;
    }
}

@media (min-width:769px) {
    .download-main {
        width: 380px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .btn-dl {
        /* left: 50% !important; */
        width: 380px !important;
        /* margin-left: -180px;
        position: absolute !important; */
    }

    /* .floating-buttons {
        display: none;
    } */

    .info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        font-size: 12px;
        color: #ccc;
        width: 300px;
    }




    #highcardrecorder .floating-buttons {
        display: flex;
    }

    body {
        width: 620px;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        gap: 20px;
        flex-grow: 1;
    }

    .pc-side {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 30px 0;
    }
}