        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
                  /* 设置背景图片不重复 */
      background-repeat: no-repeat;

      background-attachment: fixed;
  
      /* 设置背景图片始终覆盖整个容器 */

        }
        .header {
            text-align: center;
            padding: 20px 0;
            /* 使用RGBA颜色值设置背景色 */
            /* 透明度设置为0.3（即30%的透明度） */
            background-color: rgba(200, 200, 200, 0.3);
        }
        .header h1 {
            margin: 0;
        }
        .gallery {
            display: grid;
            grid-template-columns: 1fr;
            justify-items: center;
            gap: 10px;
            padding: 0px;
            margin: 0 auto; /* 水平居中 */
            max-width: 1200px; /* 可选，限制图库的最大宽度 */
        }
        .gallery-item {
            width: 300px; /* 设置宽度 */
            position: relative;
            overflow: hidden;
        }
        .gallery-item img {
            width: 100%;
            height: auto;
            transition: transform 0.3s ease;
        }
        .gallery-item:hover img {
            transform: scale(1.1);
        }
        .gallery-item .title {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 10px;
            background: rgba(0, 0, 0, 0.4);
            color: white;
            font-size: 16px;
            text-align: center;
        }
        .gallery-item .headtitle {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            padding: 10px;
            background: rgba(0, 0, 0, 0.4);
            color: #7bbdff;
            font-size: 16px;
            text-align: center;
        }
        .text-box {
            margin: 0 auto;
            max-width: 600px;
            padding: 15px;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: rgba(200, 200, 200, 0.2);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        body, html {
    height: 100%;
    margin: 0;
}

.container {
    height: 100vh; /* 设置容器高度为视口高度 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover; /* 背景图片覆盖整个容器 */
    background-position: center; /* 背景图片居中显示 */
    background-repeat: no-repeat; /* 不重复背景图片 */
}


/* 默认背景图片（适用于电脑等大屏设备） */
body {
    background-image: url('https://img.starsfall.cn/wallpaper.Firefly?mode=pc');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
}
        .gallery-item {
            width: 500px; /* 设置宽度 */
        }


/* 当屏幕宽度小于700px时（通常适用于手机） */
@media (max-width: 700px) {
    body {
        background-image: url('https://img.starsfall.cn/wallpaper.Firefly?mode=pe');
    }
            .gallery-item {
            width: 300px; /* 设置宽度 */
            }

}


    .collapsible {
    border: 0px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

.collapse-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapse-toggle:checked ~ .collapse-content {
    max-height: 1000px; /* 足够大的值以显示所有内容 */
    padding: 20px;
}

.collapse-label {
    display: block;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    max-width: 200px;
    margin: 0 auto;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.gallery-item .headtitle.highlighted {
    background: #ffeaa7 !important; /* 使用!important确保覆盖 */
    animation: none; /* 移除动画 */
}

/* 或者如果你想保留动画效果 */
@keyframes highlight {
    0% { background: #ffeaa7; }
    100% { background: rgba(0, 0, 0, 0.4); } /* 动画结束后回到原始背景 */
}