:root {
  color-scheme: dark;
  --cream: #f6f3ec;
  --cream-soft: #eee9df;
  --ink: #000;
  --white: #fff;
  --muted: #a8a49c;
  --line: rgba(246, 243, 236, .18);
  --line-strong: rgba(246, 243, 236, .28);
  --accent: #dba460;
  --hot: rgba(219, 164, 96, .18);
  --glow-x: 50%;
  --glow-y: 50%;
}

* { box-sizing: border-box; }

html {
  min-width: 375px;
  scroll-behavior: smooth;
  background: #000;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background: #000;
  overflow-x: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::selection,
::selection {
  color: #000;
  background: var(--cream);
}

a,
button,
select {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

button,
select {
  font: inherit;
}

.page {
  position: relative;
  min-height: 100vh;
  background: #000;
  isolation: isolate;
}

.site-header {
  --hdr-color: #fff;
  --hdr-bg: transparent;
  --hdr-border: transparent;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  height: 60px;
  padding: 0 30px;
  color: var(--hdr-color);
  background: var(--hdr-bg);
  border-bottom: 1px solid var(--hdr-border);
  backdrop-filter: blur(2px);
  transition: color .28s ease, background-color .28s ease, border-color .28s ease;
}

.site-header.is-light {
  --hdr-color: #000;
  --hdr-bg: rgba(246, 243, 236, .92);
  --hdr-border: #e0ddd6;
}

.header-status {
  position: absolute;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 11px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: statusPulse 2.2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: .25; }
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 13px;
  white-space: nowrap;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 13px;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.header-btn:hover,
.header-btn:focus-visible {
  color: #000;
  background: var(--cream);
  outline: none;
}

.site-header.is-light .header-btn:hover,
.site-header.is-light .header-btn:focus-visible {
  color: var(--cream);
  background: #000;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  background: #111;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), var(--hot), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .35)),
    #111;
}

.glitch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before {
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0) 58%, #000 100%),
    radial-gradient(circle at center, rgba(0, 0, 0, .76), transparent 62%);
}

.hero-bg::after {
  opacity: .34;
  background:
    repeating-linear-gradient(0deg, rgba(246, 243, 236, .05) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, transparent, rgba(246, 243, 236, .08), transparent);
  mix-blend-mode: screen;
  animation: scanMove 7s linear infinite;
}

@keyframes scanMove {
  from { transform: translateY(-12%); }
  to { transform: translateY(12%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1040px, calc(100vw - 32px));
  min-height: 72svh;
  padding: 120px 40px 68px;
  text-align: center;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.hero-title {
  margin: 0;
  max-width: 100%;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 650;
  line-height: 1.02;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(90deg, #7e8f9e, #c8d2dc 42%, #fff 70%, #a8a49c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin: 0;
  max-width: 720px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .58);
}

.detail-page .header-actions {
  gap: 14px;
  font-size: 14px;
}

.detail-page .header-btn {
  min-width: 68px;
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

.detail-page .hero {
  min-height: 50svh;
}

.detail-page .hero-content {
  width: min(1180px, calc(100vw - 64px));
  min-height: 50svh;
  padding: 88px 40px 18px;
  justify-content: center;
}

.detail-page .hero-stack {
  gap: 10px;
}

.detail-page .hero-title {
  font-size: clamp(32px, 4.8vw, 62px);
  white-space: normal;
}

.detail-page .hero-subtitle {
  max-width: 840px;
  font-size: clamp(16px, 1.7vw, 24px);
  line-height: 1.65;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(920px, 100%);
  margin-top: 24px;
}

.portal-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 170px;
  padding: 22px 18px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .28);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.portal-card b {
  display: block;
  margin-bottom: 18px;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0;
}

.portal-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 560;
  line-height: 1.12;
}

.portal-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .56);
}

