:root {
  color-scheme: light;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  background: #d8d3ca;
  color: #17313c;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background-color: #d8d3ca;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

button,
select {
  font: inherit;
}

.review-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.poster {
  width: min(630px, calc((100vh - 32px) * 9 / 16), calc(100vw - 32px));
  aspect-ratio: 9 / 16;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  overflow: hidden;
  background: #f2eee4;
  border: 1px solid rgba(46, 54, 49, 0.34);
  box-shadow: 0 22px 60px rgba(37, 31, 23, 0.18);
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.poster-rail {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 7px 18px;
  color: #eee5d2;
  background-color: #142f3b;
  background-image: url("assets/左侧标题底图.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-right: 1px solid #aa8244;
}

.rail-mark,
.brand-seal {
  display: grid;
  place-items: center;
  border: 1px solid #b79356;
  color: #b79356;
}

.rail-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  font-size: 15px;
}

.rail-title {
  margin-top: 28px;
  writing-mode: vertical-rl;
  font-size: 20px;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.rail-index {
  margin-top: auto;
  color: #c59d59;
  font-family: Georgia, serif;
  font-size: 15px;
  text-shadow: 0 1px 2px #0f2833;
}

.poster-content {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 7.2% 38% auto minmax(0, 1fr) 11.4% 4.4%;
  padding: 0 24px;
  background-color: #f3efe5;
  background-image:
    linear-gradient(96deg, transparent 48%, rgba(72, 87, 78, 0.035) 49%, transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(99, 85, 61, 0.018) 6px 7px);
}

.map-transition-layer {
  --map-fade-duration: 700ms;
  position: absolute;
  inset: 7.2% 0 0;
  z-index: 8;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background: #eee9dd;
  pointer-events: none;
  transition:
    opacity var(--map-fade-duration) linear,
    visibility 0s linear var(--map-fade-duration);
}

.map-transition-layer.is-visible {
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--map-fade-duration) linear,
    visibility 0s linear 0s;
}

.map-transition-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(243, 239, 229, 0.3), transparent 9% 91%, rgba(243, 239, 229, 0.3)),
    linear-gradient(0deg, rgba(23, 49, 60, 0.05), transparent 12% 88%, rgba(255, 255, 255, 0.16));
}

.map-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.map-viewport img {
  width: auto;
  max-width: none;
  height: 100%;
  display: block;
  user-select: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.poster.is-transitioning {
  cursor: progress;
}

.poster.is-scale-selecting {
  cursor: grabbing;
}

.poster-rail,
.poster-header,
.landmark-stage,
.landmark-copy,
.detail-grid,
.poster-footer {
  transition:
    opacity 240ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.poster.is-scale-selecting .poster-rail,
.poster.is-scale-selecting .poster-header,
.poster.is-scale-selecting .landmark-stage,
.poster.is-scale-selecting .landmark-copy,
.poster.is-scale-selecting .detail-grid,
.poster.is-scale-selecting .poster-footer {
  opacity: 0.16;
  filter: saturate(0.45);
}

.poster.is-scale-selecting .landmark-scale-nav {
  opacity: 1;
  filter: none;
}

.poster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(143, 111, 57, 0.42);
}

.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-seal {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  font-size: 14px;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  font-size: 15px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.brand-lockup div > span {
  margin-top: 2px;
  color: #786b5a;
  font-family: Arial, sans-serif;
  font-size: 7px;
}

.hotspot-readout {
  min-width: 0;
  max-width: 52%;
  overflow: hidden;
  color: #17313c;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-header {
  position: relative;
  z-index: 20;
}

.landmark-stage {
  position: relative;
  min-height: 0;
  margin: 0 -12px;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
}

.landmark-stage::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: 5%;
  left: 2%;
  height: 22%;
  z-index: -2;
  background: rgba(70, 111, 113, 0.07);
  border-radius: 50%;
  transform: scaleY(0.38);
}

.landmark-stage img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 9px 7px rgba(27, 39, 34, 0.14));
}

.contour {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(168, 129, 66, 0.18);
  border-radius: 50%;
}

.contour-a {
  width: 68%;
  height: 46%;
  right: -10%;
  top: 13%;
  transform: rotate(-8deg);
}

.contour-b {
  width: 58%;
  height: 39%;
  left: -12%;
  bottom: 4%;
  transform: rotate(12deg);
}

.landmark-copy {
  position: relative;
  padding: 4px 0 10px;
  border-top: 3px solid #bd5546;
  border-bottom: 1px solid rgba(143, 111, 57, 0.38);
}

.eyebrow {
  margin-top: 8px;
  color: #8b6c39;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-top: 4px;
}

h1 {
  min-width: 0;
  margin: 0;
  color: #142f3b;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.08;
}

h1.long-title {
  font-size: 25px;
}

.seal {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: grid;
  place-items: center;
  color: #a44638;
  border: 1px solid #a44638;
  border-radius: 50%;
  font-size: 12px;
}

