:root {
  color-scheme: light;
  --paper: #f5eddb;
  --paper-strong: #fffaf0;
  --ink: #25312e;
  --muted: #6d746d;
  --line: rgba(71, 69, 52, 0.17);
  --moss: #4b6b5b;
  --moss-dark: #28473c;
  --ochre: #b86f39;
  --sand: #d7b77b;
  --clay: #934b34;
  --shadow: 0 18px 45px rgba(58, 47, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 1080px;
  min-height: 720px;
  margin: 0;
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(135deg, #efe4ca, #f8f2e5 48%, #e7dcc2);
  color: var(--ink);
  font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

button,
textarea,
input {
  font: inherit;
}

button {
  color: inherit;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.76);
  backdrop-filter: blur(15px);
}

.brand,
.top-actions,
.stage-heading,
.panel-heading,
.note-meta,
.assistant-panel header {
  display: flex;
  align-items: center;
}

.brand {
  gap: 13px;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--moss), var(--moss-dark));
  box-shadow: 0 8px 20px rgba(40, 71, 60, 0.2);
  font-family: SimSun, serif;
  font-size: 23px;
}

.brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.top-actions {
  gap: 10px;
}

.icon-button,
.text-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
}

.text-button {
  padding: 9px 15px;
  border-radius: 20px;
  color: var(--muted);
}

.scene-nav {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 24px;
}

.scene-tab {
  border: 0;
  border-radius: 20px;
  padding: 8px 14px;
  color: #7e796c;
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.scene-tab:hover {
  background: rgba(255, 255, 255, 0.55);
}

.scene-tab.active {
  color: #fff;
  background: var(--moss-dark);
  box-shadow: 0 6px 18px rgba(40, 71, 60, 0.19);
}

.scene-tab.locked {
  opacity: 0.42;
  cursor: not-allowed;
}

.workspace {
  height: calc(100vh - 132px);
  min-height: 588px;
  display: grid;
  grid-template-columns: minmax(235px, 0.78fr) minmax(540px, 2.15fr) minmax(235px, 0.8fr);
  gap: 10px;
  padding: 0 14px 14px;
}

.panel {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background: rgba(255, 251, 241, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.reading-panel,
.note-panel {
  padding: 22px 20px;
}

.panel-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--ochre);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.reading-content {
  height: calc(100% - 61px);
  padding: 17px 7px 24px 0;
  overflow: auto;
  scrollbar-color: rgba(75, 107, 91, 0.4) transparent;
  line-height: 1.9;
}

.reading-content p {
  margin: 0 0 17px;
  color: #50564f;
  font-family: SimSun, serif;
  font-size: 16px;
  text-align: justify;
}

.reading-content mark {
  padding: 2px 3px;
  color: #6a3c22;
  background: #ffe49b;
  border-radius: 3px;
}

.stage-panel {
  display: flex;
  flex-direction: column;
}

.stage-heading {
  justify-content: space-between;
  min-height: 80px;
  padding: 15px 22px 12px;
}

.stage-heading h1 {
  margin: 3px 0 0;
  font-family: SimSun, serif;
  font-size: 25px;
}

.status-pill {
  border: 1px solid rgba(75, 107, 91, 0.2);
  border-radius: 20px;
  padding: 7px 12px;
  color: var(--moss);
  background: rgba(235, 244, 233, 0.8);
  font-size: 13px;
}

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 15px;
  border-radius: 17px;
  overflow: hidden;
  background: #d9c69d;
}

.stage-footer {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 20px;
}

.stage-tip {
  color: var(--muted);
  font-size: 14px;
}

.primary-button {
  border: 0;
  border-radius: 11px;
  padding: 11px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--ochre), var(--clay));
  box-shadow: 0 8px 18px rgba(147, 75, 52, 0.2);
  cursor: pointer;
}

.primary-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.note-panel {
  display: flex;
  flex-direction: column;
}

.note-prompt {
  min-height: 58px;
  margin: 17px 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

#noteInput {
  flex: 1;
  min-height: 170px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

#noteInput:focus {
  border-color: rgba(75, 107, 91, 0.58);
  box-shadow: 0 0 0 3px rgba(75, 107, 91, 0.08);
}

.note-meta {
  justify-content: space-between;
  margin: 8px 2px 14px;
  color: #8a8c84;
  font-size: 12px;
}

.score-card {
  margin-top: 13px;
  border-radius: 15px;
  padding: 14px;
  color: #eef5ef;
  background:
    linear-gradient(145deg, rgba(40, 71, 60, 0.95), rgba(75, 107, 91, 0.92)),
    repeating-linear-gradient(30deg, transparent 0 10px, rgba(255, 255, 255, 0.05) 10px 11px);
}

.score-card span,
.score-card small {
  display: block;
  opacity: 0.75;
}

.score-card strong {
  display: block;
  margin: 6px 0 3px;
  font-size: 24px;
}

.assistant-ball {
  position: fixed;
  top: 9px;
  right: 260px;
  bottom: auto;
  z-index: 20;
  width: 58px;
  height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #fff;
  background: var(--clay);
  box-shadow: 0 12px 28px rgba(85, 40, 30, 0.3);
  cursor: pointer;
}

.assistant-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: clamp(460px, 34vw, 640px);
  max-width: calc(100vw - 44px);
  height: min(860px, calc(100vh - 44px));
  display: none;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.97);
  box-shadow: 0 25px 75px rgba(44, 35, 24, 0.28);
  overflow: hidden;
}

.assistant-panel.open {
  display: grid;
}

.assistant-panel header {
  justify-content: space-between;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.assistant-panel header strong {
  display: block;
  margin-top: 3px;
}

.chat-log {
  padding: 16px;
  overflow-y: auto;
}

.message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 12px;
  border-radius: 14px;
  padding: 10px 12px;
  line-height: 1.62;
  white-space: pre-wrap;
}

.message.assistant {
  color: #4a514c;
  background: #eee9db;
  border-top-left-radius: 4px;
}

.message.user {
  margin-left: auto;
  color: #fff;
  background: var(--moss);
  border-top-right-radius: 4px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  padding: 13px;
  border-top: 1px solid var(--line);
}

.chat-form textarea {
  resize: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  outline: 0;
}

