:root {
  --paper: #FAF8F2;
  --paper-2: #F1EEE4;
  --ink: #2A2B27;
  --ink-soft: #525D50;
  --accent: #33573F;
  --board: #33573F;
  --board-ink: #EEF2EA;
  --chalk-yellow: #F3D77A;
  --mark: #F7E08A;
  --red: #B5442F;
  --line: #DDD7C8;
  --card: #FFFFFF;
  --warn-bg: #FBEDE3;
  --tip-bg: #EAF1EC;
  --map-ink: #5B4838;
  --sky-top: #CFE9E1;
  --sky-bot: #FAF8F2;
  --street: #D9CEB8;
  --street-edge: #B8A689;
  --grass: #C5DBAF;
  --c-home: #F4D88A;
  --c-lab: #A9CFE0;
  --c-square: #F2B8A8;
  --c-studio: #CDBDE6;
  --c-library: #BFD9A8;
  --c-book: #F5B98A;
  --f-display: "LXGW WenKai TC", "Noto Serif TC", "PMingLiU", serif;
  --f-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "PingFang TC", sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

[data-time="morning"] {
  --sky-top: #FDE4C8;
  --sky-bot: #FAF3E3;
  --grass: #D4E2B6;
}

[data-time="day"] {
  --sky-top: #CFE9E1;
  --sky-bot: #FAF8F2;
  --grass: #C2DCA8;
}

[data-time="night"] {
  --paper: #1D2228;
  --paper-2: #262C34;
  --ink: #ECE9DF;
  --ink-soft: #B8C2CC;
  --accent: #F3D77A;
  --board: #283F34;
  --board-ink: #F4F1E8;
  --line: #3B434E;
  --card: #252B33;
  --warn-bg: #3B2A26;
  --tip-bg: #23342C;
  --map-ink: #14181D;
  --sky-top: #162030;
  --sky-bot: #243044;
  --street: #393E46;
  --street-edge: #292D34;
  --grass: #283B30;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 65% 40% at 10% 0%, color-mix(in srgb, var(--sky-top) 55%, transparent), transparent 70%),
    radial-gradient(ellipse 55% 40% at 95% 20%, color-mix(in srgb, var(--grass) 35%, transparent), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font: 17px/1.75 var(--f-body);
  transition: background-color 0.35s ease, color 0.35s ease;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.32;
  font-family: var(--f-display);
  text-wrap: balance;
}

p {
  margin: 0;
}

/* Sticky Top Navigation Bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px dashed color-mix(in srgb, var(--map-ink) 30%, transparent);
}

.bar__in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
}

.brand__badge {
  display: inline-grid;
  place-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--chalk-yellow);
  color: #2A2B27;
  border: 2px solid #5B4838;
  font-size: 14px;
  font-family: var(--f-body);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-btn {
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--line);
}

.nav-btn.is-active {
  background: var(--board);
  color: var(--board-ink);
  border-color: #5B4838;
  box-shadow: 0 2px 0 rgba(91, 72, 56, 0.25);
}

/* Time of Day Switcher */
.time-switch {
  display: inline-flex;
  align-items: center;
  background: var(--paper-2);
  border: 2px solid #5B4838;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  box-shadow: 0 3px 0 rgba(91, 72, 56, 0.16);
}

.time-btn {
  font: 600 13.5px/1.3 var(--f-body);
  padding: 5px 11px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.time-btn[aria-pressed="true"] {
  background: var(--chalk-yellow);
  color: #2A2B27;
  font-weight: 700;
}

/* Main Container */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 18px 64px;
}

/* Core Question Banner */
.core-question-banner {
  background: var(--card);
  border: 2px solid #5B4838;
  border-left: 8px solid var(--red);
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 0 rgba(91, 72, 56, 0.14);
}

.core-question-banner__q {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
}

.core-question-banner__tag {
  background: var(--warn-bg);
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 999px;
  padding: 2px 10px;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ghost-btn, .primary-btn {
  font: 600 14.5px/1.4 var(--f-body);
  padding: 7px 16px;
  border-radius: 999px;
  border: 2px solid #5B4838;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(91, 72, 56, 0.18);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.ghost-btn {
  background: var(--card);
  color: var(--ink);
}

.primary-btn {
  background: var(--board);
  color: var(--board-ink);
}

.ghost-btn:hover, .primary-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Town Map Stage */
.town-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 980px) {
  .town-layout {
    grid-template-columns: 1fr;
  }
}

.map-card {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 52%, var(--grass) 100%);
  border: 2.5px solid #5B4838;
  border-radius: 22px;
  box-shadow: 0 8px 0 rgba(91, 72, 56, 0.18);
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.map-title-box {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border: 2px solid #5B4838;
  border-radius: 16px;
  padding: 10px 18px;
  box-shadow: 0 4px 0 rgba(91, 72, 56, 0.16);
}

.map-title-box h1 {
  font-size: clamp(24px, 3vw, 34px);
}

.map-title-box p {
  font-size: 14px;
  color: var(--ink-soft);
}

.map-Hint-pill {
  background: var(--chalk-yellow);
  color: #2A2B27;
  border: 2px solid #5B4838;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 3px 0 rgba(91, 72, 56, 0.16);
}

.street-svg-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
}

/* 3D Interactive Town Stage (CtoA Style) */
.stage-3d-box {
  position: relative;
  width: 100%;
  height: 540px;
  border-radius: 18px;
  border: 2px solid #5B4838;
  overflow: hidden;
  background: #F4EFE4;
}

.stage-3d-canvas {
  width: 100%;
  height: 100%;
  position: relative;
}

.stage-3d-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Top-Left Chalkboard Teacher Guide + Speech Bubble (CtoA Style) */
.guide-widget {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.guide-widget__art {
  width: 128px;
  height: auto;
  filter: drop-shadow(0 4px 0 rgba(91, 72, 56, 0.2));
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.guide-widget:hover .guide-widget__art {
  transform: translateY(-4px) rotate(-1.5deg);
}

.guide-widget__bubble {
  margin-top: 14px;
  background: var(--paper);
  color: var(--ink);
  border: 2.5px solid #5B4838;
  border-radius: 14px;
  padding: 8px 14px;
  font: 700 14.5px/1.45 var(--f-body);
  max-width: 280px;
  box-shadow: 0 4px 0 rgba(91, 72, 56, 0.16);
  position: relative;
}

.guide-widget__bubble::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 14px;
  border-style: solid;
  border-width: 7px 12px 7px 0;
  border-color: transparent #5B4838 transparent transparent;
}

.guide-widget__bubble::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 15.5px;
  border-style: solid;
  border-width: 5.5px 10px 5.5px 0;
  border-color: transparent var(--paper) transparent transparent;
}

/* Floating 3D Controls on Top-Right of Canvas */
.stage-3d-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Floating "你" (You) Pill tracking the 3D Avatar */
.you-pill-3d {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  pointer-events: none;
  background: #FAF8F2;
  color: #2A2B27;
  border: 2px solid #5B4838;
  border-radius: 999px;
  padding: 2px 11px;
  font: 800 13px/1.3 var(--f-body);
  box-shadow: 0 3px 0 rgba(91, 72, 56, 0.2);
  white-space: nowrap;
  will-change: transform;
}

.room-3d-box {
  position: relative;
  width: 100%;
  height: 330px;
  border-radius: 18px;
  border: 2.5px solid #5B4838;
  overflow: hidden;
  background: #F4EFE4;
  box-shadow: 0 6px 0 rgba(91, 72, 56, 0.16);
}

.street-svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  user-select: none;
}

