* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	background-color: #FFB74D;
}

header {
        background-color: #FFB74D;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
	font-size: 24px;
	font-weight: bold;
	color: #FAFAFA;
	text-align: center;
	text-shadow: 1px 1px 1px #000000;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	grid-gap: 20px;
	padding: 20px;
	background-color: #FFECB3;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

img {
	width: 100%;
	height: auto;
	border-radius: 5px;
	transition: all 0.3s ease-in-out;
	cursor: pointer;
}

img:hover {
	transform: scale(1.1);
}

.modal {
	display: none;
	position: fixed;
	z-index: 1;
	padding-top: 50px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 95%;
  max-height: 90vh;
  overflow: auto;
}

.close {
	color: #fff;
	float:right;
font-size: 1px;
font-weight: bold;
padding: 0px;
}

.close:hover,
.close:focus {
color: #999;
text-decoration: none;
cursor: pointer;
}

#download-link {
display: block;
margin-top: 30px;
width: 300px; 
position: absolute; /* 设置定位方式为绝对定位 */
left: 50%;
transform: translate(-50%, 0%); 
padding: 10px 20px;
background-color: #FFE57F;
color: #fff;
font-size: 24px;
text-align: center;
text-decoration: none;
border-radius: 5px;
text-shadow: 1px 1px 1px #000000;
cursor: pointer;
}

#download-link:hover {
background-color: #FFB74D;
}

.prev,
.next {
position: absolute;
top: 50%;
font-size: 40px;
font-weight: bold;
padding: 10px;
color: #fff;
cursor: pointer;
transition: all 0.3s ease-in-out;
}

.prev:hover,
.next:hover {
color: #999;
}

.prev {
left: 20px;
}

.next {
right: 20px;
}

footer {
background-color: #FFE0B2;
padding: 10px;
text-align: center;
border-top: 3px solid #FFB74D;
}

footer p {
font-size: 14px;
color: #666;
}
button {
background-color: #FFB74D;
color: white;
border: none;
border-radius: 5px;
padding: 10px 20px;
font-size: 16px;
text-shadow: 1px 1px 1px #000000;
cursor: pointer;
}