:root {
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
  font-family: system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #f7efe4;
  background: #161311;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #161311; }
a { color: inherit; text-decoration: none; }

.world {
  --accent: #f2cc97;
  --heading: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --pillar-rim: #964e27;
  --pillar-lit: #632114;
  --pillar-mid: #3a120c;
  --pillar-dark: #190805;
  --travel-dir: 1;
  --veil-dim: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #161311;
}

.world[data-camera-scene="1"] {
  --accent: #d7dcae;
  --pillar-rim: #785b48;
  --pillar-lit: #4c231b;
  --pillar-mid: #2c1511;
  --pillar-dark: #140b09;
}
.world[data-camera-scene="2"] {
  --accent: #f0c3a6;
  --pillar-rim: #984c25;
  --pillar-lit: #692313;
  --pillar-mid: #3d140b;
  --pillar-dark: #1a0805;
}
.world[data-camera-scene="3"] {
  --accent: #edd5b2;
  --pillar-rim: #944d2a;
  --pillar-lit: #5e2416;
  --pillar-mid: #36130c;
  --pillar-dark: #160806;
}
.world[data-camera-scene="4"] {
  --accent: #c8dfef;
  --heading: system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
  --pillar-rim: #8f4e2d;
  --pillar-lit: #5e1f15;
  --pillar-mid: #34110c;
  --pillar-dark: #140706;
}

.scenery, .passage, .lighting {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scenery {
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(ellipse 68% 58% at 68% 46%, #31251c 0%, #1d1713 48%, #120f0d 100%);
}

.scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
  transform-origin: 50% 50%;
  transform: translate3d(0, 0, 0) scale(1.05);
  opacity: 0;
  visibility: hidden;
  backface-visibility: hidden;
}

.scene[data-scene="0"] {
  opacity: 1;
  visibility: visible;
}

.world.is-travelling .scene.is-active-scene {
  will-change: transform, clip-path, opacity;
}

/* 任意时代图片缺失时的同街景调色兜底，保持五时代街景连续性 */
.scene--fallback {
  filter: sepia(0.24) hue-rotate(-18deg) saturate(0.74) brightness(0.78) contrast(1.08);
}

/* 近景红木廊柱：100% 实心漆木核心 + 两侧光学散焦柔边 + 灯笼暖光边缘 */
.passage {
  z-index: -2;
  inset: -14% auto -14% 0;
  width: 46%;
  opacity: 0;
  visibility: hidden;
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--pillar-rim) 18%, transparent) 10%,
    color-mix(in srgb, var(--pillar-rim) 72%, transparent) 17%,
    var(--pillar-rim) 22%,
    var(--pillar-lit) 31%,
    var(--pillar-mid) 49%,
    var(--pillar-dark) 68%,
    #110604 78%,
    rgba(17, 6, 4, 0.72) 85%,
    rgba(17, 6, 4, 0.22) 93%,
    transparent 100%
  );
}

/* 柱身木漆纵向微光质感，模拟贴近镜头掠过时的浅景深圆柱体 */
.passage::before {
  content: "";
  position: absolute;
  inset: 0 18% 0 18%;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 206, 148, 0.14) 11%,
      rgba(255, 190, 128, 0.06) 22%,
      transparent 38%,
      rgba(255, 220, 185, 0.03) 50%,
      transparent 62%,
      rgba(0, 0, 0, 0.24) 78%,
      rgba(0, 0, 0, 0.34) 88%,
      transparent 100%
    ),
    radial-gradient(ellipse 42% 38% at 18% 34%, rgba(255, 198, 124, 0.2), transparent 72%);
}

