/* Shared editorial styling for 思想的火花 (/writings), 生活的碎片 (/videos), 关于我 (/about)
   Harmonized with 奇思的创造 (/projects/gallery.css) */

@keyframes room-sub-in { from { opacity: 0; } to { opacity: 1; } }

.subpage:has(.sub-wrap > weizhi-writings-room),
.subpage:has(.sub-wrap > weizhi-videos-room),
.subpage:has(.sub-wrap > weizhi-about-room) {
  isolation: isolate;
  animation: room-sub-in .35s ease;
  background: #ece8dc;
  color: #272820;
  padding: clamp(17px, 3.3vw, 54px) clamp(20px, 6vw, 104px) 76px;
}

.sub-wrap:has(> weizhi-writings-room),
.sub-wrap:has(> weizhi-videos-room),
.sub-wrap:has(> weizhi-about-room) {
  position: relative;
  z-index: 1;
  max-width: 1216px;
}

.sub-wrap:has(> weizhi-writings-room) > .room-navigation,
.sub-wrap:has(> weizhi-videos-room) > .room-navigation,
.sub-wrap:has(> weizhi-about-room) > .room-navigation,
.sub-wrap:has(> weizhi-writings-room) > .sub-footer,
.sub-wrap:has(> weizhi-videos-room) > .sub-footer,
.sub-wrap:has(> weizhi-about-room) > .sub-footer {
  position: relative;
  z-index: 1;
}

weizhi-writings-room,
weizhi-videos-room,
weizhi-about-room {
  display: block;
  position: relative;
  --room-line: #c8bfac;
  --room-text: #272820;
  --room-muted: #545446;
  --room-sub: #77705c;
  --room-green: #253a32;
  --room-accent: #8f673e;
  --room-paper: rgba(252, 249, 240, .82);
  --room-paper-strong: rgba(255, 253, 247, .92);
}

weizhi-writings-room > :not(.room-backdrop),
weizhi-videos-room > :not(.room-backdrop),
weizhi-about-room > :not(.room-backdrop) {
  position: relative;
  z-index: 1;
}

weizhi-writings-room [hidden],
weizhi-videos-room [hidden],
weizhi-about-room [hidden] {
  display: none !important;
}

/* Full-viewport fixed editorial backdrop (identical architecture to projects/gallery.css) */
.room-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 68% 52% at 88% 10%, rgba(196, 174, 132, .22), transparent 62%),
    radial-gradient(ellipse 60% 48% at 10% 88%, rgba(114, 138, 122, .18), transparent 64%),
    radial-gradient(ellipse at 12% 8%, #fff9e6b5, transparent 38rem),
    repeating-linear-gradient(115deg, #7d735607 0 1px, transparent 1px 4px),
    #ece8dc;
}

.room-backdrop .room-wash {
  position: absolute;
  inset: -4%;
  background: url("./study-wide.jpg") 52% 45% / cover no-repeat;
  opacity: .065;
  filter: grayscale(.55) sepia(.28) contrast(.92) blur(1px);
  mix-blend-mode: multiply;
  transform: translate3d(calc(var(--bg-px, 0px) * .55), calc(var(--bg-py, 0px) * .55), 0) scale(1.04);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .35s ease;
}

.room-backdrop .room-art {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  color: #5b5240;
  opacity: .16;
  transform: translate3d(var(--bg-px, 0px), var(--bg-py, 0px), 0);
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), opacity .35s ease;
}

/* Top & bottom navigation */
.room-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.room-navigation-bottom {
  margin-top: clamp(32px, 4.5vw, 54px);
}

.room-navigation .back,
.room-navigation .room-subback {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 0;
  color: #515245;
  font-size: 14px;
  line-height: 1.35;
  border: 0;
  border-bottom: 1px solid #8e856e;
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}

.room-navigation .back:hover,
.room-navigation .room-subback:hover {
  color: var(--room-green);
  border-bottom-color: var(--room-green);
}

.room-navigation .room-subback[hidden] { display: none; }

/* Bilingual editorial header matching 奇思的创造 */
.room-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 36px;
  margin-block: clamp(28px, 4.8vw, 68px) clamp(24px, 3vw, 38px);
  padding-bottom: clamp(18px, 2.2vw, 28px);
  border-bottom: 1px solid var(--room-line);
}

.room-intro-title {
  min-width: 0;
  width: fit-content;
  text-align: center;
}