.street-svg .bldg-group {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.6, 1);
  transform-origin: center bottom;
  transform-box: fill-box;
}

.street-svg .bldg-group:hover,
.street-svg .bldg-group:focus-visible {
  transform: translateY(-7px);
}

.street-svg .hotspot-badge {
  cursor: pointer;
  transition: transform 0.2s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.street-svg .hotspot-badge:hover {
  transform: scale(1.13);
}

@keyframes pulse-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.float-badge {
  animation: pulse-gentle 3.2s ease-in-out infinite;
}

/* Town Right Sidebar List */
.town-sidebar {
  background: var(--card);
  border: 2.5px solid #5B4838;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 6px 0 rgba(91, 72, 56, 0.16);
  display: grid;
  gap: 10px;
}

.town-sidebar__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 2px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scene-card-mini {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--paper);
  cursor: pointer;
  transition: all 0.2s ease;
  display: grid;
  gap: 6px;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}

.scene-card-mini:hover, .scene-card-mini.is-active {
  border-color: #5B4838;
  background: color-mix(in srgb, var(--chalk-yellow) 22%, var(--card));
  transform: translateX(-2px);
  box-shadow: 0 3px 0 rgba(91, 72, 56, 0.15);
}

.scene-card-mini__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scene-card-mini__no {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  border: 1.5px solid #5B4838;
  color: #2A2B27;
  flex-shrink: 0;
}

