body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}

.container {
    width: 50%;
    margin: auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
}

input[type="text"], input[type="password"], input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid black;
}

th, td {
    padding: 10px;
    text-align: center;
}

footer {
    text-align: center;
    margin-top: 20px;
}

.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.thumbnail {
    width: 320px; /* 固定宽度 */
    height: 240px; /* 固定高度 */
    display: flex; /* 使用flex布局 */
    flex-direction: column; /* 垂直排列 */
    justify-content: space-between; /* 上下对齐，使文字置底 */
    border: 1px solid #ccc; /* 边框 */
    border-radius: 4px; /* 圆角 */
    overflow: hidden; /* 隐藏超出部分 */
    position: relative; /* 为了绝对定位的子元素 */
}

.thumbnail img {
    width: 100%; /* 使图片宽度填满 */
    height: 100%; /* 使图片高度填满 */
    object-fit: cover; /* 确保图像覆盖整个区域并保持比例 */
}

.thumbnail span {
    margin-right: 10px; /* 文件名和按钮的右间距 */
    text-align: center; /* 文件名居中 */
    margin-top: auto; /* 使文件名推到底部 */
}
img {
    max-width: 100px;
    max-height: 100px;
    transition: transform 0.3s ease; /* 平滑过渡效果 */
    cursor: pointer; /* 鼠标悬停时显示为可点击 */
}

img:hover {
    transform: scale(1.5); /* 鼠标悬停时放大1.5倍 */
}