.portal-card:hover,
.portal-card.is-hot {
  color: #000;
  background: var(--cream);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.portal-card:hover p,
.portal-card:hover b,
.portal-card.is-hot p,
.portal-card.is-hot b {
  color: rgba(0, 0, 0, .62);
}

.section-shell {
  position: relative;
  z-index: 4;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.section-inner {
  width: min(980px, calc(100% - 60px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.detail-page .section-shell {
  min-height: 50svh;
}

.detail-page .section-inner {
  width: min(1180px, calc(100% - 64px));
  padding: 26px 0 72px;
}

.section-title-wrap {
  padding: 0 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.detail-page .section-title-wrap {
  padding: 0 0 16px;
}

.section-kicker {
  display: block;
  margin: 0 0 8px;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0;
}

.detail-page .section-kicker {
  margin-bottom: 6px;
  font-size: 13px;
}

.section-title {
  margin: 0;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 22px;
  font-weight: 400;
  color: rgba(255, 255, 255, .42);
  text-transform: uppercase;
}

.detail-page .section-title {
  font-size: 19px;
  color: rgba(255, 255, 255, .5);
}

.section-subtitle {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .54);
}

.detail-page .section-subtitle {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.7;
}

.intro-note {
  margin: 16px 12px 0;
  font-size: 22px;
  line-height: 2.02;
  color: rgba(255, 255, 255, .68);
  white-space: pre-line;
}

.detail-page .intro-note {
  margin: 10px 0 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.95;
}

.content-panel {
  margin-top: 18px;
  padding: 12px 0 0;
}

.detail-page .content-panel {
  margin-top: 8px;
  padding-top: 0;
}

.story-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 14px;
  width: min(460px, 100%);
  margin: 22px 12px 26px;
}

.gallery-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 14px;
  width: min(760px, 100%);
  margin: 22px 0 18px;
}

.detail-page .story-toolbar {
  width: min(520px, 100%);
  margin: 18px 0 22px;
}

.detail-page .gallery-toolbar {
  width: min(860px, 100%);
  margin: 18px 0 18px;
}

.filter-select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  font-size: 16px;
  color: var(--cream);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .16);
  outline: none;
}

.detail-page .filter-select {
  height: 56px;
  padding: 0 16px;
  font-size: 18px;
}

.filter-select:focus {
  border-color: var(--accent);
}

.story-list {
  display: grid;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.story-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 60px;
  gap: 22px;
  align-items: start;
  min-height: 148px;
  padding: 30px 12px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  transition: color .18s ease, background-color .18s ease;
}

.detail-page .story-item {
  grid-template-columns: 150px minmax(0, 1fr) 70px;
  min-height: 164px;
  padding: 28px 0;
}

.story-item:hover,
.story-item.is-hot {
  color: #000;
  background: var(--cream);
}

.story-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-time {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 14px;
  color: var(--accent);
}

.detail-page .story-time {
  font-size: 15px;
}

.story-date {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

.detail-page .story-date {
  font-size: 14px;
}

.story-item h3 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
}

.detail-page .story-item h3 {
  font-size: clamp(28px, 3vw, 42px);
}

.story-item p {
  margin: 0;
  font-size: 20px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .55);
}

.detail-page .story-item p {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.8;
}

.story-index {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 16px;
  color: rgba(255, 255, 255, .42);
  text-align: right;
}

.detail-page .story-index {
  font-size: 17px;
}

.story-item:hover .story-time,
.story-item:hover .story-date,
.story-item:hover p,
.story-item:hover .story-index,
.story-item.is-hot .story-time,
.story-item.is-hot .story-date,
.story-item.is-hot p,
.story-item.is-hot .story-index {
  color: rgba(0, 0, 0, .62);
}

.story-empty,
.gallery-empty {
  padding: 28px 12px;
  font-size: 18px;
  color: rgba(255, 255, 255, .45);
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.gallery-summary {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .54);
}

.gallery-groups {
  display: grid;
  gap: 22px;
}

.gallery-group {
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.gallery-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 16px;
}

.gallery-group-kicker {
  display: block;
  margin-bottom: 8px;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 13px;
  color: var(--accent);
}

.gallery-group-head h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 520;
  line-height: 1.2;
}

.gallery-group-count {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 14px;
  color: rgba(255, 255, 255, .46);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.detail-page .gallery-grid {
  margin-top: 4px;
}

.gallery-card {
  position: relative;
  min-height: 360px;
  padding: 18px 12px 22px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .15);
  border-right: 1px solid rgba(255, 255, 255, .15);
  transition: color .18s ease, background-color .18s ease;
}

.detail-page .gallery-card {
  min-height: 420px;
  padding: 22px 0 28px;
}

.gallery-card:nth-child(2n) {
  border-right: 0;
}

