/* 「门里」木桌电脑悬停提示 + 3D 露天电影老白布幕布投影作品集样式
 * 彻底抛弃传统弹窗盒子与卡片网格：全屏活庭院保持可见，真实物理布料从电脑钻出垂落，
 * 作品内容以无边框投影（mix-blend-mode: multiply）融入粗棉织纹与随风起伏的 3D 褶皱阴影之中。
 */

#courtyard.is-hovering-laptop {
  cursor: pointer;
}

#laptop-hint {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgb(81 58 39 / 22%);
  border-radius: 999px;
  background: rgb(249 245 231 / 94%);
  box-shadow: 0 6px 20px rgb(54 38 25 / 12%);
  color: #463425;
  font: 500 12.5px / 1 var(--serif);
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 8px)) scale(0.96);
  transition: opacity 180ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(8px);
}

#laptop-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 14px)) scale(1);
}

#laptop-hint .hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a74a38;
  box-shadow: 0 0 0 3px rgb(167 74 56 / 18%);
}

#laptop-hint .hint-arrow {
  color: #8c6a4a;
  font-family: var(--sans);
  font-size: 11px;
}

/* 键盘无障碍直达入口：平时透明隐身，Tab 聚焦时在左上角浮现 */
#open-portfolio-a11y {
  position: absolute;
  top: max(clamp(16px, 3.6vh, 40px), env(safe-area-inset-top));
  left: max(var(--gutter), env(safe-area-inset-left));
  opacity: 0;
  pointer-events: none;
}

#open-portfolio-a11y:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

/* 幕布垂挂时柔和隐去右上角控件，让竹杆与吊绳利落清爽不被按钮穿插 */
body.is-cinema-open #back,
body.is-cinema-open .season-dock {
  opacity: 0;
  pointer-events: none;
}

/* ==================== 露天电影布料幕布空间层 ==================== */

.portfolio-overlay {
  --cinema-ink: #2c2017;
  --cinema-ink-mid: #4e3b2b;
  --cinema-ink-soft: #755f4b;
  --cinema-rule: rgb(74 54 38 / 20%);
  --cinema-rule-strong: rgb(74 54 38 / 34%);
  --cinema-seal: #a74a38;
  --cinema-sans: "IBM Plex Sans SC", "PingFang SC", system-ui, -apple-system, sans-serif;

  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  /* 极轻的暮光滤纱：四周活生生的麦田、老槐树与小猫清晰可见，绝不糊成暗灰弹窗遮罩 */
  background: rgb(42 33 24 / 0%);
  transition: background-color 480ms ease;
}

.portfolio-overlay[hidden] {
  display: none;
}

.portfolio-overlay.is-open {
  background: rgb(42 33 24 / 15%);
}

/* 全视口 3D Verlet 物理布料画布（横杆、麻绳、粗棉布主体、褶皱阴影与四角垂穗） */
.cloth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ==================== 投射在粗棉幕布上的无框放映内容 ==================== */

.cloth-projection {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2.4vw, 32px) clamp(20px, 3vw, 40px) clamp(14px, 2vw, 24px);
  color: var(--cinema-ink);
  font-family: var(--cinema-sans);
  /* 关键：正片叠底让墨迹、细线与作品画面自然吃进下方的粗棉经纬纹理与实时风动褶皱阴影里 */
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
  filter: blur(2.5px);
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 440ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.portfolio-overlay.is-projected .cloth-projection {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
}

/* 2D 无 WebGL 降级：保留宣纸布质感与锁边 */
.portfolio-overlay.is-fallback .cloth-projection {
  mix-blend-mode: normal;
  border: 1px dashed rgb(91 69 51 / 28%);
  border-radius: 4px;
  background: #f3ecdc;
  box-shadow: 0 20px 56px rgb(42 30 18 / 22%);
}

/* 顶部极简放映头行（零弹窗顶栏感，仅一行呼吸感墨迹与细线） */
.cinema-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cinema-rule);
  flex-shrink: 0;
}