.lighting {
  z-index: -1;
  background:
    linear-gradient(90deg, #100e0ccf 0%, #100e0caa 25%, #100e0c5d 44%, transparent 68%),
    linear-gradient(180deg, #100e0c9c 0%, transparent 23%, transparent 70%, #100e0c7d 100%);
}

/* 近景柱体掠过镜头时的极轻微曝光压暗，增强实拍光学体感 */
.lighting::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 95% at 50% 50%, #0e0907, #090605);
  opacity: var(--veil-dim, 0);
}

.site-header {
  position: relative;
  z-index: 4;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(16px, 2.2vw, 30px);
  width: min(1320px, calc(100% - clamp(32px, 6vw, 100px)));
  min-height: 73px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  white-space: nowrap;
  color: #faf7f2;
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-shadow: 0 1px 3px rgba(10, 7, 5, .86), 0 2px 12px rgba(10, 7, 5, .58);
  transition: opacity .2s ease;
}

.brand:hover {
  opacity: .84;
}

.brand-avatar {
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
  object-fit: cover;
  border: 1px solid #e7c499a6;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(10, 7, 5, .55);
}

.header-nav-wrap {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: clamp(14px, 2.4vw, 34px);
  min-width: 0;
}

.journey {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 34px);
  min-width: 0;
}

.stop {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 34px;
  padding-inline: 5px;
  border-radius: 6px;
  white-space: nowrap;
  color: #ede4d6;
  font-size: .94rem;
  text-shadow: 0 1px 3px rgba(10, 7, 5, .88), 0 2px 12px rgba(10, 7, 5, .62);
  transition: color .28s ease, opacity .2s ease;
}

.stop:hover, .stop[aria-current="page"] { color: #fffaf2; }
.stop[aria-current="page"] { font-weight: 700; }
.stop::after {
  content: "";
  position: absolute;
  inset: auto 5px 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 45%, rgba(10, 7, 5, .7));
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .28s ease, transform .28s ease, background-color .42s ease;
}
.stop[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }

/* JS 接管后由滑动游标替代静态下划线，跟随镜头节奏流动 */
.journey.has-indicator .stop::after {
  display: none;
}

.journey-indicator {
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 1px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 48%, rgba(10, 7, 5, .75));
  transform-origin: left center;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  transition:
    transform .58s cubic-bezier(.22, 1, .36, 1),
    background-color .42s ease,
    box-shadow .42s ease,
    opacity .2s ease;
}

.journey-indicator.is-ready {
  opacity: 1;
}

.journey-indicator.is-instant {
  transition-duration: 0s;
}

.header-utilities {
  display: flex;
  align-items: center;
  flex: none;
  gap: clamp(8px, 1.5vw, 22px);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  font-family: var(--mono);
  font-size: .86rem;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(10, 7, 5, .9), 0 2px 10px rgba(10, 7, 5, .62);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 28px;
  padding: 0 5px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(237, 228, 214, .72);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  text-shadow: inherit;
  transition: color .2s ease, opacity .2s ease;
}

.lang-btn:hover {
  color: #fffaf2;
}

.lang-btn.is-active,
.lang-btn[aria-pressed="true"] {
  color: #fffaf2;
  font-weight: 700;
}

.lang-sep {
  color: rgba(240, 219, 189, .48);
  font-size: .82rem;
  user-select: none;
}

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #f6efe4;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.header-icon-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(10, 7, 5, .92)) drop-shadow(0 2px 8px rgba(10, 7, 5, .62));
}

.header-icon-btn:hover {
  color: #ffffff;
  opacity: .76;
}

.header-icon-btn--sun {
  cursor: default;
}

.header-icon-btn--sun:hover {
  opacity: .9;
}

