/* 走走停停 — 暗色点阵版：近黑底、细线、密点地图、一点朱红 */
:root {
  --bg: #0B0B0D;
  --bg-soft: #101013;
  --ink: #EDEDE7;
  --muted: #8F8F8A;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #E5483C;
  --serif: "Songti SC", "STSong", "Noto Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }

/* ---------- 顶栏 ---------- */
.site-head {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .35em;
}
.site-head nav { display: flex; gap: 28px; align-items: baseline; }
.site-head nav a { font-size: 13px; color: var(--muted); transition: color .2s; }
.site-head nav a:hover { color: var(--ink); }
.years { font-size: 12px; color: var(--muted); letter-spacing: .12em; }

/* ---------- 全屏地图层（首页背景，详情 sheet 背后同一张） ---------- */
.world-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.world-map {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform, width, height;
  background: var(--bg);
}
.world-map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* 点阵画布：CSS 尺寸由 DotMap 设为地图数据像素，随 .world-map 一起 transform */
.world-map canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}
.world-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-marker {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #0B0B0D;
  font: 700 13px/26px var(--sans);
  text-align: center;
  transform: translate(-50%, -50%) scale(var(--ms, 1));
  transition: box-shadow .3s ease;
  pointer-events: none;
}
.map-marker.on {
  box-shadow: 0 0 0 4px rgba(229, 72, 60, 0.28), 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}
.map-credit {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, 0.32);
  pointer-events: none;
  /* 随地图缩放反向 counter-scale，高倍 zoom 下不变巨（同 .map-marker 的 --ms） */
  transform-origin: 0 100%;
  transform: scale(var(--ms, 1));
}
/* 地图暗化层：右侧压一点暗，让面板文字可读 */
.world-dim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right,
    rgba(11, 11, 13, 0) 40%,
    rgba(11, 11, 13, 0.42) 78%,
    rgba(11, 11, 13, 0.62) 100%);
}

/* ---------- 首页 hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 7% 6vh 0;
}
.panel {
  max-width: 420px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7), 0 0 6px rgba(0, 0, 0, 0.55);
  transition: opacity .45s ease;
}
/* 进详情时首页面板文字慢慢透明掉 */
body.locked .panel { opacity: 0; pointer-events: none; }
.panel .fade { transition: opacity .18s ease, transform .18s ease; }
.panel.swap .fade { opacity: 0; transform: translateY(5px); }
.panel-num {
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--muted);
  margin-bottom: 22px;
}
.panel-loc {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 14px;
}
.panel h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.excerpt { font-size: 15px; color: rgba(237, 237, 231, 0.82); margin-bottom: 28px; }
.read-link {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.read-link:hover { color: var(--accent); border-color: var(--accent); }
.read-link .arr { margin-left: 6px; }

.dots { display: flex; gap: 10px; margin-top: 44px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.dot:hover { background: rgba(255, 255, 255, 0.32); }
.dot.on { background: var(--accent); transform: scale(1.15); }

/* ---------- 文章列表 ---------- */
.notes {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px 40px 96px;
}
.notes h2 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--muted);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.notes h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.note-list { list-style: none; }
.note-list a {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.note-list .d { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.note-list .t {
  font-family: var(--serif);
  font-size: 21px;
  transition: color .2s;
}
.note-list a:hover .t {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.note-list .l { font-size: 12px; color: var(--muted); }
.note-list li.featured a {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 0;
  background: rgba(255, 255, 255, 0.02);
}
.note-list li.featured .d { font-size: 11px; letter-spacing: .1em; }
.note-list li.featured .t { font-size: 28px; line-height: 1.35; }

/* ---------- 收尾 ---------- */
.closing { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); padding: 120px 40px; text-align: center; }
.closing p { font-family: var(--serif); font-size: 26px; letter-spacing: .1em; }

.site-foot {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 详情 sheet：右侧推出 3/4 屏 ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 4, 6, 0.32);   /* 只压暗，不模糊：保证最左边地图清晰 */
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.scrim.on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: 75vw;
  height: 100vh;
  height: 100dvh;
  background: transparent;          /* 透出背后首页地图，由 .sheet-blur 虚化 */
  overflow: hidden;
  transform: translateX(103%);
  transition: transform .55s cubic-bezier(.32, .72, 0, 1);
  visibility: hidden;
}
.sheet.on { transform: translateX(0); visibility: visible; }

/* sheet 头部的地点 / 坐标小标签 */
.loc-tag {
  background: rgba(237, 237, 231, 0.16);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: .14em;
  padding: 6px 10px 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.coord {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* 全屏渐变高斯模糊：左清右糊，文字区把背景完全虚化
   原理：backdrop-filter 是均匀模糊，用 mask-image 从透明渐变到不透明，
   视觉上得到「清晰 → 模糊」的横向渐变。z-index 介于 scrim(60) 与 sheet(70) 之间。 */
.sheet-blur {
  position: fixed;
  inset: 0;
  z-index: 65;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
  backdrop-filter: blur(20px) brightness(0.82) saturate(0.92);
  -webkit-backdrop-filter: blur(20px) brightness(0.82) saturate(0.92);
  mask-image: linear-gradient(to right,
    transparent 0%, transparent 30%,
    rgba(0, 0, 0, 0.45) 50%, #000 64%, #000 100%);
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, transparent 30%,
    rgba(0, 0, 0, 0.45) 50%, #000 64%, #000 100%);
}
.sheet-blur.on { opacity: 1; }

.sheet-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  height: 88px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);   /* 与首页 site-head 同高，连成一条线 */
}
/* 毛玻璃底做成左清右糊渐变（和正文一致），底边线单独保留以保持连续 */
.sheet-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: rgba(11, 11, 13, 0.32);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  mask-image: linear-gradient(to right,
    transparent 0%, transparent 8%,
    rgba(0, 0, 0, 0.5) 30%, #000 52%, #000 100%);
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, transparent 8%,
    rgba(0, 0, 0, 0.5) 30%, #000 52%, #000 100%);
}
.sheet-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(11, 11, 13, 0.28);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s, background .2s;
}
.sheet-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }
.sheet-head .coord { color: rgba(237, 237, 231, 0.7); }

/* 顶部标题栏下方的阅读进度条 */
.sheet-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 5;
  transition: width .08s linear;
}