.cinema-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cinema-seal {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1.3px solid rgb(167 74 56 / 82%);
  border-radius: 3px;
  color: var(--cinema-seal);
  font: 600 12.5px / 1 var(--serif);
  user-select: none;
}

.cinema-title {
  margin: 0;
  color: var(--cinema-ink);
  font: 600 15.5px / 1.2 var(--serif);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.cinema-reel-counter {
  color: var(--cinema-ink-soft);
  font: 500 12px / 1 var(--serif);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.cinema-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cinema-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgb(74 54 38 / 26%);
  border-radius: 999px;
  background: transparent;
  color: var(--cinema-ink-mid);
  font: 500 12.5px / 1 var(--cinema-sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.cinema-action:hover {
  background: rgb(74 54 38 / 8%);
  border-color: rgb(74 54 38 / 46%);
  color: var(--cinema-ink);
}

.cloth-projection button:focus:not(:focus-visible) {
  outline: none;
}

.cloth-projection button:focus-visible {
  outline: 1.5px solid rgb(167 74 56 / 58%);
  outline-offset: 2px;
}

.cinema-action-text {
  border-color: transparent;
  padding: 0 6px;
}

.cinema-action-text:hover {
  background: transparent;
  border-color: transparent;
  color: var(--cinema-seal);
}

/* ==================== 放映主舞台（单卷电影级大画幅构图） ==================== */

.cinema-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(14px, 2.2vw, 24px) 0;
  transition: opacity 200ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cinema-stage.is-switching {
  opacity: 0.18;
  transform: translateX(8px);
}

/* 概览放映布局：左侧大画幅 UI 投影画面 + 右侧克制策展解说 */
.reel-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  height: 100%;
  min-height: 0;
}

.reel-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 100%;
  border: 1px solid var(--cinema-rule);
  border-radius: 4px;
  overflow: hidden;
  background: rgb(230 220 198 / 38%);
}

.reel-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.reel-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  color: var(--cinema-ink-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.reel-season-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid var(--cinema-rule);
  border-radius: 999px;
  color: var(--cinema-ink-mid);
  font-weight: 500;
}

.reel-season-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--work-accent, #6c8b63);
}

.reel-title {
  margin: 0;
  color: var(--cinema-ink);
  font: 600 clamp(21px, 2.5vw, 28px) / 1.32 var(--serif);
  letter-spacing: 0.03em;
}

.reel-subtitle {
  margin: -4px 0 0;
  color: var(--cinema-ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.reel-summary {
  margin: 2px 0 0;
  color: var(--cinema-ink-mid);
  font-size: 13.5px;
  line-height: 1.82;
}

/* 三栏建筑细线指标条（无卡片底色，纯细线投影） */
.reel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--cinema-rule);
  border-bottom: 1px solid var(--cinema-rule);
}

.reel-metric-val {
  color: var(--cinema-ink);
  font: 600 15.5px / 1.3 var(--serif);
}

.reel-metric-lbl {
  margin-top: 3px;
  color: var(--cinema-ink-soft);
  font-size: 11.5px;
}

.reel-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.reel-role {
  color: var(--cinema-ink-soft);
  font-size: 12px;
}

.reel-open-notes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1.2px solid rgb(167 74 56 / 58%);
  background: transparent;
  color: var(--cinema-seal);
  font: 600 13px / 1.2 var(--serif);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 150ms ease, transform 180ms ease;
}

.reel-open-notes:hover {
  opacity: 0.82;
  transform: translateX(3px);
}

/* ==================== 设计手记详览模式（在布内无框滚动阅读） ==================== */

.reel-notes {
  height: 100%;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgb(74 54 38 / 24%) transparent;
}

.reel-notes::-webkit-scrollbar {
  width: 5px;
}

.reel-notes::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(74 54 38 / 22%);
}

.reel-notes-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 12px;
}

