/* ===== 全局 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", serif;
  background: #faf8f5;
  color: #3d3a36;
  line-height: 1.8;
}

/* ===== 封面 ===== */
.hero {
  width: 100%;
  height: 70vh;
  background: url('images/cover.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  background: rgba(0,0,0,0.35);
  padding: 2rem 3rem;
  border-radius: 4px;
  text-align: center;
  color: #fff;
}
.hero-overlay h1 {
  font-size: 2.4rem;
  font-weight: normal;
  letter-spacing: 0.25em;
  margin-bottom: 0.5rem;
}
.hero-overlay p {
  font-size: 1rem;
  letter-spacing: 0.4em;
  opacity: 0.8;
}

/* ===== 导航 ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250,248,245,0.96);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  border-bottom: 1px solid #e8e3dc;
  z-index: 100;
}
.nav-item {
  text-decoration: none;
  color: #8c7b6b;
  font-size: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  transition: all 0.3s;
}
.nav-item:hover, .nav-item.active {
  background: #8c7b6b;
  color: #fff;
}

/* ===== 主内容 ===== */
main { max-width: 960px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.section { margin-bottom: 5rem; }

.section-title {
  font-size: 1.3rem;
  font-weight: normal;
  color: #6b5a4e;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd5c8;
}

/* ===== 通用标题 & 说明 ===== */
.item-title {
  font-size: 1rem;
  color: #3d3a36;
  font-weight: 500;
}
.item-desc {
  font-size: 0.82rem;
  color: #9a8a7a;
  margin-top: 0.2rem;
  line-height: 1.6;
}
.card-caption { padding: 0.8rem 1rem; }
.card-caption .item-title { text-align: center; }
.card-caption .item-desc { text-align: center; }

/* ===== 分享按钮 ===== */
.share-btn {
  display: inline-block;
  cursor: pointer;
  font-size: 0.78rem;
  color: #a09080;
  padding: 0.2rem 0.6rem;
  border: 1px solid #d8d0c4;
  border-radius: 2rem;
  transition: all 0.25s;
  user-select: none;
}
.share-btn:hover {
  background: #8c7b6b;
  color: #fff;
  border-color: #8c7b6b;
}

/* ===== 图片区 ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.photo-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}
.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.photo-img-wrap {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.photo-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.photo-img-wrap:hover img { transform: scale(1.05); }
.photo-img-wrap .share-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(255,255,255,0.9);
}
.photo-img-wrap:hover .share-btn { opacity: 1; }
.card-caption { text-align: center; }

/* ===== 视频区 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}
.video-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.video-wrap {
  position: relative;
  padding-top: 56.25%;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.video-card .card-caption { text-align: left; }
.video-card .card-caption .share-btn {
  margin-top: 0.4rem;
  font-size: 0.8rem;
}

/* ===== 音乐区 ===== */
.music-list { display: flex; flex-direction: column; gap: 1rem; }
.music-item {
  background: #fff;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  gap: 1rem;
}
.music-info { flex: 1; }
.music-meta { font-size: 0.82rem; color: #9a8a7a; margin-top: 0.2rem; }
.music-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 200px;
}
.music-item audio { width: 200px; height: 36px; }

/* 歌词折叠区 */
.lyrics-toggle {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #8c7b6b;
  cursor: pointer;
}
.lyrics-toggle summary { user-select: none; outline: none; }
.lyrics-toggle[open] summary { color: #6b5a4e; }
.lyrics-content {
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  background: #faf8f5;
  border-left: 3px solid #d8d0c4;
  border-radius: 0 4px 4px 0;
  color: #6b5a4e;
  font-size: 0.85rem;
  line-height: 2;
  white-space: pre-wrap;
}

/* ===== 灯箱（大图预览） ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: -2rem;
  right: 0;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { color: #fff; }
.lightbox-caption {
  color: #fff;
  margin-top: 1rem;
}
.lightbox-title { font-size: 1.1rem; margin-bottom: 0.3rem; }
.lightbox-desc { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.lightbox-share { margin-top: 0.8rem; }
.lightbox-share .share-btn {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
}
.lightbox-share .share-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

/* ===== 分享弹窗 ===== */
.share-panel {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  width: 320px;
  text-align: center;
}
.share-title {
  font-size: 1.1rem;
  color: #3d3a36;
  margin-bottom: 1.5rem;
}
.share-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.share-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 2rem;
  transition: transform 0.2s;
}
.share-icon:hover { transform: scale(1.15); }
.share-icon span { font-size: 0.75rem; color: #6b5a4e; }
.share-close {
  margin-top: 1.5rem;
  color: #9a8a7a;
  cursor: pointer;
  font-size: 0.9rem;
}
.share-close:hover { color: #6b5a4e; }

/* ===== 空状态提示 ===== */
.empty-tip {
  text-align: center;
  padding: 3rem;
  color: #b0a090;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

/* ===== 页脚 ===== */
.footer {
  text-align: center;
  padding: 2rem;
  color: #b0a090;
  font-size: 0.85rem;
  border-top: 1px solid #ede8e0;
}

/* ===== 手机适配 ===== */
@media (max-width: 600px) {
  .hero-overlay h1 { font-size: 1.6rem; }
  .nav { gap: 1rem; font-size: 0.9rem; }
  main { padding: 2rem 1rem 4rem; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .video-grid { grid-template-columns: 1fr; }
  .music-item { flex-direction: column; }
  .music-controls { width: 100%; flex-direction: row; justify-content: space-between; }
  .music-item audio { width: 100%; }
  .share-icons { gap: 1rem; }
  .share-icon { font-size: 1.8rem; }
}
