/* ==================================================
   CC 交互层样式：展示效果与交互改造
   复用站点原有的 --ink / --paper / --hl 等变量，深浅色自动适配
   ================================================== */

/* ===== 通用 ===== */
html.cc-locked {
  overflow: hidden;
}

/* 组件里给元素设了 display，会盖掉 hidden 属性，这里统一兜底 */
[hidden] {
  display: none !important;
}

.cc-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[data-article] {
  cursor: pointer;
}

/* 全宽板块：标题行在上，内容占满整行 */
.section-wide {
  display: block;
}

/* ===== 主题切换：从按钮处圆形扩散（View Transitions） ===== */
html.vt-theme *,
html.vt-theme *::before,
html.vt-theme *::after {
  transition: none !important;
}

html.vt-theme::view-transition-old(root),
html.vt-theme::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

html.vt-theme::view-transition-new(root) {
  z-index: 2;
}

/* ===== 阅读器形变 ===== */
::view-transition-group(cc-media),
::view-transition-group(cc-title) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.vt-reader::view-transition-old(root),
html.vt-reader::view-transition-new(root) {
  animation-duration: 0.32s;
}

/* ===== 会说话的光标 ===== */
.cursor-ring .cursor-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 12px/1 "Segoe UI", "LXGW WenKai", sans-serif;
  letter-spacing: 0.14em;
  color: #fffaf2;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.cursor-labeled .cursor-ring {
  width: 66px;
  height: 66px;
  border-color: transparent;
  background: var(--hl);
  box-shadow: 0 10px 30px rgba(176, 62, 36, 0.35);
}

body.cursor-labeled .cursor-ring .cursor-label {
  opacity: 1;
}

body.cursor-labeled .cursor-dot {
  opacity: 0 !important;
}

/* ===== 标签轨（原跑马灯）：可拖动、悬停计数、点击筛选 ===== */
.marquee {
  position: relative;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.marquee.dragging {
  cursor: grabbing;
}

.marquee .marquee-track {
  animation: none;
  will-change: transform;
}

.tag-pill {
  position: relative;
  flex: none;
  padding: 0 26px;
  border: 0;
  background: none;
  font-family: "Segoe UI", -apple-system, sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
  cursor: inherit;
  transition: color 0.3s ease;
}

.tag-pill::after {
  content: "✦";
  margin-left: 52px;
  color: var(--hl);
  font-size: 11px;
}

.tag-pill:hover,
.tag-pill.is-active {
  color: var(--hl);
}

.tag-pill.is-active {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.tag-pill::before {
  content: attr(data-count);
  position: absolute;
  left: 26px;
  top: -13px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--hl);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tag-pill:hover::before {
  opacity: 1;
  transform: none;
}

html.tag-filtering [data-tags]:not(.tag-hit) {
  opacity: 0.2;
  filter: grayscale(0.9);
  transition: opacity 0.45s ease, filter 0.45s ease;
}

html.tag-peeking:not(.tag-filtering) [data-tags]:not(.tag-hit) {
  opacity: 0.45;
  transition: opacity 0.35s ease;
}

html.tag-filtering .tag-hit.post,
html.tag-filtering .tag-hit.work-card {
  border-color: var(--hl);
}

html.tag-filtering .note.tag-hit {
  background: var(--spot);
}

.tag-filter-chip {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 140;
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 44px var(--shadow-strong);
  font-size: 13.5px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 18px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.35s;
}

.tag-filter-chip.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.tag-filter-chip button {
  border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 4px 12px;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.tag-filter-chip button:hover {
  border-color: var(--hl);
  color: var(--hl);
}

/* ===== 个人介绍：「两种节拍」拖动分屏 ===== */
.intro-main {
  display: grid;
  gap: 34px;
  min-width: 0;
}

.rhythm-stage {
  --split: 50%;
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #111;
  box-shadow: 0 22px 50px var(--shadow);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.rhythm-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.rhythm-road {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--split));
}

.rhythm-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.45);
  outline: none;
}

.rhythm-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.94);
  color: #1e1a13;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  font-size: 15px;
  letter-spacing: -0.1em;
}

.rhythm-handle:focus-visible span {
  outline: 2px solid var(--hl);
  outline-offset: 3px;
}

.rhythm-label {
  position: absolute;
  bottom: 16px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(8, 14, 12, 0.55);
  color: #fffaf2;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.rhythm-label-l {
  left: 16px;
}

.rhythm-label-r {
  right: 16px;
}

.rhythm-caption {
  min-height: 1.75em;
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 15px;
}

.rhythm-caption strong {
  color: var(--ink);
  font-weight: 400;
}

/* ===== 项目随笔：错落网格 + 悬停预览 ===== */
.section-projects .grid-projects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-projects .grid-projects .post-featured {
  grid-column: span 2;
}

.post-image {
  position: relative;
}

.post-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111819;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.post-image.is-previewing .post-preview {
  opacity: 1;
}

.preview-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(8, 14, 12, 0.62);
  color: #fffaf2;
  font: 11px/1.4 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.14em;
  pointer-events: none;
}

.post-image.is-previewing .preview-badge {
  background: rgba(176, 62, 36, 0.85);
}

/* ===== 阅读器 ===== */
.reader {
  position: fixed;
  inset: 0;
  z-index: 180;
}

