/* 缩略图容器样式 */
.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 水平居中 */
    gap: 20px; /* 增加间距 */
    padding: 20px;
}

/* 缩略图样式 */
.thumbnail {
    width: 200px; /* 增大缩略图尺寸 */
    height: 200px; /* 固定高度 */
    object-fit: cover; /* 保持比例填充容器 */
    border-radius: 10px; /* 圆角 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* 轻微阴影 */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05); /* 悬停放大效果 */
}

/* 详情容器样式 */
.detail-container {
    display: none;
    position: fixed;
    inset: 0; /* 等价于 top:0; right:0; bottom:0; left:0; */
    background-color: rgba(0,0,0,0.85); /* 更暗的背景增强图片对比度 */
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 大图容器 */
.detail-content {
    max-width: 95%;
    max-height: 95vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 大图样式 */
#large-img {
    max-width: 100%;
    max-height: 85vh; /* 增大图片显示区域 */
    object-fit: contain; /* 保持比例完整显示 */
    border-radius: 12px; /* 圆角 */
    box-shadow: 0 8px 30px rgba(0,0,0,0.3); /* 更强阴影突出主体 */
}

/* 文字说明样式 */
#desc-text {
    color: #9D4EDD; /* 更美观的紫色 */
    font-size: 18px; /* 更合适的字体大小 */
    margin-top: 15px;
    max-width: 80%;
    line-height: 1.5;
    font-family: 'Arial', sans-serif;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #9D4EDD; /* 悬停变色 */
}
.back-to-home {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 10px 20px;
    background-color: #747475;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.back-to-home:hover {
    background-color: #3e3e3f;
}

.centered-title {
    text-align: center;
}