.scene-card-mini__name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
}

.scene-card-mini__event {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.scene-card-mini__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.mini-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid #5B4838;
  color: var(--ink);
}

/* Morning / Night Desk Special Bar */
.desk-story-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.desk-story-card {
  background: var(--card);
  border: 2px solid #5B4838;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 0 rgba(91, 72, 56, 0.15);
  display: grid;
  gap: 8px;
  align-content: start;
}

.desk-story-card--poem {
  border-top: 6px solid var(--board);
}

.desk-story-card--yellowface {
  border-top: 6px solid var(--chalk-yellow);
}

.desk-story-card--echo {
  border-top: 6px solid var(--red);
}

/* Scene Interior View */
.scene-view {
  display: grid;
  gap: 24px;
}

.scene-banner {
  background: var(--board);
  color: var(--board-ink);
  border: 2.5px solid #5B4838;
  border-bottom: 6px solid #B9905E;
  border-radius: 20px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  box-shadow: 0 6px 0 rgba(91, 72, 56, 0.18);
}

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

.scene-banner__eyebrow {
  color: var(--chalk-yellow);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.scene-banner h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 8px;
}

.scene-banner__desc {
  font-size: 16.5px;
  opacity: 0.92;
  max-width: 720px;
}

.scene-banner__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.scene-chip {
  border: 1.5px dashed rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13.5px;
}

/* Interactive Props Bar inside a Scene (Phone notification, Bulletin board, Poster, Screen) */
.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.prop-trigger {
  background: var(--card);
  border: 2px solid #5B4838;
  border-radius: 16px;
  padding: 15px 16px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 6px;
  box-shadow: 0 4px 0 rgba(91, 72, 56, 0.14);
  transition: all 0.2s ease;
  position: relative;
}

.prop-trigger:hover, .prop-trigger.is-selected {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--chalk-yellow) 24%, var(--card));
  border-color: var(--board);
  box-shadow: 0 6px 0 rgba(51, 87, 63, 0.25);
}

.prop-trigger__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--red);
}

.prop-trigger__title {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
}