.reader[hidden] {
  display: none;
}

.reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 9, 0.55);
  backdrop-filter: blur(8px);
}

.reader-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100vh - 56px);
  transform: translate(-50%, -50%);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-solid);
  color: var(--ink);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.4);
}

.reader.no-vt .reader-panel {
  animation: reader-in 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes reader-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 24px)) scale(0.97);
  }
}

.reader-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 14, 12, 0.55);
  color: #fffaf2;
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.reader-close:hover {
  background: var(--hl);
}

.reader-media {
  position: relative;
  margin: 0;
  height: min(58vh, 600px);
  background: #111819;
}

.reader-media img,
.reader-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.reader-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px 34px;
  padding: 28px 36px 30px;
}

.reader-kicker {
  font: 12px/1.4 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.26em;
  color: var(--hl);
}

.reader-title {
  margin: 10px 0 14px;
  font-family: "Noto Serif SC", "LXGW WenKai", serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
}

.reader-lead {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
}

.reader-article {
  margin-top: 18px;
}

.reader-article:empty {
  display: none;
}

.reader-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reader-actions:empty,
.reader-tags:empty {
  display: none;
}

.reader-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--accent-strong);
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.reader-btn:hover,
.reader-btn.primary {
  background: var(--accent-strong);
  color: var(--white);
}

.reader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reader-tags::before {
  content: "相关标签";
  flex-basis: 100%;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.reader-tags button {
  border: 0;
  border-radius: 999px;
  background: var(--spot);
  color: var(--accent-strong);
  padding: 3px 12px;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.reader-tags button:hover {
  background: var(--hl);
  color: var(--white);
}

.reader-nav {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.reader-nav button {
  max-width: 48%;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.reader-nav button:last-child {
  text-align: right;
}

.reader-nav button:hover {
  color: var(--hl);
}

.reader-nav button.is-empty {
  visibility: hidden;
}

/* ===== 作品放映厅 ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid rgba(243, 234, 217, 0.1);
  border-radius: 22px;
  background: linear-gradient(160deg, #2b2620, #13110d);
  color: #f3ead9;
  box-shadow: 0 24px 60px var(--shadow-strong);
  cursor: pointer;
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(224, 104, 74, 0.6);
  box-shadow: 0 34px 80px var(--shadow-strong);
}

/* 游戏卡：整行横排（画面左、文字右），两部短片并排在下方 */
.work-card:first-child {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}

.work-card:first-child .work-meta {
  flex: 1;
  padding: 10px 14px 10px 0;
}

.work-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.work-card[data-kind="game"] .work-screen {
  flex: 0 0 58%;
  aspect-ratio: 16 / 10;
  border-radius: 26px / 30px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 10px #0c0b09, 0 0 0 11px rgba(243, 234, 217, 0.08);
  margin: 10px;
}

.work-screen img,
.work-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-screen video {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.work-card.is-playing .work-screen video {
  opacity: 1;
}

/* 显像管扫描线 + 暗角 */
.work-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px),
    radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55));
}

.work-card:not(.is-playing) .work-screen img {
  filter: brightness(0.82) saturate(0.9);
  transition: filter 0.45s ease;
}

/* 胶片齿孔 */
.work-card[data-kind="film"] .work-frame {
  position: relative;
  padding: 0 18px;
  border-radius: 10px;
  background: #0a0908;
}

.work-card[data-kind="film"] .work-frame::before,
.work-card[data-kind="film"] .work-frame::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 7px;
  border-radius: 2px;
  background: repeating-linear-gradient(180deg, rgba(243, 234, 217, 0.82) 0 6px, transparent 6px 14px);
  opacity: 0.55;
}

.work-card[data-kind="film"] .work-frame::before {
  left: 5px;
}

.work-card[data-kind="film"] .work-frame::after {
  right: 5px;
}

.work-card.is-playing[data-kind="film"] .work-frame::before,
.work-card.is-playing[data-kind="film"] .work-frame::after {
  animation: film-roll 0.6s linear infinite;
}

@keyframes film-roll {
  to {
    background-position: 0 14px;
  }
}

.work-onair {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  font: 10.5px/1 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.24em;
  color: rgba(243, 234, 217, 0.72);
}

.work-onair i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5a5048;
}

.work-card.is-playing .work-onair i {
  background: #e0684a;
  box-shadow: 0 0 10px #e0684a;
  animation: onair-blink 1.1s steps(2) infinite;
}

@keyframes onair-blink {
  50% {
    opacity: 0.35;
  }
}

.work-meta {
  padding: 16px 6px 4px;
}

.work-kind {
  font: 11.5px/1.4 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.26em;
  color: #e0684a;
}

.work-meta h3 {
  margin: 8px 0 6px;
  font-family: "Noto Serif SC", "LXGW WenKai", serif;
  font-size: clamp(20px, 2vw, 26px);
  color: #fffaf2;
}

.work-meta p {
  margin: 0;
  color: rgba(243, 234, 217, 0.72);
  font-size: 14.5px;
}