.sheet-scroll {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.sheet-scroll::-webkit-scrollbar { display: none; }

/* 首屏：标题压在清晰地图上 */
.sheet-hero {
  height: 100%;
  position: relative;
}
.hero-titles {
  position: absolute;
  top: 50%;
  right: 7%;
  transform: translateY(-50%);
  text-align: right;
  max-width: 46%;
  z-index: 1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75), 0 0 6px rgba(0, 0, 0, 0.6);
}
/* 右侧标题的毛玻璃背板：大小贴合标题文字块 */
.hero-titles::before {
  content: '';
  position: absolute;
  top: -28px;
  bottom: -28px;
  left: -28px;
  right: -28px;
  z-index: -1;
  background: rgba(11, 11, 13, 0.22);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
}
.hero-titles h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.25;
}
.hero-titles p {
  margin-top: 14px;
  font-size: 15px;
  color: rgba(237, 237, 231, 0.78);
}

/* 地图版权（样式见 .world-map 区块） */

/* ---------- 正文 ---------- */
.article {
  width: 92%;
  margin-left: auto;
  padding: 0 7% 4vh 4%;
}
/* 顶部留出 sheet-head 的高度，避免正文钻到状态栏下面被盖住 */
.intro-section { padding-top: 96px; }
.stop-section { padding-top: 96px; }
.article .meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .06em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.article .meta .n {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
}
.article h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 1.3em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article h3 .n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .08em;
}
.article p { margin-bottom: 0; color: rgba(237, 237, 231, 0.88); }
.article p.em {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  margin: 2.2em 0;
}

.post-nav {
  width: 92%;
  margin-left: auto;
  padding: 0 7% 14vh 4%;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.post-nav a { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.post-nav a.next { text-align: right; }
.post-nav span { font-size: 11px; letter-spacing: .18em; color: var(--muted); }
.post-nav b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  transition: color .2s;
}
.post-nav a:hover b { color: var(--accent); }

/* ---------- 详情 sheet：天数选择器（固定在 sheet 底部，常驻可见） ---------- */
.day-picker {
  position: fixed;            /* .sheet 有 transform，fixed 实际相对 sheet 定位 */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 7% 18px;
  scrollbar-width: none;
  background: linear-gradient(to top, rgba(11, 11, 13, 0.92) 0%, rgba(11, 11, 13, 0.78) 60%, rgba(11, 11, 13, 0) 100%);
  pointer-events: none;
}
.day-picker > * { pointer-events: auto; }
.day-picker::-webkit-scrollbar { display: none; }
.day-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 12px 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(11, 11, 13, 0.34);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  color: rgba(237, 237, 231, 0.78);
  font: 12px/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s;
}
.day-chip .dn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
}
.day-chip .dt { letter-spacing: .04em; }
.day-chip:hover { border-color: rgba(255, 255, 255, 0.4); color: var(--ink); }
.day-chip.on {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(229, 72, 60, 0.18);
}
.day-chip.on .dn { color: var(--accent); }

