:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.56);
  --muted-2: rgba(255, 255, 255, 0.34);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --glass: rgba(255, 255, 255, 0.07);
  --paper: #efece5;

  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.46s;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  color: var(--fg);
  background: #060607;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; user-select: none; }

/* ---------- 舞台 / 设备框 ---------- */
.stage {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(130% 90% at 50% -10%, #1b1b20 0%, #0a0a0c 55%, #060607 100%);
}
/* 黑色背景上的粗糙颗粒质感（胶片噪点，低调不挡内容） */
.stage::after {
  content: "";
  position: absolute; inset: 0; z-index: 9;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.phone {
  position: relative;
  width: min(100%, 400px);
  height: min(100dvh - 56px, 858px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 46px;
  overflow: hidden;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
@media (max-width: 460px) {
  .stage { padding: 0; }
  .phone { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
}

/* ---------- 拟真状态栏 ---------- */
.statusbar {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 30px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 6;
}
.statusbar__icons { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 屏幕栈 & 转场 ---------- */
.screens { position: relative; flex: 1; overflow: hidden; }
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
  will-change: transform;
}
.screen.is-active { transform: translateX(0); z-index: 3; }
.screen.is-behind { transform: translateX(-24%); filter: brightness(0.5); z-index: 2; pointer-events: none; }

/* ---------- 顶栏 ---------- */
.topbar {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}
.topbar__title { font-size: 17px; font-weight: 600; letter-spacing: 0.5px; }
.topbar__back, .topbar__pad { width: 40px; height: 40px; display: grid; place-items: center; }
.topbar__back svg { width: 24px; height: 24px; }
.topbar__back:active { opacity: 0.5; }
.topbar__back i { width: 22px; height: 22px; font-size: 20px; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.topbar--brand { justify-content: flex-start; gap: 10px; padding-left: 0; }
.brand { height: 22px; width: auto; fill: var(--fg); }
.brand--sm { height: 18px; width: auto; flex: 0 0 auto; margin-top: 3px; }
.topbar--float { position: absolute; top: 0; left: 0; right: 0; }
.topbar__back--glass {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- 照片容器（含年代调色 / 颗粒） ---------- */
.photo { position: relative; overflow: hidden; background: #0a0a0c; }
.photo svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.photo__grade { position: absolute; inset: 0; mix-blend-mode: soft-light; opacity: 0.75; pointer-events: none; }
.photo__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.photo--now .photo__grade { background: transparent; }
.photo--vintage .photo__grade { background: #b5752a; }
.photo--construct .photo__grade { background: #2f4d78; }
.photo--future .photo__grade { background: #1f9a95; }
.photo--far .photo__grade { background: #7b3fa6; }

/* ---------- 拍摄屏 ---------- */
.screen[data-screen="camera"] { padding: 0 22px 26px; }
.viewfinder {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 30px;
  overflow: hidden;
  margin-top: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.viewfinder .photo { position: absolute; inset: 0; }
.viewfinder__stamp {
  position: absolute; right: 20px; bottom: 18px;
  display: flex; flex-direction: column; align-items: flex-end;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--serif);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.stamp__year { font-size: 15px; letter-spacing: 3px; opacity: 0.85; }
.stamp__date { font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: 1px; }
.viewfinder__reticle { position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 22px; pointer-events: none; }
/* 取景框左下角「+」：从相册选择，热区放大便于点按 */
.viewfinder__add {
  position: absolute; left: 14px; bottom: 14px; z-index: 5;
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; color: #fff;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s var(--ease), opacity 0.2s;
}
.viewfinder__add svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.viewfinder__add:active { transform: scale(0.9); opacity: 0.7; }

.scenes { position: relative; flex: 0 0 auto; display: flex; justify-content: flex-start; gap: 7px; margin: 20px 0 8px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scenes::-webkit-scrollbar { display: none; }
/* 滑动的白色胶囊背景，切换时弹性位移 */
.scenes__indicator {
  position: absolute; left: 0; top: 0; height: 0; width: 0;
  border-radius: 999px; background: var(--fg);
  pointer-events: none; z-index: 0; transform: translateX(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.2s var(--ease), top 0.2s var(--ease);
}
.pill {
  position: relative; z-index: 1;
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px; letter-spacing: 0.5px;
  white-space: nowrap;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.3s var(--ease), transform 0.2s var(--ease);
}
.pill:active { transform: scale(0.94); }
.pill.is-active { color: #0a0a0b; font-weight: 600; }

.shutterbar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 4px; }
.thumb {
  width: 58px; height: 58px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-strong);
  transition: transform 0.2s var(--ease);
}
.thumb:active { transform: scale(0.92); }
.photo--thumb { display: block; width: 100%; height: 100%; }
.shutter {
  position: relative;
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(150deg, #c4c4c9 0%, #8d8d93 100%);
  display: grid; place-items: center;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 14px 40px rgba(0, 0, 0, 0.5);
  border: none; cursor: pointer;
  transition: transform 0.16s var(--ease);
}
.shutter:active { transform: scale(0.9); }
.shutter__ring { position: absolute; inset: 7px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.14); }
.shutter__icon { width: 40px; height: 40px; display: grid; place-items: center; }
.shutter__cam { width: 100%; height: 100%; display: block; }
.shutter__flash { position: absolute; inset: 0; border-radius: 50%; opacity: 0; transform: scale(0.2); pointer-events: none;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.9) 38%, rgba(255, 255, 255, 0) 70%); }
.shutter.is-capturing .shutter__icon { animation: shutterOpen 0.45s var(--ease); }
.shutter.is-capturing .shutter__flash { animation: shutterFlash 0.45s var(--ease); }
@keyframes shutterOpen { 0% { transform: scale(1); } 45% { transform: scale(0.3); } 100% { transform: scale(1); } }
@keyframes shutterFlash { 0% { opacity: 0; transform: scale(0.2); } 35% { opacity: 1; transform: scale(1.05); } 100% { opacity: 0; transform: scale(1.5); } }
.flip {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--fg);
  transition: transform 0.35s var(--ease), background 0.2s;
}
.flip svg, .flip i { width: 22px; height: 22px; font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.flip:active { background: rgba(255, 255, 255, 0.14); }
.flip.is-flipped { transform: scaleX(-1); }

/* ---------- 定位分析屏 ---------- */
.screen[data-screen="analysis"] { padding: 0 22px 30px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* 分析页返回图标与首页 logo 左对齐（同为 22px） */
.screen[data-screen="analysis"] .topbar { padding-left: 0; }
.analysis { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.photocard {
  background: var(--paper);
  border-radius: 16px;
  padding: 14px 14px 42px; /* 拍立得白边：上/左/右 14，底部 42 更宽 */
  margin-top: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.photocard .photo { border-radius: 8px; }
/* 取景框 → 拍立得 过渡覆盖层 */
.shutterfx { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.shutterfx__card { position: absolute; box-sizing: border-box; background: var(--paper); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); will-change: left, top, width, height, padding; }
.shutterfx__card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.analysis__body { margin-top: 26px; display: flex; gap: 12px; }
.analysis__text { font-size: 15px; line-height: 1.85; color: rgba(255, 255, 255, 0.82); letter-spacing: 0.2px; }
.analysis__disclaimer { margin-top: 10px; font-size: 11px; color: rgba(255, 255, 255, 0.38); letter-spacing: 1px; }
.analysis__progress { margin-top: 22px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.analysis__progress span { display: block; height: 100%; width: 0; background: var(--fg); transition: width 0.2s linear; }
.analysis__hint { margin-top: 14px; font-size: 13px; color: var(--muted-2); letter-spacing: 0.5px; }
/* 加载状态：转圈 + 已用时长 */
.analysis__status { display: flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 20px; }
.analysis__status .analysis__hint { margin-top: 0; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); border-top-color: var(--fg); animation: spin 0.8s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.analysis__timer { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }
.analysis__status.is-done .spinner,
.analysis__status.is-done .analysis__timer { display: none; }

/* ---------- 5事件时间轴屏 ---------- */
.screen[data-screen="timeline"] { padding: 0 26px 30px; overflow-y: auto; }
.timeline__intro { display: flex; gap: 12px; margin-top: 6px; }
.timeline__introtext { font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.rule {
  display: flex; align-items: center; gap: 14px;
  margin: 26px 0 20px;
  font-size: 11.5px; letter-spacing: 0.32em; color: var(--muted-2);
  white-space: nowrap;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rule--cta { justify-content: center; margin-top: 30px; }
.rule--cta span { animation: breathe 2.4s var(--ease-io) infinite; }
@keyframes breathe { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.tl { list-style: none; position: relative; padding-left: 26px; }
.tl::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px;
  background: var(--line-strong);
  transform-origin: top; transform: scaleY(0);
  transition: transform 0.9s var(--ease) 0.1s;
}
.tl.is-drawn::before { transform: scaleY(1); }
.tl__item { position: relative; padding: 13px 0; opacity: 0; transform: translateX(10px); }
.tl__item.is-in { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.tl__dot {
  position: absolute; left: -26px; top: 20px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--muted-2);
  transform: scale(0); transition: transform 0.4s var(--ease);
}
.tl__item.is-in .tl__dot { transform: scale(1); }
.tl__item--now .tl__dot { background: var(--fg); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.14); }
.tl__body { display: flex; flex-direction: column; gap: 3px; }
.tl__year { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--muted); letter-spacing: 0.5px; }
.tl__label { font-size: 13.5px; color: var(--muted-2); letter-spacing: 0.3px; }
.tl__item--now .tl__year { color: var(--fg); font-size: 24px; }
.tl__item--now .tl__label { color: rgba(255, 255, 255, 0.8); }

/* ---------- 场景结果屏 ---------- */
.screen[data-screen="scene"] { padding: 0; }
.carousel { flex: 1; min-height: 0; overflow: hidden; position: relative; margin-top: -52px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.carousel__track { display: flex; height: 100%; transition: transform 0.55s var(--ease); will-change: transform; }
.carousel__slide { position: relative; width: 100%; height: 100%; flex: 0 0 100%; }
.carousel__slide .photo { position: absolute; inset: 0; }
.carousel__slide::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
}
.sceneinfo { flex: 0 0 auto; padding: 0 26px 30px; margin-top: -8px; position: relative; z-index: 2; }
.dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.dots span { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); transition: all 0.3s var(--ease); cursor: pointer; }
.dots span::before { content: ""; position: absolute; inset: -12px -7px; } /* 扩大点击热区，不影响布局 */
.dots span.is-on { background: var(--fg); width: 20px; border-radius: 3px; }
.sceneinfo__head { display: flex; align-items: baseline; gap: 12px; }
.sceneinfo__index { font-family: var(--serif); font-size: 15px; color: var(--muted-2); letter-spacing: 1px; }
.sceneinfo__title { font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: 0.5px; }
.sceneinfo__disclaimer { margin-top: 12px; font-size: 11px; color: rgba(255, 255, 255, 0.38); letter-spacing: 1px; }
.sceneinfo__desc { margin-top: 12px; font-size: 14px; line-height: 1.85; color: var(--muted); min-height: 78px; }
.fade-swap { animation: fadeSwap 0.45s var(--ease); }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 时间相册屏 ---------- */
.screen[data-screen="album"] { padding: 0 22px 30px; }
.screen[data-screen="album"] .topbar { padding-left: 0; }
.album { flex: 1; overflow-y: auto; }
.stats { display: flex; justify-content: space-between; padding: 14px 4px 6px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat__num { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; }
.stat__label { font-size: 12px; color: var(--muted-2); letter-spacing: 2px; }
.album__actions { display: flex; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: transform 0.18s var(--ease), opacity 0.2s; }
.btn:active { transform: scale(0.96); }
.btn--primary { flex: 1; height: 54px; border-radius: 27px; background: var(--fg); color: #0a0a0b; font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.btn--primary svg { width: 20px; height: 20px; }
.btn--icon { width: 54px; height: 54px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.btn--icon svg { width: 21px; height: 21px; }
.album__date { margin-top: 38px; }
.album__year { font-size: 13px; color: var(--muted-2); letter-spacing: 3px; }
.album__day { display: block; font-family: var(--serif); font-size: 54px; font-weight: 600; line-height: 1; margin-top: 4px; letter-spacing: 1px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.card { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--line); transition: transform 0.25s var(--ease); }
.card:active { transform: scale(0.97); }
.card .photo { position: absolute; inset: 0; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 55%); }
.card__meta { position: absolute; left: 16px; right: 12px; bottom: 14px; z-index: 2; }
.card__label { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.5px; }
.card__place { display: block; margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, 0.66); letter-spacing: 1px; }
/* 长按删除：照片被黑色遮罩覆盖，中央出现垃圾桶 */
.card { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.card__img { -webkit-user-drag: none; }
.card__del { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.18s var(--ease); }
.card.is-del .card__del { opacity: 1; pointer-events: auto; }
.card__delbtn { width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.card__delbtn svg { width: 24px; height: 24px; }
.card__delbtn:active { transform: scale(0.92); background: rgba(255, 82, 82, 0.9); }

/* ---------- 快门闪白 ---------- */
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 20; }
.flash.is-on { animation: flash 0.5s var(--ease-io); }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 0.92; } 100% { opacity: 0; } }

/* 相机实时预览 / 定格 */
.viewfinder__video, .viewfinder__shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.viewfinder__video.is-on, .viewfinder__shot.is-on { opacity: 1; }
/* 前置摄像头做镜像，像照镜子一样自然 */
.viewfinder__video.is-mirror { transform: scaleX(-1); }
/* 摄像头未开启时的仿老电视雪花点 */
.viewfinder__snow { position: absolute; inset: 0; background: #050506; animation: snowFlicker 0.14s steps(2, end) infinite; }
.viewfinder.is-live .viewfinder__snow { display: none; }
.snow__noise { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.92; }
.snow__scan { position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.32) 3px, rgba(0,0,0,0) 4px);
  animation: snowScan 7s linear infinite; }
@keyframes snowFlicker { 0% { opacity: 0.9; } 100% { opacity: 1; } }
@keyframes snowScan { from { background-position: 0 0; } to { background-position: 0 120px; } }
.viewfinder__hint {
  position: absolute; left: 0; right: 0; bottom: 28px; text-align: center;
  font-size: 13px; color: rgba(255, 255, 255, 0.72); letter-spacing: 2px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.viewfinder__hint.is-hidden { display: none; }
.photocard__img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: cover; border-radius: 8px; }
.errbox { margin-top: 28rpx; display: flex; flex-direction: column; gap: 20rpx; align-items: flex-start; }
.errbox__msg { font-size: 26rpx; color: var(--muted); line-height: 1.6; }
.btn--retry { min-width: 220rpx; }
.sceneinfo__actions { display: flex; margin-top: 26px; }
.empty { padding: 90rpx 0; text-align: center; }
.empty__t { font-size: 30rpx; font-weight: 600; }
.empty__s { margin-top: 12rpx; font-size: 24rpx; color: var(--muted-2); }
.carousel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb__ph { width: 100%; height: 100%; background: #1b1b1e; border: 1rpx solid var(--line); display: grid; place-items: center; }
.thumb__ph::after { content: ""; width: 22rpx; height: 22rpx; border-radius: 6rpx; border: 2rpx solid rgba(255, 255, 255, 0.22); }

/* 相机未激活时的提示 + 开启按钮 */
.viewfinder__overlay {
  position: absolute; inset: 0; z-index: 6;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(8,10,12,0.18), rgba(8,10,12,0.5));
  padding: 0 48rpx; text-align: center;
}
.viewfinder__hint.is-hidden ~ .viewfinder__overlay,
.viewfinder__overlay.is-hidden { display: none; }
.viewfinder__enable {
  appearance: none; border: 1rpx solid rgba(255,255,255,0.5);
  background: rgba(20,22,25,0.55); color: #fff;
  font-size: 30rpx; font-weight: 600; letter-spacing: 2rpx;
  padding: 22rpx 52rpx; border-radius: 999rpx;
  backdrop-filter: blur(8rpx);
}
.viewfinder__enable:active { transform: scale(0.97); }

/* ---------- 分享屏 ---------- */
.screen[data-screen="share"] { padding: 0 22px 24px; }
.screen[data-screen="share"] .topbar { padding-left: 0; }
.share { flex: 1; display: flex; flex-direction: column; min-height: 0; padding-top: 14px; gap: 14px; }
.share__card { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; border-radius: 20px; overflow: hidden; }
.share__canvas { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 18px; }
.share__qrgen { display: none; }
.share .btn--primary { flex: 0 0 auto; height: 46px; border-radius: 23px; font-size: 14px; margin-top: 0; }
