/* --- 1. 全局重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #ffffff;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    /* 电脑端禁止外层滚动，依靠 scroll-wrapper */
    overflow: hidden; 
}

/* --- 2. 顶部悬浮条 --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 60px;
    z-index: 1000;
}

/* --- 3. 底部悬浮条 (垂直居中) --- */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.home, .link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.sep { margin: 0 15px; color: #444; }
.bottom-bar p { font-size: 12px; color: #777; margin-top: 5px; }

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- 4. 滚动容器 (电脑端) --- */
.scroll-wrapper {
    width: 100vw;
    height: 100vh;
    overflow-x: auto;
    overflow-y: auto;
    padding-top: 60px; 
    padding-bottom: 0; 
}

/* --- 5. 主画布 (电脑端 1920x1544 固定布局) --- */
.main-canvas {
    position: relative;
    width: 1920px;
    height: 1544px;
    margin: 0 auto;
    display: block;
    line-height: 0; 
}

.bg-img {
    width: 1920px;
    height: 1544px;
    display: block;
    object-fit: fill;
}

/* --- 6. 按钮组定位 (电脑端绝对定位) --- */
/* --- 新增：下载按钮包裹器与气泡提示 --- */
.btn-download-wrapper {
    position: relative;
    display: inline-block;
    /* 确保容器大小与内部图片一致 */
    text-decoration: none;
}

/* --- 修改：下载按钮气泡提示（电脑端调大、调高） --- */
.bubble-tip {
    position: absolute;
    top: -45px;
    /* <--- 从 -30px 改为 -45px，让气泡整体往上移 */
    right: -15px;
    background-color: #ff3b30;
    color: #ffffff;
    padding: 8px 16px;
    /* <--- 增大内边距，让气泡看起来更饱满 */
    border-radius: 20px;
    font-size: 16px;
    /* <--- 字体从 14px 放大到 16px */
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.4);
    z-index: 10;
    pointer-events: none;

    animation: floatBubble 1.5s infinite ease-in-out alternate;
}

/* 气泡下方的小三角尾巴（等比例稍微放大） */
.bubble-tip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    /* <--- 配合更大的三角形 */
    left: 20px;
    border-width: 8px 8px 0;
    /* <--- 从 6px 放大到 8px */
    border-style: solid;
    border-color: #ff3b30 transparent transparent transparent;
}

/* 浮动动画关键帧 */
@keyframes floatBubble {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-6px);
    }
}
.button-group {
    position: absolute;
    top: 380px;
    right: 320px; 
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 100;
    line-height: normal;
}

.button-group img {
    height: 110px; 
    width: auto;
    display: block;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.6));
    transition: transform 0.2s;
}

.button-group img:hover {
    transform: scale(1.05);
}

/* --- 7. 文案区定位 (电脑端绝对定位) --- */
.content-container {
    position: absolute;
    top: 850px; 
    left: 240px; 
    width: 1200px;
    line-height: 1.8;
}

.content-text {
    font-size: 22px;
    text-shadow: 2px 2px 10px rgba(0,0,0,1);
}

.content-text strong { font-size: 24px; color: #fff; }
.content-text ul { list-style: none; padding-left: 0; }


/* ==============================================================
   PART 2: 手机端适配 (针对你的 1080x1920 新背景图优化)
============================================================== */
@media screen and (max-width: 768px) {

    /* --- 新增：手机端气泡大小与位置微调 --- */
        .bubble-tip {
            top: -24px;
            right: -10px;
            font-size: 11px;
            padding: 4px 8px;
        }
    
        .bubble-tip::after {
            bottom: -4px;
            border-width: 4px 4px 0;
        }
    /* 1. 允许页面纵向自然滚动 */
    body, html {
        overflow: auto;
        height: auto;
        background-color: #230454; /* 确保背景底色是纯黑 */
    }

    /* 2. 滚动容器：处理背景图衔接 */
    .scroll-wrapper {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 100px; /* 给底部悬浮条留空间 */
        
        /* 核心修改：设置新背景图 */
        background-image: url('./image/bg_mobile.jpg'); 
        background-size: 100% auto; /* 宽度撑满手机，高度按比例缩放 */
        background-position: top center; /* 紧贴顶部 */
        background-repeat: no-repeat; /* 不重复，下方露出的就是 body 的黑色 */
    }

    /* 3. 主画布：变为流式容器 */
    .main-canvas {
        width: 100%;
        height: auto; /* 取消 1544px 的固定高度 */
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: normal;
    }

    /* 隐藏电脑版的 img 背景 */
    .bg-img {
        display: none;
    }

    /* 4. 按钮组：根据你的新图构图定位 */
    .button-group {
        position: static;
        /* 根据你的 1080x1920 图中“手机素材”的位置调整此间距，
           确保按钮刚好落在手机图下方 */
        margin-top: 35vh; 
        margin-right: 0;
        align-items: center;
        gap: 12px;
    }

    .button-group img {
        height: 52px; /* 进一步优化手机端按钮大小 */
        width: auto;
    }

    /* 5. 文案区：自动向下撑开 */
    .content-container {
        position: static;
        width: 88%;
        margin: 40px auto 0; /* 距离按钮组 40px */
        text-align: center;
        padding-bottom: 50px; /* 增加内边距，确保文字滚到底部时有呼吸感 */
    }

    .content-text {
        font-size: 14px;
        line-height: 1.6;
        text-align: left; /* 文案较多时，左对齐阅读感更好 */
        background: rgba(0, 0, 0, 0); /* 给文字加个半透明底，防止背景干扰 */
        padding: 15px;
        border-radius: 8px;
    }
    
    .content-text strong { font-size: 16px; }

    /* 6. 悬浮底栏微调 */
    .bottom-bar {
        height: auto;
        padding: 12px 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .sep { display: none; }
}