.work-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.work-play {
  border: 1px solid rgba(243, 234, 217, 0.4);
  border-radius: 999px;
  background: rgba(243, 234, 217, 0.06);
  color: #fffaf2;
  padding: 6px 18px;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.work-card:hover .work-play {
  border-color: #e0684a;
  background: #e0684a;
}

.work-length {
  font: 12px/1 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.12em;
  color: rgba(243, 234, 217, 0.5);
}

/* 放映厅弹层：幕布拉开 */
.theater {
  position: fixed;
  inset: 0;
  z-index: 185;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(6, 5, 4, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.theater.open {
  opacity: 1;
  visibility: visible;
}

.theater::before,
.theater::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 51%;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0 6px, rgba(255, 255, 255, 0.04) 6px 14px, rgba(0, 0, 0, 0.18) 14px 22px),
    linear-gradient(180deg, #7a1d1d, #4b0f10);
  transition: transform 0.95s cubic-bezier(0.7, 0, 0.2, 1) 0.12s;
}

.theater::before {
  left: 0;
}

.theater::after {
  right: 0;
}

.theater.open::before {
  transform: translateX(-102%);
}

.theater.open::after {
  transform: translateX(102%);
}

.theater-inner {
  width: min(94vw, calc((100vh - 130px) * 16 / 9));
}

.theater-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: rgba(243, 234, 217, 0.85);
}

.theater-kind {
  margin-right: 12px;
  font: 11px/1 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.26em;
  color: #e0684a;
}

.theater-title {
  font-family: "Noto Serif SC", "LXGW WenKai", serif;
  font-size: 18px;
  color: #fffaf2;
}

.theater-actions {
  display: flex;
  gap: 8px;
}

.theater-actions a,
.theater-actions button {
  border: 1px solid rgba(243, 234, 217, 0.3);
  border-radius: 999px;
  background: transparent;
  color: rgba(243, 234, 217, 0.9);
  padding: 5px 14px;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.theater-actions a:hover,
.theater-actions button:hover {
  border-color: #e0684a;
  color: #fffaf2;
}

.theater-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.theater-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.theater-blocked {
  display: grid;
  place-content: center;
  gap: 8px;
  height: 100%;
  padding: 24px;
  color: rgba(243, 234, 217, 0.82);
  text-align: center;
  font-size: 15px;
}

.theater-blocked strong {
  color: #fffaf2;
  font-size: 20px;
}

.theater-blocked p {
  margin: 0;
}

.theater-blocked b,
.file-notice b {
  color: #e0684a;
}

/* 直接打开本地文件时的提示条 */
.file-notice {
  position: fixed;
  left: 50%;
  top: 74px;
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 9px 10px 9px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 44px var(--shadow-strong);
  font-size: 13.5px;
  transform: translateX(-50%);
}

.file-notice button {
  flex: none;
  border: 0;
  background: none;
  color: inherit;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.7;
}

.theater-hint {
  margin: 12px 0 0;
  color: rgba(243, 234, 217, 0.5);
  font-size: 13px;
  text-align: center;
}

/* ===== 大模型笔记：大图跟随光标 ===== */
.note-list.has-float .note {
  grid-template-columns: 108px minmax(0, 1fr) 40px;
}

.note-list.has-float .note-thumb {
  display: none;
}

.note-list.has-float .note::after {
  content: "→";
  justify-self: end;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.note-list.has-float .note:hover::after {
  transform: translateX(6px);
  color: var(--hl);
}

.note-float {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 140;
  width: 340px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111819;
  box-shadow: 0 30px 70px var(--shadow-strong);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
  will-change: transform;
}

.note-float.show {
  opacity: 1;
}

.note-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.note-float span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 12px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fffaf2;
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* ===== 旅行：足迹航线图 ===== */
.travel-map {
  position: relative;
  aspect-ratio: 21 / 10;
  border: 1px solid rgba(243, 234, 217, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(rgba(243, 234, 217, 0.07) 1px, transparent 1.4px) 0 0 / 16px 16px,
    radial-gradient(120% 90% at 42% 28%, #1f3025, #0f1812 72%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.travel-map svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tm-grid line {
  stroke: rgba(243, 234, 217, 0.09);
  stroke-width: 1;
}

.tm-grid .tm-special {
  stroke: rgba(224, 104, 74, 0.32);
  stroke-dasharray: 3 6;
}

.tm-grid text {
  fill: rgba(243, 234, 217, 0.34);
  font: 10px "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.08em;
}

.tm-route {
  fill: none;
  stroke: #e0684a;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.8;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.6, 0, 0.2, 1);
}

.travel-map.drawn .tm-route {
  stroke-dashoffset: 0;
}

.tm-pin {
  cursor: pointer;
  outline: none;
}

.tm-pin .tm-hit {
  fill: transparent;
}

.tm-pin .tm-core {
  fill: #f3ead9;
  transition: fill 0.25s ease, r 0.25s ease;
}

.tm-pin .tm-pulse {
  fill: none;
  stroke: #e0684a;
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: tm-pulse 2.6s ease-out infinite;
}

@keyframes tm-pulse {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(3);
    opacity: 0;
  }
}

.tm-pin text {
  fill: rgba(243, 234, 217, 0.88);
  font: 11.5px "LXGW WenKai", "KaiTi", serif;
  paint-order: stroke;
  stroke: #0f1812;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.tm-pin:hover .tm-core,
.tm-pin:focus-visible .tm-core,
.tm-pin.active .tm-core {
  fill: #e0684a;
}

.tm-pin:focus-visible text {
  text-decoration: underline;
}
.tm-pin.dim {
  opacity: 0.22;
  pointer-events: none;
}
.tm-pin.uncertain .tm-core {
  stroke: #e0684a;
  stroke-width: 1.2;
  stroke-dasharray: 2 2;
}


.tm-plane {
  fill: #fffaf2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.travel-map.playing .tm-plane {
  opacity: 1;
}

.tm-legend {
  position: absolute;
  left: 16px;
  top: 12px;
  font: 10.5px/1.4 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.22em;
  color: rgba(243, 234, 217, 0.45);
  pointer-events: none;
}

.tm-card {
  position: absolute;
  z-index: 4;
  width: 230px;
  overflow: hidden;
  border-radius: 12px;
  background: #f3ead9;
  color: #1e1a13;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-100% - 16px)) scale(0.92);
  transform-origin: bottom center;
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.22s;
}

.tm-card.below {
  transform: translate(-50%, 16px) scale(0.92);
  transform-origin: top center;
}

.tm-card.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, calc(-100% - 16px));
}

.tm-card.below.show {
  transform: translate(-50%, 16px);
}

.tm-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tm-cap {
  padding: 10px 12px 12px;
}

.tm-cap strong {
  display: block;
  font-size: 15px;
}

.tm-cap span {
  display: block;
  margin-top: 2px;
  color: #6f665b;
  font-size: 12.5px;
  line-height: 1.6;
}

.tm-thumbs {
  display: flex;
  gap: 5px;
  padding: 0 12px 12px;
}

.tm-thumbs button {
  width: 48px;
  height: 36px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: none;
  cursor: pointer;
}

.tm-thumbs button.on {
  border-color: #b03e24;
}

.tm-thumbs img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

/* 黑胶频谱环 */
.vinyl-viz {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.vinyl-disc .vinyl-button,
.vinyl-disc .vinyl-ring {
  z-index: 1;
}

/* ===== 兴趣记录：错落便当格 + 专属微交互 ===== */
.section-interests .grid-interests {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 18px;
}

.section-interests .post {
  padding: 20px;
}

.section-interests .post-image {
  margin: -20px -20px 16px;
  aspect-ratio: 4 / 3;
}

.section-interests .post p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 14px;
}

.bento-wide {
  grid-column: span 2;
}

.bento-wide .post-image {
  aspect-ratio: 16 / 8;
}

.bento-tall,
.bento-big {
  grid-row: span 2;
}

.bento-big {
  grid-column: span 2;
}

.bento-tall > div:first-child,
.bento-big > div:first-child {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.section-interests .bento-tall .post-image,
.section-interests .bento-big .post-image {
  flex: 1 1 auto;
  min-height: 240px;
  aspect-ratio: auto;
}

.fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* AI 配图标注：卡片右下角小字 + 阅读器图片下方说明 */
.ai-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(8, 14, 12, 0.55);
  color: rgba(255, 250, 242, 0.88);
  font: 10.5px/1.5 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.reader-media-note {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(8, 14, 12, 0.6);
  color: rgba(255, 250, 242, 0.9);
  font: 12px/1.5 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.08em;
}

/* 海报类配图完整显示，不裁切文字 */
.section-interests .post-image.img-contain img {
  object-fit: contain;
  background: var(--paper-deep);
}

/* 阅读器正文与插图 */
.reader-article p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.9;
}

.reader-article figure {
  margin: 18px 0 4px;
}

.reader-article figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.reader-article figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* 豆包手机：Agent 进度卡在 60% */
.fx-agent-ui {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 14px 34px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post:hover .fx-agent-ui {
  opacity: 1;
}

.fx-agent-label {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(8, 14, 12, 0.66);
  color: #fffaf2;
  font: 11.5px/1.5 "Segoe UI", "LXGW WenKai", sans-serif;
  letter-spacing: 0.06em;
}

.fx-agent-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.35);
}

.fx-agent-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #f08a3c;
}

.post:hover .fx-agent-bar i {
  animation: agent-run 1.6s cubic-bezier(0.3, 0.7, 0.3, 1) 0.15s forwards;
}

.fx-agent-ui.stuck .fx-agent-bar {
  animation: agent-stuck 0.45s ease 2;
}

@keyframes agent-run {
  to {
    width: 60%;
  }
}

@keyframes agent-stuck {
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

/* 漫展：集章卡滑出，六格只盖两个章 */
.fx-stamps-ui {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 16px 14px;
  overflow: hidden;
}

.fx-stamp-card {
  display: grid;
  gap: 6px;
  padding: 10px 12px 12px;
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(140%) rotate(4deg);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.post:hover .fx-stamp-card {
  transform: translateY(0) rotate(-3deg);
}

.fx-stamp-card b {
  color: #1e1a13;
  font: 600 11.5px/1.2 "Segoe UI", "LXGW WenKai", sans-serif;
  letter-spacing: 0.12em;
}

.fx-stamp-card span {
  display: grid;
  grid-template-columns: repeat(3, 26px);
  gap: 6px;
}

.fx-stamp-card i {
  width: 26px;
  height: 26px;
  border: 1.5px dashed rgba(30, 26, 19, 0.25);
  border-radius: 6px;
}

.fx-stamp-card i.on {
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 0 5px, #c0392b 5.5px 7.5px, transparent 8px 9px, #c0392b 9.5px 12px, transparent 12.5px);
  transform: scale(1.6);
  opacity: 0;
}

.post:hover .fx-stamp-card i.on {
  animation: stamp-in 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) forwards;
  animation-delay: calc(0.55s + var(--k) * 0.35s);
}

@keyframes stamp-in {
  to {
    transform: scale(1) rotate(-12deg);
    opacity: 0.9;
  }
}

/* 加班：灯一盏盏亮起，画面随之变亮 */
.fx-overtime .post-image img {
  filter: brightness(0.72);
  transition: filter 1.2s ease 0.3s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fx-overtime:hover .post-image img {
  filter: none;
}

.fx-overtime:hover .fx-lamps i {
  background: #fff1cf;
  box-shadow: 0 0 12px 4px rgba(255, 236, 190, 0.6), 0 26px 36px 8px rgba(255, 236, 190, 0.1);
}

/* 咖啡：热气 */
.fx-steam i {
  position: absolute;
  bottom: 18%;
  width: 26px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.75), transparent 68%);
  filter: blur(5px);
  opacity: 0;
}

.post:hover .fx-steam i {
  animation: steam 2.8s ease-in infinite;
  animation-delay: var(--d);
}

@keyframes steam {
  0% {
    opacity: 0;
    transform: translateY(0) scaleX(0.8);
  }
  30% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateY(-150px) scaleX(1.9) skewX(14deg);
  }
}