.prop-trigger__sub {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* Case Detail Panel */
.case-panel {
  background: var(--card);
  border: 2.5px solid #5B4838;
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 6px 0 rgba(91, 72, 56, 0.16);
  display: grid;
  gap: 20px;
}

.case-panel__header {
  border-bottom: 2px dashed var(--line);
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.case-panel__title {
  font-size: clamp(22px, 3vw, 30px);
}

/* Interactive Choice / Dilemma Box (Yellowface & Digital Citizen Scenarios) */
.dilemma-box {
  background: color-mix(in srgb, var(--mark) 22%, var(--paper));
  border: 2px solid #5B4838;
  border-left: 8px solid var(--board);
  border-radius: 16px;
  padding: 20px 22px;
  display: grid;
  gap: 14px;
}

.dilemma-box__rationalization {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
}

.choice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.choice-btn {
  background: var(--card);
  border: 2px solid #5B4838;
  border-radius: 12px;
  padding: 12px 14px;
  font: 600 15px/1.45 var(--f-body);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: all 0.18s;
}

.choice-btn:hover, .choice-btn.is-picked {
  background: var(--board);
  color: var(--board-ink);
}

.choice-feedback {
  background: var(--card);
  border: 2px dashed #5B4838;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15.5px;
  line-height: 1.7;
}

/* Knowledge Cards Grid (From the 273-page Slide Deck) */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.k-card {
  background: var(--paper);
  border: 2px solid #5B4838;
  border-radius: 16px;
  padding: 18px 20px;
  display: grid;
  gap: 10px;
  align-content: start;
  box-shadow: 0 4px 0 rgba(91, 72, 56, 0.12);
}

.k-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.k-card__badge {
  background: var(--chalk-yellow);
  color: #2A2B27;
  border: 1.5px solid #5B4838;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 800;
}

.k-card__page-btn {
  font: 600 12.5px/1.2 var(--f-mono);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid #5B4838;
  background: var(--card);
  color: var(--accent);
  cursor: pointer;
}

.k-card__page-btn:hover {
  background: var(--board);
  color: #fff;
}

.k-card h4 {
  font-size: 20px;
}

.k-card ul {
  margin: 0;
  padding-left: 1.25em;
  display: grid;
  gap: 6px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.k-card li strong {
  color: var(--ink);
}

/* Slide Explorer / Blackboard Projection View */
.slide-explorer {
  background: var(--card);
  border: 2.5px solid #5B4838;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 6px 0 rgba(91, 72, 56, 0.18);
  display: grid;
  gap: 18px;
}

.slide-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.slide-search {
  flex: 1 1 240px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid #5B4838;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.slide-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .slide-stage-grid {
    grid-template-columns: 1fr;
  }
}

.pdf-canvas-box {
  background: #17291F;
  border: 3px solid #5B4838;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pdf-canvas-box canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.slide-text-card {
  background: var(--paper);
  border: 2px solid #5B4838;
  border-radius: 16px;
  padding: 18px 20px;
  max-height: 440px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  align-content: start;
}

/* Tour / Poem Modal (CtoA Style) */
.tour-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(42, 33, 26, 0.55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.tour-modal[hidden] {
  display: none !important;
}

.tour-card {
  width: min(100%, 720px);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  color: var(--ink);
  border: 2.5px solid #5B4838;
  border-radius: 22px;
  box-shadow: 0 10px 0 rgba(91, 72, 56, 0.28);
  padding: 28px 32px 24px;
  display: grid;
  gap: 14px;
}

.poem-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: color-mix(in srgb, var(--mark) 28%, var(--card));
  border-left: 5px solid var(--board);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
}

@media (max-width: 600px) {
  .poem-columns {
    grid-template-columns: 1fr;
  }
}

.poem-en {
  font-family: Georgia, "LXGW WenKai TC", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.65;
}

.poem-zh {
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.65;
  border-left: 1px dashed rgba(91, 72, 56, 0.35);
  padding-left: 16px;
}

@media (max-width: 600px) {
  .poem-zh {
    border-left: 0;
    border-top: 1px dashed rgba(91, 72, 56, 0.35);
    padding-left: 0;
    padding-top: 12px;
  }
}

/* Footer */
.foot {
  border-top: 2px dashed color-mix(in srgb, var(--map-ink) 30%, transparent);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
}

.foot__safe {
  background: var(--warn-bg);
  border-bottom: 1px solid var(--line);
}

.foot__safe p {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 18px;
  font-size: 14.5px;
}

.foot__safe b {
  color: var(--red);
  margin-right: 8px;
}

.foot__in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 18px 32px;
  font-size: 14px;
  color: var(--ink-soft);
  display: grid;
  gap: 6px;
}