.tagline {
  margin: 5px 0 0;
  color: #a14839;
  font-size: 13px;
  font-weight: 700;
}

.intro {
  margin: 7px 0 0;
  color: #384b4d;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11.5px;
  line-height: 1.65;
}

.detail-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  padding: 12px 0 7px;
}

.detail-item {
  min-width: 0;
}

.detail-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(122, 100, 65, 0.45);
  border-radius: 2px;
}

.detail-item h2 {
  margin: 7px 0 0;
  color: #17313c;
  font-size: 13px;
  line-height: 1.2;
}

.detail-item p {
  margin: 4px 0 0;
  color: #52605e;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 9.5px;
  line-height: 1.48;
}

.landmark-scale-nav {
  position: relative;
  z-index: 15;
  min-height: 0;
  border-top: 1px solid rgba(143, 111, 57, 0.24);
  background: rgba(243, 239, 229, 0.9);
}

.scale-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.scale-viewport.is-dragging {
  cursor: grabbing;
}

.scale-viewport.is-dragging .minor-tick {
  transition: none;
}

.tick-layer,
.node-layer {
  position: absolute;
  inset: 0 16px;
}

.minor-tick {
  --tick-height: 6px;
  --tick-scale-x: 1;
  --tick-opacity: 0.42;
  position: absolute;
  bottom: 35px;
  width: 1px;
  height: var(--tick-height);
  background: #a27b40;
  opacity: var(--tick-opacity);
  transform: translate(-50%, 50%) scaleX(var(--tick-scale-x));
  transform-origin: center bottom;
  transition:
    height 110ms linear,
    opacity 110ms linear,
    transform 110ms linear;
}

.landmark-node {
  --node-scale: 1;
  --selection-opacity: 0;
  --selection-width: 7px;
  --selection-height: 7px;
  --selection-bottom: 8px;
  --number-size: 10px;
  --dot-size: 7px;
  position: absolute;
  bottom: 20px;
  width: 36px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 0 8px;
  color: #5c5b52;
  background: transparent;
  border: 0;
  cursor: pointer;
  isolation: isolate;
  transform: translateX(-50%) scale(var(--node-scale));
  transform-origin: center bottom;
  transition:
    color 180ms ease,
    transform 130ms linear;
}

.landmark-node::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  bottom: var(--selection-bottom);
  left: 50%;
  width: var(--selection-width);
  height: var(--selection-height);
  z-index: -1;
  opacity: var(--selection-opacity);
  background: #17313c;
  border: 1px solid #b08a50;
  box-shadow: 0 0 0 2px #f3efe5, 0 0 0 3px #17313c;
  transform: translateX(-50%);
  transition:
    width 360ms cubic-bezier(0.2, 0.75, 0.2, 1),
    height 360ms cubic-bezier(0.2, 0.75, 0.2, 1),
    bottom 360ms cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 320ms ease;
}

.landmark-node:focus-visible {
  outline: 2px solid #bd5546;
  outline-offset: 2px;
}

.node-number {
  font-family: Georgia, serif;
  font-size: var(--number-size);
  line-height: 1;
}

.node-dot {
  width: var(--dot-size);
  height: var(--dot-size);
  background: #b08a50;
  border: 1px solid #f3efe5;
  outline: 1px solid #b08a50;
  transition:
    width 220ms ease,
    height 220ms ease,
    background-color 220ms ease,
    outline-color 220ms ease;
}

.name-layer {
  position: absolute;
  inset: auto 0 2px;
  z-index: 4;
  height: 16px;
  pointer-events: none;
}

.name-item {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  height: 16px;
  overflow: hidden;
  color: #17313c;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
}

.poster-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #756954;
  border-top: 1px solid rgba(143, 111, 57, 0.4);
  font-family: Arial, sans-serif;
  font-size: 8px;
}

#pageIndex {
  color: #17313c;
  font-family: Georgia, serif;
  font-size: 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 620px) {
  .review-stage {
    align-items: start;
    padding: 0;
  }

  .poster {
    width: min(100vw, calc(100vh * 9 / 16));
    border: 0;
    grid-template-columns: 46px minmax(0, 1fr);
    box-shadow: none;
  }

  .poster-content {
    padding: 0 17px;
  }

  .hotspot-readout {
    max-width: 48%;
    font-size: 9px;
  }

  .poster-rail {
    padding-right: 5px;
    padding-left: 5px;
  }

  .rail-title {
    font-size: 17px;
  }

  h1 {
    font-size: 28px;
  }

  h1.long-title {
    font-size: 21px;
  }

  .detail-grid {
    gap: 7px;
  }

  .detail-item h2 {
    font-size: 11px;
  }

  .detail-item p {
    font-size: 8.5px;
  }

  .tick-layer,
  .node-layer {
    right: 10px;
    left: 10px;
  }

  .landmark-node {
    width: 28px;
  }

  .name-item {
    font-size: 8px;
  }
}