.notes-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notes-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--cinema-rule);
  border-radius: 4px;
  overflow: hidden;
  background: rgb(230 220 198 / 32%);
}

.notes-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notes-block {
  padding: 12px 0 12px 16px;
  border-left: 2px solid var(--work-accent, #8c6a4a);
}

.notes-block h3 {
  margin: 0 0 8px;
  color: var(--cinema-ink);
  font: 600 15px / 1.35 var(--serif);
  letter-spacing: 0.06em;
}

.notes-block p {
  margin: 0;
  color: var(--cinema-ink-mid);
  font-size: 13.5px;
  line-height: 1.88;
}

.notes-list {
  margin: 0;
  padding-left: 16px;
  color: var(--cinema-ink-mid);
  font-size: 13.5px;
  line-height: 1.9;
}

.notes-list li::marker {
  color: var(--work-accent, #8c6a4a);
}

/* ==================== 内置投影界面画板 ==================== */

.ui-mock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}

.ui-mock svg {
  width: 100%;
  height: 100%;
  max-width: 480px;
}

/* ==================== 底部胶片卷目切换带 ==================== */

.cinema-reels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding-top: 12px;
  border-top: 1px solid var(--cinema-rule);
  flex-shrink: 0;
}

.reel-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}

.reel-tab {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--cinema-ink-soft);
  font: 500 13px / 1 var(--serif);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 160ms ease;
}

.reel-tab-num {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}

.reel-tab:hover {
  color: var(--cinema-ink);
}

.reel-tab[aria-pressed="true"] {
  color: var(--cinema-ink);
  font-weight: 600;
}

.reel-tab[aria-pressed="true"]::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--cinema-seal);
  content: "";
}

.cinema-foot-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cinema-ink-soft);
  font-size: 12px;
}

.cinema-foot-right a {
  color: var(--cinema-ink-mid);
  text-decoration: none;
  border-bottom: 1px solid rgb(74 54 38 / 30%);
}

.cinema-foot-right a:hover {
  color: var(--cinema-seal);
  border-bottom-color: var(--cinema-seal);
}

.reel-arrows {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reel-arrow-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--cinema-rule);
  border-radius: 50%;
  background: transparent;
  color: var(--cinema-ink-mid);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.reel-arrow-btn:hover {
  background: rgb(74 54 38 / 8%);
  border-color: var(--cinema-rule-strong);
}

.cloth-projection.is-works-gallery,
.cloth-projection.is-case-detail {
  /* 真实 UI 作品截图、视频与二维码保持准确原色不发灰，四周留白与细线仍自然透出下方 3D 物理粗棉布纹 */
  mix-blend-mode: normal;
  padding: clamp(16px, 2.2vw, 24px) clamp(18px, 2.6vw, 32px) clamp(12px, 1.5vw, 18px);
}

/* ==================== 微信联系二维码浮层 ==================== */

.cinema-qr-popover {
  position: absolute;
  top: 56px;
  right: clamp(18px, 2.6vw, 32px);
  z-index: 20;
  width: 192px;
  padding: 12px;
  border: 1px solid var(--cinema-rule-strong);
  border-radius: 8px;
  background: rgb(252 248 238 / 97%);
  box-shadow: 0 14px 36px rgb(42 30 18 / 18%);
  backdrop-filter: blur(8px);
}

.cinema-qr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--cinema-ink);
  font: 600 12.5px / 1.2 var(--serif);
  letter-spacing: 0.06em;
}

.cinema-qr-close {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cinema-ink-soft);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.cinema-qr-close:hover {
  background: rgb(74 54 38 / 10%);
  color: var(--cinema-ink);
}

.cinema-qr-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--cinema-rule);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.cinema-qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinema-qr-caption {
  margin: 8px 0 0;
  color: var(--cinema-ink-soft);
  font-size: 11.5px;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ==================== 幕上选集：六卷真实作品展墙 ==================== */

.works-gallery-stage {
  justify-content: flex-start;
  padding: 10px 0 8px;
  overflow: hidden;
}

.works-intro-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 10px;
  flex-shrink: 0;
}

