/* 全局样式设置 */
html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    user-select: none; /* 防止内容复制 */
}

h1 {
    text-align: center;
    color: #333;
    margin: 20px 0;
    width: 100%; /* 确保标题宽度为 100% */
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    line-height: 0;
    font-size: 0;
    max-width: 1200px;
    width: 100%; /* 在移动端让图片展示区域占满屏幕宽度 */
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0; /* 确保图片无缝衔接 */
}

.image-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    pointer-events: none; /* 防止图片点击保存 */
}

/* 针对手机设备优化 */
@media (max-width: 767px) {
    .image-gallery {
        padding: 0; /* 去除移动端内边距 */
    }
}

/* 针对 PC 端优化 */
@media (min-width: 768px) {
    .image-gallery {
        width: 90%; /* 在 PC 端适当缩小宽度，保持边距 */
    }
}

/* 链接容器样式 */
.link-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px; /* 设置链接之间的间距 */
    z-index: 100;
}

/* 链接样式 */
.qq-contact-link,
.cps-login-link,
.cps-download-link {
    background-color: #007BFF;
    color: white;
    padding: 10px 10px;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap; /* 防止文字换行 */
}

.qq-contact-link:hover,
.cps-login-link:hover,
.cps-download-link:hover {
    background-color: #0056b3;
}