/* ==================== CSS变量 ==================== */
:root {
  /* 背景色系 - 深褐夜色 */
  --bg-darkest: #120a06;
  --bg-dark: #1a0f0a;
  --bg-mid: #241510;
  --bg-light: #2e1d14;
  --bg-card: #1e120c;

  /* 主色 - 暖金 */
  --gold: #d4a04a;
  --gold-bright: #e8b563;
  --gold-dim: #9a7838;
  --gold-faint: #5c4828;

  /* 强调色 - 朱砂红 */
  --red: #c8392f;
  --red-dark: #9a2a22;
  --red-bright: #e04938;
  --red-glow: rgba(200, 57, 47, 0.25);

  /* 文字色 */
  --text-main: #f5e6c8;
  --text-dim: #a8927a;
  --text-faint: #6b5a48;
  --text-bright: #fff5e0;

  /* 灯笼光晕 */
  --lantern-glow: rgba(212, 160, 74, 0.2);
  --lantern-glow-strong: rgba(232, 181, 99, 0.4);

  /* 红绸 */
  --silk-red: rgba(200, 57, 47, 0.35);
  --silk-red-light: rgba(224, 73, 56, 0.2);

  /* 边框 */
  --border-gold: rgba(212, 160, 74, 0.25);
  --border-red: rgba(200, 57, 47, 0.3);

  /* 阴影 */
  --shadow-warm: 0 4px 30px rgba(212, 160, 74, 0.1);
  --shadow-deep: 0 8px 40px rgba(0, 0, 0, 0.5);

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* 过渡 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  background: var(--bg-darkest);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* 背景纹理 - 暗色丝绸底纹 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('images/Dark_warm_textured_silk_backgr_2026-07-01T19-00-14.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* 选中文字 */
::selection { background: var(--red); color: var(--text-bright); }

/* ==================== 通用组件 ==================== */
.main-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.main-content.visible { opacity: 1; }

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 4rem 1rem 1.5rem;
}
.divider-line {
  flex: 0 0 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}
.divider-text {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.4em;
  text-shadow: 0 0 20px var(--lantern-glow);
}

.section-hint {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

/* ==================== 加载页 ==================== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-darkest) url('images/A_single_glowing_traditional_C_2026-07-01T19-00-13.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-lantern-wrap {
  margin-bottom: 3rem;
  perspective: 200px;
}

.loading-lantern {
  position: relative;
  width: 70px;
  height: 90px;
  animation: lanternSwing 3s ease-in-out infinite;
  transform-origin: top center;
}

.lantern-top {
  width: 30px;
  height: 6px;
  margin: 0 auto;
  background: var(--gold-dim);
  border-radius: 2px 2px 0 0;
}
.lantern-body {
  position: relative;
  width: 70px;
  height: 60px;
  background: radial-gradient(ellipse at center, var(--red-bright) 0%, var(--red) 40%, var(--red-dark) 100%);
  border-radius: 50% / 40%;
  border: 2px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 30px var(--red-glow),
    0 0 60px rgba(200, 57, 47, 0.15),
    inset 0 0 20px rgba(0, 0, 0, 0.3);
  animation: lanternFlicker 2s ease-in-out infinite;
}
.lantern-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--lantern-glow-strong) 0%, transparent 70%);
  border-radius: 50%;
  animation: lanternFlicker 2s ease-in-out infinite;
}
.lantern-text {
  font-family: 'Ma Shan Zheng', serif;
  font-size: 1.8rem;
  color: var(--gold-bright);
  text-shadow: 0 0 10px var(--gold-bright);
  z-index: 1;
}
.lantern-bottom {
  width: 30px;
  height: 6px;
  margin: 0 auto;
  background: var(--gold-dim);
  border-radius: 0 0 2px 2px;
}
.lantern-tassel {
  width: 2px;
  height: 18px;
  margin: 0 auto;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
}

.loading-bar-wrap {
  width: 200px;
  height: 3px;
  background: rgba(212, 160, 74, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--gold-dim), var(--gold-bright));
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--gold);
}

.loading-text {
  margin-top: 1.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}

/* ==================== 开场页 ==================== */
.intro-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-darkest);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  transition: opacity 1s ease, visibility 1s ease;
  overflow: hidden;
}
.intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-bg-lanterns {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.intro-lantern {
  position: absolute;
  width: 50px;
  height: 65px;
  background: radial-gradient(ellipse at center, var(--red-bright) 0%, var(--red-dark) 100%);
  border-radius: 50% / 40%;
  border: 2px solid var(--gold-dim);
  box-shadow: 0 0 40px var(--red-glow), 0 0 80px rgba(200, 57, 47, 0.1);
  animation: lanternSwing 4s ease-in-out infinite;
}
.intro-lantern-1 { top: 15%; left: 15%; animation-delay: 0s; }
.intro-lantern-2 { top: 20%; right: 18%; animation-delay: 1s; }
.intro-lantern-3 { bottom: 25%; left: 50%; animation-delay: 2s; }

.intro-content {
  text-align: center;
  z-index: 1;
  animation: introFadeUp 1.5s ease;
}

.intro-seal {
  display: inline-block;
  padding: 0.3rem 1.2rem;
  border: 1px solid var(--red);
  color: var(--red-bright);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  margin-bottom: 2rem;
  background: rgba(200, 57, 47, 0.05);
}

.intro-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--gold-bright);
  letter-spacing: 0.15em;
  text-shadow:
    0 0 30px var(--lantern-glow-strong),
    0 0 60px var(--lantern-glow);
  line-height: 1.2;
}