/* 手绘：光标给线稿上色 */
.fx-paint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fx-paint-reset {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: rgba(30, 26, 19, 0.7);
  color: #fffaf2;
  padding: 4px 11px;
  font: 12px/1.4 "Segoe UI", -apple-system, sans-serif;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fx-paint-reset.show {
  opacity: 1;
}

.fx-paint-hint {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(30, 26, 19, 0.62);
  color: #fffaf2;
  font: 11px/1.4 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.12em;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* 夜骑：路灯依次亮起 */
.fx-night .post-image img {
  filter: brightness(0.42) saturate(0.7);
  transition: filter 1.4s ease 0.25s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fx-night:hover .post-image img {
  filter: none;
}

.fx-lamps {
  display: flex;
  justify-content: space-around;
  padding: 12px 18px 0;
}

.fx-lamps i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 214, 140, 0.18);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  transition-delay: calc(var(--k) * 110ms);
}

.fx-night:hover .fx-lamps i {
  background: #ffd68c;
  box-shadow: 0 0 14px 5px rgba(255, 200, 110, 0.65), 0 30px 40px 10px rgba(255, 200, 110, 0.12);
}

/* 英语：翻面背单词 */
.fx-english .post-image {
  perspective: 900px;
}

.fx-flipper {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fx-english:hover .fx-flipper {
  transform: rotateY(180deg);
}

.fx-flipper > img,
.fx-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.fx-back {
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 18px;
  transform: rotateY(180deg);
  background:
    linear-gradient(transparent 31px, rgba(110, 127, 106, 0.18) 32px) 0 0 / 100% 32px,
    var(--card-solid);
  text-align: center;
}

.fx-word {
  font: 600 clamp(20px, 2vw, 26px) / 1.2 Georgia, "Times New Roman", serif;
  color: var(--ink);
}

.fx-mean {
  color: var(--hl);
  font-size: 15px;
}

.fx-back small {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

/* 智能眼镜：FC 开机画面 */
.fx-start {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: rgba(4, 6, 12, 0.58);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.post:hover .fx-start,
.post:focus-within .fx-start {
  opacity: 1;
  pointer-events: auto;
}

.fx-start b {
  font: 700 clamp(15px, 1.6vw, 20px) / 1 "Courier New", monospace;
  letter-spacing: 0.3em;
  color: #fffaf2;
  text-shadow: 2px 2px 0 #b03e24;
  animation: onair-blink 1s steps(2) infinite;
}

.fx-start button {
  border: 2px solid #fffaf2;
  border-radius: 4px;
  background: #b03e24;
  color: #fffaf2;
  padding: 6px 14px;
  font: 700 12.5px/1.2 "Courier New", "Microsoft YaHei", monospace;
  letter-spacing: 0.06em;
  box-shadow: 3px 3px 0 #1e1a13;
  cursor: pointer;
}

.fx-start button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #1e1a13;
}

/* 录音卡：REC 波形 */
.fx-rec {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 0 12% 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post:hover .fx-rec {
  opacity: 1;
}

.fx-rec i {
  flex: 1;
  max-width: 6px;
  height: 46%;
  border-radius: 3px;
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  transform-origin: bottom;
  transform: scaleY(0.15);
}

.post:hover .fx-rec i {
  animation: rec-wave var(--t) ease-in-out infinite alternate;
}

@keyframes rec-wave {
  to {
    transform: scaleY(var(--h));
  }
}

.fx-rec-dot {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(8, 14, 12, 0.6);
  color: #fffaf2;
  font: 11px/1.4 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.2em;
}

.fx-rec-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e04a3a;
  animation: onair-blink 1s steps(2) infinite;
}

/* 相机：取景框 + 快门闪光 */
.fx-viewfinder::before,
.fx-viewfinder::after,
.fx-viewfinder span::before,
.fx-viewfinder span::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(255, 250, 242, 0.92);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.3s ease, inset 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fx-viewfinder::before {
  left: 22px;
  top: 22px;
  border-width: 2px 0 0 2px;
}

.fx-viewfinder::after {
  right: 22px;
  top: 22px;
  border-width: 2px 2px 0 0;
}

.fx-viewfinder span::before {
  left: 22px;
  bottom: 22px;
  border-width: 0 0 2px 2px;
}

.fx-viewfinder span::after {
  right: 22px;
  bottom: 22px;
  border-width: 0 2px 2px 0;
}

.post:hover .fx-viewfinder::before,
.post:hover .fx-viewfinder::after,
.post:hover .fx-viewfinder span::before,
.post:hover .fx-viewfinder span::after {
  opacity: 1;
}

.fx-flash {
  background: #fff;
  opacity: 0;
}

.fx-flash.go {
  animation: shutter 0.55s ease-out;
}

@keyframes shutter {
  8% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
  }
}

/* 阅读：书签丝带 */
.fx-ribbon {
  position: absolute;
  top: 0;
  right: 26px;
  width: 20px;
  height: 0;
  background: #b03e24;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 9px), 0 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: height 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.post:hover .fx-ribbon {
  height: 74px;
}

/* ===== 学习笔记图谱：可导航 ===== */
.graph-wrap {
  height: 640px;
}

.graph-ui {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.graph-search {
  width: 210px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-solid);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.graph-search:focus {
  border-color: var(--hl);
}

.graph-zoom {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.graph-zoom button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card-solid);
  color: var(--ink);
  font: 15px/1 "Segoe UI", -apple-system, sans-serif;
  cursor: pointer;
}

.graph-zoom button:hover {
  border-color: var(--hl);
  color: var(--hl);
}

.graph-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 310px;
  max-width: calc(100% - 24px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-solid);
  box-shadow: 0 20px 50px var(--shadow-strong);
  transform: translateX(calc(100% + 24px));
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.45s;
}

.graph-panel.open {
  transform: none;
  visibility: visible;
}

.gp-close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}

