body {
  font-family: "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 20px;
  background: #fafafa;
  text-align: center;
}

h1 {
  font-size: 48px;
  font-weight: bold;
  font-family: "FangSong", "KaiTi", "STKaiti", cursive, sans-serif;
  color: #ff6f61;
  background: linear-gradient(to right, #ff9a9e, #fad0c4, #fad0c4);
  -webkit-background-clip: text;
  background-clip: text; /* 添加标准属性 */
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery {
  top: 20px;
  position: relative;
  max-width: 1300px;
  margin: auto;
  /* visibility: hidden; */
}

.item {
  width: 25%;
  max-width: 280px;
  margin-bottom: 16px;
  background: white;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

@media (max-width: 768px) {
  .item {
    width: 48%;
  }
}

@media (max-width: 480px) {
  .item {
    width: 100%;
  }
}

.item:hover {
  transform: scale(1.03);
}

.item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  cursor: pointer;
  background-color: #eee;
}

.lazy-img {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

.lazy-img.loaded {
  filter: none;
}

.item p {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  word-break: break-all;
}

/* 大图预览模态框1 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 20px;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  text-align: center;

}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

.close {
  display: inline-block;
  margin: 20px auto 0 auto;
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.close:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

#caption {
  margin: 15px auto;
  text-align: center;
  color: #ddd;
  font-size: 16px;
}

  /* 留言弹窗 */
#commentList {
  max-width: 600px;
  margin: 20px auto;
  text-align: left;
}

.comment {
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.comment-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.comment-modal-content {
  background-color: white;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  /* 添加下面这两个用于居中 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.comment-close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}
textarea {
  width: 100%;
  height: 80px;
  padding: 10px;
}

.background-blur {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url("/images/4101.jpg") center center / cover no-repeat;
  filter: blur(8px);
  opacity: 0.3;
  z-index: -1;
}

.top-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 12px 20px;
  text-align: left;
  z-index: 1002;
}

.nav-title {
  font-size: 20px;
  font-weight: bold;
  color: #ff6f61;
}

.comment-card {
  background: #ffffffaa;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.comment-time {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #888;
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1002;
  backdrop-filter: blur(6px);
}

.nav-title {
  font-size: 24px;
  font-weight: bold;
  color: #ff6699;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-button {
  padding: 6px 12px;
  background-color: #ff6699;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.nav-button:hover {
  background-color: #ff3366;
}

#musicIcon {
  width: 28px;
  height: 28px;
  cursor: pointer;
  vertical-align: middle;
}