/* 基础全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0; /* 备用色 */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0 !important; /* 清除手机浏览器默认内边距 */
}

.container {
    position: relative;
    width: 100vw; /* 关键1：用视口宽度100%替代100%，强制顶满屏幕 */
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px; /* 电脑端保留最大宽度，移动端后续覆盖 */
    margin: 0 auto;
}

/* 背景图：全局默认contain，移动端通过媒体查询改cover */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/background.jpg');
    background-position: center; /* 确保图片核心内容居中，避免裁剪关键部分 */
    background-repeat: no-repeat;
    z-index: 1;
    background-size: contain; /* 电脑端保留原效果，避免变形 */
}

/* 可点击图片容器 - 统一定位方式（不变） */
.clickable-image-container,
.clickable-image-container1 {
    position: absolute;
    z-index: 2;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* 图片基础样式 - 限制最大尺寸（不变） */
.clickable-image,
.clickable-image1 {
    height: auto;
    display: block;
    cursor: pointer;
    border: none;
    max-width: 90vw;
    max-height: 80vh;
}

.alternate-link {
    margin-right: 20px;
}

/* 手机端样式：重点解决空白问题 */
@media (max-width: 768px) {
    /* 关键2：背景图改cover，强制填满容器（优先无空白，允许轻微裁剪边缘） */
    .background-image {
        background-size: cover;
    }
    /* 关键3：取消容器最大宽度限制，确保宽度=手机屏幕宽度 */
    .container {
        max-width: none;
        margin: 0; /* 清除自动margin，避免左右留白 */
    }
    /* 图片尺寸优化，与填满的背景图适配（可选，增强视觉协调） */
    .clickable-image {
        max-width: 40vw; /* 接近屏幕宽度，减少图片自身空白 */
        margin-top: -50%;
    }
    .clickable-image1 {
        margin-top: 200%;
        max-width: 67vw; /* 下载图同步优化 */
    }
    .clickable-image-container {
        top: 48%;
    }
}

/* 电脑端样式（保持原有效果不变） */
@media (min-width: 769px) {
    .clickable-image {
        margin-top: -30%;
        margin-left: 20%;
        max-width: 60%;
    }
    .clickable-image1 {
        margin-top: 100%;
        max-width: 60%;
        margin-left: 20%;
    }
    .clickable-image-container {
        top: 50%;
    }
}