.gp-kicker {
  font: 11.5px/1.4 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.24em;
  color: var(--hl);
}

.graph-panel h3 {
  margin: 6px 0 4px;
  font-family: "Noto Serif SC", "LXGW WenKai", serif;
  font-size: 24px;
}

.gp-count {
  color: var(--muted);
  font-size: 13px;
}

.gp-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.gp-list button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.gp-list button:hover {
  border-color: var(--hl);
  background: var(--spot);
}

.gp-list small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.gp-empty {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.gp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.gp-links::before {
  content: "相邻节点";
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.gp-links button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 3px 11px;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.gp-links button:hover {
  border-color: var(--hl);
  color: var(--hl);
}

/* ===== 像素猫吉祥物 ===== */
#pixelPet {
  transition: filter 0.3s ease;
}

.mascot-bubble {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 96;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-solid);
  color: var(--ink);
  box-shadow: 0 8px 20px var(--shadow);
  font-size: 12.5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mascot-bubble.show {
  opacity: 1;
}

/* 猫咪说明书：悬停 / 聚焦猫咪时弹出，列出全部玩法与秘籍 */
#pixelPet:focus-visible {
  outline: 2px dashed var(--hl);
  outline-offset: -6px;
  border-radius: 8px;
}

.mascot-card {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 97;
  width: 364px;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-solid);
  color: var(--ink);
  box-shadow: 0 24px 60px -18px var(--shadow), 0 2px 8px var(--shadow);
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  translate: 0 8px;
  transition: opacity 0.22s ease, translate 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.28s;
}

