/* 恰遇 Typecho — 主样式 */

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

:root {
  --chayu-footer-space: 3.25rem;
  --chayu-player-space: 0px;
  --chayu-content-gutter-x: clamp(1.35rem, 4vw, 2.4rem);
  --chayu-mobile-nav-top: 0.95rem;
  --chayu-mobile-nav-size: 2.5rem;
  --chayu-mobile-nav-gap: 1rem;
  --chayu-mobile-nav-clearance: calc(
    var(--chayu-mobile-nav-top) + var(--chayu-mobile-nav-size) + var(--chayu-mobile-nav-gap)
  );
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-display: 'ZCOOL XiaoWei', 'Noto Serif SC', 'Songti SC', serif;
  --chayu-hero-title-size: 2.35rem;
  --chayu-hero-title-lh: 1.35;
  --chayu-hero-sub-size: 0.875rem;
  --chayu-hero-sub-lh: 1.7;
  --chayu-hero-copy-gap: 1.25rem;
  --chayu-progress-left: 0.4rem;
  --chayu-progress-clearance: 1.55rem;
  --ink: rgba(20, 24, 28, 0.92);
  --muted: rgba(20, 24, 28, 0.55);
  --line: rgba(20, 24, 28, 0.12);
  --island: rgba(255, 255, 255, 0.72);
  --island-border: rgba(255, 255, 255, 0.35);
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  background: #efefef;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow: hidden;
}

a:focus,
a:focus-visible,
button:focus,
button:focus-visible {
  outline: none;
}

button::-moz-focus-inner {
  border: 0;
}

* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

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

img {
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— 页面壳 —— */
.page {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: var(--ink);
}

.page.has-bg {
  --ink: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.18);
  --island: rgba(12, 14, 18, 0.42);
  --island-border: rgba(255, 255, 255, 0.14);
  background-color: #000;
}

.page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateZ(0) scale(1.24);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.page-bg-media {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(12px) saturate(1.05);
  transform: translate3d(-4.5%, -2.8%, 0) translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.page.has-bg.bg-ready .page-bg-media {
  animation: page-bg-drift 34s linear infinite alternate;
}

.page-bg.is-in {
  opacity: 1;
  transform: translateZ(0) scale(1.12);
}

.page-veil.is-in {
  opacity: 1;
}

/* 详情页封面模糊更深（对齐 DetailPage） */
.page--detail.has-bg .page-bg-media,
.page--guestbook.has-bg .page-bg-media,
.page--archives.has-bg .page-bg-media {
  filter: blur(18px) saturate(1.05);
}

@keyframes page-bg-drift {
  from {
    transform: translate3d(-5.5%, -3.4%, 0) translateZ(0);
  }
  to {
    transform: translate3d(5.5%, 3.4%, 0) translateZ(0);
  }
}

.page-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(8, 10, 12, 0.48) 0%,
    rgba(8, 10, 12, 0.2) 26%,
    rgba(8, 10, 12, 0.1) 46%,
    rgba(8, 10, 12, 0.28) 70%,
    rgba(8, 10, 12, 0.58) 100%
  );
  opacity: 0;
  transition: opacity 0.85s ease;
}

.page.has-bg.bg-ready .page-veil.is-in {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .page-bg-media {
    animation: none !important;
    transform: translateZ(0) !important;
    will-change: auto;
  }

  .page-bg,
  .page-bg.is-in,
  .page.has-bg.bg-ready .page-bg {
    transform: translateZ(0) scale(1.12) !important;
    transition: none !important;
  }
}

@keyframes page-wait-drift {
  0% {
    transform: translate3d(-2%, 1%, 0) scale(1.05);
    opacity: 0.35;
  }
  50% {
    transform: translate3d(2%, -1.5%, 0) scale(1.12);
    opacity: 0.55;
  }
  100% {
    transform: translate3d(-2%, 1%, 0) scale(1.05);
    opacity: 0.35;
  }
}

.page.is-awaiting-cover::before {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 36% at 30% 40%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(38% 32% at 72% 58%, rgba(180, 200, 220, 0.14), transparent 72%),
    radial-gradient(55% 45% at 50% 50%, rgba(255, 255, 255, 0.05), transparent 75%);
  animation: page-wait-drift 3.6s ease-in-out infinite;
}

.page.has-bg.is-awaiting-cover::before {
  display: none;
}

.page.is-motion-enter .deck-pane,
.page.is-motion-enter .detail-stage,
.page.is-motion-enter .home-deck,
.page.is-motion-arriving .deck-pane,
.page.is-motion-arriving .detail-stage,
.page.is-motion-arriving .home-deck,
.page.is-motion-chrome-leave .deck-pane,
.page.is-motion-chrome-leave .detail-stage,
.page.is-motion-chrome-leave .home-deck,
.page.is-motion-leave .deck-pane,
.page.is-motion-leave .detail-stage,
.page.is-motion-leave .home-deck {
  pointer-events: none;
}

.chrome-nav.is-motion-enter,
.chrome-nav.is-motion-arriving,
.chrome-nav.is-motion-leave,
.site-player.is-motion-enter,
.site-player.is-motion-leave,
.site-player.is-motion-arriving {
  pointer-events: none;
}

.page.is-motion-enter .page-hero {
  transform: translate3d(var(--motion-dx, 0px), var(--motion-dy, 0px), 0);
}

.page.is-motion-enter .deck-pane,
.page.is-motion-enter .detail-stage {
  transform: translate3d(calc(100% + 3rem), 0, 0);
  opacity: 0;
  will-change: transform, opacity;
}

.page.is-motion-enter .page-bg {
  transform: translateZ(0) scale(1.24);
}