.intro-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-dim);
  letter-spacing: 0.5em;
  margin-top: 1rem;
  font-weight: 300;
}

.intro-desc {
  color: var(--text-faint);
  font-size: 0.95rem;
  margin-top: 2rem;
  letter-spacing: 0.15em;
}

.intro-enter-btn {
  margin-top: 3rem;
  padding: 0.8rem 2.5rem;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.3em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.intro-enter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.intro-enter-btn:hover {
  border-color: var(--gold);
  color: var(--text-bright);
  box-shadow: 0 0 30px var(--lantern-glow);
  letter-spacing: 0.4em;
}
.intro-enter-btn:hover::before { opacity: 0.15; }
.intro-enter-btn svg { transition: transform var(--transition); }
.intro-enter-btn:hover svg { transform: translateX(4px); }

/* ==================== Hero区 ==================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  overflow: hidden;
  background: url('images/Chinese_Song_Dynasty_night_cit_2026-07-01T19-00-14.png') center/cover no-repeat;
}

/* Hero暗色遮罩 - 确保文字清晰 */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 10, 6, 0.5) 0%, rgba(18, 10, 6, 0.3) 40%, rgba(18, 10, 6, 0.6) 100%);
  z-index: 0;
}

/* Hero底部遮罩 - 盖住AI水印 */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(18, 10, 6, 0.95) 0%, rgba(18, 10, 6, 0.5) 40%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

/* Hero文字层提升 - 位于遮罩之上 */
.hero-seal, .hero-title, .hero-subtitle, .hero-days, .hero-quote {
  position: relative;
  z-index: 1;
}

/* Hero背景灯笼 */
.hero-lanterns {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-lantern {
  position: absolute;
  width: 80px;
  height: 100px;
  background: radial-gradient(ellipse at center, var(--red-bright) 0%, var(--red) 50%, var(--red-dark) 100%);
  border-radius: 50% / 40%;
  border: 3px solid var(--gold-dim);
  box-shadow:
    0 0 50px var(--red-glow),
    0 0 100px rgba(200, 57, 47, 0.1),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
  animation: lanternSwing 5s ease-in-out infinite, lanternFlicker 3s ease-in-out infinite;
}
.hero-lantern-left {
  top: 10%;
  left: 8%;
  animation-delay: 0s, 0.5s;
}
.hero-lantern-right {
  top: 12%;
  right: 8%;
  animation-delay: 1.5s, 1s;
}
/* 灯笼顶部绳子和底部流苏 */
.hero-lantern::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold-faint));
}
.hero-lantern::after {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 50%;
  width: 3px;
  height: 25px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
}

.hero-content {
  text-align: center;
  z-index: 1;
  animation: introFadeUp 1.5s ease 0.3s both;
}

