/* ============================================
   PHOTOGRAPHY — 真实 macOS 桌面拼贴
   （照搬参考图：真实系统材质，非插画奶油风）
   ============================================ */

.photography-page {
  position: relative;
  min-height: calc(100vh - var(--menu-bar-h));
  min-height: calc(100svh - var(--menu-bar-h));
  padding: var(--sp-4) var(--sp-5) 92px;
  overflow: hidden;
}

.photo-desk {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  min-height: clamp(600px, 76vh, 800px);
}

/* 通用：真实系统卡片材质 */
.vol-card,
.rem-card,
.ad-card,
.emoji-kb {
  background: rgba(252, 252, 254, .86);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28), 0 3px 10px rgba(0, 0, 0, .14);
}

/* ———— Volume 卡片（左上） ———— */
.vol-card {
  position: absolute;
  left: 1.5%;
  top: 5%;
  z-index: 6;
  width: clamp(132px, 13vw, 158px);
  padding: 11px 13px 13px;
  border-radius: 16px;
}
.vol-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.vol-icon { color: #3a3a3c; }
.vol-icon svg { width: 32px; height: 32px; display: block; }
.vol-bar {
  display: flex;
  gap: 3px;
  margin-top: 9px;
}
.vol-seg {
  flex: 1;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(120, 120, 128, .22);
  cursor: pointer;
  transition: background var(--dur-fast);
}
.vol-seg.on { background: #3a3a3c; }
.vol-seg:hover { background: rgba(120, 120, 128, .5); }
.vol-seg.on:hover { background: #1d1d1f; }

/* ———— Reminder 卡片（右上） ———— */
.rem-card {
  position: absolute;
  right: 6%;
  top: 6%;
  z-index: 12;
  width: clamp(180px, 17vw, 208px);
  border-radius: 16px;
  overflow: hidden;
  transition: opacity .3s ease, transform .3s ease;
}
.rem-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1d1d1f;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.rem-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFA94D, #FF7A1A);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.rem-msg {
  padding: 12px 13px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #3a3a3c;
}
.rem-ok {
  display: block;
  width: calc(100% - 20px);
  margin: 0 10px 10px;
  padding: 6px 0;
  border: none;
  border-radius: 9px;
  background: rgba(120, 120, 128, .14);
  color: #0A84FF;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast);
}
.rem-ok:hover { background: rgba(120, 120, 128, .26); }
.rem-card.bye { opacity: 0; transform: translateY(-10px) scale(.94); }

/* ———— Photo Booth 主窗口 ———— */
.pb-window {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: min(620px, 56%);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(244, 244, 246, .92);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38), 0 6px 20px rgba(0, 0, 0, .2);
}

.pb-titlebar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: 40px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(236, 236, 240, .6));
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.pb-titlebar .pb-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #3a3a3c;
  letter-spacing: .01em;
}
.pb-titlebar-pad { width: 52px; flex: 0 0 auto; }

.pb-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111;
  overflow: hidden;
}
.pb-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity var(--dur-med), filter var(--dur-med);
}
.pb-sticker-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.pb-drop {
  position: absolute;
  font-size: 27px;
  line-height: 1;
  transform: rotate(var(--rot));
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35));
  animation: dropIn .45s var(--ease-spring);
}
@keyframes dropIn {
  from { transform: translateY(-26px) scale(.35) rotate(var(--rot)); opacity: 0; }
}
.pb-flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.pb-flash.flash { animation: pbFlash .35s ease-out; }
@keyframes pbFlash { 0% { opacity: .92; } 100% { opacity: 0; } }

.pb-caption {
  position: absolute;
  left: 14px;
  bottom: 10px;
  z-index: 5;
  font-family: var(--font-hand);
  font-size: 13px;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 5px rgba(0, 0, 0, .55);
}

.pb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 14px;
}
.pb-tools { display: flex; gap: 6px; width: 108px; }
.pb-tool {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border: none;
  border-radius: 7px;
  background: rgba(120, 120, 128, .14);
  color: #3a3a3c;
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.pb-tool:hover { background: rgba(120, 120, 128, .28); }
.pb-tool:active { transform: scale(.92); }
.pb-tool svg { width: 15px; height: 15px; }

.pb-shutter {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FF6B62, #E0342B 62%, #B9271F);
  box-shadow: 0 4px 14px rgba(224, 52, 43, .5), inset 0 0 0 2px rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring);
}
.pb-shutter:hover { transform: scale(1.08); }
.pb-shutter:active { transform: scale(.9); }