.media-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.28;
  margin-bottom: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(246, 243, 236, .24), rgba(246, 243, 236, 0) 46%),
    rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
}

.detail-page .media-frame {
  margin-bottom: 20px;
  aspect-ratio: 1.4;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(255, 255, 255, .18);
  transform: rotate(-6deg);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 14% 18% 14%;
  height: 2px;
  background: rgba(255, 255, 255, .28);
}

.media-image,
.media-video,
.media-stream {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
  border: 0;
}

.media-symbol {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  color: rgba(255, 255, 255, .68);
}

.gallery-card h3 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.detail-page .gallery-card h3 {
  font-size: clamp(28px, 2.8vw, 40px);
}

.gallery-card p {
  margin: 0;
  font-size: 20px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .55);
}

.detail-page .gallery-card p {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.75;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, .48);
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.gallery-actions .header-btn[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, .9);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-image {
  display: block;
  max-width: min(96vw, 1500px);
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

body.lightbox-open {
  overflow: hidden;
}

.footer {
  padding: 28px 0 38px;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  text-align: center;
  background: #000;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  pointer-events: none;
  background: #000;
  border-radius: 50%;
  opacity: 0;
  mix-blend-mode: normal;
  transform: translate3d(-50%, -50%, 0);
  transition:
    width .2s cubic-bezier(.22, 1, .36, 1),
    height .2s cubic-bezier(.22, 1, .36, 1),
    background-color .18s cubic-bezier(.22, 1, .36, 1),
    opacity .15s cubic-bezier(.22, 1, .36, 1),
    mix-blend-mode 0s linear .05s;
  will-change: transform, width, height;
}

.cursor-ring.is-ready { opacity: 1; }

.cursor-ring.is-invert {
  width: 96px;
  height: 96px;
  background: var(--cream);
  mix-blend-mode: difference;
}

.cursor-ring.is-hero {
  width: 200px;
  height: 200px;
  background: var(--cream);
  mix-blend-mode: difference;
}

.cursor-ring.is-hidden {
  width: 16px;
  height: 16px;
  opacity: 0;
}

.cursor-text {
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--cream);
  user-select: none;
  transition: opacity .15s cubic-bezier(.22, 1, .36, 1);
}

.cursor-ring.is-invert .cursor-text,
.cursor-ring.is-hero .cursor-text,
.cursor-ring.is-hidden .cursor-text {
  opacity: 0;
}

