/* ============================================================
 * H23 照片故事 + 旅行地照片墙（docs/09 §3）
 * ① .mc-story        长廊回忆卡每张照片的一句话故事
 * ② #lightbox-story  相册亭/近景照片放大视图的故事行
 * ③ #h20-quiz-story  答题卡答对后的故事行
 * ④ #h23-wall        旅行地照片墙浏览浮层（按 E 打开）
 * ============================================================ */

/* ① 长廊回忆卡故事：信纸卡上的手写体一行 */
#memory-card .mc-story {
  font-family: var(--hand, 'Ma Shan Zheng', serif);
  font-size: clamp(15px, 3.4vw, 18px);
  line-height: 1.7; color: #7a4a3a;
  margin: 0 0 14px; padding: 8px 12px;
  background: rgba(216, 189, 150, .14);
  border-left: 3px solid rgba(190, 140, 90, .55);
  border-radius: 0 8px 8px 0;
  text-align: left;
}
#memory-card .mc-story:empty { display: none; }

/* ② 灯箱故事：夜景底上的暖白一行 */
.lightbox #lightbox-story {
  max-width: 72vw; margin-top: 10px;
  font-size: 16px; letter-spacing: .12em; line-height: 1.8;
  color: rgba(255, 226, 190, .95);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}
.lightbox #lightbox-story:empty { display: none; }

/* ③ 答题卡故事：答对后浮出的回忆一行 */
#h20-quiz-story {
  margin: 10px 0 0; padding: 9px 12px;
  font-size: 14px; line-height: 1.75; letter-spacing: .04em;
  color: #6a4a34;
  background: rgba(255, 214, 150, .18);
  border-left: 3px solid rgba(200, 150, 80, .6);
  border-radius: 0 8px 8px 0;
  text-align: left;
}
#h20-quiz-story:empty { display: none; }

/* ④ 照片墙浏览浮层 */
#h23-wall {
  position: fixed; inset: 0; z-index: 46;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 8, 16, .58); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility .35s;
}
#h23-wall.on { opacity: 1; visibility: visible; pointer-events: auto; }
#h23-wall .h23w-card {
  width: min(460px, 90vw); max-height: 86vh; overflow-y: auto;
  padding: 20px 24px 18px; border-radius: 12px;
  text-align: center; color: #4a3138;
  background:
    repeating-linear-gradient(0deg, rgba(180, 140, 90, .028) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 30% 12%, #fffdf8, #f8f0e2 58%, #f2e7d2);
  border: 1px solid rgba(216, 189, 150, .55);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5), 0 2px 10px rgba(60, 30, 20, .25);
  transform: scale(.96); transition: transform .35s ease;
}
#h23-wall.on .h23w-card { transform: scale(1); }
#h23-wall .h23w-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; letter-spacing: .22em; color: #a8854f;
  border-bottom: 1px solid rgba(168, 133, 79, .3);
  padding-bottom: 8px; margin-bottom: 12px;
}
#h23-wall .h23w-name { font-weight: 700; }
#h23-wall .h23w-photo {
  position: relative; margin: 0 auto 12px;
  width: 100%; aspect-ratio: 4 / 3; max-height: 44vh;
  border-radius: 8px; overflow: hidden;
  background: #20161c;
  box-shadow: inset 0 0 0 1px rgba(216, 189, 150, .4), 0 4px 14px rgba(60, 30, 20, .18);
}
#h23-wall .h23w-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .18s ease;
}
#h23-wall .h23w-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 52px; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: #fdf3e6;
  background: rgba(30, 16, 22, .45); backdrop-filter: blur(3px);
  transition: background .25s, opacity .25s; opacity: .75;
}
#h23-wall .h23w-arrow:hover { background: rgba(30, 16, 22, .72); opacity: 1; }
#h23-wall #h23w-prev { left: 0; border-radius: 0 8px 8px 0; }
#h23-wall #h23w-next { right: 0; border-radius: 8px 0 0 8px; }
#h23-wall .h23w-count {
  position: absolute; right: 8px; bottom: 6px;
  font-size: 11px; letter-spacing: .18em; color: #f7e8d2;
  background: rgba(30, 16, 22, .5); border-radius: 999px; padding: 2px 10px;
}
#h23-wall .h23w-story {
  font-family: var(--hand, 'Ma Shan Zheng', serif);
  font-size: clamp(15px, 3.4vw, 18px);
  line-height: 1.7; color: #7a4a3a;
  margin: 0 0 14px; padding: 8px 12px;
  background: rgba(216, 189, 150, .14);
  border-left: 3px solid rgba(190, 140, 90, .55);
  border-radius: 0 8px 8px 0;
  text-align: left;
}
#h23-wall .h23w-story:empty { display: none; }
#h23-wall .h23w-go {
  border: 1px solid rgba(168, 133, 79, .5); border-radius: 999px;
  background: transparent; color: #8a6a3f;
  font-size: 14px; letter-spacing: .28em; padding: 8px 26px 8px 30px;
  cursor: pointer; transition: background .25s, color .25s;
}
#h23-wall .h23w-go:hover { background: rgba(168, 133, 79, .16); color: #6a4a24; }