.room-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.65rem, 6.15vw, 5.8rem);
  font-weight: 400;
  letter-spacing: .045em;
  line-height: 1.14;
}

.room-intro-en {
  margin: 10px 0 0;
  padding-left: .34em;
  font-family: 'Bahnschrift', 'Avenir Next Condensed', 'Segoe UI Light', 'Helvetica Neue', sans-serif;
  font-size: clamp(15px, 1.45vw, 19px);
  font-weight: 300;
  font-stretch: 82%;
  line-height: 1.35;
  letter-spacing: .34em;
  color: var(--room-sub);
  text-transform: uppercase;
  text-align: center;
}

.room-intro-copy {
  flex-shrink: 0;
  text-align: right;
}

.room-intro-copy p {
  margin: 0;
  color: var(--room-muted);
  line-height: 1.6;
  font-size: 1rem;
}

.room-intro-copy .room-intro-copy-zh {
  white-space: nowrap;
  margin-right: -.38em;
}

.room-intro-copy .room-intro-copy-en {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: .035em;
  color: var(--room-sub);
}

/* Shared editorial footer matching 奇思的创造 */
.sub-wrap > .sub-footer.room-footer {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #c8bfac;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
}

.room-footer-main { display: grid; gap: 6px; }

.room-footer-brand {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .06em;
  color: #323329;
}

.room-footer-motto {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #5c594b;
}

.room-footer-pillars {
  margin: 0;
  font-size: 12px;
  letter-spacing: .16em;
  color: #7c745f;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Shared buttons & pills */
.room-btn,
.room-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #9c9988;
  border-radius: 5px;
  font: 500 14px/1.25 var(--sans);
  padding: 9px 16px;
  min-height: 40px;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.room-btn {
  color: #fff7e5;
  background: var(--room-green);
  border-color: var(--room-green);
  box-shadow: 0 4px 14px rgba(37, 58, 50, .18);
}

.room-btn:hover {
  color: #fffaf0;
  background: #344d43;
  border-color: #344d43;
  box-shadow: 0 6px 18px rgba(37, 58, 50, .25);
}

.room-chip {
  color: var(--room-green);
  background: rgba(255, 252, 244, .52);
  border-radius: 999px;
  padding: 6px 18px;
  min-height: 36px;
  font-size: 14px;
}

.room-chip:hover {
  background: #e6e1d3;
  border-color: #7c7a69;
}

.room-chip[aria-pressed="true"] {
  color: #fff7e5;
  background: var(--room-green);
  border-color: var(--room-green);
  box-shadow: 0 4px 12px rgba(37, 58, 50, .18);
}

/* Shared section heading */
.room-sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: clamp(32px, 4vw, 48px) 0 8px;
}

.room-sec-head.first { margin-top: 4px; }

.room-sec-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--room-text);
}

.room-sec-en {
  font-family: 'Bahnschrift', 'Avenir Next Condensed', 'Segoe UI Light', sans-serif;
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: .26em;
  color: var(--room-accent);
  text-transform: uppercase;
}

.room-sec-desc {
  margin: 0 0 24px;
  color: var(--room-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Text-to-content hairline divider with generous breathing room above cards */
.room-sec-desc.with-rule {
  padding-bottom: 18px;
  margin-bottom: clamp(28px, 3.4vw, 40px);
  border-bottom: 1px solid rgba(176, 163, 136, .68);
}

.room-sec-head.with-rule {
  padding-bottom: 16px;
  margin-bottom: clamp(22px, 2.6vw, 30px);
  border-bottom: 1px solid rgba(176, 163, 136, .68);
}

/* Artistic editorial ornament divider between major sections */
.room-section-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: clamp(48px, 6vw, 76px) 0 clamp(38px, 4.8vw, 58px);
  color: var(--room-accent);
  user-select: none;
}

.room-section-divider.compact {
  margin: clamp(30px, 3.6vw, 44px) 0 clamp(24px, 3vw, 34px);
}

.room-section-divider::before,
.room-section-divider::after {
  content: "";
  flex: 1;
  height: 3px;
  border-top: 1px solid rgba(143, 103, 62, .48);
  border-bottom: 1px solid rgba(37, 58, 50, .18);
}

.room-section-divider::before {
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000);
}

.room-section-divider::after {
  mask-image: linear-gradient(90deg, #000, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000, #000 86%, transparent);
}

.room-section-divider-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .28em;
  color: rgba(143, 103, 62, .85);
}

