:root {
  color-scheme: dark;
  --black: #050403;
  --black-2: #0d0906;
  --ink: #221810;
  --paper: #f4e6cf;
  --paper-2: #fff7e9;
  --gold: #d0a65f;
  --gold-2: #f0d99c;
  --seal: #bd3529;
  --line: rgba(240, 217, 156, .28);
  --soft-line: rgba(34, 24, 16, .12);
  --shadow: rgba(0, 0, 0, .42);
  --font-display: "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --font-ui: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at 82% 12%, rgba(189, 53, 41, .16), transparent 26%),
    radial-gradient(circle at 18% 88%, rgba(208, 166, 95, .16), transparent 30%),
    linear-gradient(135deg, #030201, #0a0705 48%, #15100b);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .28;
  background-image: url("assets/peony-chanzhi-gold-transparent.png");
  background-repeat: no-repeat;
  background-size: min(58vw, 980px) auto;
  background-position: left -210px top -190px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.5), transparent 28%, transparent 72%, rgba(0,0,0,.38)),
    radial-gradient(circle at center, transparent 0, rgba(0,0,0,.28) 86%);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
p {
  margin-top: 0;
}

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

@keyframes imageDrift {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.075) translate3d(-1.4%, -.8%, 0);
  }
}

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

@keyframes guideCardReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes guideLineBreath {
  0%,
  100% {
    opacity: .72;
    transform: scaleY(.68);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes guideCardSheen {
  0% {
    transform: translateX(-130%) skewX(-14deg);
    opacity: 0;
  }
  22% {
    opacity: .34;
  }
  48%,
  100% {
    transform: translateX(150%) skewX(-14deg);
    opacity: 0;
  }
}

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

@keyframes idleTileIn {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(34px) scale(1.04);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0) scale(1);
  }
}

@keyframes idleTileInUp {
  from {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    transform: translateY(42px) scale(1.045);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0) scale(1);
  }
}

@keyframes idleTileInZoom {
  from {
    opacity: 0;
    clip-path: inset(8% 8% 8% 8%);
    filter: blur(10px);
    transform: scale(1.12);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes idleTileInSplit {
  from {
    opacity: 0;
    clip-path: inset(0 48% 0 48%);
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

@keyframes idlePanelIn {
  from {
    opacity: 0;
    transform: translateX(42px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes idleGlowSweep {
  0% {
    transform: translateX(-140%) skewX(-16deg);
    opacity: 0;
  }
  28% {
    opacity: .28;
  }
  58%,
  100% {
    transform: translateX(130%) skewX(-16deg);
    opacity: 0;
  }
}

@keyframes idlePixelWipe {
  0% {
    opacity: 0;
    transform: scale(1.02);
    clip-path: inset(0 100% 0 0);
  }
  24% {
    opacity: .62;
  }
  58% {
    opacity: .22;
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 0;
    transform: scale(1);
    clip-path: inset(0 0 0 100%);
  }
}

@keyframes idleSilkWipe {
  0% {
    opacity: 0;
    transform: translateX(-120%) scaleX(.72);
  }
  28% {
    opacity: .78;
  }
  100% {
    opacity: 0;
    transform: translateX(120%) scaleX(1.08);
  }
}

@keyframes idleInkBloom {
  0% {
    opacity: 0;
    transform: scale(.82);
    clip-path: circle(0% at 54% 48%);
  }
  42% {
    opacity: .46;
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
    clip-path: circle(82% at 54% 48%);
  }
}

.guide-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 420px;
  grid-template-rows: minmax(0, 1fr) 118px;
  grid-template-areas:
    "brand hero panel"
    "brand strip panel";
  gap: 22px;
  width: min(100%, 1920px);
  height: 100vh;
  margin: 0 auto;
  padding: 30px;
}

.brand-rail,
.hero-gallery,
.guide-panel,
.story-strip {
  animation: surfaceIn .62s cubic-bezier(.2, .8, .2, 1) both;
}

.brand-rail {
  grid-area: brand;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 34px 16px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(5, 4, 3, .08), rgba(5, 4, 3, .5) 54%, rgba(5, 4, 3, .74));
  backdrop-filter: blur(1px);
  box-shadow: 0 30px 90px var(--shadow);
}

.brand-rail::before {
  content: none;
}

.brand-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 4, 3, .04), transparent 30%, rgba(5, 4, 3, .38) 58%, rgba(5, 4, 3, .7) 82%);
}

.brand-rail > * {
  position: relative;
  z-index: 2;
}

.seal-link {
  display: grid;
  place-items: center;
  width: 92px;
  height: 112px;
  margin: 8px auto 6px;
}

.seal-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(189, 53, 41, .28));
}