.page.is-motion-enter .page-bg.is-in {
  transform: translateZ(0) scale(1.16);
}

.page.is-motion-arriving .page-hero {
  transform: none;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.page.is-motion-arriving .deck-pane,
.page.is-motion-arriving .detail-stage {
  transform: none;
  opacity: 1;
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.4s,
    opacity 0.4s ease 0.4s;
}

.page.is-motion-arriving .page-bg,
.page.is-motion-arriving .page-bg.is-in {
  transform: translateZ(0) scale(1.12);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.page.is-motion-arriving .page-hero__subtitle,
.page.is-motion-arriving .page-hero__meta,
.page.is-motion-arriving .page-hero__toolbar {
  opacity: 1;
  transition: opacity 0.5s ease 0.08s;
}

.page.page--has-board.is-motion-enter .home-deck,
.page.page--has-board.is-motion-arriving .home-deck,
.page.page--has-board.is-motion-chrome-leave .home-deck,
.page.page--has-board.is-motion-leave .home-deck {
  transform: none;
  opacity: 1;
  will-change: auto;
  transition: none;
}

.page.is-motion-enter .home-board {
  transform: translate3d(calc(100% + 3rem), 0, 0);
  opacity: 0;
  will-change: transform, opacity;
}

.page.is-motion-arriving .home-board {
  transform: none;
  opacity: 1;
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.4s,
    opacity 0.4s ease 0.4s;
}

.page.is-motion-chrome-leave .deck-pane,
.page.is-motion-chrome-leave .detail-stage {
  transform: translate3d(calc(100% + 3rem), 0, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 1, 1),
    opacity 0.34s ease;
  will-change: transform, opacity;
}

.page.page--has-board.is-motion-chrome-leave .home-board {
  transform: translate3d(calc(100% + 3rem), 0, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 1, 1),
    opacity 0.34s ease;
}

.page.is-motion-leave .deck-pane,
.page.is-motion-leave .detail-stage,
.page.page--has-board.is-motion-leave .home-board {
  transform: translate3d(calc(100% + 3rem), 0, 0);
  opacity: 0;
  transition: none;
}

.page.is-motion-leave .page-hero {
  opacity: 0;
  transform: translate3d(0, 8%, 0);
  transition:
    opacity 0.42s ease 0.04s,
    transform 0.52s cubic-bezier(0.4, 0, 1, 1) 0.04s;
}

.page.is-motion-leave .page-hero__subtitle,
.page.is-motion-leave .page-hero__meta,
.page.is-motion-leave .page-hero__toolbar {
  opacity: 0;
  transition: opacity 0.3s ease 0.08s;
}

.page.is-motion-leave .page-bg,
.page.is-motion-leave .page-bg.is-in {
  opacity: 0;
  transform: translateZ(0) scale(1.2);
  transition:
    opacity 0.48s ease 0.14s,
    transform 0.55s cubic-bezier(0.4, 0, 1, 1) 0.14s;
}

.page.is-motion-leave .page-veil,
.page.is-motion-leave .page-veil.is-in {
  opacity: 0;
  transition: opacity 0.4s ease 0.18s;
}

.chrome-nav.is-motion-enter .chrome-nav__btn {
  transform: translate3d(-3.25rem, 0, 0) scale(0.92);
  opacity: 0;
  animation: none !important;
  transition: none;
}

.chrome-nav.is-motion-leave .chrome-nav__btn,
.chrome-nav.is-motion-arriving .chrome-nav__btn {
  animation: none !important;
}

.chrome-nav.is-motion-arriving .chrome-nav__btn {
  transform: none;
  opacity: 1;
  transition:
    opacity 0.42s ease,
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.chrome-nav.is-motion-arriving .chrome-nav__btn--home {
  transition-delay: 0.04s;
}

.chrome-nav.is-motion-arriving .chrome-nav__btn--back {
  transition-delay: 0.1s;
}

.chrome-nav.is-motion-arriving .chrome-nav__btn--fs {
  transition-delay: 0.16s;
}

.chrome-nav.is-motion-leave .chrome-nav__btn {
  transform: translate3d(100vw, 0, 0) scale(0.9);
  opacity: 0;
  transition:
    opacity 0.28s ease 0.06s,
    transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}

.chrome-nav.is-motion-leave .chrome-nav__btn--home {
  transition-delay: 0.03s, 0.03s;
}

.chrome-nav.is-motion-leave .chrome-nav__btn--back {
  transition-delay: 0.07s, 0.07s;
}

.chrome-nav.is-motion-leave .chrome-nav__btn--fs {
  transition-delay: 0.11s, 0.11s;
}

.page.is-motion-leave .page-hero__toolbar,
.page.is-motion-chrome-leave .page-hero__toolbar {
  opacity: 0 !important;
  transform: translate3d(-1.25rem, 0, 0) !important;
  pointer-events: none !important;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease !important;
}

.site-player.is-motion-enter .site-player__toggle {
  transform: translate3d(-3.25rem, 0, 0) scale(0.92);
  opacity: 0;
  animation: none !important;
  transition: none;
}

.site-player.is-motion-arriving .site-player__toggle {
  transform: none;
  opacity: 1;
  transition:
    opacity 0.42s ease,
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.08s;
}

.site-player.is-motion-leave .site-player__toggle {
  transform: translate3d(100vw, 0, 0) scale(0.9);
  opacity: 0;
  transition:
    opacity 0.28s ease 0.06s,
    transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}

.route-veil {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.route-veil.is-solid,
html.chayu-veil-pending .route-veil {
  background: #efefef;
}

.route-veil.is-on,
html.chayu-veil-pending .route-veil {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 720px) {
  .page.is-motion-enter .deck-pane,
  .page.is-motion-enter .detail-stage,
  .page.is-motion-leave .deck-pane,
  .page.is-motion-leave .detail-stage {
    transform: translate3d(4%, 0.5rem, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page.is-awaiting-cover::before {
    animation: none !important;
  }

  .page.is-motion-enter .page-hero,
  .page.is-motion-enter .deck-pane,
  .page.is-motion-enter .detail-stage,
  .page.is-motion-enter .home-board,
  .page.is-motion-arriving .page-hero,
  .page.is-motion-arriving .deck-pane,
  .page.is-motion-arriving .detail-stage,
  .page.is-motion-arriving .home-board,
  .page.is-motion-leave .page-hero,
  .page.is-motion-leave .deck-pane,
  .page.is-motion-leave .detail-stage,
  .page.is-motion-leave .home-board,
  .chrome-nav.is-motion-enter .chrome-nav__btn,
  .chrome-nav.is-motion-arriving .chrome-nav__btn,
  .chrome-nav.is-motion-leave .chrome-nav__btn {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  /* 对齐恰遇 Deck：左栏按比例，不再锁死窄列 */
  grid-template-columns: minmax(14rem, 0.92fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: stretch;
  width: 100%;
  max-width: 92rem;
  margin: 0 auto;
  height: 100%;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    calc(var(--chayu-footer-space) + var(--chayu-player-space) + 0.75rem)
    max(1.25rem, env(safe-area-inset-left));
  min-height: 0;
  box-sizing: border-box;
}

/* 详情 / 列表略偏右岛（对齐 DetailPage） */
.page--detail .page-shell,
.page--page .page-shell,
.page--list .page-shell,
.page--guestbook .page-shell,
.page--archives .page-shell,
.page--404 .page-shell {
  grid-template-columns: minmax(13rem, 0.88fr) minmax(0, 1.65fr);
  gap: clamp(1.75rem, 4vw, 4rem);
}

@media (max-width: 1100px) {
  .page-shell {
    grid-template-columns: minmax(12rem, 0.85fr) minmax(0, 1.5fr);
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
  }

  .page--detail .page-shell,
  .page--page .page-shell,
  .page--list .page-shell,
  .page--guestbook .page-shell,
  .page--archives .page-shell,
  .page--404 .page-shell {
    grid-template-columns: minmax(11rem, 0.8fr) minmax(0, 1.55fr);
    gap: clamp(1.35rem, 3vw, 2.5rem);
  }
}

/* 氛围底（对齐 page-atmosphere.css） */
.page.page--no-cover:not(.has-bg) {
  --atm-base: #7a8fa3;
  --atm-g1: #c5d4e2;
  --atm-g2: #8fa5b8;
  --atm-g3: #5e7388;
  --atm-angle: 158deg;
  --atm-hi1: rgba(255, 255, 255, 0.42);
  --atm-hi1-pos: 12% 8%;
  --atm-hi2: rgba(220, 230, 240, 0.45);
  --atm-hi2-pos: 92% 18%;
  --atm-lo: rgba(50, 68, 88, 0.3);
  --atm-lo-pos: 50% 100%;
  --atm-pattern-opacity: 0.08;
  background-color: var(--atm-base);
  background-image:
    radial-gradient(ellipse 90% 70% at var(--atm-hi1-pos), var(--atm-hi1), transparent 52%),
    radial-gradient(ellipse 70% 55% at var(--atm-hi2-pos), var(--atm-hi2), transparent 48%),
    radial-gradient(ellipse 80% 60% at var(--atm-lo-pos), var(--atm-lo), transparent 55%),
    linear-gradient(var(--atm-angle), var(--atm-g1) 0%, var(--atm-g2) 42%, var(--atm-g3) 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

.page.page--no-cover:not(.has-bg)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--atm-pattern-opacity);
  background: repeating-linear-gradient(
    -22deg,
    transparent 0,
    transparent 11px,
    rgba(30, 38, 46, 0.55) 11px,
    rgba(30, 38, 46, 0.55) 12px
  );
}

.page.page--no-cover:not(.has-bg).page--atm-0 {
  --atm-base: #6f879c;
  --atm-g1: #c8d8e8;
  --atm-g2: #8eabc2;
  --atm-g3: #4f6a82;
}

.page.page--no-cover:not(.has-bg).page--atm-1 {
  --atm-base: #6e9188;
  --atm-g1: #cfe2dc;
  --atm-g2: #8fb3a8;
  --atm-g3: #4d7168;
  --atm-hi2: rgba(190, 230, 215, 0.4);
  --atm-lo: rgba(35, 70, 60, 0.28);
}

.page.page--no-cover:not(.has-bg).page--atm-2 {
  --atm-base: #687484;
  --atm-g1: #c0cad6;
  --atm-g2: #8793a2;
  --atm-g3: #4a5564;
}

.page.page--no-cover:not(.has-bg).page--atm-3 {
  --atm-base: #8a8278;
  --atm-g1: #ddd4c8;
  --atm-g2: #b0a696;
  --atm-g3: #6e6558;
  --atm-hi1: rgba(255, 250, 242, 0.45);
  --atm-hi2: rgba(230, 215, 195, 0.4);
  --atm-lo: rgba(70, 55, 40, 0.28);
}

.page.page--no-cover:not(.has-bg).page--atm-4 {
  --atm-base: #5a738c;
  --atm-g1: #b4cbe0;
  --atm-g2: #7a97b0;
  --atm-g3: #3a536c;
  --atm-hi2: rgba(180, 210, 230, 0.45);
}

.page.page--no-cover:not(.has-bg).page--atm-5 {
  --atm-base: #78788a;
  --atm-g1: #d0d0dc;
  --atm-g2: #9c9cac;
  --atm-g3: #565668;
  --atm-hi2: rgba(210, 205, 230, 0.35);
  --atm-lo: rgba(40, 38, 58, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .page.page--no-cover:not(.has-bg)::before {
    opacity: 0.04;
  }
}

/* 竖排标题（桌面） */
@media (min-width: 721px) {
  .page-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: clamp(0.75rem, 2vh, 1.75rem) 0.35rem clamp(0.75rem, 2vh, 1.75rem) 0;
  }

  .page-hero__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-hero__bar {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
  }

  .page-hero__toolbar {
    flex: 0 0 auto;
    align-self: center;
  }

  .page-hero__copy,
  .page-hero__text-pair {
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: var(--chayu-hero-copy-gap);
  }

  .page-hero__title-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-hero__logo {
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
    margin-bottom: 0.85rem;
  }

  .page-hero__title {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-family: var(--font-display);
    font-size: var(--chayu-hero-title-size);
    font-weight: 400;
    line-height: var(--chayu-hero-title-lh);
    letter-spacing: 0.12em;
    margin: 0;
    max-height: min(62vh, 22rem);
    overflow: hidden;
  }

  .page-hero__subtitle {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: var(--chayu-hero-sub-size);
    line-height: var(--chayu-hero-sub-lh);
    letter-spacing: 0.18em;
    color: var(--muted);
    margin: 0;
    max-height: min(50vh, 18rem);
    overflow: hidden;
  }
}

.page-hero__meta {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
}

.page-hero__meta-sep {
  margin: 0 0.35rem;
}

.cover-peek {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
}

/* —— 首页 deck（无浮岛） —— */
.home-deck {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  padding: 0.35rem 0.85rem 1rem var(--chayu-progress-clearance, 1.45rem);
  box-sizing: border-box;
}

/* —— 列表 deck-pane（无浮岛，行列表铺在背景上） —— */
.deck-pane {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(0.35rem, 1.5vh, 1rem) 0;
  contain: layout;
  overflow: hidden;
}

.deck {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  align-items: stretch;
  padding: 0.9rem 1.05rem 1.35rem var(--chayu-progress-clearance, 1.45rem);
  box-sizing: border-box;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 1.35rem,
    #000 calc(100% - 1.35rem),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 1.35rem,
    #000 calc(100% - 1.35rem),
    transparent 100%
  );
}

.deck::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.deck--list {
  justify-content: safe center;
  width: 100%;
  margin: 0 auto;
  padding: 0.35rem 0.65rem 1.15rem var(--chayu-progress-clearance, 1.45rem);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 1rem,
    #000 calc(100% - 1rem),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 1rem,
    #000 calc(100% - 1rem),
    transparent 100%
  );
}

.deck--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-mask-image: none;
  mask-image: none;
}

.deck__empty {
  margin: 0;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.page.has-bg .deck__empty {
  color: rgba(255, 255, 255, 0.72);
}

.deck-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(19.5rem, 100%), 1fr));
  gap: 0.4rem 0.75rem;
  width: 100%;
  flex: 0 0 auto;
  align-self: stretch;
  align-items: stretch;
}

.deck-list__item {
  min-width: 0;
  display: flex;
}

.deck-list__row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 1.5rem;
  gap: 1rem 1.15rem;
  align-items: stretch;
  flex: 1 1 auto;
  width: 100%;
  min-height: 5.35rem;
  margin: 0;
  padding: 1.15rem 0.65rem;
  border: none;
  border-radius: 0.95rem;
  text-decoration: none;
  text-align: left;
  color: inherit;
  background: transparent;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

.page:not(.has-bg) .deck-list__row {
  color: #1a1a1a;
}

.deck-list__row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.page:not(.has-bg) .deck-list__row:hover {
  background: rgba(20, 24, 28, 0.035);
}

.deck-list__cover {
  display: block;
  width: 4.5rem;
  min-height: 4.25rem;
  align-self: stretch;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.page:not(.has-bg) .deck-list__cover {
  background-color: rgba(20, 24, 28, 0.06);
}

.deck-list__cover.has-image {
  background-color: #d0d0d0;
}

.deck-list__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.1rem 0;
}

.deck-list__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.deck-list__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: clamp(0.8rem, 0.95vw, 0.88rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.58);
}

.page:not(.has-bg) .deck-list__desc {
  color: rgba(20, 24, 28, 0.46);
}

.deck-list__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

.page:not(.has-bg) .deck-list__meta {
  color: rgba(20, 24, 28, 0.38);
}

.deck-list__chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.42;
  align-self: center;
}

.deck-list__row:hover .deck-list__chev {
  opacity: 0.72;
}

.list-pager {
  margin-top: 1.1rem;
  padding-bottom: 0.35rem;
  flex: 0 0 auto;
}

.list-pager__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.list-pager__inner a,
.list-pager__inner span {
  display: inline-flex;
  min-width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: inherit;
  text-decoration: none;
}

.list-pager__inner .is-current {
  background: rgba(255, 255, 255, 0.18);
  border-color: transparent;
}

.page:not(.has-bg) .list-pager__inner .is-current {
  background: rgba(20, 24, 28, 0.88);
  color: #fff;
}

/* —— 详情浮岛：不透明浅色卡（非毛玻璃） —— */
.detail-stage {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  padding: clamp(0.25rem, 1.2vh, 0.85rem) 0;
  overflow: visible;
  box-sizing: border-box;
}

.detail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 3.75ex;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.72), transparent 58%),
    linear-gradient(165deg, #f5f5f5 0%, #ebebeb 100%);
  color: #1a1a1a;
  --ink: #1a1a1a;
  --muted: #6a6a6a;
  --line: rgba(0, 0, 0, 0.1);
  /* 仅垂直扩散，避免对角偏移在大圆角上合成钝角暗块 */
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.16);
}