.room-section-divider-mark svg {
  display: block;
  width: 44px;
  height: 14px;
}

/* Subtle washi-tape accent inherited from drafts */
.washi-card {
  position: relative;
}

.washi-card::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(var(--tape-tilt, -1.8deg));
  width: 96px;
  height: 22px;
  background: rgba(214, 198, 158, .54);
  border-left: 1px dashed rgba(143, 103, 62, .34);
  border-right: 1px dashed rgba(143, 103, 62, .34);
  pointer-events: none;
  z-index: 2;
}

/* =========================================================
   1. 思想的火花 (WRITINGS)
   ========================================================= */
.writings-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.essay-featured {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(154, 134, 98, .32);
  border-radius: 8px;
  background: var(--room-paper);
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3.4vw, 40px);
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(36, 32, 22, .08);
  cursor: pointer;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.essay-featured:hover {
  background: var(--room-paper-strong);
  border-color: rgba(37, 58, 50, .38);
  box-shadow: 0 16px 36px rgba(36, 32, 22, .12);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .essay-featured:hover { transform: translateY(-2px); }
}

.essay-no {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--room-accent);
  font-variant-numeric: tabular-nums;
}

.essay-featured h2 {
  margin: 10px 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .04em;
  color: var(--room-text);
  transition: color .18s ease;
}

.essay-featured:hover h2,
.essay-item:hover h3 { color: var(--room-green); }

.essay-featured p {
  margin: 0;
  color: var(--room-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 68ch;
}

.essay-meta {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--room-sub);
}

.essay-list {
  border-top: 1px solid var(--room-line);
}

.essay-item {
  display: grid;
  grid-template-columns: minmax(110px, 148px) minmax(0, 1fr);
  gap: 10px 24px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--room-line);
  background: transparent;
  padding: 22px 6px;
  cursor: pointer;
  transition: background .18s ease, padding-left .18s ease;
}

.essay-item:hover {
  background: rgba(255, 252, 244, .48);
  padding-left: 12px;
}

.essay-item h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .03em;
  color: var(--room-text);
  transition: color .18s ease;
}

.essay-item p {
  margin: 0;
  color: var(--room-muted);
  font-size: 15px;
  line-height: 1.7;
}

.essay-empty {
  padding: 44px 0;
  text-align: center;
  color: var(--room-sub);
  letter-spacing: .2em;
  font-size: 14px;
}

/* Essay reading view */
.essay-post {
  max-width: 780px;
  margin: clamp(20px, 3vw, 36px) auto 0;
  padding: clamp(26px, 3.8vw, 48px) clamp(22px, 4vw, 52px);
  border: 1px solid rgba(154, 134, 98, .26);
  border-radius: 10px;
  background: var(--room-paper-strong);
  box-shadow: 0 14px 36px rgba(36, 32, 22, .08);
}

.essay-post-header {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--room-line);
}

.essay-post h2 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: .04em;
}

.essay-post h2[tabindex="-1"]:focus { outline: none; }

.essay-body p {
  margin: 0 0 1.35em;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.95;
  color: #302d25;
}

.essay-body p:first-of-type::first-letter {
  font-size: 2.35em;
  color: var(--room-green);
  line-height: 1;
  padding-right: 6px;
}

.essay-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--room-line);
}

.essay-pager button {
  border: 0;
  background: transparent;
  padding: 6px 0;
  color: var(--room-muted);
  font-size: 14.5px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.essay-pager button:hover {
  color: var(--room-green);
  border-bottom-color: var(--room-green);
}

/* =========================================================
   2. 生活的碎片 (VIDEOS / DARKROOM / MOMENTS)
   ========================================================= */
.videos-tabs-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  margin: -6px 0 16px;
}

.videos-tabs-cue-zh {
  font-family: var(--serif);
  font-size: 14.5px;
  letter-spacing: .24em;
  padding-left: .24em;
  color: var(--room-muted);
}

.videos-tabs-cue-en {
  font-family: 'Bahnschrift', 'Avenir Next Condensed', 'Segoe UI Light', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .32em;
  padding-left: .32em;
  color: var(--room-sub);
  text-transform: uppercase;
}

.videos-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  padding-bottom: 18px;
  margin-bottom: clamp(28px, 3.4vw, 40px);
  border-bottom: 1px solid rgba(176, 163, 136, .68);
}