.museum-name {
  justify-self: center;
  margin: 0;
  color: var(--paper-2);
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
}

.museum-meta {
  margin: 18px 0 26px;
  color: rgba(244, 230, 207, .52);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .1em;
  text-align: center;
}

.nav-label {
  margin: 0 0 12px;
  color: rgba(240, 217, 156, .78);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .16em;
  text-align: center;
}

.hall-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 6px 2px 0;
  scrollbar-color: var(--gold) transparent;
  scrollbar-width: thin;
}

.hall-nav button {
  width: 100%;
  min-height: 84px;
  padding: 13px 14px;
  border: 1px solid rgba(244, 230, 207, .16);
  border-radius: 14px;
  color: rgba(244, 230, 207, .76);
  background: rgba(255, 247, 233, .045);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.hall-nav button::after {
  content: attr(data-meta);
  display: block;
  margin-top: 5px;
  color: rgba(244, 230, 207, .42);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.hall-nav button.current-location::before {
  content: "您在这里";
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--paper-2);
  background: var(--seal);
  font-size: 12px;
}

.hall-nav button.active,
.hall-nav button:hover,
.hall-nav button:focus-visible {
  color: var(--paper-2);
  border-color: rgba(240, 217, 156, .82);
  background: rgba(208, 166, 95, .13);
  outline: none;
  transform: translateY(-1px);
}

.admin-entry {
  display: grid;
  place-items: center;
  min-height: 52px;
  margin-top: 18px;
  color: rgba(244, 230, 207, .7);
  text-decoration: none;
  border: 1px solid rgba(244, 230, 207, .16);
  border-radius: 999px;
  font-weight: 900;
}

.hero-gallery {
  grid-area: hero;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--black-2);
  box-shadow: 0 36px 110px var(--shadow);
  animation-delay: .04s;
}

.gallery-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(189, 53, 41, .18), rgba(208, 166, 95, .12)),
    #090806;
}

.gallery-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, .88) 0%, rgba(5, 4, 3, .58) 38%, rgba(5, 4, 3, .12) 100%),
    linear-gradient(0deg, rgba(5, 4, 3, .88) 0%, transparent 52%);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .72s ease;
}

.carousel-slide.active {
  opacity: 1;
  animation: imageDrift 11s ease-in-out alternate both;
}

.carousel-dots {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.carousel-dots span {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(244, 230, 207, .28);
}

.carousel-dots span.active {
  background: var(--gold-2);
}

.hero-copy {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: 50px;
  z-index: 4;
  max-width: 880px;
}

.floor-label,
.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  color: var(--gold-2);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 10px;
  color: var(--paper-2);
  font-family: var(--font-display);
  font-size: clamp(76px, 5.7vw, 116px);
  font-weight: 950;
  line-height: .96;
  letter-spacing: 0;
  text-wrap: balance;
}

.hall-en {
  margin: 0 0 18px;
  color: rgba(244, 230, 207, .56);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.subtitle {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--gold-2);
  font-size: clamp(28px, 1.95vw, 38px);
  font-weight: 900;
  line-height: 1.25;
}

.hero-action,
.primary-action,
.secondary-action,
.dialog-head button,
.drawer-copy button {
  min-height: 68px;
  border: 0;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.hero-action,
.primary-action {
  min-width: 220px;
  padding: 0 30px;
  color: var(--paper-2);
  background: var(--seal);
  box-shadow: 0 18px 42px rgba(189, 53, 41, .28);
}

.secondary-action,
.dialog-head button,
.drawer-copy button {
  color: var(--ink);
  background: linear-gradient(180deg, #f2d99c, var(--gold));
  box-shadow: 0 18px 42px rgba(208, 166, 95, .22);
}

button:hover {
  filter: brightness(1.04);
}

button:active {
  transform: scale(.985);
}

.guide-panel {
  grid-area: panel;
  display: grid;
  position: relative;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 20px;
  min-width: 0;
  min-height: 0;
  padding: 30px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 247, 233, .95), rgba(244, 230, 207, .9)),
    url("assets/peony-chanzhi-gold-transparent.png"),
    url("assets/peony-chanzhi-gold-transparent.png"),
    var(--paper);
  background-size: auto, 340px auto, 520px auto, auto;
  background-position: center, left -150px top -105px, right -190px top 64px, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  border-radius: 26px;
  box-shadow: 0 36px 100px var(--shadow);
  animation-delay: .08s;
}