@media (max-width: 768px) {
  body { cursor: auto; }

  a, button, select { cursor: pointer; }

  .cursor-ring { display: none; }

  .site-header {
    height: 52px;
    padding: 0 16px;
  }

  .header-status,
  .live-time {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-btn {
    min-width: 54px;
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
  }

  .hero-content {
    width: min(620px, calc(100vw - 32px));
    min-height: 64svh;
    padding: 88px 0 46px;
  }

  .detail-page .hero {
    min-height: 46svh;
  }

  .detail-page .hero-content {
    width: min(620px, calc(100vw - 32px));
    min-height: 46svh;
    padding: 76px 0 12px;
    justify-content: center;
  }

  .detail-page .hero-title {
    font-size: clamp(28px, 10vw, 44px);
  }

  .detail-page .hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-title {
    white-space: normal;
    font-size: clamp(38px, 12vw, 58px);
  }

  .portal-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-toolbar,
  .portal-card {
    min-height: 148px;
  }

  .story-toolbar {
    grid-template-columns: 1fr;
    width: min(100%, 100%);
  }

  .gallery-toolbar {
    grid-template-columns: 1fr;
    width: min(100%, 100%);
  }

  .detail-page .story-toolbar {
    margin: 16px 0 18px;
  }

  .detail-page .gallery-toolbar {
    margin: 16px 0 18px;
  }

  .story-item {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
  }

  .detail-page .story-item {
    padding: 22px 0;
  }

  .story-index {
    text-align: left;
  }

  .gallery-card {
    min-height: auto;
    border-right: 0;
  }

  .detail-page .gallery-card {
    padding: 20px 0 24px;
  }

  .gallery-group-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0 14px;
  }

  .section-inner {
    width: min(980px, calc(100% - 32px));
    padding: 34px 0 52px;
  }

  .detail-page .section-inner {
    width: min(980px, calc(100% - 32px));
    padding: 20px 0 46px;
  }

  .section-title {
    font-size: 18px;
  }

  .detail-page .header-actions {
    gap: 8px;
  }

  .detail-page .header-btn {
    min-width: 58px;
    height: 36px;
    padding: 0 14px;
    font-size: 12px;
  }

  .intro-note {
    margin: 14px 12px 0;
    font-size: 18px;
    line-height: 1.95;
  }

  .detail-page .intro-note {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Warm family album redesign */
:root {
  color-scheme: light;
  --paper: #f7efe1;
  --paper-soft: #fff9ed;
  --paper-deep: #eadfcd;
  --ink: #3f2d21;
  --muted: #816955;
  --line: rgba(86, 58, 38, .17);
  --leaf: #77885f;
  --sun: #d99b49;
  --rose: #c97964;
  --wood: #8e6546;
  --shadow-soft: 0 18px 48px rgba(92, 65, 39, .12);
  --shadow-photo: 0 24px 60px rgba(92, 65, 39, .18);
  --display: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html {
  min-width: 0;
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .32) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(255, 255, 255, .24) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 12% 8%, rgba(217, 155, 73, .2), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(123, 141, 98, .18), transparent 32%),
    var(--paper);
  cursor: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .42;
  background-image:
    repeating-linear-gradient(100deg, rgba(64, 45, 30, .025) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(8deg, rgba(64, 45, 30, .018) 0 1px, transparent 1px 8px);
  mix-blend-mode: multiply;
}

body::selection,
::selection {
  color: var(--paper-soft);
  background: var(--wood);
}

a,
button,
select {
  cursor: pointer;
}

.page {
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
  isolation: auto;
}

.site-header,
.site-header.is-light {
  position: sticky;
  top: 0;
  right: auto;
  left: auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  height: auto;
  padding: 14px clamp(18px, 4vw, 56px);
  color: rgba(63, 45, 33, .9);
  background: rgba(247, 239, 225, .82);
  border-bottom: 1px solid rgba(86, 58, 38, .11);
  backdrop-filter: blur(16px);
  box-shadow: none;
}

.header-status {
  display: inline-flex;
  position: static;
  left: auto;
  gap: 10px;
  color: var(--wood);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  transform: none;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--leaf);
}

.header-actions,
.detail-page .header-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
}

.live-time {
  display: inline-block;
  align-self: center;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
}

.header-btn,
.detail-page .header-btn {
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 249, 237, .58);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.header-btn:hover,
.header-btn:focus-visible,
.header-btn.is-hot,
.site-header.is-light .header-btn:hover,
.site-header.is-light .header-btn:focus-visible {
  color: var(--paper-soft);
  background: var(--leaf);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(81, 95, 62, .18);
  transform: translateY(-1px);
  outline: none;
}

.hero,
.detail-page .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(330px, 1.08fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  justify-content: initial;
  min-height: calc(100svh - 68px);
  padding: clamp(42px, 6vw, 84px) clamp(18px, 5vw, 72px) clamp(44px, 6vw, 76px);
  overflow: visible;
  background: transparent;
}

.detail-page .hero {
  grid-template-columns: minmax(0, .94fr) minmax(280px, .76fr);
  min-height: clamp(440px, 58svh, 680px);
  padding-bottom: clamp(34px, 5vw, 62px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 249, 237, .92), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(201, 121, 100, .14), transparent 28%);
}

.hero-bg::before,
.hero-bg::after,
.glitch-canvas,
.cursor-ring {
  display: none;
}

.hero-content,
.detail-page .hero-content {
  z-index: 1;
  display: block;
  width: min(650px, 100%);
  min-height: 0;
  padding: 0;
  text-align: left;
}

.detail-page .hero-content {
  width: min(760px, 100%);
}

.hero-stack {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--wood);
  font-size: 13px;
  font-weight: 800;
}

.hero-kicker::before {
  width: 46px;
  height: 1px;
  content: "";
  background: currentColor;
}