.hero-seal-wrap {
  margin-bottom: 1.5rem;
}
.hero-seal {
  display: inline-block;
  padding: 0.4rem 1.5rem;
  border: 1px solid var(--red);
  color: var(--red-bright);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  background: rgba(200, 57, 47, 0.05);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  text-shadow: 0 0 40px var(--lantern-glow-strong);
  line-height: 1.3;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-dim);
  letter-spacing: 0.3em;
  margin-top: 0.8rem;
  font-weight: 300;
}

.hero-days {
  margin: 2rem 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
}
.hero-days-num {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 30px var(--lantern-glow-strong);
  line-height: 1;
}
.hero-days-label {
  font-size: 1.2rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
}

.hero-quote {
  font-family: 'Ma Shan Zheng', serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-main);
  letter-spacing: 0.15em;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  animation: bounceDown 2s ease-in-out infinite;
}

/* ==================== 结义简介 ==================== */
.intro-info-section {
  padding: 2rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}
.intro-info-content {
  text-align: center;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 2.2;
  letter-spacing: 0.08em;
}

/* ==================== 成员画卷 ==================== */
.members-section {
  padding: 0 1rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.members-accordion {
  display: flex;
  gap: 0.5rem;
  height: 500px;
  margin-top: 1rem;
}

.member-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: flex var(--transition-slow);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
}

.member-card.active {
  flex: 6;
  border-color: var(--gold-dim);
  box-shadow: 0 0 30px var(--lantern-glow);
}

.member-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow), filter var(--transition-slow);
  filter: brightness(0.4) saturate(0.6);
}
.member-card.active .member-card-bg {
  filter: brightness(0.6) saturate(0.8);
  transform: scale(1.05);
}

/* 未激活遮罩 - 灯笼暗光 */
.member-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(26, 15, 10, 0.5) 0%,
    rgba(26, 15, 10, 0.8) 60%,
    rgba(26, 15, 10, 0.95) 100%);
  transition: opacity var(--transition);
}
.member-card.active .member-card-overlay {
  background: linear-gradient(to bottom,
    rgba(26, 15, 10, 0.2) 0%,
    rgba(26, 15, 10, 0.5) 50%,
    rgba(26, 15, 10, 0.9) 100%);
}

/* 竖排标题 */
.member-card-vertical-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  writing-mode: vertical-rl;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-shadow: 0 0 15px var(--lantern-glow);
  transition: opacity var(--transition);
  white-space: nowrap;
}
.member-card.active .member-card-vertical-title {
  opacity: 0;
}

/* 卡片内容 */
.member-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}
.member-card.active .member-card-content {
  opacity: 1;
  transform: translateY(0);
}

.member-card-rank {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--red);
  color: var(--red-bright);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.8rem;
  background: rgba(200, 57, 47, 0.1);
}

.member-card-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.member-card-motto {
  font-family: 'Ma Shan Zheng', serif;
  font-size: 1.1rem;
  color: var(--text-main);
  opacity: 0.8;
  margin-bottom: 0.8rem;
}

.member-card-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-card-expand-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--gold);
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.4s ease 0.5s;
}
.member-card.active .member-card-expand-hint {
  opacity: 0.6;
}

/* ==================== 轮播图 ==================== */
.carousel-section {
  padding: 0 1rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-deep);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 450px;
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(18, 10, 6, 0.9) 0%,
    rgba(18, 10, 6, 0.3) 50%,
    transparent 100%);
}

.carousel-slide-caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
}
.carousel-slide-caption h3 {
  font-size: 1.3rem;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.carousel-slide-caption p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 15, 10, 0.7);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.carousel-btn:hover {
  background: rgba(212, 160, 74, 0.2);
  border-color: var(--gold);
  color: var(--text-bright);
}
.carousel-btn-prev { left: 1rem; }
.carousel-btn-next { right: 1rem; }

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212, 160, 74, 0.3);
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-dot.active {
  background: var(--gold-bright);
  width: 24px;
  border-radius: 4px;
}

/* ==================== 江湖纪事 ==================== */
.timeline-section {
  padding: 0 1rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-container {
  position: relative;
  padding: 1rem 0;
}
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent, var(--gold-dim), var(--gold-dim), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
}
.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item-content {
  flex: 1;
  padding: 1.2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  margin: 0 2rem;
  transition: all var(--transition);
}
.timeline-item-content:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 20px var(--lantern-glow);
  transform: translateY(-2px);
}

