:root {
  --navy: #0d1236;
  --navy2: #1a2266;
  --pink: #ff9ec7;
  --pink2: #ffc4dd;
  --lav: #b9a4ff;
  --purple: #8a6cff;
  --top: max(env(safe-area-inset-top), 14px);
  --bottom: max(env(safe-area-inset-bottom), 8px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #000; overscroll-behavior: none; }
body { font-family: var(--font); color: #111; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
input, textarea { font: inherit; -webkit-user-select: text; user-select: text; }
[hidden] { display: none !important; }

/* ---------- 手机外壳 ---------- */
#phone { position: fixed; inset: 0; overflow: hidden; background: var(--navy); }
.island { display: none; }
#statusbar { display: none; }
body.framed { background: radial-gradient(circle at 30% 20%, #2a2f7a, #0b0d26 70%); display: grid; place-items: center; }
body.framed::before { content: ""; position: fixed; inset: 0; background-image: radial-gradient(rgba(255,158,199,.25) 2px, transparent 2.5px); background-size: 34px 34px; pointer-events: none; }
body.framed #phone { position: relative; width: 393px; height: 852px; max-height: calc(100vh - 32px); border-radius: 58px; box-shadow: 0 0 0 11px #121212, 0 0 0 13px #3a3a40, 0 30px 80px rgba(0,0,0,.6); --top: 54px; --bottom: 10px; inset: auto; }
body.framed .island { display: block; position: absolute; z-index: 100; top: 11px; left: 50%; transform: translateX(-50%); width: 124px; height: 36px; border-radius: 20px; background: #000; pointer-events: none; }
body.framed #statusbar { display: flex; position: absolute; z-index: 99; top: 0; left: 0; right: 0; height: 54px; padding: 18px 32px 0 48px; justify-content: space-between; align-items: center; color: #fff; font-weight: 600; font-size: 16px; pointer-events: none; transition: color .3s; }
#statusbar.dark { color: #000; }
#statusbar svg { fill: currentColor; }
.sb-right { display: flex; gap: 6px; align-items: center; }
.sb-batt { width: 25px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; padding: 1px; position: relative; opacity: .95; }
.sb-batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: currentColor; }
.sb-batt i { display: block; height: 100%; width: 80%; background: currentColor; border-radius: 1.5px; }

.screen { position: absolute; inset: 0; overflow: hidden; }

/* ---------- 波点壁纸 ---------- */
.wallpaper {
  background-color: var(--navy);
  background-image:
    radial-gradient(circle at 15% 12%, rgba(255,158,199,.55), transparent 38%),
    radial-gradient(circle at 90% 35%, rgba(138,108,255,.55), transparent 40%),
    radial-gradient(circle at 30% 85%, rgba(185,164,255,.45), transparent 42%),
    radial-gradient(rgba(255,196,221,.55) 3px, transparent 3.6px),
    radial-gradient(rgba(185,164,255,.45) 2px, transparent 2.6px),
    linear-gradient(170deg, #1d2670 0%, #0d1236 55%, #2a1650 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 38px 38px, 38px 38px, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0, 19px 19px, 0 0;
}

.home-bar { position: absolute; z-index: 60; bottom: calc(var(--bottom) - 2px); left: 50%; transform: translateX(-50%); width: 136px; height: 5px; border-radius: 3px; background: #111; }
.home-bar.light { background: #fff; }
.home-bar::before { content: ""; position: absolute; inset: -16px -30px; }

/* ---------- 锁屏 ---------- */
#lock { z-index: 30; color: #fff; display: flex; flex-direction: column; transition: transform .45s cubic-bezier(.3,.7,.2,1), opacity .45s; touch-action: none; }
#lock.up { transform: translateY(-100%); opacity: .3; }
.lock-top { padding-top: calc(var(--top) + 6px); text-align: center; }
.lock-ico { opacity: .9; }
.lock-date { margin-top: 8px; font-size: 20px; font-weight: 600; opacity: .92; text-shadow: 0 1px 8px rgba(0,0,0,.2); }
.lock-time { font-size: 96px; font-weight: 700; line-height: 1; letter-spacing: -2px; margin-top: 2px; background: linear-gradient(180deg, #fff 30%, var(--pink2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: "SF Pro Rounded", ui-rounded, var(--font); }
.lock-widgets { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; padding: 0 20px; }
.lw { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 18px; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.lock-notif { margin: auto 12px 18px; display: flex; gap: 10px; padding: 12px 14px; border-radius: 22px; background: rgba(255,255,255,.28); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); animation: notifIn .6s .8s both cubic-bezier(.2,.9,.3,1.2); cursor: pointer; }
@keyframes notifIn { from { transform: translateY(30px) scale(.9); opacity: 0; } }
.ln-icon { width: 38px; height: 38px; flex: none; border-radius: 9px; overflow: hidden; }
.ln-icon .icon { width: 38px; height: 38px; border-radius: 9px; }
.ln-body { flex: 1; min-width: 0; }
.ln-head { display: flex; justify-content: space-between; font-size: 15px; }
.ln-head span { opacity: .7; font-size: 13px; }
.ln-text { font-size: 15px; margin-top: 2px; line-height: 1.3; }
.lock-bottom { display: flex; align-items: center; justify-content: space-between; padding: 0 44px calc(var(--bottom) + 34px); }
.round-btn { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.28); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: grid; place-items: center; transition: transform .15s, background .15s; }
.round-btn:active { transform: scale(1.12); background: rgba(255,255,255,.45); }
.swipe-hint { font-size: 14px; opacity: .8; animation: hint 2.2s infinite; }
@keyframes hint { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-6px); opacity: 1; } }

/* ---------- 密码 ---------- */
#passcode { z-index: 20; color: #fff; }
.pc-bg { position: absolute; inset: -30px; filter: blur(22px) brightness(.7); transform: scale(1.1); }
.pc-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; padding-top: calc(var(--top) + 46px); }
.pc-lock { margin-bottom: 14px; }
.pc-title { font-size: 20px; font-weight: 500; }
.pc-dots { display: flex; gap: 24px; margin: 22px 0 46px; }
.pc-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.4px solid #fff; transition: background .12s; }
.pc-dots i.on { background: #fff; }
.pc-dots.shake { animation: shake .45s; }
@keyframes shake { 15%,55% { transform: translateX(-16px); } 35%,75% { transform: translateX(16px); } 90% { transform: translateX(-5px); } }
.pc-pad { display: grid; grid-template-columns: repeat(3, 78px); gap: 16px 26px; }
.key { width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.17); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; transition: background .4s; }
.key b { font-size: 36px; font-weight: 400; line-height: 1; font-family: "SF Pro Display", var(--font); }
.key small { font-size: 10px; font-weight: 600; letter-spacing: 2px; margin-top: 2px; opacity: .9; }
.key.zero { grid-column: 2; }
.key:active, .key.press { background: rgba(255,255,255,.55); transition: background 0s; }
.pc-foot { position: absolute; bottom: calc(var(--bottom) + 30px); left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 52px; font-size: 16px; }

/* ---------- 主屏幕 ---------- */
#home { z-index: 10; }
#home.in .icon-wrap, #home.in .widget { animation: flyIn .55s both cubic-bezier(.2,.9,.3,1); }
@keyframes flyIn { from { transform: scale(1.6); opacity: 0; } }
.home-scroll { position: absolute; inset: 0; padding: calc(var(--top) + 12px) 22px 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 20px; justify-items: center; }
.icon-wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 74px; cursor: pointer; }
.icon-wrap span { font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); white-space: nowrap; }
.icon-wrap:active .icon { filter: brightness(.7); }
.icon { position: relative; width: 62px; height: 62px; border-radius: 15px; display: grid; place-items: center; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.icon svg { display: block; width: 100%; height: 100%; }
.badge { position: absolute; top: -5px; right: 2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff3b30; color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; z-index: 2; }
.icon-wrap { position: relative; }
.widget { grid-column: span 2; width: 100%; aspect-ratio: 1; max-width: 160px; border-radius: 22px; overflow: hidden; position: relative; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); justify-self: center; }
.widget:active { transform: scale(.96); }
.wg-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .8s; position: absolute; inset: 0; }
.wg-photo .cap { position: absolute; left: 12px; bottom: 10px; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); z-index: 2; }
.wg-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.45)); }
.wg-music { background: linear-gradient(150deg, #ff9ec7, #8a6cff); color: #fff; padding: 14px; display: flex; flex-direction: column; }
.wg-music .art { width: 62px; height: 62px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.wg-music .t { margin-top: auto; font-weight: 700; font-size: 15px; }
.wg-music .a { font-size: 13px; opacity: .85; }
.wg-music .pp { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.3); display: grid; place-items: center; }
.search-pill { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom) + 116px); display: flex; align-items: center; gap: 5px; font-size: 13px; color: #fff; padding: 6px 13px; border-radius: 16px; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.dock { position: absolute; left: 12px; right: 12px; bottom: calc(var(--bottom) + 14px); height: 92px; border-radius: 32px; background: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5); display: flex; justify-content: space-around; align-items: center; padding: 0 8px; }
.dock .icon-wrap span { display: none; }

/* ---------- App 窗口 ---------- */
#appwin { z-index: 40; background: #fff; border-radius: 0; will-change: transform; }
body.framed #appwin { border-radius: 58px; }
.app-body { position: absolute; inset: 0; overflow: hidden; }
.app { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.chat, .note-page { overflow: hidden; }
.app-close { z-index: 80; }
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; flex: 1; min-height: 0; }
.nav { padding: calc(var(--top) + 4px) 16px 8px; display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.big-title { font-size: 34px; font-weight: 700; padding: 4px 16px 10px; letter-spacing: .3px; }
.link { color: #007aff; font-size: 17px; }

#toast { position: absolute; z-index: 200; left: 50%; top: calc(var(--top) + 10px); transform: translate(-50%, -150%); background: rgba(30,30,40,.92); color: #fff; padding: 10px 16px; border-radius: 20px; font-size: 14px; max-width: 86%; text-align: center; transition: transform .35s cubic-bezier(.2,.9,.3,1.2); pointer-events: none; }
#toast.show { transform: translate(-50%, 0); }

/* ---------- 旅行地球 ---------- */
.app-globe { background: radial-gradient(circle at 50% 40%, #232c7c, #0b0f2c 70%); color: #fff; }
.app-globe::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.4px), radial-gradient(rgba(255,158,199,.4) 1.5px, transparent 2px); background-size: 47px 53px, 71px 61px; background-position: 0 0, 20px 30px; pointer-events: none; }
.globe-head { position: relative; padding: calc(var(--top) + 4px) 20px 0; z-index: 2; }
.globe-head h1 { font-size: 28px; font-weight: 800; font-family: "SF Pro Rounded", ui-rounded, var(--font); }
.globe-head h1 em { font-style: normal; background: linear-gradient(90deg, var(--pink), var(--lav)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.globe-head p { font-size: 13px; opacity: .7; margin-top: 2px; }
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.globe-chips { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(var(--bottom) + 24px); display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px; scrollbar-width: none; }
.globe-chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 14px; border-radius: 20px; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 14px; font-weight: 600; color: #fff; border: 1px solid rgba(255,255,255,.18); }
.chip.wish { border-style: dashed; opacity: .85; }
.chip:active { transform: scale(.94); background: rgba(255,158,199,.4); }
.globe-tip { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(var(--bottom) + 76px); text-align: center; font-size: 12px; opacity: .55; pointer-events: none; }

.sheet-mask { position: absolute; inset: 0; z-index: 10; background: rgba(5,8,30,.45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; z-index: 11; left: 0; right: 0; bottom: 0; height: 84%; border-radius: 28px 28px 0 0; color: #2b2350; transform: translateY(105%); transition: transform .45s cubic-bezier(.2,.9,.25,1); display: flex; flex-direction: column; overflow: hidden;
  background-color: #fff6fb; background-image: radial-gradient(rgba(255,158,199,.28) 3px, transparent 3.6px), radial-gradient(rgba(185,164,255,.25) 3px, transparent 3.6px); background-size: 30px 30px; background-position: 0 0, 15px 15px; }
.sheet.show { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(43,35,80,.25); margin: 8px auto 0; flex: none; }
.sheet-head { padding: 12px 20px 10px; display: flex; align-items: center; gap: 12px; flex: none; }
.sheet-head .em { font-size: 34px; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--pink2), #d9ccff); box-shadow: 0 4px 12px rgba(138,108,255,.25); }
.sheet-head h2 { font-size: 24px; font-weight: 800; font-family: "SF Pro Rounded", ui-rounded, var(--font); }
.sheet-head h2 small { font-size: 14px; font-weight: 600; color: var(--purple); margin-left: 6px; }
.sheet-head .d { font-size: 13px; color: #8a7fb0; margin-top: 2px; }
.sheet-x { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: rgba(43,35,80,.08); font-size: 16px; color: #6b5f99; }
.sheet .scroll { padding: 0 0 calc(var(--bottom) + 40px); }
.chapter { margin: 6px 14px 16px; background: rgba(255,255,255,.9); border-radius: 22px; padding: 14px 0 16px; box-shadow: 0 4px 18px rgba(138,108,255,.12); border: 2px dashed rgba(255,158,199,.45); }
.chapter h3 { font-size: 17px; padding: 0 16px; display: flex; align-items: center; gap: 6px; }
.chapter h3::before { content: "💗"; font-size: 14px; }
.chapter p { font-size: 15px; line-height: 1.65; padding: 8px 16px 0; color: #4a4170; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 2px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip img { flex: none; width: 46%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; scroll-snap-align: start; background: #eee; box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.strip img:nth-child(odd) { transform: rotate(-1.2deg); }
.strip img:nth-child(even) { transform: rotate(1.2deg); }
.wish-box { margin: 0 16px; padding: 22px; text-align: center; border-radius: 18px; background: linear-gradient(135deg, #ffe3f0, #ece5ff); font-size: 14px; color: #7a6aad; }

/* ---------- 照片查看器 ---------- */
.viewer { position: absolute; inset: 0; z-index: 90; background: #000; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; animation: fadeIn .25s; }
.viewer::-webkit-scrollbar { display: none; }
.viewer img { flex: none; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.viewer-x { position: absolute; z-index: 91; top: calc(var(--top) + 6px); right: 16px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 16px; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- 微信 ---------- */
.app-wechat { background: #ededed; color: #111; }
.wx-head { padding: calc(var(--top) + 6px) 16px 10px; text-align: center; font-size: 17px; font-weight: 600; position: relative; background: #ededed; flex: none; }
.wx-head .r { position: absolute; right: 16px; bottom: 8px; font-size: 22px; font-weight: 400; }
.wx-search { margin: 0 10px 8px; background: #fff; border-radius: 6px; padding: 7px; text-align: center; color: #999; font-size: 14px; }
.wx-list { background: #fff; }
.wx-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; position: relative; cursor: pointer; }
.wx-item:active { background: #e5e5e5; }
.wx-item + .wx-item::before { content: ""; position: absolute; top: 0; left: 76px; right: 0; height: .5px; background: #e5e5e5; }
.wx-item img, .wx-item .av { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 24px; }
.wx-item .mid { flex: 1; min-width: 0; }
.wx-item .n { font-size: 17px; }
.wx-item .m { font-size: 14px; color: #999; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-item .t { font-size: 12px; color: #b2b2b2; align-self: flex-start; margin-top: 4px; }
.wx-item .dot { position: absolute; left: 54px; top: 7px; min-width: 18px; height: 18px; border-radius: 9px; background: #fa5151; color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.wx-tabs { display: flex; background: #f7f7f7; border-top: .5px solid #ddd; padding: 6px 0 calc(var(--bottom) + 18px); flex: none; }
.wx-tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 10px; color: #181818; gap: 2px; }
.wx-tabs button.on { color: #07c160; }
.wx-tabs svg { width: 26px; height: 26px; }
.wx-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wx-cell { background: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-size: 16px; position: relative; }
.wx-cell + .wx-cell::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: .5px; background: #e5e5e5; }
.wx-cell::after { content: "›"; margin-left: auto; color: #bbb; font-size: 22px; line-height: 1; }
.wx-cell i { font-style: normal; font-size: 20px; width: 24px; text-align: center; }
.gap { height: 8px; }
.wx-me { background: #fff; padding: calc(var(--top) + 40px) 24px 36px; display: flex; gap: 18px; align-items: center; }
.wx-me img { width: 66px; height: 66px; border-radius: 8px; object-fit: cover; }
.wx-me .n { font-size: 22px; font-weight: 600; }
.wx-me .id { font-size: 15px; color: #888; margin-top: 6px; }

.chat { position: absolute; inset: 0; z-index: 5; background: #ededed; display: flex; flex-direction: column; animation: pushIn .35s cubic-bezier(.2,.9,.3,1); }
.chat.out { animation: pushOut .3s forwards; }
@keyframes pushIn { from { transform: translateX(100%); } }
@keyframes pushOut { to { transform: translateX(100%); } }
.chat-head { padding: calc(var(--top) + 6px) 12px 10px; display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 600; background: #ededed; border-bottom: .5px solid #d8d8d8; flex: none; }
.chat-head button { font-size: 26px; font-weight: 300; width: 44px; text-align: left; }
.chat-head .more { text-align: right; font-size: 20px; }
.msgs { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 14px; }
.msg-time { align-self: center; font-size: 12px; color: #999; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 100%; }
.msg img { width: 40px; height: 40px; border-radius: 5px; object-fit: cover; flex: none; }
.msg .b { position: relative; background: #fff; padding: 10px 12px; border-radius: 5px; font-size: 16px; line-height: 1.4; max-width: 70%; word-break: break-word; -webkit-user-select: text; user-select: text; }
.msg .b::before { content: ""; position: absolute; top: 14px; left: -5px; border: 6px solid transparent; border-left: 0; border-right-color: #fff; }
.msg.me { flex-direction: row-reverse; }
.msg.me .b { background: #95ec69; }
.msg.me .b::before { left: auto; right: -5px; border-right: 0; border-left: 6px solid #95ec69; border-top-color: transparent; border-bottom-color: transparent; }
.msg.pop { animation: pop .3s cubic-bezier(.2,.9,.3,1.4); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.chat-input { flex: none; background: #f7f7f7; border-top: .5px solid #ddd; padding: 8px 10px calc(var(--bottom) + 18px); display: flex; gap: 8px; align-items: center; }
.chat-input .ic { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #222; display: grid; place-items: center; flex: none; font-size: 15px; }
.chat-input input { flex: 1; min-width: 0; height: 38px; border-radius: 6px; border: 0; background: #fff; padding: 0 10px; font-size: 16px; outline: none; }
.chat-input .send { background: #07c160; color: #fff; border-radius: 5px; padding: 0 12px; height: 34px; font-size: 15px; flex: none; }

/* ---------- 音乐 ---------- */
.app-music { color: #fff; background: #1a1030; }
.mu-bg { position: absolute; inset: -40px; filter: blur(50px) saturate(1.4); transition: background .8s; }
.mu-bg::after { content: ""; position: absolute; inset: 0; background: rgba(10,8,30,.35); }
.mu-main { position: relative; flex: 1; display: flex; flex-direction: column; padding: calc(var(--top) + 18px) 28px calc(var(--bottom) + 30px); min-height: 0; }
.mu-art { width: 100%; aspect-ratio: 1; max-height: 42vh; max-width: 42vh; align-self: center; border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.4); transition: transform .5s cubic-bezier(.2,.9,.3,1.2), background .6s; position: relative; overflow: hidden; display: grid; place-items: center; }
.mu-art.paused { transform: scale(.82); }
.mu-art .ttl { font-family: "SF Pro Rounded", ui-rounded, var(--font); font-size: 30px; font-weight: 800; text-align: center; padding: 10px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.mu-art .ttl small { display: block; font-size: 13px; letter-spacing: 4px; font-weight: 700; opacity: .85; margin-top: 4px; }
.art-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.35) 5px, transparent 5.8px); background-size: 34px 34px; }
.mu-info { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; }
.mu-info .t { font-size: 22px; font-weight: 700; }
.mu-info .a { font-size: 18px; opacity: .65; margin-top: 2px; }
.mu-fav { font-size: 22px; }
.mu-bar { margin-top: 20px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.25); position: relative; touch-action: none; }
.mu-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: rgba(255,255,255,.9); width: 0; }
.mu-times { display: flex; justify-content: space-between; font-size: 12px; opacity: .6; margin-top: 6px; font-variant-numeric: tabular-nums; }
.mu-ctrl { display: flex; justify-content: space-around; align-items: center; margin-top: 18px; }
.mu-ctrl button { padding: 8px; transition: transform .15s; }
.mu-ctrl button:active { transform: scale(.85); }
.mu-ctrl svg { fill: #fff; display: block; }
.mu-list { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; }
.mu-row { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 12px; }
.mu-row.on { background: rgba(255,255,255,.14); }
.mu-row .s { width: 40px; height: 40px; border-radius: 8px; flex: none; position: relative; overflow: hidden; }
.mu-row .n { font-size: 15px; font-weight: 600; }
.mu-row .r { font-size: 12px; opacity: .6; }
.eq { margin-left: auto; display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: #fff; border-radius: 1px; animation: eq .8s infinite ease-in-out alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
.eq.stop i { animation: none; height: 3px; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* ---------- 通用 iOS 列表 ---------- */
.ios-bg { background: #f2f2f7; color: #000; }
.group { margin: 0 16px 22px; background: #fff; border-radius: 12px; overflow: hidden; }
.group-title { margin: 0 32px 6px; font-size: 13px; color: #6d6d72; text-transform: uppercase; }
.row { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 46px; font-size: 17px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: .5px; background: #c6c6c8; }
.row.noic + .row.noic::before { left: 16px; }
.row .ri { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 16px; flex: none; }
.row .v { margin-left: auto; color: #8e8e93; font-size: 17px; }
.row.go::after { content: "›"; color: #c4c4c7; font-size: 24px; line-height: 1; margin-left: 6px; }
.row.go .v + ::after { margin: 0; }
.sw { margin-left: auto; width: 51px; height: 31px; border-radius: 16px; background: #e9e9ea; position: relative; transition: background .25s; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.3,.7,.3,1.3); }
.sw.on { background: #34c759; }
.sw.on::after { transform: translateX(20px); }
.profile { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.profile img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.profile .n { font-size: 21px; font-weight: 500; }
.profile .s { font-size: 13px; color: #8e8e93; margin-top: 2px; }
.search-box { margin: 0 16px 16px; background: rgba(118,118,128,.12); border-radius: 10px; padding: 8px 10px; color: #8e8e93; font-size: 17px; }

/* ---------- 照片 ---------- */
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ph-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #eee; }
.ph-tabs { display: flex; justify-content: space-around; padding: 8px 0 calc(var(--bottom) + 18px); border-top: .5px solid #ddd; background: rgba(250,250,250,.95); font-size: 10px; color: #8e8e93; flex: none; }
.ph-tabs span.on { color: #007aff; }

/* ---------- 相机 ---------- */
.app-camera { background: #000; color: #fff; }
.cam-view { flex: 1; position: relative; margin-top: calc(var(--top) + 40px); background: #111; overflow: hidden; }
.cam-view video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-view .msg-c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; font-size: 14px; opacity: .7; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.go { animation: flash .35s; }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }
.cam-modes { display: flex; justify-content: center; gap: 22px; font-size: 13px; padding: 14px 0 8px; color: #aaa; }
.cam-modes b { color: #ffd60a; font-weight: 600; }
.cam-bot { display: flex; justify-content: space-between; align-items: center; padding: 6px 34px calc(var(--bottom) + 30px); }
.cam-thumb { width: 46px; height: 46px; border-radius: 8px; background: #333 center/cover; }
.shutter { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; padding: 4px; }
.shutter i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .1s; }
.shutter:active i { transform: scale(.88); }
.cam-flip { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.15); font-size: 20px; }

/* ---------- 时钟 ---------- */
.app-clock { background: #000; color: #fff; }
.app-clock .link { color: #ff9f0a; }
.wc-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: .5px solid #333; margin-left: 16px; padding-left: 0; }
.wc-row .off { font-size: 14px; color: #8e8e93; }
.wc-row .c { font-size: 26px; margin-top: 2px; }
.wc-row .tm { font-size: 54px; font-weight: 300; font-variant-numeric: tabular-nums; }
.dark-tabs { display: flex; justify-content: space-around; padding: 8px 0 calc(var(--bottom) + 18px); background: #111; font-size: 10px; color: #777; flex: none; }
.dark-tabs span.on { color: #ff9f0a; }

/* ---------- 天气 ---------- */
.app-weather { color: #fff; background: linear-gradient(180deg, #3a5bd9, #8a6cff 60%, #ff9ec7); }
.wt-main { text-align: center; padding: calc(var(--top) + 30px) 20px 20px; }
.wt-main .c { font-size: 32px; }
.wt-main .t { font-size: 96px; font-weight: 200; line-height: 1.05; }
.wt-main .d { font-size: 19px; }
.wt-card { margin: 0 16px 12px; border-radius: 16px; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 12px 16px; }
.wt-card h4 { font-size: 13px; font-weight: 500; opacity: .75; padding-bottom: 8px; border-bottom: .5px solid rgba(255,255,255,.3); }
.wt-city { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 17px; }
.wt-city + .wt-city { border-top: .5px solid rgba(255,255,255,.2); }
.wt-city b { font-size: 28px; font-weight: 400; }

/* ---------- 日历 ---------- */
.cal-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 16px 8px; }
.cal-head h2 { font-size: 28px; color: #000; }
.cal-head h2 span { color: #ff3b30; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; padding: 0 8px; }
.cal-week { font-size: 12px; color: #8e8e93; padding-bottom: 6px; border-bottom: .5px solid #ddd; }
.cal-days div { padding: 10px 0 18px; font-size: 19px; position: relative; }
.cal-days div.today span { background: #ff3b30; color: #fff; border-radius: 50%; display: inline-grid; place-items: center; width: 34px; height: 34px; margin: -5px 0; }
.cal-days div.ev::after { content: "💗"; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 10px; }
.cal-days div.we { color: #8e8e93; }
.cal-events { padding: 12px 16px; }
.cal-ev { background: #fff0f6; border-left: 4px solid var(--pink); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; font-size: 15px; }
.cal-ev small { display: block; color: #8e8e93; font-size: 12px; margin-top: 2px; }

/* ---------- 备忘录 ---------- */
.app-notes { background: #f2f2f7; }
.app-notes .link { color: #e1a700; }
.note-row { padding: 11px 16px; position: relative; }
.note-row + .note-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: #c6c6c8; }
.note-row b { font-size: 17px; display: block; }
.note-row span { font-size: 15px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-top: 2px; }
.note-page { position: absolute; inset: 0; z-index: 5; background: #fff; display: flex; flex-direction: column; animation: pushIn .35s cubic-bezier(.2,.9,.3,1); }
.note-page.out { animation: pushOut .3s forwards; }
.note-page .body { padding: 6px 20px 60px; font-size: 17px; line-height: 1.6; white-space: pre-wrap; outline: none; -webkit-user-select: text; user-select: text; }
.note-page h1 { font-size: 26px; padding: 4px 20px 6px; }
.note-page .dt { text-align: center; font-size: 13px; color: #8e8e93; }

/* ---------- 计算器 ---------- */
.app-calc { background: #000; color: #fff; justify-content: flex-end; padding: 0 16px calc(var(--bottom) + 34px); }
.calc-out { text-align: right; font-size: 84px; font-weight: 300; padding: 0 10px 10px; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.calc-keys button { aspect-ratio: 1; border-radius: 50%; background: #333; font-size: 34px; transition: filter .3s; }
.calc-keys button:active { filter: brightness(1.6); transition: none; }
.calc-keys .fn { background: #a5a5a5; color: #000; }
.calc-keys .op { background: #ff9f0a; }
.calc-keys .op.sel { background: #fff; color: #ff9f0a; }
.calc-keys .z { grid-column: span 2; aspect-ratio: auto; border-radius: 50px; text-align: left; padding-left: 30px; }

/* ---------- 电话 ---------- */
.ph-num { height: 90px; display: flex; align-items: flex-end; justify-content: center; font-size: 38px; padding: 0 30px; letter-spacing: 1px; }
.ph-pad { display: grid; grid-template-columns: repeat(3, 78px); gap: 16px 26px; justify-content: center; margin-top: 26px; }
.ph-pad .key { background: #e5e5ea; color: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ph-pad .key:active, .ph-pad .key.press { background: #b9b9be; }
.ph-call { width: 78px; height: 78px; border-radius: 50%; background: #34c759; display: grid; place-items: center; margin: 18px auto 0; }
.calling { position: absolute; inset: 0; z-index: 5; color: #fff; display: flex; flex-direction: column; align-items: center; padding-top: calc(var(--top) + 60px); animation: fadeIn .3s; }
.calling img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.calling .n { font-size: 32px; }
.calling .s { opacity: .7; margin-top: 6px; }
.calling .end { margin-top: auto; margin-bottom: calc(var(--bottom) + 60px); width: 74px; height: 74px; border-radius: 50%; background: #ff3b30; display: grid; place-items: center; }

/* ---------- 信息 / Safari / 地图 ---------- */
.im-msgs { padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.im { max-width: 72%; padding: 8px 13px; border-radius: 18px; font-size: 16px; line-height: 1.35; }
.im.l { background: #e9e9eb; align-self: flex-start; }
.im.r { background: #0a84ff; color: #fff; align-self: flex-end; }
.sf-favs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; padding: 6px 16px; }
.sf-favs div { text-align: center; font-size: 11px; color: #333; }
.sf-favs i { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 6px; border-radius: 14px; background: #fff; font-style: normal; font-size: 26px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.sf-bar { flex: none; margin: 0 12px calc(var(--bottom) + 22px); background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.12); padding: 12px; text-align: center; color: #8e8e93; font-size: 16px; }
.map-wrap { flex: 1; position: relative; background: #aad3f5; }
.map-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.map-card { position: absolute; left: 10px; right: 10px; bottom: calc(var(--bottom) + 18px); background: rgba(255,255,255,.95); border-radius: 16px; padding: 14px 16px; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.map-card .search-box { margin: 0 0 10px; }
.map-card .pl { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.map-card .pl button { flex: none; padding: 8px 12px; border-radius: 12px; background: #f2f2f7; font-size: 14px; }

/* 每日行程 */
.chapter.day h3::before { content: none; }
.chapter .dn { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #fff; background: linear-gradient(90deg, var(--pink), var(--purple)); padding: 3px 8px; border-radius: 10px; margin-right: 4px; }
.chapter .where { font-size: 13px; color: #8a7fb0; padding: 4px 16px 0; }
.chapter .plan { margin: 8px 16px 0; font-size: 14px; color: #5b4f8a; background: #f4efff; border-radius: 10px; padding: 7px 10px; }
.chapter .plan::before { content: "🗓 "; }
.chapter p.moment { position: relative; margin: 8px 16px 0; padding: 8px 12px 8px 30px; background: #fff0f6; border-radius: 12px; font-size: 15px; color: #4a4170; line-height: 1.5; }
.chapter p.moment::before { content: "💬"; position: absolute; left: 8px; top: 8px; font-size: 13px; }

/* 生日信 */
.note-page.letter { background-color: #fff7fb; background-image: radial-gradient(rgba(255,158,199,.3) 2.5px, transparent 3px), radial-gradient(rgba(185,164,255,.25) 2.5px, transparent 3px); background-size: 28px 28px; background-position: 0 0, 14px 14px; }
.note-page.letter h1 { text-align: center; color: #d6457f; font-family: "SF Pro Rounded", ui-rounded, var(--font); }
.note-page.letter .body { margin: 10px 16px 60px; padding: 22px 20px; background: rgba(255,255,255,.92); border-radius: 18px; border: 2px dashed rgba(255,158,199,.6); box-shadow: 0 6px 20px rgba(138,108,255,.12); font-size: 16px; line-height: 1.9; color: #4a4170; }

/* ================= 💌 信件页 ================= */
.note-row.is-letter { background: linear-gradient(90deg, #fff0f6, #f3eeff); }
.note-row.is-letter b { color: #d6457f; }
.note-page.letter2 { background-color: #ffeef6;
  background-image: radial-gradient(rgba(255,255,255,.95) 5px, transparent 5.6px), radial-gradient(rgba(255,158,199,.45) 4px, transparent 4.6px), radial-gradient(rgba(185,164,255,.45) 3px, transparent 3.6px);
  background-size: 44px 44px, 44px 44px, 22px 22px; background-position: 0 0, 22px 22px, 11px 0; overflow: hidden; }
.lt-floats { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.lt-floats i { position: absolute; bottom: -40px; font-style: normal; opacity: .75; animation: floatUp linear infinite; }
@keyframes floatUp { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: .8; } 100% { transform: translateY(-110vh) rotate(40deg); opacity: 0; } }
.lt-title { text-align: center; font-size: 26px; font-weight: 800; color: #d6457f; font-family: "SF Pro Rounded", ui-rounded, var(--font); margin-top: 4px; text-shadow: 0 2px 0 #fff; }
.lt-sub { text-align: center; font-size: 12px; letter-spacing: 3px; color: #8a6cff; font-weight: 700; margin-top: 4px; }
.lt-stage { position: relative; margin: 30px auto 0; width: 88%; perspective: 1200px; }
.envelope { position: relative; width: 100%; aspect-ratio: 1.42; margin-top: 120px; transition: margin .8s cubic-bezier(.3,.8,.3,1); }
.env-back { position: absolute; inset: 0; border-radius: 10px; background: #f9a8c9; box-shadow: 0 12px 30px rgba(214,69,127,.25); }
.env-front { position: absolute; inset: 0; z-index: 3; border-radius: 10px; overflow: hidden; cursor: pointer;
  background: linear-gradient(to top right, #ffc2da 50%, #ffd6e7 50.5%); clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%);
  transition: transform .8s cubic-bezier(.3,.8,.3,1), opacity .6s .3s; }
.env-front::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.6) 3px, transparent 3.6px); background-size: 18px 18px; mix-blend-mode: screen; }
.env-to { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; font-size: 15px; font-weight: 700; color: #b8336a; z-index: 2; }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 4; transform-origin: top; transition: transform .6s cubic-bezier(.3,.8,.3,1), z-index 0s .3s;
  background: linear-gradient(to bottom, #ff9ec7, #f78bb8); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 10px 10px 0 0; }
.env-seal { position: absolute; z-index: 5; left: 50%; top: 58%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; font-size: 26px;
  background: radial-gradient(circle at 35% 30%, #ff7fb0, #d6457f); box-shadow: 0 4px 12px rgba(214,69,127,.45), inset 0 0 0 3px rgba(255,255,255,.35); animation: seal 1.6s infinite ease-in-out; transition: opacity .3s, transform .3s; }
@keyframes seal { 50% { transform: translate(-50%, -50%) scale(1.1); } }
.pc { position: absolute; z-index: 2; left: 5%; right: 5%; top: 6%; aspect-ratio: 1.42; transition: transform .9s cubic-bezier(.3,.9,.3,1.1) .25s; cursor: pointer; }
.pc-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.8,.3,1); }
.pc-in.flipped { transform: rotateY(180deg); }
.pc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px; overflow: hidden; background: #fff; padding: 5px; box-shadow: 0 10px 28px rgba(60,30,90,.28); }
.pc-face img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: block; }
.pc-back { transform: rotateY(180deg); }
.tape { position: absolute; z-index: 3; width: 74px; height: 22px; opacity: 0; transition: opacity .4s .7s; background: repeating-linear-gradient(45deg, rgba(255,158,199,.85) 0 6px, rgba(255,255,255,.85) 6px 12px); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tape.t1 { top: -9px; left: -14px; transform: rotate(-35deg); }
.tape.t2 { bottom: -9px; right: -14px; transform: rotate(-35deg); background: repeating-linear-gradient(45deg, rgba(185,164,255,.85) 0 6px, rgba(255,255,255,.85) 6px 12px); }
.envelope.open { margin-top: 40px; }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; opacity: 0; transition: transform .6s cubic-bezier(.3,.8,.3,1), opacity .4s .5s, z-index 0s .3s; }
.envelope.open .env-seal { opacity: 0; transform: translate(-50%, -50%) scale(.3); pointer-events: none; }
.envelope.open .pc { transform: translateY(-4%) scale(1.08) rotate(-2deg); z-index: 6; }
.envelope.open .env-front { transform: translateY(55%); opacity: 0; pointer-events: none; }
.envelope.open .tape { opacity: .85; }
.envelope.open .env-back { opacity: 0; transition: opacity .5s .4s; }
.lt-hint { text-align: center; font-size: 13px; color: #a2558a; margin-top: 18px; font-weight: 600; }
.lt-btns { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.lt-btns button { padding: 10px 18px; border-radius: 22px; background: #fff; color: #d6457f; font-weight: 700; font-size: 15px; box-shadow: 0 4px 12px rgba(214,69,127,.18); border: 2px dashed #ffb3d1; }
.lt-btns button:active { transform: scale(.94); }
.lt-stickers { display: flex; justify-content: center; gap: 14px; margin-top: 26px; font-size: 26px; }
.lt-stickers span { display: inline-block; animation: wob 2.4s infinite ease-in-out; }
.lt-stickers span:nth-child(even) { animation-delay: -1.2s; }
@keyframes wob { 50% { transform: translateY(-6px) rotate(8deg); } }
.burst { position: absolute; z-index: 20; left: 50%; top: 45%; font-size: 22px; pointer-events: none; animation: burst 1.3s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(30deg); opacity: 0; } }
.lt-full { position: absolute; inset: 0; z-index: 30; background: #2a1440; animation: fadeIn .25s; }
.lt-full::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,158,199,.25) 3px, transparent 3.6px); background-size: 30px 30px; }
.lt-full-in { position: absolute; inset: 0; overflow: auto; }
.lt-full img { position: absolute; top: 50%; left: 50%; width: calc(var(--ph) - 70px); height: calc(var(--pw) - 24px); object-fit: contain; transform: translate(-50%, -50%) rotate(90deg); }
@media (orientation: landscape) { .lt-full img { width: 96%; height: 90%; transform: translate(-50%, -50%); } .lt-full-tip { display: none; } }
.lt-full-flip { position: absolute; z-index: 2; left: 16px; top: calc(var(--top) + 6px); padding: 8px 14px; border-radius: 18px; background: rgba(255,255,255,.2); color: #fff; font-weight: 600; font-size: 14px; }
.lt-full .viewer-x { z-index: 2; }
.lt-full-tip { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(var(--bottom) + 22px); text-align: center; color: rgba(255,255,255,.75); font-size: 12px; }