.works-intro-lead {
  margin: 0;
  color: var(--cinema-ink-mid);
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.works-intro-aside {
  color: var(--cinema-ink-soft);
  font: 500 11.5px / 1.3 var(--serif);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.works-grid-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 8px 4px 1px;
  scrollbar-width: thin;
  scrollbar-color: rgb(74 54 38 / 24%) transparent;
}

.works-grid-scroll::-webkit-scrollbar,
.case-scroll::-webkit-scrollbar {
  width: 5px;
}

.works-grid-scroll::-webkit-scrollbar-thumb,
.case-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(74 54 38 / 24%);
}

.works-cloth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.work-cloth-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid rgb(74 54 38 / 22%);
  border-radius: 5px;
  background: rgb(252 248 238 / 78%);
  color: var(--cinema-ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease,
    box-shadow 200ms ease,
    background-color 180ms ease;
}

.work-cloth-card:hover {
  transform: translateY(-2px);
  border-color: rgb(167 74 56 / 48%);
  background: rgb(253 250 242 / 94%);
  box-shadow: 0 8px 20px rgb(54 38 25 / 11%);
}

.work-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  background: #ede4d1;
  border-bottom: 1px solid rgb(74 54 38 / 12%);
  overflow: hidden;
}

.work-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-cloth-card:hover .work-card-media img {
  transform: scale(1.035);
}