.timeline-date {
  color: var(--red-bright);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.timeline-title {
  color: var(--gold-bright);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.timeline-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 10px var(--lantern-glow-strong);
  z-index: 1;
}

/* ==================== 江湖留影 ==================== */
.album-section {
  padding: 0 1rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.album-filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.album-filter-btn {
  padding: 0.4rem 1.2rem;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.album-filter-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.album-filter-btn.active {
  background: rgba(212, 160, 74, 0.1);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.album-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-gold);
  transition: all var(--transition);
}
.album-item:hover {
  border-color: var(--gold);
  box-shadow: 0 0 25px var(--lantern-glow);
  transform: translateY(-3px);
}
.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.album-item:hover img {
  transform: scale(1.08);
}
.album-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 10, 6, 0.9), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 0.8rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.album-item:hover .album-item-overlay {
  opacity: 1;
}
.album-item-caption {
  color: var(--gold-bright);
  font-size: 0.85rem;
}
.album-item-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.15rem 0.6rem;
  background: rgba(200, 57, 47, 0.7);
  color: var(--text-bright);
  font-size: 0.7rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

/* ==================== 江湖寄语 ==================== */
.guestbook-section {
  padding: 0 1rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

.guestbook-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.guestbook-form-title,
.guestbook-list-title {
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-gold);
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.gb-input,
.gb-textarea {
  background: var(--bg-mid);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  width: 100%;
  resize: none;
}
.gb-input:focus,
.gb-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--lantern-glow);
}
.gb-input::placeholder,
.gb-textarea::placeholder {
  color: var(--text-faint);
}

