:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --ink: #202b27;
  --muted: #58635d;
  --rule: #c9c9bc;
  --field: #122721;
  --red: #a6402b;
  --serif:
    "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun",
    Georgia, serif;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
:focus-visible {
  outline: 3px solid #d1683e;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.mast,
main,
footer {
  width: min(1440px, calc(100% - clamp(36px, 8vw, 140px)));
  margin: 0 auto;
}
.mast {
  height: 68px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.045em;
  color: #1c211f;
  line-height: 1;
}
.brand > span:last-child {
  font-size: 15px;
  letter-spacing: 0;
  padding-left: 4px;
}
.brand-mark {
  width: 23px;
  height: 22px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  transform: skewY(-12deg);
}
.brand-mark i {
  width: 6px;
  height: 77%;
  background: #bc432f;
}
.brand-mark i:nth-child(2) {
  height: 95%;
}
.brand-mark i:last-child {
  height: 64%;
}
.back,
footer a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.back:hover,
footer a:hover,
.sources a:hover {
  color: var(--red);
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: clamp(25px, 3.4vw, 52px) 0 clamp(20px, 2.5vw, 38px);
}
.edition,
.section-label,
.en-title,
h1,
h2,
.origin,
.note-copy {
  margin: 0;
}
.edition {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.edition span {
  padding: 0 9px;
  color: #a9aa9d;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
}
h1 {
  font-size: clamp(2.9rem, 5.6vw, 5.3rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin-top: 9px;
}
.en-title {
  font:
    normal clamp(1.75rem, 3vw, 3rem) / 0.84 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.06em;
  text-align: right;
  padding: 0 3px 4px;
  color: #405447;
}
.en-title em {
  font-weight: normal;
}
.exhibition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(244px, 23vw, 333px);
  gap: clamp(23px, 3.6vw, 62px);
  align-items: start;
}
.workbench {
  background: #14251f;
  color: #f1f0e5;
  min-width: 0;
  border: 1px solid #24372f;
}
.modes {
  display: flex;
  padding: 0 17px;
  gap: 8px;
  border-bottom: 1px solid #506158;
  background: #1a2c24;
}
.modes button {
  position: relative;
  border: 0;
  background: none;
  color: #cbd4cb;
  padding: 12px 13px;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 45px;
}
.modes button[aria-pressed="true"] {
  color: #fbf6df;
}
.modes button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  background: #ddb87c;
}
.stage {
  position: relative;
  isolation: isolate;
  height: clamp(350px, 32vw, 530px);
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 50% 44%,
    #364739 0%,
    #23392e 38%,
    #132b23 72%,
    #10251e 100%
  );
}
.stage canvas,
.poster,
.comparison {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage canvas {
  cursor: grab;
  touch-action: none;
}
.stage canvas:active {
  cursor: grabbing;
}
.stage canvas:focus-visible {
  outline-offset: -4px;
}
.poster {
  object-fit: contain;
  pointer-events: none;
}
.touch-hint {
  display: none;
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  color: #ebefdc;
  background: #182a21d9;
  padding: 2px 9px;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
}
.stage-id,
.compare-label {
  position: absolute;
  padding: 0;
  font:
    600 0.78rem/1.25 "Courier New",
    monospace;
  letter-spacing: 0.09em;
  color: #e9e9d5;
}
.stage-id {
  display: flex;
  align-items: center;
  gap: 9px;
  left: 20px;
  top: 18px;
  z-index: 1;
  pointer-events: none;
}
.cross {
  width: 11px;
  height: 11px;
  background:
    linear-gradient(#d1c39f, #d1c39f) center/11px 1px no-repeat,
    linear-gradient(#d1c39f, #d1c39f) center/1px 11px no-repeat;
}
.state {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  margin: 0;
  background: #14251fea;
  color: #f5f4eb;
  font-size: 0.86rem;
  padding: 4px 12px;
  text-align: center;
  width: max-content;
  max-width: 90%;
}
.control-bar,
.compare-help {
  min-height: 54px;
  border-top: 1px solid #506158;
  background: #1a2c24;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 4px 17px;
}
.control-bar button {
  border: 0;
  background: none;
  color: #eeeee1;
  min-height: 42px;
}
.rotate {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 4px;
  font-size: 0.9rem;
}
.play-icon {
  width: 0;
  height: 0;
  border-left: 8px solid #dfbf87;
  border-block: 5px solid transparent;
}
.rotate[aria-pressed="true"] .play-icon {
  width: 9px;
  height: 11px;
  border: none;
  border-inline: 3px solid #dfbf87;
}
.gesture,
.compare-help {
  color: #c2cdc2;
  font-size: 0.84rem;
}
.tools {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
}
.tools button {
  min-width: 38px;
  font-size: 19px;
}
.tools .reset {
  font-size: 0.9rem;
  border-left: 1px solid #617064;
  padding: 0 5px 0 13px;
  min-height: 24px;
  margin-left: 5px;
}
.control-bar button:not(:disabled):hover,
.modes button:not(:disabled):hover {
  background: #32453a;
}
.comparison {
  --wipe: 50%;
  z-index: 2;
  background: #000;
  isolation: isolate;
}
.comparison img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.comparison .original {
  clip-path: inset(0 calc(100% - var(--wipe)) 0 0);
}
.divider {
  position: absolute;
  left: var(--wipe);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #f8f0d8;
  transform: translateX(-50%);
  pointer-events: none;
}
.divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #f5efd9;
  color: #27352b;
  font:
    600 17px/1 Arial,
    sans-serif;
}
.comparison input {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.comparison:focus-within {
  outline: 3px solid #e0b372;
  outline-offset: -4px;
}
.compare-label {
  bottom: 16px;
  z-index: 1;
  border: 1px solid #68746c;
  background: #15221ede;
  padding: 4px 9px;
  pointer-events: none;
  font-family: var(--sans);
}
.source {
  left: 17px;
}
.result {
  right: 17px;
}
.section-label {
  font:
    600 0.76rem/1.45 "Courier New",
    monospace;
  color: #6f5142;
  letter-spacing: 0.12em;
}
.notes {
  padding-top: 6px;
}
.notes h2,
.record h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  letter-spacing: -0.045em;
  line-height: 1.25;
  margin-top: 6px;
}
.origin {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 15px 0 8px;
}
.note-copy {
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 32em;
}
.stops {
  margin-top: 22px;
  border-top: 1px solid var(--rule);
}
.stops button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 76px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 10px 8px;
  background: none;
}
.stops button::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid #87928a;
  border-radius: 50%;
  transform: translateY(-50%);
}
.stops button[aria-pressed="true"] {
  background: #e6e9df;
}
.stops button[aria-pressed="true"]::after {
  border-color: #385f48;
  background: #385f48;
}
.stops button:hover {
  background: #e9e9e0;
}
.stops img {
  width: 55px;
  height: 52px;
  object-fit: contain;
  background: #233a2f;
}
.stops strong,
.stops small {
  display: block;
}
.stops strong {
  font-size: 1rem;
  line-height: 1.4;
}
.stops small {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 3px;
}
.stops button > span {
  padding-right: 14px;
}
.record {
  margin: clamp(38px, 5vw, 78px) 0 35px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(0, 2.25fr);
  gap: 4vw;
  padding-top: 27px;
}
.record-content {
  max-width: 850px;
}
.record-content > p {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.85;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 21px 0;
  gap: 12px;
}
.metrics dt {
  font-size: 0.86rem;
  color: var(--muted);
}
.metrics dd {
  margin: 3px 0;
  font:
    normal clamp(1.5rem, 2.5vw, 2.35rem) / 1.2 Georgia,
    var(--serif);
  font-variant-numeric: tabular-nums;
}
details {
  border-block: 1px solid var(--rule);
  margin-bottom: 17px;
}
summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.94rem;
}
.credits p {
  line-height: 1.75;
}
.sources {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
}
.sources a {
  font-size: 0.9rem;
}
.download {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  text-decoration: none;
  background: var(--ink);
  color: white;
  padding: 9px 14px;
  font-weight: 600;
}
.download span {
  color: #d2d7cb;
  font: 500 0.79rem monospace;
}
.download:hover {
  background: #344b3e;
}
footer {
  padding: 20px 0 30px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.89rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.footer-cn {
  font-weight: 500;
  margin-left: 4px;
}
@media (min-width: 1600px) {
  .stage {
    height: 510px;
  }
}
@media (max-width: 900px) {
  .exhibition {
    grid-template-columns: minmax(0, 1fr) 225px;
    gap: 20px;
  }
  .stage {
    height: 340px;
  }
  .gesture {
    display: none;
  }
  .stops button {
    gap: 8px;
  }
  .stops img {
    width: 44px;
    height: 46px;
  }
  .stops small {
    font-size: 0.8rem;
  }
  .notes .note-copy {
    font-size: 1rem;
  }
}
@media (max-width: 700px) {
  .mast,
  main,
  footer {
    width: calc(100% - 32px);
  }
  .mast {
    height: 54px;
  }
  .title-row {
    padding: 23px 0 18px;
  }
  .en-title {
    font-size: 1.9rem;
  }
  .exhibition {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }
  .workbench,
  .notes {
    width: 100%;
  }
  .stage {
    height: clamp(300px, 85vw, 415px);
  }
  .control-bar,
  .compare-help {
    min-height: 48px;
    padding: 3px 10px;
  }
  .modes {
    padding: 0 6px;
    justify-content: space-between;
    gap: 0;
  }
  .modes button {
    flex: 1;
    min-height: 44px;
    padding: 8px 5px;
  }
  .notes {
    padding: 0;
  }
  .stops {
    margin-top: 16px;
  }
  .stops button {
    min-height: 65px;
    gap: 15px;
  }
  .stops img {
    width: 56px;
    height: 45px;
  }
  .stops small {
    font-size: 0.88rem;
  }
  .record {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .origin {
    margin-top: 11px;
  }
  .metrics {
    gap: 5px;
  }
  .metrics dt {
    font-size: 0.78rem;
  }
  .metrics dd {
    font-size: 1.5rem;
  }
  .compare-help {
    font-size: 0.81rem;
  }
  .stage-id {
    top: 13px;
    left: 12px;
  }
  .title-row h1 {
    font-size: clamp(2.6rem, 10.7vw, 3.5rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
@media (max-width: 900px) {
  .touch-hint {
    display: block;
  }
}