.pb-effects {
  width: 108px;
  padding: 6px 0;
  border: none;
  border-radius: 8px;
  background: rgba(120, 120, 128, .14);
  color: #3a3a3c;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.pb-effects:hover { background: rgba(120, 120, 128, .28); }
.pb-effects.is-on { background: #0A84FF; color: #fff; }

/* ———— AirDrop 卡片 ———— */
.ad-card {
  position: absolute;
  z-index: 12;
  width: clamp(216px, 21vw, 248px);
  border-radius: 18px;
  padding-top: 11px;
  overflow: hidden;
  transition: opacity .3s ease, transform .3s ease;
}
.ad-pos-1 { right: 2.5%; top: 27%; }
.ad-pos-2 { left: 2.5%; bottom: 13%; }
.ad-card.bye { opacity: 0; transform: translateY(-10px) scale(.94); }

.ad-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}
.ad-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.ad-title {
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.25;
}
.ad-sub {
  font-size: 11.5px;
  color: #6e6e73;
  line-height: 1.35;
  margin-top: 1px;
}
.ad-actions {
  display: flex;
  margin-top: 11px;
  border-top: 1px solid rgba(0, 0, 0, .09);
}
.ad-actions button {
  flex: 1;
  padding: 9px 0;
  border: none;
  background: none;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--dur-fast);
}
.ad-actions button:hover { background: rgba(120, 120, 128, .1); }
.ad-decline { color: #8e8e93; border-right: 1px solid rgba(0, 0, 0, .09); }
.ad-accept { color: #0A84FF; font-weight: 600; }

/* ———— 散落拍立得 ———— */
.polaroid {
  position: absolute;
  z-index: 5;
  width: clamp(126px, 13vw, 152px);
  background: #fff;
  padding: 6px;
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
  cursor: pointer;
  transition: transform var(--dur-med) var(--ease-spring), box-shadow var(--dur-med);
}
.polaroid:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.04) !important;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .36);
  z-index: 14;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 1px;
}
.pol-pos-1 { left: 0.5%; top: 33%; transform: rotate(-6deg); }
.pol-pos-2 { left: 19%; bottom: 1.5%; transform: rotate(4deg); }
.pol-pos-3 { left: 17.5%; top: 0; transform: rotate(-4deg); z-index: 11; }

/* ———— emoji 键盘（右下） ———— */
.emoji-kb {
  position: absolute;
  right: 1.5%;
  bottom: 4%;
  z-index: 12;
  width: clamp(212px, 20vw, 238px);
  border-radius: 16px;
  padding: 10px;
}
.ek-search {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(120, 120, 128, .14);
  color: #8e8e93;
  font-size: 11px;
  margin-bottom: 8px;
}
.ek-search .ico,
.ek-search svg { width: 12px; height: 12px; display: inline-flex; }
.ek-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
}
.ek-key {
  border: none;
  background: none;
  font-size: 17px;
  line-height: 1;
  padding: 3px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.ek-key:hover { background: rgba(120, 120, 128, .16); }
.ek-key.pressed { transform: scale(1.35); background: rgba(120, 120, 128, .22); }
.ek-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.ek-abc {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(120, 120, 128, .14);
  font-size: 10.5px;
  font-weight: 700;
  color: #6e6e73;
  letter-spacing: .04em;
}
.ek-hint {
  font-size: 10px;
  color: #8e8e93;
}

/* ———— 大轮廓名字 ———— */
.big-name {
  position: absolute;
  left: 3.5%;
  bottom: -1.5%;
  z-index: 1;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(64px, 9.5vw, 128px);
  letter-spacing: .03em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .85);
  text-shadow: 0 4px 26px rgba(0, 0, 0, .14);
  pointer-events: none;
  user-select: none;
}

/* ———— 抠图贴纸 ———— */
.desk-sticker {
  position: absolute;
  z-index: 13;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .28));
}
.ds-1 { width: clamp(56px, 6vw, 76px); left: 24.5%; bottom: 9%; transform: rotate(-8deg); }
.ds-2 { width: clamp(60px, 6.5vw, 84px); right: 26%; top: 1%; transform: rotate(9deg); }
.ds-3 { width: clamp(54px, 5.5vw, 70px); right: 24.5%; bottom: 13%; transform: rotate(-5deg); }

/* ============================================
   作品库（点进去后的三段式作品页 · 真实系统风）
   ============================================ */
.works-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: flex;
  flex-direction: column;
  background: #f2f2f7;
  animation: fadeIn var(--dur-fast);
}

.wo-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 18px var(--sp-5);
  background: rgba(242, 242, 247, .82);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.wo-head { margin-right: auto; }
.wo-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.wo-sub {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: #6e6e73;
}
.wo-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: none;
  border-radius: 50%;
  background: rgba(120, 120, 128, .16);
  color: #3a3a3c;
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.wo-close:hover { background: rgba(120, 120, 128, .28); }
.wo-close:active { transform: scale(.92); }
.wo-close svg { width: 16px; height: 16px; }

.wo-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-5) var(--sp-5) 72px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.wo-group {
  background: #fff;
  border-radius: 20px;
  padding: 24px 26px 26px;
  margin-bottom: var(--sp-5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 10px 30px rgba(0, 0, 0, .06);
}
.wo-ghead {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.wo-num {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.6px #c7c7cc;
  flex: 0 0 auto;
}
.wo-gtitle h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.25;
}
.wo-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8e8e93;
  margin-top: 1px;
}
.wo-desc {
  margin-left: auto;
  font-size: 12.5px;
  line-height: 1.6;
  color: #6e6e73;
  text-align: right;
  max-width: 340px;
}

