:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg-stage: #090b10;
  --bg-titanium: linear-gradient(145deg, #343a47 0%, #1d222c 48%, #141821 100%);
  --wechat-green: #07c160;
  --wechat-bg: #ededed;
  --ios-blue: #007aff;
  --ios-red: #ff3b30;
  --ios-green: #34c759;
  --notes-amber: #d69818;
  --meituan-yellow: #ffd100;
  --text-dark: #111827;
  --text-muted: #6b7280;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-stage);
  font-family: var(--font-sans);
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

button,
input {
  font-family: inherit;
}

button {
  touch-action: manipulation;
}

input {
  -webkit-user-select: text;
  user-select: text;
}

.device-stage {
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 22% 18%, rgba(251, 191, 36, 0.08), transparent 45%),
    radial-gradient(circle at 82% 84%, rgba(56, 189, 248, 0.07), transparent 45%),
    #090b10;
  padding: 12px;
}

.phone-shell {
  position: relative;
  width: min(390px, 100%);
  height: min(844px, calc(100dvh - 24px));
  aspect-ratio: 390 / 844;
  max-height: 100%;
  border-radius: 44px;
  padding: 10px;
  background: var(--bg-titanium);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 2px rgba(255, 255, 255, 0.22);
  display: flex;
}

.phone-bezel-hardware {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.hw-btn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #3d4454;
}

.hw-btn-vol-up { left: -3px; top: 136px; height: 42px; }
.hw-btn-vol-down { left: -3px; top: 188px; height: 42px; }
.hw-btn-power { right: -3px; top: 162px; height: 64px; }

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: #0d1017;
  display: flex;
  flex-direction: column;
  touch-action: manipulation;
}

@media (max-width: 480px) {
  .device-stage {
    padding: 0;
    background: #0d1017;
  }

  .phone-shell {
    width: 100vw;
    height: 100dvh;
    aspect-ratio: auto;
    border-radius: 0;
    padding: 0;
    background: #0d1017;
    box-shadow: none;
  }

  .phone-bezel-hardware {
    display: none;
  }

  .phone-screen {
    border-radius: 0;
  }
}

.phone-screen.is-light-chrome {
  background: #ededed;
}

.phone-screen.is-music-chrome {
  background: #1b0f1a;
}

.phone-screen.is-photo-detail-chrome {
  background: #000000;
}

.boot-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 28px;
  font-weight: 300;
}

.icon-svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ============================================================================
   Status Bar — strictly x <= 236px to clear 110x88px WeChat capsule safezone
   ============================================================================ */
.status-bar {
  position: relative;
  z-index: 35;
  height: 34px;
  width: 100%;
  flex-shrink: 0;
  padding: 6px 10px 2px 14px;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.phone-screen[data-phase="lockscreen"] .status-bar,
.phone-screen[data-phase="home"] .status-bar {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
}

.status-bar.theme-dark-bg {
  color: #ffffff;
}

.status-bar.theme-light-bg {
  color: #111827;
  background: #ededed;
}

.phone-screen.is-photo-detail-chrome .status-bar {
  background: #000000;
  color: #ffffff;
}

.status-left-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(228px, calc(100% - 118px));
}

.status-time {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
}

.status-icon .icon-svg {
  width: 13px;
  height: 11px;
}

.status-mute-btn {
  border: none;
  background: rgba(148, 163, 184, 0.22);
  color: inherit;
  border-radius: 999px;
  width: 22px;
  height: 18px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.status-mute-btn .icon-svg {
  width: 12px;
  height: 12px;
}

.battery-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.battery-pill.is-warn {
  background: rgba(245, 158, 11, 0.22);
  color: #b45309;
}

.theme-dark-bg .battery-pill.is-warn {
  color: #fbbf24;
}

.battery-pill.is-critical {
  background: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  animation: batteryPulse 1.15s ease-in-out infinite;
}

.battery-shell {
  width: 17px;
  height: 9.5px;
  border: 1.3px solid currentColor;
  border-radius: 2.5px;
  padding: 1px;
  display: inline-flex;
  align-items: center;
}

.battery-fill {
  height: 100%;
  border-radius: 1px;
  background: currentColor;
  transition: width 0.35s ease;
}

@keyframes batteryPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.screen-viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ============================================================================
   Intro Overlay — 9:16 Cinematic Movie Poster Cover
   ============================================================================ */
.intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 95;
  background: #06080e;
  color: #f4f4f5;
  padding: 94px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: pointer;
}

.intro-poster-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.intro-poster-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 158, 11, 0.18), transparent 52%),
    radial-gradient(circle at 20% 82%, rgba(56, 189, 248, 0.1), transparent 48%),
    linear-gradient(180deg, #080b14 0%, #111626 48%, #07090e 100%);
}

.intro-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.intro-poster-img.is-loaded {
  opacity: 1;
}

.intro-poster-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 12, 0.72) 0%,
    rgba(5, 7, 12, 0.34) 26%,
    rgba(5, 7, 12, 0.08) 48%,
    rgba(5, 7, 12, 0.25) 72%,
    rgba(5, 7, 12, 0.84) 100%
  );
}

.intro-sound-btn {
  position: absolute;
  top: 44px;
  left: 16px;
  z-index: 5;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 13, 20, 0.54);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(248, 250, 252, 0.92);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.intro-sound-btn .icon-svg {
  width: 14px;
  height: 14px;
}

.intro-sound-btn.is-muted {
  color: rgba(203, 213, 225, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
}

.intro-top-area {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}

.intro-meta-line {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(253, 230, 138, 0.92);
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
  opacity: 0;
  animation: introFadeUp 0.5s ease forwards 0.05s;
}

.intro-poster-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.72);
  opacity: 0;
  animation: introFadeUp 0.55s ease forwards 0.18s;
}

.intro-battery-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.42);
  border: 1px solid rgba(248, 113, 113, 0.38);
  color: #fecaca;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.24);
  opacity: 0;
  animation: introFadeUp 0.55s ease forwards 0.32s, introBatPulse 2.2s ease-in-out infinite 0.9s;
}

.intro-bat-ico {
  display: inline-flex;
  align-items: center;
  gap: 1.5px;
}

.intro-bat-shell {
  width: 18px;
  height: 10px;
  border: 1.4px solid #fca5a5;
  border-radius: 2.5px;
  padding: 1.5px;
  display: inline-flex;
  align-items: center;
}

.intro-bat-fill {
  width: 24%;
  height: 100%;
  border-radius: 1px;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.9);
}

.intro-bat-tip {
  width: 2px;
  height: 4.5px;
  border-radius: 0 1px 1px 0;
  background: #fca5a5;
}

@keyframes introBatPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(239, 68, 68, 0.24); border-color: rgba(248, 113, 113, 0.38); }
  50% { box-shadow: 0 0 22px rgba(239, 68, 68, 0.48); border-color: rgba(248, 113, 113, 0.72); }
}

@keyframes introFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-overlay.is-anim-done .intro-meta-line,
.intro-overlay.is-anim-done .intro-poster-title,
.intro-overlay.is-anim-done .intro-footer {
  opacity: 1;
  animation: none;
}