.page.has-bg .detail-card {
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.88), transparent 58%),
    linear-gradient(165deg, rgba(250, 250, 250, 0.96) 0%, rgba(236, 236, 236, 0.94) 100%);
}

.detail-card__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}

.detail-card__scroll::-webkit-scrollbar {
  display: none;
}

.detail-card__body {
  padding: 2.85rem var(--chayu-content-gutter-x, clamp(1.35rem, 4vw, 2.4rem)) 3.35rem;
  box-sizing: border-box;
}

.archive-years {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

/* 首页 board */
.home-board {
  --hb-ink: rgba(20, 24, 28, 0.9);
  --hb-muted: rgba(20, 24, 28, 0.48);
  --hb-faint: rgba(20, 24, 28, 0.24);
  --hb-line: rgba(20, 24, 28, 0.1);
  --hb-hover: rgba(20, 24, 28, 0.035);
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: var(--hb-ink);
}

.page.has-bg .home-board {
  --hb-ink: rgba(255, 255, 255, 0.92);
  --hb-muted: rgba(255, 255, 255, 0.52);
  --hb-faint: rgba(255, 255, 255, 0.28);
  --hb-line: rgba(255, 255, 255, 0.14);
  --hb-hover: rgba(255, 255, 255, 0.06);
}

.home-board__switch {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1.85rem;
  flex: 0 0 auto;
  padding: 0.2rem 0.2rem 0.7rem;
  border-bottom: 1px solid var(--hb-line);
}

.home-board__indicator {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--hb-ink);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.home-board__tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0;
  min-width: 5.4rem;
  padding: 0.45rem 0.95rem 0.55rem;
  border: none;
  background: transparent;
  color: var(--hb-faint);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: color 0.28s ease;
}