.mascot-card.show {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity 0.22s ease, translate 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

.mascot-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mascot-card header b {
  font-family: "Noto Serif SC", "LXGW WenKai", serif;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.mascot-card .egg-count {
  color: var(--muted);
  font-size: 12px;
}

.mascot-card .egg-count em {
  color: var(--hl);
  font-style: normal;
  font-weight: 700;
}

.mascot-card .egg-bar {
  display: block;
  height: 3px;
  margin: 10px 0 4px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.mascot-card .egg-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), var(--hl));
  transition: width 0.5s ease;
}

.mascot-card h4 {
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.mascot-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mascot-card li {
  display: grid;
  grid-template-columns: 14px auto 1fr;
  align-items: center;
  column-gap: 9px;
  padding: 5px 0;
  border-top: 1px dashed var(--line);
}

.mascot-card li:first-child {
  border-top: 0;
}

.mascot-card .egg-check {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--card-solid);
  font: 700 9px/12px sans-serif;
  font-style: normal;
  text-align: center;
}

.mascot-card li.found .egg-check {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.mascot-card .egg-how {
  font-weight: 600;
  white-space: nowrap;
}

.mascot-card .egg-what {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.mascot-card li.found .egg-what {
  color: var(--ink);
}

.mascot-card kbd {
  display: inline-block;
  min-width: 16px;
  margin-right: 2px;
  padding: 1px 3px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--paper);
  font: 600 10.5px/1.2 "Segoe UI", -apple-system, sans-serif;
  text-align: center;
}

.mascot-card .egg-plus {
  margin: 0 4px 0 2px;
  color: var(--muted);
  font-weight: 400;
}

.mascot-card .egg-foot {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

@media (max-height: 640px) {
  .mascot-card li {
    padding: 3px 0;
  }

  .mascot-card .egg-foot {
    display: none;
  }
}

.mascot-extra {
  position: fixed;
  left: 0;
  bottom: 2px;
  z-index: 95;
  width: 48px;
  height: 72px;
  image-rendering: pixelated;
  pointer-events: none;
}

/* ===== 命令面板 ===== */
.palette-trigger {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 12.5px/1 "Segoe UI", "LXGW WenKai", sans-serif;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.palette-trigger:hover {
  border-color: var(--hl);
}

.palette-trigger kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 10.5px/1 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.site-header:not(.scrolled) .palette-trigger {
  color: var(--white);
  border-color: rgba(255, 250, 242, 0.4);
  background: rgba(255, 250, 242, 0.1);
}

.site-header:not(.scrolled) .palette-trigger kbd {
  border-color: rgba(255, 250, 242, 0.35);
}

.palette {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 13vh;
  background: rgba(12, 10, 8, 0.4);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.palette.open {
  opacity: 1;
  visibility: visible;
}

.palette-box {
  width: min(640px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-solid);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.palette.open .palette-box {
  transform: none;
}

.palette-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.palette-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  outline: none;
}

.palette-list {
  max-height: min(56vh, 460px);
  margin: 0;
  padding: 6px 8px 10px;
  overflow: auto;
  list-style: none;
}

.palette-group {
  padding: 12px 12px 4px;
  font: 11px/1.4 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.palette-item[aria-selected="true"] {
  background: var(--spot);
}

.palette-item[aria-selected="true"] .pi-title {
  color: var(--hl);
}

.pi-icon {
  width: 22px;
  text-align: center;
  opacity: 0.7;
}

.pi-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pi-sub {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.palette-empty {
  padding: 26px 12px;
  color: var(--muted);
  text-align: center;
}

.palette-foot {
  display: flex;
  gap: 16px;
  padding: 9px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.palette-foot kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font: 11px/1.4 "Segoe UI", -apple-system, sans-serif;
}

/* ===== 首屏景深（WebGL） ===== */
.hero-depth {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-depth.ready {
  opacity: 1;
}

.hero-media.depth-on img {
  visibility: hidden;
  animation-play-state: paused;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .section-interests .grid-interests {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-tall {
    grid-row: auto;
  }

  .section-interests .bento-tall .post-image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 960px) {
  .section-projects .grid-projects,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .section-projects .grid-projects .post-featured,
  .work-card:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .work-card:first-child {
    flex-direction: column;
    align-items: stretch;
  }

  .work-card[data-kind="game"] .work-screen {
    flex: none;
    margin: 6px;
  }

  .rhythm-stage {
    aspect-ratio: 4 / 3;
  }

  .reader-body {
    grid-template-columns: 1fr;
  }

  .reader-side {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .graph-wrap {
    height: 480px;
  }

  .graph-search {
    width: 150px;
  }

  .palette-trigger span,
  .palette-trigger kbd {
    display: none;
  }

  .palette-trigger {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .palette-trigger::before {
    content: "⌕";
    font-size: 17px;
  }

  /* 手机头部：导航收成一行可横滑，不再折成四行 */
  .nav-right {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .nav-links {
    flex: 1;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: none;
    white-space: nowrap;
  }

  .daypart-chip {
    display: none;
  }

  .theater-bar {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .theater-actions a,
  .theater-actions button,
  .tag-filter-chip,
  .tag-filter-chip button {
    white-space: nowrap;
  }

  .theater-actions a,
  .theater-actions button {
    padding: 4px 11px;
    font-size: 12.5px;
  }
}

@media (max-width: 640px) {
  .section-interests .grid-interests {
    grid-template-columns: 1fr;
  }

  .bento-wide,
  .bento-big {
    grid-column: auto;
    grid-row: auto;
  }

  .reader-panel {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    max-height: none;
    transform: none;
    border-radius: 0;
  }

  .reader.no-vt .reader-panel {
    animation: none;
  }

  .reader-media {
    height: 42vh;
  }

  .reader-body {
    padding: 20px;
  }

  .tm-card {
    width: 180px;
  }

  .tag-filter-chip {
    bottom: 74px;
    max-width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-pin .tm-pulse,
  .fx-start b,
  .fx-rec i,
  .work-card.is-playing .work-onair i {
    animation: none !important;
  }

  .theater::before,
  .theater::after {
    display: none;
  }
}

/* ==================================================
   质感精修（2026-10-09 排版巡检）
   ================================================== */
/* 断行：标题均衡折行（不再出现「…挂在胸 / 前」），正文避免最后一行只剩一两个字 */
h1,
h2,
h3,
.footer-line,
.reader-title {
  text-wrap: balance;
}

p,
li,
figcaption {
  text-wrap: pretty;
}

/* 日期等宽数字，列表里上下对齐 */
time {
  font-variant-numeric: tabular-nums;
}

/* 黑胶：唱臂（含阴影）伸出唱片约 34px，原 20px 间距会压住歌名 */
.vinyl-player {
  gap: 48px;
}

/* 图谱操作提示：加一层底衬，不和节点文字叠在一起 */
.graph-hint {
  padding: 4px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-solid) 86%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* 夜骑 / 加班的「灯」：未点亮时更淡，不像图片上的灰点 */
.fx-lamps i {
  background: rgba(255, 214, 140, 0.08);
}

/* 触屏没有悬停：不显示灯，也不压暗照片（否则手机上永远是暗图） */
@media (hover: none) {
  .fx-lamps {
    display: none;
  }

  .fx-night .post-image img,
  .fx-overtime .post-image img {
    filter: none;
  }
}

@media (max-width: 600px) {
  /* 首屏内容在手机上会延伸到底部，SCROLL 提示与正文相撞 */
  .hero-scroll {
    display: none;
  }

  /* 英文眉题收紧字距，一行放下，不再把 LUAN 挤到第二行 */
  .hero .eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  /* 返回顶部按钮固定在右下角，给页脚留出位置，不挡「重播开场」 */
  .site-footer {
    padding-bottom: 84px;
  }
}

/* 卡片标题优先在标点、空格处换行（「第一次逛漫展：/ 热闹看过了，打卡就算了」），
   不在词中间断开；一段放不下时 overflow-wrap 兜底照常折行 */
h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 标题里中英混排的词组不拆开（如「Seed 录音卡」「3D 大屏」） */
.nowrap {
  white-space: nowrap;
}

/* ===== 旅行胶片条（可扩展钩子；完整地点映射待 44 张包） ===== */
.travel-filmstrip {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.film-rail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 14px;
}

.film-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.film-chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(243, 234, 217, 0.22);
  border-radius: 999px;
  background: rgba(243, 234, 217, 0.06);
  color: rgba(243, 234, 217, 0.78);
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.film-chip:hover,
.film-chip.on {
  border-color: #e0684a;
  color: #f3ead9;
  background: rgba(224, 104, 74, 0.18);
}

.film-frame.uncertain .film-cap strong::after {
  content: none;
  color: rgba(224, 104, 74, 0.9);
  font-size: 11px;
  font-weight: 400;
}


.film-eyebrow {
  font: 11px/1.4 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e0684a;
}

.film-rail-head p {
  margin: 0;
  color: rgba(243, 234, 217, 0.55);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.film-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 104, 74, 0.55) transparent;
}

.film-frame {
  flex: 0 0 auto;
  width: min(220px, 68vw);
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(243, 234, 217, 0.18);
  border-radius: 10px;
  background: #0c1210;
  color: #f3ead9;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  text-align: left;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease, box-shadow 0.28s ease;
}

.film-frame:hover,
.film-frame:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(224, 104, 74, 0.7);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
  outline: none;
}

.film-sprocket {
  display: block;
  height: 10px;
  background:
    radial-gradient(circle at 10px 50%, #0c1210 3px, transparent 3.5px) 0 0 / 20px 10px,
    linear-gradient(#1a2420, #1a2420);
  border-top: 1px solid rgba(243, 234, 217, 0.08);
  border-bottom: 1px solid rgba(243, 234, 217, 0.08);
}

.film-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #15211a;
}

.film-cap {
  display: grid;
  gap: 2px;
  padding: 10px 12px 12px;
}

.film-cap strong {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.film-cap em {
  font-style: normal;
  color: rgba(243, 234, 217, 0.55);
  font-size: 12px;
}

/* 胶片灯箱 */
.film-lightbox {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 14, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}

.film-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.film-lightbox-card {
  position: relative;
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  border: 1px solid rgba(243, 234, 217, 0.22);
  border-radius: 16px;
  background: #111a16;
  color: #f3ead9;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.film-lightbox.open .film-lightbox-card {
  transform: none;
}

.film-lightbox-card img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #0a100e;
}

.film-lightbox-cap {
  padding: 14px 18px 18px;
}

.film-lightbox-cap strong {
  display: block;
  font-size: 18px;
}

.film-lightbox-cap span {
  display: block;
  margin-top: 4px;
  color: rgba(243, 234, 217, 0.6);
  font-size: 13.5px;
}

.film-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(243, 234, 217, 0.28);
  border-radius: 50%;
  background: rgba(8, 14, 12, 0.55);
  color: #f3ead9;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.film-lightbox-close:hover {
  border-color: #e0684a;
  color: #e0684a;
}

/* ===== 可约交流条 ===== */
.contact-strip {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 56px 24px 28px;
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.contact-copy .rail-label {
  color: var(--hl);
}

.contact-copy h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.06em;
}

.contact-copy p {
  margin: 10px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 15px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-solid);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.contact-chip:hover,
.contact-chip:focus-visible {
  border-color: var(--hl);
  color: var(--hl);
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .travel-map {
    aspect-ratio: 16 / 11;
  }

  .tm-pin text {
    font-size: 10px;
  }

  .travel-filmstrip {
    padding: 0 16px;
    margin-top: 28px;
  }

  .film-rail-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .contact-strip {
    padding: 44px 16px 20px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-chip {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .film-frame,
  .film-lightbox,
  .film-lightbox-card,
  .contact-chip {
    transition: none;
  }

  .film-frame:hover,
  .film-frame:focus-visible {
    transform: none;
  }
}