.work-card-num {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 6px;
  border: 1px solid rgb(74 54 38 / 22%);
  border-radius: 3px;
  background: rgb(252 248 238 / 90%);
  color: var(--cinema-ink);
  font: 600 10px / 1.15 var(--serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.work-card-video-pill {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgb(44 32 23 / 78%);
  color: #f9f3e3;
  font: 500 9.5px / 1.25 var(--cinema-sans);
  letter-spacing: 0.04em;
}

.work-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 9px 7px;
  min-width: 0;
}

.work-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.work-card-title {
  margin: 0;
  color: var(--cinema-ink);
  font: 600 13.5px / 1.3 var(--serif);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-card-year {
  color: var(--cinema-ink-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.work-card-desc {
  margin: 0;
  color: var(--cinema-ink-mid);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px dashed rgb(74 54 38 / 14%);
  font-size: 10.5px;
}

.work-card-tags {
  color: var(--cinema-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-card-enter {
  color: var(--cinema-seal);
  font: 600 11px / 1 var(--serif);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  transition: transform 180ms ease;
}

.work-cloth-card:hover .work-card-enter {
  transform: translateX(3px);
}

.works-gallery-foot {
  padding-top: 9px;
}

.works-foot-copy {
  color: var(--cinema-ink-soft);
  font: 500 11.5px / 1.35 var(--serif);
  letter-spacing: 0.05em;
}

.works-foot-tip {
  color: var(--cinema-ink-soft);
  font-size: 11.5px;
}

/* ==================== 单个作品视觉优先长卷详情视图 ==================== */

.cinema-back-btn {
  padding: 0 11px;
  font-size: 12px;
  flex-shrink: 0;
}

.case-head-meta {
  color: var(--cinema-ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-detail-stage {
  justify-content: flex-start;
  padding: 10px 0 8px;
  overflow: hidden;
}

.case-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 8px 6px 1px;
  scrollbar-width: thin;
  scrollbar-color: rgb(74 54 38 / 26%) transparent;
}

.case-article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin: 0 auto;
}

/* 完整案例高清分镜长图与自动循环演示视频无缝画卷 */
.case-plates {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgb(74 54 38 / 18%);
  border-radius: 6px;
  overflow: hidden;
  background: #fbf7ed;
  box-shadow: 0 8px 22px rgb(54 38 25 / 9%);
}

.case-plate {
  position: relative;
  margin: 0;
  width: 100%;
  background: #efe6d4;
  line-height: 0;
}

.case-media-img,
.case-media-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(44 32 23 / 74%);
  color: #f9f3e3;
  font: 500 10.5px / 1.25 var(--cinema-sans);
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* 案例末尾极轻一行跋文（无厚重卡片盒，静默衬底） */
.case-colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  padding: 10px 4px 4px;
  border-top: 1px solid var(--cinema-rule);
}

.case-colophon-summary {
  margin: 0;
  flex: 1 1 320px;
  color: var(--cinema-ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.case-colophon-role {
  color: var(--cinema-ink-soft);
  font-size: 11.5px;
  white-space: nowrap;
}

/* 详情页底栏：清爽三段式上下篇导航 */
.case-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding-top: 10px;
}

.case-foot-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--cinema-ink-mid);
  font: 500 12.5px / 1.2 var(--serif);
  letter-spacing: 0.04em;
  cursor: pointer;
  min-width: 0;
  justify-self: start;
  transition: color 150ms ease;
}

.case-foot-next {
  justify-self: end;
}

.case-foot-nav:hover {
  color: var(--cinema-seal);
}

.case-foot-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-foot-arrow {
  flex-shrink: 0;
  color: var(--cinema-ink-soft);
  transition: transform 160ms ease, color 150ms ease;
}

.case-foot-nav:hover .case-foot-arrow {
  color: var(--cinema-seal);
  transform: translateX(-2px);
}

.case-foot-next:hover .case-foot-arrow {
  transform: translateX(2px);
}

.case-foot-index {
  color: var(--cinema-ink-soft);
  font: 500 11.5px / 1 var(--cinema-sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

@media (max-width: 820px) {
  .case-head-meta {
    display: none;
  }

  .works-cloth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .work-card-media {
    aspect-ratio: 16 / 9.8;
  }
}

@media (max-width: 520px) {
  .works-cloth-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .reel-spread {
    grid-template-columns: 1fr;
    gap: 14px;
    align-content: start;
    overflow-y: auto;
  }

  .reel-visual {
    aspect-ratio: 16 / 9;
  }

  .cinema-foot-right .cinema-contact {
    display: none;
  }
}

/* ==================== 展厅「正在装修中」主题样式与微动效 ==================== */

.cloth-projection.is-renovation {
  padding: clamp(14px, 2vw, 24px) clamp(18px, 2.8vw, 34px) clamp(12px, 1.6vw, 18px);
}

.cloth-projection.is-renovation .reno-head {
  border-bottom: 0;
  padding-bottom: 8px;
}

.reno-head-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px dashed rgb(167 74 56 / 45%);
  border-radius: 999px;
  color: var(--cinema-seal);
  font: 500 11.5px / 1.2 var(--cinema-sans);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.reno-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c45c3e;
  box-shadow: 0 0 0 2.5px rgb(196 92 62 / 20%);
  animation: renoPulse 2.4s ease-in-out infinite;
}

/* 复古暖赭与墨色斜纹施工警戒细条，经正片叠底自然吃进粗棉布纹 */
.reno-caution-strip {
  height: 5px;
  border-radius: 2px;
  flex-shrink: 0;
  opacity: 0.72;
  background: repeating-linear-gradient(
    -45deg,
    rgb(213 154 59 / 76%) 0 9px,
    rgb(58 42 28 / 68%) 9px 18px
  );
}

.reno-stage {
  padding: clamp(10px, 1.5vw, 16px) 0;
  overflow: hidden;
}

.reno-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(16px, 2.5vw, 30px);
  height: 100%;
  min-height: 0;
}

/* 统一建筑网格展墙容器：横屏与竖屏均铺满列宽、底部带施工警示边、顶角贴美纹纸 */
.reno-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 100%;
  padding: 0 0 8px;
  border: 1px solid rgb(140 116 88 / 45%);
  border-radius: 5px;
  background-color: #fbf5e6;
  background-image:
    linear-gradient(to right, rgb(155 134 107 / 17%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(155 134 107 / 17%) 1px, transparent 1px);
  background-size: 20px 20px;
  cursor: pointer;
  text-align: left;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reno-visual::before,
.reno-visual::after {
  position: absolute;
  top: -4px;
  width: 24px;
  height: 7px;
  border-radius: 1px;
  border: 1px solid rgb(182 146 89 / 68%);
  background: rgb(228 198 140 / 88%);
  pointer-events: none;
  content: "";
  z-index: 2;
}

.reno-visual::before {
  left: 6px;
  transform: rotate(-22deg);
}

.reno-visual::after {
  right: 6px;
  transform: rotate(22deg);
}

.reno-visual:hover {
  transform: translateY(-2px);
}

.reno-visual.is-nudged {
  animation: renoNudge 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reno-scene-svg {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 0 6px;
}

.reno-scene-svg::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
  border-radius: 0 0 4px 4px;
  background: repeating-linear-gradient(
    -45deg,
    rgb(213 154 59 / 82%) 0 8px,
    rgb(58 42 28 / 74%) 8px 16px
  );
  content: "";
}

.reno-scene-svg svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* 倾斜朱砂「装修施工中」橡胶印章（落于墙面左上干净网格处，零重叠） */
.reno-stamp {
  position: absolute;
  top: 9%;
  left: 4.5%;
  padding: 3px 9px;
  border: 1.7px solid rgb(167 74 56 / 74%);
  border-radius: 3px;
  color: rgb(167 74 56 / 88%);
  font: 700 clamp(11px, 1.15vw, 13px) / 1.15 var(--serif);
  letter-spacing: 0.14em;
  transform: rotate(-7deg);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(167 74 56 / 26%);
  background: rgb(251 245 230 / 62%);
  z-index: 2;
}

.reno-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.reno-badge {
  border-color: rgb(167 74 56 / 34%);
  color: var(--cinema-ink);
}

.reno-note-tag {
  color: var(--cinema-ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.reno-title {
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.28;
  letter-spacing: 0.04em;
}

.cloth-projection.is-renovation .reel-subtitle {
  margin: -2px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
}

.cloth-projection.is-renovation .reel-summary {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.66;
}

/* 细线施工进度条 */
.reno-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}

.reno-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--cinema-ink-soft);
  letter-spacing: 0.06em;
}

.reno-progress-head strong {
  color: var(--cinema-ink);
  font: 600 14.5px / 1 var(--serif);
  font-variant-numeric: tabular-nums;
}

.reno-progress-track {
  position: relative;
  height: 7px;
  border: 1px solid var(--cinema-rule-strong);
  border-radius: 999px;
  background: rgb(228 216 192 / 48%);
  overflow: hidden;
}

.reno-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: repeating-linear-gradient(
    -45deg,
    #b75d38 0 8px,
    #d59a3b 8px 16px
  );
  background-size: 22.6px 22.6px;
  animation: renoStripeFlow 2.6s linear infinite;
}

/* 三阶段施工状态细线栏 */
.reno-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--cinema-rule);
  border-bottom: 1px solid var(--cinema-rule);
}

.reno-stage-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cinema-ink);
  font: 600 13px / 1.25 var(--serif);
}