.gb-char-count {
  text-align: right;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.gb-submit-btn {
  padding: 0.7rem;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border: none;
  color: var(--text-bright);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.gb-submit-btn:hover {
  background: linear-gradient(135deg, var(--red), var(--red-bright));
  box-shadow: 0 0 20px var(--red-glow);
}

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.gb-message {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-left: 3px solid var(--gold-dim);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  transition: all var(--transition);
  animation: messageSlideIn 0.5s ease;
}
.gb-message:hover {
  border-left-color: var(--gold);
  box-shadow: 0 0 15px var(--lantern-glow);
}

.gb-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.gb-message-name {
  color: var(--gold-bright);
  font-weight: 500;
  font-size: 0.95rem;
}
.gb-message-time {
  color: var(--text-faint);
  font-size: 0.75rem;
}
.gb-message-text {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==================== 每日点卯 ==================== */
.checkin-section {
  padding: 0 1rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.checkin-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

.checkin-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.checkin-btn {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  background: radial-gradient(circle, var(--red-dark) 0%, var(--bg-card) 100%);
  color: var(--gold-bright);
  font-family: 'Ma Shan Zheng', serif;
  font-size: 1.8rem;
  letter-spacing: 0.3em;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  box-shadow: 0 0 30px var(--red-glow);
}
.checkin-btn:hover {
  border-color: var(--gold);
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--lantern-glow-strong);
}
.checkin-btn:active {
  transform: scale(0.95);
}
.checkin-btn.checked {
  background: radial-gradient(circle, var(--gold-dim) 0%, var(--bg-card) 100%);
  cursor: default;
}
.checkin-btn.checked .checkin-btn-text {
  color: var(--text-dim);
  font-size: 1.2rem;
}

.checkin-stats {
  display: flex;
  gap: 2rem;
}
.checkin-stat {
  text-align: center;
}
.checkin-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-bright);
}
.checkin-stat-label {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.15em;
}

.checkin-right {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.checkin-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cal-nav-btn {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.cal-nav-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 160, 74, 0.1);
}
.cal-month-label {
  color: var(--gold-bright);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.checkin-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 1.5rem;
}
.cal-day-header {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  padding: 0.3rem 0;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.cal-day.empty { visibility: hidden; }
.cal-day.today {
  border: 1px solid var(--gold);
  color: var(--gold-bright);
}
.cal-day.checked {
  background: rgba(212, 160, 74, 0.15);
  color: var(--gold-bright);
}
.cal-day.checked::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}
.cal-day.future {
  opacity: 0.3;
}

.checkin-leaderboard {
  border-top: 1px solid var(--border-gold);
  padding-top: 1rem;
}
.leaderboard-title {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.8rem;
  background: var(--bg-mid);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.leaderboard-item:hover {
  background: rgba(212, 160, 74, 0.08);
}
.leaderboard-rank {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
}
.leaderboard-rank.rank-1 { background: var(--gold); color: var(--bg-dark); }
.leaderboard-rank.rank-2 { background: var(--gold-dim); color: var(--bg-dark); }
.leaderboard-rank.rank-3 { background: var(--red); color: var(--text-bright); }
.leaderboard-rank.rank-other { background: var(--bg-light); color: var(--text-dim); }
.leaderboard-name {
  flex: 1;
  color: var(--text-main);
  font-size: 0.9rem;
}
.leaderboard-count {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ==================== 页脚 ==================== */
.site-footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border-gold);
  background: var(--bg-darkest);
}
.footer-name {
  font-size: 1.3rem;
  color: var(--gold-bright);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.footer-desc {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}
.footer-quote {
  font-family: 'Ma Shan Zheng', serif;
  color: var(--text-faint);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.footer-links {
  margin-bottom: 1.5rem;
}
.footer-share-btn {
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.footer-share-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 160, 74, 0.08);
}
.footer-copyright {
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ==================== 弹幕层 ==================== */
.danmaku-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}
.danmaku-item {
  position: absolute;
  white-space: nowrap;
  font-size: 1rem;
  color: var(--text-main);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  animation: danmakuScroll linear forwards;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(26, 15, 10, 0.4);
  backdrop-filter: blur(4px);
}
.danmaku-item.danmaku-gold {
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
}
.danmaku-item.danmaku-red {
  color: var(--red-bright);
  border: 1px solid var(--border-red);
}

/* ==================== BGM播放器 ==================== */
.bgm-player {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(26, 15, 10, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  backdrop-filter: blur(10px);
  z-index: 200;
  transition: all var(--transition);
}
.bgm-player:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 20px var(--lantern-glow);
}

.bgm-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: rgba(212, 160, 74, 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.bgm-btn:hover {
  background: rgba(212, 160, 74, 0.2);
  border-color: var(--gold);
}

.bgm-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.bgm-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.bgm-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
}
.bgm-bar {
  width: 3px;
  height: 4px;
  background: var(--gold-dim);
  border-radius: 1px;
  transition: height 0.2s ease;
}
.bgm-player.playing .bgm-bar {
  animation: bgmBarDance 0.6s ease-in-out infinite alternate;
}
.bgm-player.playing .bgm-bar:nth-child(1) { animation-delay: 0s; }
.bgm-player.playing .bgm-bar:nth-child(2) { animation-delay: 0.1s; }
.bgm-player.playing .bgm-bar:nth-child(3) { animation-delay: 0.2s; }
.bgm-player.playing .bgm-bar:nth-child(4) { animation-delay: 0.15s; }
.bgm-player.playing .bgm-bar:nth-child(5) { animation-delay: 0.05s; }

/* ==================== 回到顶部 ==================== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: rgba(26, 15, 10, 0.85);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 200;
  backdrop-filter: blur(10px);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  border-color: var(--gold);
  background: rgba(212, 160, 74, 0.15);
  transform: translateY(-3px);
}

/* ==================== 模态框 ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-deep), 0 0 50px var(--lantern-glow);
  animation: modalScaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: rgba(26, 15, 10, 0.8);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}
.modal-close:hover {
  border-color: var(--red);
  color: var(--red-bright);
  transform: rotate(90deg);
}

/* 成员详情模态框 */
.member-modal-content {
  padding: 0;
  overflow: hidden;
}
.member-modal-body {
  padding: 2rem;
}
.member-modal-body img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.member-modal-rank {
  display: inline-block;
  padding: 0.3rem 1rem;
  border: 1px solid var(--red);
  color: var(--red-bright);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}
.member-modal-name {
  font-size: 2rem;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}
.member-modal-motto {
  font-family: 'Ma Shan Zheng', serif;
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}
.member-modal-desc {
  color: var(--text-dim);
  line-height: 2;
  margin-bottom: 1.5rem;
}
.member-modal-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-gold);
}
.member-modal-stat {
  text-align: center;
}
.member-modal-stat-num {
  display: block;
  font-size: 1.3rem;
  color: var(--gold-bright);
  font-weight: 700;
}
.member-modal-stat-label {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.member-modal-actions {
  display: flex;
  gap: 1rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-gold);
}
.modal-action-btn {
  flex: 1;
  padding: 0.7rem;
  border: 1px solid var(--border-gold);
  background: transparent;
  color: var(--gold);
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.modal-share-btn:hover {
  background: rgba(200, 57, 47, 0.1);
  border-color: var(--red);
  color: var(--red-bright);
}
.modal-close-btn:hover {
  background: rgba(212, 160, 74, 0.1);
  border-color: var(--gold);
}

/* 相册灯箱 */
.lightbox-modal { z-index: 600; }
.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 60px var(--lantern-glow);
  animation: lightboxWindowOpen 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: rgba(26, 15, 10, 0.8);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.lightbox-close:hover {
  border-color: var(--red);
  color: var(--red-bright);
}
.lightbox-caption {
  text-align: center;
  color: var(--gold-bright);
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* 灯箱画轴装饰 */
.lightbox-rollers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lightbox-roller-left,
.lightbox-roller-right {
  width: 8px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold-dim), var(--gold), var(--gold-dim));
  border-radius: 4px;
  opacity: 0;
  animation: rollerGlide 0.6s ease forwards;
}
.lightbox-roller-left { animation-direction: normal; }
.lightbox-roller-right { animation-direction: reverse; }