.intro-overlay.is-anim-done .intro-battery-tag {
  opacity: 1;
  animation: introBatPulse 2.2s ease-in-out infinite;
}

.intro-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  opacity: 0;
  animation: introFadeUp 0.55s ease forwards 0.45s;
}

.intro-premise {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(244, 244, 245, 0.8);
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.intro-pickup-btn {
  position: relative;
  border: 1px solid rgba(253, 230, 138, 0.52);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(180, 83, 9, 0.34));
  color: #fffbeb;
  border-radius: 999px;
  min-height: 50px;
  height: 50px;
  padding: 0 34px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: pickupBreath 2.6s ease-in-out infinite;
}

.intro-pickup-btn:active {
  transform: scale(0.96);
  background: rgba(245, 158, 11, 0.48);
}

.intro-pickup-ring {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.95);
}

@keyframes pickupBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.28), 0 8px 24px rgba(0, 0, 0, 0.42); }
  50% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0), 0 8px 28px rgba(245, 158, 11, 0.26); }
}

/* ============================================================================
   Cutscene Overlay — Single Persistent <video> + <canvas> Anti-Hijack Stage
   ============================================================================ */
.cutscene-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: #050608;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.cutscene-overlay.is-active {
  display: flex;
}

.cutscene-overlay.is-closing {
  opacity: 0;
  pointer-events: none;
}

.cutscene-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050608;
}

@media (min-width: 481px) {
  .cutscene-stage {
    width: min(430px, 100vw);
    height: min(860px, 100dvh);
    border-radius: 36px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
}

.cutscene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cutscene-top-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.45) 0%, rgba(5, 6, 8, 0) 100%);
}

.cutscene-skip-btn {
  position: absolute;
  top: 96px;
  right: 16px;
  z-index: 5;
  min-width: 68px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 14, 20, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cutscene-skip-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.18);
}

.cutscene-bottom-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0) 0%, rgba(5, 6, 8, 0.58) 55%, rgba(5, 6, 8, 0.9) 100%);
}

.cutscene-caption-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 24px;
  z-index: 4;
  pointer-events: none;
  text-align: center;
}

.cutscene-caption-text {
  margin: 0;
  font-size: clamp(11px, 3vw, 12.5px);
  line-height: 1.48;
  font-weight: 400;
  color: rgba(255, 250, 240, 0.94);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.cutscene-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.cutscene-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #fde68a);
  transition: width 0.08s linear;
}

/* ============================================================================
   Benchmark Screen 1: Authentic iOS Lockscreen
   ============================================================================ */
.screen-lockscreen {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #ffffff;
}

.lock-wallpaper-layer,
.home-wallpaper-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lock-wp-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(251, 146, 60, 0.34), transparent 52%),
    radial-gradient(circle at 20% 78%, rgba(56, 189, 248, 0.22), transparent 52%),
    linear-gradient(175deg, #271b2e 0%, #171c2b 55%, #0f131c 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 150px;
}

.wp-fallback-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.42);
  opacity: 0;
}

.is-asset-fallback .wp-fallback-label {
  opacity: 1;
}

.lock-wp-img,
.home-wp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lock-wp-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.1) 36%,
    rgba(0, 0, 0, 0.24) 68%,
    rgba(0, 0, 0, 0.56) 100%
  );
}

.lock-foreground {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 50px 14px 10px;
}

.lock-clock-block {
  text-align: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.lock-date {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.4px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.lock-time {
  font-size: 62px;
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -1.8px;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.lock-notif-stack {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 6px;
}

.lock-notif-card {
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  color: #111827;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.18s ease;
}

.lock-notif-card:active {
  transform: scale(0.985);
}

.lock-notif-card.is-urgent {
  background: rgba(255, 248, 248, 0.92);
  border-color: rgba(255, 59, 48, 0.32);
}

.lock-notif-card.is-slide-in {
  animation: notifSlideIn 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes notifSlideIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lock-notif-thumb {
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
}

.lock-notif-avatar-wrap {
  position: relative;
  width: 34px;
  height: 34px;
}

.avatar-tile.notif-av {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 14px;
}

.lock-notif-mini-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.lock-notif-mini-badge .icon-svg {
  width: 14px;
  height: 14px;
}

.lock-notif-app-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
}

.lock-notif-app-ico .icon-svg {
  width: 34px;
  height: 34px;
}

.lock-notif-body {
  flex: 1;
  min-width: 0;
}

.lock-notif-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.lock-notif-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}

.lock-notif-card.is-urgent .lock-notif-title {
  color: #b91c1c;
}

.lock-notif-time {
  font-size: 11px;
  color: #6b7280;
  flex-shrink: 0;
}

.lock-notif-preview {
  font-size: 13px;
  line-height: 1.38;
  color: #1f2937;
  margin-top: 2px;
}

.lock-notif-expanded {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.12);
  font-size: 12px;
  line-height: 1.45;
  color: #92400e;
  font-weight: 500;
}

.lock-sticky-slot {
  flex-shrink: 0;
  padding: 4px 0 6px;
  display: flex;
  justify-content: flex-start;
}

.lock-bottom-area {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lock-controls-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lock-round-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.lock-round-btn:active {
  background: rgba(255, 255, 255, 0.34);
}

.lock-unlock-btn {
  flex: 1;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #111827;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.lock-unlock-ico .icon-svg {
  width: 14px;
  height: 14px;
}

.lock-unlock-btn:active {
  background: rgba(255, 255, 255, 0.96);
}

/* ============================================================================
   Benchmark Screen 1B: Authentic iOS Desktop & Dock
   ============================================================================ */
.screen-home {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #ffffff;
}

.home-wp-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(251, 146, 60, 0.36), transparent 46%),
    radial-gradient(circle at 18% 72%, rgba(56, 189, 248, 0.26), transparent 52%),
    linear-gradient(175deg, #2b2938 0%, #1d2232 58%, #141925 100%);
}

.home-wp-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0.28) 100%);
}

.home-foreground {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  padding: 50px 14px 66px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-widget-card {
  border-radius: 20px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.home-widget-tag {
  font-size: 11px;
  color: #d97706;
  font-weight: 700;
}

.home-widget-title {
  font-size: 16.5px;
  font-weight: 700;
  margin-top: 2px;
  color: #111827;
}

.home-widget-sub {
  font-size: 12px;
  color: #4b5563;
  margin-top: 2px;
}

.home-widget-right {
  text-align: center;
  flex-shrink: 0;
}

.widget-ring {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2.5px solid #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 auto 2px;
}

.widget-ring-sub {
  font-size: 10.5px;
  color: #6b7280;
}

.home-app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
  padding: 2px 2px;
}

.home-app-btn {
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  cursor: pointer;
}

.home-app-btn:active .app-tile {
  transform: scale(0.92);
}

.home-app-icon-wrap {
  position: relative;
}

.app-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s ease;
  overflow: hidden;
  position: relative;
}