.home-board__tab.is-active,
.home-board__tab:hover {
  color: var(--hb-ink);
}

.home-board__tab-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.home-board__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.home-board__pane {
  height: 100%;
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  transition: opacity 0.28s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(12px);
}

.home-board__pane.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  transform: none;
  height: 100%;
}

.home-board__pane[hidden] {
  display: none !important;
}

/* 栏目列表：默认垂直居中（内容过多时再顶部滚动） */
.home-board__pane--sections {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.home-board__nav {
  list-style: none;
  margin: 0;
  padding: 0 0.15rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 36rem;
  width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}

.home-board__nav-row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) 1.4rem;
  gap: 0.65rem;
  align-items: center;
  padding: 0.85rem 0.55rem;
  border-radius: 0.65rem;
  transition: background 0.2s ease;
}

.home-board__nav-row:hover {
  background: var(--hb-hover);
}

.home-board__nav-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--hb-faint);
  letter-spacing: 0.06em;
}

.home-board__nav-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.home-board__nav-desc {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.82rem;
  color: var(--hb-muted);
  line-height: 1.55;
}

.home-board__nav-chev svg {
  width: 1.05rem;
  height: 1.05rem;
  opacity: 0.45;
}

.home-board__empty {
  margin: 1.5rem 0.4rem;
  color: var(--hb-muted);
  letter-spacing: 0.12em;
}

