:root {
  --ink: #16161c;
  --muted: #707078;
  --paper: #f7f7f8;
  --line: rgba(24, 24, 30, 0.1);
  --accent: #ef6b4d;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #d9d3c7; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif; }
button { font: inherit; }
body { min-height: 100svh; overflow-x: hidden; }

.stage {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) auto minmax(250px, .7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 86px);
  padding: 44px clamp(32px, 5vw, 88px);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 70% 18%, rgba(242, 107, 77, .22), transparent 26%),
    radial-gradient(circle at 16% 76%, rgba(63, 103, 105, .2), transparent 30%),
    linear-gradient(135deg, #ece8df 0%, #cfc7b9 100%);
}

.stage::before { content: ""; position: fixed; inset: 0; opacity: .28; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); z-index: -1; }

.intro { max-width: 420px; align-self: center; }
.eyebrow { margin: 0 0 20px; font-size: 11px; letter-spacing: .24em; font-weight: 750; color: #777066; }
.intro h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-weight: 500; font-size: clamp(42px, 5vw, 74px); line-height: .98; letter-spacing: -.05em; }
.intro h1 em { color: var(--accent); font-weight: inherit; }
.lede { max-width: 34ch; font-size: 15px; line-height: 1.8; color: #65615b; margin: 30px 0; }
.hint { font-size: 12px; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; color: #625e58; }
.hint span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(239, 107, 77, .13); animation: pulse 2s infinite; }

.phone-shell { justify-self: center; filter: drop-shadow(0 38px 45px rgba(52, 44, 38, .28)); }
.phone { width: min(382px, calc(100vw - 28px)); aspect-ratio: 382 / 790; background: #141416; border-radius: 58px; padding: 9px; position: relative; box-shadow: inset 0 0 0 1px #58585d, inset 0 0 0 3px #202024, 0 2px 1px #777; }
.screen { width: 100%; height: 100%; border-radius: 49px; overflow: hidden; position: relative; background: #f6f6f7; isolation: isolate; }
.wallpaper { position: absolute; inset: 0; background-color: #fff7d6; background-image: url("./pic/home.jpg"); background-position: center; background-size: 100% auto; background-repeat: no-repeat; }
.wallpaper::after { content: none; }
.status-bar { height: 54px; padding: 11px 21px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; position: absolute; z-index: 90; inset: 0 0 auto; color: white; font-size: 14px; font-weight: 650; letter-spacing: -.2px; transition: color .25s; pointer-events: none; }
.status-bar.dark { color: #111; }
#status-time { padding: 5px 0 0 5px; font-variant-numeric: tabular-nums; }
.island { width: 104px; height: 31px; border: 0; border-radius: 20px; background: #050506; cursor: pointer; pointer-events: auto; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.04); }
.status-icons { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding-top: 6px; }
.signal { width: 17px; height: 11px; display: flex; align-items: flex-end; gap: 1.5px; }
.signal i { display: block; width: 3px; border-radius: 2px; background: currentColor; }
.signal i:nth-child(1) { height: 4px; }
.signal i:nth-child(2) { height: 6px; }
.signal i:nth-child(3) { height: 8px; }
.signal i:nth-child(4) { height: 11px; }
.wifi { width: 16px; height: 12px; position: relative; overflow: hidden; }
.wifi::before, .wifi::after, .wifi i { content: ""; position: absolute; left: 50%; border: 2px solid currentColor; border-left-color: transparent; border-right-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: translateX(-50%); }
.wifi::before { width: 17px; height: 17px; top: 1px; }
.wifi::after { width: 11px; height: 11px; top: 5px; }
.wifi i { width: 3px; height: 3px; top: 9px; background: currentColor; border: 0; }
.battery { width: 23px; height: 11px; border: 1.3px solid currentColor; border-radius: 3px; padding: 1.5px; position: relative; opacity: .95; }
.battery::after { content: ""; position: absolute; right: -3px; top: 2px; width: 2px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0; }
.battery i { display: block; width: 74%; height: 100%; background: currentColor; border-radius: 1px; }

.screens { position: absolute; inset: 0; z-index: 2; }
.view { position: absolute; inset: 0; overflow: hidden; animation: appIn .42s var(--ease) both; }
.view.closing { animation: appOut .24s ease both; }
.lock-view { color: #792719; background: #e9c4a6; animation: fadeIn .35s ease both; touch-action: none; }
.lock-photo { position: absolute; inset: -2px; background: #e9c4a6 url("./pic/pic1.jpg") center / cover no-repeat; }
.lock-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,244,227,.08), transparent 26%, transparent 68%, rgba(75,25,14,.12)); }
.lock-clock { position: absolute; z-index: 2; top: 76px; left: 0; right: 0; text-align: center; text-shadow: 0 1px 13px rgba(255,248,230,.8); }
.lock-date { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -.1px; }
.lock-time { display: block; margin-top: 0; font-size: 86px; line-height: .96; font-weight: 510; letter-spacing: -5px; font-variant-numeric: tabular-nums; }
.lock-player { position: absolute; z-index: 4; top: 235px; left: 16px; right: 16px; height: 224px; padding: 16px 16px 12px; color: white; background: rgba(45,35,28,.72); -webkit-backdrop-filter: blur(24px) saturate(130%); backdrop-filter: blur(24px) saturate(130%); border-radius: 27px; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.2), 0 9px 30px rgba(66,30,18,.18); }
.player-heading { display: grid; grid-template-columns: 58px minmax(0,1fr) 35px; align-items: center; gap: 12px; }
.player-heading img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 9px rgba(0,0,0,.25); }
.player-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.player-copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 18px; line-height: 22px; font-weight: 650; letter-spacing: -.2px; }
.player-copy span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: rgba(255,255,255,.68); font-size: 12px; line-height: 17px; font-weight: 500; }
.player-levels { height: 26px; display: flex; justify-content: flex-end; align-items: center; gap: 3px; }
.player-levels i { width: 3px; border-radius: 3px; background: rgba(255,255,255,.85); animation: playerLevel .8s ease-in-out infinite alternate; }
.player-levels i:nth-child(1) { height: 10px; }
.player-levels i:nth-child(2) { height: 21px; animation-delay: -.45s; }
.player-levels i:nth-child(3) { height: 15px; animation-delay: -.2s; }
.player-levels i:nth-child(4) { height: 23px; animation-delay: -.6s; }
.player-levels.paused i { animation-play-state: paused; }
.player-progress { margin-top: 16px; }
.progress-track { height: 4px; border-radius: 3px; background: rgba(255,255,255,.23); overflow: hidden; }
.progress-track i { display: block; width: 3.55%; height: 100%; border-radius: inherit; background: rgba(255,255,255,.94); }
.progress-times { display: flex; justify-content: space-between; margin-top: 5px; color: rgba(255,255,255,.68); font-size: 11px; font-variant-numeric: tabular-nums; }
.player-controls { height: 69px; display: grid; grid-template-columns: repeat(5,1fr); align-items: center; }
.player-controls button { width: 46px; height: 46px; margin: 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: white; display: grid; place-items: center; position: relative; font-size: 27px; line-height: 1; font-weight: 650; cursor: pointer; }
.player-controls button:active { background: rgba(255,255,255,.14); transform: scale(.92); }
.player-controls button small { position: absolute; inset: 17px 0 auto; font-size: 9px; font-weight: 750; }
.player-controls .player-toggle { width: 54px; height: 54px; background: white; color: #2c2723; font-size: 25px; letter-spacing: -5px; padding-right: 5px; }
.lock-actions { position: absolute; z-index: 3; left: 31px; right: 31px; bottom: 43px; display: flex; justify-content: space-between; }
.lock-tool { width: 48px; height: 48px; border: 0; border-radius: 50%; color: #542317; background: rgba(255,240,218,.58); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 2px 14px rgba(89,36,25,.13); display: grid; place-items: center; cursor: pointer; }
.lock-tool:active { transform: scale(.91); background: rgba(255,247,233,.78); }
.flashlight-tool i { width: 13px; height: 24px; border-radius: 3px 3px 5px 5px; background: currentColor; position: relative; }
.flashlight-tool i::before { content: ""; position: absolute; left: -3px; top: -5px; width: 19px; height: 8px; border-radius: 3px; background: currentColor; }
.camera-tool i { width: 25px; height: 18px; border-radius: 5px; background: currentColor; position: relative; }
.camera-tool i::before { content: ""; position: absolute; width: 9px; height: 9px; left: 8px; top: 4px; border-radius: 50%; background: rgba(255,240,218,.7); box-shadow: inset 0 0 0 2px currentColor; }
.camera-tool i::after { content: ""; position: absolute; left: 7px; top: -4px; width: 11px; height: 6px; border-radius: 3px 3px 0 0; background: currentColor; }
.unlock-hint { position: absolute; z-index: 4; bottom: 15px; left: 50%; transform: translateX(-50%); width: 180px; padding: 1px 8px; border: 0; background: transparent; color: #68271c; text-shadow: 0 1px 9px rgba(255,245,225,.92); cursor: pointer; animation: unlockPulse 2.2s ease-in-out infinite; }
.unlock-hint span { font-size: 11px; line-height: 15px; font-weight: 600; letter-spacing: .06em; }

.passcode-view { color: white; }
.passcode-view .lock-photo { inset: -24px; filter: blur(18px) brightness(.53) saturate(.85); transform: scale(1.08); }
.passcode-overlay { position: absolute; inset: 0; background: rgba(63,21,14,.23); backdrop-filter: blur(1px); }
.passcode-panel { position: absolute; z-index: 3; inset: 78px 24px 36px; display: flex; flex-direction: column; align-items: center; }
.passcode-title { min-height: 40px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 18px; font-weight: 600; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.passcode-dots { height: 32px; display: flex; align-items: center; gap: 17px; margin: 2px 0 24px; }
.passcode-dots i { width: 12px; height: 12px; border: 1.6px solid rgba(255,255,255,.92); border-radius: 50%; transition: background .12s, transform .12s; }
.passcode-dots i.filled { background: white; transform: scale(1.04); }
.keypad { width: 276px; max-width: 100%; margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px 20px; align-items: center; justify-items: center; }
.number-key { width: 69px; height: 69px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.22); color: white; backdrop-filter: blur(12px); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; text-shadow: 0 1px 5px rgba(0,0,0,.22); transition: transform .1s, background .1s; }
.number-key:active { transform: scale(.91); background: rgba(255,255,255,.44); }
.number-key strong { font-size: 29px; line-height: 29px; font-weight: 430; }
.number-key small { min-height: 11px; font-size: 9px; line-height: 11px; font-weight: 700; letter-spacing: .18em; padding-left: .18em; }
.keypad-action { width: 70px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: white; font-size: 14px; font-weight: 580; text-shadow: 0 1px 7px rgba(0,0,0,.28); cursor: pointer; }
.passcode-panel.wrong { animation: wrongPasscode .42s ease; }
.passcode-view.unlocking { animation: unlockScreen .42s var(--ease) forwards; }
.home-view { color: white; padding: 67px 15px 14px; display: flex; flex-direction: column; }
.weather-widget { min-height: 120px; padding: 13px 15px 12px; border-radius: 25px; display: grid; grid-template-columns: 1fr 1.32fr; gap: 12px; color: white; background: linear-gradient(140deg, rgba(26,29,61,.94), rgba(27,34,72,.84)); -webkit-backdrop-filter: blur(22px) saturate(135%); backdrop-filter: blur(22px) saturate(135%); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.16), 0 7px 22px rgba(22,26,55,.16); }
.weather-main { display: flex; flex-direction: column; }
.weather-main span { font-size: 13px; font-weight: 600; }
.weather-main strong { font-size: 46px; line-height: 48px; font-weight: 310; letter-spacing: -3px; }
.weather-main small { margin-top: 2px; font-size: 12px; color: rgba(255,255,255,.72); }
.weather-days { display: grid; align-content: center; gap: 8px; }
.weather-days > span { display: grid; grid-template-columns: 36px 19px 1fr; align-items: center; gap: 7px; font-size: 11px; }
.weather-days b { font-weight: 580; }
.weather-days em { font-style: normal; text-align: right; color: rgba(255,255,255,.82); }
.weather-days i { width: 17px; height: 17px; position: relative; display: block; }
.weather-days .sunny { border-radius: 50%; background: #ffd43b; box-shadow: 0 0 8px rgba(255,212,59,.5); transform: scale(.64); }
.weather-days .cloudy::before { content: ""; position: absolute; width: 17px; height: 8px; left: 0; bottom: 2px; border-radius: 8px; background: #f3f5fa; }
.weather-days .cloudy::after { content: ""; position: absolute; width: 10px; height: 10px; left: 4px; top: 2px; border-radius: 50%; background: #f3f5fa; }
.home-dashboard { margin-top: 14px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 13px; align-items: stretch; }
.calendar-widget { min-height: 184px; padding: 16px 16px; border-radius: 27px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #111; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.66), 0 7px 22px rgba(62,45,33,.1); }
.calendar-widget span { color: #f3433c; font-size: 12px; line-height: 16px; font-weight: 700; }
.calendar-widget strong { display: block; margin-top: 1px; font-size: 54px; line-height: 58px; font-weight: 350; letter-spacing: -3px; }
.calendar-widget p { margin: 43px 0 0; color: #8f8f94; font-size: 12px; line-height: 16px; white-space: nowrap; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 8px; row-gap: 15px; align-content: start; }
.app-button { min-width: 0; padding: 0; border: 0; background: transparent; color: white; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; line-height: 15px; font-weight: 500; letter-spacing: -.25px; cursor: pointer; text-shadow: 0 1px 2px rgba(0,0,0,.82), 0 0 5px rgba(0,0,0,.36); position: relative; -webkit-tap-highlight-color: transparent; }
.app-button > span:last-child { width: 70px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; }
.app-button:active .app-icon { transform: scale(.9); }
.app-icon { width: 60px; height: 60px; border-radius: 13.5px; display: grid; place-items: center; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,.24); transition: transform .15s; overflow: hidden; background: transparent; }
.app-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.icon-settings img { transform: scale(1.08); }
.badge { position: absolute; z-index: 4; top: -7px; right: 2px; min-width: 21px; height: 21px; padding: 0 5px; display: grid; place-items: center; border-radius: 12px; background: #ff3b30; color: white; font-size: 12px; line-height: 1; font-weight: 600; text-shadow: none; border: 2px solid white; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.home-search { width: 76px; height: 27px; margin: auto auto 10px; padding: 0 10px; border: 0; border-radius: 15px; background: rgba(224,224,224,.62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: rgba(34,34,34,.63); display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; font-weight: 600; opacity: 1; }
.home-search i { width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.home-search i::after { content: ""; position: absolute; width: 4px; height: 1.5px; right: -3px; bottom: -1px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.dock { min-height: 85px; padding: 11px 12px 14px; border-radius: 29px; background: rgba(232,232,232,.55); -webkit-backdrop-filter: blur(28px) saturate(145%); backdrop-filter: blur(28px) saturate(145%); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.5), 0 6px 24px rgba(69,55,40,.1); display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 14px; }
.dock .app-button span:last-child { display: none; }
.dock .app-button { gap: 0; }

.app-view { background: #f5f5f7; color: #111; padding-top: 54px; }
.wechat-view { background: #ededed; display: flex; flex-direction: column; }
.wechat-header { position: relative; flex: 0 0 58px; display: flex; align-items: center; justify-content: flex-end; padding: 0 16px; background: #ededed; border-bottom: .5px solid rgba(0,0,0,.12); }
.wechat-header h2 { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; font-size: 18px; font-weight: 650; line-height: 1; }
.wechat-header-actions { display: flex; align-items: center; gap: 20px; }
.wechat-header-actions button { border: 0; padding: 0; background: transparent; color: #171717; cursor: default; }
.wechat-search { width: 24px; height: 24px; position: relative; }
.wechat-search::before { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; left: 1px; top: 1px; }
.wechat-search::after { content: ""; position: absolute; width: 8px; height: 2px; background: currentColor; transform: rotate(45deg); border-radius: 2px; right: 1px; bottom: 4px; }
.wechat-add { width: 25px; height: 25px; font-size: 30px; font-weight: 300; line-height: 22px; }
.wechat-device { flex: 0 0 54px; padding: 0 20px; display: flex; align-items: center; gap: 17px; background: #f1f1f1; border-bottom: .5px solid rgba(0,0,0,.1); color: #777; font-size: 14px; }
.device-icon { width: 26px; height: 23px; border: 1.6px solid #878787; border-radius: 2px; position: relative; }
.device-icon::after { content: ""; position: absolute; left: 6px; bottom: -4px; width: 13px; height: 1.5px; background: #878787; }
.device-icon i { position: absolute; right: -7px; bottom: -3px; width: 8px; height: 15px; border: 1.5px solid #878787; border-radius: 1px; background: #f1f1f1; }
.wechat-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; background: white; scrollbar-width: none; }
.wechat-list::-webkit-scrollbar { display: none; }
.wechat-row { width: 100%; min-height: 68px; padding: 8px 16px 8px 13px; border: 0; background: white; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; position: relative; cursor: pointer; }
.wechat-row::after { content: ""; position: absolute; left: 73px; right: 0; bottom: 0; height: .5px; background: rgba(0,0,0,.1); }
.wechat-row:active { background: #dedede; }
.wechat-avatar-placeholder { width: 48px; height: 48px; border-radius: 5px; background: #eeeeee; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.04); }
.wechat-avatar-placeholder.group { background: #e9e9e9; }
.wechat-row-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.wechat-contact-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; line-height: 22px; font-weight: 430; color: #171717; }
.wechat-preview { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: #a2a2a2; }
.wechat-time { align-self: start; padding-top: 6px; font-size: 11px; color: #b2b2b2; }
.wechat-tabs { flex: 0 0 71px; padding: 5px 6px 18px; border-top: .5px solid rgba(0,0,0,.16); background: rgba(248,248,248,.97); display: grid; grid-template-columns: repeat(4, 1fr); }
.wechat-tab { border: 0; padding: 0; background: transparent; color: #151515; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; font-size: 10px; line-height: 13px; cursor: default; }
.wechat-tab.active { color: #07c160; }
.wechat-tab[aria-disabled="true"] { pointer-events: none; }
.tab-icon { display: block; width: 27px; height: 25px; position: relative; color: currentColor; }
.tab-icon.chats::before { content: ""; position: absolute; left: 2px; top: 3px; width: 22px; height: 17px; border-radius: 50%; background: currentColor; }
.tab-icon.chats::after { content: ""; position: absolute; left: 4px; bottom: 2px; width: 8px; height: 8px; background: currentColor; transform: rotate(25deg); }
.tab-icon.contacts::before { content: ""; position: absolute; left: 10px; top: 1px; width: 8px; height: 8px; border: 1.8px solid currentColor; border-radius: 50%; }
.tab-icon.contacts::after { content: ""; position: absolute; left: 5px; bottom: 1px; width: 18px; height: 10px; border: 1.8px solid currentColor; border-radius: 11px 11px 3px 3px; }
.tab-icon.discover { border: 1.8px solid currentColor; border-radius: 50%; width: 23px; height: 23px; margin-top: 1px; }
.tab-icon.discover::before { content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 9px; border: 1.6px solid currentColor; transform: rotate(38deg); border-radius: 50% 50% 45% 45%; }
.tab-icon.profile::before { content: ""; position: absolute; left: 9px; top: 1px; width: 8px; height: 8px; border: 1.8px solid currentColor; border-radius: 50%; }
.tab-icon.profile::after { content: ""; position: absolute; left: 4px; bottom: 1px; width: 18px; height: 10px; border: 1.8px solid currentColor; border-radius: 12px 12px 0 0; }
.app-header { min-height: 57px; padding: 8px 17px 10px; display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(248,248,249,.88); backdrop-filter: blur(20px); position: relative; z-index: 3; }
.app-header h2 { margin: 0; font-size: 30px; letter-spacing: -.7px; }
.app-header.compact { align-items: center; min-height: 50px; padding-top: 3px; }
.app-header.compact h2 { font-size: 17px; letter-spacing: 0; }
.back { border: 0; background: transparent; color: #1684ff; padding: 8px 8px 8px 0; cursor: pointer; min-width: 62px; text-align: left; font-size: 16px; }
.header-action { border: 0; background: transparent; color: #1684ff; padding: 8px 0 8px 8px; cursor: pointer; font-size: 18px; }
.list { height: calc(100% - 58px); overflow: auto; padding-bottom: 40px; scrollbar-width: none; }
.list::-webkit-scrollbar, .chat::-webkit-scrollbar { display: none; }
.list-row { width: 100%; border: 0; background: #fff; padding: 10px 15px; min-height: 71px; display: grid; grid-template-columns: 49px 1fr auto; gap: 11px; align-items: center; text-align: left; cursor: pointer; position: relative; }
.list-row::after { content: ""; position: absolute; height: 1px; background: var(--line); bottom: 0; left: 75px; right: 0; }
.list-row:active { background: #e9e9eb; }
.avatar { width: 49px; height: 49px; border-radius: 7px; color: white; display: grid; place-items: center; font-size: 18px; font-weight: 600; }
.row-copy { min-width: 0; }
.row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.row-name { font-size: 16px; font-weight: 550; }
.row-time { color: #a0a0a5; font-size: 12px; white-space: nowrap; }
.row-preview { color: #929298; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 5px; }
.unread { width: 19px; height: 19px; display: grid; place-items: center; color: white; background: #f2413b; border-radius: 50%; font-size: 11px; }

.chat-view { background: #ededee; }
.chat { height: calc(100% - 111px); overflow: auto; padding: 18px 12px 78px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; }
.time-label { text-align: center; color: #a0a0a5; font-size: 11px; margin: 6px 0 0; }
.bubble-row { display: flex; max-width: 85%; gap: 8px; align-items: flex-start; }
.bubble-row.out { align-self: flex-end; flex-direction: row-reverse; }
.mini-avatar { width: 35px; height: 35px; border-radius: 5px; color: white; display: grid; place-items: center; flex: 0 0 auto; font-size: 13px; }
.bubble { position: relative; background: white; border-radius: 6px; padding: 10px 12px; font-size: 15px; line-height: 1.45; box-shadow: 0 .5px 1px rgba(0,0,0,.08); }
.out .bubble { background: #95ec69; }
.bubble.voice { min-width: 124px; }
.bubble.voice::before { content: "◖ )))"; margin-right: 18px; font-size: 12px; }
.photo-message { width: 175px; min-height: 220px; border-radius: 7px; padding: 16px; display: flex; align-items: flex-end; color: white; line-height: 1.45; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.72)), radial-gradient(circle at 70% 35%, #d68c62, transparent 22%), linear-gradient(145deg, #1b2832, #6f4a3e); box-shadow: 0 5px 14px rgba(0,0,0,.2); font-size: 12px; }
.chat-input { position: absolute; bottom: 21px; left: 0; right: 0; height: 56px; background: rgba(247,247,248,.94); backdrop-filter: blur(15px); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.fake-input { height: 37px; border-radius: 7px; background: white; flex: 1; border: 1px solid #dedee1; }
.round-button { width: 29px; height: 29px; padding: 0; border: 1.5px solid #555; background: transparent; border-radius: 50%; display: grid; place-items: center; }

.call-section-title { padding: 15px 17px 8px; color: #777; font-size: 13px; }
.call-row { min-height: 62px; padding: 8px 16px 8px 34px; background: #fff; display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--line); position: relative; }
.call-row::before { content: "☎"; color: #a2a2a8; position: absolute; left: 15px; font-size: 10px; transform: rotate(-25deg); }
.call-name { font-size: 16px; font-weight: 540; }
.call-name.missed { color: #e6372e; }
.call-meta { margin-top: 3px; font-size: 12px; color: #999; }
.info { color: #1684ff; border: 1.5px solid currentColor; border-radius: 50%; background: transparent; width: 22px; height: 22px; padding: 0; font-size: 13px; }

.photo-grid { padding: 2px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.photo-tile { aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; position: relative; overflow: hidden; }
.photo-tile::after { content: attr(data-title); position: absolute; inset: auto 5px 5px; color: white; font-size: 9px; text-align: left; text-shadow: 0 1px 5px #000; }
.photo-art { width: 100%; height: 100%; transition: transform .35s; }
.photo-tile:active .photo-art { transform: scale(.94); }
.clock { background: radial-gradient(circle at 51% 30%, #f2c484 0 3%, #473527 4% 10%, transparent 11%), linear-gradient(90deg, transparent 45%, #312c29 46% 55%, transparent 56%), linear-gradient(#25313a 0 55%, #97694e 56%); }
.metro { background: repeating-linear-gradient(90deg, #2d3c46 0 8%, #9ca7aa 8% 10%, #26343e 10% 32%), linear-gradient(#3b4d59, #10181f); }
.portrait { background: radial-gradient(ellipse at 52% 35%, #d7a47e 0 14%, transparent 15%), radial-gradient(ellipse at 50% 75%, #4c6074 0 30%, transparent 31%), linear-gradient(145deg,#b4c2c3,#4b606a); }
.ticket { background: linear-gradient(160deg, transparent 0 20%, #f3d79d 21% 76%, transparent 77%), #44515a; }
.sea { background: linear-gradient(#85c5df 0 52%, #f6d6a2 53% 61%, #56a0b8 62% 100%); }
.road { background: radial-gradient(circle at 50% 34%, #ffd58c 0 3%, transparent 4%), linear-gradient(115deg, transparent 48%, #60615e 49% 51%, transparent 52%), linear-gradient(#232d35 0 55%, #1b1e21 56%); }
.photo-detail { position: absolute; inset: 0; z-index: 8; background: #08080a; color: white; animation: fadeIn .25s both; padding-top: 54px; }
.photo-detail .app-header { background: rgba(8,8,10,.84); color: white; border-color: #29292c; }
.photo-detail .app-header h2 { font-size: 15px; }
.photo-detail-content { height: calc(100% - 55px); display: flex; flex-direction: column; justify-content: center; }
.photo-large { width: 100%; aspect-ratio: 1.15; }
.photo-caption { padding: 18px 24px; text-align: center; }
.photo-caption time { font-size: 11px; color: #94949b; }
.photo-caption p { margin: 9px auto 0; font-size: 13px; color: #d6d6d9; line-height: 1.6; max-width: 28ch; }

.notes-list { padding: 15px 12px 40px; }
.notes-group { background: white; border-radius: 11px; overflow: hidden; }
.note-row { display: block; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; cursor: pointer; }
.note-row:last-child { border-bottom: 0; }
.note-title { font-size: 16px; font-weight: 650; }
.note-preview { font-size: 12px; color: #96969c; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-paper { height: calc(100% - 55px); overflow: auto; background: #fff; padding: 24px 22px 70px; }
.note-paper time { color: #999; font-size: 11px; display: block; text-align: center; }
.note-paper h3 { font-size: 24px; margin: 15px 0 20px; }
.note-paper p { white-space: pre-line; font-size: 16px; line-height: 1.8; margin: 0; }

.empty-app { height: calc(100% - 58px); display: grid; place-items: center; text-align: center; padding: 40px; color: #888; }
.empty-symbol { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; margin: 0 auto 18px; background: #e6e6e9; color: #98989d; font-size: 36px; }
.toast { position: absolute; z-index: 110; top: 59px; left: 12px; right: 12px; border-radius: 17px; padding: 12px 14px; background: rgba(246,246,248,.9); backdrop-filter: blur(24px); box-shadow: 0 12px 30px rgba(0,0,0,.2); color: #151519; font-size: 12px; transform: translateY(-120px); opacity: 0; transition: .4s var(--ease); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast strong { display: block; font-size: 13px; margin-bottom: 3px; }
.home-indicator-wrap { position: absolute; z-index: 100; height: 21px; bottom: 0; left: 0; right: 0; display: grid; place-items: start center; pointer-events: none; }
.home-indicator { width: 134px; height: 5px; border: 0; border-radius: 5px; background: white; mix-blend-mode: difference; padding: 0; cursor: pointer; pointer-events: auto; }
.side-button { position: absolute; width: 3px; background: #303034; border-radius: 2px 0 0 2px; left: -3px; }
.volume-up { height: 47px; top: 145px; }
.volume-down { height: 47px; top: 207px; }
.power { left: auto; right: -3px; top: 174px; height: 74px; border-radius: 0 2px 2px 0; }

.chapter-card { align-self: end; margin-bottom: 8vh; max-width: 280px; border-top: 1px solid rgba(22,22,28,.3); padding-top: 17px; }
.chapter-card span { display: block; font-size: 10px; letter-spacing: .18em; color: #7f786f; margin-bottom: 8px; }
.chapter-card strong { font-family: Georgia, "Songti SC", serif; font-size: 24px; font-weight: 500; }
.chapter-card p { font-size: 12px; line-height: 1.65; color: #6b655e; }

@keyframes appIn { from { opacity: 0; transform: scale(.84) translateY(25px); border-radius: 30px; } to { opacity: 1; transform: scale(1); border-radius: 0; } }
@keyframes appOut { to { opacity: 0; transform: scale(.8) translateY(30px); border-radius: 34px; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(239,107,77,0); } }
@keyframes unlockPulse { 50% { transform: translate(-50%, -4px); opacity: .68; } }
@keyframes playerLevel { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
@keyframes wrongPasscode { 20%, 60% { transform: translateX(-11px); } 40%, 80% { transform: translateX(11px); } }
@keyframes unlockScreen { to { opacity: 0; transform: scale(1.08); } }

@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr auto; }
  .chapter-card { display: none; }
}

@media (max-width: 760px), (max-height: 600px) and (pointer: coarse) {
  html, body { width: 100%; height: 100%; overflow: hidden; background: #111; }
  body { background: #111; }
  .stage { display: block; min-height: 100svh; padding: 0; background: #111; }
  .intro, .chapter-card { display: none; }
  .phone-shell { width: 100%; height: 100%; filter: none; }
  .phone { width: 100vw; height: 100svh; height: 100dvh; aspect-ratio: auto; border-radius: 0; padding: 0; box-shadow: none; }
  .screen { border-radius: 0; }
  .side-button { display: none; }
  .passcode-panel { bottom: max(34px, env(safe-area-inset-bottom)); }
}

@media (max-width: 350px) {
  .home-view { padding-left: 11px; padding-right: 11px; }
  .weather-widget { padding-left: 12px; padding-right: 12px; }
  .home-dashboard { gap: 8px; }
  .calendar-widget { padding-left: 13px; padding-right: 13px; }
  .calendar-widget p { font-size: 10px; }
  .app-icon { width: 54px; height: 54px; border-radius: 12px; }
  .app-grid { row-gap: 19px; }
  .dock { gap: 8px; }
  .lock-player { left: 11px; right: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