.reno-stage-mark {
  font-size: 11px;
  font-family: var(--cinema-sans);
}

.reno-stage-item.is-done .reno-stage-mark {
  color: #54724a;
}

.reno-stage-item.is-active .reno-stage-status,
.reno-stage-item.is-active .reno-stage-mark {
  color: var(--cinema-seal);
}

.reno-stage-item.is-todo .reno-stage-status {
  color: var(--cinema-ink-soft);
}

.reno-stage-lbl {
  margin-top: 2px;
  color: var(--cinema-ink-soft);
  font-size: 11px;
  line-height: 1.35;
}

/* 工地小记便签条 + 敲一敲催工轻互动 */
.reno-log-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  padding: 7px 10px;
  border: 1px dashed rgb(74 54 38 / 28%);
  border-radius: 4px;
  background: rgb(235 224 198 / 42%);
  font-size: 12px;
  line-height: 1.48;
}

.reno-log-prefix {
  padding: 1px 6px;
  border-radius: 2px;
  background: rgb(74 54 38 / 12%);
  color: var(--cinema-ink);
  font: 600 10.5px / 1.4 var(--serif);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.reno-log-text {
  flex: 1 1 160px;
  color: var(--cinema-ink-mid);
}

.reno-log-text.is-pop {
  animation: renoLogPop 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reno-nudge-btn {
  padding: 2px 0;
  border: 0;
  border-bottom: 1.2px solid rgb(167 74 56 / 54%);
  background: transparent;
  color: var(--cinema-seal);
  font: 600 11.5px / 1.2 var(--serif);
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 150ms ease, transform 180ms ease;
}

.reno-nudge-btn:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.reno-foot {
  padding-top: 9px;
  gap: 6px 14px;
}

.reno-foot-hint {
  color: var(--cinema-ink-soft);
  font: 500 12px / 1.35 var(--serif);
  letter-spacing: 0.06em;
}

/* SVG 现场微动效：轻柔吊灯摇曳、刷墙滚筒往复、监工小猫眨眼 */
.reno-lamp-swing {
  transform-origin: 236px 0px;
  animation: renoLampSwing 4.8s ease-in-out infinite;
}

.reno-roller-group {
  animation: renoRollerStroke 3.6s ease-in-out infinite;
}

.reno-cat-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: renoCatBlink 5.4s ease-in-out infinite;
}

@keyframes renoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.86); }
}