/* ---------- MD 正文：图片 / 分隔线 / 加载提示 ---------- */
.article figure.md-img {
  margin: 2em 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.article figure.md-img img {
  width: 50%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  cursor: zoom-in;
  transition: transform .25s ease, border-color .25s ease;
}
.article figure.md-img img:hover {
  transform: scale(1.008);
  border-color: rgba(255, 255, 255, 0.22);
}
.article figure.md-img figcaption {
  width: 50%;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  text-align: center;
}
.article figure.md-video {
  margin: 2em 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.article figure.md-video video {
  width: 50%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.article figure.md-video figcaption {
  width: 50%;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  text-align: center;
}
.article hr.md-hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}

/* ---------- 催更按钮 ---------- */
.md-nudge {
  margin: 2.4em 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.nudge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(229, 72, 60, 0.18);
  color: var(--ink);
  font: 14px/1 var(--sans);
  letter-spacing: .06em;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, transform .2s, box-shadow .2s, border-color .2s;
}
.nudge-btn:hover {
  background: rgba(229, 72, 60, 0.30);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(229, 72, 60, 0.18);
}
.nudge-btn:active {
  background: rgba(229, 72, 60, 0.48);
  border-color: rgba(229, 72, 60, 0.85);
  transform: translateY(0);
  box-shadow: none;
}
.nudge-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(229, 72, 60, 0.35);
}
.nudge-btn .nudge-icon { font-size: 15px; }
.nudge-btn .nudge-label { letter-spacing: .1em; }
.nudge-count {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ---------- 图组：连续图片同行平铺 / 放不下则叠放 ----------
   由 sheet.js layoutGroups() 设定每张 img 的 width / margin-left（百分比）。
   - 默认 flex 一行平铺、居中、带 gap；
   - .overlapping 时去掉 gap、用负 margin-left 叠放，左上层盖右下，
     每张 z-index 递减让文中先提到的图盖在最上层，露出 sliver 一条。 */
.article figure.md-img-group {
  margin: 2em 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.article figure.md-img-group img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  cursor: zoom-in;
  transition: transform .25s ease, border-color .25s ease;
  flex: 0 0 auto;
}
.article figure.md-img-group img:hover {
  transform: scale(1.008);
  border-color: rgba(255, 255, 255, 0.22);
}
.article figure.md-img-group.overlapping {
  gap: 0;
  justify-content: flex-start;
}
.article figure.md-img-group.overlapping img {
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.article figure.md-img-group.overlapping img:hover {
  z-index: 20;
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
}
.article .loading {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

/* ---------- 图片放大预览（lightbox / ViewPager 三页滑动） ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 6, 0.55);
  backdrop-filter: blur(22px) saturate(1.1) brightness(0.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.1) brightness(0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  cursor: zoom-out;
  overflow: hidden;
  touch-action: pan-y;
}
.lightbox.on { opacity: 1; pointer-events: auto; }
.lb-track {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  transform: translate3d(-100%, 0, 0);
  transition: transform .3s ease;
  will-change: transform;
}
.lb-track.dragging,
.lb-track.no-anim { transition: none !important; }
.lb-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  box-sizing: border-box;
}
.lb-slide img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform .3s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox.on .lb-slide img { transform: scale(1); }
.lb-video {
  display: none;
  position: absolute;
  max-width: 92vw;
  max-width: 92dvw;
  max-height: 92vh;
  max-height: 92dvh;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.lightbox.video-mode .lb-video { display: block; }
.lightbox.video-mode .lb-track,
.lightbox.video-mode .lb-spinner,
.lightbox.video-mode .lb-nav { display: none; }
.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: transparent;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s ease, color .2s ease;
}
.lb-close:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--accent);
}
.md-video video { cursor: pointer; }
.md-video {
  position: relative;
  display: inline-block;
}
.md-video::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(11, 11, 13, 0.55);
  color: var(--ink);
  font-size: 18px;
  line-height: 48px;
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(11, 11, 13, 0.55);
  color: rgba(255, 255, 255, 0.85);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.lightbox .lb-nav:hover {
  background: rgba(11, 11, 13, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
}
.lightbox .lb-prev { left: 3vw; }
.lightbox .lb-next { right: 3vw; }
.lightbox .lb-spinner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: lb-spin .9s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.lightbox.loading .lb-spinner { opacity: 1; }
.lightbox.loading .lb-slide img { opacity: 0; }
@keyframes lb-spin {
  to { transform: rotate(360deg); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .site-head { padding: 20px; }
  .hero {
    justify-content: center;
    padding: 0 24px 8vh;
    min-height: 100vh;
  }
  .panel {
    position: relative;
    max-width: none;
    text-align: center;
    padding: 34px 26px;
    isolation: isolate;
  }
  /* 标题背板：高斯模糊 + 上下自然渐隐，避免与地图标记重叠 */
  .panel::before {
    content: '';
    position: absolute;
    inset: -28px -28px;
    z-index: -1;
    background: rgba(11, 11, 13, 0.30);
    backdrop-filter: blur(18px) saturate(1.2) brightness(0.92);
    -webkit-backdrop-filter: blur(18px) saturate(1.2) brightness(0.92);
    border-radius: 16px;
    mask-image: linear-gradient(to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.28) 12%,
      rgba(0, 0, 0, 0.85) 28%,
      #000 42%, #000 58%,
      rgba(0, 0, 0, 0.85) 72%,
      rgba(0, 0, 0, 0.28) 88%,
      transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.28) 12%,
      rgba(0, 0, 0, 0.85) 28%,
      #000 42%, #000 58%,
      rgba(0, 0, 0, 0.85) 72%,
      rgba(0, 0, 0, 0.28) 88%,
      transparent 100%);
  }
  .panel h1 { font-size: 32px; }
  .notes { padding: 56px 20px 72px; }
  .note-list a { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .note-list li.featured a { min-height: 120px; padding: 22px 0; }
  .note-list li.featured .t { font-size: 24px; }
  .note-list .l { display: none; }
  .closing { padding: 80px 20px; }
  .site-foot { padding: 24px 20px; }
  .sheet { width: 100vw; border-left: none; }
  .sheet-head { padding: 16px 20px; }
  .sheet-head::before {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .sheet-hero { height: 100%; }
  .hero-titles {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 80%;
    padding: 0;
  }
  .hero-titles::before {
    top: -28px;
    bottom: -28px;
    left: -28px;
    right: -28px;
    border-radius: 6px;
  }
  .sheet-blur {
    /* 手机端不再左清右糊，统一使用约 55% 模糊，让背后地图更透一些 */
    backdrop-filter: blur(11px) brightness(0.82) saturate(0.92);
    -webkit-backdrop-filter: blur(11px) brightness(0.82) saturate(0.92);
    mask-image: none;
    -webkit-mask-image: none;
  }
  .hero-titles h1 { font-size: 36px; }
  .article {
    width: 100%;
    margin-left: 0;
    padding: 0 24px 80px;
  }
  .intro-section { padding-top: 24px; }
  .stop-section { padding-top: 140px; }
  .post-nav {
    width: 100%;
    margin-left: 0;
    padding: 0 24px 96px;
  }
  .day-picker { padding: 12px 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet { transition-duration: .01s; }
  .scrim { transition-duration: .01s; }
  .sheet-blur { transition-duration: .01s; }
}

/* ---------- 本地日志面板 ---------- */
#xj-log-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
  flex-direction: column;
  max-height: 42vh;
  background: rgba(8, 8, 10, 0.96);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
}
.xj-log-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.xj-log-bar span { flex: 1; }
.xj-log-bar button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font: 11px var(--mono);
  padding: 3px 10px;
  cursor: pointer;
}
.xj-log-bar button:hover { border-color: var(--accent); color: var(--accent); }
.xj-log-list {
  overflow-y: auto;
  padding: 8px 14px 14px;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.7;
  user-select: text;
}
.xj-log-row.lv-warn { color: #D8A53A; }
.xj-log-row.lv-error { color: var(--accent); }
