/* 基本样式重置 */
body, h1, h2, h3, p, img, span, div {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

header {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

.recently-played {
    background: #fff;
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
}

.game-list {
    column-count: 2; /* 根据需要调整列数 */
    column-gap: 1rem;
    padding: 1rem;
    background-image: url('loading_bg-3e98d.jpg'); /* 替换为你的背景图路径 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.game-item {
    break-inside: avoid; /* 防止元素在列中被拆分 */
    background: #fff;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.game-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.game-item h3 {
    margin: 1rem 0 0.5rem;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}


/* 悬浮图标样式 */
.back-to-home-icon {
    position: fixed; /* 使用固定定位 */
    bottom: 20px; /* 距离页面底部20像素 */
    right: 20px; /* 距离页面右侧20像素 */
    z-index: 1000; /* 确保图标在其他内容之上 */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* 图标的宽度，根据需要调整 */
    height: 50px; /* 图标的高度，根据需要调整 */
    background-color: rgba(0, 0, 0, 0.5); /* 图标背景色，使用半透明的黑色 */
    border-radius: 50%; /* 使图标呈圆形 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* 添加阴影效果 */
    cursor: pointer; /* 鼠标悬停时显示为可点击的手型 */
    transition: background-color 0.3s, transform 0.3s; /* 添加过渡效果 */
}

.back-to-home-icon img {
    width: 100%; /* 图标图片宽度充满容器 */
    height: auto; /* 图标图片高度自动调整 */
}

.back-to-home-icon:hover {
    background-color: rgba(0, 0, 0, 0.7); /* 鼠标悬停时改变背景色 */
    transform: scale(1.1); /* 鼠标悬停时放大图标 */
}