.hero-title,
.detail-page .hero-title {
  max-width: 9ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(50px, 6.8vw, 92px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: normal;
  text-wrap: balance;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-title span {
  display: block;
}

.hero-title .hero-title-small {
  font-size: .68em;
  line-height: 1.12;
}

.detail-page .hero-title {
  max-width: 18ch;
  font-size: clamp(38px, 5.4vw, 72px);
}

.hero-subtitle,
.detail-page .hero-subtitle {
  max-width: 540px;
  margin: 18px 0 0;
  color: #654b37;
  font-family: var(--display);
  font-size: clamp(20px, 2.15vw, 28px);
  font-weight: 700;
  line-height: 1.62;
}

.detail-page .hero-subtitle {
  max-width: 760px;
  font-size: clamp(19px, 2vw, 27px);
}

.hero-note {
  max-width: 48ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.86;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: var(--paper-soft);
  font-weight: 800;
  background: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(63, 45, 33, .2);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-button.secondary {
  color: var(--ink);
  background: rgba(255, 249, 237, .72);
  border-color: var(--line);
  box-shadow: none;
}

.home-button:hover,
.home-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(63, 45, 33, .22);
  outline: none;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin-top: 24px;
}

.fact {
  padding: 12px 14px;
  background: rgba(255, 249, 237, .64);
  border: 1px solid var(--line);
}

.fact span {
  display: block;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
}

.fact strong {
  display: block;
  margin-top: 5px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
}

.hero-media {
  position: relative;
  min-height: 560px;
}

.album-card {
  position: absolute;
  overflow: hidden;
  margin: 0;
  background: var(--paper-soft);
  border: 10px solid var(--paper-soft);
  box-shadow: var(--shadow-photo);
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper-deep);
  filter: saturate(.97) contrast(.98);
}

.album-card.main {
  inset: 6% 5% auto auto;
  width: min(74%, 420px);
  aspect-ratio: 4 / 5;
  transform: rotate(3deg);
  border-bottom-width: 58px;
}

.album-card.side {
  left: 0;
  top: 18%;
  width: min(46%, 260px);
  aspect-ratio: 4 / 5;
  transform: rotate(-9deg);
  border-bottom-width: 42px;
}

.album-card.small {
  right: 14%;
  bottom: 4%;
  width: min(42%, 235px);
  aspect-ratio: 1;
  transform: rotate(-4deg);
  border-bottom-width: 38px;
}

.caption-strip {
  position: absolute;
  right: 0;
  bottom: 16%;
  width: min(60%, 360px);
  padding: 22px 24px;
  background: rgba(255, 249, 237, .9);
  border: 1px solid rgba(86, 58, 38, .14);
  box-shadow: 0 20px 40px rgba(92, 65, 39, .16);
  transform: rotate(1deg);
}

.caption-strip strong {
  display: block;
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.2;
}

.caption-strip span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.tape {
  position: absolute;
  z-index: 2;
  width: 96px;
  height: 30px;
  background: rgba(236, 207, 151, .72);
  box-shadow: 0 6px 12px rgba(86, 58, 38, .08);
}

.tape.one {
  top: 9%;
  right: 43%;
  transform: rotate(-13deg);
}

.tape.two {
  right: 0;
  bottom: 35%;
  transform: rotate(12deg);
}

.detail-hero-media {
  position: relative;
  z-index: 1;
  min-height: clamp(360px, 44vw, 520px);
  align-self: stretch;
}

.detail-photo {
  position: absolute;
  overflow: hidden;
  margin: 0;
  background: var(--paper-soft);
  border: 9px solid var(--paper-soft);
  box-shadow: var(--shadow-photo);
}

.detail-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper-deep);
  filter: saturate(.98) contrast(.98);
}

.detail-photo.primary {
  top: 2%;
  right: 4%;
  width: min(72%, 340px);
  aspect-ratio: 4 / 5;
  border-bottom-width: 48px;
  transform: rotate(4deg);
}

.detail-photo.secondary {
  bottom: 9%;
  left: 0;
  width: min(45%, 230px);
  aspect-ratio: 1;
  border-bottom-width: 34px;
  transform: rotate(-8deg);
}

.detail-photo-note {
  position: absolute;
  right: 0;
  bottom: 3%;
  z-index: 3;
  width: min(68%, 330px);
  padding: 18px 20px;
  color: var(--ink);
  background: rgba(255, 249, 237, .92);
  border: 1px solid rgba(86, 58, 38, .14);
  box-shadow: 0 18px 38px rgba(92, 65, 39, .14);
  transform: rotate(1deg);
}