/* 分享卡片模态框 */
.share-modal-content {
  padding: 2rem;
  text-align: center;
}
.share-title {
  color: var(--gold-bright);
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}
.share-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
}
.share-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, var(--red-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, var(--lantern-glow) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-dark), var(--bg-darkest));
}
.share-card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.share-card-seal {
  padding: 0.3rem 1rem;
  border: 1px solid var(--red);
  color: var(--red-bright);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
}
.share-card-title {
  font-size: 2.5rem;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  text-shadow: 0 0 30px var(--lantern-glow-strong);
  margin-bottom: 1rem;
}
.share-card-desc {
  font-family: 'Ma Shan Zheng', serif;
  color: var(--text-main);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.share-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.share-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.share-action-btn {
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--border-gold);
  background: transparent;
  color: var(--gold);
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.share-action-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 160, 74, 0.1);
  color: var(--gold-bright);
}

/* ==================== Toast ==================== */
.toast-container {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: rgba(26, 15, 10, 0.95);
  border: 1px solid var(--gold-dim);
  color: var(--text-main);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-deep), 0 0 20px var(--lantern-glow);
  backdrop-filter: blur(10px);
  animation: toastSlideDown 0.4s ease, toastFadeOut 0.4s ease 2.5s forwards;
}
.toast.toast-success { border-color: var(--gold); color: var(--gold-bright); }
.toast.toast-error { border-color: var(--red); color: var(--red-bright); }

/* ==================== 动画关键帧 ==================== */
@keyframes lanternSwing {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes lanternFlicker {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.92; filter: brightness(1.1); }
}

@keyframes introFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes danmakuScroll {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

@keyframes messageSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes bgmBarDance {
  from { height: 4px; }
  to { height: 12px; }
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* 灯箱窗棂推开动画 */
@keyframes lightboxWindowOpen {
  0% {
    clip-path: inset(0 49.5% round 8px);
    filter: blur(8px) brightness(0.5);
    opacity: 0.3;
  }
  50% {
    clip-path: inset(0 20% round 8px);
    filter: blur(4px) brightness(0.7);
    opacity: 0.6;
  }
  100% {
    clip-path: inset(0 0 round 8px);
    filter: blur(0) brightness(1);
    opacity: 1;
  }
}

@keyframes rollerGlide {
  0% { opacity: 0.9; }
  100% { opacity: 0; }
}

@keyframes toastSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastFadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 滚动进入动画 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 右上角导航 ==================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  background: rgba(18, 10, 6, 0.85);
  border-bottom: 1px solid var(--border-gold);
  backdrop-filter: blur(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.top-nav.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
.top-nav-title {
  font-family: 'Ma Shan Zheng', serif;
  font-size: 1.1rem;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  text-shadow: 0 0 15px var(--lantern-glow);
}
.top-nav-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.top-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(26, 15, 10, 0.7);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.top-nav-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 160, 74, 0.1);
  color: var(--gold-bright);
  box-shadow: 0 0 15px var(--lantern-glow);
}
.top-nav-btn svg {
  flex-shrink: 0;
}

.top-nav-admin-btn {
  border-color: rgba(200, 57, 47, 0.3);
  color: var(--text-dim);
}
.top-nav-admin-btn:hover {
  border-color: var(--red);
  color: var(--red-bright);
  background: rgba(200, 57, 47, 0.08);
  box-shadow: 0 0 15px var(--red-glow);
}

.top-nav-login-btn.logged-in {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212, 160, 74, 0.15);
}

