/* 通用样式 */
body {
  background-color: #181818;
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
}
h1 {
  text-align: center;
  margin-bottom: 20px;
  cursor: pointer;
}
.footer {
  text-align: center;
  margin-top: 50px;
  font-size: 14px;
  color: #777;
}

/* 图集列表页样式 */
.search-bar {
  text-align: center;
  margin-bottom: 20px;
}
.search-bar input[type="text"] {
  padding: 10px;
  width: 60%;
  max-width: 400px;
  border-radius: 4px;
  border: 1px solid #555;
  font-size: 16px;
}
.search-bar button {
  padding: 10px 20px;
  background-color: #ffa31a;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 16px;
  cursor: pointer;
}
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.gallery {
  background-color: #333;
  border-radius: 8px;
  margin: 15px;
  overflow: hidden;
  width: calc(25% - 30px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}
.gallery img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.gallery:hover {
  transform: scale(1.05);
}
.gallery h2 {
  font-size: 16px;
  margin: 15px;
  color: #ffa31a;
  text-align: center;
}
.pagination {
  text-align: center;
  margin-top: 40px;
}
.pagination a {
  color: #ffa31a;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
}
@media only screen and (max-width: 768px) {
  .gallery {
    width: calc(50% - 30px);
  }
}

/* 单个图集页面样式 */
.image-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 15px;
  margin-top: 60px; /* 留出空间给固定的标题 */
}
.image {
  background-color: #333;
  border-radius: 8px;
  overflow: hidden;
  width: calc(33% - 30px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image:hover {
  transform: scale(1.05);
}
.back-link {
  display: block;
  text-align: center;
  margin-top: 40px;
  font-size: 18px;
  color: #ffa31a;
  text-decoration: none;
}
.icon-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}
.icon-buttons button {
  background-color: #ffa31a;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}
.icon-buttons button:hover {
  transform: scale(1.1);
}
.icon-buttons button svg {
  width: 24px;
  height: 24px;
  fill: white;
}
@media only screen and (max-width: 768px) {
  .image {
    width: calc(50% - 30px);
  }
}
@media only screen and (max-width: 480px) {
  .image {
    width: calc(100% - 30px);
  }
}