.chat-disclaimer {
  display: block;
  flex: 0 0 auto;
  margin: 4px 13px 10px;
  color: rgba(74, 81, 76, 0.72);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translate(-50%, 20px);
  padding: 11px 17px;
  border-radius: 12px;
  color: #fff;
  background: rgba(37, 49, 46, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* 首页 */
.intro-scene {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(28, 49, 42, 0.16), rgba(32, 34, 26, 0.34)),
    radial-gradient(ellipse at 50% 110%, #c8a56f 0 22%, #8f7654 23% 34%, #6c705c 35% 44%, transparent 45%),
    linear-gradient(#a9c0bd 0 38%, #d8c79d 38% 100%);
}

.intro-card {
  width: min(620px, 85%);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  color: #fffdf5;
  background: rgba(37, 49, 46, 0.67);
  backdrop-filter: blur(9px);
}

.intro-card h2 {
  margin: 8px 0 13px;
  font-family: SimSun, serif;
  font-size: 38px;
}

.intro-card p {
  margin: 0 0 24px;
  line-height: 1.8;
}

/* 风化实验 */
.weather-scene,
.sediment-scene {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.weather-scene {
  background: linear-gradient(#9db5b8 0 48%, #c9b58b 48% 100%);
}

.sky-haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.6), transparent 22%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  animation: haze 9s ease-in-out infinite alternate;
}

@keyframes haze {
  to {
    transform: translateX(5%);
  }
}

.rock-zone {
  position: absolute;
  left: 8%;
  bottom: 0;
  width: 59%;
  height: 88%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.rock-face {
  position: relative;
  width: 78%;
  height: 82%;
  border-radius: 46% 50% 10% 14% / 12% 15% 5% 7%;
  background:
    linear-gradient(112deg, transparent 0 26%, rgba(57, 48, 35, 0.2) 27% 29%, transparent 30%),
    linear-gradient(74deg, transparent 0 55%, rgba(255, 255, 255, 0.13) 56% 58%, transparent 59%),
    linear-gradient(140deg, #7b715f, #9b8668 44%, #655f54);
  box-shadow: inset -35px -20px 55px rgba(37, 31, 24, 0.24), 0 15px 30px rgba(48, 38, 25, 0.2);
  transition: filter 0.4s ease;
}

.rock-zone.drag-over .rock-face {
  filter: brightness(1.18);
  outline: 4px solid rgba(255, 228, 155, 0.8);
}

.cracks,
.rain-lines,
.frost-layer,
.sand-stream {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.cracks {
  background:
    linear-gradient(65deg, transparent 47%, #423b34 48% 49%, transparent 50%) 40% 23% / 90px 160px no-repeat,
    linear-gradient(110deg, transparent 48%, #423b34 49% 50%, transparent 51%) 55% 30% / 110px 190px no-repeat;
}

.rain-lines {
  background: repeating-linear-gradient(104deg, transparent 0 20px, rgba(220, 243, 250, 0.8) 21px 23px);
  animation: rain 0.7s linear infinite;
}

.frost-layer {
  background: linear-gradient(160deg, rgba(235, 248, 255, 0.05), rgba(221, 241, 246, 0.78));
  box-shadow: inset 0 0 35px #f5ffff;
}

.sand-stream {
  background: repeating-linear-gradient(8deg, transparent 0 29px, rgba(229, 199, 130, 0.7) 30px 33px);
  animation: sand 0.8s linear infinite;
}

.weather-scene.effect-sun .cracks,
.weather-scene.effect-rain .rain-lines,
.weather-scene.effect-frost .frost-layer,
.weather-scene.effect-sand .sand-stream {
  opacity: 1;
}

.weather-scene.effect-sun {
  filter: sepia(0.18) saturate(1.2);
}

@keyframes rain {
  to {
    background-position: -25px 55px;
  }
}

@keyframes sand {
  to {
    background-position: 85px 14px;
  }
}

.weather-cards {
  position: absolute;
  top: 8%;
  right: 4%;
  width: 27%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.weather-card,
.sample-card {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 15px;
  color: #fff;
  background: rgba(40, 71, 60, 0.84);
  box-shadow: 0 9px 18px rgba(42, 44, 34, 0.18);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.weather-card.pointer-dragging,
.sample-card.pointer-dragging {
  z-index: 40;
  cursor: grabbing;
  box-shadow: 0 18px 35px rgba(42, 44, 34, 0.35);
  transition: none;
}

.weather-card {
  min-height: 82px;
  padding: 13px 10px;
}

.weather-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.weather-card small {
  opacity: 0.75;
}

.weather-card.done {
  color: #583923;
  background: #f7d994;
}

.weather-card:focus-visible,
.sample-card.selected {
  outline: 3px solid #ffe49b;
  outline-offset: 2px;
}

.effect-caption {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: 27%;
  min-height: 120px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  color: #fff;
  background: rgba(45, 45, 37, 0.58);
  backdrop-filter: blur(8px);
  line-height: 1.65;
}

/* 沉积实验 */
.sediment-scene {
  background: linear-gradient(#aac7c6 0 43%, #d0b981 43% 100%);
}

.landscape {
  position: absolute;
  inset: 0;
}

.mountain,
.river,
.lake {
  position: absolute;
  bottom: 0;
  transition: filter 0.25s ease, outline 0.25s ease;
}

.mountain {
  left: -4%;
  width: 43%;
  height: 76%;
  clip-path: polygon(0 100%, 18% 50%, 39% 62%, 58% 16%, 83% 68%, 100% 100%);
  background: linear-gradient(125deg, #68675a, #9a8667 58%, #766b59);
}

.river {
  left: 27%;
  width: 39%;
  height: 28%;
  clip-path: polygon(0 52%, 100% 0, 100% 76%, 0 100%);
  background: repeating-linear-gradient(170deg, rgba(201, 234, 231, 0.88) 0 12px, rgba(101, 164, 164, 0.92) 13px 25px);
  animation: river 3.8s linear infinite;
}

.river.strong {
  animation-duration: 0.85s;
  filter: saturate(1.25);
}

@keyframes river {
  to {
    background-position: 110px 0;
  }
}

.lake {
  right: -2%;
  width: 43%;
  height: 43%;
  border-radius: 55% 0 0 0;
  background:
    linear-gradient(to top, #746451 0 9%, #9c8060 10% 15%, #c5ae7e 16% 20%, transparent 21%),
    linear-gradient(#72a8a7, #4f858b);
}

.drop-zone.drag-over {
  filter: brightness(1.17);
  outline: 4px solid rgba(255, 228, 155, 0.88);
  outline-offset: -5px;
}

.zone-label {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 20px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(37, 49, 46, 0.58);
  font-size: 12px;
  white-space: nowrap;
}

.water-control {
  position: absolute;
  top: 7%;
  left: 50%;
  width: 44%;
  transform: translateX(-50%);
  border-radius: 14px;
  padding: 12px 15px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 8px 22px rgba(58, 47, 31, 0.13);
}

.water-control header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.water-control input {
  width: 100%;
  accent-color: var(--moss);
}

.water-levels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.water-level-button {
  border: 0;
  padding: 3px 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.water-level-button.active {
  color: var(--moss-dark);
  font-weight: 700;
}

.sample-tray {
  position: absolute;
  left: 50%;
  bottom: 3%;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.sample-card {
  min-width: 100px;
  padding: 10px 16px;
  text-align: center;
}

.sample-card.done {
  opacity: 0.35;
  pointer-events: none;
}

.observation {
  position: absolute;
  z-index: 5;
  width: 26px;
  height: 26px;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: #fff;
  background: var(--clay);
  box-shadow: 0 0 0 7px rgba(255, 227, 143, 0.28);
  cursor: pointer;
  animation: pulse 1.6s ease-in-out infinite;
}

.observation.viewed {
  background: var(--moss);
  animation: none;
}

@keyframes pulse {
  50% {
    transform: scale(1.18);
  }
}

.observation-card {
  position: absolute;
  top: 22%;
  left: 50%;
  z-index: 8;
  width: min(420px, 58%);
  transform: translateX(-50%);
  border-radius: 17px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 20px 50px rgba(45, 36, 24, 0.28);
  line-height: 1.7;
}

@media (max-height: 800px) {
  .topbar {
    height: 65px;
  }

  .scene-nav {
    height: 48px;
  }

  .workspace {
    height: calc(100vh - 113px);
  }

  .reading-panel,
  .note-panel {
    padding: 16px;
  }

  .stage-heading {
    min-height: 66px;
  }
}

/* 素材驱动的实验场景 */
.top-actions .assistant-ball {
  position: static;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-width: 2px;
  box-shadow: 0 7px 18px rgba(85, 40, 30, 0.22);
}

.message {
  display: grid;
  gap: 7px;
}

.message-source {
  padding-top: 6px;
  border-top: 1px solid rgba(58, 64, 59, 0.12);
  color: #7c776e;
  font-size: 11px;
}

.intro-scene {
  position: relative;
  background:
    linear-gradient(rgba(22, 41, 35, 0.08), rgba(22, 32, 27, 0.52)),
    url("https://static.rsxr.eu.cc/time/assets/images/intro-canyon.webp") center / cover no-repeat;
}

.intro-card {
  backdrop-filter: blur(9px);
}

.droplet-scene {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #e7d8bd, #b9c7bf);
  overflow: hidden;
}

.poem-visual,
.clepsydra-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: #263b34;
  box-shadow: 0 17px 38px rgba(41, 43, 35, 0.22);
}

.poem-visual img,
.clepsydra-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.poem-visual::after,
.clepsydra-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(transparent 54%, rgba(17, 28, 24, 0.76));
}

.poem-visual blockquote {
  position: absolute;
  right: 9%;
  bottom: 10%;
  left: 9%;
  z-index: 2;
  margin: 0;
  color: #fff8df;
  font: 600 18px/1.8 "STKaiti", "KaiTi", serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.clepsydra-caption {
  position: absolute;
  right: 7%;
  bottom: 8%;
  left: 7%;
  z-index: 3;
  display: grid;
  gap: 4px;
  color: #fff;
}

.clepsydra-caption span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.animated-drop {
  position: absolute;
  top: 39%;
  left: 51%;
  z-index: 4;
  width: 9px;
  height: 13px;
  border-radius: 50% 50% 55% 55%;
  background: #bceaff;
  box-shadow: 0 0 14px #d7f4ff;
  opacity: 0;
}

.droplet-scene.is-viewed .animated-drop {
  animation: fallingDrop 1.8s ease-in infinite;
}

@keyframes fallingDrop {
  0% { transform: translateY(-35px) scale(0.5); opacity: 0; }
  25% { opacity: 1; }
  82% { transform: translateY(70px) scale(1); opacity: 1; }
  100% { transform: translateY(78px) scale(1.5, 0.35); opacity: 0; }
}

.observe-clock {
  position: absolute;
  right: 34px;
  top: 34px;
  z-index: 5;
}

.weather-scene {
  background: #6f766a;
  filter: none !important;
}

.weather-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.weather-state {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.weather-effect-image {
  animation: weatherReveal 0.8s ease both;
}

@keyframes weatherReveal {
  from { opacity: 0; filter: saturate(0.7) blur(2px); }
  to { opacity: 1; filter: saturate(1) blur(0); }
}

.weather-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.effect-sun .weather-atmosphere {
  background: radial-gradient(circle at 16% 18%, rgba(255, 224, 121, 0.58), transparent 27%);
}

.effect-rain .weather-atmosphere {
  background: repeating-linear-gradient(104deg, transparent 0 20px, rgba(210, 235, 244, 0.32) 21px 23px);
  animation: weatherRain 0.55s linear infinite;
}

.effect-frost .weather-atmosphere {
  box-shadow: inset 0 0 110px rgba(200, 238, 255, 0.52);
}

.effect-sand .weather-atmosphere {
  background: linear-gradient(92deg, transparent, rgba(228, 179, 97, 0.28), transparent);
  animation: weatherSand 1.4s linear infinite;
}

@keyframes weatherRain {
  to { background-position: -22px 55px; }
}

@keyframes weatherSand {
  to { transform: translateX(12%); }
}

.weather-instruction {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 5;
  display: grid;
  gap: 4px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 13px;
  color: #fff;
  background: rgba(31, 51, 44, 0.72);
  backdrop-filter: blur(6px);
}

.weather-instruction span,
.conclusion-label {
  color: #e9d49e;
  font-size: 11px;
  letter-spacing: 0.15em;
}

.weather-rubble {
  position: absolute;
  left: -2%;
  bottom: -2%;
  z-index: 4;
  width: 42%;
  max-height: 35%;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 10px 10px rgba(24, 20, 14, 0.3));
  animation: rubbleRise 0.7s ease both;
}

@keyframes rubbleRise {
  from { opacity: 0; transform: translateY(30px); }
}

.weather-cards {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 6;
  width: min(52%, 470px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.weather-card {
  display: grid;
  grid-template-columns: 37px 1fr;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 9px;
  text-align: left;
  backdrop-filter: blur(7px);
}

.weather-card img {
  grid-row: 1 / 3;
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.weather-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.effect-caption {
  right: 24px;
  bottom: 22px;
  z-index: 6;
  width: min(36%, 330px);
  min-height: 0;
  backdrop-filter: blur(8px);
}

.effect-caption strong {
  display: block;
  margin-top: 5px;
}

.effect-caption p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.weather-complete-note {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 6;
  display: grid;
  gap: 3px;
  max-width: 300px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  background: rgba(132, 67, 45, 0.82);
}

.weather-complete-note span {
  font-size: 12px;
}

.sediment-scene {
  background: #778a83;
}

.landscape {
  overflow: hidden;
}

.sediment-landscape-image,
.water-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.water-overlay {
  z-index: 2;
  pointer-events: none;
  animation: waterSwitch 0.6s ease both;
}

@keyframes waterSwitch {
  from { opacity: 0; }
}

.drop-zone {
  z-index: 4;
  height: auto;
  border: 2px dashed rgba(255, 250, 221, 0.7);
  border-radius: 50%;
  background: rgba(255, 242, 183, 0.08);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.drop-zone.drag-over,
.drop-zone:focus-visible {
  border-color: #fff3a7;
  background: rgba(255, 222, 103, 0.3);
  outline: 3px solid rgba(255, 244, 176, 0.55);
}

.landscape .mountain {
  top: 43%;
  left: 9%;
  bottom: auto;
  width: 20%;
  height: 31%;
  clip-path: none;
}

.landscape .river {
  top: 48%;
  left: 36%;
  bottom: auto;
  width: 25%;
  height: 26%;
  clip-path: none;
  transform: none;
}

.landscape .lake {
  top: 55%;
  right: 7%;
  bottom: auto;
  width: 27%;
  height: 26%;
  border-radius: 50%;
}

.zone-label {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(34, 54, 46, 0.72);
  transform: translate(-50%, calc(-100% - 16px));
  white-space: nowrap;
}

.water-control {
  top: 18px;
  left: 20px;
  right: auto;
  bottom: auto;
  z-index: 7;
  width: min(48%, 410px);
  transform: none;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 251, 237, 0.93);
  backdrop-filter: blur(8px);
}

.water-control header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.water-control header span {
  font-size: 11px;
  color: #7a715f;
}

.water-control header strong {
  font-size: 13px;
}

.water-control input {
  width: 100%;
  margin: 7px 0 3px;
}

.sample-panel {
  position: absolute;
  right: 20px;
  bottom: 17px;
  left: 20px;
  z-index: 7;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 16px;
  background: rgba(37, 59, 51, 0.86);
  backdrop-filter: blur(8px);
}

.sample-panel > header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #fff;
  font-size: 12px;
}

.sample-tray {
  position: static;
  transform: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.sample-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 9px;
  padding: 7px;
  text-align: left;
}

.sample-card img {
  width: 52px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
}

.sample-card span {
  display: grid;
  gap: 2px;
}

.sample-card small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.sample-card.done {
  opacity: 0.64;
}

.deposited-sample {
  position: absolute;
  z-index: 5;
  width: 78px;
  text-align: center;
  color: #fff;
  filter: drop-shadow(0 4px 8px rgba(30, 26, 20, 0.45));
  animation: depositLand 0.45s ease both;
}

.deposited-sample img {
  width: 54px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  object-fit: cover;
}

.deposited-sample span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
}

.deposited-gravel { top: 66%; left: 20%; }
.deposited-sand { top: 66%; left: 48%; }
.deposited-clay { top: 69%; right: 15%; }

@keyframes depositLand {
  from { opacity: 0; transform: translateY(-20px) scale(1.18); }
}

.sediment-layers {
  position: absolute;
  right: 3%;
  bottom: 18%;
  z-index: 3;
  width: 32%;
  max-height: 45%;
  object-fit: contain;
  opacity: 0.82;
  mix-blend-mode: multiply;
  animation: weatherReveal 0.8s ease both;
}

.observation {
  z-index: 8;
}

.observation::before,
.observation::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.observation::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.observation-guide {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 7;
  padding: 9px 13px;
  border-radius: 12px;
  color: #fff;
  background: rgba(132, 67, 45, 0.88);
  font-size: 12px;
}

.observation-card {
  top: 14%;
  width: min(610px, 76%);
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 18px;
  padding: 16px;
}

.observation-card > img {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  object-fit: cover;
}

.observation-card > div {
  min-width: 0;
}

.observation-card strong {
  display: block;
  margin: 3px 0 8px;
}

.observation-card blockquote {
  margin: 0 0 8px;
  padding: 7px 10px;
  border-left: 3px solid var(--clay);
  color: #685f51;
  background: #eee8da;
  font-size: 12px;
}

.observation-card p {
  margin: 0 0 8px;
  font-size: 13px;
}

.observation-kicker {
  color: var(--clay);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.sediment-conclusion {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 9;
  width: min(55%, 520px);
  display: grid;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 13px;
  color: #fff;
  background: rgba(37, 71, 60, 0.92);
  transform: translateX(-50%);
  text-align: center;
}

.sediment-conclusion span {
  color: #e9d49e;
  font-size: 10px;
  letter-spacing: 0.16em;
}

/* 第四幕：岩层时间印记 */
.strata-scene,
.fossil-scene,
.survey-scene {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #263d37;
}

.strata-main-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  animation: weatherReveal 0.7s ease both;
}

.strata-main-image.folded {
  animation: strataPress 1.1s ease both;
}

@keyframes strataPress {
  from { opacity: 0.25; transform: scaleX(1.08); filter: blur(5px) saturate(0.5); }
  to { opacity: 1; transform: none; filter: none; }
}

.strata-scene.is-pressing .strata-main-image {
  animation: undergroundCompression 1.7s ease-in-out both;
  transform-origin: center;
}

@keyframes undergroundCompression {
  0% { transform: scaleX(1); filter: brightness(1); }
  45% { transform: scaleX(0.965) scaleY(1.015); filter: brightness(0.82) saturate(0.78); }
  75% { transform: scaleX(0.94) scaleY(1.035); filter: brightness(0.7) saturate(0.68); }
  100% { transform: scaleX(0.925) scaleY(1.05); filter: brightness(0.62) saturate(0.62); }
}

.strata-toolbar {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 210px;
  display: grid;
  gap: 8px;
}

.toolbar-hint {
  padding-right: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  text-align: right;
}

.strata-action {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 13px;
  color: #f8f3e8;
  background: rgba(35, 55, 48, 0.78);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(7px);
}

.strata-action:disabled {
  cursor: wait;
}

.strata-action small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
}

.strata-action.active {
  background: rgba(147, 75, 52, 0.9);
  box-shadow: 0 0 0 3px rgba(246, 219, 157, 0.27);
}

.strata-action.done strong::after {
  content: "  ✓";
  color: #ffe08a;
}

.strata-explanation {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  width: min(42%, 320px);
  padding: 13px 15px;
  border-radius: 14px;
  color: #fff;
  background: rgba(30, 49, 42, 0.82);
  backdrop-filter: blur(8px);
}

.strata-explanation span {
  color: #e9ca83;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.strata-explanation strong {
  display: block;
  margin: 4px 0;
}

.strata-explanation p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.strata-depth-label {
  position: absolute;
  left: 20px;
  z-index: 4;
  display: grid;
  min-width: 82px;
  padding: 7px 9px;
  border-left: 3px solid #f0d791;
  color: #fff;
  background: rgba(35, 48, 43, 0.72);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.strata-depth-label strong {
  color: #ffe39b;
  font-size: 11px;
}

.strata-depth-label span {
  font-size: 10px;
}

.strata-young { top: 8%; }
.strata-old { bottom: 7%; }
.strata-main-image.folded ~ .strata-depth-label,
.strata-scene.is-pressing .strata-depth-label {
  display: none;
}

.pressure-arrow {
  position: absolute;
  top: 45%;
  z-index: 7;
  color: #ffe3a0;
  font-size: 64px;
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
  animation: pressureMove 0.72s ease-in-out infinite alternate;
}

.pressure-arrow.left { left: 3%; }
.pressure-arrow.right { right: 3%; }

@keyframes pressureMove {
  to { transform: translateX(30px) scale(1.08); }
}

.pressure-field {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    linear-gradient(90deg, rgba(122, 72, 42, 0.52), transparent 24%, transparent 76%, rgba(122, 72, 42, 0.52)),
    linear-gradient(0deg, rgba(36, 29, 22, 0.36), transparent 48%);
  pointer-events: none;
}

.pressure-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 8;
  padding: 9px 16px;
  border: 1px solid rgba(255, 232, 169, 0.55);
  border-radius: 999px;
  color: #fff5d8;
  background: rgba(48, 39, 29, 0.82);
  transform: translateX(-50%);
  animation: pressureCaption 0.75s ease-in-out infinite alternate;
}

@keyframes pressureCaption {
  to { box-shadow: 0 0 24px rgba(255, 218, 132, 0.38); }
}

/* 第五幕：化石与表面痕迹 */
.fossil-scene {
  background: linear-gradient(145deg, #d8c59f, #7c715f);
}

.fossil-tab-block {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 8;
  display: grid;
  justify-items: center;
  gap: 3px;
  transform: translateX(-50%);
}

.fossil-tab-block > small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  text-shadow: 0 1px 4px rgba(35, 39, 33, 0.58);
}

.fossil-tabs {
  display: flex;
  gap: 7px;
}

.fossil-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(39, 58, 50, 0.72);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.fossil-tabs button.active {
  color: #4a3426;
  background: #f7e5b7;
}

.fossil-tabs b {
  margin-left: 5px;
  font-size: 10px;
}

.fossil-workbench {
  position: absolute;
  inset: 68px 13px 91px;
  display: block;
}

.fossil-strata-canvas {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 15px;
  background: #665d4e;
}

.fossil-strata-image,
.trace-strata-base {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.fossil-layer {
  position: absolute;
  left: 2%;
  z-index: 4;
  width: 96%;
  border: 2px dashed rgba(255, 244, 200, 0.66);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: filter 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.fossil-layer.quaternary { top: 1.5%; height: 14%; }
.fossil-layer.carboniferous { top: 36.5%; height: 22%; }
.fossil-layer.cambrian { top: 76%; height: 22%; }

.fossil-layer span {
  position: absolute;
  left: 9px;
  top: 50%;
  min-width: 100px;
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(35, 48, 43, 0.82);
  transform: translateY(-50%);
  text-align: left;
}

.fossil-layer span strong {
  font-size: 12px;
}

.fossil-layer.drag-over {
  background: rgba(255, 223, 116, 0.22);
  outline: 3px solid rgba(255, 239, 174, 0.7);
}

.fossil-layer.selected {
  border-style: solid;
  border-color: #ffe7a6;
  background: rgba(255, 220, 121, 0.13);
  box-shadow: inset 0 0 24px rgba(255, 222, 129, 0.22);
}

.fossil-layer.showcase-focus {
  z-index: 7;
  border-style: solid;
  border-color: #fff0a8;
  box-shadow: inset 0 0 35px rgba(255, 225, 120, 0.44), 0 0 24px rgba(255, 226, 134, 0.72);
  animation: fossilLayerGlow 0.85s ease-in-out infinite alternate;
}

.fossil-layer.showcase-muted,
.matched-fossil.showcase-muted {
  filter: grayscale(1) brightness(0.42);
  opacity: 0.48;
}

@keyframes fossilLayerGlow {
  to { background: rgba(255, 222, 125, 0.3); }
}

.fossil-tray {
  position: absolute;
  right: 13px;
  bottom: 12px;
  left: 13px;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.fossil-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  color: #fff;
  background: rgba(39, 63, 54, 0.86);
  text-align: left;
  cursor: grab;
}

.fossil-card img {
  width: 46px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.fossil-card span {
  display: grid;
  gap: 2px;
}

.fossil-card small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
}

.fossil-card.done {
  opacity: 0.55;
  pointer-events: none;
}

.fossil-card.pointer-dragging {
  opacity: 0.42;
}

/* 顶层拖拽预览不参与沉浸画布 zoom，缩放分辨率下仍紧贴鼠标。 */
.fossil-drag-preview {
  position: fixed;
  z-index: 2200;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 118px;
  border: 2px solid #f3d58f;
  border-radius: 999px;
  padding: 7px 13px 7px 8px;
  color: #fff7df;
  background: rgba(35, 55, 47, 0.96);
  box-shadow: 0 10px 26px rgba(17, 24, 20, 0.42);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.fossil-drag-preview img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.fossil-drag-preview strong {
  font-size: 15px;
  white-space: nowrap;
}

.reading-unlock {
  position: absolute;
  right: 18px;
  bottom: 19px;
  z-index: 7;
  width: 250px;
}

.matched-fossil {
  position: absolute;
  z-index: 6;
  width: 60px;
  height: 54px;
  border: 3px solid #ffe594;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(255, 222, 123, 0.85);
  animation: depositLand 0.5s ease both;
}

.matched-mammoth { top: 4%; left: 72%; }
.matched-tree { top: 40%; left: 62%; }
.matched-trilobite { top: 80%; left: 50%; }

.fossil-complete-badge {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 8;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff8de;
  background: rgba(39, 63, 54, 0.9);
  font-size: 11px;
}

.fossil-feedback {
  position: absolute;
  bottom: 93px;
  left: 50%;
  z-index: 15;
  width: max-content;
  min-width: 520px;
  max-width: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 12px;
  color: #fff;
  transform: translateX(-50%);
  box-shadow: 0 12px 28px rgba(33, 26, 20, 0.28);
  animation: feedbackRise 0.3s ease both;
  pointer-events: none;
}

.fossil-feedback.success { background: rgba(47, 91, 66, 0.95); }
.fossil-feedback.error { background: rgba(142, 62, 45, 0.95); }
.fossil-feedback strong,
.fossil-feedback p { white-space: nowrap; }
.fossil-feedback p { margin: 0; font-size: 11px; line-height: 1.5; }

@keyframes feedbackRise {
  from { opacity: 0; transform: translate(-50%, 9px); }
}

.fossil-showcase-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 12;
  padding: 10px 13px;
  border-radius: 11px;
  color: #fff9e8;
  background: rgba(35, 54, 47, 0.91);
  box-shadow: 0 12px 30px rgba(31, 24, 18, 0.3);
}

.fossil-showcase-caption span {
  color: #f0d084;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.fossil-showcase-caption strong {
  display: block;
  margin: 2px 0;
  font-size: 13px;
}

.fossil-showcase-caption p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.trace-workbench {
  position: absolute;
  inset: 68px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
}

.trace-strata-base {
  position: absolute;
  inset: 0;
  filter: sepia(0.14) brightness(0.8);
}

.trace-grid {
  position: absolute;
  inset: 0;
  height: 100%;
}

.trace-card {
  position: absolute;
  width: 44px;
  height: 44px;
  overflow: visible;
  border: 2px solid #fff0b0;
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: rgba(157, 85, 52, 0.92);
  cursor: pointer;
  box-shadow: 0 0 0 7px rgba(255, 228, 135, 0.15), 0 0 24px rgba(255, 222, 125, 0.76);
  animation: tracePointGlow 1.05s ease-in-out infinite alternate;
}

.trace-card:nth-child(1) { left: 14%; top: 20%; }
.trace-card:nth-child(2) { left: 37%; top: 36%; }
.trace-card:nth-child(3) { left: 61%; top: 17%; }
.trace-card:nth-child(4) { left: 81%; top: 49%; }

.trace-card img {
  display: none;
}

.trace-card span {
  position: absolute;
  top: 51px;
  left: 50%;
  width: max-content;
  max-width: 135px;
  display: grid;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(33, 49, 43, 0.88);
  transform: translateX(-50%);
  text-align: center;
}

.trace-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
}

.trace-card.viewed::after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #385344;
  background: #ffe9a8;
  font-size: 11px;
}

@keyframes tracePointGlow {
  to { box-shadow: 0 0 0 10px rgba(255, 228, 135, 0.08), 0 0 34px rgba(255, 222, 125, 0.92); }
}

.trace-instruction {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 5;
  width: max-content;
  max-width: 80%;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff9e4;
  background: rgba(35, 53, 46, 0.82);
  transform: translateX(-50%);
  font-size: 10px;
  text-align: center;
}

.trace-dialog,
.survey-dialog {
  position: absolute;
  inset: 9% 9%;
  z-index: 12;
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: 17px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 249, 234, 0.97);
  box-shadow: 0 22px 55px rgba(38, 31, 23, 0.34);
}

.trace-dialog img,
.survey-dialog img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 12px;
  object-fit: cover;
}

.trace-dialog > div,
.survey-dialog > div {
  align-self: center;
}

.trace-dialog span,
.survey-dialog span {
  color: var(--clay);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.trace-dialog strong,
.survey-dialog strong {
  display: block;
  margin: 5px 0 9px;
}

.trace-dialog p,
.survey-dialog p {
  line-height: 1.7;
  font-size: 13px;
}

.trace-dialog blockquote {
  margin: 12px 0 15px;
  padding: 9px 10px;
  border-left: 3px solid var(--ochre);
  color: #6d6254;
  background: #f0eadc;
  font-family: SimSun, serif;
  font-size: 12px;
  line-height: 1.65;
}

.trace-close-button {
  min-width: 122px;
}

/* 第六幕：山地勘探 */
.survey-scene {
  padding: 76px 16px 16px;
  background:
    linear-gradient(rgba(31, 56, 48, 0.2), rgba(31, 48, 42, 0.72)),
    url("https://static.rsxr.eu.cc/time/assets/images/intro-canyon.webp") center / cover;
}

.survey-intro {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 3;
  color: #fff;
}

.survey-intro span {
  color: #e8ca88;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.survey-intro strong {
  display: block;
  margin-top: 2px;
}

.survey-intro p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
}

.survey-grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.survey-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  padding: 0;
  color: #fff;
  background: #34483f;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(29, 31, 24, 0.23);
}

.survey-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.survey-card span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 2px;
  padding: 33px 10px 10px;
  background: linear-gradient(transparent, rgba(28, 40, 35, 0.94));
  text-align: left;
}

.survey-card small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
}

.survey-card.viewed {
  box-shadow: 0 0 0 3px #f3d891, 0 12px 28px rgba(29, 31, 24, 0.23);
}

.survey-dialog {
  inset: 8%;
  grid-template-columns: 64% 1fr;
}

@media (max-width: 1200px) {
  .droplet-scene {
    grid-template-columns: 1fr;
  }

  .poem-visual {
    display: none;
  }

  .weather-cards {
    width: 58%;
  }

  .effect-caption {
    width: 34%;
  }

  .sample-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sample-card img {
    display: none;
  }
}

/* =========================================================
 * 2026-08 字号、阅读与后三幕细节修补
 * ========================================================= */
.immersive-scene .reading-content {
  overflow-y: auto;
  scrollbar-width: auto;
  scrollbar-color: rgba(106, 79, 48, 0.55) rgba(255, 250, 235, 0.28);
}

.immersive-scene .reading-content p {
  margin-bottom: 22px;
  font-size: clamp(18px, 1.32vw, 22px);
  line-height: 2;
  text-indent: 2em;
}

.scene-droplet .reading-content p:first-child {
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(147, 75, 52, 0.24);
  font-style: italic;
}

.scene-guidance {
  gap: 5px;
  padding: 12px 24px;
}

.scene-guidance span {
  font-size: 13px;
}

.scene-guidance strong {
  font-size: 17px;
  line-height: 1.45;
}

.time-quote-card blockquote p {
  font-size: clamp(17px, 1.34vw, 21px);
  line-height: 1.9;
}

.droplet-question small {
  font-size: 13px;
}

.droplet-question p {
  font-size: 16px;
  line-height: 1.75;
}

.weather-scene .weather-cards {
  width: 142px;
}

.weather-scene .weather-card {
  min-height: 76px;
  grid-template-columns: 48px 1fr;
  gap: 4px 9px;
  padding: 10px;
}

.weather-scene .weather-card img {
  width: 48px;
  height: 48px;
}

.weather-scene .weather-card span {
  font-size: 16px;
}

.weather-scene .weather-card small,
.weather-scene .weather-cards > p {
  font-size: 11px;
}

.weather-scene .effect-caption {
  width: min(430px, 48%);
  padding: 17px 20px;
}

.weather-scene .effect-caption .conclusion-label {
  font-size: 12px;
}

.weather-scene .effect-caption strong {
  font-size: 19px;
}

.weather-scene .effect-caption p {
  font-size: 15px;
  line-height: 1.7;
}

.weather-complete-state {
  animation: weatherCompleteReveal 1.05s ease-out both;
}

.immersive-scene .note-prompt {
  font-size: 18px;
  line-height: 1.8;
}

.note-toggle,
.immersive-scene .assistant-ball {
  width: 70px;
  height: 70px;
}

.note-toggle {
  right: 20px;
  bottom: 112px;
}

.note-toggle span {
  font-size: 29px;
}

.immersive-scene .assistant-ball {
  right: 20px;
  bottom: 24px;
  font-size: 31px;
}

.scene-strata.immersive-scene .stage-footer,
.scene-fossils.immersive-scene .stage-footer,
.scene-survey.immersive-scene .stage-footer {
  padding-right: 102px;
}

.fossil-card.locked {
  filter: grayscale(0.85) brightness(0.58);
  opacity: 0.52;
  cursor: not-allowed;
}

.reading-lock-notice {
  position: absolute;
  top: 138px;
  left: 50%;
  z-index: 18;
  width: min(570px, calc(100% - 190px));
  padding: 9px 15px;
  border: 1px solid rgba(255, 232, 171, 0.7);
  border-radius: 999px;
  color: #fff8df;
  background: rgba(115, 70, 48, 0.9);
  box-shadow: 0 8px 22px rgba(35, 25, 19, 0.24);
  transform: translateX(-50%);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.trace-card {
  width: 58px;
  height: 58px;
}

.trace-card img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.trace-card span {
  top: 65px;
}

.scene-survey .survey-intro {
  max-width: 410px;
  display: grid;
  gap: 3px;
  padding: 9px 13px;
  border: 1px solid rgba(235, 211, 161, 0.46);
  border-radius: 11px;
  background: rgba(31, 49, 42, 0.74);
  backdrop-filter: blur(8px);
}

.scene-survey .survey-intro strong {
  font-size: 16px;
}

.scene-survey .survey-intro p {
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.55;
}

.scene-survey .survey-dialog {
  grid-template-columns: minmax(0, 56%) minmax(260px, 44%);
  gap: 24px;
}

.scene-survey .survey-dialog span {
  font-size: 13px;
}

.scene-survey .survey-dialog strong {
  margin: 8px 0 12px;
  font-size: 21px;
}

.scene-survey .survey-dialog p {
  font-size: 16px;
  line-height: 1.85;
}

.scene-survey .survey-dialog .text-button {
  padding: 10px 16px;
  font-size: 14px;
}

/* =========================================================
 * 第三幕 v2：沿用前两幕“左侧课文 + 右侧沉浸画布”
 * ========================================================= */
.scene-sediment.immersive-scene .stage-panel {
  background: #26352f;
}

.sediment-v2 {
  isolation: isolate;
  color: #f9f2df;
  background: #27362f;
}

.sediment-v2::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -28px;
  background:
    linear-gradient(rgba(31, 44, 38, 0.42), rgba(28, 40, 34, 0.64)),
    url("https://static.rsxr.eu.cc/time/assets/images/sediment-landscape-v2.webp") center / cover;
  filter: blur(16px) brightness(0.72) saturate(0.76);
  transform: scale(1.06);
}

.sediment-v2::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 35, 30, 0.42), transparent 19%, transparent 76%, rgba(20, 31, 27, 0.7)),
    radial-gradient(ellipse at 50% 48%, transparent 44%, rgba(16, 28, 24, 0.28));
  pointer-events: none;
}

.sediment-guidance {
  z-index: 40;
  min-width: min(650px, 69%);
}

.sediment-landscape-v2 {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(238, 210, 151, 0.42);
  border-bottom: 1px solid rgba(238, 210, 151, 0.42);
  box-shadow: 0 22px 52px rgba(8, 17, 13, 0.38);
  transform: translateY(-50%);
}

.sediment-base-v2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.sediment-flow-svg {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.flow-glow,
.flow-streak,
.flow-outlet {
  fill: none;
  stroke-linecap: round;
  filter: url("#flowGlow");
}

.sediment-flow-svg.weak .flow-glow {
  stroke: rgba(89, 179, 210, 0.28);
  stroke-width: 9;
}

.sediment-flow-svg.weak .flow-streak {
  stroke: rgba(229, 250, 255, 0.52);
  stroke-width: 2.4;
  stroke-dasharray: 7 22;
  animation: sedimentFlowDash 7.2s linear infinite;
}

.sediment-flow-svg.strong .flow-glow {
  stroke: rgba(78, 177, 221, 0.3);
  stroke-width: 11;
}

.sediment-flow-svg.strong .flow-streak {
  stroke: rgba(246, 254, 255, 0.76);
  stroke-width: 3;
  stroke-dasharray: 15 13 4 18;
  animation: sedimentFlowDash 1.15s linear infinite;
}

.sediment-flow-svg .flow-outlet {
  stroke: rgba(213, 246, 253, 0.5);
  stroke-width: 2.2;
  stroke-dasharray: 7 18;
  animation: sedimentFlowDash 5.5s linear infinite;
}

.sediment-flow-svg.strong .flow-outlet {
  stroke-width: 4.5;
  stroke: rgba(236, 253, 255, 0.74);
  animation-duration: 1.5s;
}

.flow-particle {
  fill: #e2c07d;
  stroke: rgba(72, 53, 30, 0.65);
  stroke-width: 0.8;
  filter: drop-shadow(0 1px 2px rgba(31, 24, 16, 0.65));
}

.flow-particle.coarse {
  fill: #8b806b;
}

.sediment-flow-svg.weak .flow-particle.coarse {
  opacity: 0.25;
}

.sediment-demo-layer {
  pointer-events: none;
}

.transport-particle {
  opacity: 0;
  stroke-linejoin: round;
  stroke-linecap: round;
  will-change: opacity, transform;
}

.transport-gravel {
  fill: #746d60;
  stroke: rgba(45, 39, 31, 0.92);
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 2px rgba(27, 22, 16, 0.65));
}

.transport-sand {
  fill: #c9a564;
  stroke: rgba(91, 66, 34, 0.82);
  stroke-width: 1;
  filter: drop-shadow(0 1px 1px rgba(48, 35, 21, 0.55));
}

.transport-clay {
  fill: rgba(143, 111, 69, 0.74);
  stroke: rgba(89, 66, 42, 0.42);
  stroke-width: 0.55;
}

.sediment-flow-svg.weak.is-playing .transport-gravel {
  opacity: 0.76;
}

.sediment-flow-svg.strong.is-playing .flow-glow,
.sediment-flow-svg.strong.is-playing .flow-streak,
.sediment-flow-svg.strong.is-playing .flow-outlet {
  animation-name: strongFlowBuild, sedimentFlowDash;
  animation-timing-function: ease-out, linear;
  animation-iteration-count: 1, infinite;
}

.sediment-flow-svg.strong.is-playing .flow-glow {
  animation-duration: 0.85s, 1.15s;
}

.sediment-flow-svg.strong.is-playing .flow-streak {
  animation-duration: 0.85s, 1.15s;
}

.sediment-flow-svg.strong.is-playing .flow-outlet {
  animation-duration: 0.9s, 1.5s;
}

@keyframes strongFlowBuild {
  from { opacity: 0.38; stroke-width: 2; }
  to { opacity: 1; }
}

.demo-deposits {
  pointer-events: none;
}

.demo-deposit {
  opacity: 0;
  animation: demoDepositArrive 0.72s ease-out forwards;
}

.demo-gravel {
  fill: #756d60;
  stroke: rgba(42, 36, 29, 0.88);
  stroke-width: 1.2;
}

.demo-sand {
  fill: #c9a564;
  stroke: rgba(94, 67, 32, 0.72);
  stroke-width: 0.8;
  animation-delay: 0.13s;
}

.demo-clay {
  fill: rgba(128, 101, 69, 0.5);
  animation: mudCloudSettle 1.35s ease-out 0.18s forwards;
}

@keyframes demoDepositArrive {
  from { opacity: 0; transform: translateY(-9px) scale(0.86); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mudCloudSettle {
  from { opacity: 0; transform: translateY(-22px) scale(0.72); }
  58% { opacity: 0.72; }
  to { opacity: 0.56; transform: translateY(8px) scale(1.08); }
}

.water-conclusion-v2 {
  position: absolute;
  top: 23%;
  right: 7%;
  z-index: 22;
  width: min(440px, 42%);
  padding: 15px 18px;
  border: 1px solid rgba(255, 235, 179, 0.74);
  border-radius: 14px;
  color: #fff8e7;
  background: rgba(31, 49, 42, 0.92);
  box-shadow: 0 16px 38px rgba(10, 20, 16, 0.38), 0 0 30px rgba(247, 205, 115, 0.12);
  backdrop-filter: blur(11px);
  pointer-events: none;
  animation: waterConclusionIn 0.38s ease-out both;
}

.water-conclusion-v2 span,
.water-conclusion-v2 strong {
  display: block;
}

.water-conclusion-v2 span {
  color: #e3c37d;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.water-conclusion-v2 strong {
  margin-top: 6px;
  font-size: 19px;
  line-height: 1.55;
}

.water-conclusion-v2.strong {
  border-color: rgba(189, 233, 244, 0.78);
  box-shadow: 0 16px 38px rgba(10, 20, 16, 0.38), 0 0 34px rgba(112, 207, 235, 0.16);
}

@keyframes waterConclusionIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sedimentFlowDash {
  to { stroke-dashoffset: -130; }
}

.sediment-location-label {
  position: absolute;
  z-index: 8;
  border: 1px solid rgba(255, 245, 213, 0.45);
  border-radius: 15px;
  padding: 4px 9px;
  color: rgba(255, 250, 232, 0.88);
  background: rgba(37, 54, 46, 0.58);
  box-shadow: 0 4px 12px rgba(28, 28, 20, 0.15);
  font-size: 10px;
  pointer-events: none;
}

.source-label {
  top: 24%;
  left: 38%;
}

.lake-label {
  top: 49%;
  right: 12%;
}

.water-control-v2,
.sample-panel-v2,
.sediment-progress-v2,
.observation-guide-v2,
.sediment-summary-v2 {
  position: absolute;
  z-index: 25;
  border: 1px solid rgba(235, 211, 161, 0.48);
  background: rgba(31, 49, 42, 0.9);
  box-shadow: 0 12px 32px rgba(13, 25, 20, 0.34);
  backdrop-filter: blur(12px);
}

.water-control-v2 {
  top: 84px;
  left: 18px;
  width: min(410px, 44%);
  border-radius: 13px;
  padding: 12px 14px 10px;
}

.water-control-v2 header,
.sample-panel-v2 header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
}

.water-control-v2 header span,
.sample-panel-v2 header span {
  color: #e0c58c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.water-control-v2 header strong,
.sample-panel-v2 header strong {
  color: #fff5d8;
  font-size: 12px;
}

.water-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.water-choice-row button {
  position: relative;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(227, 206, 163, 0.25);
  border-radius: 8px;
  padding: 7px 9px;
  color: rgba(255, 247, 225, 0.76);
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  cursor: pointer;
}

.water-choice-row button.active {
  border-color: rgba(245, 211, 132, 0.78);
  color: #fff7df;
  background: rgba(186, 119, 52, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 231, 171, 0.12);
}

.water-choice-row button.viewed::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 7px;
  color: #f4d690;
  font-weight: 700;
}

.water-choice-row button b {
  font-size: 13px;
}

.water-choice-row button small {
  opacity: 0.76;
  font-size: 9px;
}

.water-control-v2 > p {
  margin: 7px 0 0;
  color: rgba(255, 247, 226, 0.76);
  font-size: 10px;
  line-height: 1.55;
}

.sample-panel-v2 {
  right: 18px;
  bottom: 18px;
  left: 18px;
  border-radius: 14px;
  padding: 10px 12px;
  transition: opacity 0.2s ease;
}

.sample-panel-v2.locked {
  opacity: 0.75;
}

.sample-panel-v2 header {
  grid-template-columns: auto auto 1fr;
}

.sample-panel-v2 header small {
  justify-self: end;
  color: rgba(255, 245, 219, 0.66);
  font-size: 10px;
}

.sample-tray-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 7px;
}

.sample-card-v2 {
  min-width: 0;
  height: 58px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(244, 224, 180, 0.28);
  border-radius: 9px;
  padding: 4px 8px 4px 4px;
  color: #fff6df;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
  cursor: grab;
  touch-action: none;
}

.sample-card-v2:hover:not(:disabled),
.sample-card-v2.selected {
  border-color: #efd28e;
  background: rgba(204, 144, 70, 0.3);
}

.sample-card-v2:disabled {
  cursor: default;
}

.sample-card-v2.done {
  opacity: 0.58;
}

.sample-card-v2 img {
  width: 54px;
  height: 48px;
  object-fit: contain;
  border-radius: 7px;
}

.sample-card-v2 span,
.sample-card-v2 strong,
.sample-card-v2 small {
  display: block;
  min-width: 0;
}

.sample-card-v2.pointer-dragging {
  opacity: 0.42;
}

.sample-drag-preview {
  position: fixed;
  z-index: 2200;
  width: 112px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #f3d58f;
  border-radius: 999px;
  padding: 7px 12px 7px 8px;
  color: #fff7df;
  background: rgba(35, 55, 47, 0.96);
  box-shadow: 0 10px 26px rgba(17, 24, 20, 0.42);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sample-drag-preview img {
  width: 42px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}

.sample-drag-preview strong {
  font-size: 15px;
  white-space: nowrap;
}

.sample-card-v2 strong {
  font-size: 13px;
}

.sample-card-v2 small {
  margin-top: 2px;
  color: rgba(255, 246, 222, 0.68);
  font-size: 9px;
}

.sediment-progress-v2 {
  top: 88px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 18px;
  padding: 7px 10px;
  font-size: 9px;
}

.sediment-progress-v2 span {
  color: rgba(255, 246, 223, 0.6);
}

.sediment-progress-v2 span.done {
  color: #f3d58f;
}

.sediment-progress-v2 span b {
  margin-right: 2px;
}

.sediment-progress-v2 i {
  width: 17px;
  height: 1px;
  background: rgba(236, 214, 170, 0.32);
}

.drop-zone-v2 {
  position: absolute;
  z-index: 10;
  border: 2px dashed transparent;
  border-radius: 45%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.drop-zone-v2.locked {
  pointer-events: none;
}

.drop-zone-v2 span {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 14px;
  padding: 4px 8px;
  color: transparent;
  background: transparent;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.drop-zone-v2.selectable,
.drop-zone-v2.drag-target-visible {
  border-color: rgba(255, 241, 185, 0.75);
  background: rgba(255, 225, 135, 0.08);
  animation: depositTargetPulse 1.35s ease-in-out infinite;
}

.drop-zone-v2.selectable span,
.drop-zone-v2.drag-target-visible span {
  color: #fff7dc;
  background: rgba(42, 55, 47, 0.75);
}

.drop-zone-v2.drag-over,
.drop-zone-v2:focus-visible {
  border-color: #fff0a7;
  background: rgba(255, 219, 98, 0.28);
  outline: none;
}

.mountain-zone {
  top: 36%;
  left: 2%;
  width: 27%;
  height: 50%;
}

.river-zone {
  top: 43%;
  left: 31%;
  width: 35%;
  height: 30%;
}

.lake-zone {
  top: 43%;
  right: 3%;
  width: 29%;
  height: 34%;
}

@keyframes depositTargetPulse {
  50% { box-shadow: 0 0 0 7px rgba(255, 231, 158, 0.12); }
}

.deposit-visual {
  position: absolute;
  z-index: 6;
  margin: 0;
  pointer-events: none;
  animation: depositArrive 0.65s ease-out both;
}

.deposit-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.deposit-visual figcaption {
  position: absolute;
  left: 50%;
  bottom: 5%;
  border: 1px solid rgba(255, 245, 214, 0.46);
  border-radius: 14px;
  padding: 4px 8px;
  color: #fff9e6;
  background: rgba(38, 52, 45, 0.72);
  font-size: 9px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.deposit-gravel {
  bottom: 1%;
  left: -5%;
  width: 38%;
  height: 43%;
}

.deposit-sand {
  top: 45%;
  left: 28%;
  width: 42%;
  height: 30%;
  transform: rotate(-4deg);
}

.deposit-clay {
  top: 43%;
  right: 2%;
  width: 34%;
  height: 34%;
  opacity: 0.78;
  transform: rotate(7deg);
}

@keyframes depositArrive {
  from { opacity: 0; filter: blur(5px); transform: translateY(-12px) scale(0.9); }
}

.observation-v2 {
  position: absolute;
  z-index: 16;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 247, 213, 0.9);
  border-radius: 50%;
  color: #fff9df;
  background: #a54c35;
  box-shadow: 0 0 0 7px rgba(248, 218, 148, 0.26), 0 6px 17px rgba(53, 35, 20, 0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
  animation: observationPulse 1.5s ease-in-out infinite;
}

.observation-v2 b {
  font-size: 20px;
  line-height: 1;
}

.observation-v2 span {
  position: absolute;
  right: -5px;
  bottom: -6px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #78402e;
  background: #fff4d5;
  font-size: 8px;
}

.observation-v2.viewed {
  color: #fff;
  background: #426b58;
  animation: none;
}

@keyframes observationPulse {
  50% { box-shadow: 0 0 0 13px rgba(248, 218, 148, 0), 0 6px 17px rgba(53, 35, 20, 0.35); }
}

.observation-guide-v2 {
  top: 142px;
  left: 50%;
  border-radius: 18px;
  padding: 8px 15px;
  color: #fff6dc;
  transform: translateX(-50%);
  font-size: 11px;
}

.observation-card-v2 {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 40;
  width: min(620px, 74%);
  display: grid;
  grid-template-columns: 44% 1fr;
  overflow: hidden;
  border: 1px solid rgba(240, 211, 153, 0.72);
  border-radius: 14px;
  color: #f8eed8;
  background: rgba(30, 43, 37, 0.95);
  box-shadow: 0 24px 62px rgba(12, 19, 16, 0.58);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(14px);
}

.observation-card-v2 > img {
  width: 100%;
  height: 100%;
  min-height: 225px;
  object-fit: cover;
}

.observation-card-v2 > div {
  padding: 21px 23px;
}

.observation-card-v2 span {
  color: #d7b878;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.observation-card-v2 strong {
  display: block;
  margin: 6px 0 10px;
  font-size: 19px;
}

.observation-card-v2 blockquote {
  margin: 0;
  border-left: 3px solid #c99b52;
  padding: 7px 0 7px 12px;
  color: #ecd8a9;
  font-family: "KaiTi", serif;
}

.observation-card-v2 p {
  margin: 10px 0 14px;
  color: rgba(255, 246, 222, 0.78);
  font-size: 12px;
  line-height: 1.65;
}

.observation-card-v2 button {
  border: 1px solid rgba(237, 208, 151, 0.48);
  border-radius: 6px;
  padding: 7px 13px;
  color: #fff3d3;
  background: rgba(186, 112, 50, 0.34);
  cursor: pointer;
}

.sediment-summary-v2 {
  right: 88px;
  bottom: 18px;
  left: 18px;
  min-height: 96px;
  display: grid;
  grid-template-columns: 142px 1fr auto;
  align-items: center;
  gap: 14px;
  border-radius: 13px;
  padding: 8px 10px;
}

.sediment-summary-v2 img {
  width: 142px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
}

.sediment-summary-v2 div {
  min-width: 0;
}

.sediment-summary-v2 span,
.sediment-summary-v2 strong {
  display: block;
}

.sediment-summary-v2 span {
  color: #d9b975;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.sediment-summary-v2 strong {
  margin-top: 5px;
  color: #fff5da;
  font-size: 12px;
  line-height: 1.55;
}

.sediment-summary-v2 .primary-button {
  min-width: 112px;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 11px;
}

.sediment-v2.is-complete .sample-panel-v2 {
  display: none;
}

@media (max-width: 1280px) {
  .water-control-v2 {
    width: min(360px, 48%);
  }

  .sediment-progress-v2 {
    right: 70px;
  }

  .sample-card-v2 {
    grid-template-columns: 48px 1fr;
  }

  .sample-card-v2 img {
    width: 46px;
  }
}

/* =========================================================
 * 第四至第六幕：统一为左侧课文 + 右侧实验画布
 * ========================================================= */
.scene-strata.immersive-scene .stage,
.scene-fossils.immersive-scene .stage,
.scene-survey.immersive-scene .stage {
  height: calc(100vh - 68px);
  min-height: 572px;
}

.scene-strata.immersive-scene .stage-footer,
.scene-fossils.immersive-scene .stage-footer,
.scene-survey.immersive-scene .stage-footer {
  min-height: 68px;
  display: flex;
  flex: 0 0 68px;
  padding: 10px 88px 10px 20px;
  border-top: 1px solid rgba(228, 203, 149, 0.28);
  color: #fff6dd;
  background: #1c3029;
}

.scene-strata.immersive-scene .stage-footer .stage-tip,
.scene-fossils.immersive-scene .stage-footer .stage-tip,
.scene-survey.immersive-scene .stage-footer .stage-tip {
  color: rgba(255, 247, 224, 0.75);
  font-size: 12px;
}

.late-scene-header {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 30;
  min-width: 320px;
  display: grid;
  justify-items: center;
  gap: 2px;
  border: 1px solid rgba(235, 211, 161, 0.5);
  border-radius: 13px;
  padding: 8px 22px;
  color: #fff7df;
  background: rgba(31, 49, 42, 0.88);
  box-shadow: 0 10px 28px rgba(13, 25, 20, 0.28);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  pointer-events: none;
}

.late-scene-header span {
  color: #ddbd79;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.late-scene-header strong {
  font: 600 15px/1.25 "KaiTi", "STKaiti", serif;
  letter-spacing: 0.08em;
}

.scene-strata .strata-toolbar {
  top: 82px;
}

.scene-fossils .fossil-tab-block {
  top: 75px;
}

.scene-fossils .fossil-workbench {
  top: 132px;
}

.scene-fossils .trace-workbench {
  top: 132px;
}

.scene-fossils .trace-dialog {
  top: 132px;
  bottom: 34px;
}

.scene-survey .survey-scene {
  padding-top: 132px;
}

.scene-survey .survey-intro {
  top: 76px;
}

.scene-survey .survey-dialog {
  top: 78px;
  bottom: 42px;
}

/* =========================================================
 * 沉浸式重构：序章、第一幕、第二幕
 * ========================================================= */
.immersive-system-controls {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1200;
  display: flex;
  gap: 10px;
}

.system-image-button {
  width: 54px;
  height: 54px;
  border: 0;
  padding: 0;
  border-radius: 15px;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 6px 9px rgba(38, 28, 19, 0.32));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.system-reset-button {
  min-width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 246, 220, 0.72);
  border-radius: 50%;
  padding: 0 9px;
  color: #fff8e9;
  background: rgba(147, 75, 52, 0.92);
  box-shadow: 0 6px 15px rgba(64, 37, 25, 0.28);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease;
}

.system-reset-button:hover {
  transform: translateY(-2px) scale(1.04);
}

.system-reset-button.reset-armed,
#resetButton.reset-armed {
  color: #fff;
  background: #b33f30;
}

.system-image-button:hover {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 8px 13px rgba(38, 28, 19, 0.4)) brightness(1.08);
}

.system-image-button img {
  width: 100%;
  height: 100%;
  display: block;
}

.note-toggle {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 1050;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 2px solid #d9bc86;
  border-radius: 50%;
  color: #fff7e6;
  background: radial-gradient(circle at 32% 28%, #8d7651, #5f4931 68%, #423223);
  box-shadow: 0 7px 18px rgba(57, 39, 27, 0.42);
  cursor: pointer;
}

.note-toggle span {
  font: 700 25px/1 "KaiTi", serif;
}

.note-toggle small {
  position: absolute;
  right: 68px;
  width: max-content;
  padding: 5px 9px;
  border: 1px solid rgba(217, 188, 134, 0.7);
  border-radius: 999px;
  color: #503d2d;
  background: rgba(253, 246, 226, 0.93);
  font-size: 12px;
  opacity: 0;
  transform: translateX(8px);
  transition: 0.2s ease;
  pointer-events: none;
}

.note-toggle:hover small,
.note-toggle.attention small {
  opacity: 1;
  transform: none;
}

.note-toggle.attention {
  animation: noteAttention 1.35s ease-in-out infinite;
}

@keyframes noteAttention {
  0%, 100% { box-shadow: 0 7px 18px rgba(57, 39, 27, 0.42), 0 0 0 0 rgba(255, 220, 113, 0.7); }
  50% { box-shadow: 0 7px 18px rgba(57, 39, 27, 0.42), 0 0 0 17px rgba(255, 220, 113, 0); }
}

.scene-veil {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 229, 185, 0.22), transparent 45%),
    #17241f;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.48s ease;
}

.scene-veil.active {
  opacity: 1;
  pointer-events: auto;
}

.scene-veil.active.leaving {
  opacity: 0;
  transition-duration: 0.62s;
}

.immersive-scene {
  min-width: 960px;
  min-height: 640px;
  overflow: hidden;
  background: #17251f;
}

.immersive-scene .topbar,
.immersive-scene .scene-nav {
  display: none;
}

.immersive-scene .workspace {
  height: 100vh;
  min-height: 640px;
  grid-template-columns: minmax(330px, 34%) 1fr;
  gap: 0;
  padding: 0;
}

.immersive-scene .panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.immersive-scene .reading-panel {
  position: relative;
  z-index: 5;
  padding: 34px 30px 28px;
  border-right: 1px solid rgba(185, 138, 68, 0.54);
  background:
    linear-gradient(rgba(255, 250, 237, 0.94), rgba(244, 232, 202, 0.96)),
    url("https://static.rsxr.eu.cc/time/assets/images/parchment-dialog.webp") center / cover;
}

.immersive-scene .reading-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: -15px;
  bottom: 0;
  width: 15px;
  background: linear-gradient(90deg, rgba(48, 35, 24, 0.22), transparent);
  pointer-events: none;
}

.immersive-scene .reading-panel .panel-heading {
  padding: 0 0 16px;
  border-bottom-color: rgba(150, 106, 60, 0.26);
}

.immersive-scene .reading-content {
  height: calc(100vh - 112px);
  padding: 22px 7px 30px 1px;
}

.immersive-scene .reading-content p {
  font-family: "KaiTi", "STKaiti", serif;
  font-size: clamp(16px, 1.18vw, 20px);
  line-height: 1.9;
  text-indent: 2em;
}

.immersive-scene .stage-panel {
  min-width: 0;
  background: #1f342d;
}

.immersive-scene .stage-heading,
.immersive-scene .stage-footer {
  display: none;
}

.immersive-scene .stage {
  height: 100vh;
  min-height: 640px;
}

.immersive-scene .note-panel {
  position: fixed;
  top: 9vh;
  right: 92px;
  bottom: 9vh;
  z-index: 1100;
  width: min(420px, calc(100vw - 140px));
  display: flex;
  flex-direction: column;
  padding: 56px 44px 48px;
  border: 0;
  border-radius: 20px;
  background: url("https://static.rsxr.eu.cc/time/assets/images/parchment-dialog.webp") center / 100% 100% no-repeat;
  box-shadow: 0 24px 70px rgba(32, 25, 18, 0.46);
  opacity: 0;
  transform: translateX(35px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.immersive-scene .note-panel.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.immersive-scene .note-panel .panel-heading {
  flex-direction: row;
  justify-content: space-between;
  padding-bottom: 13px;
}

.immersive-scene .note-panel .panel-heading strong {
  display: block;
  margin-top: 4px;
}

.note-close {
  display: none;
}

.immersive-scene .note-close {
  display: grid;
  place-items: center;
}

.immersive-scene .note-prompt {
  flex: 0 0 auto;
  margin: 18px 0 12px;
  font-family: "KaiTi", serif;
  line-height: 1.7;
}

.immersive-scene .note-panel textarea {
  flex: 1;
  min-height: 150px;
  border-color: rgba(185, 138, 68, 0.5);
  background: rgba(255, 253, 245, 0.76);
}

.immersive-scene .score-card {
  display: none;
}

.immersive-scene .assistant-ball {
  position: fixed;
  top: auto;
  right: 24px;
  bottom: 24px;
  z-index: 1050;
  width: 62px;
  height: 62px;
  border: 2px solid #d9bc86;
  color: #fff7e6;
  background: radial-gradient(circle at 32% 30%, #c05a44, #9e3b2b 60%, #7e2f22);
  box-shadow: 0 7px 18px rgba(126, 47, 34, 0.45);
  font: 700 27px/1 "KaiTi", serif;
  animation: ballPulse 2.6s ease-in-out infinite;
}

.immersive-scene .assistant-panel {
  right: 98px;
  bottom: 22px;
  width: clamp(480px, 34vw, 640px);
  max-width: calc(100vw - 120px);
  height: min(860px, calc(100vh - 44px));
  padding: 42px 32px 36px;
  border: 0;
  border-radius: 20px;
  background: url("https://static.rsxr.eu.cc/time/assets/images/parchment-dialog.webp") center / 100% 100% no-repeat;
}

.immersive-scene .assistant-panel header {
  padding: 0 4px 13px;
  border-color: rgba(185, 138, 68, 0.35);
}

.immersive-scene .chat-log {
  padding: 15px 4px;
}

.immersive-scene .chat-form {
  padding: 12px 3px 0;
  border-color: rgba(185, 138, 68, 0.35);
}

/* 序章 */
.scene-intro .workspace {
  display: block;
}

.scene-intro .reading-panel,
.scene-intro .note-panel,
.scene-intro .note-toggle,
.scene-intro .assistant-ball {
  display: none !important;
}

.scene-intro .stage-panel,
.scene-intro .stage,
.scene-intro .intro-scene {
  width: 100vw;
  height: 100vh;
}

.scene-intro .intro-scene {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(rgba(21, 34, 29, 0.08), rgba(22, 34, 29, 0.43)),
    url("https://static.rsxr.eu.cc/time/assets/images/intro-canyon.webp") center / cover no-repeat;
}

.scene-intro .intro-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 150px rgba(20, 24, 17, 0.48);
  pointer-events: none;
}

.cloud {
  position: absolute;
  z-index: 1;
  width: 70vw;
  height: 26vh;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 20% 55%, rgba(250, 246, 225, 0.42), transparent 33%),
    radial-gradient(ellipse at 48% 45%, rgba(250, 246, 225, 0.34), transparent 38%),
    radial-gradient(ellipse at 78% 60%, rgba(250, 246, 225, 0.28), transparent 31%);
  filter: blur(16px);
  opacity: 0.72;
  pointer-events: none;
}

.cloud-one {
  top: 8%;
  left: -25%;
  animation: cloudDriftOne 24s linear infinite alternate;
}

.cloud-two {
  right: -30%;
  bottom: 12%;
  animation: cloudDriftTwo 31s linear infinite alternate;
}

@keyframes cloudDriftOne {
  to { transform: translateX(48vw) translateY(2vh); }
}

@keyframes cloudDriftTwo {
  to { transform: translateX(-44vw) translateY(-3vh); }
}

.intro-title {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: min(760px, 76vw);
  padding: 44px 58px 36px;
  color: #fff9e9;
  background: linear-gradient(90deg, transparent, rgba(28, 42, 36, 0.72) 18% 82%, transparent);
  transform: translate(-50%, -50%);
  text-align: center;
  text-shadow: 0 3px 14px rgba(23, 20, 14, 0.72);
}

.intro-title > span {
  color: #edcf88;
  font-family: "KaiTi", serif;
  font-size: 18px;
  letter-spacing: 0.34em;
}

.intro-title h1 {
  margin: 13px 0 4px;
  color: #fff9e9;
  font: 700 clamp(38px, 4.2vw, 66px)/1.25 "STKaiti", "KaiTi", serif;
  letter-spacing: 0.16em;
}

.intro-title strong {
  display: block;
  color: rgba(255, 249, 232, 0.85);
  font: 600 clamp(20px, 2vw, 30px)/1.6 "KaiTi", serif;
  letter-spacing: 0.16em;
}

.intro-title em {
  display: block;
  margin-top: 5px;
  color: rgba(255, 249, 232, 0.7);
  font: normal 400 clamp(14px, 1.2vw, 18px)/1.6 "KaiTi", serif;
  letter-spacing: 0.08em;
}

.intro-title p {
  margin: 29px 0 0;
  color: #f3dda8;
  font-size: 14px;
  letter-spacing: 0.18em;
  animation: introPrompt 1.9s ease-in-out infinite;
}

.intro-title p i {
  display: inline-block;
  width: 48px;
  height: 1px;
  margin: 0 12px 4px;
  background: linear-gradient(90deg, transparent, #e3c271);
}

.intro-title p i:last-child {
  background: linear-gradient(90deg, #e3c271, transparent);
}

@keyframes introPrompt {
  50% { opacity: 0.58; transform: translateY(3px); }
}

/* 第一幕 */
.droplet-scene {
  position: relative;
  display: block;
  height: 100%;
  padding: 86px 36px 66px;
  background:
    radial-gradient(circle at 68% 14%, rgba(225, 190, 116, 0.19), transparent 28%),
    linear-gradient(145deg, #263a34, #17241f);
}

.scene-guidance {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 10;
  min-width: min(680px, 72%);
  display: grid;
  gap: 3px;
  padding: 10px 22px;
  border: 1px solid rgba(217, 188, 134, 0.58);
  border-radius: 9px;
  color: #f6edd9;
  background: rgba(34, 48, 42, 0.72);
  transform: translateX(-50%);
  text-align: center;
  backdrop-filter: blur(8px);
}

.scene-guidance span {
  color: #d9bc86;
  font-size: 11px;
}

.scene-guidance strong {
  font-size: 14px;
  font-weight: 500;
}

.droplet-gallery {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(150px, 32%) 1fr;
  gap: 16px;
}

.droplet-gallery figure {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 188, 134, 0.66);
  border-radius: 16px;
  background: #14221d;
  box-shadow: 0 18px 40px rgba(11, 18, 15, 0.35);
}

.droplet-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.poem-visual figcaption {
  position: absolute;
  top: 50%;
  right: 7%;
  z-index: 3;
  width: 46%;
  color: #fff4d6;
  transform: translateY(-50%);
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.poem-visual figcaption strong {
  display: block;
  margin-bottom: 6px;
  color: #e8c977;
  font: 700 24px/1.2 "STKaiti", serif;
  letter-spacing: 0.18em;
}

.poem-visual figcaption span {
  font: 500 clamp(14px, 1.2vw, 18px)/1.75 "KaiTi", serif;
}

.clepsydra-visual {
  aspect-ratio: 4 / 3;
  justify-self: center;
  width: auto;
  max-width: 100%;
  height: 100%;
  cursor: pointer;
}

.clepsydra-visual img {
  object-fit: contain;
}

.clepsydra-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(transparent 62%, rgba(10, 17, 14, 0.78));
  pointer-events: none;
}

.clepsydra-visual figcaption {
  position: absolute;
  right: 5%;
  bottom: 4%;
  left: 5%;
  z-index: 5;
  display: grid;
  gap: 3px;
  color: #fff8e6;
}

.clepsydra-visual figcaption span {
  color: rgba(255, 248, 230, 0.74);
  font-size: 12px;
}

.animated-drop {
  position: absolute;
  z-index: 4;
  width: 8px;
  height: 13px;
  border-radius: 52% 52% 58% 58%;
  background: #c9f1ff;
  box-shadow: 0 0 12px #d7f6ff;
  opacity: 0;
}

.drop-upper {
  top: 38.5%;
  left: 49.1%;
  animation: dropUpper 1.55s ease-in infinite;
}

.drop-lower {
  top: 68.6%;
  left: 49.1%;
  animation: dropLower 1.55s 0.76s ease-in infinite;
}

@keyframes dropUpper {
  0% { transform: translateY(-8px) scale(0.5); opacity: 0; }
  18% { opacity: 1; }
  82% { transform: translateY(43px) scale(1); opacity: 1; }
  100% { transform: translateY(47px) scale(1.5, 0.32); opacity: 0; }
}

@keyframes dropLower {
  0% { transform: translateY(-7px) scale(0.5); opacity: 0; }
  18% { opacity: 1; }
  82% { transform: translateY(40px) scale(1); opacity: 1; }
  100% { transform: translateY(44px) scale(1.5, 0.32); opacity: 0; }
}

.water-ripple {
  position: absolute;
  z-index: 4;
  width: 12px;
  height: 4px;
  border: 1px solid rgba(203, 241, 255, 0.82);
  border-radius: 50%;
  opacity: 0;
  animation: waterRipple 1.55s ease-out infinite;
}

.ripple-upper { top: 46.2%; left: 48.9%; }
.ripple-lower { top: 76.3%; left: 48.9%; animation-delay: 0.76s; }

@keyframes waterRipple {
  76% { opacity: 0; transform: scale(0.5); }
  82% { opacity: 0.8; }
  100% { opacity: 0; transform: scale(5, 2); }
}

.clepsydra-visual.ready-to-leave {
  animation: clepsydraGlow 1.8s ease-in-out infinite;
}

@keyframes clepsydraGlow {
  50% { box-shadow: 0 0 0 3px rgba(243, 210, 126, 0.7), 0 0 40px rgba(237, 194, 91, 0.5); }
}

.clepsydra-visual.departing {
  animation: clockDepart 0.72s ease-in forwards;
}

@keyframes clockDepart {
  to { opacity: 0; transform: scale(1.08); filter: blur(4px); }
}

.scene-question {
  position: absolute;
  right: 8%;
  bottom: 18px;
  left: 8%;
  color: #d9caa6;
  font: 400 14px/1.5 "KaiTi", serif;
  text-align: center;
}

/* 第二幕 */
.weather-scene {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #1e302a;
}

.weather-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: default;
}

.weather-state {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.weather-scene .weather-cards {
  top: 92px;
  right: 18px;
  bottom: auto;
  left: auto;
  z-index: 20;
  width: 112px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.weather-scene .weather-card {
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 3px 7px;
  padding: 8px;
  border: 1px solid rgba(225, 199, 142, 0.68);
  border-radius: 10px;
  color: #fff9ea;
  background: rgba(35, 49, 43, 0.76);
  backdrop-filter: blur(8px);
}

.weather-scene .weather-card img {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
}

.weather-scene .weather-card span {
  font-size: 13px;
}

.weather-scene .weather-card small {
  font-size: 9px;
}

.weather-scene .weather-card.active {
  border-color: #f4d17d;
  background: rgba(139, 76, 45, 0.88);
  box-shadow: 0 0 0 3px rgba(244, 209, 125, 0.18);
}

.weather-scene .weather-card.done span::after {
  content: " ✓";
  color: #ffe18d;
}

.weather-scene .weather-cards > p {
  margin: 2px 0 0;
  color: rgba(255, 248, 229, 0.82);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.weather-guidance {
  z-index: 25;
}

.weather-scene .effect-caption {
  right: auto;
  bottom: 24px;
  left: 24px;
  z-index: 18;
  width: min(390px, 44%);
  min-height: 0;
  padding: 14px 17px;
  border-color: rgba(217, 188, 134, 0.6);
  color: #fff8e6;
  background: rgba(33, 48, 42, 0.76);
}

.weather-progress {
  position: absolute;
  right: 24px;
  bottom: 27px;
  z-index: 18;
  padding: 7px 12px;
  border: 1px solid rgba(217, 188, 134, 0.54);
  border-radius: 999px;
  color: #fff5de;
  background: rgba(34, 48, 42, 0.72);
  font-size: 12px;
}

.weather-progress strong {
  color: #f0cf7e;
}

.weather-finish-tip {
  position: absolute;
  bottom: 86px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid rgba(244, 209, 125, 0.3);
  border-radius: 12px;
  color: #fff8e6;
  background: linear-gradient(135deg, rgba(42, 58, 50, 0.9), rgba(58, 42, 30, 0.9));
  transform: translateX(-50%);
  animation: tipFadeFloat 2.5s ease-in-out infinite;
}

.weather-finish-tip .finish-arrow {
  display: inline-block;
  color: #f4d17d;
  font-size: 13px;
  animation: arrowBounce 1.2s ease-in-out infinite;
}

@keyframes tipFadeFloat {
  0%, 100% { opacity: 0.92; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(-2px); }
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.weather-scene .weather-rubble {
  left: -4%;
  bottom: -4%;
  z-index: 12;
  width: 48%;
  animation: rubbleBuild 1.25s ease-out both;
}

@keyframes rubbleBuild {
  from { opacity: 0; transform: translateY(90px) scale(0.75); }
  65% { opacity: 1; }
  to { transform: translateY(0) scale(1); }
}

.weather-process {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}

.process-sun {
  background: radial-gradient(circle at 22% 18%, rgba(255, 226, 123, 0.38), transparent 38%);
}

.sun-disc {
  position: absolute;
  top: 7%;
  left: 12%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6b8 0 12%, #ffd35c 40%, rgba(239, 147, 45, 0.12) 72%);
  box-shadow: 0 0 55px rgba(255, 203, 82, 0.82), 0 0 120px rgba(255, 185, 57, 0.45);
  animation: sunEnter 0.7s ease-out both, sunPulse 1.1s 0.7s ease-in-out infinite alternate;
}

@keyframes sunEnter {
  from { opacity: 0; transform: translate(-80px, -70px) scale(0.4); }
}

@keyframes sunPulse {
  to { transform: scale(1.08); filter: brightness(1.12); }
}

.sun-ray {
  position: absolute;
  top: 22%;
  left: 18%;
  width: 62%;
  height: 9%;
  background: linear-gradient(90deg, rgba(255, 231, 150, 0.52), transparent);
  filter: blur(5px);
  transform: rotate(17deg);
  transform-origin: left center;
  animation: raySweep 1.2s ease-in-out infinite alternate;
}

.ray-two {
  top: 29%;
  transform: rotate(27deg);
  animation-delay: -0.5s;
}

@keyframes raySweep {
  to { opacity: 0.52; transform: rotate(22deg) scaleX(1.1); }
}

.heat-wave {
  position: absolute;
  inset: 26% 18% 10% 8%;
  background: repeating-radial-gradient(ellipse at 35% 50%, transparent 0 18px, rgba(255, 232, 174, 0.12) 20px 22px);
  filter: blur(2px);
  animation: heatRise 1.1s linear infinite;
}

@keyframes heatRise {
  to { transform: translateY(-20px) scale(1.03); }
}

.process-rain {
  background:
    linear-gradient(112deg, rgba(15, 31, 38, 0.16), rgba(12, 27, 34, 0.5)),
    radial-gradient(ellipse at 42% 9%, rgba(110, 137, 147, 0.2), transparent 48%);
  animation: stormExposure 5s ease-in-out both;
}

.weather-scene.is-playing.effect-rain .weather-base {
  animation: rainRockExposure 5s ease-in-out both;
  transform-origin: center 62%;
}

@keyframes rainRockExposure {
  0% { filter: brightness(1) saturate(1); transform: scale(1); }
  12% { filter: brightness(0.72) saturate(0.78) contrast(1.05); transform: scale(1.006); }
  32%, 80% { filter: brightness(0.55) saturate(0.64) contrast(1.13); transform: scale(1.014); }
  100% { filter: brightness(0.66) saturate(0.72) contrast(1.08); transform: scale(1.01); }
}

@keyframes stormExposure {
  0% { opacity: 0; }
  10% { opacity: 0.66; }
  28%, 74% { opacity: 1; }
  86% { opacity: 0.72; }
  100% { opacity: 0; }
}

.storm-cloud {
  position: absolute;
  top: -12%;
  left: -5%;
  width: 105%;
  height: 35%;
  background:
    radial-gradient(ellipse at 12% 82%, rgba(82, 101, 108, 0.94), transparent 34%),
    radial-gradient(ellipse at 48% 68%, rgba(42, 60, 68, 0.98), transparent 48%),
    radial-gradient(ellipse at 86% 76%, rgba(71, 90, 98, 0.92), transparent 38%),
    linear-gradient(rgba(25, 42, 50, 0.94), rgba(44, 61, 67, 0.2));
  filter: blur(18px);
  opacity: 0;
  animation: stormArrive 0.9s ease-out forwards, stormDrift 3.6s 0.9s ease-in-out infinite alternate;
}

@keyframes stormArrive {
  to { opacity: 0.96; transform: translateY(42px) scaleX(1.03); }
}

@keyframes stormDrift {
  to { transform: translate(5%, 46px) scaleX(1.08); }
}

.rain-particles i {
  position: absolute;
  top: -10%;
  left: var(--x);
  width: 2px;
  height: 36px;
  background: linear-gradient(transparent, rgba(218, 242, 252, 0.9));
  transform: rotate(14deg);
  animation: rainFall var(--speed) var(--delay) linear infinite;
}

@keyframes rainFall {
  to { transform: translate(80px, 125vh) rotate(14deg); }
}

.rock-runoff {
  position: absolute;
  top: 21%;
  left: 9%;
  width: 68%;
  height: 70%;
  background: repeating-linear-gradient(103deg, transparent 0 42px, rgba(193, 229, 236, 0.3) 44px 47px, transparent 49px 72px);
  filter: blur(1px);
  opacity: 0;
  animation: runoffAppear 1.1s 0.6s ease forwards;
}

@keyframes runoffAppear {
  to { opacity: 1; background-position: -25px 80px; }
}

.process-frost {
  background: radial-gradient(circle at 45% 47%, rgba(198, 235, 249, 0.05), rgba(171, 218, 238, 0.35));
  animation: frostTint 1.4s ease forwards;
}

.frost-edge {
  position: absolute;
  inset: 7% 9% 8% 5%;
  border: 12px solid rgba(222, 247, 255, 0.1);
  box-shadow: inset 0 0 80px rgba(207, 239, 250, 0.72), 0 0 70px rgba(207, 239, 250, 0.25);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 82%, 5% 76%, 0 64%, 6% 51%, 0 38%, 5% 24%);
  animation: frostGrow 1.6s ease-out both;
}

@keyframes frostGrow {
  from { opacity: 0; transform: scale(1.12); filter: blur(8px); }
  to { opacity: 1; transform: scale(1); }
}

.ice-crystal {
  position: absolute;
  color: rgba(227, 250, 255, 0.88);
  text-shadow: 0 0 18px #d8f4ff;
  animation: crystalGrow 1s ease-out both, crystalPulse 0.8s 1s ease-in-out infinite alternate;
}

.crystal-one { top: 27%; left: 34%; font-size: 82px; }
.crystal-two { top: 53%; left: 58%; font-size: 56px; animation-delay: 0.35s, 1.35s; }

@keyframes crystalGrow {
  from { opacity: 0; transform: scale(0) rotate(-40deg); }
}

@keyframes crystalPulse {
  to { filter: brightness(1.3); transform: scale(1.08); }
}

.ice-crack {
  position: absolute;
  top: 34%;
  left: 45%;
  width: 4px;
  height: 42%;
  background: linear-gradient(#ecfbff, rgba(201, 235, 247, 0.2));
  box-shadow: 0 0 10px #d9f5ff;
  transform: rotate(19deg) scaleY(0);
  transform-origin: top;
  animation: iceCrackOpen 0.6s 1.15s ease-out forwards;
}

.crack-two {
  top: 47%;
  left: 61%;
  height: 27%;
  transform: rotate(-27deg) scaleY(0);
  animation-delay: 1.42s;
}

@keyframes iceCrackOpen {
  to { transform: rotate(19deg) scaleY(1); }
}

.process-sand {
  background: linear-gradient(90deg, rgba(194, 137, 60, 0.04), rgba(214, 158, 73, 0.34));
}

.sand-cloud {
  position: absolute;
  inset: 5% -25% 3% -25%;
  background:
    radial-gradient(ellipse at 30% 45%, rgba(202, 146, 70, 0.52), transparent 36%),
    radial-gradient(ellipse at 67% 58%, rgba(226, 177, 101, 0.46), transparent 39%);
  filter: blur(15px);
  animation: sandCloudMove 1.25s linear infinite alternate;
}

@keyframes sandCloudMove {
  to { transform: translateX(17%); }
}

.sand-particles i {
  position: absolute;
  top: var(--y);
  left: -8%;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #f0ca7b;
  box-shadow: 16px 2px 0 #c7954f, 32px -3px 0 #ebbd68;
  animation: sandFly 0.86s var(--delay) linear infinite;
}

@keyframes sandFly {
  to { transform: translateX(125vw) translateY(-17px); }
}

@media (max-width: 1180px) {
  .immersive-scene .workspace {
    grid-template-columns: 360px 1fr;
  }

  .poem-visual figcaption {
    width: 58%;
  }
}

/* 2026-08-05：序章及前两幕体验修正 */

/* 序章：更清晰的标题层级和可感知的雾带 */
.mist-layer {
  position: absolute;
  z-index: 1;
  left: -32vw;
  width: 164vw;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.mist-layer::before,
.mist-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 8% 54%, rgba(245, 241, 222, 0.48) 0 6%, transparent 18%),
    radial-gradient(ellipse at 27% 42%, rgba(242, 239, 222, 0.52) 0 8%, transparent 22%),
    radial-gradient(ellipse at 48% 62%, rgba(252, 248, 228, 0.46) 0 9%, transparent 23%),
    radial-gradient(ellipse at 70% 43%, rgba(238, 237, 224, 0.42) 0 7%, transparent 21%),
    radial-gradient(ellipse at 91% 60%, rgba(248, 245, 228, 0.48) 0 8%, transparent 22%);
  filter: blur(22px);
}

.mist-layer::after {
  transform: translateX(18vw) scaleY(0.78);
  opacity: 0.65;
  filter: blur(34px);
}

.mist-back {
  top: 4%;
  height: 34vh;
  opacity: 0.34;
  animation: mistTravelBack 34s linear infinite alternate;
}

.mist-middle {
  top: 34%;
  height: 30vh;
  opacity: 0.46;
  animation: mistTravelMiddle 25s linear infinite alternate-reverse;
}

.mist-front {
  bottom: -6%;
  height: 38vh;
  opacity: 0.58;
  filter: blur(3px);
  animation: mistTravelFront 19s ease-in-out infinite alternate;
}

@keyframes mistTravelBack {
  to { transform: translateX(29vw) translateY(2vh) scale(1.06); opacity: 0.5; }
}

@keyframes mistTravelMiddle {
  to { transform: translateX(-25vw) translateY(-2vh) scale(1.08); opacity: 0.58; }
}

@keyframes mistTravelFront {
  to { transform: translateX(23vw) translateY(-3vh) scale(1.04); opacity: 0.42; }
}

.intro-title {
  width: min(820px, 78vw);
  padding: 42px 64px 38px;
}

.intro-title h1 {
  margin: 0;
  color: #fff7dc;
  font-size: clamp(58px, 7vw, 108px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.14em;
}

.intro-subtitle {
  width: fit-content;
  margin: 25px auto 0;
  padding: 14px 34px 12px;
  border-top: 1px solid rgba(237, 207, 136, 0.72);
  border-bottom: 1px solid rgba(237, 207, 136, 0.45);
}

.intro-subtitle strong {
  color: #f3dda8;
  font-size: clamp(22px, 2.3vw, 34px);
  letter-spacing: 0.28em;
}

.intro-subtitle em {
  margin-top: 2px;
  color: rgba(255, 249, 232, 0.78);
}

/* 第一幕：诗句降为引导，铜壶成为唯一主视觉 */
.droplet-scene {
  isolation: isolate;
  padding: 88px 34px 34px;
  background: #182a24;
}

.droplet-scene::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 34, 28, 0.92) 0 28%, rgba(18, 31, 26, 0.72) 52%, rgba(15, 25, 22, 0.4)),
    url("https://static.rsxr.eu.cc/time/assets/images/time-poem.webp") center / cover no-repeat;
  filter: saturate(0.68) brightness(0.62);
}

.droplet-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 72% 48%, rgba(218, 177, 95, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(12, 25, 20, 0.05), rgba(10, 20, 17, 0.55));
  pointer-events: none;
}

.droplet-focus-layout {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(240px, 30%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
}

.time-quote-card {
  align-self: center;
  padding: 28px 26px 24px;
  border: 1px solid rgba(224, 193, 130, 0.55);
  border-radius: 14px;
  color: #fff5df;
  background: rgba(24, 40, 34, 0.84);
  box-shadow: 0 18px 45px rgba(7, 17, 13, 0.3);
  backdrop-filter: blur(12px);
}

.time-quote-card > span {
  color: #d9bc86;
  font: 13px/1.4 "KaiTi", serif;
  letter-spacing: 0.12em;
}

.time-quote-card blockquote {
  margin: 19px 0 22px;
  padding: 0 0 0 17px;
  border-left: 3px solid #d4af68;
}

.time-quote-card blockquote strong {
  display: block;
  margin-bottom: 9px;
  color: #f1d284;
  font: 700 clamp(24px, 2.2vw, 34px)/1.25 "STKaiti", "KaiTi", serif;
  letter-spacing: 0.16em;
}

.time-quote-card blockquote p {
  margin: 0;
  font: 500 clamp(15px, 1.18vw, 18px)/1.85 "KaiTi", serif;
}

.droplet-question {
  padding: 14px 15px;
  border-radius: 9px;
  background: rgba(223, 196, 137, 0.1);
}

.droplet-question small {
  color: #d7b970;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.droplet-question p {
  margin: 5px 0 0;
  color: rgba(255, 247, 226, 0.88);
  font-size: 13px;
  line-height: 1.65;
}

.clepsydra-main {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.droplet-focus-layout .clepsydra-visual {
  position: relative;
  justify-self: center;
  align-self: center;
  width: min(100%, 900px);
  height: auto;
  max-height: calc(100vh - 140px);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  box-shadow: 0 24px 58px rgba(4, 12, 9, 0.48), 0 0 0 1px rgba(224, 191, 122, 0.38);
}

.droplet-focus-layout .clepsydra-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clepsydra-status {
  width: min(100%, 900px);
  display: grid;
  gap: 3px;
  padding: 11px 16px;
  border: 1px solid rgba(234, 207, 149, 0.35);
  border-radius: 9px;
  color: #fff8e6;
  background: rgba(19, 28, 24, 0.78);
  backdrop-filter: blur(8px);
}

.clepsydra-status span {
  color: rgba(255, 248, 230, 0.74);
  font-size: 12px;
}

.droplet-focus-layout .clepsydra-visual::after {
  display: none;
}

.drop-upper,
.drop-lower {
  left: 49.55%;
  margin-left: -4px;
  animation-timing-function: cubic-bezier(0.42, 0, 0.88, 0.62);
}

.drop-upper {
  top: 34.5%;
  animation-name: dropUpperLong;
  animation-duration: 1.65s;
}

.drop-lower {
  top: 65.2%;
  animation-name: dropLowerLong;
  animation-duration: 1.65s;
  animation-delay: 0.8s;
}

@keyframes dropUpperLong {
  0% { top: 34.5%; transform: scale(0.55); opacity: 0; }
  14% { opacity: 1; }
  88% { top: 53.2%; transform: scale(1); opacity: 1; }
  100% { top: 53.2%; transform: scale(1.7, 0.28); opacity: 0; }
}

@keyframes dropLowerLong {
  0% { top: 65.2%; transform: scale(0.55); opacity: 0; }
  14% { opacity: 1; }
  88% { top: 82.8%; transform: scale(1); opacity: 1; }
  100% { top: 82.8%; transform: scale(1.7, 0.28); opacity: 0; }
}

.ripple-upper {
  top: 53.4%;
  left: 49.1%;
}

.ripple-lower {
  top: 83.2%;
  left: 49.1%;
}

/* AI：增加身份图标和可直接发送的推荐问题 */
.assistant-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assistant-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(160, 86, 55, 0.5);
  border-radius: 50%;
  color: #fff9e9;
  background: linear-gradient(145deg, #b9523e, #8f3025);
  box-shadow: 0 4px 12px rgba(104, 43, 30, 0.2);
  font: 700 18px/1 "KaiTi", serif;
}

.message.assistant {
  position: relative;
  margin-left: 31px;
}

.message.assistant::before {
  content: "助";
  position: absolute;
  top: 2px;
  left: -33px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff9e9;
  background: #a33f2e;
  font: 700 12px/1 "KaiTi", serif;
}

.quick-question {
  width: 100%;
  margin: 0 0 8px;
  padding: 9px 11px;
  border: 1px solid rgba(164, 103, 65, 0.35);
  border-radius: 9px;
  color: #88412e;
  background: rgba(255, 250, 236, 0.72);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.quick-question:hover {
  border-color: rgba(151, 61, 43, 0.65);
  background: #fff8e7;
}

/* 第二幕：自然化过程动画 */
.rain-haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 26%, rgba(168, 193, 200, 0.08), transparent 34%),
    linear-gradient(112deg, rgba(22, 45, 54, 0.03), rgba(20, 43, 50, 0.16));
  backdrop-filter: contrast(0.97) saturate(0.86);
  opacity: 0;
  animation: rainHazeBreathe 1.25s 0.35s ease-in-out forwards, rainHazePulse 1.8s 1.6s ease-in-out infinite alternate;
}

@keyframes rainHazeBreathe {
  to { opacity: 0.38; }
}

@keyframes rainHazePulse {
  to { opacity: 0.28; transform: translateX(0.6%); }
}

.storm-cloud.cloud-a {
  top: -18%;
  left: -8%;
  width: 116%;
  height: 31%;
}

.storm-cloud.cloud-b {
  top: -7%;
  left: 17%;
  width: 92%;
  height: 21%;
  opacity: 0;
  transform: scaleX(0.78);
  animation-delay: 0.18s, 1.08s;
}

.rain-photo-field {
  position: absolute;
  z-index: 6;
  inset: -15% -10% 18%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 80%, transparent 100%);
}

.rain-photo-field img {
  position: absolute;
  top: -18%;
  left: -8%;
  width: 118%;
  height: 136%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform-origin: center;
  will-change: opacity, transform;
  mix-blend-mode: screen;
  filter: brightness(0.74) contrast(1.55) saturate(0.42);
  animation: realRainFall 1.05s linear infinite;
}

.rain-field-b {
  z-index: 7;
}

.rain-field-b img {
  filter: blur(0.45px) brightness(0.78) contrast(1.48) saturate(0.4);
  animation-delay: -0.52s;
}

@keyframes realRainFall {
  0% { opacity: 0; transform: translate(5%, -14%) scale(1.08); }
  13% { opacity: 0.38; }
  72% { opacity: 0.44; }
  100% { opacity: 0; transform: translate(-5%, 12%) scale(1.08); }
}

.rain-photo-splash {
  position: absolute;
  z-index: 8;
  top: -6%;
  left: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  clip-path: inset(91% 0 0 0);
  mix-blend-mode: screen;
  filter: brightness(0.82) contrast(1.08) saturate(0.62);
  animation: rainSplashPresence 5s 0.3s ease-in-out both;
}

@keyframes rainSplashPresence {
  0%, 8% { opacity: 0; transform: scale(1.015); }
  28%, 72% { opacity: 0.18; transform: scale(1.005); }
  88% { opacity: 0.1; }
  100% { opacity: 0; transform: scale(1); }
}

.wind-spray {
  position: absolute;
  z-index: 7;
  left: -38%;
  width: 72%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(210, 234, 239, 0.12), rgba(167, 201, 209, 0.05) 46%, transparent 73%);
  filter: blur(9px);
  opacity: 0;
  transform: rotate(-5deg);
  animation: windSpraySweep 1.7s 1.05s ease-in-out infinite;
}

.spray-a { top: 46%; }
.spray-b { top: 68%; animation-delay: 1.58s; animation-duration: 1.45s; }

@keyframes windSpraySweep {
  0% { opacity: 0; transform: translateX(0) rotate(-5deg) scaleX(0.7); }
  30% { opacity: 0.26; }
  100% { opacity: 0; transform: translateX(195%) rotate(-5deg) scaleX(1.15); }
}

.rain-transition-result {
  z-index: 5;
  opacity: 0;
  transform: scale(1.012);
  animation: rainResultBlend 5s ease-in-out both;
}

@keyframes rainResultBlend {
  0%, 70% { opacity: 0; filter: brightness(0.68) saturate(0.72); }
  86% { opacity: 0.7; }
  100% { opacity: 1; filter: none; transform: scale(1); }
}

.weather-scene.effect-rain:not(.is-playing) .weather-effect-image {
  animation: rainResultHold 0.01s both;
}

@keyframes rainResultHold {
  from, to { opacity: 1; filter: none; transform: none; }
}

.process-frost {
  background: rgba(108, 142, 158, 0.08);
  animation: frostProcessFade 5s ease-in-out both;
}

@keyframes frostProcessFade {
  0% { opacity: 0; }
  10%, 76% { opacity: 1; }
  90% { opacity: 0.62; }
  100% { opacity: 0; }
}

.frost-cold-tint {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(135deg, rgba(188, 222, 236, 0.08), rgba(95, 137, 158, 0.24));
  opacity: 0;
  animation: frostColdTint 5s ease-in-out both;
}

@keyframes frostColdTint {
  0%, 8% { opacity: 0; }
  28%, 78% { opacity: 0.72; }
  100% { opacity: 0; }
}

.snow-photo-field {
  position: absolute;
  z-index: 6;
  inset: -10%;
  overflow: hidden;
  pointer-events: none;
}

.snow-photo-field img {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 120%;
  height: 110%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  filter: brightness(0.86) contrast(1.18) saturate(0.58);
  will-change: opacity, transform;
  animation: realSnowFall 1.65s linear infinite;
}

.snow-field-a {
  transform: none;
}

.snow-field-b {
  z-index: 7;
  transform: none;
  opacity: 1;
}

.snow-field-b img {
  filter: blur(0.35px) brightness(0.86) contrast(1.18) saturate(0.58);
  animation-delay: -0.825s;
}

.snow-field-c {
  z-index: 6;
  transform: translateY(22%);
  opacity: 0.7;
}

.snow-field-c img {
  filter: blur(0.85px) brightness(0.86) contrast(1.35) saturate(0.42);
  animation-delay: -1.1s;
}

.snow-field-top {
  z-index: 7;
  transform: translate(-7%, -43%);
  opacity: 0.94;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 54%, rgba(0, 0, 0, 0.72) 72%, transparent 96%);
  mask-image: linear-gradient(to right, #000 0%, #000 54%, rgba(0, 0, 0, 0.72) 72%, transparent 96%);
}

.snow-field-top img {
  filter: brightness(1.02) contrast(1.3) saturate(0.48);
  animation-delay: -0.9s;
}

@keyframes realSnowFall {
  0% { opacity: 0; transform: translate(-5%, -1%) scale(1.04); }
  16% { opacity: 0.68; }
  50% { opacity: 0.74; }
  84% { opacity: 0.68; }
  100% { opacity: 0; transform: translate(5%, 3%) scale(1.04); }
}

.frost-snowflakes {
  position: absolute;
  z-index: 8;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.frost-snowflake {
  position: absolute;
  top: var(--y);
  left: -7%;
  width: var(--size);
  height: var(--size);
  color: rgba(239, 250, 255, var(--alpha));
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", sans-serif;
  font-size: var(--size);
  font-style: normal;
  line-height: 1;
  text-align: center;
  opacity: 0;
  text-shadow: 0 0 8px rgba(224, 247, 255, 0.7);
  filter: drop-shadow(0 0 5px rgba(214, 242, 255, 0.48));
  transform: rotate(var(--tilt));
  will-change: opacity, transform;
  animation: frostSnowflakeDrift 3.2s var(--delay) linear infinite;
}

@keyframes frostSnowflakeDrift {
  0% { opacity: 0; transform: translate(0, -1vh) rotate(var(--tilt)) scale(0.86); }
  14% { opacity: var(--alpha); }
  78% { opacity: var(--alpha); }
  100% { opacity: 0; transform: translate(116vw, 10vh) rotate(calc(var(--tilt) + 150deg)) scale(1.06); }
}

.frost-transition-result {
  z-index: 5;
  opacity: 0;
  transform: scale(1.012);
  animation: frostResultBlend 5s ease-in-out both;
}

@keyframes frostResultBlend {
  0%, 70% { opacity: 0; filter: brightness(0.72) saturate(0.75); }
  86% { opacity: 0.7; }
  100% { opacity: 1; filter: none; transform: scale(1); }
}

.weather-scene.effect-frost:not(.is-playing) .weather-effect-image {
  animation: frostResultHold 0.01s both;
}

@keyframes frostResultHold {
  from, to { opacity: 1; filter: none; transform: none; }
}

.process-sand {
  background:
    linear-gradient(90deg, rgba(183, 126, 48, 0.12), rgba(213, 157, 73, 0.5)),
    radial-gradient(ellipse at 72% 48%, rgba(236, 192, 116, 0.25), transparent 52%);
}

.sand-cloud-back {
  opacity: 0.72;
  filter: blur(24px);
  animation-duration: 1.7s;
}

.sand-cloud-front {
  inset: 20% -35% 8% -35%;
  opacity: 0.66;
  filter: blur(11px);
  animation-duration: 0.95s;
  animation-direction: alternate-reverse;
}

.sand-particles i {
  opacity: var(--alpha);
  box-shadow:
    14px 1px 0 rgba(199, 144, 72, 0.9),
    29px -3px 0 rgba(235, 190, 110, 0.78),
    47px 2px 0 rgba(168, 112, 55, 0.66);
  animation-duration: var(--speed);
}

/* 第二幕完成态：突出碎石，文字退出下方主视觉区 */
.weather-scene.is-complete .weather-base,
.weather-scene.is-complete .weather-effect-image {
  filter: blur(6px) brightness(0.4) saturate(0.58);
  transform: scale(1.055);
  transition: filter 0.7s ease, transform 0.7s ease;
}

.weather-complete-state {
  z-index: 6;
  object-position: center;
  animation: none;
}

@keyframes weatherCompleteReveal {
  from { opacity: 0; transform: scale(1.04); filter: blur(5px); }
  to { opacity: 1; transform: scale(1); filter: none; }
}

.weather-scene.is-complete .weather-canvas::after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 31, 26, 0.24), rgba(35, 28, 18, 0.08) 52%, rgba(117, 78, 39, 0.32)),
    radial-gradient(ellipse at 50% 92%, rgba(204, 159, 96, 0.25), transparent 58%);
  display: none;
  pointer-events: none;
}

.weather-scene.is-complete .effect-caption {
  top: 100px;
  bottom: auto;
  width: min(360px, 38%);
  background: rgba(27, 40, 35, 0.82);
}

.weather-scene.is-complete .weather-rubble {
  right: -7.5%;
  bottom: -1%;
  left: -7.5%;
  width: 115%;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  z-index: 50;
  filter: brightness(1.16) saturate(1.12) drop-shadow(0 -18px 24px rgba(28, 20, 12, 0.42));
  animation: rubbleBuildLarge 1.25s ease-out both;
}

@keyframes rubbleBuildLarge {
  from { opacity: 0; transform: translateY(120px) scale(0.86); }
  65% { opacity: 1; }
  to { opacity: 1; transform: translateY(0) scale(1.06); transform-origin: center bottom; }
}

.weather-scene.is-complete .weather-finish-tip {
  top: 92px;
  bottom: auto;
  left: 58%;
  width: 260px;
  max-width: 32%;
  text-align: center;
}

.weather-scene.is-complete .weather-progress {
  right: 142px;
  bottom: 22px;
}

@media (max-width: 1280px) {
  .droplet-focus-layout {
    grid-template-columns: minmax(220px, 32%) 1fr;
    gap: 22px;
  }

  .time-quote-card {
    padding: 22px 19px 19px;
  }
}

/* 第六部分后的成果页：复用组长版“报告 + 左文右题”结构，内容改为本课五维指标。 */
.postlab-scene {
  overflow: hidden;
}

.postlab-scene .topbar,
.postlab-scene .scene-nav,
.postlab-scene .reading-panel,
.postlab-scene .note-panel,
.postlab-scene .stage-heading,
.postlab-scene .stage-footer,
.postlab-scene .note-toggle {
  display: none !important;
}

.postlab-scene .workspace {
  display: block;
  width: 100vw;
  height: 100vh;
  min-height: 720px;
  padding: 0;
}

.postlab-scene .stage-panel,
.postlab-scene .stage {
  width: 100%;
  height: 100%;
  min-height: 720px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.postlab-scene .stage {
  overflow: auto;
  background:
    linear-gradient(rgba(249, 241, 222, 0.92), rgba(244, 231, 204, 0.94)),
    url("https://static.rsxr.eu.cc/time/assets/images/intro-canyon.webp") center / cover fixed;
}

.postlab-header,
.quiz-page-header {
  text-align: center;
}

.postlab-header {
  padding: 34px 30px 22px;
}

.postlab-header span,
.quiz-page-header > div > span,
.experiment-complete-page section > span {
  color: var(--clay);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.postlab-header h1,
.quiz-page-header h1 {
  margin: 7px 0;
  font-family: SimSun, serif;
  font-size: 32px;
  letter-spacing: 0.12em;
}

.postlab-header p,
.quiz-page-header p {
  margin: 0;
  color: #736d61;
  font-size: 14px;
}

.learning-report-page {
  width: min(1180px, calc(100% - 80px));
  min-height: 100%;
  margin: 0 auto;
  padding-bottom: 42px;
}

.report-overview {
  display: grid;
  grid-template-columns: minmax(470px, 1.45fr) minmax(280px, 0.75fr);
  min-height: 390px;
  border: 1px solid rgba(135, 93, 52, 0.2);
  border-radius: 18px;
  background: rgba(255, 252, 242, 0.86);
  box-shadow: 0 16px 42px rgba(80, 55, 25, 0.13);
  overflow: hidden;
}

.radar-shell {
  min-height: 390px;
  padding: 14px;
}

#learningRadar {
  display: block;
  width: 100%;
  height: 100%;
}

.report-score-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px;
  border-left: 1px solid rgba(135, 93, 52, 0.16);
  text-align: center;
  background: linear-gradient(155deg, rgba(255, 250, 233, 0.65), rgba(222, 199, 152, 0.42));
}

.report-score-summary > span {
  color: #806e55;
  letter-spacing: 0.2em;
}

.report-score-summary > strong {
  margin: 6px 0;
  color: var(--clay);
  font-family: Georgia, serif;
  font-size: 76px;
  line-height: 1;
}

.report-score-summary > strong small {
  margin-left: 5px;
  color: #8e826f;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 17px;
}

.report-score-summary p {
  color: #686154;
  line-height: 1.8;
}

.process-score {
  margin-top: 10px;
  border: 1px solid rgba(147, 75, 52, 0.2);
  border-radius: 18px;
  padding: 7px 14px;
  color: #7b4938;
  background: rgba(255, 250, 240, 0.66);
  font-size: 13px;
}

.report-analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.report-analysis-grid.all-mastered {
  grid-template-columns: 1fr;
}

.report-analysis-column,
.report-notes-summary {
  border: 1px solid rgba(135, 93, 52, 0.17);
  border-radius: 16px;
  padding: 22px 25px;
  background: rgba(255, 252, 243, 0.87);
}

.report-analysis-column h2,
.report-notes-summary h2 {
  margin: 0 0 14px;
  font-family: SimSun, serif;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.report-analysis-column.strength h2 {
  color: #315848;
}

.report-analysis-column.weak h2 {
  color: var(--clay);
}

.report-analysis-column article {
  padding: 13px 0;
  border-top: 1px dashed rgba(103, 83, 56, 0.2);
}

.report-analysis-column article:first-of-type {
  border-top: 0;
}

.report-analysis-column article div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.report-analysis-column article b {
  color: var(--clay);
}

.report-analysis-column article p {
  margin: 7px 0 0;
  color: #716a5e;
  line-height: 1.7;
}

.report-notes-summary {
  margin-top: 18px;
}

.report-notes-summary ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-notes-summary li {
  min-width: 0;
  border-left: 3px solid rgba(147, 75, 52, 0.55);
  padding: 8px 12px;
  background: rgba(241, 228, 199, 0.35);
}

.report-notes-summary li strong,
.report-notes-summary li span {
  display: block;
}

.report-notes-summary li span {
  margin-top: 5px;
  color: #6c6559;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.report-actions {
  display: flex;
  justify-content: center;
  padding: 24px 0 0;
}

.postlab-primary {
  min-width: 260px;
  border-radius: 4px;
  padding: 14px 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.learning-quiz-page {
  display: flex;
  flex-direction: column;
  width: min(1500px, calc(100% - 56px));
  min-height: 100%;
  margin: 0 auto;
  padding: 20px 0 30px;
}

.quiz-page-header {
  position: relative;
  flex: 0 0 auto;
  min-height: 96px;
  padding: 5px 180px 14px;
}

.quiz-page-header h1 {
  margin: 2px 0 5px;
  font-size: 30px;
}

.quiz-back-button {
  position: absolute;
  top: 10px;
  left: 0;
  border: 1px solid rgba(147, 75, 52, 0.18);
  border-radius: 18px;
  padding: 8px 14px;
  color: #765849;
  background: rgba(255, 252, 243, 0.84);
  cursor: pointer;
}

.quiz-progress {
  position: absolute;
  top: 12px;
  right: 10px;
  color: var(--clay);
  font-family: Georgia, serif;
  font-size: 25px;
}

.quiz-split {
  display: grid;
  grid-template-columns: minmax(440px, 0.92fr) minmax(560px, 1.08fr);
  gap: 18px;
  height: calc(100vh - 146px);
  min-height: 560px;
}

.quiz-pane {
  min-height: 0;
  border: 1px solid rgba(135, 93, 52, 0.19);
  border-radius: 14px;
  background: rgba(255, 252, 243, 0.91);
  box-shadow: 0 13px 34px rgba(77, 54, 25, 0.11);
  overflow-y: auto;
  scrollbar-color: rgba(147, 75, 52, 0.38) transparent;
}

.lesson-pane {
  padding: 35px 42px 70px;
  font-family: SimSun, serif;
}

.lesson-pane h2 {
  margin: 0;
  text-align: center;
  font-size: 28px;
  letter-spacing: 0.2em;
}

.lesson-author {
  margin: 9px 0 28px;
  color: #8c7d69;
  text-align: center;
}

.lesson-pane p {
  margin: 0 0 18px;
  color: #4f4c44;
  font-size: 17px;
  line-height: 2;
  text-align: justify;
  text-indent: 2em;
}

.lesson-pane .quiz-poem {
  margin: 0 0 28px;
  padding: 0 0 22px;
  border-bottom: 1px dashed rgba(147, 75, 52, 0.2);
}

.lesson-pane .quiz-poem p {
  margin: 0 0 1.35em;
  text-indent: 0;
  text-align: left;
  font-style: italic;
}

.lesson-pane .quiz-poem p:last-child {
  margin-bottom: 0;
  text-align: right;
}

.question-pane {
  padding: 22px 28px 60px;
}

.quiz-source-status {
  position: relative;
  margin-bottom: 16px;
  border: 1px solid rgba(75, 107, 91, 0.22);
  border-radius: 9px;
  padding: 12px 130px 12px 15px;
  color: #52645b;
  background: rgba(235, 244, 233, 0.62);
  font-size: 13px;
  line-height: 1.55;
}

.quiz-source-status.fallback {
  color: #80613d;
  background: rgba(249, 238, 207, 0.7);
}

.quiz-source-status button {
  position: absolute;
  top: 9px;
  right: 10px;
  border: 1px solid rgba(147, 75, 52, 0.25);
  border-radius: 6px;
  padding: 5px 9px;
  color: #8f4939;
  background: rgba(255, 251, 239, 0.84);
  cursor: pointer;
}

.learning-question-card {
  margin-bottom: 17px;
  border: 1px solid rgba(171, 113, 54, 0.24);
  border-radius: 12px;
  padding: 18px 20px;
  background: rgba(255, 253, 246, 0.95);
}

.learning-question-card > header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.learning-question-card > header strong {
  color: var(--clay);
  letter-spacing: 0.12em;
}

.learning-question-card > header span {
  border: 1px solid rgba(184, 111, 57, 0.23);
  border-radius: 14px;
  padding: 3px 9px;
  color: #8a6848;
  font-size: 12px;
}

.learning-question-card h3 {
  margin: 13px 0 16px;
  font-size: 16px;
  line-height: 1.7;
}

.learning-options {
  display: grid;
  gap: 8px;
}

.learning-options button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: start;
  width: 100%;
  border: 1px solid rgba(167, 129, 73, 0.25);
  border-radius: 7px;
  padding: 10px 12px;
  color: #565149;
  background: rgba(252, 248, 237, 0.78);
  text-align: left;
  line-height: 1.55;
  cursor: pointer;
}

.learning-options button:hover:not(:disabled),
.learning-options button.selected {
  border-color: rgba(147, 75, 52, 0.66);
  background: rgba(244, 224, 187, 0.58);
}

.learning-options button.correct {
  border-color: #61806f;
  background: rgba(218, 237, 220, 0.72);
}

.learning-options button.wrong {
  border-color: #a74d3d;
  background: rgba(246, 214, 205, 0.72);
}

.learning-options button b {
  color: var(--clay);
}

.question-actions {
  display: flex;
  gap: 10px;
  margin-top: 13px;
}

.question-actions button,
.quiz-finished-card button {
  border: 1px solid rgba(147, 75, 52, 0.28);
  border-radius: 5px;
  padding: 8px 15px;
  color: #865040;
  background: rgba(255, 251, 240, 0.85);
  cursor: pointer;
}

.question-actions .question-submit,
.quiz-finished-card button:last-child {
  border-color: transparent;
  color: #fff;
  background: var(--clay);
}

.question-actions button:disabled {
  opacity: 0.58;
  cursor: default;
}

.question-result {
  margin-top: 13px;
  border-left: 3px solid #547665;
  padding: 10px 13px;
  color: #52645b;
  background: rgba(233, 243, 231, 0.65);
}

.question-result.wrong {
  border-left-color: #a34d3e;
  color: #78483f;
  background: rgba(248, 228, 218, 0.7);
}

.question-result p {
  margin: 5px 0 0;
  line-height: 1.7;
}

.quiz-loading {
  display: grid;
  place-items: center;
  min-height: 370px;
  color: #6f695e;
  text-align: center;
}

.quiz-loading i {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(147, 75, 52, 0.18);
  border-top-color: var(--clay);
  border-radius: 50%;
  animation: quizSpin 0.8s linear infinite;
}

.quiz-loading strong,
.quiz-loading span {
  display: block;
}

.quiz-loading strong {
  margin-top: -95px;
}

.quiz-loading span {
  margin-top: -165px;
  font-size: 13px;
}

@keyframes quizSpin {
  to { transform: rotate(360deg); }
}

.quiz-finished-card {
  margin-top: 24px;
  border: 1px solid rgba(147, 75, 52, 0.25);
  padding: 28px;
  text-align: center;
  background: rgba(245, 229, 196, 0.55);
}

.quiz-finished-card > span,
.quiz-finished-card > strong {
  display: block;
}

.quiz-finished-card > strong {
  margin: 7px 0;
  color: var(--clay);
  font-family: Georgia, serif;
  font-size: 47px;
}

.quiz-finished-card > div {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.experiment-complete-page {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  color: #fffaf0;
  background:
    linear-gradient(rgba(25, 33, 29, 0.52), rgba(37, 30, 21, 0.62)),
    url("https://static.rsxr.eu.cc/time/assets/images/intro-canyon.webp") center / cover;
  cursor: pointer;
}

.experiment-complete-page section {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 60px));
  border: 1px solid rgba(255, 245, 211, 0.35);
  padding: 45px 55px;
  text-align: center;
  background: rgba(35, 36, 29, 0.42);
  backdrop-filter: blur(8px);
}

.experiment-complete-page section > span {
  color: #f0cf92;
}

.experiment-complete-page h1 {
  margin: 14px 0;
  font-family: STKaiti, KaiTi, serif;
  font-size: 52px;
  letter-spacing: 0.16em;
}

.experiment-complete-page section > p {
  color: rgba(255, 250, 238, 0.86);
  line-height: 1.9;
}

.complete-score-row {
  display: flex;
  justify-content: center;
  gap: 70px;
  margin: 28px 0;
}

.complete-score-row div {
  min-width: 120px;
}

.complete-score-row strong,
.complete-score-row span {
  display: block;
}

.complete-score-row strong {
  color: #f3d49d;
  font-family: Georgia, serif;
  font-size: 42px;
}

.complete-score-row span {
  margin-top: 5px;
  font-size: 13px;
}

.experiment-complete-page > small {
  position: absolute;
  bottom: 28px;
  z-index: 2;
  color: rgba(255, 250, 238, 0.72);
  letter-spacing: 0.12em;
}

.complete-mist {
  position: absolute;
  z-index: 1;
  width: 70%;
  height: 55%;
  border-radius: 50%;
  background: rgba(247, 239, 216, 0.16);
  filter: blur(70px);
  animation: completeMist 12s ease-in-out infinite alternate;
}

.mist-one {
  top: -20%;
  left: -15%;
}

.mist-two {
  right: -18%;
  bottom: -25%;
  animation-delay: -5s;
}

@keyframes completeMist {
  to { transform: translate(12%, 8%) scale(1.16); }
}

@media (max-width: 1200px) {
  .learning-report-page,
  .learning-quiz-page {
    width: calc(100% - 32px);
  }

  .quiz-split {
    grid-template-columns: minmax(400px, 0.9fr) minmax(520px, 1.1fr);
  }

  .lesson-pane {
    padding-right: 28px;
    padding-left: 28px;
  }
}

/* 最终覆盖：保证字号修补不被前期场景样式重置 */
.immersive-scene .reading-content {
  overflow-y: auto;
  scrollbar-width: auto;
  scrollbar-color: rgba(106, 79, 48, 0.55) rgba(255, 250, 235, 0.28);
}

.immersive-scene .reading-content p {
  margin-bottom: 22px;
  font-size: clamp(18px, 1.32vw, 22px);
  line-height: 2;
  text-indent: 2em;
}

.scene-droplet .reading-content p:first-child {
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(147, 75, 52, 0.24);
  font-style: italic;
}

.scene-guidance {
  gap: 5px;
  padding: 12px 24px;
}

.scene-guidance span { font-size: 13px; }
.scene-guidance strong { font-size: 17px; line-height: 1.45; }

.time-quote-card blockquote p {
  font-size: clamp(17px, 1.34vw, 21px);
  line-height: 1.9;
}

.droplet-question small { font-size: 13px; }
.droplet-question p { font-size: 16px; line-height: 1.75; }

.weather-scene .weather-cards { width: 142px; }
.weather-scene .weather-card {
  min-height: 76px;
  grid-template-columns: 48px 1fr;
  gap: 4px 9px;
  padding: 10px;
}
.weather-scene .weather-card img { width: 48px; height: 48px; }
.weather-scene .weather-card span { font-size: 16px; }
.weather-scene .weather-card small,
.weather-scene .weather-cards > p { font-size: 11px; }

.weather-scene .effect-caption {
  width: min(430px, 48%);
  padding: 17px 20px;
}
.weather-scene .effect-caption .conclusion-label { font-size: 12px; }
.weather-scene .effect-caption strong { font-size: 19px; }
.weather-scene .effect-caption p { font-size: 15px; line-height: 1.7; }
.weather-complete-state { animation: weatherCompleteReveal 1.05s ease-out both; }

.immersive-scene .note-prompt { font-size: 18px; line-height: 1.8; }

.note-toggle,
.immersive-scene .assistant-ball { width: 70px; height: 70px; }
.note-toggle { right: 20px; bottom: 112px; }
.note-toggle span { font-size: 29px; }
.immersive-scene .assistant-ball {
  right: 20px;
  bottom: 24px;
  font-size: 31px;
}

.scene-strata.immersive-scene .stage-footer,
.scene-fossils.immersive-scene .stage-footer,
.scene-survey.immersive-scene .stage-footer { padding-right: 102px; }

.fossil-card.locked {
  filter: grayscale(0.85) brightness(0.58);
  opacity: 0.52;
  cursor: not-allowed;
}

.reading-lock-notice {
  position: absolute;
  top: 138px;
  left: 50%;
  z-index: 18;
  width: min(570px, calc(100% - 190px));
  padding: 9px 15px;
  border: 1px solid rgba(255, 232, 171, 0.7);
  border-radius: 999px;
  color: #fff8df;
  background: rgba(115, 70, 48, 0.9);
  box-shadow: 0 8px 22px rgba(35, 25, 19, 0.24);
  transform: translateX(-50%);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.trace-card { width: 58px; height: 58px; }
.trace-card img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.trace-card span { top: 65px; }

.scene-survey .survey-intro {
  max-width: 410px;
  display: grid;
  gap: 3px;
  padding: 9px 13px;
  border: 1px solid rgba(235, 211, 161, 0.46);
  border-radius: 11px;
  background: rgba(31, 49, 42, 0.74);
  backdrop-filter: blur(8px);
}
.scene-survey .survey-intro strong { font-size: 16px; }
.scene-survey .survey-intro p { margin-top: 1px; font-size: 13px; line-height: 1.55; }

.scene-survey .survey-dialog {
  grid-template-columns: minmax(0, 56%) minmax(260px, 44%);
  gap: 24px;
}
.scene-survey .survey-dialog span { font-size: 13px; }
.scene-survey .survey-dialog strong { margin: 8px 0 12px; font-size: 21px; }
.scene-survey .survey-dialog p { font-size: 16px; line-height: 1.85; }
.scene-survey .survey-dialog .text-button { padding: 10px 16px; font-size: 14px; }

/* 完整版体验修补：右侧知识文字、操作引导与第三幕坐标 */
.immersive-scene .scene-guidance {
  min-width: min(760px, 78%);
  padding: 14px 26px;
  background: rgba(28, 45, 38, 0.9);
  box-shadow: 0 10px 30px rgba(10, 20, 16, 0.28);
}
.immersive-scene .scene-guidance span,
.immersive-scene .late-scene-header span {
  color: #e2c071;
  font: 700 22px/1.25 "KaiTi", "STKaiti", serif;
  letter-spacing: 0.08em;
}
.immersive-scene .scene-guidance strong {
  font-size: clamp(19px, 1.42vw, 23px);
  font-weight: 650;
}

.droplet-scene::before {
  background:
    linear-gradient(90deg, rgba(18, 34, 28, 0.72) 0 28%, rgba(18, 31, 26, 0.5) 52%, rgba(15, 25, 22, 0.2)),
    url("https://static.rsxr.eu.cc/time/assets/images/time-poem.webp") center / cover no-repeat;
  filter: saturate(0.8) brightness(0.78);
}
.time-quote-card > span { font-size: 15px; }
.time-quote-card blockquote p {
  font-size: clamp(20px, 1.55vw, 25px);
  line-height: 1.9;
}
.droplet-question small { font-size: 15px; }
.droplet-question p {
  font-size: clamp(18px, 1.32vw, 22px);
  line-height: 1.75;
}
.clepsydra-status strong { font-size: 20px; }
.clepsydra-status span { font-size: 16px; line-height: 1.65; }

.weather-scene .weather-cards {
  top: 104px;
  width: 178px;
  gap: 10px;
}
.weather-scene .weather-card {
  min-height: 90px;
  grid-template-columns: 60px 1fr;
  padding: 12px;
}
.weather-scene .weather-card img { width: 58px; height: 58px; }
.weather-scene .weather-card span { font-size: 19px; }
.weather-scene .weather-card small { font-size: 14px; }
.weather-scene .weather-cards > p {
  margin-top: 6px;
  border: 1px solid rgba(255, 226, 156, 0.66);
  border-radius: 9px;
  padding: 8px 7px;
  color: #fff0bd;
  background: rgba(125, 69, 43, 0.88);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  animation: nextActionPulse 1.65s ease-in-out infinite;
}
.weather-scene .effect-caption { width: min(520px, 53%); }
.weather-scene .effect-caption .conclusion-label { font-size: 15px; }
.weather-scene .effect-caption strong { font-size: 24px; }
.weather-scene .effect-caption p { font-size: 18px; line-height: 1.75; }
.weather-progress {
  right: 132px;
  font-size: 16px;
}
.weather-finish-tip { font-size: 18px; font-weight: 700; }
.weather-scene.is-complete .weather-finish-tip {
  top: auto;
  right: auto;
  bottom: 112px;
  left: 50%;
  width: min(460px, 58%);
  max-width: none;
  padding: 12px 22px;
  transform: translateX(-50%);
  line-height: 1.55;
  text-align: center;
}

/* 所有操作反馈统一出现在右侧实验画布中央 */
.immersive-scene .toast {
  top: 69%;
  bottom: auto;
  left: 67%;
  width: min(620px, 54vw);
  border: 2px solid rgba(255, 225, 147, 0.9);
  border-radius: 16px;
  padding: 20px 28px;
  color: #fff9e8;
  background: rgba(116, 61, 40, 0.96);
  box-shadow: 0 18px 55px rgba(18, 24, 20, 0.44), 0 0 0 7px rgba(255, 221, 139, 0.13);
  transform: translate(-50%, calc(-50% + 18px)) scale(0.96);
  font-size: clamp(20px, 1.55vw, 26px);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  white-space: pre-line;
}
.immersive-scene .toast.show {
  transform: translate(-50%, -50%) scale(1);
}

.note-toggle,
.immersive-scene .assistant-ball {
  width: 82px;
  height: 82px;
}
.note-toggle { bottom: 126px; }
.note-toggle span { font-size: 34px; }
.note-toggle small {
  right: 90px;
  min-width: 104px;
  padding: 8px 11px;
  font-size: 16px;
}
.immersive-scene .assistant-ball { font-size: 35px; }

.scene-action-cue {
  position: absolute;
  top: 94px;
  left: 50%;
  z-index: 35;
  width: min(760px, 72%);
  border: 1px solid rgba(255, 224, 146, 0.78);
  border-radius: 999px;
  padding: 11px 20px;
  color: #fff4cb;
  background: rgba(128, 70, 43, 0.92);
  box-shadow: 0 9px 26px rgba(12, 25, 20, 0.32);
  transform: translateX(-50%);
  font-size: clamp(16px, 1.18vw, 20px);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

/* AI 助手：沿用项目羊皮纸风格，补齐配置、等待与安全 Markdown 展示 */
.assistant-panel {
  flex-direction: column;
}

.assistant-panel.open {
  display: flex;
}

.assistant-panel .chat-log {
  flex: 1 1 auto;
  min-height: 0;
}

.assistant-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.assistant-heading > strong {
  margin: 0;
  line-height: 1;
}

.scene-droplet .reading-content .reading-poem {
  margin-bottom: 34px;
  padding: 2px 0 18px;
  border-bottom: 1px dashed rgba(147, 75, 52, 0.24);
  font-style: italic;
}

.scene-droplet .reading-content .reading-poem p {
  margin: 0 0 1.6em;
  padding: 0;
  border-bottom: 0;
  text-indent: 0;
  text-align: left;
}

.scene-droplet .reading-content .reading-poem p:last-child {
  margin-bottom: 0;
  text-align: right;
}

.scene-droplet .reading-content > p:first-of-type {
  border-bottom: 0;
  font-style: normal;
}

.assistant-header-actions .icon-button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.assistant-settings {
  margin: 0 4px;
  border: 1px solid rgba(159, 102, 61, 0.34);
  border-radius: 12px;
  padding: 12px;
  color: #5c4938;
  background: rgba(255, 251, 237, 0.9);
  box-shadow: inset 0 0 18px rgba(177, 132, 70, 0.08);
}

.assistant-settings[hidden] {
  display: none;
}

.assistant-settings label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.assistant-key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
}

.assistant-key-row input {
  min-width: 0;
  border: 1px solid rgba(142, 96, 61, 0.38);
  border-radius: 8px;
  padding: 8px 9px;
  color: #40372d;
  background: #fffdf7;
}

.assistant-key-row button {
  border: 1px solid rgba(143, 65, 45, 0.46);
  border-radius: 8px;
  padding: 7px 9px;
  color: #fff8e8;
  background: #974532;
  cursor: pointer;
}

.assistant-key-row button:last-child {
  color: #734536;
  background: #f2e6d0;
}

.assistant-settings p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.78;
}

.message-content {
  display: block;
}

.message-line {
  display: block;
  min-height: 1.25em;
}

.message-line.message-heading {
  margin: 5px 0 2px;
  color: #713b2c;
  font-weight: 800;
}

.message-line.message-list-item {
  position: relative;
  padding-left: 1.35em;
}

.message-line.message-list-item::before {
  content: attr(data-marker);
  position: absolute;
  left: 0;
  color: #9a4834;
  font-weight: 700;
}

.message-line strong {
  color: #78392b;
  font-weight: 800;
}

.message.thinking .message-content::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 0.35em;
  margin-left: 5px;
  vertical-align: 0.08em;
  background:
    radial-gradient(circle, currentColor 55%, transparent 58%) 0 50% / 0.35em 0.35em no-repeat,
    radial-gradient(circle, currentColor 55%, transparent 58%) 50% 50% / 0.35em 0.35em no-repeat,
    radial-gradient(circle, currentColor 55%, transparent 58%) 100% 50% / 0.35em 0.35em no-repeat;
  animation: assistantThinking 1.1s steps(3, end) infinite;
}

/* 第五幕顶部：标题居中，两个线索分类向两侧展开 */
.scene-fossils .fossil-tab-block {
  width: min(840px, calc(100% - 96px));
}

.scene-fossils .fossil-tabs {
  width: 100%;
  justify-content: space-between;
}

.scene-fossils .fossil-tab-block > small {
  margin-top: -7px;
}

@keyframes assistantThinking {
  0% { opacity: 0.28; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 0.28; transform: translateY(0); }
}

.chat-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.quiz-auto-next {
  align-self: center;
  color: #8c513e;
  font-weight: 700;
}

@media (max-width: 720px) {
  .assistant-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-width: none;
    height: min(620px, calc(100vh - 24px));
  }

  .immersive-scene .assistant-panel {
    right: 12px;
    bottom: 90px;
    width: calc(100vw - 24px);
    max-width: none;
    height: min(620px, calc(100vh - 110px));
    padding: 36px 25px 30px;
  }

  .assistant-key-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .assistant-key-row button:last-child {
    grid-column: 2;
  }
}

.next-action,
.next-action-text {
  z-index: 2;
  animation: nextActionPulse 1.45s ease-in-out infinite;
}
.next-action-text { position: relative; }
.next-action {
  border-color: #ffe09a !important;
  box-shadow: 0 0 0 4px rgba(255, 218, 122, 0.28), 0 0 28px rgba(255, 205, 91, 0.3) !important;
}
.next-action-text {
  border-radius: 999px;
  padding: 8px 15px;
  color: #fff2b9 !important;
  background: rgba(139, 72, 43, 0.88);
}
@keyframes nextActionPulse {
  50% {
    filter: brightness(1.18);
    box-shadow: 0 0 0 8px rgba(255, 220, 128, 0.08), 0 0 34px rgba(255, 205, 91, 0.36);
  }
}

/* 第三幕：跟随背景中的真实河道与沉积位置 */
.sediment-guidance { top: 14px; }
.sediment-action-cue {
  top: 112px;
  left: 50%;
  width: min(680px, 62%);
}
.sediment-action-cue.after-water {
  top: 112px;
}
.sediment-location-label {
  padding: 6px 11px;
  font-size: 14px;
}
.source-label { top: 22%; left: 31%; }
.lake-label { top: 47%; right: 10%; }

.water-control-v2 {
  top: 145px;
  width: min(470px, 46%);
  padding: 14px 16px 13px;
}
.water-control-v2 header span,
.sample-panel-v2 header span { font-size: 15px; }
.water-control-v2 header strong,
.sample-panel-v2 header strong { font-size: 16px; }
.water-choice-row button { min-height: 64px; padding: 10px 12px; }
.water-choice-row button b { font-size: 18px; }
.water-choice-row button small { font-size: 13px; line-height: 1.45; }
.water-control-v2 > p { font-size: 15px; line-height: 1.65; }

.sample-panel-v2 { padding: 13px 15px; }
.sample-panel-v2 header {
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px 14px;
}
.sample-panel-v2 header small {
  justify-self: center;
  color: #fff1bd;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.sample-card-v2 {
  height: 76px;
  grid-template-columns: 68px 1fr;
}
.sample-card-v2 img { width: 64px; height: 62px; }
.sample-card-v2 strong { font-size: 18px; }
.sample-card-v2 small { font-size: 13px; line-height: 1.4; }
.sediment-progress-v2 {
  top: 172px;
  right: 92px;
  padding: 9px 13px;
  font-size: 13px;
}

.mountain-zone {
  top: 37%;
  left: 2%;
  width: 26%;
  height: 43%;
}
.river-zone {
  top: 38%;
  left: 29%;
  width: 39%;
  height: 24%;
}
.lake-depth-zone {
  border-radius: 48%;
  background: rgba(73, 146, 164, 0.1);
  box-shadow: inset 0 0 28px rgba(191, 237, 239, 0.08);
}
.lake-shallow-zone {
  top: 39%;
  left: 67%;
  width: 17%;
  height: 27%;
}
.lake-deep-zone {
  top: 38%;
  right: 3%;
  width: 18%;
  height: 31%;
}
.deposit-gravel {
  top: 40%;
  left: 25%;
  width: 43%;
  height: 24%;
}
.deposit-sand {
  top: 42%;
  left: 66%;
  width: 20%;
  height: 23%;
  transform: none;
}
.deposit-clay {
  top: 41%;
  right: 2%;
  width: 20%;
  height: 27%;
  opacity: 0.68;
  transform: rotate(3deg);
}
.deposit-visual figcaption { font-size: 14px; }
.observation-guide-v2 {
  display: none;
}
.observation-card-v2 span { font-size: 14px; }
.observation-card-v2 strong { font-size: 23px; }
.observation-card-v2 blockquote,
.observation-card-v2 p { font-size: 16px; line-height: 1.7; }
.observation-card-v2 button { font-size: 15px; }
.sediment-summary-v2 span { font-size: 14px; }
.sediment-summary-v2 strong { font-size: 17px; }
.sediment-summary-v2 .primary-button {
  min-width: 168px;
  padding: 13px 18px;
  font-size: 17px;
}

/* 第四至六幕：知识文本与下一步指引 */
.late-scene-header span { font-size: 22px; }
.late-scene-header strong { font-size: 24px; }
.toolbar-hint { font-size: 15px; }
.strata-step-cue {
  position: absolute;
  top: 88px;
  left: 50%;
  z-index: 18;
  width: min(680px, 64%);
  border: 1px solid rgba(255, 226, 154, 0.82);
  border-radius: 999px;
  padding: 11px 19px;
  color: #fff4cd;
  background: rgba(119, 63, 42, 0.94);
  box-shadow: 0 10px 28px rgba(24, 25, 20, 0.34);
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.scene-strata .strata-toolbar {
  top: 150px;
  right: 22px;
  width: 248px;
}
.scene-strata .toolbar-hint {
  display: none;
}
.strata-action strong { font-size: 18px; }
.strata-action small { font-size: 14px; line-height: 1.45; }
.scene-strata .strata-action:disabled:not(.done) {
  opacity: 0.58;
  cursor: not-allowed;
}
.strata-depth-label {
  left: 24px;
  min-width: 132px;
  padding: 11px 14px;
  border-left-width: 5px;
}
.strata-depth-label strong { font-size: 18px; }
.strata-depth-label span { margin-top: 3px; font-size: 16px; }
.strata-young { top: 15%; }
.strata-old { bottom: 13%; }
.strata-explanation span { font-size: 14px; }
.strata-explanation strong { font-size: 21px; }
.strata-explanation p { font-size: 16px; line-height: 1.7; }
.scene-strata .strata-explanation {
  right: 124px;
  bottom: 28px;
  width: min(46%, 390px);
  padding: 17px 19px;
}
.scene-strata .stage-footer .stage-tip,
.scene-fossils .stage-footer .stage-tip,
.scene-survey .stage-footer .stage-tip { font-size: 16px; }
.scene-strata .stage-footer .primary-button,
.scene-fossils .stage-footer .primary-button,
.scene-survey .stage-footer .primary-button {
  min-width: 168px;
  padding: 12px 18px;
  font-size: 16px;
}

.fossil-tabs button { font-size: 17px; }
.fossil-tab-block > small { font-size: 14px; }
.fossil-card strong { font-size: 17px; }
.fossil-card small { font-size: 13px; }
.fossil-showcase-caption {
  padding: 15px 18px;
}
.fossil-showcase-caption span { font-size: 14px; }
.fossil-showcase-caption strong { margin: 5px 0; font-size: 20px; }
.fossil-showcase-caption p { font-size: 16px; line-height: 1.65; }
.fossil-complete-badge,
.fossil-feedback,
.reading-lock-notice { font-size: 16px; }
.fossil-feedback p { font-size: 15px; line-height: 1.65; }
.fossil-next-guide {
  position: absolute;
  top: 112px;
  left: 50%;
  z-index: 30;
  width: min(620px, calc(100% - 150px));
  border: 1px solid rgba(255, 224, 146, 0.82);
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff4c9;
  background: rgba(130, 68, 42, 0.94);
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  animation: nextActionPulse 1.5s ease-in-out infinite;
}
.trace-instruction { font-size: 16px; }
.trace-dialog span { font-size: 14px; }
.trace-dialog strong { font-size: 22px; }
.trace-dialog p,
.trace-dialog blockquote { font-size: 16px; line-height: 1.7; }

.scene-survey .survey-intro { max-width: 500px; }
.scene-survey .survey-intro span { font-size: 14px; }
.scene-survey .survey-intro strong { font-size: 20px; }
.scene-survey .survey-intro p { font-size: 16px; }
.survey-card strong { font-size: 18px; }
.survey-card small { font-size: 14px; line-height: 1.45; }
.scene-survey .survey-dialog span { font-size: 15px; }
.scene-survey .survey-dialog strong { font-size: 24px; }
.scene-survey .survey-dialog p { font-size: 18px; line-height: 1.8; }
.scene-survey .survey-dialog .text-button { font-size: 16px; }

.immersive-scene .note-prompt {
  font-size: clamp(22px, 1.55vw, 26px);
  font-weight: 700;
  line-height: 1.75;
}

@media (max-width: 1280px) {
  .immersive-scene .toast { left: 68%; width: min(540px, 56vw); }
  .weather-scene .weather-cards { width: 160px; }
  .weather-scene .weather-card { min-height: 82px; grid-template-columns: 52px 1fr; }
  .weather-scene .weather-card img { width: 50px; height: 50px; }
  .water-control-v2 { width: min(420px, 48%); }
  .sample-panel-v2 header small { font-size: 14px; }
}

/* 第三幕颗粒提示：恢复原提示框尺寸，只降低第二行字号 */
.scene-sediment.immersive-scene .toast.sample-guide strong,
.scene-sediment.immersive-scene .toast.sample-guide span {
  display: block;
}
.scene-sediment.immersive-scene .toast.sample-guide span {
  margin-top: 2px;
  font-size: clamp(16px, 1.15vw, 20px);
  font-weight: 600;
  white-space: nowrap;
}

/* =========================================================
 * 2026-08-11 全局桌面分辨率适配
 * 沉浸式七幕以 1920 x 1080 为基准画布，只有更小窗口才按短边统一缩放。
 * --layout-width / --layout-height 由 app.js 根据实时视口写入。
 * ========================================================= */
:root {
  --viewport-scale: 1;
  --layout-width: 100vw;
  --layout-height: 100vh;
}

html,
body {
  min-width: 0;
  min-height: 0;
}

body.immersive-scene {
  width: 100vw;
  height: 100vh;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body.immersive-scene #app {
  position: relative;
  width: var(--layout-width);
  height: var(--layout-height);
  overflow: hidden;
  zoom: var(--viewport-scale);
}

body.immersive-scene .workspace,
body.immersive-scene .stage-panel,
body.immersive-scene .stage {
  height: var(--layout-height);
  min-height: 0;
}

body.immersive-scene .workspace {
  width: var(--layout-width);
}

body.immersive-scene .reading-content {
  height: calc(var(--layout-height) - 112px);
}

body.scene-intro.immersive-scene .stage-panel,
body.scene-intro.immersive-scene .stage,
body.scene-intro.immersive-scene .intro-scene {
  width: var(--layout-width);
  height: var(--layout-height);
}

/* zoom 后 fixed 仍会按真实视口定位；改为相对虚拟画布定位，避免控件漂移。 */
body.immersive-scene .immersive-system-controls,
body.immersive-scene .note-toggle,
body.immersive-scene .assistant-ball,
body.immersive-scene .assistant-panel,
body.immersive-scene .note-panel,
body.immersive-scene .toast,
body.immersive-scene .scene-veil {
  position: absolute;
}

/* 缩放视口下，各幕只保留必要的边界修正。 */
body.viewport-scaled.scene-droplet .droplet-scene,
body.viewport-scaled.scene-weathering .weather-scene,
body.viewport-scaled.scene-sediment .sediment-scene,
body.viewport-scaled.scene-strata .strata-scene,
body.viewport-scaled.scene-fossils .fossil-scene,
body.viewport-scaled.scene-survey .survey-scene {
  min-width: 0;
  min-height: 0;
}

body.viewport-scaled.scene-sediment .sample-panel-v2,
body.viewport-scaled.scene-strata .strata-actions,
body.viewport-scaled.scene-fossils .fossil-next-guide {
  max-width: calc(100% - 180px);
}

/* 答题、报告和完成页继续使用流式布局，不参与画布缩放。 */
@media (max-width: 1600px) {
  .postlab-scene .workspace,
  .postlab-scene .stage-panel,
  .postlab-scene .stage {
    min-width: 0;
    min-height: 100vh;
  }

  .learning-report-page,
  .learning-quiz-page {
    width: calc(100% - 32px);
  }

  .quiz-split {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .lesson-pane,
  .quiz-pane {
    min-width: 0;
  }
}

@media (max-height: 820px) {
  .postlab-header {
    padding-top: 20px;
    padding-bottom: 14px;
  }

  .learning-report-page,
  .learning-quiz-page {
    padding-bottom: 24px;
  }
}

/* 第三幕：结论出现时保留清晰的三类沉积终态，直至提示同步退出。 */
.scene-sediment .sediment-flow-svg.is-conclusion .demo-deposits {
  filter: drop-shadow(0 3px 5px rgba(25, 22, 17, 0.42));
}

.scene-sediment .sediment-flow-svg.is-conclusion .demo-gravel,
.scene-sediment .sediment-flow-svg.is-conclusion .demo-sand {
  opacity: 1;
}

.scene-sediment .sediment-flow-svg.is-conclusion .demo-clay {
  opacity: 0.68;
}

/* 第五幕：将两个线索入口改为同一条清晰的分类导航。 */
.scene-fossils .fossil-tab-block {
  top: 72px;
  width: min(1360px, calc(100% - 96px));
  display: block;
}

.scene-fossils .fossil-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(380px, 400px) minmax(320px, 1fr);
  align-items: center;
  gap: 24px;
}

.scene-fossils .fossil-tabs button {
  min-height: 62px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 2px solid rgba(255, 235, 181, 0.62);
  border-radius: 16px;
  padding: 9px 16px;
  color: #fff8e7;
  background: linear-gradient(145deg, rgba(37, 61, 52, 0.96), rgba(25, 45, 39, 0.94));
  box-shadow: 0 9px 22px rgba(25, 29, 24, 0.26), inset 0 1px rgba(255, 255, 255, 0.08);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.scene-fossils .fossil-tabs button:not(.active):hover {
  border-color: rgba(255, 224, 143, 0.94);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(25, 29, 24, 0.34), 0 0 20px rgba(255, 216, 112, 0.12);
}

.scene-fossils .fossil-tabs button.active {
  color: #432f22;
  border-color: #f0c96f;
  background: linear-gradient(145deg, #fff0c6, #e8c978);
  box-shadow: 0 10px 25px rgba(72, 48, 25, 0.3), 0 0 0 4px rgba(255, 225, 145, 0.2);
  transform: translateY(-2px);
}

.scene-fossils .fossil-tabs button.needs-attention {
  border-color: #ffe09a;
  box-shadow: 0 0 0 5px rgba(255, 224, 154, 0.24), 0 0 30px rgba(255, 209, 99, 0.46);
  animation: fossilCategoryAttention 1.45s ease-in-out infinite;
}

.scene-fossils .fossil-tabs button i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #ffe3a0;
  background: rgba(12, 31, 27, 0.54);
  font: 800 14px/1 system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.06em;
}

.scene-fossils .fossil-tabs button.active i {
  color: #fff4d4;
  background: rgba(93, 57, 30, 0.8);
}

.scene-fossils .fossil-tabs button > span {
  min-width: 0;
  display: grid;
  gap: 2px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
}

.scene-fossils .fossil-tabs button > span small {
  color: currentColor;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.72;
}

.scene-fossils .fossil-tabs button b {
  min-width: 48px;
  border-radius: 999px;
  padding: 6px 8px;
  color: #fff0bf;
  background: rgba(10, 28, 24, 0.48);
  font-size: 14px;
  text-align: center;
}

.scene-fossils .fossil-tabs button.active b {
  color: #553822;
  background: rgba(255, 255, 255, 0.46);
}

.scene-fossils .fossil-tab-hint {
  width: 100%;
  max-width: 400px;
  min-width: 230px;
  justify-self: center;
  border: 1px solid rgba(255, 231, 170, 0.58);
  border-radius: 999px;
  padding: 12px 20px;
  color: #fff4ca;
  background: rgba(27, 45, 39, 0.88);
  box-shadow: 0 8px 20px rgba(20, 27, 23, 0.24);
  backdrop-filter: blur(8px);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transform: translateY(28px);
}

.scene-fossils .fossil-tab-hint span {
  margin-right: 5px;
  color: #f1cf7c;
  font-size: 23px;
}

.scene-fossils .fossil-tab-hint.needs-attention {
  border-color: rgba(255, 225, 145, 0.94);
  color: #fff8dc;
  background: rgba(119, 66, 40, 0.94);
  animation: fossilHintAttention 1.45s ease-in-out infinite;
}

.scene-fossils .fossil-note-prompt {
  max-width: min(760px, calc(100% - 220px));
  border: 1px solid rgba(255, 229, 157, 0.88);
  font: inherit;
  cursor: pointer;
}

.scene-fossils .fossil-note-prompt:hover {
  filter: brightness(1.12);
}

@keyframes fossilCategoryAttention {
  50% {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 0 0 8px rgba(255, 224, 154, 0.12), 0 0 38px rgba(255, 209, 99, 0.62);
  }
}

@keyframes fossilHintAttention {
  50% {
    filter: brightness(1.16);
    box-shadow: 0 0 0 7px rgba(255, 224, 154, 0.1), 0 0 30px rgba(255, 209, 99, 0.42);
  }
}

/* 答题页使用独立的流式布局：答题进度与四个全局控件组成同一安全控制带。 */
.postlab-scene .assistant-ball {
  top: 18px;
  right: 212px;
  bottom: auto;
  z-index: 1201;
  width: 54px;
  height: 54px;
  border-width: 2px;
  font-size: 24px;
}

.postlab-scene .quiz-progress {
  position: fixed;
  top: 18px;
  right: 286px;
  z-index: 1201;
  min-width: 64px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(147, 75, 52, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--clay);
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 8px 20px rgba(85, 40, 30, 0.16);
  font-size: 20px;
}

@media (max-width: 1100px) {
  .postlab-scene .assistant-ball {
    right: 188px;
  }

  .postlab-scene .quiz-progress {
    top: 82px;
    right: 20px;
  }
}

.scene-fossils .fossil-workbench,
.scene-fossils .trace-workbench {
  top: 178px;
}

.scene-fossils .trace-dialog {
  top: 178px;
}

/* 阅读锁定提示固定在第五幕画面中心，完成左侧阅读后由现有状态逻辑移除。 */
.scene-fossils .reading-lock-notice {
  top: 50%;
  left: 50%;
  width: min(720px, calc(100% - 260px));
  padding: 15px 24px;
  border: 1px solid rgba(255, 224, 146, 0.78);
  border-radius: 999px;
  color: #fff4cb;
  background: rgba(128, 70, 43, 0.93);
  box-shadow: 0 12px 34px rgba(12, 25, 20, 0.38);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
  font-size: clamp(18px, 1.25vw, 21px);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

/* 地层环境线索完成后的下一步指引，与阅读解锁提示保持同一居中样式。 */
.scene-fossils .fossil-next-guide {
  top: 50%;
  left: 50%;
  width: min(720px, calc(100% - 260px));
  padding: 15px 24px;
  border: 1px solid rgba(255, 224, 146, 0.78);
  border-radius: 999px;
  color: #fff4cb;
  background: rgba(128, 70, 43, 0.93);
  box-shadow: 0 12px 34px rgba(12, 25, 20, 0.38);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
  font-size: clamp(18px, 1.25vw, 21px);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  animation: none;
}

/* 表面印记任务提示移至画面下方；四处痕迹全部查看后由渲染条件彻底移除。 */
.scene-fossils .trace-instruction {
  top: auto;
  right: auto;
  bottom: 28px;
  left: 50%;
  width: min(760px, calc(100% - 260px));
  max-width: none;
  padding: 13px 22px;
  border: 1px solid rgba(255, 224, 146, 0.68);
  border-radius: 999px;
  color: #fff4cb;
  background: rgba(31, 49, 42, 0.92);
  box-shadow: 0 10px 28px rgba(12, 25, 20, 0.34);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
  font-size: clamp(17px, 1.15vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

/* 第四幕长结论与第五幕保留的任务提示统一采用单行宽框。 */
.scene-strata.immersive-scene .toast.single-line {
  width: min(1040px, calc(100% - 300px));
  max-width: none;
  padding-right: 36px;
  padding-left: 36px;
  white-space: nowrap;
}

.scene-fossils .reading-lock-notice {
  width: min(920px, calc(100% - 240px));
  max-width: none;
  white-space: nowrap;
}

.scene-fossils .trace-instruction {
  width: min(920px, calc(100% - 240px));
  white-space: nowrap;
}