.videos-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 16px 20px 18px;
  border: 1px solid rgba(154, 134, 98, .22);
  border-radius: 10px;
  background: rgba(255, 252, 245, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--room-muted);
  cursor: pointer;
  transition: background .24s ease, border-color .24s ease, box-shadow .24s ease, transform .18s ease, color .22s ease, backdrop-filter .24s ease;
}

.videos-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .52) 0%, rgba(255, 255, 255, .10) 46%, rgba(37, 58, 50, .05) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

.videos-tab::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 58, 50, .62) 20%, rgba(37, 58, 50, .62) 80%, transparent);
  transform: scaleX(0);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1);
}

.videos-tab:hover {
  background: rgba(255, 252, 245, .30);
  border-color: rgba(255, 255, 255, .62);
  color: var(--room-text);
  box-shadow: 0 8px 22px rgba(36, 32, 22, .07), inset 0 1px 0 rgba(255, 255, 255, .68);
}

.videos-tab:hover::before { opacity: .65; }

.videos-tab:active { transform: scale(.992); }

.videos-tab[aria-selected="true"] {
  background: rgba(255, 253, 247, .40);
  backdrop-filter: blur(16px) saturate(1.18);
  -webkit-backdrop-filter: blur(16px) saturate(1.18);
  border-color: rgba(255, 255, 255, .78);
  color: var(--room-text);
  box-shadow:
    0 12px 30px rgba(36, 32, 22, .10),
    0 1px 0 rgba(37, 58, 50, .14),
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -1px 0 rgba(154, 134, 98, .18);
}

.videos-tab[aria-selected="true"]::before { opacity: 1; }
.videos-tab[aria-selected="true"]::after { transform: scaleX(1); }

.videos-tab-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.videos-tab-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 400;
  letter-spacing: .12em;
  color: inherit;
}

.videos-tab-count {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(37, 58, 50, .09);
  color: var(--room-green);
  font-variant-numeric: tabular-nums;
}

.videos-tab[aria-selected="true"] .videos-tab-count {
  background: var(--room-green);
  color: #fff7e5;
}

.videos-tab-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--room-muted);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.video-frame {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(154, 134, 98, .32);
  border-radius: 8px;
  background: var(--room-paper);
  padding: 13px;
  box-shadow: 0 10px 26px rgba(36, 32, 22, .09);
  cursor: pointer;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.video-frame:hover {
  background: var(--room-paper-strong);
  border-color: rgba(37, 58, 50, .38);
  box-shadow: 0 16px 34px rgba(36, 32, 22, .14);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .video-frame:hover { transform: translateY(-3px); }
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 32% 30%, rgba(235, 220, 185, .5), transparent 60%),
    linear-gradient(135deg, #d7ccb1, #bfb08e);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #67593e;
  letter-spacing: .28em;
  font-size: 13px;
}

.video-thumb .video-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 3px;
  background: rgba(24, 34, 30, .62);
  border: 1px solid rgba(255, 246, 226, .35);
  backdrop-filter: blur(6px);
  color: #fff6e5;
  font-size: 18px;
  letter-spacing: 0;
  transition: transform .2s ease, background .2s ease;
}

.video-thumb .video-ph-label {
  padding-left: .28em;
  font-size: 12px;
  letter-spacing: .28em;
  color: #5f523a;
}

.video-frame:hover .video-play {
  transform: scale(1.07);
  background: rgba(37, 58, 50, .86);
}

.video-thumb .video-badge-from,
.video-thumb .video-badge-dur {
  position: absolute;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(22, 26, 24, .72);
  border: 1px solid rgba(255, 245, 226, .18);
  backdrop-filter: blur(6px);
  color: #fff5e4;
  font-size: 12px;
  letter-spacing: .08em;
}

.video-thumb .video-badge-from { left: 10px; }
.video-thumb .video-badge-dur { right: 10px; }

.video-frame .video-no {
  margin: 13px 4px 0;
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--room-accent);
  font-variant-numeric: tabular-nums;
}

.video-frame h3 {
  margin: 6px 4px 4px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.38;
  color: var(--room-text);
  transition: color .18s ease;
}

.video-frame:hover h3 { color: var(--room-green); }