.home-board__empty--soft {
  margin: 0.35rem 0 0;
}

/* —— 近况：与栏目同为垂直居中，条数按高度裁切 —— */
.home-board__pane--recent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  overflow: hidden !important;
  box-sizing: border-box;
  padding: 0 0.45rem 0.35rem;
}

.recent-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  max-width: 36rem;
  width: 100%;
  min-height: 0;
}

.recent-feed__item[hidden] {
  display: none !important;
}

.recent-feed .recent-piece {
  flex: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 1rem 1.2rem 1.15rem;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 0.85rem;
  color: inherit;
  transition: background 0.2s ease;
}

.recent-feed .recent-piece:hover {
  background: var(--hb-hover);
}

.recent-piece__label {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--hb-faint);
}

.recent-piece__date {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--hb-faint);
  font-variant-numeric: tabular-nums;
}

.recent-piece__title {
  margin: 0;
  flex: 0 0 auto;
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.recent-piece__title a {
  color: var(--hb-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.recent-piece__title a:hover {
  border-bottom-color: currentColor;
}

.recent-piece__prose {
  flex: 0 0 auto;
  min-height: 0;
  max-height: 3.15em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 52%, transparent 100%);
}

.recent-piece__prose p,
.recent-piece__prose span {
  display: block;
  margin: 0;
  max-width: 32em;
  font-size: clamp(0.8rem, 0.95vw, 0.88rem);
  line-height: 1.75;
  letter-spacing: 0.06em;
  color: var(--hb-muted);
}

.recent-piece--story {
  gap: 0.35rem;
}

.recent-piece__stamp {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  margin: 0.1rem 0 0.15rem;
  font-family: var(--font-mono);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--hb-ink);
}

.recent-piece__stamp-day {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  font-size: clamp(2.6rem, 4.6vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 1;
}

.recent-piece__stamp-num {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.recent-piece__stamp-rest {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  line-height: 1;
  padding-bottom: 0;
}

.recent-piece__stamp-month,
.recent-piece__stamp-year {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  line-height: 1;
}

.recent-piece__stamp-month {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.06em;
  color: var(--hb-muted);
}

.recent-piece__stamp-year {
  font-size: clamp(0.78rem, 1.05vw, 0.9rem);
  letter-spacing: 0.08em;
  color: var(--hb-faint);
}

.recent-piece__stamp-unit {
  font-family: inherit;
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--hb-faint);
  transform: translateY(-0.08em);
}

.recent-piece__stamp-month .recent-piece__stamp-unit,
.recent-piece__stamp-year .recent-piece__stamp-unit {
  font-size: 0.72em;
  transform: none;
}

.recent-piece__title--story {
  font-family: inherit;
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.45;
}


.archive-years__item a {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.08em;
}

.archive-years__count {
  font-family: var(--font-mono);
  opacity: 0.55;
}

/* 正文 */
.prose {
  font-size: 1.02rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose img {
  border-radius: 0.55rem;
  cursor: zoom-in;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}

.detail-card .prose {
  color: #1a1a1a;
}

.detail-card .prose a {
  color: #1a1a1a;
}

.detail-tags {
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.detail-tags a {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #3a3a3a;
  background: rgba(0, 0, 0, 0.05);
}

.detail-brand {
  margin: 2.5rem 0 0.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: rgba(0, 0, 0, 0.42);
}

.detail-brand a {
  color: inherit;
  text-decoration: none;
}

.detail-comments {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* 评论（浮岛内浅色体系，对齐 Guestbook 气泡/表单） */
.chayu-comments__heading {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #1a1a1a;
}

.comment-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.comment-list .comment-list {
  margin: 0.85rem 0 0 1rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.comment-body {
  padding: 0.85rem 0;
  color: #1a1a1a;
}

.comment-meta-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.3rem;
}

.comment-author,
.comment-author a {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  text-decoration: none;
}

.comment-meta,
.comment-meta a,
.comment-meta time {
  margin: 0;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: #6a6a6a;
  text-decoration: none;
}

.comment-content {
  color: #1a1a1a;
  font-size: 0.95rem;
  line-height: 1.7;
}

.comment-content p {
  margin: 0.35rem 0 0;
}

.comment-reply {
  margin-top: 0.45rem;
}

.comment-reply a,
.cancel-comment-reply a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #5a5a5a;
  text-decoration: none;
}

.comment-reply a:hover,
.cancel-comment-reply a:hover {
  color: #1a1a1a;
}

.chayu-comment-form__login,
.chayu-comment-form__login a {
  color: #3a3a3a;
}

.chayu-comment-form__login a {
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.chayu-comment-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.chayu-comment-form label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: #5a5a5a;
}

.chayu-comment-form .text,
.chayu-comment-form .textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 0.75rem;
  background: #fff;
  color: #1a1a1a;
  -webkit-text-fill-color: #1a1a1a;
  color-scheme: light;
  caret-color: #1a1a1a;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  outline: none;
}

.chayu-comment-form .text::placeholder,
.chayu-comment-form .textarea::placeholder {
  color: #8a8a8a;
  -webkit-text-fill-color: #8a8a8a;
  opacity: 1;
}

.chayu-comment-form .text:focus,
.chayu-comment-form .textarea:focus {
  border-color: #1a1a1a;
}

.chayu-comment-form .text:-webkit-autofill,
.chayu-comment-form .textarea:-webkit-autofill {
  -webkit-text-fill-color: #1a1a1a;
  box-shadow: 0 0 0 1000px #fff inset;
}

.chayu-comment-form .textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.chayu-comment-form__submit {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  background: #1a1a1a;
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.chayu-comment-form__submit:hover {
  background: #000;
  transform: translateY(-1px);
}

.page.has-bg .detail-card .chayu-comment-form__submit {
  background: #1a1a1a;
  color: #fff;
}

/* chrome 导航：三钮 + 下方文案（序幕 / 归途 / 沉浸） */
.chrome-nav {
  position: fixed;
  top: max(1.15rem, env(safe-area-inset-top));
  left: max(1.15rem, env(safe-area-inset-left));
  z-index: 40;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 2.75rem;
  column-gap: 1rem;
  align-items: start;
  pointer-events: none;
}

.chrome-nav__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  width: 2.75rem;
}

.chrome-nav__caption {
  pointer-events: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.2rem;
  padding: 0.2rem calc(0.42rem + 0.08em) 0.2rem 0.42rem;
  border-radius: 999px;
  font-size: 0.625rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  border: 1px solid transparent;
  transform: translate3d(3.25rem, 0, 0) scale(0.92);
  opacity: 0;
  transition:
    opacity 0.4s ease,
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.chrome-nav__caption.is-ready {
  transform: none;
  opacity: 1;
}

.chrome-nav__caption.is-leaving,
.chrome-nav.is-caption-leaving .chrome-nav__caption {
  transform: translate3d(-3.25rem, 0, 0) scale(0.92);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.chrome-nav__caption.is-active.is-ready {
  background: rgba(8, 10, 12, 0.34);
  border-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chrome-nav__caption.is-muted {
  background: rgba(8, 10, 12, 0.18);
  border-color: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: none;
}

.chrome-nav__btn {
  pointer-events: auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  transform-origin: center center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
  animation: chrome-nav-breathe 3.2s ease-in-out infinite;
}

.chrome-nav__icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.chrome-nav__btn:hover:not(.is-disabled):not(:disabled) {
  background: #000;
  transform: scale(1.07);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.28);
  animation: none;
}

.chrome-nav__btn:active:not(.is-disabled):not(:disabled) {
  transform: scale(0.95);
  animation: none;
}

.chrome-nav__btn.is-disabled,
.chrome-nav__btn:disabled {
  background: rgba(17, 17, 17, 0.38);
  color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: default;
  animation: none;
  pointer-events: none;
  transform: none;
}

@keyframes chrome-nav-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 2px 12px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(255, 255, 255, 0.12),
      0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    transform: scale(1.045);
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 0 14px 1px rgba(255, 255, 255, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chrome-nav__btn {
    animation: none;
  }

  .chrome-nav__caption,
  .chrome-nav__caption.is-ready {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

/* 页脚：居中；大屏单行 */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding:
    0.7rem
    max(var(--chayu-content-gutter-x, 1rem), env(safe-area-inset-right, 0px))
    max(0.9rem, env(safe-area-inset-bottom, 0px))
    max(var(--chayu-content-gutter-x, 1rem), env(safe-area-inset-left, 0px));
  background: none;
  pointer-events: none;
}

.site-footer__inner {
  pointer-events: auto;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  max-width: calc(100% - 1rem);
  white-space: nowrap;
}

.site-footer__copy,
.site-footer__link,
.site-footer__beian {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.55),
    0 0 10px rgba(0, 0, 0, 0.4),
    0 2px 14px rgba(0, 0, 0, 0.35);
}

.site-footer__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.site-footer__mark {
  display: block;
  flex-shrink: 0;
  height: var(--chayu-brand-mark-height-inline, 1.05rem);
  width: auto;
  object-fit: contain;
}

.site-footer__host {
  letter-spacing: 0.08em;
}

.site-footer__sep {
  margin: 0 0.1rem;
  opacity: 0.5;
}

.site-footer__link,
.site-footer__beian {
  text-decoration: none;
  flex: 0 0 auto;
  transition: color 0.2s ease;
}

.site-footer__link:hover,
.site-footer__beian:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .site-footer {
    justify-content: flex-start;
  }

  .site-footer__inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
    max-width: none;
  }
}

/* 播放器 */
.site-player {
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  z-index: 35;
}

.site-player__toggle {
  border: none;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: rgba(12, 14, 18, 0.82);
  color: #fff;
  letter-spacing: 0.16em;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.site-player__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.55rem);
  width: min(22rem, calc(100vw - 1.7rem));
  padding: 0.55rem;
  border-radius: 0.85rem;
  background: rgba(12, 14, 18, 0.9);
  backdrop-filter: blur(12px);
}

.site-player__panel iframe {
  width: 100%;
  border: 0;
  border-radius: 0.55rem;
  min-height: 10rem;
}

/* 欢迎弹窗 */
.welcome-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(28rem, calc(100vw - 2rem));
}

.welcome-modal::backdrop {
  background: rgba(8, 10, 14, 0.48);
  backdrop-filter: blur(6px);
}

.welcome-modal__card {
  margin: 0;
  padding: 1.4rem 1.35rem 1.2rem;
  border-radius: 1rem;
  background: rgba(248, 248, 248, 0.94);
  color: #16181c;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.welcome-modal__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.welcome-modal__body {
  margin: 0 0 1.15rem;
  line-height: 1.75;
  white-space: pre-wrap;
  color: rgba(22, 24, 28, 0.78);
}

.welcome-modal__ok {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  background: #16181c;
  color: #fff;
  letter-spacing: 0.14em;
  font: inherit;
  cursor: pointer;
}

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 10, 0.88);
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  border-radius: 0.4rem;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* boot / preload */
.deck-boot {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efefef;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.deck-boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.deck-boot__msg {
  margin: 0;
  letter-spacing: 0.28em;
  color: rgba(20, 24, 28, 0.45);
  font-size: 0.85rem;
}

.preload-dock {
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(4.75rem, calc(env(safe-area-inset-bottom) + 3.5rem));
  z-index: 55;
  width: min(16.5rem, calc(100vw - 1.7rem));
  pointer-events: none;
}

.preload-dock[hidden] {
  display: none !important;
}

.preload-bar {
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(12, 14, 18, 0.72);
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.preload-bar__hint {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.preload-bar__track {
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 1px;
  overflow: hidden;
}

.preload-bar__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.85);
  transition: width 0.25s ease;
}

/* 手机：顶栏右对齐小标题，内容铺满剩余高度（对齐原版 mobile-hero-bar） */
@media (max-width: 720px) {
  :root {
    --chayu-mobile-page-gutter: 1.2rem;
    --chayu-mobile-page-gutter-x: max(
      var(--chayu-mobile-page-gutter),
      env(safe-area-inset-left, 0px),
      env(safe-area-inset-right, 0px)
    );
    --chayu-mobile-list-gutter-x: max(
      1.35rem,
      var(--chayu-mobile-page-gutter),
      env(safe-area-inset-left, 0px),
      env(safe-area-inset-right, 0px)
    );
    --chayu-content-gutter-x: var(--chayu-mobile-list-gutter-x);
    --chayu-mobile-chrome-width: calc(
      3 * var(--chayu-mobile-nav-size) + 2 * var(--chayu-mobile-nav-gap)
    );
    --chayu-mobile-chrome-inset: calc(
      0.85rem + var(--chayu-mobile-chrome-width) + 0.55rem
    );
    --chayu-mobile-caption-band: calc(0.38rem + 1.22rem);
    --chayu-mobile-hero-bottom: calc(var(--chayu-mobile-caption-band) + 0.42rem);
    --chayu-mobile-nav-clearance: calc(
      var(--chayu-mobile-nav-top) + var(--chayu-mobile-nav-size) + 0.38rem + 1.22rem + 0.72rem
    );
  }

  .chrome-nav {
    top: max(var(--chayu-mobile-nav-top), env(safe-area-inset-top));
    left: max(0.85rem, env(safe-area-inset-left));
    grid-auto-columns: var(--chayu-mobile-nav-size);
    column-gap: var(--chayu-mobile-nav-gap);
  }

  .chrome-nav__cell {
    width: var(--chayu-mobile-nav-size);
  }

  .chrome-nav__btn {
    width: var(--chayu-mobile-nav-size);
    height: var(--chayu-mobile-nav-size);
  }

  .chrome-nav__caption {
    font-size: 0.5625rem;
    letter-spacing: 0.06em;
    padding: 0.18rem 0.4rem;
  }

  .page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .page-shell,
  .page--detail .page-shell,
  .page--page .page-shell,
  .page--list .page-shell,
  .page--guestbook .page-shell,
  .page--archives .page-shell,
  .page--404 .page-shell {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 0.4rem;
    height: 100%;
    max-width: none;
    margin: 0;
    padding:
      var(--chayu-mobile-nav-top)
      0
      calc(var(--chayu-footer-space) + var(--chayu-player-space) + 1.5rem);
  }

  .page-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: 0 0 auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    text-align: right;
    padding: 0 0 var(--chayu-mobile-hero-bottom, 0.42rem);
    gap: 0;
  }

  .page-hero__bar {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    min-height: var(--chayu-mobile-nav-size);
    padding:
      0
      var(--chayu-mobile-page-gutter-x)
      0
      var(--chayu-mobile-chrome-inset);
  }

  .page-hero.has-meta .page-hero__bar {
    min-height: var(--chayu-mobile-nav-size);
  }

  .page-hero__brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.38rem;
    width: auto;
    min-width: 0;
    max-width: 100%;
    max-height: var(--chayu-mobile-nav-size);
  }

  .page-hero__copy {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    max-height: var(--chayu-mobile-nav-size);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.06rem;
    text-align: right;
    overflow: hidden;
  }

  .page-hero__title-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
    max-width: 100%;
  }

  .page-hero__text-pair {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.06rem;
    min-width: 0;
    max-width: 100%;
  }

  .page-hero__title-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
    max-width: 100%;
  }

  .page-hero__logo {
    order: 2;
    flex: 0 0 auto;
    width: var(--chayu-mobile-nav-size);
    height: var(--chayu-mobile-nav-size);
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(20, 24, 28, 0.16);
    display: block;
  }

  .page-hero__title,
  .page-hero__subtitle {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    max-height: none;
  }

  .page-hero__title {
    margin: 0;
    max-width: none;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 1.18;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-hero__subtitle {
    margin: 0;
    max-width: none;
    font-size: 0.625rem;
    line-height: 1.16;
    letter-spacing: 0.025em;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page.has-bg .page-hero__title {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.42);
  }

  .page.has-bg .page-hero__subtitle {
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.38);
  }

  .page-hero__toolbar {
    flex: 0 0 auto;
    align-self: stretch;
    margin-top: 0;
    padding:
      0.25rem
      var(--chayu-mobile-page-gutter-x)
      0
      var(--chayu-mobile-chrome-inset);
    text-align: right;
  }

  .page-hero__meta {
    margin: 0;
    padding: 0;
    font-size: 0.5625rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cover-peek {
    margin-top: 0;
    font-size: 0.5625rem;
    letter-spacing: 0.06em;
  }

  .home-deck {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding: 0 var(--chayu-mobile-list-gutter-x) 0.55rem var(--chayu-progress-clearance, 1.45rem);
  }

  .deck-pane {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding: 0;
  }

  .deck,
  .deck.deck--list {
    justify-content: flex-start;
    align-items: stretch;
    padding:
      0
      var(--chayu-mobile-list-gutter-x)
      0.65rem
      var(--chayu-progress-clearance, 1.45rem);
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0,
      #000 calc(100% - 1rem),
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0,
      #000 calc(100% - 1rem),
      transparent 100%
    );
  }

  .deck-list {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .deck-list__row {
    grid-template-columns: 3.5rem minmax(0, 1fr) 1.2rem;
    gap: 0.75rem 0.8rem;
    min-height: 4.65rem;
    padding: 0.95rem 0.65rem;
    border-radius: 0.85rem;
  }

  .deck-list__cover {
    width: 3.5rem;
    min-height: 3.15rem;
    border-radius: 0.6rem;
  }

  .deck-list__title {
    font-size: 0.92rem;
  }

  .deck-list__desc {
    font-size: 0.78rem;
  }

  .detail-stage {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding: 0 var(--chayu-mobile-page-gutter-x) 0.5rem;
    overflow: hidden;
  }

  .detail-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 2.75ex;
  }

  .detail-card__body {
    padding: 1.65rem 1.15rem 2.25rem;
  }

  .home-board {
    gap: 0.55rem;
  }

  .home-board__switch {
    gap: 1.1rem;
    padding-bottom: 0.4rem;
  }

  .home-board__tab {
    min-width: 4.8rem;
    padding: 0.4rem 0.75rem 0.5rem;
    gap: 0.35rem;
    font-size: 0.84rem;
    letter-spacing: 0.18em;
  }

  .home-board__nav-row {
    grid-template-columns: 2.55rem minmax(0, 1fr) 1.1rem;
    gap: 0.75rem 0.85rem;
    padding: 1.05rem 0.35rem;
  }

  .recent-piece {
    padding: 0.4rem 0.45rem 0.2rem;
    gap: 0.35rem;
  }

  .home-board__pane--recent {
    padding: 0 0.15rem 0.25rem;
  }

  .recent-feed {
    gap: 1.15rem;
  }

  .recent-piece__title {
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  .recent-piece__title--story {
    font-size: 0.9rem;
  }

  .recent-piece__stamp-day {
    font-size: 2.35rem;
  }

  .recent-piece__stamp-month {
    font-size: 0.95rem;
  }

  .recent-piece__stamp-year {
    font-size: 0.78rem;
  }

  .recent-piece__prose p {
    font-size: 0.8rem;
  }

  .site-footer {
    justify-content: flex-start;
  }

  .site-footer__inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
    max-width: none;
  }
}