.wo-sec + .wo-sec { margin-top: 22px; }
.wo-seclabel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}
.wo-seclabel span {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(120, 120, 128, .12);
  font-size: 10.5px;
  font-weight: 500;
  color: #6e6e73;
  letter-spacing: .02em;
}

.wo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 14px;
  align-items: start;
}

.wo-card {
  display: block;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transition: transform var(--dur-med) var(--ease-spring), box-shadow var(--dur-med);
}
.wo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .14);
}
.wo-card:active { transform: translateY(-1px) scale(.99); }

.wo-thumb {
  position: relative;
  display: block;
  background: #eee;
  overflow: hidden;
}
.wo-card.kind-video .wo-thumb { aspect-ratio: 16 / 9; }
.wo-card.kind-photo .wo-thumb { aspect-ratio: 1; }
.wo-card.kind-poster .wo-thumb { aspect-ratio: 3 / 4; }
.wo-card.kind-web .wo-thumb { aspect-ratio: 16 / 10; }
.wo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wo-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
}
.wo-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #1d1d1f;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.wo-play svg { width: 13px; height: 13px; margin-left: 1px; }

.wo-meta {
  display: block;
  padding: 9px 11px 11px;
}
.wo-title {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wo-note {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: #8e8e93;
}

/* 待更新作品 */
.wo-card.is-pending {
  border: 1.5px dashed rgba(120, 120, 128, .32);
  background: rgba(255, 255, 255, .6);
}
.wo-card.is-pending .wo-thumb { background: transparent; }
.wo-card.is-pending .wo-thumb img { opacity: .35; }
.wo-card.is-pending .wo-badge { background: rgba(120, 120, 128, .5); }
.wo-card.is-pending:hover {
  transform: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

/* 待更新弹窗 */
.wo-pending-modal { padding: 26px 24px; text-align: center; }
.wo-pending-modal h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.wo-pending-modal p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.wo-pending-modal code {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(120, 100, 72, .1);
}

/* ———— 照片查看器（暖深色，保留） ———— */
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 360;
  background: rgba(38, 32, 26, .94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn var(--dur-fast);
}
.pv-toolbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  color: var(--cream);
  z-index: 2;
  gap: var(--sp-4);
}
.pv-toolbar .pv-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.pv-toolbar .pv-hint { font-size: var(--fs-xs); opacity: .62; }
.pv-close {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(253, 250, 242, .14);
  color: var(--cream);
  flex: 0 0 auto;
  transition: background var(--dur-fast);
}
.pv-close:hover { background: rgba(253, 250, 242, .28); }
.pv-close svg { width: 17px; height: 17px; }

.pv-body {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  max-width: 92vw;
  max-height: 78vh;
  padding: 0 8px;
}
.pv-body img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  background: #fff;
}
.pv-body video {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  background: #000;
}

/* =========== 响应式 =========== */
@media (max-width: 980px) {
  .pb-window { width: min(540px, 60%); }
  .polaroid { width: 122px; }
  .emoji-kb { width: 208px; }
  .ad-card { width: 210px; }
}

@media (max-width: 760px) {
  .photography-page { padding: var(--sp-4) var(--sp-3) 96px; overflow: visible; }
  .photo-desk {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    align-items: center;
  }
  .pb-window {
    position: relative;
    left: auto; top: auto;
    transform: none;
    width: 100%;
    max-width: 540px;
    order: 1;
  }
  .vol-card,
  .rem-card,
  .ad-card,
  .emoji-kb,
  .polaroid {
    position: relative;
    left: auto; right: auto; top: auto; bottom: auto;
    transform: none !important;
    animation: none;
  }
  .rem-card { order: 2; width: 100%; max-width: 300px; }
  .ad-pos-1 { order: 3; }
  .ad-pos-2 { order: 4; }
  .ad-card { width: 100%; max-width: 320px; }
  .vol-card { order: 5; width: 100%; max-width: 220px; }
  .polaroid { order: 6; width: 170px; padding: 7px; }
  .pol-pos-1 { order: 6; }
  .pol-pos-2 { order: 7; }
  .pol-pos-3 { order: 8; }
  .emoji-kb { order: 9; width: 100%; max-width: 300px; }
  .big-name {
    position: relative;
    left: auto; bottom: auto;
    order: 10;
    width: 100%;
    text-align: center;
    font-size: clamp(44px, 15vw, 84px);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85);
  }
  .desk-sticker { display: none; }
  .wo-top { padding: 14px var(--sp-4); }
  .wo-body { padding: var(--sp-4) var(--sp-3) 64px; }
  .wo-group { padding: 18px 16px 20px; border-radius: 16px; }
  .wo-ghead { flex-wrap: wrap; gap: 10px; }
  .wo-num { font-size: 26px; }
  .wo-desc {
    margin-left: 0;
    text-align: left;
    max-width: none;
    flex: 1 0 100%;
  }
  .wo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .pv-body { gap: 6px; }
}

/* 外链角标 */
.wo-ext { font-size: 11px; color: var(--ink-mute); margin-left: 2px; }