.detail-photo-note strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.3vw, 31px);
  line-height: 1.18;
}

.detail-photo-note span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.story-photos .detail-photo.primary {
  transform: rotate(-3deg);
}

.story-photos .detail-photo.secondary {
  transform: rotate(7deg);
}

.gallery-photos .detail-photo.primary {
  transform: rotate(2deg);
}

.gallery-photos .detail-photo-note {
  bottom: 6%;
  transform: rotate(-1deg);
}

.portal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1020px, 100%);
  margin-top: 34px;
}

.portal-card {
  position: relative;
  min-height: 188px;
  padding: 24px 22px 30px;
  color: var(--ink);
  background: rgba(255, 249, 237, .7);
  border: 1px solid var(--line);
  box-shadow: none;
}

.portal-card::after {
  position: absolute;
  right: 18px;
  bottom: 10px;
  color: rgba(142, 101, 70, .15);
  font-family: var(--serif);
  font-size: 66px;
  line-height: 1;
  content: attr(data-count);
}

.portal-card b {
  margin-bottom: 16px;
  color: var(--rose);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
}

.portal-card h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}

.portal-card p {
  max-width: 25ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.portal-card:hover,
.portal-card.is-hot {
  color: var(--ink);
  background: rgba(255, 249, 237, .95);
  border-color: rgba(86, 58, 38, .24);
  box-shadow: 0 20px 42px rgba(92, 65, 39, .12);
  transform: translateY(-4px);
}

.portal-card:hover p,
.portal-card:hover b,
.portal-card.is-hot p,
.portal-card.is-hot b {
  color: var(--muted);
}

.section-shell {
  z-index: 1;
  background: rgba(255, 249, 237, .36);
  border-top: 1px solid var(--line);
}

.section-inner,
.detail-page .section-inner {
  width: min(1180px, calc(100% - 56px));
  padding: clamp(42px, 6vw, 76px) 0 clamp(58px, 7vw, 92px);
}

.section-title-wrap,
.detail-page .section-title-wrap {
  padding: 0 0 18px;
  border-bottom: 1px dashed rgba(86, 58, 38, .22);
}

.section-kicker,
.detail-page .section-kicker,
.gallery-group-kicker {
  color: var(--rose);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
}

.section-title,
.detail-page .section-title,
.gallery-group-head h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.14;
  text-transform: none;
}

