/* 让 body 可以滚动 */
body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 禁止水平滚动 */
}

/* 背景图片容器 */
#background-container {
    width: 100%;
    height: auto; /* 保持高度自适应 */
    text-align: center;
    position: relative; /* 确保背景容器相对定位 */
}

/* 默认 PC 端背景 */
#background-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 头部样式 */
.header {
    position: fixed; /* 改为 fixed，使头部始终固定在顶部 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10; /* 确保头部在背景图之上 */
    text-align: center;
    background-color: white; /* 可选：添加背景色以避免内容穿透 */
}

.header img {
    width: 100%;
    max-width: 800px; /* 限制头部图片的最大宽度 */
    height: auto;
}


/* ✅ 按钮固定在屏幕底部 */
.container {
    position: fixed;
    bottom: 15vh; /* 始终固定在屏幕底部 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 3vw; /* PC 端按钮间距 */
    z-index: 1000; /* 确保按钮位于顶层 */
}

/* ✅ 图片按钮样式 */
.download-button {
    text-decoration: none;
    display: inline-block; /* 去除默认样式 */
    padding: 0; /* 去除内边距 */
    margin: 0; /* 去除外边距 */
    border: none; /* 去除边框 */
    background: none; /* 去除背景 */
    line-height: 0; /* 去除行高导致的空白 */
}

.download-button img {
    width: 20vw; /* PC 端按钮宽度 */
    height: auto; /* 高度自适应，保持图片比例 */
    max-width: 100%; /* 确保图片不超过容器宽度 */
    object-fit: contain; /* 保持图片比例 */
    display: block; /* 去除图片底部空白 */
}

.download-button:hover {
    transform: scale(1.1); /* 鼠标悬停时放大按钮 */
}

.download-button:active {
    transform: scale(1); /* 点击时恢复原大小 */
}

/* ✅ 移动端适配 */
@media (max-width: 768px) {
    #background-image {
        content: url('/images/background-mobile.png'); /* 切换为移动端图片 */
    }

    .container {
        bottom: 8vh; /* 调整移动端的按钮位置 */
        gap: 10vw; /* 移动端按钮间距更大 */
    }

    .download-button img {
        width: 30vw; /* 移动端按钮宽度更大 */
        max-width: 150px; /* 移动端最大宽度 */
        min-width: 80px; /* 移动端最小宽度 */
    }

    /* 移动端头部图片适配 */
    .header img {
        max-width: 100%; /* 移动端头部图片宽度占满屏幕 */
    }


    /* 应用介绍样式 */
    .app-intro {
        max-width: 800px;
        margin: 40px auto;
        padding: 0 20px;
    }

    .slogan {
        font-size: 1.8em;
        font-weight: bold;
        color: #2c3e50;
        text-align: center;
        margin-bottom: 30px;
        line-height: 1.4;
    }


    .feature-list li:hover {
        background: #e9f7fe;
        transform: translateX(5px);
    }

    .feature-list strong {
        color: #2980b9;
    }

    .conclusion {
        font-size: 1.3em;
        text-align: center;
        font-weight: bold;
        color: #e74c3c;
        margin-top: 30px;
        line-height: 1.6;
        padding: 15px;
        background: #fef9e7;
        border-radius: 5px;
    }

    /* 移动端适配 */
    @media (max-width: 768px) {
        .slogan {
            font-size: 1.4em;
        }

        .feature-list li {
            padding: 12px 10px;
            font-size: 0.95em;
        }

        .conclusion {
            font-size: 1.1em;
        }
    }

}