:root {
  --sky: #5ab1ff;
  --sky-2: #98d3ff;
  --bg: #eaf6ff;
  --text: #0b1a2b;
  --white: #ffffff;
  --shadow: rgba(11,26,43,0.14);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #0f2745 0%, #173a68 45%, #1a3f72 100%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 22px;
  z-index: 10;
}

.logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px var(--shadow);
}

.carousel {
  position: relative;
  height: 60vh;
  min-height: 380px;
  max-height: 760px;
  overflow: hidden;
}

.carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,20,35,0.35) 0%, rgba(10,20,35,0.45) 40%, rgba(10,20,35,0.2) 100%);
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.05);
  filter: grayscale(0.06) saturate(0.85) contrast(0.96) brightness(0.95);
  transition: opacity 1000ms ease, transform 1800ms ease;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(18px) brightness(0.6) saturate(0.85);
  transform: scale(1.06);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

main {
  position: relative;
}

.announcement {
  max-width: 880px;
  margin: -72px auto 64px;
  padding: 28px 28px 32px;
  background: rgba(255,255,255,0.82);
  border-radius: 16px;
  box-shadow: 0 12px 36px var(--shadow);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 900ms ease, transform 900ms ease;
}

.announcement h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: 1px;
  color: #083a72;
}

.announcement h2 {
  margin: 0 0 20px;
  font-size: 20px;
  color: #2066a9;
}

.announcement p {
  margin: 0 0 14px;
  line-height: 1.9;
  font-size: 16px;
}

#sakura {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.farewell-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60vh;
  min-height: 380px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.farewell-overlay .line {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(8, 58, 114, 0.6);
  letter-spacing: 4px;
  font-weight: 700;
  animation: fadeCycle 12s ease-in-out infinite;
}

.farewell-overlay .l1 { font-size: 38px; animation-delay: 0s; }
.farewell-overlay .l2 { font-size: 28px; animation-delay: 2.4s; }
.farewell-overlay .l3 { font-size: 24px; animation-delay: 4.8s; }

.farewell-overlay .time {
  margin-top: 16px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  letter-spacing: 2px;
  animation: fadeCycle 12s ease-in-out infinite;
  animation-delay: 7.2s;
}

@keyframes fadeCycle {
  0% { opacity: 0; transform: translateY(10px); }
  10% { opacity: 1; transform: translateY(0); }
  35% { opacity: 1; }
  45% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 0; }
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.18) 100%);
}

.sound-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(10,20,35,0.6);
  color: #fff;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.sound-banner .txt { font-size: 14px; letter-spacing: 1px; opacity: 0.9; }
.sound-banner .btn { font-size: 14px; padding: 8px 12px; border: none; border-radius: 10px; background: #5ab1ff; color: #0b1a2b; font-weight: 700; cursor: pointer; }
.sound-banner .btn:hover { filter: brightness(1.05); }

@media (max-width: 640px) {
  .logo { height: 32px; }
  .carousel { height: 48vh; }
  .announcement { margin: -52px 16px 48px; padding: 20px; }
  .announcement h1 { font-size: 22px; }
  .announcement h2 { font-size: 16px; }
  .farewell-overlay { height: 48vh; }
  .farewell-overlay .l1 { font-size: 26px; }
  .farewell-overlay .l2 { font-size: 18px; }
  .farewell-overlay .l3 { font-size: 16px; }
  .announcement .lead { font-size: 16px; }
  .announcement .poem { font-size: 14px; }
  .music-player { left: 12px; bottom: 12px; width: 320px; height: 86px; }
}
#
.opening {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.6) 100%),
    linear-gradient(180deg, #0f2745 0%, #174e86 70%, #1e6ab5 100%);
  color: #fff;
  animation: openingFade 3600ms ease forwards;
}

.op-title { font-size: 34px; font-weight: 800; letter-spacing: 3px; text-shadow: 0 4px 18px rgba(0,0,0,0.5); }
.op-sub { margin-top: 8px; font-size: 18px; letter-spacing: 2px; opacity: 0.9; }
.op-poem { margin-top: 18px; font-size: 16px; letter-spacing: 2px; opacity: 0.85; }

@keyframes openingFade {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
.announcement.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.slide { transition: opacity 1000ms ease; animation: kenburns 18000ms ease-in-out infinite alternate; }
.slide.active { opacity: 1; transform: none; }
.slide-bg { animation: kenburnsBg 24000ms ease-in-out infinite alternate; }
.vignette { background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.28) 100%); }
.bokeh { position: fixed; inset: 0; z-index: 8; pointer-events: none; mix-blend-mode: screen; background-image: radial-gradient(80px 80px at 20% 30%, rgba(255,255,255,0.06), rgba(255,255,255,0)), radial-gradient(120px 120px at 70% 20%, rgba(255,255,255,0.05), rgba(255,255,255,0)), radial-gradient(90px 90px at 40% 75%, rgba(255,255,255,0.05), rgba(255,255,255,0)); background-repeat: no-repeat; animation: bokehDrift 60s linear infinite; }
@keyframes kenburns { 0% { transform: translateY(-1%) scale(1.0); } 100% { transform: translateY(1%) scale(1.05); } }
@keyframes kenburnsBg { 0% { transform: translateX(-1%) scale(1.06); } 100% { transform: translateX(1%) scale(1.08); } }
@keyframes bokehDrift { 0% { background-position: 20% 30%, 70% 20%, 40% 75%; } 50% { background-position: 22% 28%, 68% 22%, 42% 78%; } 100% { background-position: 20% 30%, 70% 20%, 40% 75%; } }