.video-frame .video-desc {
  margin: 0 4px 4px;
  color: var(--room-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Video pagination (< 1 2 3 ... >) */
.room-pager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.room-pager-bottom {
  margin-top: 28px;
  margin-bottom: 0;
}

.room-pager-info {
  font-size: 13.5px;
  color: var(--room-sub);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.room-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.room-page-num,
.room-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(154, 134, 98, .35);
  border-radius: 6px;
  background: rgba(255, 253, 247, .48);
  backdrop-filter: blur(8px);
  color: var(--room-muted);
  font: 500 13.5px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.room-page-num:hover:not(:disabled),
.room-page-arrow:hover:not(:disabled) {
  background: rgba(255, 253, 247, .85);
  border-color: rgba(37, 58, 50, .45);
  color: var(--room-text);
}

.room-page-num.active {
  background: var(--room-green);
  border-color: var(--room-green);
  color: #fff7e5;
  box-shadow: 0 4px 12px rgba(37, 58, 50, .20);
}

.room-page-arrow:disabled {
  opacity: .38;
  cursor: not-allowed;
}

/* Darkroom horizontal grid + left/right arrows */
.photo-status-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.photo-count-text {
  font-family: var(--serif);
  font-size: 15.5px;
  letter-spacing: .06em;
  color: var(--room-text);
}

.photo-page-text {
  font-size: 13.5px;
  color: var(--room-sub);
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

.photo-carousel {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 16px;
}

.photo-nav-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 253, 247, .42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--room-green);
  font-size: 26px;
  line-height: 1;
  padding-bottom: 3px;
  box-shadow: 0 8px 22px rgba(36, 32, 22, .10), inset 0 1px 0 rgba(255, 255, 255, .82);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.photo-nav-arrow:hover:not(:disabled) {
  background: rgba(255, 253, 247, .78);
  border-color: rgba(37, 58, 50, .42);
  box-shadow: 0 10px 26px rgba(36, 32, 22, .15);
  transform: scale(1.06);
}

.photo-nav-arrow:active:not(:disabled) { transform: scale(.96); }

.photo-nav-arrow:disabled {
  opacity: .32;
  cursor: not-allowed;
  box-shadow: none;
}

.photo-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.photo-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.photo-shot {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(154, 134, 98, .32);
  border-radius: 7px;
  background: var(--room-paper);
  padding: 11px;
  margin: 0;
  box-shadow: 0 8px 22px rgba(36, 32, 22, .08);
  cursor: pointer;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease, border-color .22s ease;
}

.photo-shot img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.photo-shot .photo-ph {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(146, 138, 118, .12) 0 1px, transparent 1px 10px),
    linear-gradient(135deg, #ddd3ba, #c9ba96);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c5d41;
  letter-spacing: .28em;
  font-size: 13px;
}

.photo-shot .photo-no {
  margin: 10px 2px 0;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--room-accent);
  font-variant-numeric: tabular-nums;
}

.photo-shot .photo-cap {
  margin: 5px 2px 2px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--room-muted);
}

/* Moments strip */
.moments-strip {
  margin-top: 0;
}

.moment-row {
  display: flex;
  gap: 18px;
  padding: 13px 4px;
  border-bottom: 1px dashed var(--room-line);
  font-size: 15px;
  line-height: 1.65;
}

.moment-date {
  color: var(--room-accent);
  white-space: nowrap;
  font-size: 13.5px;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}

.moment-text { color: var(--room-muted); }

/* Native dialog modal for video player & photo lightbox */
.room-dialog {
  width: min(920px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100% - 28px);
  padding: 0;
  border: 1px solid #aaa290;
  border-radius: 8px;
  color: var(--room-text);
  background: #f3efe5;
  box-shadow: 0 24px 60px rgba(15, 18, 16, .42);
}

.room-dialog::backdrop { background: rgba(20, 24, 21, .82); }

.room-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 11px 16px;
  border-bottom: 1px solid var(--room-line);
}

.room-dialog-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.room-dialog-body {
  padding: 16px;
  overflow: auto;
  max-height: calc(90dvh - 64px);
}

.room-dialog-stage iframe,
.room-dialog-stage video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 5px;
  background: #0d1016;
}

.room-dialog-stage img {
  display: block;
  width: 100%;
  max-height: 68dvh;
  object-fit: contain;
  border-radius: 5px;
  background: #141720;
}

.room-dialog-empty {
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  background: #151820;
  color: #d8c8a2;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .24em;
  font-size: 14px;
}