.guide-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,247,233,.72), rgba(244,230,207,.62)),
    radial-gradient(circle at 82% 18%, rgba(189, 53, 41, .08), transparent 38%);
}

.guide-panel > * {
  position: relative;
  z-index: 1;
}

.panel-head h2,
.dialog-head h2,
.drawer-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 950;
  line-height: 1.12;
}

.panel-head h2 {
  font-size: 36px;
}

.guide-panel .eyebrow,
.drawer-copy .eyebrow {
  color: var(--seal);
  font-size: 13px;
}

.guide-list {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  align-content: stretch;
  gap: 18px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-color: rgba(189, 53, 41, .55) transparent;
  scrollbar-width: thin;
}

.guide-list article {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  min-height: 0;
  overflow: hidden;
  padding: 22px 24px 24px 30px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 252, 244, .78), rgba(244, 230, 207, .54)),
    rgba(255, 252, 244, .68);
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.32;
  cursor: pointer;
  animation: guideCardReveal .62s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--item-index, 0) * .08s);
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
  will-change: transform;
}

.guide-list article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 4px;
  border-radius: 999px;
  background: var(--seal);
  transform-origin: center;
  animation: guideLineBreath 3.4s ease-in-out infinite;
  animation-delay: calc(var(--item-index, 0) * .22s);
}

.guide-list article::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.46), transparent);
  animation: guideCardSheen 6.6s ease-in-out infinite;
  animation-delay: calc(1.2s + var(--item-index, 0) * .46s);
  pointer-events: none;
}

.guide-list article:hover,
.guide-list article:focus-visible {
  background:
    linear-gradient(135deg, rgba(255, 252, 244, .92), rgba(244, 230, 207, .68)),
    rgba(255, 252, 244, .9);
  border-color: rgba(189, 53, 41, .22);
  box-shadow: 0 18px 36px rgba(34, 24, 16, .08);
  outline: none;
  transform: translateY(-2px);
}

.guide-number {
  align-self: start;
  color: rgba(189, 53, 41, .62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .06em;
}

.guide-list strong {
  display: grid;
  align-self: center;
  color: var(--ink);
  font-size: 32px;
  font-weight: 950;
  line-height: 1.1;
}

.guide-hint {
  align-self: end;
  color: rgba(34, 24, 16, .46);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
}

.visit-note {
  padding-top: 18px;
  border-top: 1px solid var(--soft-line);
  color: rgba(34, 24, 16, .58);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.48;
}

.visit-note p {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.story-strip {
  grid-area: strip;
  min-width: 0;
  min-height: 0;
  animation-delay: .12s;
}

.action-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.action-strip .primary-action,
.action-strip .secondary-action {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 22px;
  font-size: 26px;
}

.detail-drawer {
  position: fixed;
  left: 276px;
  right: 474px;
  bottom: 148px;
  z-index: 40;
  display: none;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  min-height: 260px;
  max-height: min(360px, calc(100vh - 220px));
  padding: 22px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 247, 233, .98), rgba(244, 230, 207, .97));
  border: 1px solid rgba(240, 217, 156, .62);
  border-radius: 24px;
  box-shadow: 0 36px 110px rgba(0,0,0,.55);
  animation: drawerIn .28s ease both;
}

.detail-drawer.open {
  display: grid;
}

.drawer-media {
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #130f0b;
}

.drawer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-copy {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}

.drawer-copy p:last-of-type {
  min-height: 0;
  margin: 16px 0 20px;
  overflow-y: auto;
  color: rgba(34, 24, 16, .78);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.68;
  white-space: pre-wrap;
}

.drawer-copy button {
  justify-self: start;
  min-width: 128px;
  min-height: 56px;
  padding: 0 24px;
}

.beauty-dialog,
.video-dialog,
.detail-dialog {
  width: min(1580px, calc(100vw - 72px));
  height: min(900px, calc(100vh - 72px));
  max-width: none;
  max-height: none;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .54);
}

