/* ============================================
   尾声页样式
   ============================================ */

#ending {
  background: var(--c-paper);
}

.ending-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.08) saturate(0.85) blur(2px);
  animation: breathe 14s ease-in-out infinite;
  z-index: 1;
}

/* 半透明遮罩 */
#ending::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(240, 230, 210, 0.5) 0%,
    rgba(240, 230, 210, 0.7) 50%,
    rgba(240, 230, 210, 0.5) 100%);
  z-index: 3;
  pointer-events: none;
}

.ending-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

/* 庄子金句 */
.ending-quote {
  text-align: center;
  font-family: var(--font-kai);
  color: var(--c-ink);
}

.quote-line {
  font-size: clamp(28px, 4.5vw, 52px);
  letter-spacing: 14px;
  margin: 12px 0;
  opacity: 0;
  font-weight: 500;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.08);
  animation: slideUp 1.3s ease forwards;
}

.quote-line:nth-child(1) { animation-delay: 0.5s; }
.quote-line:nth-child(2) { animation-delay: 1.3s; }

.ending-quote cite {
  display: block;
  margin-top: 28px;
  font-size: 15px;
  color: var(--c-ink-light);
  letter-spacing: 6px;
  font-style: normal;
  opacity: 0;
  animation: fadeIn 1s 2.2s forwards;
}

/* 再次游观按钮 */
.ending-btn {
  background: rgba(245, 235, 215, 0.9);
  border: 1.5px solid var(--c-gold);
  padding: 13px 38px;
  font-family: var(--font-kai);
  font-size: 16px;
  letter-spacing: 6px;
  color: var(--c-ink);
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1.2s 2.8s forwards;
  transition: all 0.3s;
  backdrop-filter: blur(2px);
}

.ending-btn:hover {
  background: var(--c-paper-light);
  border-color: var(--c-gold-light);
  box-shadow: 0 0 18px rgba(201, 169, 110, 0.6);
  transform: translateY(-2px);
}

/* 制作信息 */
.ending-credits {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font-kai);
  font-size: 12px;
  color: var(--c-ink-muted);
  letter-spacing: 3px;
  opacity: 0;
  animation: fadeIn 1s 3.2s forwards;
}

.ending-credits p {
  margin: 4px 0;
}

/* 装饰印章（右下角，与Hero左下"庄"呼应） */
.ending-seal {
  position: absolute;
  bottom: 36px;
  right: 36px;
  width: 56px;
  height: 56px;
  background: var(--c-seal);
  color: var(--c-paper);
  font-family: var(--font-kai);
  font-size: 32px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  z-index: 12;
  opacity: 0;
  animation: fadeIn 1s 3.5s forwards;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}