/* -------------------- 全局和桌面端背景样式 -------------------- */
body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #fff;
    font-size: 16px;
    overflow-x: hidden;
    /* 桌面端背景 */
    background-image: url('../../assets/background.webp');
    background-size: cover;
    background-position: center;
    /* 只修改背景变暗代码 */
    background-color: rgba(0, 0, 0, 0.5); /* 调整透明度，使其更暗 */
    background-blend-mode: multiply;
}

/* -------------------- 桌面端布局 (> 768px) -------------------- */
.app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.top-left-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 100;
}

.top-left-logo img {
    width: 260px;
    height: auto;
}

.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
}

.now-time-img {
    margin-bottom: 20px;
}

.now-time-img img {
    max-width: 300px;
    height: auto;
}

.now-time {
    font-size: 4rem;
    font-weight: bold;
}

.main-content {
    position: absolute;
    right: 1%;
    bottom: 1%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 0;
}

.qr-code-section {
    display: flex;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.qr-code-box {
    border: 5px solid #fff;
    border-radius: 10px;
    padding: 5px;
    background-color: #fff;
}

.download-info-box {
    text-align: left;
    margin-left: 20px;
    max-width: 350px;
}

.title {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
}

.font-tips {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
}

.app-footer {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.bottom-font img {
    max-width: 500px;
}

.right-icon-wrap {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 82px;
    height: 316px;
    background: #0000004d;
    border-radius: 10px;
    z-index: 100;
}

.right-icon-wrap .icon-item {
    width: 66px;
    height: 66px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-icon-wrap .icon-item img {
    width: 100%;
    height: 100%;
}

.btm-btn-wrap {
    display: none;
}

.mobile-top-right-icons {
    display: none;
}

.ios-tips-modal {
    display: none;
}

.android-tips-modal {
    display: none;
}


/* -------------------- 移动端布局 (< 768px) -------------------- */
@media (max-width: 768px) {
    body, html {
        background-image: url('../../assets/h5bg.webp');
        background-color: rgba(0, 0, 0, 0.4);
        background-attachment: fixed;
    }

    .app-container {
        justify-content: flex-start;
        padding-top: 20px;
        overflow: auto;
    }

    .top-left-logo {
        position: absolute;
        top: 20px;
        left: 20px;
        width: auto;
        text-align: left;
        margin: 0;
    }
    
    .top-left-logo img {
        width: 150px;
    }

    .app-header {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
    }

    .now-time-img img {
        max-width: 150px;
        margin-bottom: 1px;
    }

    .now-time {
        font-size: 2.5rem;
    }

    .main-content {
        display: none;
    }
    
    .app-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: none;
        margin: 0;
        padding: 10px 0;
        background-color: rgba(0, 0, 0, 0.5);
    }
    
    .bottom-font {
        width: 100%;
        text-align: center;
    }

    .bottom-font img {
        max-width: 90%;
        height: auto;
    }

    .right-icon-wrap {
        display: none;
    }

    .btm-btn-wrap {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        height: 60px;
        box-sizing: border-box;
        gap: 15px;
    }
    
    .btm-btn-wrap .btn-item {
        width: 48%;
        height: 100%;
        display: block;
    }
    
    .btm-btn-wrap .btn-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .mobile-top-right-icons {
        display: flex;
        flex-direction: row;
        gap: 10px;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 100;
    }
    
    .mobile-top-right-icons .icon-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        color: #fff;
        text-decoration: none;
    }

    .mobile-top-right-icons .icon-item img {
        width: 35px;
        height: 35px;
        margin-bottom: 5px;
    }
    
    .mobile-top-right-icons .icon-item span {
        font-size: 11px;
    }

    .ios-tips-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 999;
        display: none;
        justify-content: center;
        align-items: flex-start;
        overflow: auto;
        padding-top: 1px;
    }

    .ios-tips-modal .modal-content {
        position: relative;
        text-align: center;
        border: none;
        box-shadow: none;
    }

    .ios-tips-modal .modal-content img {
        max-width: 100%;
        height: auto;
    }

    .ios-tips-modal .modal-content .modal-close-btn {
        position: absolute;
        top: 15px;
        left: 15px;
        width: 35px;
        cursor: pointer;
    }

    .android-tips-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 999;
        display: none;
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
    }

    .android-tips-modal .modal-content {
        width: 100%;
        max-width: 450px;
        position: relative;
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .modal-header-android {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background-color: #000;
        z-index: 10;
        display: flex;
        align-items: center;
        padding-left: 15px;
    }
    
    .modal-header-android .modal-close-btn-android {
        width: 35px;
        cursor: pointer;
    }

    .modal-body-android {
        margin-top: 50px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .modal-body-android img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
    }

    .select-device,
    .android-setup-image-display {
        display: none;
    }
}