:where(a, button, .chapter-area):focus-visible {
  outline: 2px solid var(--accent, #f2cc97);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 5;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 16px;
  color: #281b11;
  background: #f2cc97;
}
.skip-link:focus { transform: none; }

.chapter-area {
  display: grid;
  align-content: center;
  width: min(1220px, calc(100% - 144px));
  margin-inline: auto;
  padding-block: 72px 115px;
  transition:
    opacity .22s cubic-bezier(.4, 0, 1, 1),
    transform .28s cubic-bezier(.4, 0, 1, 1);
}

.world.is-travelling .chapter-area {
  opacity: 0;
  transform: translate3d(calc(var(--travel-dir, 1) * -12px), -3px, 0);
  pointer-events: none;
}

.chapter[hidden] { display: none; }

.chapter:not([hidden]) .era {
  animation: chapter-in .42s cubic-bezier(.22, 1, .36, 1) both;
}
.chapter:not([hidden]) h1 {
  animation: chapter-in .48s cubic-bezier(.22, 1, .36, 1) .04s both;
}
.chapter:not([hidden]) .description {
  animation: chapter-in .52s cubic-bezier(.22, 1, .36, 1) .09s both;
}

.world.is-initial .chapter:not([hidden]) .era,
.world.is-initial .chapter:not([hidden]) h1,
.world.is-initial .chapter:not([hidden]) .description {
  animation: none;
}

.era {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 630;
  letter-spacing: .18em;
  transition: color .42s ease;
}
.era::before { content: ""; width: 27px; height: 1px; background: currentColor; }

.chapter h1 {
  margin: 0;
  max-width: 9em;
  color: #fff7ec;
  font-family: var(--heading);
  font-size: clamp(2.9rem, 6.35vw, 5.7rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.1;
  text-shadow: 0 4px 24px #100b07a1;
}

.description {
  margin: 20px 0 0;
  max-width: 25em;
  color: #f0e6d8;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.85;
  text-wrap: pretty;
}

.home-profile h1 {
  font-family: var(--mono);
}

.chapter-area:has(.home-profile:not([hidden])) {
  padding-block: clamp(38px, 5svh, 72px) clamp(42px, 6svh, 86px);
}

.home-details {
  max-width: 40rem;
  margin-top: 10px;
}

.home-role {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.1rem, 1.65vw, 1.35rem);
  font-weight: 650;
}

.home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: .83rem;
  line-height: 1.5;
}

.home-tags li {
  padding: 3px 9px;
  border: 1px solid #f2cc9747;
  border-radius: 5px;
  background: #392617b3;
  color: #f6e4cd;
}

.home-bio {
  margin-top: 20px;
  font-size: clamp(.98rem, 1.23vw, 1.08rem);
  line-height: 1.68;
  text-shadow: 0 1px 8px #100b07d9;
}

.home-bio p {
  margin: 0;
}

.home-bio p + p {
  margin-top: 10px;
}

.home-contact {
  margin-top: 24px;
}

.home-contact h2 {
  margin: 0;
  color: #fff7ec;
  font-family: var(--heading);
  font-size: 1.5rem;
  line-height: 1.4;
}

.home-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 12px 0 0;
  padding: 0;
  color: #fff7ec;
  list-style: none;
  font-size: 1rem;
}

.home-contact-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: opacity .15s cubic-bezier(.4, 0, .2, 1);
}

.home-contact-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease-out;
  pointer-events: none;
}

.home-contact-item:is(:hover, :focus-visible) {
  opacity: .7;
}

.home-contact-item:is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}

.home-contact-value {
  font-family: var(--mono);
  font-weight: 600;
}

.contact-icon {
  position: relative;
  flex: none;
  width: 16px;
  border: 1.5px solid currentColor;
}

.contact-icon--mail {
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
}

.contact-icon--mail::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 2px;
  width: 10px;
  height: 8px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(39deg) skew(-10deg);
}

.contact-icon--chat {
  height: 15px;
  border-radius: 50%;
}

.contact-icon--chat::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -1px;
  width: 5px;
  height: 5px;
  border-left: 1.5px solid;
  border-bottom: 1.5px solid;
  border-bottom-left-radius: 1px;
  transform: skew(-18deg, -14deg);
}

