:root {
  --brand: #0f6e6b;
  --brand-press: #0c5856;
  --ink: #e7eef2;
  --muted: #9aafb8;
  --bg: #0e1418;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}
.stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background: var(--bg);
}
.depth {
  position: absolute;
  left: -20%;
  right: -20%;
  top: -10%;
  height: 140%;
  background-image:
    linear-gradient(rgba(15, 110, 107, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 110, 107, 0.22) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: center 18%;
  animation: forward 16s linear infinite;
  pointer-events: none;
}
.depth-late { animation-delay: -8s; opacity: 0.45; }
.wash {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: 0;
  height: 68vh;
  transform-origin: center bottom;
  pointer-events: none;
  background:
    radial-gradient(90% 80% at 50% 100%, rgba(15, 110, 107, 0.62), transparent 68%),
    radial-gradient(55% 70% at 12% 100%, rgba(15, 110, 107, 0.38), transparent 70%),
    radial-gradient(55% 70% at 88% 100%, rgba(15, 110, 107, 0.32), transparent 70%);
  mask-image: linear-gradient(to top, #000 0%, #000 18%, transparent 72%);
  animation: rise 8s ease-in-out infinite;
}
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  height: 52vh;
  padding: 0 1.5vw;
}
.wave i {
  flex: 1;
  display: flex;
  align-items: flex-end;
  height: var(--peak);
  padding: 0 5px;
  cursor: pointer;
  transform-origin: bottom center;
}
.wave i:nth-child(1)  { --peak: 34vh; }
.wave i:nth-child(2)  { --peak: 46vh; }
.wave i:nth-child(3)  { --peak: 28vh; }
.wave i:nth-child(4)  { --peak: 50vh; }
.wave i:nth-child(5)  { --peak: 38vh; }
.wave i:nth-child(6)  { --peak: 44vh; }
.wave i:nth-child(7)  { --peak: 31vh; }
.wave i:nth-child(8)  { --peak: 40vh; }
.wave i:nth-child(9)  { --peak: 32vh; }
.wave i:nth-child(10) { --peak: 36vh; }
.wave i:nth-child(11) { --peak: 34vh; }
.wave i:nth-child(12) { --peak: 30vh; }
.wave i:nth-child(13) { --peak: 28vh; }
.wave i:nth-child(14) { --peak: 33vh; }
.wave i:nth-child(15) { --peak: 26vh; }
.wave i:nth-child(16) { --peak: 31vh; }
.wave i:nth-child(17) { --peak: 27vh; }
.wave i:nth-child(18) { --peak: 32vh; }
.wave i:nth-child(19) { --peak: 29vh; }
.wave i:nth-child(20) { --peak: 35vh; }
.wave i:nth-child(21) { --peak: 33vh; }
.wave i:nth-child(22) { --peak: 36vh; }
.wave i:nth-child(23) { --peak: 36vh; }
.wave i:nth-child(24) { --peak: 30vh; }
.wave i:nth-child(25) { --peak: 48vh; }
.wave i:nth-child(26) { --peak: 36vh; }
.wave i:nth-child(27) { --peak: 42vh; }
.wave i:nth-child(28) { --peak: 30vh; }
.wave i:nth-child(29) { --peak: 49vh; }
.wave i:nth-child(30) { --peak: 33vh; }
.wave i:nth-child(31) { --peak: 45vh; }
.wave i:nth-child(32) { --peak: 37vh; }
.wave span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px 999px 2px 2px;
  transform-origin: bottom center;
  background: linear-gradient(to top, transparent, var(--brand));
  animation: pulse 1.7s ease-in-out infinite;
}
.wave i:nth-child(8n+1) span { animation-delay: 0s; }
.wave i:nth-child(8n+2) span { animation-delay: 0.22s; }
.wave i:nth-child(8n+3) span { animation-delay: 0.48s; }
.wave i:nth-child(8n+4) span { animation-delay: 0.1s; }
.wave i:nth-child(8n+5) span { animation-delay: 0.36s; }
.wave i:nth-child(8n+6) span { animation-delay: 0.58s; }
.wave i:nth-child(8n+7) span { animation-delay: 0.16s; }
.wave i:nth-child(8n+8) span { animation-delay: 0.42s; }
.wave i:hover { transform: scale(1.08); z-index: 2; }
.wave i:hover span {
  animation-play-state: paused;
  filter: brightness(1.45);
  box-shadow: 0 0 22px var(--brand);
}
.shade {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 1;
  width: min(760px, 92vw);
  height: 380px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(14, 20, 24, 0.92) 0%, rgba(14, 20, 24, 0.72) 42%, transparent 72%);
  pointer-events: none;
}
.card { position: relative; z-index: 2; text-align: center; max-width: 420px; }
h1 { margin: 0; font-size: 40px; font-weight: 600; letter-spacing: 0.04em; }
p { margin: 12px 0 28px; color: var(--muted); font-size: 16px; }
a {
  display: inline-block;
  color: #fff;
  background: var(--brand);
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 22px;
}
a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(15, 110, 107, 0.45); }
a:hover { background: var(--brand-press); }
@keyframes forward {
  from { background-position: 0 0; }
  to { background-position: 0 72px; }
}
@keyframes rise {
  0%, 100% { opacity: 0.78; transform: scaleY(0.94); }
  50% { opacity: 1; transform: scaleY(1.06); }
}
@keyframes pulse {
  0%, 100% { transform: scaleY(0.22); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .depth, .wash, .wave span { animation: none; }
  .wave i:nth-child(odd) span { transform: scaleY(0.7); }
  .wave i:nth-child(3n) span { transform: scaleY(0.42); }
  .wave i:nth-child(4n) span { transform: scaleY(0.9); }
}