.app-tile svg {
  width: 44px;
  height: 44px;
}

.tile-wechat { background: linear-gradient(180deg, #28dc6e 0%, #07c160 100%); }
.tile-photos { background: #ffffff; }
.tile-notes {
  background: #ffffff;
  flex-direction: column;
  justify-content: flex-start;
}
.tile-notes-top {
  width: 100%;
  height: 16px;
  background: linear-gradient(180deg, #fbbf24 0%, #eab308 100%);
}
.tile-notes-dots {
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 3px 6px 0;
}
.tile-notes-dots span {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #d1d5db;
}
.tile-notes-lines {
  width: 100%;
  padding: 4px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tile-notes-lines span {
  display: block;
  height: 1.5px;
  background: #d1d5db;
}
.tile-delivery { background: linear-gradient(180deg, #ffd926 0%, #ffd100 100%); }
.tile-music { background: linear-gradient(180deg, #2a1829 0%, #150c15 100%); }
.tile-phone { background: linear-gradient(180deg, #4cd964 0%, #28b644 100%); }
.tile-calendar {
  background: #ffffff;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.tile-cal-wk {
  font-size: 9.5px;
  font-weight: 700;
  color: #ef4444;
  line-height: 1;
}
.tile-cal-day {
  font-size: 24px;
  font-weight: 500;
  color: #111827;
  line-height: 1.05;
}
.tile-clock { background: #1c1c1e; }

.app-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b30;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

.home-app-label {
  font-size: 11.5px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.is-dock-item .home-app-label {
  display: none;
}

.home-page-dots {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.home-page-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.home-page-dots span.is-active {
  background: #ffffff;
}

.home-dock-bar {
  border-radius: 26px;
  padding: 10px 10px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* ============================================================================
   Dynamic Sticky-Note HUD (Collapsed Folded Tab & Expanded Handmade Paper)
   ============================================================================ */
.bottom-nav-bar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #ededed;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}

.phone-screen[data-phase="home"] .bottom-nav-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: transparent;
  border-top: none;
}

.phone-screen.is-music-chrome .bottom-nav-bar {
  background: #140b14;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.phone-screen.is-photo-detail-chrome .bottom-nav-bar {
  background: #000000;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.bottom-sticky-row {
  padding: 5px 12px 2px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sticky-note-tab {
  position: relative;
  border: 1px solid rgba(180, 134, 42, 0.38);
  background: linear-gradient(135deg, #fffbe8 0%, #fef3c7 100%);
  color: #3f2e12;
  height: 29px;
  max-width: 100%;
  padding: 0 14px 0 10px;
  border-radius: 6px 8px 2px 6px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.14);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
}

.sticky-note-tab::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 9px;
  height: 9px;
  background: linear-gradient(315deg, rgba(168, 128, 48, 0.25) 50%, #fde68a 50%);
  border-top-left-radius: 2px;
  pointer-events: none;
}

.sticky-note-tab:active {
  transform: scale(0.98);
}

.sticky-tab-pin {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d97706;
  flex-shrink: 0;
}

.sticky-note-tab.stage-3 .sticky-tab-pin {
  background: #07c160;
}

.sticky-tab-prefix {
  font-size: 10.5px;
  font-weight: 700;
  color: #92400e;
  flex-shrink: 0;
}

.sticky-tab-goal {
  font-size: 12px;
  font-weight: 600;
  color: #292012;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-tab-count {
  font-size: 10.5px;
  font-weight: 700;
  color: #92400e;
  background: rgba(217, 119, 6, 0.14);
  padding: 1px 5px;
  border-radius: 999px;
  flex-shrink: 0;
}

.bottom-home-row {
  display: flex;
  justify-content: center;
  padding: 2px 0 6px;
}

.home-indicator-btn {
  border: none;
  background: transparent;
  padding: 4px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-indicator-bar {
  width: 112px;
  height: 4.5px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.28);
  display: block;
}

.phone-screen[data-phase="home"] .home-indicator-bar,
.phone-screen.is-music-chrome .home-indicator-bar,
.phone-screen.is-photo-detail-chrome .home-indicator-bar,
.home-indicator-bar.light {
  background: rgba(255, 255, 255, 0.65);
}

/* Expanded Handmade Sticky Paper Card */
.clue-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 68;
  background: rgba(10, 12, 18, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 10px 10px;
  animation: backdropFadeIn 0.18s ease-out;
}

.sticky-paper-sheet {
  position: relative;
  background-color: #fff9de;
  background-image:
    linear-gradient(rgba(217, 168, 78, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 168, 78, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  color: #292012;
  border-radius: 14px;
  border: 1px solid rgba(180, 134, 42, 0.34);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: 18px 14px 14px;
  max-height: calc(100% - 94px);
  display: flex;
  flex-direction: column;
  animation: stickyFloatUp 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes stickyFloatUp {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sticky-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  width: 72px;
  height: 18px;
  background: rgba(245, 210, 130, 0.72);
  border: 1px solid rgba(180, 134, 42, 0.25);
  border-radius: 2px;
}

.sticky-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.sticky-sheet-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #292012;
}

.sticky-sheet-sub {
  font-size: 11.5px;
  color: #78613a;
  margin-top: 2px;
}

.sticky-close-ico {
  border: none;
  background: rgba(146, 64, 14, 0.1);
  color: #5c4014;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sticky-goal-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 119, 6, 0.26);
  border-radius: 10px;
  padding: 10px 11px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.sticky-goal-kicker {
  font-size: 10.5px;
  font-weight: 700;
  color: #b45309;
}

.sticky-goal-headline {
  font-size: 14.5px;
  font-weight: 700;
  color: #1f1608;
  margin-top: 2px;
}

.sticky-goal-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #574325;
  margin-top: 3px;
}

.sticky-goal-jump {
  margin-top: 8px;
  border: none;
  background: #d97706;
  color: #ffffff;
  border-radius: 999px;
  height: 28px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.sticky-goal-jump .icon-svg {
  width: 13px;
  height: 13px;
}

.sticky-clue-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 2px;
}

.sticky-clue-row {
  border-radius: 9px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(146, 64, 14, 0.24);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sticky-clue-row.is-found {
  background: rgba(236, 253, 245, 0.88);
  border-style: solid;
  border-color: rgba(16, 185, 129, 0.35);
}

.sticky-clue-mark {
  margin-top: 2px;
  color: #a18863;
}

.sticky-clue-row.is-found .sticky-clue-mark {
  color: #059669;
}

.sticky-clue-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f1608;
}

.sticky-clue-desc {
  font-size: 11.5px;
  color: #574325;
  margin-top: 2px;
  line-height: 1.4;
}

.sticky-clue-src {
  font-size: 10.5px;
  color: #047857;
  margin-top: 2px;
  font-weight: 600;
}

.sticky-sheet-foot {
  margin-top: 10px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.sticky-collapse-btn {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(146, 64, 14, 0.24);
  background: rgba(255, 255, 255, 0.78);
  color: #5c4014;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================================
   App Topbar — strictly respects top-right 110x88 capsule safezone
   ============================================================================ */
.app-screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f5f5f7;
  color: var(--text-dark);
}

.app-screen.is-entering {
  animation: appOpenIn 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes appOpenIn {
  from { opacity: 0; transform: scale(0.972); }
  to { opacity: 1; transform: scale(1); }
}

.app-topbar {
  width: 100%;
  height: 46px;
  flex-shrink: 0;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  background: #ededed;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.app-topbar.theme-photos {
  background: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.app-topbar.theme-photo-dark {
  background: #000000;
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.app-topbar.theme-notes {
  background: #faf8f2;
  color: #1c1917;
  border-bottom-color: rgba(214, 152, 24, 0.16);
}

.app-topbar.theme-delivery {
  background: #ffd100;
  color: #1f1b18;
  border-bottom: none;
}

.app-topbar.theme-music {
  background: #1b0f1a;
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.app-topbar.theme-phone {
  background: #ffffff;
  color: #111827;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.app-topbar-inner {
  max-width: calc(100% - 118px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-back-btn {
  border: none;
  background: transparent;
  color: #111827;
  height: 32px;
  padding: 0 6px 0 0;
  font-size: 14.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-notes .topbar-back-btn {
  color: var(--notes-amber);
  font-weight: 600;
}

.theme-photos .topbar-back-btn,
.theme-phone .topbar-back-btn {
  color: var(--ios-blue);
}

.theme-photo-dark .topbar-back-btn,
.theme-music .topbar-back-btn {
  color: #f8fafc;
}

.topbar-title {
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================================
   Benchmark Screen 2: Authentic Light-Mode WeChat ("微聊")
   ============================================================================ */
.app-wechat,
.app-wechat-thread {
  background: #ededed;
}

.wechat-search-zone {
  padding: 6px 10px 8px;
  background: #ededed;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.search-input-box {
  height: 33px;
  border-radius: 6px;
  background: #ffffff;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-ico {
  color: #9ca3af;
  display: inline-flex;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: #111827;
  background: transparent;
}

.search-clear-btn {
  border: none;
  background: #e5e7eb;
  color: #4b5563;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-clear-btn .icon-svg {
  width: 11px;
  height: 11px;
}

.search-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.search-chip {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #4b5563;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11.5px;
  cursor: pointer;
}

.search-chip.is-active {
  background: var(--wechat-green);
  color: #ffffff;
}

.search-result-head,
.empty-search-state {
  padding: 9px 14px;
  font-size: 12px;
  color: #6b7280;
  background: #ffffff;
}

.search-hl {
  background: #fef08a;
  color: #111827;
  padding: 0 2px;
  border-radius: 2px;
}

.wechat-list-body {
  background: #ffffff;
}

.chat-list-row {
  position: relative;
  width: 100%;
  border: none;
  background: #ffffff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.chat-list-row::after {
  content: '';
  position: absolute;
  left: 72px;
  right: 0;
  bottom: 0;
  height: 0.5px;
  background: #eaeaea;
}

.chat-list-row.is-pinned {
  background: #f7f7f7;
}

.chat-list-row:active {
  background: #e5e5e5;
}

.chat-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar-tile {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-tile.wc-msg-av {
  width: 38px;
  height: 38px;
  border-radius: 5px;
}

.avatar-tile.call-av {
  width: 84px;
  height: 84px;
  border-radius: 999px;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-tile.wc-msg-av .avatar-fallback {
  font-size: 14px;
}

.avatar-tile.call-av .avatar-fallback {
  font-size: 30px;
}

.avatar-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-unread-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 4;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #fa5151;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-row-main {
  flex: 1;
  min-width: 0;
}

.chat-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.chat-row-name {
  font-size: 15.5px;
  font-weight: 500;
  color: #191919;
}

.chat-row-time {
  font-size: 11px;
  color: #b2b2b2;
}

.chat-row-preview {
  font-size: 13px;
  color: #999999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wechat-tabbar {
  flex-shrink: 0;
  height: 48px;
  background: #f7f7f7;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.wc-tab-item {
  border: none;
  background: transparent;
  color: #191919;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  cursor: pointer;
}

.wc-tab-item .icon-svg {
  width: 21px;
  height: 21px;
}

.wc-tab-item.is-active {
  color: #07c160;
}

/* WeChat Thread */
.chat-messages-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg-time-divider {
  text-align: center;
  margin: 2px 0 -2px;
}

.msg-time-divider span {
  font-size: 11px;
  color: #999999;
}

.msg-system-row {
  text-align: center;
}

.msg-recall-pill,
.msg-system-pill {
  display: inline-block;
  font-size: 11.5px;
  color: #999999;
  padding: 2px 8px;
  max-width: 90%;
}

.msg-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.msg-row.is-me {
  justify-content: flex-end;
}

.msg-row.is-msg-focus .msg-bubble {
  box-shadow: 0 0 0 2px #f59e0b;
}

.msg-bubble-col {
  max-width: 72%;
  display: flex;
  flex-direction: column;
}

.msg-row.is-me .msg-bubble-col {
  align-items: flex-end;
}

.msg-bubble {
  position: relative;
  border-radius: 6px;
  padding: 9px 12px;
  background: #ffffff;
  color: #111111;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.msg-row.is-them .msg-bubble::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 6px 5px 0;
  border-color: transparent #ffffff transparent transparent;
}

.msg-row.is-me .msg-bubble {
  background: #95ec69;
}

.msg-row.is-me .msg-bubble::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 6px;
  border-color: transparent transparent transparent #95ec69;
}

.msg-bubble.is-image-bubble {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.msg-bubble.is-image-bubble::before,
.msg-bubble.is-image-bubble::after {
  display: none;
}

.msg-voice-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.voice-bar-btn {
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111111;
  font-size: 14px;
  cursor: pointer;
}

.voice-ico .icon-svg {
  width: 17px;
  height: 17px;
}

.voice-bar-btn.is-playing-wave .voice-arc {
  opacity: 0.22;
}

.voice-bar-btn.is-playing-wave .voice-arc-1 {
  animation: voiceArcStep 0.65s steps(1, end) 2;
}

.voice-bar-btn.is-playing-wave .voice-arc-2 {
  animation: voiceArcStep 0.65s steps(1, end) 0.16s 2;
}

.voice-bar-btn.is-playing-wave .voice-arc-3 {
  animation: voiceArcStep 0.65s steps(1, end) 0.32s 2;
}

@keyframes voiceArcStep {
  0%, 72% { opacity: 1; }
  73%, 100% { opacity: 0.22; }
}

.voice-sec {
  font-size: 14px;
  font-weight: 500;
}

.voice-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fa5151;
  margin-left: auto;
}

.voice-played-txt,
.voice-playing-txt {
  font-size: 11px;
  color: #9ca3af;
  margin-left: auto;
}

.voice-playing-txt {
  color: #059669;
  font-weight: 600;
}

.voice-transcript-bubble {
  background: #ffffff;
  border-radius: 6px;
  padding: 7px 10px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  max-width: 230px;
}

.voice-transcript-bubble.is-just-revealed {
  animation: voiceTranscriptIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes voiceTranscriptIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.voice-transcript-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: #1f2937;
}

.voice-transcript-tag {
  margin-top: 3px;
  font-size: 10px;
  color: #9ca3af;
}

.chat-photo-btn {
  border: none;
  background: transparent;
  padding: 0;
  width: 168px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  cursor: pointer;
}

.wechat-input-bar {
  flex-shrink: 0;
  height: 48px;
  padding: 6px 10px;
  background: #f7f7f7;
  border-top: 0.5px solid #dcdcdc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc-bar-ico {
  color: #4b5563;
  display: inline-flex;
  flex-shrink: 0;
}

.wc-bar-ico .icon-svg {
  width: 24px;
  height: 24px;
}

.wc-bar-field {
  flex: 1;
  height: 34px;
  border-radius: 6px;
  background: #ffffff;
  padding: 0 10px;
  display: flex;
  align-items: center;
  font-size: 12.5px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Native Light WeChat Bottom Picker Sheet (Endgame) */
.endgame-composer {
  background: #f7f7f7;
  border-top: 0.5px solid #d5d5d5;
  padding: 9px 11px 10px;
  flex-shrink: 0;
  max-height: 52%;
  overflow-y: auto;
}

.endgame-drawer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.endgame-drawer-title {
  font-size: 13px;
  font-weight: 700;
  color: #191919;
}

.endgame-drawer-count {
  font-size: 11.5px;
  font-weight: 600;
  color: #07c160;
}

.ev-pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.ev-pick-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 9px;
  padding: 7px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.2, 1.4, 0.36, 1), border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.ev-pick-card:active {
  transform: scale(0.97);
}

.ev-pick-card.is-selected {
  border-color: #07c160;
  background: #f0fdf4;
  box-shadow: 0 2px 8px rgba(7, 193, 96, 0.14);
}

.ev-thumb {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
}

.ev-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.ev-thumb-fallback {
  position: relative;
  z-index: 1;
}

.ev-pick-body {
  flex: 1;
  min-width: 0;
}

.ev-pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.ev-pick-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
}

.ev-pick-check {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ev-pick-card.is-selected .ev-pick-check {
  background: #07c160;
  animation: evCheckPop 0.22s cubic-bezier(0.2, 1.45, 0.36, 1);
}

@keyframes evCheckPop {
  from { transform: scale(0.5); opacity: 0.3; }
  to { transform: scale(1); opacity: 1; }
}

.ev-pick-check .icon-svg {
  width: 11px;
  height: 11px;
}

.ev-pick-desc {
  font-size: 10.5px;
  color: #6b7280;
  margin-top: 2px;
  line-height: 1.25;
}

.endgame-step-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 5px;
}

.phrase-pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.phrase-pick-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
}

.phrase-pick-btn.is-selected {
  border-color: #07c160;
  background: #07c160;
  color: #ffffff;
}

.endgame-submit-row {
  display: flex;
  gap: 8px;
}

.endgame-shutdown-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #4b5563;
  border-radius: 7px;
  height: 36px;
  padding: 0 11px;
  font-size: 12.5px;
  cursor: pointer;
}

.endgame-send-btn {
  flex: 1;
  border: none;
  border-radius: 7px;
  height: 36px;
  background: #d1d5db;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: not-allowed;
}

.endgame-send-btn.is-ready {
  background: #07c160;
  cursor: pointer;
}

/* ============================================================================
   Benchmark Screen 3: Pure White Borderless Photos + Black Detail + Optical Loupe
   ============================================================================ */
.app-photos {
  background: #ffffff;
}

.photos-header-wrap {
  background: #ffffff;
  padding: 2px 14px 10px;
  flex-shrink: 0;
}

.photos-large-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.5px;
}

.photos-segmented {
  background: #f2f2f7;
  border-radius: 9px;
  padding: 2.5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.photos-seg-btn {
  border: none;
  background: transparent;
  color: #3a3a3c;
  border-radius: 7px;
  height: 29px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}

.photos-seg-btn .icon-svg {
  width: 11px;
  height: 11px;
}

.photos-seg-btn.is-active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.photos-body {
  padding: 0;
  background: #ffffff;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.photo-grid-card {
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f4f3f0;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.photo-inspected-dot {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 6;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #007aff;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.photo-inspected-dot .icon-svg {
  width: 11px;
  height: 11px;
}

/* Real Photo + G3 Film Pending Card */
.photo-media-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.photo-media-box.mode-detail {
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 310px;
}

.photo-media-box.mode-chat {
  aspect-ratio: 4 / 3;
  height: auto;
}

.photo-media-box.mode-banner {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
}

.real-photo-img {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.film-fallback-layer,
.film-pending-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 8px;
  background: linear-gradient(155deg, #f5f4f0 0%, #eae8e2 100%);
  color: #3f3d37;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.photo-media-box.mode-grid .film-fallback-layer,
.photo-media-box.mode-grid .film-pending-card {
  padding: 6px;
}

.film-corners span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: rgba(82, 78, 70, 0.28);
  border-style: solid;
  border-width: 0;
}

.film-corners span:nth-child(1) { top: 4px; left: 4px; border-top-width: 1px; }
.film-corners span:nth-child(2) { top: 4px; right: 4px; border-top-width: 1px; border-right-width: 1px; }
.film-corners span:nth-child(3) { bottom: 4px; left: 4px; border-bottom-width: 1px; }
.film-corners span:nth-child(4) { bottom: 4px; right: 4px; border-bottom-width: 1px; border-right-width: 1px; }

.film-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.film-pending-pill {
  font-size: 9px;
  font-weight: 700;
  color: #6b6456;
  background: rgba(120, 113, 108, 0.14);
  padding: 1.5px 5px;
  border-radius: 3px;
  white-space: nowrap;
  align-self: flex-start;
}

.film-time-txt {
  font-size: 9px;
  color: #78716c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.photo-media-box.mode-grid .film-time-txt {
  display: none;
}

.film-motif {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(68, 64, 60, 0.55);
}

.film-motif svg {
  width: 52px;
  height: 36px;
}

.photo-media-box.mode-detail .film-motif svg {
  width: 120px;
  height: 80px;
}

.film-meta-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #292524;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.photo-media-box.mode-detail .film-meta-title {
  font-size: 14px;
}

.film-meta-desc {
  font-size: 11.5px;
  color: #57534e;
  margin-top: 2px;
  line-height: 1.4;
}

.locked-album-panel {
  margin: 28px 18px;
  padding: 28px 18px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.locked-album-ico {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
}

.locked-album-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.locked-album-hint {
  font-size: 13px;
  color: #6b7280;
  margin: 6px 0 16px;
}

.locked-album-btn {
  border: none;
  background: var(--ios-blue);
  color: #ffffff;
  border-radius: 999px;
  height: 38px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Fullscreen Photo Detail + Optical Loupe */
.app-photo-detail {
  background: #000000;
  color: #ffffff;
}

.photo-detail-body {
  padding: 6px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #000000;
}

.photo-detail-meta {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.photo-stage-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #111111;
}

.photo-hotspots-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.photo-hotspot-pin {
  position: absolute;
  transform: translate(-50%, -65%);
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.photo-hotspot-pin.label-below {
  transform: translate(-50%, -35%);
  flex-direction: column;
}

.photo-hotspot-pin.align-left .hotspot-pill {
  transform: translateX(28%);
}

.photo-hotspot-pin.align-right .hotspot-pill {
  transform: translateX(-28%);
}

.hotspot-ring {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16), 0 2px 8px rgba(0, 0, 0, 0.45);
  animation: hotspotPulse 1.7s infinite;
}

.photo-hotspot-pin.is-active .hotspot-ring {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.34);
}

.photo-hotspot-pin.is-inspected:not(.is-active) .hotspot-ring {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.26);
  animation: none;
}

.hotspot-pill {
  background: rgba(20, 20, 24, 0.84);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 0.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 2.5px 8px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.hotspot-pill .icon-svg {
  width: 11px;
  height: 11px;
}

@keyframes hotspotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

/* Warm Cream Paper Discovery Card + 84x84 Real Optical Loupe */
.hotspot-loupe-card {
  border-radius: 14px;
  padding: 11px 12px;
  background: #faf7f0;
  border: 1px solid rgba(217, 168, 78, 0.32);
  color: #1f1b16;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.hotspot-loupe-card.is-pop-in {
  animation: loupeCardPop 0.24s cubic-bezier(0.2, 1.32, 0.36, 1);
}

@keyframes loupeCardPop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.loupe-lens-window {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  border: 2px solid #d6b676;
  background: #ebe6db;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.14);
}

.loupe-lens-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6b6152;
}

.loupe-lens-motif svg {
  width: 54px;
  height: 38px;
  transform: scale(1.35);
  opacity: 0.72;
}

.loupe-lens-mag {
  position: absolute;
  bottom: 3px;
  right: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #78350f;
  background: rgba(255, 255, 255, 0.85);
  padding: 0 4px;
  border-radius: 3px;
}

.loupe-lens-zoom {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-repeat: no-repeat;
}

.loupe-crosshair {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle, transparent 58%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(to right, transparent 49.5%, rgba(217, 119, 6, 0.32) 50%, transparent 50.5%),
    linear-gradient(to bottom, transparent 49.5%, rgba(217, 119, 6, 0.32) 50%, transparent 50.5%);
}

.loupe-info-col {
  flex: 1;
  min-width: 0;
}

.loupe-badge {
  font-size: 10.5px;
  color: #b45309;
  font-weight: 700;
  margin-bottom: 2px;
}

.loupe-title {
  font-size: 14px;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 3px;
}

.loupe-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #44403c;
}

.loupe-clue-saved {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #047857;
  font-weight: 700;
}

.loupe-clue-saved .icon-svg {
  width: 12px;
  height: 12px;
}

.photo-detail-hint {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  padding: 10px 8px;
}

/* ============================================================================
   Aligned Light Apps: Apple Notes, Meituan Delivery, Music, Phone
   ============================================================================ */
.app-notes,
.app-note-detail {
  background: #faf8f2;
}

.notes-list-body,
.note-detail-body {
  padding: 4px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notes-header-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.notes-large-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1c1917;
}

.notes-count-sub {
  font-size: 12px;
  color: #78716c;
}

.notes-group-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.note-list-card {
  width: 100%;
  border: 1px solid rgba(214, 152, 24, 0.18);
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.note-list-card.is-locked {
  background: #fffbeb;
  border-color: rgba(214, 152, 24, 0.42);
}

.note-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.note-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1c1917;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.note-card-title .icon-svg {
  width: 14px;
  height: 14px;
  color: var(--notes-amber);
}

.note-card-time {
  font-size: 11.5px;
  color: #a8a29e;
}

.note-card-preview {
  font-size: 13px;
  color: #57534e;
}

.note-paper-card {
  background: #ffffff;
  background-image: linear-gradient(transparent 31px, rgba(214, 152, 24, 0.14) 32px);
  background-size: 100% 32px;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(214, 152, 24, 0.22);
}

.note-detail-time {
  font-size: 11.5px;
  color: #a8a29e;
}

.note-detail-title {
  margin: 4px 0 12px;
  font-size: 18px;
  color: #1c1917;
}

.note-line {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #292524;
}

/* Delivery (Meituan Yellow + Clean White Cards) */
.app-delivery {
  background: #f4f4f4;
}

.delivery-list-body {
  padding: 10px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.order-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.order-summary-btn {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.order-top-row,
.order-mid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.order-shop {
  font-size: 14.5px;
  font-weight: 700;
  color: #1f2937;
}

.order-price {
  font-size: 15px;
  font-weight: 700;
  color: #ff4b33;
}

.order-mid-row {
  margin-top: 5px;
  font-size: 13px;
  color: #4b5563;
}

.order-status {
  font-size: 11px;
  color: #854d0e;
  background: #fef9c3;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
  flex-shrink: 0;
}

.order-time-row {
  margin-top: 6px;
  font-size: 11.5px;
  color: #9ca3af;
}

.order-detail-box {
  padding: 10px 14px 12px;
  background: #fffdf5;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #374151;
}

/* Music */
.app-music {
  background: linear-gradient(180deg, #1b0f1a 0%, #120b14 100%);
  color: #f8fafc;
}

.music-body {
  padding: 10px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.music-hero-card {
  border-radius: 16px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 13px;
}

.music-disc {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: radial-gradient(circle, #14121d 0 46%, #241e33 47% 50%, #14121d 51% 66%, #262038 67% 70%, #110f19 71% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42), inset 0 0 8px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.music-disc.is-spinning {
  animation: spinDisc 5.2s linear infinite;
}

.disc-grooves {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  border: 0.7px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.disc-cover-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb7185, #be185d);
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.disc-cover-fallback {
  position: relative;
  z-index: 1;
  font-size: 9px;
  font-weight: 700;
  color: #fff1f2;
  text-align: center;
  line-height: 1.1;
  padding: 2px;
}

.disc-cover-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.disc-spindle {
  position: absolute;
  z-index: 4;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #1b0f1a;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
}

@keyframes spinDisc {
  to { transform: rotate(360deg); }
}

.music-playlist-tag {
  font-size: 11px;
  color: #fda4af;
}

.music-playlist-title {
  font-size: 17px;
  font-weight: 700;
  margin-top: 2px;
}

.music-now-playing {
  font-size: 12px;
  color: rgba(248, 250, 252, 0.78);
  margin: 2px 0 8px;
}

.music-play-btn {
  border: none;
  background: #fb7185;
  color: #ffffff;
  border-radius: 999px;
  height: 30px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.music-lyrics-box {
  border-radius: 13px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lyric-line {
  font-size: 12.5px;
  color: rgba(226, 232, 240, 0.62);
}

.lyric-line.is-current {
  color: #ffffff;
  font-weight: 600;
}

.lyric-line.is-key {
  color: #fde68a;
}

.music-comment-card {
  border-radius: 13px;
  padding: 10px 12px;
  background: rgba(251, 113, 133, 0.14);
  border: 1px solid rgba(251, 113, 133, 0.3);
}

.comment-tag {
  font-size: 11px;
  color: #fda4af;
  font-weight: 700;
}

.comment-body {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #fff1f2;
}

.music-track-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-row {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border-radius: 11px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.track-row.is-active {
  background: rgba(251, 113, 133, 0.22);
}

.track-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fda4af;
}

.track-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.track-name {
  font-size: 13px;
  font-weight: 600;
}

.track-artist {
  font-size: 11px;
  color: rgba(226, 232, 240, 0.7);
}

.track-dur {
  font-size: 11.5px;
  color: rgba(226, 232, 240, 0.65);
}

/* Phone Logs (iOS Light Phone) */
.app-phone {
  background: #ffffff;
}

.phone-logs-body {
  padding: 2px 16px 16px;
}

.phone-large-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  color: #000000;
}

.phone-logs-list {
  display: flex;
  flex-direction: column;
}

.call-log-row {
  padding: 12px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.5px solid #e5e7eb;
}

.call-log-row.is-missed .call-log-name {
  color: var(--ios-red);
}

.call-log-name {
  font-size: 15.5px;
  font-weight: 600;
  color: #111827;
}

.call-log-type {
  font-size: 12.5px;
  color: #6b7280;
  margin-top: 2px;
}

.call-log-time {
  font-size: 13px;
  color: #8e8e93;
}

/* ============================================================================
   iOS Top Frosted Push Banner, Toast & Low-Battery Alert
   ============================================================================ */
.push-banner {
  position: absolute;
  top: 90px;
  left: 10px;
  right: 10px;
  z-index: 75;
  border-radius: 18px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.push-banner.is-slide-in {
  animation: bannerSlideSpring 0.34s cubic-bezier(0.2, 1.35, 0.38, 1);
}

@keyframes bannerSlideSpring {
  from { opacity: 0; transform: translateY(-18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.push-banner-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.push-banner-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.push-banner-ico .icon-svg {
  width: 32px;
  height: 32px;
}

.push-banner-main {
  flex: 1;
  min-width: 0;
}

.push-banner-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.push-sender {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}

.push-app-tag {
  font-size: 11px;
  color: #6b7280;
}

.push-banner-body {
  font-size: 13px;
  line-height: 1.4;
  color: #1f2937;
}

.push-banner-photo {
  margin-top: 8px;
}

.push-banner-foot {
  margin-top: 5px;
  font-size: 11px;
  color: #07c160;
  font-weight: 600;
}

.sys-toast {
  position: absolute;
  bottom: 118px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 76;
  pointer-events: none;
  background: rgba(24, 24, 27, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.phone-screen[data-phase="lockscreen"] .sys-toast {
  bottom: 132px;
}

/* iOS White Alert Dialog ("电池电量不足 · 仅剩 3% 电量") */
.ios-alert-backdrop {
  position: absolute;
  inset: 0;
  z-index: 86;
  background: rgba(0, 0, 0, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ios-alert-box {
  width: 272px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #000000;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.ios-alert-body {
  padding: 18px 16px 16px;
}

.ios-alert-title {
  font-size: 17px;
  font-weight: 700;
  color: #000000;
}

.ios-alert-msg {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #3c3c43;
}

.ios-alert-actions {
  border-top: 0.5px solid rgba(60, 60, 67, 0.24);
  display: flex;
}

.ios-alert-btn {
  flex: 1;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 17px;
  font-weight: 600;
  color: var(--ios-blue);
  cursor: pointer;
}

.ios-alert-btn:active {
  background: rgba(0, 0, 0, 0.05);
}

/* ============================================================================
   iOS Blurred Wallpaper PIN Keypad
   ============================================================================ */
.pin-overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 18px 20px;
  overflow: hidden;
}

.pin-bg-img {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  filter: blur(28px) saturate(1.2);
  z-index: 0;
}

.pin-bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15, 20, 30, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.pin-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 278px;
  text-align: center;
}

.pin-panel.is-shaking {
  animation: pinShake 0.24s ease;
}

.pin-dots.is-shaking {
  animation: pinDotsShake 0.24s ease;
}

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

@keyframes pinDotsShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  45% { transform: translateX(8px); }
  70% { transform: translateX(-6px); }
  88% { transform: translateX(4px); }
}

.pin-lock-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-title {
  font-size: 16.5px;
  font-weight: 600;
}

.pin-hint {
  font-size: 12px;
  color: #fde68a;
  margin-top: 3px;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 13px 0 8px;
}

.pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1.6px solid rgba(255, 255, 255, 0.72);
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.pin-dot.is-filled {
  background: #ffffff;
  border-color: #ffffff;
}

.pin-dot.is-error {
  border-color: #fca5a5;
  background: rgba(248, 113, 113, 0.85);
}

.pin-error {
  font-size: 11.5px;
  color: #fca5a5;
  min-height: 16px;
  margin-bottom: 10px;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 18px;
  justify-items: center;
}

.pin-key {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pin-key:active {
  background: rgba(255, 255, 255, 0.36);
}

.pin-key-num {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.05;
}

.pin-key-sub {
  font-size: 8.5px;
  letter-spacing: 1.1px;
  opacity: 0.72;
  min-height: 10px;
}

.pin-key-text {
  background: transparent;
  backdrop-filter: none;
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================================
   iOS Fullscreen Call Overlay
   ============================================================================ */
.call-overlay {
  position: absolute;
  inset: 0;
  z-index: 84;
  padding: 94px 20px 30px;
  background:
    radial-gradient(circle at 50% 24%, rgba(52, 199, 89, 0.14), transparent 55%),
    linear-gradient(180deg, #161b26 0%, #0a0d14 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.call-header-info {
  text-align: center;
  position: relative;
  z-index: 1;
}

.call-avatar-ring {
  width: 92px;
  height: 92px;
  margin: 0 auto 12px;
  border-radius: 999px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05);
}

.call-avatar-ring.is-live {
  box-shadow: 0 0 0 8px rgba(52, 199, 89, 0.14);
}

.call-tag {
  font-size: 12px;
  color: #9ca3af;
}

.call-tag.is-live {
  color: #34c759;
  margin-top: 4px;
}

.call-caller-name {
  font-size: 28px;
  font-weight: 600;
}

.call-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4px;
}

.call-waveform {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
}

.call-waveform span {
  width: 3.5px;
  height: 8px;
  border-radius: 999px;
  background: #34c759;
  animation: waveDance 0.75s ease-in-out infinite alternate;
}

.call-waveform span:nth-child(2) { animation-delay: 0.12s; }
.call-waveform span:nth-child(3) { animation-delay: 0.24s; }
.call-waveform span:nth-child(4) { animation-delay: 0.36s; }
.call-waveform span:nth-child(5) { animation-delay: 0.18s; }
.call-waveform span:nth-child(6) { animation-delay: 0.3s; }
.call-waveform span:nth-child(7) { animation-delay: 0.08s; }

@keyframes waveDance {
  to { height: 22px; }
}

.call-transcript-box {
  width: 100%;
  flex: 1;
  min-height: 0;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}

.call-sub-line {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.65);
}

.call-sub-line.is-current {
  color: #ffffff;
  font-weight: 600;
}

.call-tap-hint {
  margin-top: auto;
  padding-top: 6px;
  text-align: center;
  font-size: 11.5px;
  color: #fde68a;
}

.call-actions-row {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.call-actions-row.single {
  justify-content: center;
}

.call-circle-btn {
  border: none;
  background: transparent;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.call-btn-ico {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-btn-ico .icon-svg {
  width: 26px;
  height: 26px;
}

.call-circle-btn.is-accept .call-btn-ico {
  background: var(--ios-green);
}

.call-circle-btn.is-reject .call-btn-ico {
  background: var(--ios-red);
  transform: rotate(135deg);
}

.call-btn-txt {
  font-size: 13px;
}

/* ============================================================================
   Shutdown & Memorial Card
   ============================================================================ */
.screen-shutdown {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 58px 16px 20px;
  background: linear-gradient(180deg, #090b10 0%, #121722 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  overflow-y: auto;
}

.shutdown-head {
  text-align: center;
  color: #fca5a5;
  margin-top: auto;
}

.shutdown-power-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 6px;
  border-radius: 999px;
  border: 1.5px solid rgba(252, 165, 165, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shutdown-battery-zero {
  font-size: 12px;
  letter-spacing: 0.6px;
}

.memorial-card {
  border-radius: 20px;
  padding: 16px 15px;
  margin-bottom: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.memorial-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
}

.memorial-title {
  margin: 8px 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.memorial-photo-wrap {
  margin-bottom: 12px;
}

.memorial-polaroid-btn {
  position: relative;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: block;
  text-align: left;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.memorial-polaroid-btn:active {
  transform: scale(0.985);
}

.memorial-polaroid-glow {
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 45%, rgba(251, 191, 36, 0.32), rgba(251, 146, 60, 0.12) 58%, transparent 78%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.memorial-polaroid-frame {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #fffdf9 0%, #f8f3e8 100%);
  padding: 7px 7px 9px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(253, 230, 138, 0.42);
}

.memorial-polaroid-frame .photo-media-box.mode-memorial {
  aspect-ratio: 16 / 10;
  border-radius: 9px;
  overflow: hidden;
}

.memorial-polaroid-foot {
  margin-top: 7px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.memorial-polaroid-cap {
  font-size: 11.5px;
  font-weight: 600;
  color: #44392b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.memorial-polaroid-zoom {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: #b45309;
  flex-shrink: 0;
}

.memorial-polaroid-zoom .icon-svg {
  width: 12px;
  height: 12px;
}

.memorial-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 92;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  animation: backdropFadeIn 0.18s ease-out;
}

.memorial-lightbox-card {
  width: 100%;
  background: #fdf9f1;
  border-radius: 16px;
  padding: 10px 10px 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 28px rgba(251, 191, 36, 0.22);
  animation: loupeCardPop 0.22s cubic-bezier(0.2, 1.32, 0.36, 1);
}

.memorial-lightbox-frame .photo-media-box.mode-memorial {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}

.memorial-lightbox-desc {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #44392b;
  text-align: center;
}

.memorial-lightbox-close {
  margin: 10px auto 0;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(180, 83, 9, 0.25);
  background: #fef3c7;
  color: #78350f;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.memorial-lightbox-close .icon-svg {
  width: 13px;
  height: 13px;
}

.memorial-epilogue {
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  line-height: 1.5;
  color: #fde68a;
  margin-bottom: 10px;
}

.memorial-summary {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #e2e8f0;
}

.memorial-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 13px;
}

.stat-box {
  border-radius: 11px;
  padding: 8px 6px;
  background: rgba(15, 23, 42, 0.55);
  text-align: center;
}

.stat-val {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.stat-lbl {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.memorial-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.memorial-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wechat-ending-bar {
  flex-shrink: 0;
  padding: 8px 12px 10px;
  background: #f7f7f7;
  border-top: 0.5px solid #dcdcdc;
  display: flex;
  justify-content: center;
}

.wechat-ending-watch-btn {
  width: 100%;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: #07c160;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.memorial-btn {
  height: 40px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 8px;
}

.memorial-btn.primary {
  border: none;
  background: #f59e0b;
  color: #111827;
}

.memorial-btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #f8fafc;
}

/* ============================================================================
   Compact Small-Height Viewport Adaptation (360x640)
   ============================================================================ */
@media (max-height: 700px) {
  .intro-overlay {
    padding: 92px 18px 18px;
  }

  .intro-poster-title {
    font-size: 34px;
  }

  .intro-footer {
    gap: 8px;
    padding-bottom: 2px;
  }

  .lock-foreground {
    padding: 40px 12px 8px;
  }

  .lock-clock-block {
    margin-bottom: 8px;
  }

  .lock-time {
    font-size: 46px;
  }

  .lock-notif-card {
    padding: 8px 10px;
    border-radius: 15px;
  }

  .home-foreground {
    padding: 42px 12px 6px;
    gap: 10px;
  }

  .home-widget-card {
    padding: 10px 12px;
  }

  .app-tile {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .app-tile svg {
    width: 38px;
    height: 38px;
  }

  .home-dock-bar {
    padding: 8px;
    border-radius: 22px;
  }

  .pin-overlay {
    padding: 88px 14px 12px;
  }

  .pin-dots {
    margin: 9px 0 6px;
  }

  .pin-keypad {
    gap: 8px 14px;
  }

  .pin-key {
    width: 50px;
    height: 50px;
  }

  .pin-key-num {
    font-size: 20px;
  }

  .photo-media-box.mode-detail {
    max-height: 220px;
  }

  .hotspot-loupe-card {
    padding: 9px 10px;
    gap: 10px;
  }

  .loupe-lens-window {
    width: 72px;
    height: 72px;
  }

  .call-overlay {
    padding: 90px 16px 20px;
  }

  .call-avatar-ring {
    width: 72px;
    height: 72px;
    margin-bottom: 8px;
  }

  .avatar-tile.call-av {
    width: 64px;
    height: 64px;
  }

  .call-caller-name {
    font-size: 24px;
  }

  .call-btn-ico {
    width: 56px;
    height: 56px;
  }

  .screen-shutdown {
    padding: 46px 12px 14px;
    gap: 8px;
  }

  .memorial-card {
    padding: 13px 13px;
  }

  .memorial-title {
    font-size: 18px;
    margin: 6px 0 8px;
  }

  .memorial-polaroid-frame .photo-media-box.mode-memorial {
    aspect-ratio: 16 / 9;
    max-height: 140px;
  }

  .memorial-summary {
    font-size: 12px;
    margin-bottom: 9px;
  }
}