.beauty-dialog::backdrop,
.video-dialog::backdrop,
.detail-dialog::backdrop {
  background: rgba(2, 2, 1, .76);
  backdrop-filter: blur(8px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.dialog-head button {
  min-width: 118px;
  min-height: 58px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(320px, 1fr);
  gap: 18px;
  height: calc(100% - 100px);
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(189, 53, 41, .55) transparent;
  scrollbar-width: thin;
}

.image-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: 22px;
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: #111;
}

.image-card figcaption {
  padding: 16px 18px;
  color: var(--ink);
  background: var(--paper-2);
  border-top: 1px solid var(--soft-line);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.5;
}

.video-dialog-frame {
  display: grid;
  place-items: center;
  height: calc(100% - 100px);
  overflow: hidden;
  border-radius: 22px;
  background: #111;
}

.video-dialog-frame video,
.video-dialog-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-placeholder {
  max-width: 760px;
  color: var(--paper);
  text-align: center;
  font-size: 34px;
  font-weight: 850;
  line-height: 1.42;
}

.detail-dialog {
  width: min(1760px, calc(100vw - 80px));
  height: min(960px, calc(100vh - 80px));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 26px;
  height: calc(100% - 104px);
  min-height: 0;
}

.detail-text {
  min-height: 0;
  overflow-y: auto;
  padding: 34px;
  color: var(--ink);
  background: rgba(255, 252, 244, .72);
  border: 1px solid var(--soft-line);
  border-left: 5px solid var(--seal);
  border-radius: 14px;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.78;
  white-space: pre-wrap;
}

.detail-media {
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hidden-admin-entry {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 30;
  width: 96px;
  height: 96px;
  opacity: 0;
}

.idle-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s ease;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, .98), rgba(5, 4, 3, .94)),
    radial-gradient(circle at 16% 18%, rgba(208, 166, 95, .2), transparent 34%),
    #050403;
}

body.idle-mode .idle-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.idle-mode .guide-shell,
body.idle-mode .hidden-admin-entry,
body.idle-mode .detail-drawer {
  opacity: 0;
  pointer-events: none;
}

.idle-showcase {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  min-height: 0;
  overflow: hidden;
  background: #050403;
}

.idle-pixel-wipe {
  position: absolute;
  inset: 34px 560px 34px 34px;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent, rgba(240,217,156,.48), rgba(255,247,233,.42), rgba(189,53,41,.14), transparent),
    linear-gradient(180deg, transparent, rgba(255,247,233,.18), transparent);
  mix-blend-mode: screen;
}

.idle-pixel-wipe.active {
  animation: idleSilkWipe 1.85s cubic-bezier(.18, .82, .2, 1) both;
}

.idle-pixel-wipe.bloom {
  background:
    radial-gradient(circle at center, rgba(255,247,233,.48), rgba(240,217,156,.18) 38%, transparent 68%);
  mix-blend-mode: screen;
}

.idle-pixel-wipe.bloom.active {
  animation-name: idleInkBloom;
}

.idle-media-wall {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  grid-template-rows: .62fr .38fr;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 34px 0 34px 34px;
  background: #050403;
}

.idle-media-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,4,3,.16), transparent 42%, rgba(5,4,3,.38)),
    radial-gradient(circle at 18% 18%, transparent 0, rgba(0,0,0,.36) 88%);
}

.idle-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #0d0906;
  border: 1px solid rgba(240, 217, 156, .18);
  animation: idleTileIn 1.9s cubic-bezier(.16, .84, .24, 1) both;
}

.idle-transition-up .idle-tile {
  animation-name: idleTileInUp;
}

.idle-transition-zoom .idle-tile {
  animation-name: idleTileInZoom;
}

.idle-transition-split .idle-tile {
  animation-name: idleTileInSplit;
}

.idle-transition-slide .idle-tile:nth-child(2),
.idle-transition-split .idle-tile:nth-child(2) {
  animation-direction: reverse;
}

.idle-tile:first-child {
  grid-row: span 2;
}

.idle-tile:nth-child(2) {
  margin-top: 16px;
}

.idle-tile:nth-child(3) {
  margin-bottom: 16px;
}

.idle-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.04);
  transition: opacity 1.15s ease, transform 11s ease, filter 1.15s ease;
}

.idle-tile.active img {
  opacity: 1;
  transform: scale(1.13) translate3d(-1.7%, -.9%, 0);
  filter: saturate(1.12) contrast(1.08);
}

.idle-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 38%, rgba(0,0,0,.54)),
    linear-gradient(90deg, rgba(0,0,0,.26), transparent 44%, rgba(0,0,0,.14));
}

.idle-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(110deg, transparent 0 36%, rgba(240,217,156,.46) 48%, transparent 62% 100%);
  animation: idleGlowSweep 5.8s ease-in-out infinite;
  animation-delay: inherit;
}

.idle-tile.active::before {
  opacity: .42;
}

