:root {
  --ink: #0b0e13;
  --ink-2: #121821;
  --fog: #9aa6b8;
  --paper: #eef2f7;
  --amber: #e8a35a;
  --amber-deep: #c8792f;
  --teal: #3d8f8a;
  --line: rgba(238, 242, 247, 0.12);
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 主站样式用 page-home 隔离，避免 SPA 切到音乐页后顶栏变 fixed 遮挡内容 */
body.page-home {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(61, 143, 138, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(232, 163, 90, 0.12), transparent 50%),
    linear-gradient(180deg, #0b0e13 0%, #10161f 48%, #0b0e13 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

body.page-home .noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.page-home .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(11, 14, 19, 0.78), rgba(11, 14, 19, 0.28));
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

body.page-home .topbar.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 14, 19, 0.88);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-glyph {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(135deg, var(--amber) 0%, var(--amber-deep) 55%, #8b4f1d 100%);
  box-shadow: 0 0 0 1px rgba(232, 163, 90, 0.35);
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.page-home .nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--fog);
}

body.page-home .nav a {
  position: relative;
  transition: color 0.25s var(--ease);
}

body.page-home .nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

body.page-home .nav a:hover,
body.page-home .nav a:focus-visible {
  color: var(--paper);
}

body.page-home .nav a:hover::after,
body.page-home .nav a:focus-visible::after {
  transform: scaleX(1);
}

.auth-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--fog);
  font-size: 0.9rem;
  white-space: nowrap;
}

.auth-slot .guest {
  color: var(--fog);
}

.auth-slot .sep {
  opacity: 0.55;
}

.auth-slot a,
.auth-slot .linkish,
.auth-slot .admin-link {
  color: var(--paper);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.auth-slot a:hover,
.auth-slot .linkish:hover,
.auth-slot .admin-link:hover {
  color: var(--amber);
}

.auth-slot .admin-link {
  color: var(--amber);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 6.5rem 1.5rem 3.5rem;
}

.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}

.hero-glow--amber {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  right: 8%;
  top: 18%;
  background: rgba(232, 163, 90, 0.35);
}

.hero-glow--teal {
  width: min(40vw, 340px);
  height: min(40vw, 340px);
  left: 6%;
  bottom: 18%;
  background: rgba(61, 143, 138, 0.28);
  animation-delay: -4s;
}

.hero-frame {
  position: absolute;
  inset: 0;
}

.hero-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: slow-zoom 22s var(--ease) infinite alternate;
  filter: saturate(0.85) contrast(1.05);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 14, 19, 0.92) 0%, rgba(11, 14, 19, 0.55) 42%, rgba(11, 14, 19, 0.28) 100%),
    linear-gradient(180deg, rgba(11, 14, 19, 0.35) 0%, rgba(11, 14, 19, 0.2) 40%, rgba(11, 14, 19, 0.92) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  animation: rise 0.9s var(--ease) both;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-hero {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 28rem;
  color: rgba(238, 242, 247, 0.82);
  font-size: 1.12rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #1a1208;
}

.btn-ghost {
  border: 1px solid rgba(238, 242, 247, 0.28);
  background: rgba(11, 14, 19, 0.35);
  color: var(--paper);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(232, 163, 90, 0.55);
}

.panel {
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
  padding: 5.5rem 0 1rem;
}

.panel-intro {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: -0.02em;
}

.section-copy {
  margin: 0.85rem 0 0;
  color: var(--fog);
}

.shelf,
.poster-row {
  display: grid;
  gap: 1rem;
}

.shelf {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile,
.poster {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.tile-art,
.poster-face {
  border-radius: 1rem;
  aspect-ratio: 1 / 1;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.tile:hover .tile-art,
.poster:hover .poster-face {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.tile-art--a {
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 163, 90, 0.55), transparent 45%),
    linear-gradient(160deg, #1c2430, #0f141c);
}

.tile-art--b {
  background:
    radial-gradient(circle at 70% 40%, rgba(61, 143, 138, 0.5), transparent 48%),
    linear-gradient(160deg, #182028, #0d1218);
}

.tile-art--c {
  background:
    radial-gradient(circle at 40% 70%, rgba(238, 242, 247, 0.18), transparent 42%),
    linear-gradient(160deg, #202632, #10151d);
}

.tile h3,
.poster h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.tile p,
.poster p {
  margin: 0.3rem 0 0;
  color: var(--fog);
  font-size: 0.92rem;
}

.poster-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.poster-face {
  aspect-ratio: 2 / 3;
}

.poster-face--1 {
  background:
    linear-gradient(180deg, transparent 45%, rgba(11, 14, 19, 0.55)),
    linear-gradient(145deg, #2a3342, #121820 55%, #3d8f8a44);
}

.poster-face--2 {
  background:
    linear-gradient(180deg, transparent 45%, rgba(11, 14, 19, 0.55)),
    linear-gradient(145deg, #3a2c22, #15110e 55%, #e8a35a33);
}

.poster-face--3 {
  background:
    linear-gradient(180deg, transparent 45%, rgba(11, 14, 19, 0.55)),
    linear-gradient(145deg, #24303a, #10161d 55%, #9aa6b833);
}

.panel-note {
  margin: 1.5rem 0 0;
  color: rgba(154, 166, 184, 0.75);
  font-size: 0.88rem;
}

.panel-about {
  padding-bottom: 4rem;
}

.about-copy {
  max-width: 38rem;
}

.about-copy strong {
  color: var(--amber);
  font-weight: 600;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 2rem 1.5rem 2.75rem;
  color: var(--fog);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.dot {
  opacity: 0.5;
}

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

@keyframes slow-zoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(18px, -22px, 0);
  }
}

@media (max-width: 860px) {
  .shelf,
  .poster-row {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(11, 14, 19, 0.45) 0%, rgba(11, 14, 19, 0.55) 40%, rgba(11, 14, 19, 0.94) 100%);
  }
}

@media (max-width: 560px) {
  body.page-home .nav {
    gap: 0.9rem;
    font-size: 0.85rem;
  }

  body.page-home .auth-slot {
    font-size: 0.82rem;
  }

  body.page-home .auth-slot .guest {
    display: none;
  }

  body.page-home .topbar {
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .panel {
    width: min(100% - 2rem, var(--max));
    padding-top: 4.25rem;
  }

  .cta-row {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-visual,
  .hero-glow,
  .hero-copy {
    animation: none;
  }
}