/* ==================== 登录模态框 ==================== */
.login-modal { z-index: 700; }
.login-modal-content {
  max-width: 420px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.login-header {
  margin-bottom: 2rem;
}
.login-title {
  font-family: 'Ma Shan Zheng', serif;
  font-size: 2.5rem;
  color: var(--gold-bright);
  letter-spacing: 0.3em;
  text-shadow: 0 0 30px var(--lantern-glow-strong);
  margin-bottom: 0.5rem;
}
.login-subtitle {
  color: var(--text-dim);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  font-weight: 300;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.login-field {
  text-align: left;
}
.login-label {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.login-input {
  width: 100%;
  background: var(--bg-mid);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.login-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--lantern-glow);
}
.login-input::placeholder {
  color: var(--text-faint);
  font-size: 0.85rem;
}
.login-status {
  min-height: 1.2rem;
  font-size: 0.8rem;
  color: var(--red-bright);
  letter-spacing: 0.1em;
}
.login-submit-btn {
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  border: none;
  color: var(--bg-darkest);
  font-family: 'Ma Shan Zheng', serif;
  font-size: 1.2rem;
  letter-spacing: 0.4em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-weight: 700;
}
.login-submit-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 25px var(--lantern-glow-strong);
  transform: translateY(-1px);
}
.login-submit-btn:active {
  transform: translateY(0);
}
.login-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-gold);
}
.login-hint {
  color: var(--text-faint);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .members-accordion {
    flex-direction: column;
    height: auto;
    gap: 0.5rem;
  }
  .member-card {
    flex: none;
    height: 80px;
    transition: height var(--transition-slow);
  }
  .member-card.active {
    height: 400px;
    flex: none;
  }
  .member-card-vertical-title {
    writing-mode: horizontal-tb;
    font-size: 1.2rem;
  }

  .carousel-track { height: 250px; }
  .carousel-slide-caption { left: 1rem; right: 1rem; bottom: 1rem; }
  .carousel-slide-caption h3 { font-size: 1rem; }
  .carousel-slide-caption p { font-size: 0.8rem; }

  .timeline-container::before { left: 20px; }
  .timeline-item { flex-direction: row !important; }
  .timeline-item-content { margin: 0 0 0 3rem; }
  .timeline-dot { left: 20px; }

  .album-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; }

  .guestbook-layout { grid-template-columns: 1fr; }
  .guestbook-form-wrap { position: static; }

  .checkin-layout { grid-template-columns: 1fr; }
  .checkin-btn { width: 110px; height: 110px; font-size: 1.4rem; }

  .hero-lantern { width: 50px; height: 65px; }
  .hero-lantern-left { left: 3%; }
  .hero-lantern-right { right: 3%; }

  .divider-line { flex: 0 0 30px; }
  .divider-text { font-size: 1rem; letter-spacing: 0.3em; }

  .bgm-player { bottom: 1rem; left: 1rem; padding: 0.4rem 0.8rem 0.4rem 0.4rem; }
  .bgm-title { display: none; }
  .back-to-top { bottom: 1rem; right: 1rem; }

  .top-nav { padding: 0.6rem 1rem; }
  .top-nav-title { font-size: 0.9rem; }
  .top-nav-btn span { display: none; }
  .top-nav-btn { padding: 0.35rem; }
  .top-nav-btn svg { width: 18px; height: 18px; }
}

@media (max-width: 480px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 1.8rem; }
  .member-card-name { font-size: 1.4rem; }
  .checkin-stats { gap: 1rem; }
  .checkin-stat-num { font-size: 1.4rem; }
}