@keyframes renoLampSwing {
  0%, 100% { transform: rotate(-3.2deg); }
  50% { transform: rotate(3.2deg); }
}

@keyframes renoRollerStroke {
  0%, 100% { transform: translateY(-18px); }
  50% { transform: translateY(26px); }
}

@keyframes renoCatBlink {
  0%, 44%, 49%, 100% { transform: scaleY(1); }
  46.5% { transform: scaleY(0.1); }
}

@keyframes renoStripeFlow {
  from { background-position: 0 0; }
  to { background-position: 22.6px 0; }
}

@keyframes renoNudge {
  0% { transform: scale(1); }
  30% { transform: scale(0.985) rotate(-0.6deg); }
  65% { transform: scale(1.01) rotate(0.4deg); }
  100% { transform: scale(1); }
}

@keyframes renoLogPop {
  from { opacity: 0.25; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .reno-stage {
    justify-content: center;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .reno-spread {
    grid-template-columns: 1fr;
    gap: 11px;
    height: auto;
    align-content: start;
  }

  .reno-visual {
    aspect-ratio: auto;
    height: clamp(164px, 22vh, 198px);
  }

  .reno-copy {
    gap: 7px;
  }

  .reno-title {
    font-size: clamp(19px, 3vw, 22px);
  }

  .reno-stages {
    padding: 8px 0;
  }

  .reno-stamp {
    top: 9%;
    left: 3.5%;
  }

  /* 装修模式底栏元素更简洁，中窄屏保留联系邮箱 */
  .cloth-projection.is-renovation .cinema-foot-right .cinema-contact {
    display: inline;
  }
}

@media (max-width: 520px) {
  .cloth-projection.is-renovation .cinema-foot-right .cinema-contact {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #laptop-hint,
  .portfolio-overlay,
  .cloth-projection,
  .cinema-stage,
  .reno-visual {
    transition: none;
  }

  .reno-live-dot,
  .reno-progress-fill,
  .reno-lamp-swing,
  .reno-roller-group,
  .reno-cat-eye {
    animation: none;
  }
}