.section-subtitle,
.detail-page .section-subtitle {
  max-width: 42ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.content-panel,
.detail-page .content-panel {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(255, 249, 237, .72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.intro-note,
.detail-page .intro-note {
  max-width: 72ch;
  margin: 0;
  color: #5f4734;
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 2.05;
  white-space: pre-line;
}

.story-toolbar,
.gallery-toolbar,
.detail-page .story-toolbar,
.detail-page .gallery-toolbar {
  display: grid;
  gap: 12px;
  margin: 24px 0 24px;
}

.story-toolbar,
.detail-page .story-toolbar {
  grid-template-columns: repeat(2, minmax(0, 220px));
  width: min(480px, 100%);
}

.gallery-toolbar,
.detail-page .gallery-toolbar {
  grid-template-columns: repeat(3, minmax(0, 220px));
  width: min(760px, 100%);
}

.filter-select,
.detail-page .filter-select {
  height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 249, 237, .86);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.filter-select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201, 121, 100, .14);
}

.story-list {
  display: grid;
  gap: 16px;
  border-bottom: 0;
}

.story-item,
.detail-page .story-item {
  position: relative;
  grid-template-columns: 96px minmax(0, 1fr) 42px;
  gap: 20px;
  min-height: 0;
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 249, 237, .72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.story-item:hover,
.story-item.is-hot {
  color: var(--ink);
  background: rgba(255, 249, 237, .94);
}

.story-meta {
  align-items: center;
}

.story-time {
  display: grid;
  width: 78px;
  min-height: 78px;
  place-items: center;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.1;
  text-align: center;
  white-space: pre-line;
  background: var(--wood);
  border-radius: 50% 50% 46% 54%;
}

.story-date {
  color: var(--rose);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
}

.story-item h3,
.detail-page .story-item h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.22;
}

.story-item p,
.detail-page .story-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.story-original {
  display: block;
  margin-bottom: 5px;
  color: var(--wood);
  font-size: 13px;
  font-weight: 800;
}

.story-index,
.detail-page .story-index {
  color: rgba(142, 101, 70, .38);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
}

.story-item:hover .story-time,
.story-item:hover .story-date,
.story-item:hover p,
.story-item:hover .story-index,
.story-item.is-hot .story-time,
.story-item.is-hot .story-date,
.story-item.is-hot p,
.story-item.is-hot .story-index {
  color: inherit;
}

.story-item:hover .story-time,
.story-item.is-hot .story-time {
  color: var(--paper-soft);
}

.story-item:hover .story-date,
.story-item.is-hot .story-date {
  color: var(--rose);
}

.story-item:hover p,
.story-item.is-hot p {
  color: var(--muted);
}

.story-empty,
.gallery-empty {
  padding: 24px;
  color: var(--muted);
  background: rgba(255, 249, 237, .68);
  border: 1px solid var(--line);
}

.gallery-summary {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.gallery-groups {
  gap: 28px;
}

.gallery-group {
  border-top: 1px dashed rgba(86, 58, 38, .22);
}

.gallery-group-head {
  padding: 20px 0 16px;
}

.gallery-group-count {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
}

.gallery-grid,
.detail-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
  border-bottom: 0;
}

.gallery-card,
.detail-page .gallery-card {
  min-height: 0;
  padding: 12px 12px 22px;
  background: rgba(255, 249, 237, .74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.gallery-card:nth-child(2n) {
  border-right: 1px solid var(--line);
}

.media-frame,
.detail-page .media-frame {
  aspect-ratio: 1.26;
  margin-bottom: 16px;
  background: var(--paper-deep);
  border: 10px solid var(--paper-soft);
  border-bottom-width: 36px;
  box-shadow: 0 14px 28px rgba(92, 65, 39, .1);
}

.media-frame::before,
.media-frame::after {
  display: none;
}

.media-image,
.media-video,
.media-stream {
  background: var(--paper-deep);
}

.media-symbol {
  color: var(--wood);
  font-family: var(--display);
  font-size: 46px;
}

.gallery-meta {
  color: var(--rose);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
}

.gallery-card h3,
.detail-page .gallery-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(23px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.24;
}

.gallery-card p,
.detail-page .gallery-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.gallery-actions {
  margin-top: 28px;
}

.gallery-lightbox {
  background: rgba(63, 45, 33, .86);
}

.footer {
  padding: 34px clamp(18px, 5vw, 72px) 48px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  text-align: center;
  background: transparent;
}

@media (max-width: 920px) {
  .site-header,
  .site-header.is-light {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions,
  .detail-page .header-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .detail-page .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    min-height: 520px;
  }

  .detail-hero-media {
    min-height: 460px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid,
  .detail-page .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-header.is-light {
    min-height: 0;
    padding: 12px 16px;
  }

  .live-time {
    display: none;
  }

  .header-btn,
  .detail-page .header-btn {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero,
  .detail-page .hero {
    padding: 30px 16px 44px;
  }

  .hero-title,
  .detail-page .hero-title {
    font-size: clamp(38px, 13vw, 56px);
  }

  .hero-media {
    min-height: 430px;
  }

  .detail-hero-media {
    min-height: 390px;
  }

  .album-card.main {
    width: 74%;
    right: 0;
  }

  .detail-photo.primary {
    right: 0;
    width: 70%;
  }

  .album-card.side {
    width: 46%;
    top: 24%;
  }

  .detail-photo.secondary {
    width: 48%;
    bottom: 18%;
  }

  .caption-strip {
    width: 82%;
    bottom: 7%;
    padding: 18px;
  }

  .detail-photo-note {
    width: 84%;
    padding: 16px;
    bottom: 0;
  }

  .fact-strip,
  .story-toolbar,
  .detail-page .story-toolbar,
  .gallery-toolbar,
  .detail-page .gallery-toolbar {
    grid-template-columns: 1fr;
  }

  .section-inner,
  .detail-page .section-inner {
    width: min(100% - 32px, 1180px);
    padding: 36px 0 52px;
  }

  .content-panel,
  .detail-page .content-panel {
    padding: 22px;
  }

  .story-item,
  .detail-page .story-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .story-meta {
    align-items: flex-start;
  }
}