.idle-text-panel {
  position: relative;
  display: grid;
  align-content: center;
  min-width: 0;
  margin: 30px 30px 30px 0;
  padding: 76px 58px 64px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 248, 235, .98), rgba(244, 230, 207, .94)),
    url("assets/peony-chanzhi-gold-transparent.png"),
    var(--paper);
  background-repeat: no-repeat;
  background-size: auto, 500px auto, auto;
  background-position: center, right -170px top -130px, center;
  border-left: 1px solid rgba(208, 166, 95, .34);
  border-radius: 30px;
  box-shadow: -34px 0 90px rgba(0,0,0,.34);
  animation: idlePanelIn 1.05s cubic-bezier(.2, .8, .2, 1) both;
}

.idle-text-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,247,233,.94), rgba(255,247,233,.7)),
    radial-gradient(circle at 76% 22%, rgba(189, 53, 41, .09), transparent 35%);
}

.idle-text-panel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  animation: idleGlowSweep 7.4s ease-in-out infinite;
}

.idle-text-panel > * {
  position: relative;
  z-index: 1;
}

.idle-seal {
  width: 118px;
  height: auto;
  margin-bottom: 46px;
  filter: drop-shadow(0 10px 18px rgba(189, 53, 41, .18));
}

.idle-kicker {
  margin: 0;
  color: var(--seal);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.idle-text-panel h2 {
  max-width: 460px;
  margin: 26px 0 34px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 950;
  line-height: 1.08;
  text-wrap: balance;
}

.idle-subtitle {
  max-width: 440px;
  margin: 0;
  color: rgba(34, 24, 16, .72);
  font-size: 25px;
  font-weight: 850;
  line-height: 1.42;
}

.idle-subtitle::before {
  content: "";
  display: block;
  width: 92px;
  height: 4px;
  margin-bottom: 28px;
  background: var(--seal);
  border-radius: 999px;
}

.idle-text-panel.text-swapping .idle-kicker,
.idle-text-panel.text-swapping h2,
.idle-text-panel.text-swapping .idle-subtitle {
  animation: idleTextIn .95s cubic-bezier(.2, .8, .2, 1) both;
}

.idle-text-panel.text-swapping h2 {
  animation-delay: .18s;
}

.idle-text-panel.text-swapping .idle-subtitle {
  animation-delay: .32s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.lite-mode body::before {
  opacity: .16;
  background-size: min(46vw, 720px) auto;
}

.lite-mode .brand-rail,
.lite-mode .hero-gallery,
.lite-mode .guide-panel,
.lite-mode .detail-drawer,
.lite-mode .beauty-dialog,
.lite-mode .video-dialog,
.lite-mode .detail-dialog,
.lite-mode .idle-text-panel {
  box-shadow: none;
}

.lite-mode .brand-rail {
  backdrop-filter: none;
}

.lite-mode .beauty-dialog::backdrop,
.lite-mode .video-dialog::backdrop,
.lite-mode .detail-dialog::backdrop {
  backdrop-filter: none;
}

.lite-mode .guide-list article::after,
.lite-mode .idle-tile::before,
.lite-mode .idle-pixel-wipe,
.lite-mode .idle-text-panel::after {
  display: none;
}

.lite-mode .guide-list article::before {
  animation: none;
}

.lite-mode .carousel-slide.active {
  animation: imageDrift 18s ease-in-out alternate both;
}

.lite-mode .idle-tile {
  animation-name: idleTileIn;
  animation-duration: 1.25s;
  clip-path: none;
}

.lite-mode .idle-tile img,
.lite-mode .idle-tile.active img {
  filter: none;
  transition: opacity .8s ease, transform 14s ease;
}

.lite-mode .idle-transition-up .idle-tile,
.lite-mode .idle-transition-zoom .idle-tile,
.lite-mode .idle-transition-split .idle-tile {
  animation-name: idleTileIn;
}

.lite-mode .idle-overlay {
  transition: opacity .28s ease;
}

@media (max-width: 1400px) {
  .guide-shell {
    grid-template-columns: 184px minmax(0, 1fr) 360px;
    gap: 18px;
    padding: 22px;
  }

  .detail-drawer {
    left: 224px;
    right: 402px;
    bottom: 142px;
  }
}

@media (max-width: 1100px) {
  html,
  body {
    overflow-y: auto;
  }

  .guide-shell {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto 680px auto 120px;
    grid-template-areas:
      "brand"
      "hero"
      "panel"
      "strip";
  }

  .brand-rail {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
  }

  .museum-name {
    justify-self: start;
    writing-mode: horizontal-tb;
  }

  .hall-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-drawer {
    left: 22px;
    right: 22px;
    bottom: 22px;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .image-gallery {
    grid-template-columns: 1fr;
  }
}