.room-dialog-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.room-dialog-meta h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
}

.room-dialog-meta p {
  margin: 0;
  color: var(--room-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   3. 关于我 (ABOUT)
   ========================================================= */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .88fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.about-statement {
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1.35vw, 1.18rem);
  line-height: 1.95;
  color: #2f2d24;
}

.about-statement p { margin: 0 0 16px; }
.about-statement p:last-child { margin-bottom: 0; }
.about-todo { color: var(--room-sub); font-size: .95rem; }

.about-timeline {
  border-left: 1px solid var(--room-line);
  padding-left: 24px;
  margin: 8px 0 0 6px;
}

.about-event {
  position: relative;
  padding: 0 0 22px;
}

.about-event:last-child { padding-bottom: 4px; }

.about-event::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--room-green);
  box-shadow: 0 0 0 3px #ece8dc;
}

.about-event-date {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--room-accent);
  font-variant-numeric: tabular-nums;
}

.about-event-text {
  margin: 4px 0 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--room-text);
}

.about-card {
  border: 1px solid rgba(154, 134, 98, .32);
  border-radius: 8px;
  background: var(--room-paper);
  padding: clamp(22px, 2.8vw, 30px);
  box-shadow: 0 12px 30px rgba(36, 32, 22, .08);
}

.about-card + .about-card { margin-top: 24px; }

.about-now-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--room-text);
}

.about-now-desc {
  margin: 0;
  color: var(--room-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.about-progress {
  height: 7px;
  border-radius: 999px;
  background: #dfd7c4;
  overflow: hidden;
  margin: 14px 0 10px;
}

.about-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--room-green), #436658);
}

.about-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--room-sub);
  font-variant-numeric: tabular-nums;
}

.about-card-actions {
  margin-top: 16px;
}

.about-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.about-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--room-line);
  background: rgba(255, 252, 244, .65);
  color: var(--room-text);
  font-size: 14px;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

a.about-contact-pill:hover,
button.about-contact-copy:hover {
  background: var(--room-green);
  border-color: var(--room-green);
  color: #fff7e5;
}

button.about-contact-copy {
  cursor: pointer;
  font-family: inherit;
}

button.about-contact-copy .copy-hint {
  font-style: normal;
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(37, 58, 50, .10);
  color: var(--room-green);
  transition: background .18s ease, color .18s ease;
}

button.about-contact-copy:hover .copy-hint {
  background: rgba(255, 247, 229, .22);
  color: #fff7e5;
}

.about-contact-pill.is-todo {
  border-style: dashed;
  color: var(--room-sub);
  background: transparent;
}

.about-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(176, 163, 136, .5);
}

.about-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(154, 134, 98, .28);
  border-radius: 8px;
  background: rgba(255, 253, 248, .78);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.about-qr-item:hover {
  background: #fffdf9;
  border-color: rgba(37, 58, 50, .42);
  box-shadow: 0 10px 22px rgba(36, 32, 22, .10);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about-qr-item:hover { transform: translateY(-2px); }
}

.about-qr-box {
  display: block;
  width: min(148px, 100%);
  aspect-ratio: 1 / 1;
  padding: 6px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(154, 134, 98, .22);
  box-shadow: 0 4px 12px rgba(36, 32, 22, .06);
}

.about-qr-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-qr-title {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--room-text);
}

.about-qr-sub {
  font-size: 12px;
  line-height: 1.45;
  color: var(--room-sub);
}

.about-qr-dialog {
  width: min(480px, calc(100% - 28px));
}

/* Responsive */
@media (max-width: 960px) {
  .room-intro { display: block; margin-top: 26px; }
  .room-intro-copy { margin-top: 14px; text-align: left; }
  .room-intro-copy .room-intro-copy-zh { white-space: normal; margin-right: 0; }
  .about-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .photo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .photo-carousel { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 10px; }
  .photo-nav-arrow { width: 36px; height: 36px; font-size: 20px; }
  .essay-item { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 680px) {
  .room-backdrop .room-wash { opacity: .05; }
  .room-backdrop .room-art { opacity: .11; }
  .videos-tabs { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .sub-wrap > .sub-footer.room-footer { align-items: flex-start; }
  .room-footer-pillars { white-space: normal; line-height: 1.6; letter-spacing: .12em; }
}

@media (max-width: 480px) {
  .photo-wall { grid-template-columns: 1fr; }
}