.fan-egg {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.fan-egg-trigger {
  position: absolute;
  left: var(--fan-x);
  top: var(--fan-y);
  width: var(--fan-width);
  height: var(--fan-height);
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.fan-egg-trigger:is(:hover, [aria-expanded="true"]) {
  background: radial-gradient(ellipse, #ffdc9940, transparent 70%);
}

.fan-egg-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.fan-egg-card {
  --card-width: min(300px, calc(100% - 32px));
  position: absolute;
  left: clamp(16px, calc(var(--fan-x) - var(--card-width) / 2), calc(100% - var(--card-width) - 16px));
  bottom: calc(100% - var(--fan-y) + var(--fan-height) / 2 + 10px);
  display: grid;
  justify-items: center;
  gap: 2px;
  width: var(--card-width);
  text-shadow: 0 1px 2px #140904, 0 2px 6px #140904, 0 0 12px #140904b3;
  visibility: hidden;
  opacity: 0;
  transition: opacity .22s ease, visibility 0s linear .22s;
}

.fan-egg-trigger[aria-expanded="true"] + .fan-egg-card {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
  pointer-events: auto;
}

.fan-egg-title {
  display: flex;
  gap: .1em;
  margin: 0;
  color: #dfaf7d;
  font-family: var(--heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.fan-egg-card a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-block: 4px;
  color: #ffe0a3;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .fan-egg-trigger[aria-expanded="true"] + .fan-egg-card .fan-egg-title span {
    animation: fan-egg-hop .46s cubic-bezier(.22, .7, .35, 1) calc(var(--letter) * 85ms) both;
  }

  .fan-egg-trigger[aria-expanded="true"] + .fan-egg-card a {
    animation: fan-egg-hop .46s cubic-bezier(.22, .7, .35, 1) .46s both;
  }
}

@keyframes fan-egg-hop {
  0% { opacity: 0; transform: translateY(10px) rotate(-6deg) scale(.8); }
  48% { opacity: 1; transform: translateY(-5px) rotate(3deg) scale(1.1); }
  75% { transform: translateY(1px) rotate(-1deg) scale(.98); }
  100% { opacity: 1; transform: none; }
}

@keyframes chapter-in {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--travel-dir, 1) * 14px), 5px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes chapter-fade-only {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================================================================
   Warm-styled Search & RSS Modal Dialogs
   ========================================================================= */
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(56px, 13vh, 132px) 16px 24px;
}

.site-modal[hidden] {
  display: none;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 5, .74);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.site-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(640px, calc(100vw - 32px));
  max-height: min(76svh, 580px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, rgba(240, 219, 189, .14));
  border-radius: 14px;
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 72%),
    linear-gradient(180deg, rgba(29, 22, 17, .96) 0%, rgba(20, 15, 12, .98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 24px 64px rgba(6, 4, 2, .72),
    0 0 0 1px rgba(255, 232, 198, .05) inset;
  color: #f5ece0;
  transition: border-color .22s ease, box-shadow .22s ease;
  animation: modal-in .18s cubic-bezier(.22, 1, .36, 1) both;
}

.site-modal-panel--search.is-birthday {
  border-color: color-mix(in srgb, var(--accent) 58%, rgba(255, 224, 163, .32));
  box-shadow:
    0 24px 64px rgba(6, 4, 2, .76),
    0 0 28px color-mix(in srgb, var(--accent) 18%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent) inset;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes search-body-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(240, 219, 189, .14);
}

.search-bar-icon {
  flex: none;
  color: var(--accent);
  opacity: .9;
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #fff8ef;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
}

.search-input::placeholder {
  color: rgba(235, 221, 203, .52);
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(235, 221, 203, .72);
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}

.search-clear-btn[hidden] {
  display: none;
}

.search-clear-btn:hover {
  color: #fff8ef;
  background: rgba(242, 204, 151, .12);
}

.modal-close-btn {
  flex: none;
  padding: 4px 8px;
  border: 1px solid rgba(240, 219, 189, .22);
  border-radius: 6px;
  background: rgba(240, 219, 189, .06);
  color: rgba(240, 228, 210, .82);
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.2;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.modal-close-btn:hover {
  color: #fff8ef;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.search-idle {
  padding: 20px 20px 22px;
  text-align: center;
}

.search-idle[hidden] {
  display: none;
}

.search-idle-title {
  margin: 0;
  color: rgba(242, 229, 212, .76);
  font-size: .88rem;
  line-height: 1.5;
}

.search-idle-sub {
  margin: 6px 0 0;
  color: rgba(232, 214, 190, .54);
  font-size: .78rem;
  line-height: 1.5;
}

.search-body,
.rss-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px 14px;
  scrollbar-color: rgba(242, 204, 151, .28) transparent;
  scrollbar-width: thin;
}

.search-body[hidden] {
  display: none;
}

.search-body:not([hidden]) {
  animation: search-body-in .18s cubic-bezier(.22, 1, .36, 1) both;
}

.search-birthday-banner {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, rgba(255, 224, 163, .18));
  border-radius: 10px;
  background:
    radial-gradient(ellipse 85% 95% at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 72%),
    rgba(46, 33, 22, .68);
}

.search-birthday-banner[hidden] {
  display: none;
}

.search-birthday-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-birthday-icon {
  color: var(--accent);
  font-size: .95rem;
  line-height: 1;
}

.search-birthday-title {
  color: #fff6e5;
  font-family: var(--heading);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.search-birthday-desc {
  margin: 5px 0 0;
  color: rgba(242, 229, 212, .8);
  font-size: .83rem;
  line-height: 1.55;
}

.search-status {
  margin: 0 2px 10px;
  color: rgba(232, 216, 195, .64);
  font-size: .8rem;
  letter-spacing: .02em;
}

.search-status[hidden] {
  display: none;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-item-btn {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(240, 219, 189, .12);
  border-radius: 10px;
  background: rgba(39, 29, 22, .52);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.search-item-btn:hover,
.search-item-btn.is-active {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  background: color-mix(in srgb, var(--accent) 13%, rgba(44, 32, 23, .82));
}

.search-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-item-title {
  color: #fff8ef;
  font-size: .96rem;
  font-weight: 650;
}

.search-item-badge {
  flex: none;
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, rgba(28, 20, 15, .7));
  color: var(--accent);
  font-size: .75rem;
  white-space: nowrap;
}

.search-item-desc {
  margin: 5px 0 0;
  color: rgba(237, 225, 209, .78);
  font-size: .85rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-item-btn mark {
  padding: 0 2px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  color: #fffaf2;
}

.search-item-btn--egg {
  border-color: color-mix(in srgb, var(--accent) 34%, rgba(240, 219, 189, .14));
  background:
    radial-gradient(ellipse 65% 90% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 72%),
    rgba(43, 31, 22, .62);
}

.search-item-btn--egg .search-item-desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.search-item-action {
  display: inline-block;
  margin-top: 7px;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
}

.search-empty {
  padding: 20px 16px 22px;
  text-align: center;
  color: rgba(235, 221, 203, .72);
  font-size: .9rem;
}

.search-empty-sub {
  margin: 6px 0 0;
  color: rgba(235, 221, 203, .5);
  font-size: .8rem;
  line-height: 1.5;
}

.rss-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(240, 219, 189, .14);
}

.rss-title-group {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}

.rss-title-icon {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.rss-title {
  margin: 0;
  color: #fff8ef;
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.rss-subtitle {
  margin: 3px 0 0;
  color: rgba(235, 221, 203, .72);
  font-size: .84rem;
}

.rss-url-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(240, 219, 189, .16);
  border-radius: 10px;
  background: rgba(14, 10, 8, .62);
}

.rss-url-text {
  flex: 1 1 200px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .86rem;
}

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

.rss-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border: 1px solid rgba(240, 219, 189, .24);
  border-radius: 7px;
  background: rgba(240, 219, 189, .08);
  color: #fff6ea;
  font: inherit;
  font-size: .82rem;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.rss-action-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  background: color-mix(in srgb, var(--accent) 18%, rgba(36, 26, 19, .8));
}

.rss-action-btn--primary {
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
  background: color-mix(in srgb, var(--accent) 22%, rgba(44, 30, 19, .88));
  color: #fffaf2;
}

.rss-feed-heading {
  margin: 14px 2px 9px;
  color: rgba(235, 221, 203, .66);
  font-size: .8rem;
  letter-spacing: .04em;
}

.rss-feed-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rss-feed-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(240, 219, 189, .1);
  border-radius: 9px;
  background: rgba(39, 29, 22, .45);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}

.rss-feed-item:hover {
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
  background: color-mix(in srgb, var(--accent) 11%, rgba(44, 32, 23, .78));
}

.rss-feed-item-title {
  display: block;
  color: #fff7ec;
  font-size: .9rem;
  font-weight: 600;
}

.rss-feed-item-desc {
  display: block;
  margin-top: 3px;
  color: rgba(237, 225, 209, .74);
  font-size: .82rem;
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid rgba(240, 219, 189, .12);
  background: rgba(14, 10, 8, .48);
  color: rgba(232, 216, 195, .64);
  font-size: .78rem;
}

.modal-footer[hidden] {
  display: none;
}

.modal-shortcut-pill {
  flex: none;
  padding: 2px 7px;
  border: 1px solid rgba(240, 219, 189, .18);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: .72rem;
  color: rgba(240, 224, 200, .75);
}

@media (max-width: 960px) {
  .header-inner {
    width: calc(100% - 36px);
    gap: 14px;
  }
  .header-nav-wrap {
    gap: 14px;
  }
  .journey {
    gap: 10px;
  }
  .stop {
    min-width: 34px;
    padding-inline: 3px;
    font-size: .9rem;
  }
  .header-utilities {
    gap: 8px;
  }
  .header-icon-btn {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    width: calc(100% - 32px);
    gap: 4px 12px;
    padding-top: 10px;
    min-height: auto;
  }
  .header-nav-wrap {
    display: contents;
  }
  .brand {
    order: 1;
    height: 36px;
  }
  .header-utilities {
    order: 2;
    margin-left: auto;
    gap: 6px;
  }
  .journey {
    order: 3;
    justify-content: space-between;
    width: 100%;
    gap: 4px;
  }
  .stop {
    min-height: 40px;
  }
  .stop::after { bottom: 4px; }
  .journey-indicator { bottom: 4px; }
  .chapter-area { width: calc(100% - 60px); }
}

@media (max-width: 475px) {
  .brand-avatar { width: 24px; height: 24px; }
  .chapter-area { align-content: end; width: calc(100% - 36px); padding-bottom: 66px; }
  .lighting { background: linear-gradient(90deg, #100e0c83, transparent 80%), linear-gradient(0deg, #100e0cf2 0%, #100e0c9c 36%, transparent 76%); }
}

/* 尊重减弱动态偏好：关闭镜头位移、缩放与红木柱横扫，降级为克制柔和的纯透明度淡入淡出 */
@media (prefers-reduced-motion: reduce) {
  .home-contact-item,
  .home-contact-item::after,
  .fan-egg-card,
  .site-modal-panel,
  .search-body:not([hidden]) {
    transition: none;
    animation: none;
  }
  .scene {
    transform: none !important;
    clip-path: none !important;
  }
  .passage {
    display: none !important;
  }
  .lighting::after {
    opacity: 0 !important;
  }
  .world.is-travelling .chapter-area {
    transform: none;
    transition: opacity .2s ease;
  }
  .chapter:not([hidden]) .era,
  .chapter:not([hidden]) h1,
  .chapter:not([hidden]) .description {
    animation: chapter-fade-only .28s ease both;
  }
  .journey-indicator {
    transition: opacity .2s ease, background-color .25s ease;
  }
}
