body {
	font-family: 'Arial', sans-serif;
	margin: 0;
	background-color: #f5f5f5;
}

.nav {
	position: -webkit-sticky; /* Safari */
	position: sticky;
	top: 0;
	background: white;
	padding: 20px;
	display: flex;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	z-index: 1000; /* 确保浮动层在其他内容之上 */
}

.filter-panel {
	display: flex;
	align-items: center;
	gap: 20px;
}

.filter-options {
	display: flex;
	gap: 15px;
}

.filter-options label {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-weight: 500;
}

.count-control {
	display: flex;
	align-items: center;
	gap: 10px;
}

.count-control input {
	width: 60px;
	padding: 5px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

#apiSelect {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  min-width: 180px;
}

.search-btn {
  padding: 10px 20px;
  background: linear-gradient(to right, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#imageContainer {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	padding: 20px;
	max-width: 1400px;
	margin: 0 auto;
}

#imageContainer img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s;
	cursor: pointer;
}

#imageContainer img:hover {
	transform: scale(1.03);
}

.modal {
	display: none;
	position: fixed;
	z-index: 100;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	z-index: 10000;
}

.modal-content {
	max-width: 90%;
	max-height: 90%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.close {
	position: absolute;
	top: 15px;
	right: 35px;
	color: white;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
}

.notification {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 10px 20px;
	border-radius: 5px;
	z-index: 1000;
	display: none;
}
