/* =========================================================
   iPhone 15 互动手机 — 样式表
   屏幕逻辑尺寸 393 x 852（iPhone 15 / 15 Pro 一致）
   视觉规范：iOS 18（原生 App）/ 各软件最新版（第三方 App）
   ========================================================= */

:root{
  /* ===== 壁纸：换壁纸只需要改这一行 ===== */
  --wallpaper: radial-gradient(120% 80% at 20% 10%, #6f7ea8 0%, #3a4463 38%, #171a26 72%, #0a0b10 100%);
  --wallpaper-tint: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.45) 100%);

  --sb-h: 54px;
  --dock-h: 96px;
  --blue:#007aff;
  --green:#34c759;
  --red:#ff3b30;
  --orange:#ff9500;
  --kakao:#fee500;

  --label:#000;
  --label2:rgba(60,60,67,.6);
  --label3:rgba(60,60,67,.3);
  --sep:rgba(60,60,67,.29);
  --bg-group:#f2f2f7;

  --ease:cubic-bezier(.32,.72,0,1);
}

*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
html,body{height:100%;overflow:hidden;background:#08090c;}
body{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","PingFang SC","Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  display:grid;place-items:center;
  background:radial-gradient(60% 60% at 50% 45%, #1c2130 0%, #0a0c12 55%, #050608 100%);
}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;}
img{display:block;max-width:100%;}
::-webkit-scrollbar{width:0;height:0;}

#stage{position:fixed;inset:0;display:grid;place-items:center;}

/* ---------------- 手机外壳 ---------------- */
#phone{
  position:absolute;left:50%;top:50%;
  width:393px;height:852px;
  transform:translate(-50%,-50%) scale(1);
  transform-origin:center center;
}
#screen{
  position:relative;width:100%;height:100%;border-radius:52px;overflow:hidden;
  background:#000;isolation:isolate;
  box-shadow:
    0 0 0 11px #14151a,
    0 0 0 13px #3a3c44,
    0 0 0 14px #0c0d10,
    0 46px 90px -20px rgba(0,0,0,.85),
    0 10px 30px rgba(0,0,0,.6);
}
.wallpaper{
  position:absolute;inset:0;background:var(--wallpaper);background-size:cover;background-position:center;
  transition:transform .5s var(--ease),filter .4s;
}
.wallpaper::after{content:"";position:absolute;inset:0;background:var(--wallpaper-tint);}

/* ---------------- 状态栏 ---------------- */
.status-bar{
  position:absolute;top:0;left:0;right:0;height:var(--sb-h);z-index:900;
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 30px 0;pointer-events:none;color:#fff;
  transition:color .25s;
}
.status-bar.dark{color:#000;}
.sb-left{font-size:16px;font-weight:600;letter-spacing:.2px;min-width:54px;}
.sb-right{display:flex;align-items:center;gap:6px;}
.sb-sig{width:18px;height:12px;fill:currentColor;}
.sb-wifi{width:16px;height:12px;fill:currentColor;}
.sb-bat{width:26px;height:13px;border:1.2px solid currentColor;border-radius:4px;padding:1.5px;opacity:.9;position:relative;}
.sb-bat::after{content:"";position:absolute;right:-3.5px;top:4px;width:2px;height:5px;background:currentColor;border-radius:0 2px 2px 0;opacity:.5;}
.sb-bat i{display:block;height:100%;width:78%;background:currentColor;border-radius:2px;}

.dynamic-island{
  position:absolute;top:11px;left:50%;transform:translateX(-50%);
  width:124px;height:35px;background:#000;border-radius:20px;z-index:950;
}
.home-indicator{
  position:absolute;bottom:8px;left:50%;transform:translateX(-50%);
  width:140px;height:5px;border-radius:3px;background:rgba(255,255,255,.85);z-index:960;
  transition:background .25s;
}
.home-indicator.dark{background:rgba(0,0,0,.85);}

/* ---------------- 锁屏 ---------------- */
.lock-layer{
  position:absolute;inset:0;z-index:600;
  display:flex;flex-direction:column;align-items:center;color:#fff;
  transition:opacity .45s var(--ease),transform .55s var(--ease);
}
.lock-layer.hidden{opacity:0;transform:translateY(-40px) scale(1.03);pointer-events:none;}

.lock-widgets{margin-top:96px;text-align:center;}
.lock-date{font-size:16px;font-weight:500;letter-spacing:.3px;opacity:.92;}
.lock-clock{
  font-size:86px;line-height:1.02;font-weight:250;letter-spacing:-2px;margin-top:2px;
  font-family:-apple-system,"SF Pro Display",sans-serif;
}
.lock-weather{font-size:15px;opacity:.8;margin-top:6px;letter-spacing:.2px;}

.lock-notif-slot{
  width:100%;padding:0 14px;margin-top:auto;margin-bottom:auto;
  display:flex;flex-direction:column;gap:10px;
}
.lock-notif-slot:empty{display:none;}

.lock-bottom{position:absolute;bottom:34px;left:0;right:0;padding:0 40px;display:flex;justify-content:space-between;z-index:6;}
.lock-quick{
  width:56px;height:56px;border-radius:50%;
  background:rgba(40,40,44,.55);backdrop-filter:blur(14px);
  display:grid;place-items:center;transition:transform .18s,background .2s;
}
.lock-quick:active{transform:scale(.92);background:rgba(90,90,96,.7);}
.lock-quick svg{width:26px;height:26px;fill:#fff;}
.lock-quick.on{background:#fff;}
.lock-quick.on svg{fill:#000;}

.swipe-hint{
  position:absolute;bottom:96px;left:0;right:0;text-align:center;
  font-size:12.5px;letter-spacing:1px;opacity:.62;pointer-events:none;
  animation:hintPulse 2.6s ease-in-out infinite;
}
.swipe-bar{width:120px;height:4px;border-radius:2px;background:rgba(255,255,255,.75);margin:0 auto 10px;}
@keyframes hintPulse{0%,100%{opacity:.35;transform:translateY(0)}50%{opacity:.8;transform:translateY(-5px)}}

.lock-swipe-zone{position:absolute;inset:0;z-index:5;touch-action:none;}

/* 通知卡片 */
.notif-card{
  display:flex;gap:10px;align-items:flex-start;
  background:rgba(255,255,255,.16);backdrop-filter:blur(24px) saturate(160%);
  border:1px solid rgba(255,255,255,.14);
  border-radius:20px;padding:12px 14px;color:#fff;
  animation:notifIn .5s var(--ease) both;cursor:pointer;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
}
.notif-card:active{background:rgba(255,255,255,.24);}
.notif-icon{
  width:38px;height:38px;border-radius:9px;flex:0 0 38px;background:var(--kakao);
  display:grid;place-items:center;overflow:hidden;
}
.notif-icon svg{width:100%;height:100%;display:block;}
.notif-body{flex:1;min-width:0;}
.notif-head{display:flex;justify-content:space-between;gap:8px;font-size:12.5px;opacity:.85;}
.notif-title{font-weight:600;letter-spacing:.2px;}
.notif-text{font-size:14px;line-height:1.35;margin-top:3px;font-weight:500;}
.notif-card.dark{background:rgba(245,245,247,.94);color:#000;border-color:rgba(0,0,0,.05);}
.notif-card.dark .notif-head{opacity:.6;}

@keyframes notifIn{from{opacity:0;transform:translateY(-14px) scale(.96)}to{opacity:1;transform:none}}
.notif-card.out{animation:notifOut .35s var(--ease) forwards;}
@keyframes notifOut{to{opacity:0;transform:translateY(-18px) scale(.97)}}

/* ---------------- 密码 ---------------- */
.pass-layer{
  position:absolute;inset:0;z-index:700;color:#fff;
  background:rgba(10,12,18,.55);backdrop-filter:blur(26px) saturate(150%);
  display:flex;align-items:flex-end;justify-content:center;
  opacity:0;pointer-events:none;transition:opacity .35s var(--ease);
}
.pass-layer.show{opacity:1;pointer-events:auto;}
.pass-inner{
  width:100%;padding:0 0 44px;display:flex;flex-direction:column;align-items:center;
  transform:translateY(26px);transition:transform .4s var(--ease);
}
.pass-layer.show .pass-inner{transform:none;}
.pass-lock-icon svg{width:26px;height:26px;fill:#fff;opacity:.9;}
.pass-title{font-size:15px;font-weight:500;margin:10px 0 16px;letter-spacing:.5px;}
.pass-dots{display:flex;gap:20px;height:16px;align-items:center;margin-bottom:6px;}
.pass-dots i{width:13px;height:13px;border-radius:50%;border:1.5px solid rgba(255,255,255,.85);transition:background .15s,transform .15s;}
.pass-dots i.filled{background:#fff;transform:scale(1.05);}
.pass-error{height:18px;font-size:12.5px;color:#ff6b6b;letter-spacing:.4px;}

.pass-pad{width:290px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px 22px;margin-top:6px;justify-items:center;}
.key{
  width:74px;height:74px;border-radius:50%;
  background:rgba(255,255,255,.13);backdrop-filter:blur(10px);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  color:#fff;transition:background .12s,transform .1s;
}
.key:active{background:rgba(255,255,255,.32);transform:scale(.95);}
.key .num{font-size:33px;font-weight:300;line-height:1;letter-spacing:1px;}
.key .sub{font-size:9.5px;letter-spacing:2px;opacity:.75;margin-top:2px;}
.key.blank{background:none;pointer-events:none;}
.key.del{background:none;font-size:15px;}
.key.del:active{background:none;opacity:.6;}
@keyframes shakeX{10%,90%{transform:translateX(-2px)}20%,80%{transform:translateX(4px)}30%,50%,70%{transform:translateX(-8px)}40%,60%{transform:translateX(8px)}}
.shake{animation:shakeX .5s;}
.pass-cancel{margin-top:18px;font-size:16px;color:#fff;opacity:.9;letter-spacing:.5px;padding:8px 20px;}

/* ---------------- 主屏幕 ---------------- */
.home-layer{
  position:absolute;inset:0;z-index:100;
  padding:60px 22px 0;display:flex;flex-direction:column;
  transform:scale(1.06);opacity:0;pointer-events:none;
  transition:transform .5s var(--ease),opacity .4s;
}
.home-layer.show{transform:none;opacity:1;pointer-events:auto;}
.home-layer.away{opacity:0;transform:scale(1.04);pointer-events:none;}

.widgets{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px;}
.widget{
  height:158px;border-radius:22px;padding:13px 14px;overflow:hidden;position:relative;
  backdrop-filter:blur(20px);color:#fff;cursor:pointer;transition:transform .18s var(--ease);
}
.widget:active{transform:scale(.96);}
.widget.music{background:linear-gradient(160deg,#fce9ef 0%,#f7d3e0 45%,#e9b7cd 100%);color:#231017;}
.widget.weather{background:linear-gradient(165deg,#4d8ee0 0%,#2f6fc4 55%,#1c4c95 100%);}

.w-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:.4px;opacity:.85;font-weight:600;}
.w-music-body{display:flex;gap:10px;margin-top:10px;}
.w-cover{width:66px;height:66px;border-radius:10px;background:#c9a5b5;overflow:hidden;box-shadow:0 6px 14px rgba(120,50,80,.25);}
.w-cover img{width:100%;height:100%;object-fit:cover;}
.w-meta{min-width:0;display:flex;flex-direction:column;justify-content:center;}
.w-song{font-size:13.5px;font-weight:700;letter-spacing:-.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.w-artist{font-size:11.5px;opacity:.6;margin-top:2px;}
.w-progress{margin-top:9px;height:3px;border-radius:2px;background:rgba(0,0,0,.12);overflow:hidden;}
.w-progress i{display:block;height:100%;width:38%;background:#2c1a22;border-radius:2px;}
.w-times{display:flex;justify-content:space-between;font-size:9.5px;opacity:.5;margin-top:4px;}
.w-playrow{position:absolute;bottom:12px;right:14px;display:flex;gap:16px;font-size:15px;opacity:.75;}

.w-temp{font-size:44px;font-weight:250;line-height:1;margin-top:8px;letter-spacing:-2px;}
.w-cond{font-size:11.5px;opacity:.9;margin-top:2px;}
.w-range{font-size:11px;opacity:.75;margin-top:8px;}
.w-hours{display:flex;justify-content:space-between;margin-top:10px;font-size:9px;opacity:.85;text-align:center;}
.w-hours div{display:flex;flex-direction:column;gap:3px;align-items:center;}

.icon-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px 8px;align-content:start;}
.app-icon{display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;position:relative;}
.app-icon .tile{
  width:62px;height:62px;border-radius:15px;overflow:hidden;position:relative;
  box-shadow:0 4px 10px rgba(0,0,0,.28);
  transition:transform .16s var(--ease),filter .16s;
}
.app-icon:active .tile{transform:scale(.9);filter:brightness(.85);}
.app-icon .tile svg{width:100%;height:100%;display:block;}
.app-icon .label{font-size:11.5px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.45);letter-spacing:.1px;white-space:nowrap;}

.dock{
  margin-top:auto;margin-bottom:24px;height:var(--dock-h);
  border-radius:34px;background:rgba(255,255,255,.16);backdrop-filter:blur(26px) saturate(170%);
  border:1px solid rgba(255,255,255,.12);
  display:flex;align-items:center;justify-content:space-evenly;padding:0 14px;
}
.dock .app-icon{gap:0;}
.dock .app-icon .label{display:none;}
.dock .app-icon .tile{width:60px;height:60px;border-radius:14px;}
.page-dots{display:flex;gap:6px;justify-content:center;padding-bottom:14px;}
.page-dots i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.4);}
.page-dots i.on{background:#fff;}

/* =========================================================
   通用 App 容器
   ========================================================= */
.app-layer{position:absolute;inset:0;z-index:200;pointer-events:none;}
.app-layer.active{pointer-events:auto;}
.app-view{
  position:absolute;inset:0;background:#fff;color:#000;
  display:flex;flex-direction:column;padding-top:var(--sb-h);
  animation:appIn .38s var(--ease);overflow:hidden;
}
@keyframes appIn{from{opacity:0;transform:scale(.9);border-radius:40px}to{opacity:1;transform:none;border-radius:0}}
@keyframes pushIn{from{opacity:.4;transform:translateX(24%)}to{opacity:1;transform:none}}
.app-view.push{animation:pushIn .34s var(--ease);}
.app-view.light{color:#fff;}

/* 导航栏（所有 App 左上角返回） */
.nav-bar{
  height:44px;flex:0 0 44px;display:flex;align-items:center;padding:0 8px 0 6px;position:relative;
}
.nav-back{
  display:flex;align-items:center;gap:4px;color:var(--blue);font-size:17px;
  padding:8px 6px 8px 2px;letter-spacing:-.2px;z-index:2;
}
.nav-back svg{width:11px;height:19px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;}
.nav-back.icon{padding:8px 10px;}
.nav-back.icon svg{width:12px;height:20px;}
.app-view.light .nav-back{color:#fff;}
.nav-title{position:absolute;left:0;right:0;text-align:center;font-size:17px;font-weight:600;pointer-events:none;letter-spacing:-.2px;}
.nav-right{margin-left:auto;color:var(--blue);font-size:16px;display:flex;gap:14px;align-items:center;z-index:2;}
.app-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;position:relative;}
.app-body.flush{padding:0;}

/* 大标题 */
.large-head{display:flex;align-items:flex-end;justify-content:space-between;padding:6px 16px 8px;}
.large-head h1{font-size:34px;font-weight:700;letter-spacing:.2px;line-height:1.1;}
.head-act{font-size:17px;padding-bottom:4px;}
.head-act.blue{color:var(--blue);}
.head-act.orange{color:var(--orange);font-size:22px;}

/* iOS 搜索框 */
.ios-search{
  margin:0 16px 14px;height:36px;border-radius:10px;background:rgba(118,118,128,.12);
  display:flex;align-items:center;gap:7px;padding:0 9px;color:var(--label2);font-size:17px;
}
.ios-search svg{width:16px;height:16px;stroke:var(--label2);}

/* 分组列表 */
.list-block{background:#fff;}
.list-cap{font-size:13px;color:var(--label2);padding:16px 16px 6px;letter-spacing:.2px;}
.row,.iph-row{
  display:flex;align-items:center;gap:12px;padding:10px 16px;background:#fff;
  position:relative;min-height:44px;
}
.row::after,.iph-row::after{content:"";position:absolute;left:16px;right:0;bottom:0;height:.5px;background:var(--sep);}
.list-block > .row:last-child::after,
.list-block > .iph-row:last-child::after,
.list-block > *:last-child .iph-row::after{display:none;}
.row:active,.iph-row:active{background:#e9e9ee;}
.row-main{flex:1;min-width:0;}
.row-t{font-size:17px;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.row-t.strong{font-weight:600;}
.row-t.red{color:var(--red);}
.row-s{font-size:13.5px;color:var(--label2);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.row-s.two-line{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;line-height:1.3;}
.row-more{color:#c7c7cc;font-size:18px;}
.chev{color:#c4c4c9;font-size:19px;font-weight:400;}
.gray{color:var(--label2);}
.blue{color:var(--blue);}
.card-group{background:#fff;border-radius:12px;margin:0 16px;overflow:hidden;}
.card-group .row::after{left:16px;}

/* 图片占位 */
.ph{
  position:relative;display:grid;place-items:center;overflow:hidden;width:100%;height:100%;border-radius:inherit;
  background:repeating-linear-gradient(45deg,#eceef3,#eceef3 8px,#e3e6ec 8px,#e3e6ec 16px);
  color:#9aa0ac;font-size:10px;font-weight:600;letter-spacing:.2px;text-align:center;line-height:1.3;
}
.ph span{padding:0 4px;}
.ph::after{content:"";position:absolute;inset:0;border:1px dashed #cfd4dd;border-radius:inherit;}
.ph.dark{background:repeating-linear-gradient(45deg,#1e2129,#1e2129 8px,#252932 8px,#252932 16px);color:#6d7481;}
img.fill{width:100%;height:100%;object-fit:cover;}

.hint-line{padding:14px 16px;font-size:12px;color:var(--label2);line-height:1.55;}

/* 底部 Tab Bar（iOS） */
.tabbar{
  height:56px;flex:0 0 56px;display:flex;border-top:.5px solid var(--sep);
  background:rgba(249,249,249,.96);backdrop-filter:blur(20px);
}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#9b9ba1;font-size:10px;}
.tab.on{color:var(--blue);}
.tab svg{width:24px;height:23px;fill:currentColor;}
.tab.dis{opacity:.5;}

/* =========================================================
   Apple Music
   ========================================================= */
.music-app{background:#fff;}
.mu-ico{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:#fff;font-size:15px;flex:0 0 30px;}
.mu-cat{padding-top:9px;padding-bottom:9px;}
.mu-cat .row-t{font-size:17px;}
.mu-cat .row-s{font-size:12px;margin-top:1px;}
.song-cover{width:46px;height:46px;border-radius:6px;background:linear-gradient(135deg,#ff5f6d,#ffc371);overflow:hidden;flex:0 0 46px;}
.song-cover img{width:100%;height:100%;object-fit:cover;}

/* =========================================================
   天气
   ========================================================= */
.weather-app{background:linear-gradient(175deg,#3f7fd0 0%,#2a5fa8 40%,#17356b 100%);color:#fff;}
.weather-app .nav-bar{background:transparent;}
.weather-app .nav-title{color:#fff;}
.wx-head{text-align:center;padding:2px 0 10px;}
.wx-city{font-size:34px;font-weight:400;letter-spacing:-.3px;}
.wx-temp{font-size:96px;font-weight:200;line-height:1;letter-spacing:-5px;margin-top:-4px;}
.wx-temp span{font-weight:200;}
.wx-cond{font-size:18px;font-weight:500;opacity:.95;margin-top:2px;}
.wx-range{font-size:15px;opacity:.85;margin-top:4px;}
.wx-card{
  margin:12px;border-radius:18px;padding:14px;
  background:rgba(255,255,255,.15);backdrop-filter:blur(16px);
  border:.5px solid rgba(255,255,255,.18);
}
.wx-card h4{font-size:11.5px;font-weight:500;letter-spacing:.4px;opacity:.7;margin-bottom:12px;display:flex;gap:5px;align-items:center;}
.wx-hours{display:flex;justify-content:space-between;text-align:center;font-size:12px;}
.wx-hours .h{display:flex;flex-direction:column;gap:8px;align-items:center;}
.wx-hours .h span:first-child{opacity:.9;font-size:12.5px;}
.wx-hours .h .ic{font-size:17px;}
.wx-hours .h .t{font-size:18px;font-weight:500;}
.wx-day{display:flex;align-items:center;gap:10px;padding:7px 0;border-top:.5px solid rgba(255,255,255,.16);font-size:16px;}
.wx-day:first-of-type{border-top:0;}
.wx-day .d{width:52px;font-weight:500;}
.wx-day .ic{width:26px;text-align:center;font-size:15px;}
.wx-day .lo{width:34px;text-align:right;opacity:.6;}
.wx-day .bar{flex:1;height:5px;border-radius:3px;background:rgba(255,255,255,.22);position:relative;overflow:hidden;}
.wx-day .bar i{position:absolute;height:100%;border-radius:3px;background:linear-gradient(90deg,#7fd3ff,#ffd166);}
.wx-day .hi{width:34px;text-align:right;}
.wx-detail{display:flex;gap:10px;}
.wx-detail div{flex:1;}
.wx-detail span{display:block;font-size:11px;opacity:.65;letter-spacing:.3px;}
.wx-detail b{font-size:17px;font-weight:500;}
.wx-foot{margin-top:12px;font-size:11.5px;opacity:.6;}

/* =========================================================
   电话
   ========================================================= */
.phone-app{background:#fff;}
.info-btn{width:30px;height:30px;display:grid;place-items:center;color:var(--blue);font-size:19px;}

/* =========================================================
   信息
   ========================================================= */
.msg-app{background:#fff;}
.msg-swipe{position:relative;overflow:hidden;background:#fff;}
.msg-swipe .read-action{
  position:absolute;left:0;top:0;bottom:0;width:88px;background:#34c759;color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;gap:3px;
}
.msg-swipe .item{position:relative;transform:translateX(0);transition:transform .25s var(--ease);background:#fff;}
.msg-swipe.open .item{transform:translateX(88px);}
.msg-swipe .iph-row::after{left:70px;}
.msg-ava{
  width:42px;height:42px;border-radius:50%;flex:0 0 42px;background:#d8d8dd;color:#8a8a8f;
  display:grid;place-items:center;font-size:17px;font-weight:500;
}
.msg-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:0 0 auto;}
.msg-right .row-s{margin:0;}
.unread-dot{width:10px;height:10px;border-radius:50%;background:var(--blue);}
.msg-bubble-row{display:flex;justify-content:flex-start;padding:1px 0;}
.bubble{
  max-width:74%;padding:8px 13px;border-radius:19px;font-size:16px;line-height:1.35;
  background:#e9e9eb;color:#000;
}
.bubble.me{background:#0b93f6;color:#fff;}
.bubble-time{font-size:10.5px;color:var(--label2);padding:0 6px 8px;}
.msg-day{text-align:center;font-size:11.5px;color:var(--label2);margin:14px 0 8px;}

/* =========================================================
   Safari（iOS 18 · 搜索框在顶部）
   ========================================================= */
.safari-app{background:#f2f2f7;}
.saf-top{display:flex;align-items:center;gap:8px;padding:4px 10px 8px;}
.saf-back{color:var(--blue);flex:0 0 auto;margin-right:-4px;}
.saf-url{
  flex:1;height:42px;border-radius:12px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.07);
  display:flex;align-items:center;gap:6px;padding:0 12px;font-size:16px;color:var(--label2);
  overflow:hidden;transition:background .2s;
}
.saf-url.active{background:#fff;}
.saf-lock{font-size:10px;opacity:.55;}
.saf-ph{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;}
.saf-ph.typed{color:#000;}
.saf-cancel{
  font-size:16px;color:var(--blue);width:0;overflow:hidden;opacity:0;
  transition:opacity .2s;flex:0 0 auto;white-space:nowrap;
}
.safari-app.searching .saf-cancel{width:34px;opacity:1;}

.saf-main{flex:1;position:relative;overflow:hidden;display:flex;flex-direction:column;}
.saf-content{flex:1;overflow-y:auto;padding:2px 0 20px;}
.saf-sect{font-size:22px;font-weight:700;letter-spacing:.2px;padding:14px 18px 10px;}
.saf-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px 4px;padding:0 10px 4px;}
.saf-fav{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:11.5px;color:#3c3c43;}
.saf-fav .sq{
  width:60px;height:60px;border-radius:14px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.1);
  display:grid;place-items:center;font-size:23px;font-weight:700;
}
.saf-card{margin:0 16px;background:#fff;border-radius:12px;overflow:hidden;}
.saf-rl{display:flex;gap:11px;align-items:center;padding:11px 14px;border-bottom:.5px solid var(--sep);}
.saf-rl:last-child{border-bottom:0;}
.saf-rl-ico{width:34px;height:34px;border-radius:8px;background:#f2f2f7;display:grid;place-items:center;color:#8e8e93;font-size:15px;}
.saf-rl b{display:block;font-size:14.5px;font-weight:500;}
.saf-rl i{display:block;font-size:11.5px;color:var(--label2);font-style:normal;margin-top:1px;}
.saf-priv{text-align:center;font-size:12px;color:var(--label2);padding:18px 20px 4px;line-height:1.5;}

.saf-suggest{
  position:absolute;inset:0;background:#f2f2f7;display:flex;flex-direction:column;
  opacity:0;pointer-events:none;transform:translateY(-6px);
  transition:opacity .22s,transform .22s;
}
.saf-suggest.show{opacity:1;pointer-events:auto;transform:none;}
.saf-sg-head{
  display:flex;justify-content:space-between;align-items:center;
  padding:12px 18px 6px;font-size:13px;color:var(--label2);letter-spacing:.3px;
}
.saf-sg-list{flex:1;overflow-y:auto;padding-bottom:20px;}
.saf-hist-item{
  display:flex;gap:11px;align-items:center;padding:12px 18px;
  border-bottom:.5px solid rgba(60,60,67,.16);font-size:16px;color:#000;
}
.saf-hist-item:active{background:#e6e6eb;}
.saf-hist-item .clk{width:17px;height:17px;stroke:#a1a1a6;fill:none;stroke-width:1.7;flex:0 0 17px;}

.saf-toolbar{
  height:50px;flex:0 0 50px;display:flex;align-items:center;justify-content:space-around;
  border-top:.5px solid rgba(60,60,67,.22);background:rgba(249,249,249,.94);backdrop-filter:blur(20px);
  font-size:19px;color:var(--blue);
}
.saf-toolbar .tb{opacity:.95;}
.saf-toolbar .tb.dis{opacity:.3;}
.saf-toolbar.hide{display:none;}

/* =========================================================
   相机（iOS 18 取景界面）
   ========================================================= */
.cam-app{background:#000;color:#fff;}
.cam-top{height:46px;flex:0 0 46px;display:flex;align-items:center;padding:0 10px 0 6px;position:relative;}
.cam-back{color:#fff;}
.cam-tools{display:flex;gap:6px;align-items:center;}
.cam-tools.right{margin-left:auto;}
.cam-tool{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
}
.cam-tool:active{background:rgba(255,255,255,.14);}
.cam-tool svg{width:21px;height:21px;fill:#fff;stroke:none;}
.cam-tool svg.ln{fill:none;stroke:#fff;stroke-width:1.7;}
.cam-tool.on svg{fill:#ffd60a;stroke:#ffd60a;}
.cam-tool.on{color:#ffd60a;}
.cam-chev{
  position:absolute;left:50%;transform:translateX(-50%);
  width:56px;height:26px;border-radius:14px;background:rgba(255,255,255,.14);
  display:grid;place-items:center;font-size:12px;color:#fff;line-height:1;
}
.cam-view{
  flex:1;position:relative;overflow:hidden;
  background:
    radial-gradient(110% 80% at 50% 22%, #39404d 0%, #22262f 42%, #101216 72%, #05060a 100%);
  background-size:cover;background-position:center;
  touch-action:manipulation;
}
.cam-view.has-preview{background-image:var(--cam-preview);background-size:cover;background-position:center;}
.cam-grid{
  position:absolute;inset:0;pointer-events:none;display:none;
  background-image:
    linear-gradient(rgba(255,255,255,.28) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.28) 1px,transparent 1px);
  background-size:33.333% 33.333%;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
}
.cam-grid.on{display:block;}
.cam-focus{
  position:absolute;width:74px;height:74px;left:50%;top:50%;
  transform:translate(-50%,-50%) scale(1.25);opacity:0;
  border:1.4px solid #ffd60a;border-radius:2px;pointer-events:none;
}
.cam-focus.pop{animation:focusPop .9s var(--ease) forwards;}
@keyframes focusPop{
  0%{opacity:0;transform:translate(-50%,-50%) scale(1.35)}
  22%{opacity:1;transform:translate(-50%,-50%) scale(1)}
  70%{opacity:1;transform:translate(-50%,-50%) scale(1)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(.96)}
}
.cam-zoom{
  position:absolute;bottom:16px;left:50%;transform:translateX(-50%);
  display:flex;gap:1px;padding:3px;border-radius:20px;background:rgba(0,0,0,.4);
  backdrop-filter:blur(10px);z-index:3;
}
.cam-zoom .z{
  width:36px;height:34px;border-radius:50%;color:#fff;font-size:12.5px;font-weight:500;
  display:grid;place-items:center;transition:background .16s,color .16s;
}
.cam-zoom .z.on{background:rgba(255,255,255,.92);color:#000;font-weight:600;}
.cam-modes{
  height:44px;flex:0 0 44px;display:flex;align-items:center;justify-content:center;gap:24px;
  font-size:13px;letter-spacing:.2px;
}
.cam-modes .m{color:rgba(255,255,255,.55);transition:color .18s;padding:2px 0;}
.cam-modes .m.on{color:#ffd60a;font-weight:600;}
.cam-bottom{
  height:128px;flex:0 0 128px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;
}
.cam-thumb{
  width:48px;height:48px;border-radius:8px;overflow:hidden;background:#1a1c22;
  box-shadow:0 0 0 1px rgba(255,255,255,.22);
}
.cam-shutter{
  width:72px;height:72px;border-radius:50%;border:3.5px solid #fff;
  display:grid;place-items:center;background:transparent;transition:transform .12s;
}
.cam-shutter i{width:60px;height:60px;border-radius:50%;background:#fff;display:block;transition:transform .12s,background .12s;}
.cam-shutter:active i,.cam-shutter.press i{transform:scale(.86);background:#d8d8d8;}
.cam-flip{
  width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.16);
  display:grid;place-items:center;
}
.cam-flip svg{width:23px;height:23px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;}
.cam-flip:active{background:rgba(255,255,255,.28);}

/* =========================================================
   相册
   ========================================================= */
.ph-app{background:#fff;}
.ph-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;padding:0 2px;}
.ph-grid .cell{aspect-ratio:1/1;overflow:hidden;background:#eef0f4;position:relative;}
.ph-grid .cell img{width:100%;height:100%;object-fit:cover;}
.ph-month{grid-column:1/-1;font-size:15px;font-weight:600;color:#000;padding:14px 4px 6px;}

.photo-viewer{position:absolute;inset:0;z-index:930;background:#000;display:none;flex-direction:column;}
.photo-viewer.show{display:flex;animation:appIn .25s var(--ease);}
.pv-top{
  position:absolute;top:0;left:0;right:0;padding:58px 18px 14px;
  display:flex;justify-content:space-between;align-items:flex-start;color:#fff;z-index:3;
  background:linear-gradient(180deg,rgba(0,0,0,.62),transparent);
}
.pv-date{font-size:15px;font-weight:600;}
.pv-time{font-size:12.5px;opacity:.7;margin-top:2px;}
.pv-close{font-size:16px;color:#fff;opacity:.95;}
.pv-stage{flex:1;position:relative;overflow:hidden;display:grid;place-items:center;touch-action:none;}
.pv-inner{width:100%;height:100%;display:grid;place-items:center;transition:transform .18s var(--ease);}
.pv-inner img{max-width:100%;max-height:100%;object-fit:contain;}
.pv-hint{position:absolute;bottom:34px;left:0;right:0;text-align:center;font-size:11.5px;color:rgba(255,255,255,.5);}

/* =========================================================
   地图
   ========================================================= */
.map-app{background:#eef1e8;}
.map-canvas{
  flex:1;position:relative;overflow:hidden;background:
  linear-gradient(78deg,transparent 46%,#fdfdfb 46%,#fdfdfb 48%,transparent 48%),
  linear-gradient(-14deg,transparent 62%,#f7f6f1 62%,#f7f6f1 65%,transparent 65%),
  linear-gradient(0deg,#e8efe0,#eef2e7);
}
.map-canvas::before{
  content:"";position:absolute;left:-10%;top:38%;width:130%;height:26px;
  background:#fff;transform:rotate(-6deg);box-shadow:0 40px 0 -8px #fff, 0 -46px 0 -8px #fff;opacity:.9;
}
.map-canvas::after{
  content:"";position:absolute;left:34%;top:-10%;height:120%;width:22px;background:#fff;transform:rotate(8deg);opacity:.9;
}
.map-pin{position:absolute;transform:translate(-50%,-100%);z-index:3;display:flex;flex-direction:column;align-items:center;cursor:pointer;}
.map-pin .dot{width:16px;height:16px;border-radius:50%;background:#0a84ff;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.3);transition:transform .2s;}
.map-pin .dot.heart{background:#ff2d55;}
.map-pin.sel .dot{transform:scale(1.35);}
.map-pin .nm{
  margin-top:4px;font-size:10px;font-weight:700;color:#3a3a3c;background:rgba(255,255,255,.92);
  padding:2px 6px;border-radius:6px;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,.12);
}
.map-sheet{
  position:absolute;left:8px;right:8px;bottom:0;background:#fff;border-radius:16px 16px 0 0;
  padding:14px 16px 30px;box-shadow:0 -8px 30px rgba(0,0,0,.14);
  transform:translateY(110%);transition:transform .38s var(--ease);z-index:5;
}
.map-sheet.show{transform:none;}
.map-sheet h3{font-size:18px;font-weight:700;letter-spacing:-.3px;}
.swipe-bar2{width:36px;height:4px;border-radius:2px;background:#d1d1d6;margin:0 auto 12px;}
.map-meta{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap;}
.map-meta div{flex:1;min-width:88px;background:#f2f2f7;border-radius:10px;padding:8px 10px;}
.map-meta span{display:block;font-size:10px;color:#8e8e93;letter-spacing:.3px;}
.map-meta b{font-size:13px;font-weight:600;display:block;margin-top:2px;}
.map-note{margin-top:10px;font-size:12.5px;color:#3c3c43;line-height:1.5;}
.map-note em{font-style:normal;color:#8e8e93;}
.map-locate{
  position:absolute;right:14px;bottom:22px;width:40px;height:40px;border-radius:50%;
  background:#fff;display:grid;place-items:center;font-size:18px;color:#0a84ff;
  box-shadow:0 2px 10px rgba(0,0,0,.18);z-index:4;
}

/* =========================================================
   语音备忘录
   ========================================================= */
.vm-app{background:#000;color:#fff;}
.vm-app .row{background:#000;}
.vm-app .row::after{background:rgba(255,255,255,.14);}
.vm-app .row-t{color:#fff;}
.vm-app .row-s{color:#8e8e93;}
.vm-play{
  width:34px;height:34px;border-radius:50%;border:1.5px solid rgba(255,255,255,.3);
  display:grid;place-items:center;font-size:12px;flex:0 0 34px;color:#ff453a;
}
.vm-prog{height:2.5px;background:#2c2c2e;border-radius:2px;margin-top:9px;overflow:hidden;max-width:210px;}
.vm-prog i{display:block;height:100%;width:0;background:#ff453a;}
.vm-item.playing .vm-play{background:#ff453a;color:#fff;border-color:#ff453a;}

/* =========================================================
   备忘录（iOS 18）
   ========================================================= */
.nt-app{background:#fff;}
.nt-row{padding-top:9px;padding-bottom:9px;}
.nt-row .row-t{font-size:16.5px;font-weight:600;}
.nt-row .row-s{font-size:13px;margin-top:3px;}
.nt-toolbar{
  height:52px;flex:0 0 52px;display:flex;align-items:center;justify-content:space-between;
  padding:0 22px;border-top:.5px solid var(--sep);color:var(--orange);font-size:19px;
  background:rgba(249,249,249,.96);
}
.nt-toolbar .grow{flex:1;}
.nt-detail-date{text-align:center;font-size:12.5px;color:var(--label2);padding:2px 0 14px;}
.nt-detail-body{padding:0 18px 30px;}
.nt-detail-title{font-size:22px;font-weight:700;letter-spacing:-.3px;margin-bottom:8px;}
.nt-detail-text{font-size:17px;line-height:1.65;color:#1c1c1e;white-space:pre-wrap;}
.nt-detail-tools{
  display:flex;justify-content:space-between;padding:12px 26px 10px;
  border-top:.5px solid var(--sep);color:var(--orange);font-size:19px;margin-top:20px;
}
.nt-app .ni{color:var(--orange);}

/* =========================================================
   Everytime
   ========================================================= */
.et-app{background:#fff;}
.et-head{padding:2px 16px 10px;}
.et-head h1{font-size:20px;font-weight:700;letter-spacing:-.3px;}
.et-sub{font-size:12px;color:var(--label2);margin-top:3px;}
.et-days{
  display:grid;grid-template-columns:34px repeat(5,1fr);
  padding:6px 0 4px;border-top:.5px solid var(--sep);
  font-size:10.5px;color:#3c3c43;text-align:center;font-weight:600;
}
.et-grid{display:grid;grid-template-columns:34px repeat(5,1fr);grid-auto-rows:44px;padding-bottom:14px;}
.et-grid .tm{grid-column:1;font-size:9px;color:#a1a1a6;text-align:right;padding:2px 4px 0 0;border-top:.5px solid #f2f2f6;}
.et-grid .et-class{
  position:relative;margin:1.5px;border-radius:6px;padding:4px;color:#fff;font-size:8.5px;line-height:1.25;
  overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.12);
}
.et-grid .et-class b{display:block;font-size:9px;font-weight:700;margin-bottom:1px;}

/* =========================================================
   Naver
   ========================================================= */
.nv-app{background:#fff;}
.nv-search{
  margin:2px 12px 10px;height:40px;border-radius:10px;border:1.5px solid #03c75a;
  display:flex;align-items:center;gap:8px;padding:0 12px;color:#c7c7cc;font-size:14px;
}
.nv-search svg{width:16px;height:16px;stroke:#c7c7cc;}
.nv-hero{height:186px;margin:0 12px;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,#d9c3a5,#a8875f);position:relative;}
.nv-badge-status{position:absolute;top:10px;left:10px;background:rgba(0,0,0,.55);color:#fff;font-size:10px;padding:4px 8px;border-radius:20px;}
.nv-body{padding:12px 14px;}
.nv-name{font-size:19px;font-weight:800;letter-spacing:-.3px;}
.nv-sub{font-size:12px;color:var(--label2);margin-top:3px;}
.nv-score{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:13px;}
.nv-stars{color:#03c75a;letter-spacing:1px;font-size:15px;}
.nv-rowline{display:flex;gap:8px;align-items:center;font-size:12.5px;color:#3c3c43;margin-top:8px;}
.nv-save{display:inline-flex;align-items:center;gap:5px;background:#eaf8ef;color:#03a34a;font-size:11.5px;font-weight:700;padding:5px 10px;border-radius:20px;margin-top:10px;}
.nv-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px;}
.nv-tag{font-size:11px;color:#3c3c43;background:#f2f4f6;padding:5px 9px;border-radius:8px;}
.nv-sect{margin-top:18px;font-size:13px;color:var(--label2);}
.nv-review{border-top:.5px solid var(--sep);padding:12px 0;font-size:13px;line-height:1.5;}
.nv-review .who{font-size:11.5px;color:var(--label2);margin-bottom:4px;display:flex;justify-content:space-between;}

/* =========================================================
   Instagram（2025 版）
   ========================================================= */
.ins-app{background:#000;color:#fff;}
.ins-nav{height:46px;flex:0 0 46px;display:flex;align-items:center;padding:0 4px 0 2px;}
.ins-back{color:#fff;padding:8px 6px;}
.ins-logo{font-family:"Snell Roundhand","Apple Chancery","Segoe Script",cursive;font-size:26px;font-weight:600;letter-spacing:-.5px;margin-left:2px;}
.ins-nav-r{margin-left:auto;display:flex;gap:14px;padding-right:6px;align-items:center;}
.ins-nav-ico{color:#fff;display:grid;place-items:center;}
.ins-nav-ico svg{width:24px;height:24px;}
.ins-body{flex:1;overflow-y:auto;background:#000;}

.ins-stories{display:flex;gap:13px;padding:2px 12px 12px;overflow-x:auto;}
.ins-story{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;color:#e6e6e6;flex:0 0 auto;max-width:72px;}
.ins-story .ring{width:64px;height:64px;border-radius:50%;padding:2.5px;background:linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7);position:relative;}
.ins-story .ring > div{width:100%;height:100%;border-radius:50%;overflow:hidden;border:2.5px solid #000;background:#222;}
.ins-story > span{width:100%;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ins-story .plus{
  position:absolute;right:-1px;bottom:-1px;width:21px;height:21px;border-radius:50%;
  background:#0095f6;color:#fff;font-size:15px;line-height:20px;text-align:center;
  border:2.5px solid #000;font-weight:400;
}

.ins-post{background:#000;padding-bottom:6px;}
.ins-post-head{display:flex;align-items:center;gap:9px;padding:9px 12px 9px;}
.ins-ava{width:34px;height:34px;border-radius:50%;overflow:hidden;flex:0 0 34px;background:#222;box-shadow:0 0 0 2px #000;}
.ins-ava img,.ins-ava .ph{border-radius:50%;}
.ins-user{flex:1;font-size:13px;font-weight:600;line-height:1.2;}
.ins-user small{display:block;font-weight:400;color:#a1a1a6;font-size:11px;margin-top:2px;}
.ins-more{color:#fff;font-size:16px;letter-spacing:1px;}
.ins-media{width:100%;aspect-ratio:1/1;background:#111;overflow:hidden;}
.ins-media img{width:100%;height:100%;object-fit:cover;}
.ins-actions{display:flex;gap:15px;padding:11px 12px 4px;align-items:center;}
.ins-actions span{display:grid;place-items:center;}
.ins-actions svg{width:25px;height:25px;stroke:#fff;fill:none;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;}
.ins-actions .sp{margin-left:auto;}
.ins-actions .heart.on svg{fill:#ff3040;stroke:#ff3040;}
.ins-likes{padding:6px 12px 0;font-size:13px;font-weight:600;}
.ins-cap{padding:5px 12px 0;font-size:13px;line-height:1.45;color:#f5f5f5;}
.ins-cap b{font-weight:600;margin-right:5px;color:#fff;}
.ins-comments{padding:5px 12px 0;font-size:13px;color:#a1a1a6;}
.ins-time{padding:4px 12px 8px;font-size:11px;color:#8e8e93;}

.ins-tabbar{height:52px;flex:0 0 52px;display:flex;align-items:center;background:#000;border-top:.5px solid #1c1c1e;padding-bottom:4px;}
.ins-tabbar .t{flex:1;display:grid;place-items:center;color:#8e8e93;}
.ins-tabbar .t.on{color:#fff;}
.ins-tabbar .t svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.7;}
.ins-tabbar .t.on svg{fill:currentColor;stroke:none;}
.ins-tabbar .t .pa{width:26px;height:26px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 1.5px #fff;}

.ins-pnav{display:flex;align-items:center;padding:6px 14px 4px;}
.ins-puser{font-size:18px;font-weight:700;display:flex;align-items:center;gap:4px;}
.ins-puser span{font-size:12px;}
.ins-profile-head{padding:10px 14px;display:flex;gap:16px;align-items:center;}
.ins-bigava{width:86px;height:86px;border-radius:50%;overflow:hidden;flex:0 0 86px;background:#222;box-shadow:0 0 0 2px #000;}
.ins-bigava img,.ins-bigava .ph{border-radius:50%;}
.ins-stats{display:flex;flex:1;justify-content:space-around;text-align:center;}
.ins-stats b{display:block;font-size:17px;font-weight:600;}
.ins-stats span{font-size:12px;color:#c7c7cc;}
.ins-bio{padding:0 16px 12px;font-size:13px;line-height:1.5;}
.ins-bio b{display:block;font-weight:600;margin-bottom:2px;}
.ins-btns{display:flex;gap:6px;padding:0 14px 12px;}
.ins-btn{flex:1;height:32px;border-radius:8px;background:#262626;display:grid;place-items:center;font-size:13px;font-weight:600;color:#fff;}
.ins-btn.sq{flex:0 0 34px;}
.ins-btn svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:1.8;}
.ins-hl{display:flex;gap:16px;padding:2px 16px 14px;overflow-x:auto;}
.ins-hl .hl{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;color:#e6e6e6;flex:0 0 auto;}
.ins-hl .ring{width:58px;height:58px;border-radius:50%;padding:2px;background:#3a3a3a;}
.ins-hl .ring > div{width:100%;height:100%;border-radius:50%;overflow:hidden;border:2.5px solid #000;background:#222;}
.ins-tabs{display:flex;border-top:.5px solid #1c1c1e;}
.ins-tabs .it{flex:1;display:grid;place-items:center;padding:10px 0;color:#8e8e93;font-size:20px;}
.ins-tabs .it.on{color:#fff;border-bottom:1px solid #fff;}
.ins-tabs svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.7;}
.ins-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5px;padding:1.5px 0 0;}
.ins-grid .cell{aspect-ratio:1/1;overflow:hidden;background:#111;position:relative;}
.ins-grid .cell img{width:100%;height:100%;object-fit:cover;}

.ins-detail .ins-detail-nav{background:#000;}
.ins-detail .nav-title{color:#fff;}
.ins-detail .ins-post{border-bottom:0;}

/* =========================================================
   YouTube
   ========================================================= */
.yt-app{background:#0f0f0f;color:#fff;}
.yt-app .nav-bar{background:#0f0f0f;}
.yt-me{display:flex;flex-direction:column;align-items:center;padding:8px 0 4px;}
.yt-ava{width:84px;height:84px;border-radius:50%;overflow:hidden;background:#2a2a2e;}
.yt-name{font-size:19px;font-weight:600;margin-top:10px;}
.yt-handle{font-size:12px;color:#aaa;margin-top:2px;}
.yt-sec{display:flex;justify-content:space-between;align-items:center;padding:16px 14px 8px;font-size:15px;font-weight:600;}
.yt-more{color:#3ea6ff;font-size:12.5px;font-weight:400;}
.yt-hscroll{display:flex;gap:10px;overflow-x:auto;padding:0 14px 12px;}
.yt-card{flex:0 0 148px;}
.yt-thumb{width:148px;height:83px;border-radius:9px;overflow:hidden;background:#222;position:relative;}
.yt-thumb img{width:100%;height:100%;object-fit:cover;}
.yt-thumb .ph span{font-size:9px;}
.yt-card .t{font-size:12px;line-height:1.35;margin-top:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.yt-card .m{font-size:10.5px;color:#888;margin-top:3px;}
.yt-liked{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 14px 20px;}
.yt-liked .yt-thumb{width:100%;height:auto;aspect-ratio:16/9;}
.yt-tabbar{height:50px;flex:0 0 50px;display:flex;background:#0f0f0f;border-top:.5px solid #272727;align-items:center;padding-bottom:4px;}
.yt-tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:9.5px;color:#aaa;}
.yt-tab.on{color:#fff;}
.yt-tab.dis{opacity:.5;}
.yt-tab svg{width:21px;height:21px;fill:currentColor;}

/* =========================================================
   KakaoTalk（最新版）
   ========================================================= */
.kkt-app{background:#fff;color:#111;}
.kkt-top{
  height:52px;flex:0 0 52px;display:flex;align-items:center;padding:0 6px 0 2px;
  background:#b2c7da;
}
.kkt-back{color:#1a1a1a;}
.kkt-ttl{font-size:19px;font-weight:700;display:flex;align-items:center;gap:3px;margin-left:2px;letter-spacing:-.3px;}
.kkt-dd{font-size:12px;color:#4a5a6a;margin-top:2px;}
.kkt-top-r{margin-left:auto;display:flex;gap:2px;}
.kkt-ico{width:36px;height:36px;display:grid;place-items:center;}
.kkt-ico svg{width:21px;height:21px;stroke:#333;fill:none;stroke-width:1.8;stroke-linecap:round;}
.kkt-list{flex:1;overflow-y:auto;background:#fff;}
.kkt-chat{display:flex;gap:12px;align-items:center;padding:11px 14px;position:relative;}
.kkt-chat::after{content:"";position:absolute;left:74px;right:0;bottom:0;height:.5px;background:rgba(0,0,0,.07);}
.kkt-chat:active{background:#f5f5f5;}
.kkt-ava{width:48px;height:48px;border-radius:17px;overflow:hidden;flex:0 0 48px;background:#e6e9ee;display:grid;place-items:center;font-size:17px;color:#8a9099;}
.kkt-ava img{width:100%;height:100%;object-fit:cover;}
.kkt-mid{flex:1;min-width:0;}
.kkt-nm{font-size:15.5px;font-weight:500;display:flex;gap:6px;align-items:center;letter-spacing:-.2px;}
.kkt-nm .cnt{font-size:11.5px;color:#8a8f99;font-weight:400;}
.kkt-last{font-size:12.5px;color:#8a8f99;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.kkt-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:0 0 auto;}
.kkt-time{font-size:11px;color:#b0b4bb;}
.kkt-badge{
  min-width:19px;height:19px;border-radius:10px;background:#ff3b30;color:#fff;
  font-size:11.5px;font-weight:700;display:grid;place-items:center;padding:0 5px;
}
.kkt-tabbar{height:54px;flex:0 0 54px;display:flex;background:#fff;border-top:.5px solid #e8e8e8;}
.kkt-tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:9.5px;color:#a8adb7;}
.kkt-tab.on{color:#3c3c43;}
.kkt-tab svg{width:21px;height:21px;fill:currentColor;}
.kkt-tab.dis{opacity:.55;}

/* 聊天详情 */
.chat-view{background:#b2c7da;animation:pushIn .3s var(--ease);}
.chat-head{
  height:52px;flex:0 0 52px;display:flex;align-items:center;padding:0 8px 0 2px;gap:4px;
  background:#b2c7da;position:relative;
}
.chat-back{color:#1a1a1a;}
.chat-head .nm{font-size:16px;font-weight:600;color:#111;flex:1;text-align:center;letter-spacing:-.2px;}
.chat-head .hb{display:flex;gap:0;}
.chat-head .hb button{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;}
.chat-head .hb button:active{background:rgba(0,0,0,.08);}
.chat-head .hb svg{width:21px;height:21px;fill:#3c3c43;}
.chat-body{flex:1;overflow-y:auto;padding:6px 10px 12px;display:flex;flex-direction:column;}
.chat-day{align-self:center;background:rgba(0,0,0,.16);color:#fff;font-size:11px;padding:3px 11px;border-radius:12px;margin:10px 0 8px;}
.chat-row{display:flex;gap:7px;margin-bottom:8px;align-items:flex-start;}
.chat-row.me{flex-direction:row-reverse;}
.chat-ava{width:38px;height:38px;border-radius:13px;overflow:hidden;flex:0 0 38px;background:#dfe4ea;display:grid;place-items:center;font-size:13px;color:#7a808a;}
.chat-ava img{width:100%;height:100%;object-fit:cover;}
.cm-wrap{max-width:68%;display:flex;flex-direction:column;gap:4px;}
.chat-row.me .cm-wrap{align-items:flex-end;}
.cm-name{font-size:10.5px;color:#5b6472;margin-bottom:-1px;}
.cm-line{display:flex;align-items:flex-end;gap:5px;}
.chat-row.me .cm-line{flex-direction:row-reverse;}
.cm{
  padding:8px 11px;border-radius:14px;background:#fff;color:#111;font-size:14.5px;line-height:1.42;
  word-break:break-word;box-shadow:0 1px 1px rgba(0,0,0,.04);
}
.chat-row.me .cm{background:#fee500;}
.cm-time{font-size:9.5px;color:#79848f;white-space:nowrap;}
.cm-img{width:150px;height:112px;border-radius:12px;overflow:hidden;background:#dfe4ea;}
.cm-img img{width:100%;height:100%;object-fit:cover;}
.chat-note{align-self:center;font-size:11px;color:#fff;background:rgba(0,0,0,.2);padding:4px 12px;border-radius:12px;margin:6px 0;}

.typing{
  display:flex;gap:4px;align-items:center;background:#fff;border-radius:14px;padding:11px 13px;
  width:fit-content;box-shadow:0 1px 1px rgba(0,0,0,.04);
}
.typing i{width:6px;height:6px;border-radius:50%;background:#b6bcc6;animation:tdot 1.1s infinite;}
.typing i:nth-child(2){animation-delay:.15s}
.typing i:nth-child(3){animation-delay:.3s}
@keyframes tdot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}

.chat-input{
  flex:0 0 auto;background:#fff;display:flex;align-items:flex-end;gap:8px;padding:8px 10px 10px;
  border-top:.5px solid #dde3ea;
}
.chat-input .plus{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:18px;color:#8a9099;}
.chat-input .field{
  flex:1;min-height:36px;border-radius:18px;background:#f2f4f7;padding:8px 12px;font-size:14px;color:#111;
  display:flex;align-items:center;outline:none;
}
.chat-input .field:empty::before{content:attr(data-ph);color:#b3b8c0;}
.chat-input .field.locked{background:#eceef2;color:#8b9199;}
.kb-btn{width:44px;height:36px;border-radius:10px;display:grid;place-items:center;background:#f2f4f7;flex:0 0 44px;}
.kb-btn svg{width:24px;height:24px;fill:#5b6472;}
.kb-btn:active{background:#e4e7ec;}
.kb-btn.disabled{opacity:.35;}
.send-btn{
  height:34px;padding:0 14px;border-radius:9px;background:#fee500;color:#3b1e1e;font-size:13.5px;font-weight:700;
  display:none;flex:0 0 auto;
}
.send-btn.show{display:block;}

/* =========================================================
   键盘
   ========================================================= */
.ios-kb{flex:0 0 auto;height:0;overflow:hidden;background:#d1d5db;transition:height .34s var(--ease);position:relative;}
.ios-kb.show{height:216px;}
.kb-rows{padding:7px 3px 0;}
.kb-row{display:flex;justify-content:center;gap:6px;margin-bottom:8px;padding:0 3px;}
.kb-key{
  flex:1;max-width:31px;height:38px;border-radius:5px;background:#fff;color:#000;font-size:16px;
  display:grid;place-items:center;box-shadow:0 1px 0 rgba(0,0,0,.28);font-weight:400;
}
.kb-key:active{background:#c8ccd2;}
.kb-key.wide{max-width:44px;background:#adb3bd;font-size:12px;}
.kb-key.space{max-width:none;flex:4;background:#fff;font-size:12px;color:#3c3c43;}
.kb-bar{text-align:center;font-size:11px;color:#6b7280;padding-top:2px;}

/* =========================================================
   通话 / 弹层
   ========================================================= */
.call-layer{
  position:absolute;inset:0;z-index:920;display:none;flex-direction:column;
  background:linear-gradient(180deg,#2c2c33 0%,#121216 60%,#08080a 100%);
  color:#fff;padding:80px 30px 46px;align-items:center;
}
.call-layer.show{display:flex;animation:appIn .3s var(--ease);}
.call-avatar{width:104px;height:104px;border-radius:50%;overflow:hidden;background:rgba(255,255,255,.12);display:grid;place-items:center;font-size:38px;font-weight:600;margin-bottom:18px;}
.call-name{font-size:32px;font-weight:300;letter-spacing:-.5px;}
.call-sub{font-size:14px;opacity:.6;margin-top:8px;letter-spacing:.5px;}
.call-actions{margin-top:auto;display:flex;gap:26px;}
.call-btn{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px;opacity:.9;}
.call-btn i{width:66px;height:66px;border-radius:50%;background:rgba(255,255,255,.16);display:grid;place-items:center;font-size:24px;font-style:normal;}
.call-hang{position:absolute;bottom:54px;left:50%;transform:translateX(-50%);}
.call-hang i{background:#ff3b30;}

.toast{
  position:absolute;left:50%;bottom:110px;transform:translateX(-50%) translateY(10px);
  background:rgba(0,0,0,.82);color:#fff;font-size:12.5px;padding:9px 16px;border-radius:20px;
  opacity:0;transition:.3s;z-index:990;pointer-events:none;white-space:nowrap;
}
.toast.show{opacity:1;transform:translateX(-50%);}

/* 截图/调试模式：关掉动画，保证首帧即最终状态 */
body.shot *,body.shot *::before,body.shot *::after{animation-duration:0s!important;transition-duration:0s!important;}

/* ---------------- 修正：统一线性图标 / 底部安全区 ---------------- */
.ln{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.ios-search svg{fill:none;stroke:var(--label2);stroke-width:2;}

/* 底部条留出 Home Indicator 空间 */
.tabbar{height:72px;flex:0 0 72px;padding-bottom:16px;}
.kkt-tabbar{height:70px;flex:0 0 70px;padding-bottom:16px;}
.ins-tabbar{height:68px;flex:0 0 68px;padding-bottom:16px;}
.yt-tabbar{height:66px;flex:0 0 66px;padding-bottom:16px;}
.nt-toolbar{height:66px;flex:0 0 66px;padding-bottom:14px;}
.saf-toolbar{height:66px;flex:0 0 66px;padding-bottom:16px;}
.chat-input{padding-bottom:34px;}
.chat-view.kb-on .chat-input{padding-bottom:10px;}

/* 天气小组件别溢出 */
.widget{padding:12px 13px;}
.w-temp{font-size:40px;}
.w-range{margin-top:5px;}
.w-hours{margin-top:7px;font-size:8.5px;}
.w-hours div{gap:2px;}

/* 深色背景里的占位图 */
.ins-app .ph{background:repeating-linear-gradient(45deg,#161616,#161616 8px,#1d1d1d 8px,#1d1d1d 16px);color:#6b6b6b;}
.ins-app .ph::after{border-color:#2c2c2c;}

/* 相机顶部下拉设置面板 */
.cam-chev{cursor:pointer;}
.cam-panel{
  position:absolute;top:44px;left:50%;transform:translateX(-50%) scale(.94);
  width:196px;border-radius:14px;background:rgba(28,28,30,.94);backdrop-filter:blur(22px);
  padding:6px;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;z-index:9;
  box-shadow:0 12px 30px rgba(0,0,0,.55);
}
.cam-panel.show{opacity:1;pointer-events:auto;transform:translateX(-50%) scale(1);}
.cp-item{width:100%;display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:9px;font-size:13.5px;color:#fff;}
.cp-item:active{background:rgba(255,255,255,.1);}
.cp-item b{font-weight:400;font-size:12.5px;color:rgba(255,255,255,.45);}
.cp-item b.cp-on{color:#ffd60a;}
.cam-thumb{display:grid;place-items:center;color:#5c6470;font-size:17px;}

/* 天气小组件再收一点，避免底部行被裁 */
.w-temp{font-size:36px;margin-top:6px;}
.w-hours span:first-child{font-size:8px;}

/* 列表底部留白，最后一条不被工具栏挡 */
.nt-app .app-body,.ph-app .app-body,.phone-app .app-body,.msg-app .app-body{padding-bottom:10px;}

/* 天气小组件再收一点，避免底部行被裁 */
.w-temp{font-size:36px;margin-top:6px;}
.w-hours span:first-child{font-size:8px;}

/* 列表底部留白，最后一条不被工具栏挡 */
.nt-app .app-body,.ph-app .app-body,.phone-app .app-body,.msg-app .app-body{padding-bottom:10px;}

/* 信息：未读蓝点移到最左侧（iOS 样式），并修掉绿色条的 1px 漏边 */
.msg-swipe .read-action{inset:0 0 1.5px 0;width:88px;}
.msg-swipe .iph-row{padding-left:30px;}
.msg-swipe .unread-dot{position:absolute;left:11px;top:50%;transform:translateY(-50%);}

/* YouTube / 深色 App 里的占位图 */
.yt-app .ph{background:repeating-linear-gradient(45deg,#171717,#171717 8px,#1e1e1e 8px,#1e1e1e 16px);color:#6b6b6b;}
.yt-app .ph::after{border-color:#2e2e2e;}

/* YouTube / 深色 App 里的占位图 */
.yt-app .ph{background:repeating-linear-gradient(45deg,#171717,#171717 8px,#1e1e1e 8px,#1e1e1e 16px);color:#6b6b6b;}
.yt-app .ph::after{border-color:#2e2e2e;}

/* 地图：让画布撑满 */
.map-app .app-body{display:flex;overflow:hidden;}
.map-app .app-body.flush{padding:0;}
.map-canvas{flex:1;min-height:0;}

/* 地图：让画布撑满 */
.map-app .app-body{display:flex;overflow:hidden;}
.map-app .app-body.flush{padding:0;}
.map-canvas{flex:1;min-height:0;}

/* 语音备忘录：未播放时不显示进度槽 */
.vm-prog{background:transparent;}
.vm-item.playing .vm-prog{background:#2c2c2e;}

/* 语音备忘录：未播放时不显示进度槽 */
.vm-prog{background:transparent;}
.vm-item.playing .vm-prog{background:#2c2c2e;}

/* 进入密码页时，隐藏锁屏的上滑提示与快捷按钮 */
.lock-layer.passing .swipe-hint,
.lock-layer.passing .lock-bottom{opacity:0;pointer-events:none;transition:opacity .25s;}
.lock-layer.passing .lock-widgets{opacity:.55;}
.pass-layer .key.del{align-self:center;}

/* 键盘底部留出 Home Indicator */
.ios-kb.show{height:236px;}
.kb-bar{padding:2px 0 20px;}

/* =========================================================
   缩放控件（页面空白处，右下角）
   ========================================================= */
.zoom-ctl{
  position:fixed;right:20px;bottom:20px;z-index:9999;
  display:flex;align-items:center;gap:1px;padding:4px;
  border-radius:999px;
  background:rgba(26,29,38,.74);
  -webkit-backdrop-filter:blur(20px) saturate(170%);
  backdrop-filter:blur(20px) saturate(170%);
  box-shadow:0 10px 30px rgba(0,0,0,.5),inset 0 0 0 .5px rgba(255,255,255,.14);
  color:#fff;font-size:12px;letter-spacing:.2px;
  user-select:none;-webkit-user-select:none;
  transition:box-shadow .3s,opacity .3s;
}
.zoom-ctl:hover{box-shadow:0 14px 36px rgba(0,0,0,.6),inset 0 0 0 .5px rgba(255,255,255,.24);}
.zc-btn{
  width:32px;height:32px;border-radius:50%;display:grid;place-items:center;
  color:rgba(255,255,255,.86);
  transition:background .16s,transform .12s,color .16s;
}
.zc-btn svg{
  width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}
.zc-btn:hover{background:rgba(255,255,255,.12);color:#fff;}
.zc-btn:active{transform:scale(.9);background:rgba(255,255,255,.2);}
.zc-btn:disabled{opacity:.25;cursor:default;}
.zc-btn:disabled:hover{background:none;color:rgba(255,255,255,.86);}
.zc-val{
  min-width:50px;height:32px;padding:0 4px;border-radius:999px;
  font:600 11.5px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC",sans-serif;
  color:rgba(255,255,255,.92);font-variant-numeric:tabular-nums;letter-spacing:.4px;
  transition:background .16s;
}
.zc-val:hover{background:rgba(255,255,255,.1);}
.zc-val:active{background:rgba(255,255,255,.18);}
.zc-sep{width:.5px;height:15px;background:rgba(255,255,255,.18);margin:0 5px;}
.zc-fit.on{color:#4da3ff;}

@media (max-width:560px){
  .zoom-ctl{right:12px;bottom:12px;padding:3px;}
  .zc-btn{width:29px;height:29px;}
  .zc-val{min-width:44px;height:29px;font-size:11px;}
}

/* 竖排模式：贴在手机侧边的空白处 */
.zoom-ctl.v{flex-direction:column;padding:5px 4px;}
.zoom-ctl.v .zc-sep{width:15px;height:.5px;margin:5px 0;}
.zoom-ctl.v .zc-val{min-width:0;width:32px;height:26px;padding:0;font-size:10.5px;}

/* =========================================================
   ① 锁屏壁纸层（和主屏壁纸分开）
   ========================================================= */
.lock-layer{isolation:isolate;}
.lock-wall{
  position:absolute;inset:0;z-index:-1;
  background:var(--wallpaper);background-size:cover;background-position:center;
  transition:transform .55s var(--ease);
}
.lock-wall::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.3) 0%,rgba(0,0,0,0) 30%,rgba(0,0,0,.5) 100%);
}

/* =========================================================
   ② 天气：城市切换
   ========================================================= */
.wx-scroll{animation:none;}
.wx-fade{animation:wxIn .3s var(--ease);}
@keyframes wxIn{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:none}}
.wx-area{font-size:12.5px;opacity:.7;margin-top:-2px;letter-spacing:.3px;}
.wx-last{margin-bottom:104px;}

.wx-dots{
  position:absolute;left:0;right:0;bottom:30px;display:flex;justify-content:center;gap:6px;
  z-index:5;pointer-events:none;
}
.wx-dots i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.4);}
.wx-dots i.on{background:#fff;}

.wx-fab{
  position:absolute;right:16px;bottom:22px;width:42px;height:42px;border-radius:50%;
  background:rgba(255,255,255,.22);backdrop-filter:blur(14px);
  display:grid;place-items:center;color:#fff;z-index:6;box-shadow:0 4px 14px rgba(0,0,0,.2);
}
.wx-fab svg{width:20px;height:20px;}
.wx-fab:active{background:rgba(255,255,255,.34);}

.wx-sheet{
  position:absolute;inset:0;z-index:20;
  background:linear-gradient(180deg,#31435c 0%,#1a2431 45%,#0d1116 100%);
  transform:translateY(100%);transition:transform .38s var(--ease);
  display:flex;flex-direction:column;padding-top:calc(var(--sb-h) + 4px);
  overflow:hidden;
}
.wx-sheet.show{transform:none;}
.wx-sheet-top{
  display:flex;justify-content:space-between;align-items:center;
  padding:6px 18px 12px;font-size:20px;font-weight:700;color:#fff;
}
.wx-edit{font-size:15px;font-weight:400;color:rgba(255,255,255,.8);}
.wx-city-list{flex:1;overflow-y:auto;padding:0 14px 30px;}
.wx-city-row{
  display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:16px;
  background:rgba(255,255,255,.1);margin-bottom:10px;color:#fff;
  border:.5px solid rgba(255,255,255,.14);
}
.wx-city-row.on{background:rgba(255,255,255,.18);}
.wx-cr-main{flex:1;min-width:0;}
.wx-cr-name{font-size:20px;font-weight:500;letter-spacing:-.2px;}
.wx-cr-sub{font-size:12px;opacity:.7;margin-top:3px;}
.wx-cr-temp{font-size:34px;font-weight:200;letter-spacing:-1px;}
.wx-cr-temp span{font-weight:200;}
.wx-city-add{
  text-align:center;font-size:14px;color:rgba(255,255,255,.75);padding:14px;
  border-radius:14px;border:.5px dashed rgba(255,255,255,.28);
}

/* =========================================================
   ③ 电话：最近通话 / 拨号盘
   ========================================================= */
.ph-body{min-height:100%;}
.ph-row{
  display:flex;align-items:center;gap:10px;padding:10px 16px;background:#fff;position:relative;min-height:52px;
}
.ph-row::after{content:"";position:absolute;left:16px;right:0;bottom:0;height:.5px;background:var(--sep);}
.ph-row:last-child::after{display:none;}
.ph-row:active{background:#e9e9ee;}
.ph-right{display:flex;align-items:center;gap:2px;flex:0 0 auto;}
.ph-when{font-size:12.5px;color:var(--label2);white-space:nowrap;}
.ph-missed{color:var(--red);}
.ph-count{text-align:center;font-size:12px;color:var(--label2);padding:16px 0 22px;}
.cnt-ava.sm{width:36px;height:36px;border-radius:50%;overflow:hidden;flex:0 0 36px;background:#dfe3ea;display:grid;place-items:center;font-size:14px;color:#8a9099;}
.cnt-ava.sm img{width:100%;height:100%;object-fit:cover;}

/* 拨号盘 */
.kpad{display:flex;flex-direction:column;padding:10px 26px 14px;height:100%;}
.kpad-display{flex:0 0 auto;min-height:64px;display:flex;align-items:center;justify-content:center;padding:6px 0 10px;}
.kpad-num{width:100%;text-align:center;display:flex;align-items:center;justify-content:center;gap:8px;}
.kpad-digits{font-size:32px;font-weight:300;letter-spacing:1px;color:#000;}
.kpad-ph{font-size:22px;color:#b0b0b5;font-weight:300;}
.kpad-del{font-size:20px;color:#3c3c43;padding:4px 6px;}
.kpad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 26px;justify-items:center;padding:4px 0 10px;}
.kpad-key{
  width:70px;height:70px;border-radius:50%;background:rgba(120,120,128,.12);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
}
.kpad-key:active{background:rgba(120,120,128,.28);}
.kpad-key b{font-size:31px;font-weight:400;color:#000;line-height:1;}
.kpad-key i{font-size:9px;letter-spacing:1.6px;font-style:normal;color:#000;opacity:.75;margin-top:2px;}
.kpad-actions{display:flex;justify-content:center;align-items:center;margin-top:6px;}
.kpad-call{
  width:70px;height:70px;border-radius:50%;background:#34c759;display:grid;place-items:center;
  box-shadow:0 6px 16px rgba(52,199,89,.35);
}
.kpad-call svg{width:32px;height:32px;fill:#fff;}
.kpad-call.dis{opacity:.35;box-shadow:none;}
.kpad-call:active{transform:scale(.94);}

/* 联系人详情 */
.cnt-hero{display:flex;flex-direction:column;align-items:center;padding:6px 0 16px;}
.cnt-ava{width:96px;height:96px;border-radius:50%;overflow:hidden;background:#dfe3ea;display:grid;place-items:center;font-size:34px;color:#8a9099;}
.cnt-ava img{width:100%;height:100%;object-fit:cover;}
.cnt-name{font-size:26px;font-weight:500;margin-top:12px;letter-spacing:-.3px;}
.cnt-num{font-size:14px;color:var(--label2);margin-top:4px;}
.cnt-quick{display:flex;gap:34px;margin-top:18px;}
.cq{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11.5px;color:var(--blue);}
.cq i{width:56px;height:56px;border-radius:50%;background:rgba(0,122,255,.1);display:grid;place-items:center;}
.cq svg{width:24px;height:24px;fill:var(--blue);stroke:var(--blue);}

.empty-state{text-align:center;color:var(--label2);font-size:15px;padding:70px 0;}

/* 呼叫页（iOS 18） */
.call-layer{
  padding:0;align-items:stretch;justify-content:flex-start;
  background:radial-gradient(120% 70% at 50% 0%,#3a3f4b 0%,#20242c 45%,#0b0d11 100%);
}
.call-body{flex:1;display:flex;flex-direction:column;padding:64px 24px 34px;}
.call-top{display:flex;flex-direction:column;align-items:center;}
.call-ava{width:104px;height:104px;border-radius:50%;overflow:hidden;background:rgba(255,255,255,.14);display:grid;place-items:center;font-size:36px;color:rgba(255,255,255,.85);margin:0 0 16px;}
.call-ava img{width:100%;height:100%;object-fit:cover;}
.call-num{font-size:13.5px;opacity:.55;margin-top:6px;letter-spacing:.3px;}
.call-sub{font-size:15px;opacity:.75;margin-top:14px;letter-spacing:1px;}
.call-grid{
  margin:auto 0 26px;display:grid;grid-template-columns:repeat(3,1fr);gap:26px 10px;
  justify-items:center;
}
.call-cell{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:11.5px;color:#fff;opacity:.92;}
.call-cell i{width:68px;height:68px;border-radius:50%;background:rgba(255,255,255,.16);display:grid;place-items:center;}
.call-cell svg{width:28px;height:28px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.call-cell:active i{background:rgba(255,255,255,.3);}
.call-hang{
  position:static;transform:none;left:auto;bottom:auto;
  display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;color:#fff;
  margin:0 auto;
}
.call-hang i{width:70px;height:70px;border-radius:50%;background:#ff3b30;display:grid;place-items:center;}
.call-hang svg{width:32px;height:32px;fill:#fff;}
.call-hang:active i{opacity:.8;}

/* =========================================================
   ④ 信息
   ========================================================= */
.msg-ava img{width:100%;height:100%;object-fit:cover;border-radius:50%;}
.bubble{white-space:pre-line;}

/* =========================================================
   ⑤ 备忘录详情（iOS 18）
   ========================================================= */
.note-detail .app-body{background:#fff;}
.nd-date{text-align:center;font-size:12px;color:#8a8a8e;padding:8px 0 14px;letter-spacing:.2px;}
.nd-title{font-size:23px;font-weight:700;letter-spacing:-.4px;padding:0 18px;line-height:1.25;}
.nd-text{font-size:17px;line-height:1.62;color:#1c1c1e;padding:10px 18px 0;white-space:pre-line;}
.nd-pad{height:40px;}
.note-toolbar{
  display:flex;align-items:center;gap:26px;padding:0 26px;
  border-top:.5px solid rgba(60,60,67,.16);background:rgba(249,249,249,.96);
  backdrop-filter:blur(20px);color:#ff9f0a;
}
.note-toolbar .nbt{font-size:20px;}
.note-toolbar .grow{flex:1;}
.nt-pin{font-size:11px;margin-left:6px;vertical-align:2px;opacity:.85;}
.note-detail .ni svg{width:20px;height:20px;stroke:#ff9f0a;}

/* =========================================================
   ⑥ KakaoTalk：附件 / 未读 1 / 键盘按键反馈
   ========================================================= */
.cm-file{
  display:flex;align-items:center;gap:10px;min-width:178px;max-width:200px;
  padding:9px 10px;border-radius:12px;background:#fff;box-shadow:0 1px 1px rgba(0,0,0,.05);
  cursor:default;user-select:none;
}
.chat-row.me .cm-file{background:#fff;}
.cf-ico{
  width:38px;height:38px;border-radius:9px;flex:0 0 38px;display:grid;place-items:center;
  font-size:9.5px;font-weight:800;letter-spacing:.3px;color:#fff;
}
.cf-ico.pdf{background:#e5484d;}
.cf-ico.mp3{background:#3f8cff;}
.cf-ico.file{background:#8e8e93;}
.cf-meta{min-width:0;}
.cf-name{font-size:12.5px;font-weight:500;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cf-size{font-size:10.5px;color:#8a8f99;margin-top:2px;}

.cm-unread{
  min-width:19px;height:19px;border-radius:10px;background:#ff3b30;color:#fff;
  font-size:11px;font-weight:700;display:grid;place-items:center;padding:0 5px;
  align-self:flex-end;margin-bottom:3px;transition:opacity .28s,transform .28s;
  line-height:1;
}
.cm-unread.gone{opacity:0;transform:scale(.6);}
.kb-key.press{background:#a9aeb8;transform:translateY(1px);}

/* 拨号盘：靠底部对齐，撑满可视区 */
.kpad{min-height:100%;height:auto;justify-content:flex-end;padding:10px 26px 18px;}
.kpad-display{flex:1 1 auto;align-items:center;min-height:84px;}
.kpad-grid{gap:12px 26px;}

/* 联系人详情：快捷按钮图标 */
.cq svg{fill:none;stroke:var(--blue);stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;}
#cqCall svg{fill:var(--blue);stroke:none;}

/* =========================================================
   第八轮 · 按参考图重排
   ========================================================= */

/* ---------- 左上角「◀ 主屏幕」 ---------- */
.back-home{
  position:absolute;top:calc(var(--sb-h) + 1px);left:12px;z-index:880;
  display:none;align-items:center;gap:4px;padding:7px 10px 7px 4px;
  font-size:13px;font-weight:700;letter-spacing:-.2px;color:#000;
  text-shadow:0 0 5px rgba(255,255,255,.75);
}
.back-home.show{display:flex;}
.back-home:active{opacity:.55;}
.back-home.light{text-shadow:0 0 6px rgba(0,0,0,.55);}
.back-home svg{width:6.5px;height:10px;fill:currentColor;stroke:none;}
.back-home.light{color:#fff;}

/* App 顶部让出一条给返回键 */
.app-view{padding-top:calc(var(--sb-h) + 32px);}
.app-view.full,.cam-app{padding-top:var(--sb-h);}
.nav-bar{height:40px;flex:0 0 40px;padding:0 16px;}
.nav-left{display:flex;align-items:center;color:var(--blue);font-size:16px;}
.nav-title{font-size:16px;font-weight:600;}

/* 通知横幅落在灵动岛下面 */
.banner-layer{
  position:absolute;left:0;right:0;top:0;z-index:940;
  padding:60px 10px 0;display:flex;flex-direction:column;gap:8px;
  pointer-events:none;
}
.banner-layer .notif-card{margin:0;pointer-events:auto;}

/* 通用小图标 */
.dots{fill:currentColor;stroke:none;}
.dots circle{fill:currentColor;stroke:none;}
.ava-ico{display:grid;place-items:center;width:100%;height:100%;color:#fff;}
.ava-ico svg{width:62%;height:62%;fill:currentColor;}
img{border-radius:inherit;}

/* =========================================================
   Apple Music · 歌曲
   ========================================================= */
.music-app{background:#fff;}
.mu-crumb{
  display:flex;align-items:center;gap:3px;color:#fa2d48;font-size:15px;
  padding:6px 16px 0;font-weight:400;
}
.mu-crumb svg{width:9px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;}
.mu-head{padding:0 16px 12px;}
.mu-head h1{font-size:34px;font-weight:700;letter-spacing:.2px;}
.mu-actions{display:flex;gap:9px;padding:0 16px 14px;}
.mu-btn{
  flex:1;height:48px;border-radius:10px;background:#f0f0f2;
  display:flex;align-items:center;justify-content:center;gap:7px;
  font-size:16px;color:#fa2d48;
}
.mu-btn:active{background:#e6e6e9;}
.mu-btn svg{width:19px;height:19px;fill:#fa2d48;stroke:#fa2d48;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.mu-btn svg.ln{fill:none;}
.mu-list{background:#fff;}
.mu-song{display:flex;align-items:center;gap:12px;padding:7px 16px;position:relative;}
.mu-song:active{background:#f4f4f6;}
.mu-song::after{content:"";position:absolute;left:76px;right:0;bottom:0;height:.5px;background:rgba(60,60,67,.2);}
.mu-cover{width:48px;height:48px;border-radius:6px;overflow:hidden;flex:0 0 48px;background:#e8e8ed;display:grid;place-items:center;}
.mu-cover.voice{background:linear-gradient(160deg,#ff7185,#fa2d48);}
.mu-cover.voice svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.mu-cover .ph span{font-size:8px;}
.mu-meta{flex:1;min-width:0;}
.mu-t{font-size:16px;letter-spacing:-.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mu-a{font-size:12.5px;color:#8a8a8e;margin-top:3px;}
.mu-more{color:#c7c7cc;font-size:11px;letter-spacing:1px;padding:4px;}
.mu-song.playing .mu-t{color:#fa2d48;}
.tabbar{height:74px;flex:0 0 74px;padding-bottom:16px;background:rgba(249,249,249,.97);}
.mu-tabbar .tab{font-size:9.5px;gap:3px;color:#8e8e93;}
.mu-tabbar .tab.on{color:#fa2d48;}
.mu-tabbar .tab svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}

/* =========================================================
   电话 · 最近通话
   ========================================================= */
.phone-app{background:#fff;}
.ph-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:2px 16px 0;}
.ph-edit{color:var(--blue);font-size:16px;}
.ph-seg{display:flex;background:rgba(118,118,128,.13);border-radius:9px;padding:2px;}
.ph-seg button{font-size:13px;padding:4px 13px;border-radius:7px;color:#000;letter-spacing:-.1px;}
.ph-seg button.on{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.14);font-weight:600;}
.ph-title{padding:4px 16px 8px;}
.ph-title h1{font-size:34px;font-weight:700;letter-spacing:.2px;}
.ph-search{margin:0 16px 6px;font-size:16px;}
.ph-list{background:#fff;}
.ph-row{
  display:flex;align-items:center;gap:8px;padding:9px 12px 9px 6px;background:#fff;
  position:relative;min-height:54px;
}
.ph-row::after{content:"";position:absolute;left:34px;right:0;bottom:0;height:.5px;background:rgba(60,60,67,.2);}
.ph-row:active{background:#f2f2f7;}
.ph-out{width:22px;flex:0 0 22px;display:grid;place-items:center;}
.ph-out svg{width:15px;height:15px;fill:#8e8e93;}
.ph-out.none{visibility:hidden;}
.ph-row .row-t{font-size:16.5px;}
.ph-row .row-s{margin-top:1px;font-size:13px;}
.ph-when{font-size:14px;color:#8e8e93;margin-right:2px;flex:0 0 auto;}
.info-btn{width:28px;height:28px;color:var(--blue);display:grid;place-items:center;}
.info-btn svg{width:22px;height:22px;fill:none;stroke:var(--blue);stroke-width:1.6;}
.ph-tabbar .tab{font-size:9.5px;color:#8e8e93;gap:3px;}
.ph-tabbar .tab.on{color:var(--blue);}
.ph-tabbar .tab svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.ph-tabbar .tab svg.dots{fill:currentColor;stroke:none;}
.ph-count{text-align:center;font-size:12px;color:#a1a1a6;padding:16px 0 24px;}

/* =========================================================
   KakaoTalk · 列表
   ========================================================= */
.kkt-app{background:#fff;color:#111;}
.kkt-top{height:54px;flex:0 0 54px;background:#fff;padding:0 8px 0 16px;}
.kkt-ttl{font-size:21px;font-weight:700;letter-spacing:-.4px;margin-left:0;}
.kkt-top-r{gap:7px;}
.kkt-ico{width:32px;height:32px;border-radius:50%;}
.kkt-ico:active{background:#f0f0f2;}
.kkt-ico svg{width:22px;height:22px;stroke:#111;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.kkt-list{background:#fff;}
.kkt-chat{padding:9px 16px;gap:13px;}
.kkt-chat::after{left:77px;background:rgba(0,0,0,.06);}
.kkt-ava{width:48px;height:48px;border-radius:18px;background:#c9d9e8;color:#fff;overflow:hidden;}
.kkt-nm{font-size:15.5px;font-weight:600;}
.kkt-last{font-size:12.5px;color:#8a8f99;margin-top:4px;}
.kkt-time{font-size:11px;color:#b0b4bb;}
.kkt-badge{background:#ff5b41;font-weight:700;}
.kkt-tabbar{height:74px;flex:0 0 74px;padding-bottom:16px;background:#fff;}
.kkt-tab{font-size:9.5px;gap:3px;color:#a8adb7;}
.kkt-tab.on{color:#111;}
.kkt-tab svg{width:23px;height:23px;fill:currentColor;}
.kkt-tab svg.ln{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.kkt-tab svg.dots{fill:currentColor;}

/* =========================================================
   KakaoTalk · 聊天
   ========================================================= */
.chat-view{background:#b9cbd9;}
.chat-head{
  height:54px;flex:0 0 54px;background:#b9cbd9;padding:0 6px 0 6px;gap:2px;
  border-bottom:none;
}
.chat-back{display:flex;align-items:center;gap:1px;padding:0 4px;color:#111;}
.chat-back svg{width:10px;height:18px;fill:none;stroke:#111;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;}
.chat-back b{font-size:16px;font-weight:400;}
.chat-head .nm{font-size:17px;font-weight:600;color:#111;letter-spacing:-.2px;}
.chat-head .hb{gap:2px;margin-left:auto;}
.chat-head .hb button{width:34px;height:34px;border-radius:8px;}
.chat-head .hb svg{width:21px;height:21px;fill:none;stroke:#111;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}

.chat-body{background:#b9cbd9;padding:6px 10px 14px;}
.chat-day{
  display:flex;align-items:center;gap:5px;
  background:rgba(122,145,166,.4);color:#fff;font-size:11.5px;
  padding:4px 12px;border-radius:14px;margin:12px 0 12px;
}
.chat-day svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.chat-row{display:flex;gap:6px;margin-bottom:14px;align-items:flex-start;}
.chat-row.me{flex-direction:row-reverse;gap:5px;}
.chat-ava-col{width:40px;flex:0 0 40px;display:flex;flex-direction:column;align-items:center;gap:3px;}
.chat-ava{width:40px;height:40px;border-radius:14px;overflow:hidden;background:#cfdbe6;}
.cm-name{font-size:10px;color:#5c6a78;max-width:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cm-wrap{max-width:66%;display:flex;flex-direction:column;}
.cm{
  padding:8px 12px;border-radius:15px;background:#fff;color:#111;font-size:15px;line-height:1.4;
  word-break:break-word;box-shadow:0 1px 1px rgba(0,0,0,.05);align-self:flex-start;
}
.chat-row.me .cm{background:#fee500;align-self:flex-end;}
.cm-side{display:flex;flex-direction:column;align-items:flex-start;gap:2px;align-self:flex-end;padding-bottom:2px;}
.cm-time{font-size:9.5px;color:#6d7d8c;white-space:nowrap;}
.chat-row.me .cm-time{align-self:flex-end;padding-bottom:2px;}
.cm-unread{background:#ff3b30;color:#fff;font-size:11px;font-weight:700;border-radius:10px;min-width:19px;height:19px;line-height:1;padding:0 5px;}
.cm-unread.gone{opacity:0;transform:scale(.6);}
.cm-img{width:150px;height:112px;border-radius:13px;overflow:hidden;background:#dfe4ea;}
.cm-file{border-radius:13px;}
.chat-note{background:rgba(60,80,100,.25);color:#fff;}
.typing{background:#fff;border-radius:15px;}

/* 输入条 */
.chat-input{
  background:#eef1f4;border-top:.5px solid rgba(0,0,0,.05);
  padding:7px 10px 10px;gap:8px;align-items:center;
}
.chat-input .plus{
  width:30px;height:30px;border-radius:50%;border:1.7px solid #7b8794;
  display:grid;place-items:center;font-size:17px;color:#5b6774;flex:0 0 30px;line-height:1;
}
.chat-input .field{
  flex:1;min-height:34px;border-radius:17px;background:#fff;padding:7px 13px;
  font-size:14.5px;color:#111;
}
.chat-input .field:empty::before{content:attr(data-ph);color:#a9b0b8;}
.chat-input .field.locked{background:#fff;}
.chat-input .field[data-ph=""]:empty::before{content:"";}
.emoji-btn{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;color:#5b6774;}
.emoji-btn svg{width:24px;height:24px;fill:none;stroke:#5b6774;stroke-width:1.8;stroke-linecap:round;}
.send-btn{
  display:none;width:34px;height:34px;flex:0 0 34px;border-radius:50%;
  background:#fee500;place-items:center;padding:0;
}
.send-btn.show{display:grid;}
.send-btn svg{width:20px;height:20px;fill:none;stroke:#3b1e1e;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;}

/* 键盘 */
.ios-kb{background:#d1d5db;}
.ios-kb.show{height:230px;}

/* =========================================================
   地图
   ========================================================= */
.map-app{background:#f1eee7;}
.map-app .app-body{display:flex;overflow:hidden;padding:0;}
.map-canvas{position:relative;flex:1;min-height:0;overflow:hidden;background:#f1eee7;}
.map-base{position:absolute;inset:0;overflow:hidden;}
.mblk{position:absolute;border-radius:3px;background:#e7e3d9;}
.mblk:nth-child(3n){background:#eae6dd;}
.mblk:nth-child(4n){background:#e3ded2;}
.mblk:nth-child(5n){background:#ece8e0;}
.mroad{position:absolute;background:#fcfbf8;}
.mroad.v{top:-2%;bottom:-2%;width:16px;transform:translateX(-50%);}
.mroad.h{left:-2%;right:-2%;height:16px;transform:translateY(-50%);}
.map-route{position:absolute;left:-4%;right:-4%;top:22%;height:11px;background:#f8e27a;box-shadow:0 0 0 .5px rgba(0,0,0,.03);}
.map-label{
  position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;gap:4px;
  font-size:11px;color:#4b4b4b;font-weight:600;white-space:nowrap;
}
.map-label i{
  width:19px;height:19px;border-radius:50%;display:grid;place-items:center;font-style:normal;
  font-size:10px;color:#fff;border:1.4px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.map-pin{
  position:absolute;transform:translate(-50%,-50%);z-index:3;
  display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer;
}
.map-pin .pin{
  width:27px;height:27px;border-radius:50%;border:2px solid #fff;
  box-shadow:0 2px 7px rgba(0,0,0,.22);display:grid;place-items:center;
  color:#fff;font-size:12px;line-height:1;transition:transform .18s;
}
.map-pin .nm{font-size:10.5px;font-weight:700;color:#3a3a3c;white-space:nowrap;}
.map-pin.sel .pin{transform:scale(1.18);}
.map-fab{position:absolute;right:14px;top:10px;display:flex;flex-direction:column;gap:8px;z-index:4;}
.map-fab .mf{
  width:44px;height:44px;border-radius:12px;background:#fff;display:grid;place-items:center;
  box-shadow:0 2px 10px rgba(0,0,0,.16);
}
.map-fab .mf:active{background:#f0f0f2;}
.map-fab svg{width:22px;height:22px;fill:#0a84ff;stroke:#0a84ff;}
.map-fab svg.ln{fill:none;stroke:#0a84ff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}

.map-sheet{
  position:absolute;left:0;right:0;bottom:0;background:#fff;
  border-radius:22px 22px 0 0;padding:9px 16px 28px;z-index:6;
  box-shadow:0 -12px 34px rgba(0,0,0,.14);
  transform:translateY(110%);transition:transform .4s var(--ease);
}
.map-sheet.show{transform:none;}
.ms-handle{width:38px;height:5px;border-radius:3px;background:#d8d8dd;margin:0 auto 10px;}
.ms-head{display:flex;align-items:flex-start;gap:10px;}
.ms-titles h3{font-size:25px;font-weight:700;letter-spacing:-.5px;line-height:1.15;}
.ms-cat{font-size:13px;color:#8e8e93;margin-top:3px;}
.ms-close{
  margin-left:auto;width:30px;height:30px;border-radius:50%;background:#ececef;
  display:grid;place-items:center;flex:0 0 30px;
}
.ms-close svg{width:14px;height:14px;fill:none;stroke:#77777d;stroke-width:2.3;stroke-linecap:round;}
.ms-actions{display:flex;gap:8px;margin:15px 0 12px;}
.ms-btn{
  flex:1;height:58px;border-radius:12px;background:#f4f4f6;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  font-size:10.5px;color:var(--blue);
}
.ms-btn svg{width:20px;height:20px;fill:var(--blue);stroke:var(--blue);}
.ms-btn svg.ln{fill:none;stroke:var(--blue);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.ms-btn svg.dots{fill:var(--blue);}
.ms-btn.primary{
  flex:1.3;flex-direction:row;gap:6px;background:var(--blue);color:#fff;
  font-size:13px;font-weight:600;
}
.ms-btn.primary svg{fill:#fff;stroke:#fff;width:19px;height:19px;}
.ms-card{background:#f6f6f8;border-radius:12px;padding:11px 14px;}
.ms-card-t{font-size:11.5px;color:#8e8e93;}
.ms-card-b{font-size:14.5px;margin-top:3px;line-height:1.45;color:#111;}

/* =========================================================
   备忘录
   ========================================================= */
.nt-app{background:#f2f2f7;}
.nt-crumb{
  display:flex;align-items:center;gap:3px;color:#f2a30f;font-size:15px;
  padding:4px 16px 0;
}
.nt-crumb svg{width:9px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;}
.nt-head{padding:0 16px 10px;}
.nt-head h1{font-size:34px;font-weight:700;letter-spacing:.2px;}
.nt-search{margin:0 16px 4px;background:rgba(118,118,128,.14);font-size:16px;}
.nt-app .app-body{background:#f2f2f7;}
.list-cap.pin-cap{display:flex;align-items:center;gap:5px;padding:12px 18px 6px;font-size:12.5px;color:#8a8a8e;}
.pin-dot{font-size:10px;}
.nt-card{background:#fff;border-radius:12px;margin:0 12px;overflow:hidden;}
.nt-card .row{padding:10px 14px;}
.nt-card .row::after{left:14px;right:14px;background:rgba(60,60,67,.16);}
.nt-card .row:last-child::after{display:none;}
.nt-row .row-t{font-size:16.5px;font-weight:600;}
.nt-row .row-s{font-size:12.5px;margin-top:3px;color:#8a8a8e;}
.nt-foot{
  height:58px;flex:0 0 58px;display:flex;align-items:center;justify-content:center;
  background:rgba(249,249,249,.97);border-top:.5px solid rgba(60,60,67,.16);
  position:relative;padding-bottom:8px;
}
.nt-foot span{font-size:13px;color:#6b6b70;}
.nt-foot .nt-new{position:absolute;right:18px;top:12px;color:#f2a30f;}
.nt-foot .nt-new svg{width:25px;height:25px;fill:none;stroke:#f2a30f;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}

/* =========================================================
   Safari
   ========================================================= */
.safari-app{background:#f2f2f7;}
.saf-content{padding:0 0 20px;}
.saf-sect{font-size:22px;font-weight:700;padding:14px 18px 10px;letter-spacing:.2px;}
.saf-grid{gap:16px 4px;padding:0 10px 6px;}
.saf-fav .sq{width:62px;height:62px;border-radius:15px;font-size:24px;}
.saf-privcard{
  margin:0 16px;background:#fff;border-radius:12px;padding:13px 14px;
  display:flex;gap:10px;align-items:flex-start;
}
.saf-privcard .shield{width:27px;height:27px;flex:0 0 27px;}
.saf-privcard .shield svg{width:27px;height:27px;fill:#c3c8d2;}
.saf-privcard p{font-size:14.5px;line-height:1.35;letter-spacing:-.1px;}
.saf-privcard b{font-weight:700;}
.saf-empty{margin:0 16px;background:#fff;border-radius:12px;padding:12px 14px;font-size:14.5px;color:#b0b0b5;}

.saf-bottom{flex:0 0 auto;background:rgba(249,249,249,.97);border-top:.5px solid rgba(60,60,67,.14);}
.saf-urlrow{display:flex;align-items:center;gap:10px;padding:8px 12px 4px;}
.saf-size{font-size:15px;color:#000;flex:0 0 auto;}
.saf-url{
  flex:1;height:38px;border-radius:10px;background:#fff;box-shadow:none;
  display:flex;align-items:center;gap:6px;padding:0 10px;font-size:15.5px;color:#8e8e93;
  border:.5px solid rgba(0,0,0,.06);
}
.saf-url.active{border-color:rgba(0,0,0,.12);}
.saf-ph{flex:1;color:#8e8e93;}
.saf-ph.typed{color:#000;}
.saf-mic{width:18px;height:18px;fill:none;stroke:#b0b0b5;stroke-width:1.8;stroke-linecap:round;}
.saf-cancel{font-size:15px;color:var(--blue);width:0;opacity:0;flex:0 0 auto;overflow:hidden;white-space:nowrap;transition:opacity .2s;}
.safari-app.searching .saf-cancel{width:32px;opacity:1;}
.saf-toolbar{
  height:48px;flex:0 0 48px;border-top:0;background:transparent;
  display:flex;align-items:center;justify-content:space-around;padding-bottom:2px;
}
.saf-toolbar .tb{color:var(--blue);display:grid;place-items:center;}
.saf-toolbar .tb.dis{opacity:.3;}
.saf-toolbar .tb svg{width:23px;height:23px;fill:none;stroke:var(--blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.saf-toolbar.hide{display:none;}

/* =========================================================
   Instagram · 日间模式
   ========================================================= */
.ins-app{background:#fff;color:#000;}
.ins-nav{height:48px;flex:0 0 48px;background:#fff;border-bottom:.5px solid #dbdbdb;padding:0 12px;}
.ins-logo{color:#000;font-size:25px;}
.ins-nav-ico{color:#000;}
.ins-nav-ico svg{width:24px;height:24px;fill:none;stroke:#000;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.ins-body{background:#fff;}
.ins-stories{background:#fff;padding:10px 12px 12px;}
.ins-story{color:#262626;}
.ins-story .ring > div{border-color:#fff;background:#f0f0f0;}
.ins-story .plus{border-color:#fff;}
.ins-post{background:#fff;border-bottom:.5px solid #efefef;}
.ins-ava{background:#efefef;}
.ins-user{color:#000;}
.ins-user small{color:#8e8e8e;}
.ins-more{color:#000;}
.ins-media{background:#fafafa;}
.ins-actions svg{stroke:#000;}
.ins-actions .heart.on svg{fill:#ff3040;stroke:#ff3040;}
.ins-likes{color:#000;}
.ins-cap{color:#262626;}
.ins-cap b{color:#000;}
.ins-comments{color:#8e8e8e;}
.ins-time{color:#8e8e8e;}
.ins-tabbar{height:56px;flex:0 0 56px;background:#fff;border-top:.5px solid #dbdbdb;padding-bottom:6px;}
.ins-tabbar .t{color:#262626;}
.ins-tabbar .t.on{color:#000;}
.ins-tabbar .t svg{stroke:#000;fill:none;stroke-width:1.9;}
.ins-tabbar .t.on svg{fill:#000;stroke:none;}
.ins-tabbar .t .pa{background:#dbdbdb;box-shadow:none;}

.ins-pnav{background:#fff;padding:2px 14px 6px;}
.ins-puser{color:#000;font-size:20px;font-weight:700;}
.ins-profile-head{padding:8px 16px 12px;gap:18px;}
.ins-bigava{background:#efefef;box-shadow:0 0 0 3px #fff,0 0 0 4.5px #dbdbdb;}
.ins-stats b{font-size:17px;color:#000;}
.ins-stats span{font-size:12.5px;color:#000;}
.ins-bio{padding:0 16px 12px;font-size:13.5px;line-height:1.45;color:#000;}
.ins-bio b{display:block;font-weight:600;margin-bottom:2px;font-size:13.5px;}
.ins-btns{padding:0 14px 12px;gap:7px;}
.ins-btn{background:#efefef;color:#000;font-weight:600;}
.ins-btn .caret{font-size:11px;margin-left:3px;color:#555;}
.ins-btn svg{stroke:#000;fill:none;}
.ins-hl .ring{background:#dbdbdb;}
.ins-hl .ring > div{border-color:#fff;background:#f0f0f0;}
.ins-hl .hl{color:#262626;}
.ins-tabs{border-top:0;}
.ins-tabs .it{color:#c7c7cc;padding:8px 0;}
.ins-tabs .it.on{color:#000;border-bottom:1.5px solid #000;}
.ins-tabs .it svg{stroke:currentColor;fill:none;stroke-width:1.9;}
.ins-tabs .it.on svg{stroke:#000;}
.ins-grid{gap:2px;padding:2px 0 0;background:#fff;}
.ins-grid .cell{background:#f4f4f5;}
.ins-grid .cell .ph{background:#f4f4f5;color:#b8b8bd;}
.ins-grid .cell .ph::after{border-color:#e2e2e6;}
.ins-grid .cell-play{position:absolute;right:7px;top:6px;color:#fff;font-size:10px;text-shadow:0 1px 4px rgba(0,0,0,.6);}
.ins-grid .cell-views{position:absolute;left:7px;bottom:6px;color:#fff;font-size:11px;font-weight:600;text-shadow:0 1px 4px rgba(0,0,0,.65);}
.ins-app .ph{background:repeating-linear-gradient(45deg,#f4f4f5,#f4f4f5 8px,#ececef 8px,#ececef 16px);color:#b8b8bd;}
.ins-app .ph::after{border-color:#e2e2e6;}

.ins-detail{background:#fff;color:#000;}
.ins-detail .ins-detail-nav{background:#fff;border-bottom:.5px solid #dbdbdb;}
.ins-detail .nav-title{color:#000;}
.ins-detail .ins-post{border-bottom:0;}

/* ---------- 返回键那一条留白的配色（跟各 App 顶栏对齐，别露出杂色） ---------- */
.chat-view{background:#b9cbd9;}          /* KakaoTalk 对话页：顶部与聊天区统一灰蓝 */
.chat-view > .chat-body{background:#b9cbd9;}
.map-app{background:#eef1e8;}          /* 地图：底下是地图本身 */
.nt-app{background:#f2f2f7;}
.vm-app,.yt-app{background:#000;}

/* 点按区域放大一点，手指更好点 */
.back-home{padding:6px 12px 6px 6px;margin-left:-2px;}
.back-home span{font-size:13.5px;}

/* =========================================================
   第十轮 · Apple Music 资料库页
   ========================================================= */
.mu-lib{padding-bottom:6px;}
.mu-title-row{display:flex;align-items:flex-start;justify-content:space-between;padding:0 16px 14px;}
.mu-title-row h1{font-size:34px;font-weight:700;letter-spacing:.2px;line-height:1.15;}
.mu-tools{display:flex;align-items:center;gap:9px;padding-top:5px;}
.mu-pill{display:flex;align-items:center;gap:1px;height:32px;padding:0 7px;border-radius:16px;background:#f2f2f4;}
.mu-pill-i{width:26px;height:26px;display:grid;place-items:center;}
.mu-pill-i svg{width:19px;height:19px;fill:none;stroke:#111;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.mu-id{width:32px;height:32px;border-radius:50%;background:linear-gradient(160deg,#a7bde9,#8095c8);color:#fff;font-size:12.5px;font-weight:700;display:grid;place-items:center;letter-spacing:.3px;}

.mu-lib-list{background:#fff;}
.mu-row{display:flex;align-items:center;gap:12px;padding:11px 16px;position:relative;}
.mu-row::after{content:"";position:absolute;left:52px;right:0;bottom:0;height:.5px;background:rgba(60,60,67,.18);}
.mu-row:last-child::after{display:none;}
.mu-row.ok:active{background:#f4f4f6;}
.mu-row-i{width:24px;height:24px;flex:0 0 24px;display:grid;place-items:center;}
.mu-row-i svg{width:23px;height:23px;fill:none;stroke:#fa233b;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;}
.mu-row-n{flex:1;font-size:17px;letter-spacing:-.2px;}
.mu-row-c{color:#c4c4c8;font-size:19px;line-height:1;}

/* 底部「未在播放」 */
.mu-now{display:flex;align-items:center;gap:10px;margin:0 12px 8px;padding:7px 12px;border-radius:14px;background:#f2f2f4;}
.mu-now-cover{width:30px;height:30px;border-radius:6px;background:#dcdce0;display:grid;place-items:center;flex:0 0 30px;}
.mu-now-cover svg{width:16px;height:16px;fill:none;stroke:#8e8e93;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.mu-now-t{flex:1;font-size:14px;font-weight:600;color:#111;}
.mu-now-btns{display:flex;align-items:center;gap:15px;}
.mu-now-btns svg{width:17px;height:17px;fill:#111;stroke:none;}
.mu-now-btns svg.dim{fill:#c8c8cc;}

/* 底部导航：只有资料库能点，图标做成 Apple Music 红块 */
.mu-tabbar .tab .mu-tab-lib{
  width:25px;height:25px;border-radius:6px;display:grid;place-items:center;
  background:linear-gradient(160deg,#ff5d73,#fa233b);
}
.mu-tabbar .tab .mu-tab-lib svg{width:17px;height:17px;stroke:#fff;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.mu-tabbar .tab[data-t="home"] svg{fill:#8e8e93;stroke:none;}
.mu-tabbar .tab[data-t="lib"]{color:#fa233b;}

/* ---------- Instagram 个人页：删掉顶部昵称、按钮文字居中 ---------- */
.ins-pnav{justify-content:flex-end;min-height:34px;}
.ins-btn{
  display:flex;align-items:center;justify-content:center;gap:3px;
  text-align:center;white-space:nowrap;
}
.ins-btn .caret{margin-left:2px;line-height:1;}

/* ---------- 信息详情：默认头像 + 对方气泡 ---------- */
.msg-ava{background:#c7c7cc;}
.msg-ava .ava-ico svg{width:58%;height:58%;}
.msg-peer{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 0 16px;}
.msg-peer-ava{width:62px;height:62px;border-radius:50%;overflow:hidden;background:#c7c7cc;display:grid;place-items:center;}
.msg-peer-ava img{width:100%;height:100%;object-fit:cover;}
.msg-peer-ava .ava-ico svg{width:58%;height:58%;}
.msg-peer-n{font-size:13px;font-weight:600;}
.msg-peer-t{font-size:11px;color:var(--label2);margin-top:-2px;}
.msg-mini{width:26px;height:26px;border-radius:50%;overflow:hidden;background:#c7c7cc;flex:0 0 26px;display:grid;place-items:center;margin-right:6px;align-self:flex-end;}
.msg-mini img{width:100%;height:100%;object-fit:cover;}
.msg-mini .ava-ico svg{width:60%;height:60%;}

/* ---------- 备忘录详情底部工具条（按截图重做） ---------- */
.note-toolbar{
  justify-content:space-around;gap:0;padding:0 22px;
  background:#fff;border-top:.5px solid rgba(60,60,67,.18);color:#cfa03c;
}
.note-toolbar .nbt{display:grid;place-items:center;width:46px;height:44px;}
.note-toolbar .nbt svg{
  width:26px;height:26px;fill:none;stroke:#cfa03c;stroke-width:1.65;
  stroke-linecap:round;stroke-linejoin:round;
}
.note-toolbar .nbt:active{opacity:.5;}
.nt-toolbar{height:58px;flex:0 0 58px;padding-bottom:10px;}

/* ---------- 主屏小组件：简化版 ---------- */
.widget{height:152px;padding:12px 13px;}
.w-m-head{display:flex;justify-content:space-between;align-items:center;font-size:10.5px;font-weight:700;letter-spacing:.2px;opacity:.7;}
.w-m-eq{display:flex;gap:2px;align-items:flex-end;height:9px;}
.w-m-eq i{width:2px;border-radius:1px;background:currentColor;opacity:.6;}
.w-m-eq i:nth-child(1){height:4px;}
.w-m-eq i:nth-child(2){height:8px;}
.w-m-eq i:nth-child(3){height:6px;}
.widget.music .w-cover{width:58px;height:58px;border-radius:9px;margin-top:9px;}
.w-m-text{margin-top:8px;min-width:0;}
.widget.music .w-song{font-size:13.5px;font-weight:700;letter-spacing:-.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.widget.music .w-artist{font-size:11px;opacity:.55;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.w-city{display:flex;align-items:center;gap:4px;font-size:13.5px;font-weight:600;letter-spacing:-.1px;}
.w-navarrow{font-size:9px;opacity:.85;transform:translateY(-1px);}
.widget.weather .w-temp{font-size:41px;font-weight:300;line-height:1;margin-top:5px;letter-spacing:-1.8px;}
.w-wico{font-size:15px;line-height:1;margin-top:5px;}
.w-desc{font-size:12px;opacity:.92;margin-top:2px;}
.w-hilo{
  position:absolute;left:13px;right:13px;bottom:11px;
  display:flex;align-items:center;font-size:11px;
}
.w-hilo .w-lab{font-size:8.5px;line-height:1.06;opacity:.72;width:9px;}
.w-hilo b{font-size:14.5px;font-weight:400;margin:0 7px 0 2px;letter-spacing:-.5px;}

/* ---------- 第十一轮 ---------- */
/* KKT 对话页：顶部名字居中 */
.chat-head{position:relative;}
.chat-head .nm{position:absolute;left:0;right:0;text-align:center;pointer-events:none;}
.chat-head .hb{position:relative;z-index:2;}

/* 对话页未读：黄色小数字，没有圆圈 */
.cm-unread{
  background:none;color:#ffd400;font-size:12.5px;font-weight:800;
  min-width:0;height:auto;border-radius:0;padding:0;line-height:1;
  display:inline-block;margin-bottom:3px;text-shadow:0 0 3px rgba(0,0,0,.12);
}

/* Instagram：个人主页隐藏顶部那条 logo/心/纸飞机 */
.ins-app.on-profile .ins-nav{display:none;}

/* ---------- 第十三轮：图片填充兜底（圆头像 / 快拍圈 / 故事环） ---------- */
.ins-bigava img,
.yt-ava img,
.ins-tabbar .t .pa img,
.ins-story .ring > div img,
.ins-hl .ring > div img,
.ins-pava img{width:100%;height:100%;object-fit:cover;display:block;}

/* =========================================================
   第十四轮 · 相册时间线 / KKT 图片放大 / YouTube 日间 / Ins 多图
   ========================================================= */

/* ---------- ① 相册：张数 + 年份分段（最新在最上面） ---------- */
.ph-count{padding:0 4px 8px 5px;font-size:12px;color:#8a8f99;letter-spacing:.2px;}
.ph-year{
  grid-column:1 / -1;
  padding:14px 4px 6px;font-size:15px;font-weight:700;color:#000;
  letter-spacing:-.1px;
}
.ph-grid .cell{background:#f5f6f8;}
.ph-grid .cell img{object-fit:contain;background:#f5f6f8;}
.ph-grid .cell:active img{opacity:.75;}

/* 大图页：图片严格按原比例显示，不裁不拉 */
.pv-inner img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;}

/* ---------- ② KakaoTalk：图片保持原比例、可点开放大；未读贴近气泡 ---------- */
.cm-img{
  width:auto;max-width:190px;height:auto;
  border-radius:13px;overflow:hidden;background:#dfe4ea;
  line-height:0;cursor:pointer;
  box-shadow:0 1px 1px rgba(0,0,0,.05);
}
.cm-img img{display:block;width:100%;height:auto;object-fit:contain;}
.cm-img:active{filter:brightness(.94);}
.cm-img.is-ph{width:150px;height:112px;line-height:normal;cursor:default;}
.cm-img.is-ph .ph{width:100%;height:100%;border-radius:0;}

.chat-row{gap:4px;}
.cm-side{gap:1px;padding-bottom:1px;}
.cm-unread{margin:0 0 1px 0;}

/* 聊天图片的大图页
   ⚠️ 这里刻意不用「max-width/max-height:100% + 网格居中」那一套：
   .iv-inner 的宽度是由图片撑开的，图片又用 100% 反过来取 .iv-inner 的宽度，
   属于循环依赖，个别浏览器会把图片算成 0×0 → 整屏纯黑（只看到黑底和「存储」）。
   现在改成：内层固定铺满整屏，图片 width/height:100% + object-fit:contain，
   尺寸只由 .iv-stage 决定，任何内核都不会算成 0。 */
.iv-app{background:#000;}
.iv-stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;}
.iv-inner{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  transition:transform .18s var(--ease);
}
.iv-inner img{
  width:100%;height:100%;max-width:none;max-height:none;
  object-fit:contain;object-position:center;display:block;
  -webkit-user-drag:none;user-select:none;
}
.iv-err{
  position:absolute;inset:0;display:grid;place-items:center;
  color:rgba(255,255,255,.62);font-size:13px;letter-spacing:.2px;
}
.iv-save{
  position:absolute;right:18px;bottom:30px;z-index:30;
  width:58px;height:58px;border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  background:rgba(255,255,255,.16);backdrop-filter:blur(14px);
  color:#fff;transition:background .2s,transform .12s;
}
.iv-save svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.iv-save span{font-size:9.5px;letter-spacing:.2px;}
.iv-save:active{transform:scale(.94);}
.iv-save.done{background:rgba(48,209,88,.9);}

/* ---------- ③ YouTube：日间模式 ---------- */
.yt-app{background:#fff;color:#0f0f0f;}
.yt-app .app-body{background:#fff;}
.yt-ava{background:#e9e9ec;}
.yt-name{color:#0f0f0f;}
.yt-handle{color:#606060;}
.yt-sec{color:#0f0f0f;}
.yt-more{color:#065fd4;}
.yt-thumb{background:#f1f1f1;}
.yt-card .t{color:#0f0f0f;}
.yt-card .m{color:#606060;}
.yt-tabbar{background:#fff;border-top:.5px solid #e5e5e5;}
.yt-tab{color:#606060;}
.yt-tab.on{color:#0f0f0f;}
.yt-app .ph{
  background:repeating-linear-gradient(45deg,#f4f4f4,#f4f4f4 8px,#ececec 8px,#ececec 16px);
  color:#9aa0a6;
}
.yt-app .ph::after{border-color:#dcdcdc;}

/* ---------- ④ Instagram：多图左右滑动 ---------- */
.ins-media{position:relative;overflow:hidden;}
.ins-slides{
  display:flex;height:100%;
  overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.ins-slides::-webkit-scrollbar{display:none;}
.ins-slide{flex:0 0 100%;height:100%;scroll-snap-align:center;scroll-snap-stop:always;}
.ins-slide img{width:100%;height:100%;object-fit:cover;display:block;}
.ins-count{
  position:absolute;right:10px;top:10px;z-index:2;
  padding:2.5px 8px;border-radius:11px;background:rgba(0,0,0,.55);
  color:#fff;font-size:11px;font-weight:600;letter-spacing:.2px;
}
.ins-comment{padding:1px 12px 3px;font-size:13px;line-height:1.42;color:#262626;}
.ins-comment b{font-weight:600;margin-right:5px;color:#000;}
.ins-post .ins-time{padding:3px 12px 10px;font-size:10.5px;}


/* =========================================================
   第十五轮 · KKT 对话排版 / 语音备忘录 / Ins 主页不可点
   ========================================================= */

/* ---------- ① KKT：头像在左，名字在头像右侧，气泡下沉 ---------- */
.chat-ava-col{display:block;width:40px;flex:0 0 40px;}
.chat-row.cont{margin-top:-9px;margin-bottom:11px;}
.cm-block{display:flex;flex-direction:column;min-width:0;max-width:calc(100% - 52px);}
.chat-row .cm-name{
  max-width:none;margin:2px 0 5px 1px;padding:0;
  font-size:11.5px;line-height:1.2;font-weight:400;color:#5d707f;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.cm-line{display:flex;align-items:flex-end;gap:5px;min-width:0;}
.cm-line .cm-wrap{max-width:100%;min-width:0;}
.cm-line .cm{max-width:100%;}
.cm-line .cm-side{padding-bottom:3px;}

/* ---------- ② 语音备忘录：浅色 + 播放面板 ---------- */
.vm-app{background:#fff;color:#000;}
.vm-app .row{background:#fff;}
.vm-app .row::after{background:rgba(60,60,67,.16);}
.vm-app .row-t{color:#000;}
.vm-app .row-s{color:#8a8f98;}
.vm-head{padding:6px 16px 4px;}
.vm-count{padding:0 18px 8px;font-size:12px;color:#8a8f98;letter-spacing:.2px;}
.vm-list{padding-bottom:2px;}
.vm-item{display:flex;align-items:center;gap:12px;padding:12px 16px;}
.vm-item:active{background:#f5f5f7;}
.vm-play{
  width:30px;height:30px;flex:0 0 30px;border-radius:50%;
  border:1.4px solid #e3e5ea;background:#f7f7f9;
  display:grid;place-items:center;color:#ff3b30;transition:background .15s,border-color .15s;
}
.vm-play svg{width:13px;height:13px;fill:#ff3b30;}
.vm-item.playing .vm-play{background:#ff3b30;border-color:#ff3b30;}
.vm-item.playing .vm-play svg{fill:#fff;}
.vm-item.playing .row-t{color:#ff3b30;}

.vm-sheet{
  position:absolute;inset:0;z-index:30;background:#fff;
  display:flex;flex-direction:column;
  padding-top:var(--sb-h);
  animation:vmIn .26s var(--ease);
}
.vm-sheet[hidden]{display:none;}
@keyframes vmIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.vm-bar{position:relative;height:44px;flex:0 0 44px;display:flex;align-items:center;justify-content:flex-end;padding:0 12px;}
.vm-x{
  width:32px;height:32px;border-radius:50%;background:#f2f2f7;
  display:grid;place-items:center;flex:0 0 32px;
}
.vm-x svg{width:16px;height:16px;stroke:#6b6b70;stroke-width:2.2;}
.vm-cap{
  position:absolute;left:0;right:0;text-align:center;pointer-events:none;
  font-size:15px;font-weight:600;letter-spacing:-.2px;
}
.vm-done{font-size:15px;color:#ff3b30;font-weight:600;padding:4px 6px;position:relative;z-index:2;}

.vm-big-title{font-size:26px;font-weight:700;letter-spacing:-.4px;padding:10px 20px 3px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.vm-big-date{font-size:13px;color:#8a8f98;padding:0 20px 16px;}
.vm-wave{flex:1;display:flex;align-items:center;gap:2px;padding:0 18px;min-height:0;overflow:hidden;}
.vm-wave i{flex:1 1 0;min-width:2px;border-radius:1.5px;background:#dcdde2;transition:background .12s;}
.vm-wave i.on{background:#ff3b30;}
.vm-times{display:flex;justify-content:space-between;padding:10px 22px 0;font-size:11.5px;color:#9a9aa0;
  font-variant-numeric:tabular-nums;}
.vm-ctrls{display:flex;align-items:center;justify-content:center;gap:30px;padding:16px 0 46px;}
.vm-big{
  width:66px;height:66px;border-radius:50%;background:#ff3b30;
  display:grid;place-items:center;box-shadow:0 4px 14px rgba(255,59,48,.3);
  transition:transform .12s;
}
.vm-big:active{transform:scale(.94);}
.vm-big svg{width:26px;height:26px;fill:#fff;}
.vm-skip{width:46px;height:46px;display:grid;place-items:center;color:#ff3b30;}
.vm-skip svg{width:24px;height:24px;stroke:#ff3b30;stroke-width:2;fill:none;}
.vm-skip.flip svg{transform:scaleX(-1);}
.vm-skip:active{opacity:.5;}

/* ---------- ③ Instagram：个人主页九宫格不可点 ---------- */
.ins-grid .cell.no-tap{pointer-events:none;}

/* =========================================================
   第十六轮 · KKT 版面上移 / 相册方形 + 滑动大图
   ========================================================= */

/* ---------- ① KKT 对话页整体上移（返回键那一条也算进标题栏） ---------- */
.chat-view{padding-top:calc(var(--sb-h) + 2px);}
.chat-head{
  height:34px;flex:0 0 34px;
  padding:0 6px 0 76px;          /* 左边给「◀ 返回」留位 */
}
.chat-head .nm{font-size:16.5px;line-height:1;}
.chat-head .hb button{width:30px;height:30px;}
.chat-body{padding:4px 10px 10px;}

/* 输入条再抬高一点，别贴着 Home 条 */
.chat-input{padding:7px 10px 46px;}
.chat-view.kb-on .chat-input{padding-bottom:12px;}

/* ---------- ② 相册：缩略图统一正方形 ---------- */
.ph-grid .cell img{object-fit:cover;background:#e9ebef;}

/* ---------- ③ 相册大图：不能放大，左右滑动看其它照片 ---------- */
.pv-stage{display:block;overflow:hidden;touch-action:pan-x;}
.pv-track{
  display:flex;height:100%;width:100%;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.pv-track::-webkit-scrollbar{display:none;}
.pv-slide{
  flex:0 0 100%;height:100%;scroll-snap-align:center;scroll-snap-stop:always;
  display:flex;align-items:center;justify-content:center;padding:0 6px;
}
.pv-slide img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block;}
.pv-hint{display:none;}

/* Naver 顶部咖啡店大图 */
.nv-hero img{width:100%;height:100%;object-fit:cover;display:block;}

/* =========================================================
   第十七轮 · 相册按「年份 + 月份」分段
   ========================================================= */
.ph-year{
  grid-column:1 / -1;
  padding:18px 4px 0;
  font-size:21px;line-height:1.25;font-weight:700;letter-spacing:-.3px;color:#000;
}
.ph-month{
  grid-column:1 / -1;
  padding:11px 4px 7px;
  font-size:12.5px;font-weight:700;letter-spacing:.6px;
  color:#8a8f99;text-transform:uppercase;
}
.ph-grid > .ph-year + .ph-month{padding-top:6px;}

/* =========================================================
   第十八轮 · KKT 已读 / 拨号页 / 锁屏 / 解锁 / Safari / 相册
   ========================================================= */

/* ---------- ① 我发出的消息：左侧黄色小 1（对方未读→已读） ---------- */
.chat-row.me .cm-side{
  align-items:flex-end;gap:1px;padding-bottom:2px;flex:0 0 auto;
}
.chat-row.me .cm-side .cm-unread{
  font-size:12.5px;font-weight:800;line-height:1;color:#ffd400;
  background:none;transition:opacity .28s;
}
.chat-row.me .cm-side .cm-unread.gone{opacity:0;}
.chat-row.me .cm-side .cm-time{
  align-self:flex-end;font-size:10.5px;line-height:1.1;color:#7e8f9c;padding:0;
}

/* ---------- ② 拨出通话页（按参考图重排） ---------- */
.call-ava{width:118px;height:118px;font-size:36px;margin-bottom:18px;}
.call-ava img{width:100%;height:100%;object-fit:cover;display:block;}
.call-initial{
  font-size:46px;font-weight:400;line-height:1;color:#fff;
  letter-spacing:1px;text-align:center;
}
.call-name{font-size:31px;font-weight:400;letter-spacing:-.4px;}
.call-sub{font-size:15px;opacity:.6;margin-top:9px;letter-spacing:.6px;}
.call-grid{margin:auto 0 18px;gap:24px 10px;}
.call-cell i{width:76px;height:76px;}
.call-cell.red i{background:#ff3b30;}
.call-cell.red svg{fill:#fff;stroke:none;width:32px;height:32px;}
.call-cell.red:active i{background:#e03026;}

/* ---------- ③ 锁屏底部（提示语和两个圆钮同一行） ---------- */
.lock-bottom{
  bottom:30px;padding:0 40px;align-items:center;
  justify-content:space-between;
}
.lock-quick{width:58px;height:58px;}
.lock-quick svg{width:27px;height:27px;}
.swipe-hint{
  position:static;flex:1;display:flex;align-items:center;justify-content:center;
  font-size:13px;letter-spacing:.5px;opacity:.55;padding-bottom:3px;
  animation:hintBreath 2.8s ease-in-out infinite;
}
.swipe-bar{display:none;}
@keyframes hintBreath{0%,100%{opacity:.4}50%{opacity:.72}}

/* ---------- ④ 解锁页（无锁图标，数字键盘居中） ---------- */
.pass-layer{align-items:flex-start;}
.pass-inner{padding:76px 0 0;justify-content:flex-start;}
.pass-title{font-size:17px;font-weight:500;margin:0 0 24px;letter-spacing:.6px;}
.pass-dots{gap:26px;margin-bottom:4px;height:14px;}
.pass-dots i{width:12px;height:12px;border-width:1.4px;}
.pass-error{height:16px;font-size:12.5px;margin-top:6px;}
.pass-pad{
  width:auto;grid-template-columns:repeat(3,78px);
  gap:20px 26px;margin-top:26px;justify-items:center;
}
.key{width:78px;height:78px;}
.key .num{font-size:35px;font-weight:300;line-height:1;}
.key .sub{font-size:9.5px;letter-spacing:2px;margin-top:3px;}
.key.blank{background:none;pointer-events:none;}
.key.del{
  background:none;opacity:0;pointer-events:none;transition:opacity .16s;
}
.key.del.show{opacity:.9;pointer-events:auto;}
.key.del:active{background:none;opacity:.5;}
.key.del svg{
  width:27px;height:27px;fill:none;stroke:#fff;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.pass-foot{
  position:absolute;left:0;right:0;bottom:24px;
  display:flex;align-items:center;justify-content:space-between;padding:0 26px;
}
.pass-flat{font-size:16px;color:#fff;letter-spacing:.3px;padding:8px 4px;opacity:.95;}
.pass-flat:active{opacity:.5;}

/* ---------- ⑤ Safari 底部工具条上移 + 胶囊内「大小」 ---------- */
.saf-bottom{padding-bottom:26px;background:rgba(248,248,248,.98);border-top:none;}
.saf-urlrow{padding:0 10px 8px;gap:8px;}
.saf-url{
  height:46px;border-radius:15px;background:#fff;
  padding:0 10px 0 14px;gap:8px;
  border:.5px solid rgba(0,0,0,.05);
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}
.saf-size{
  font-size:15px;color:#000;flex:0 0 auto;
  padding-right:11px;margin-right:2px;
  border-right:.5px solid rgba(60,60,67,.16);
  height:22px;display:flex;align-items:center;
}
.saf-ph{flex:1;color:#8e8e93;font-size:15.5px;}
.saf-mic{width:18px;height:18px;flex:0 0 18px;}
.saf-toolbar{height:46px;flex:0 0 46px;padding-bottom:0;}
.saf-toolbar .tb svg{width:24px;height:24px;}

/* ---------- ⑥ 相册列表（图库 + 年月标题 + 悬浮分段） ---------- */
.ph-head{padding-bottom:2px;}
.ph-head h1{font-size:34px;letter-spacing:.2px;}
.ph-count{
  text-align:left;padding:2px 6px 10px 18px;
  font-size:13px;color:#8a8f99;letter-spacing:.1px;
}
.ph-month{
  grid-column:1 / -1;
  padding:16px 4px 8px;
  font-size:20px;font-weight:700;letter-spacing:-.25px;color:#000;
}
.ph-grid{gap:2px;padding:0 2px;}
.ph-grid .cell{background:#f2f3f5;}
.ph-grid .cell img{object-fit:cover;background:#f2f3f5;}
.ph-segbar{
  position:absolute;left:0;right:0;bottom:22px;
  display:flex;justify-content:center;z-index:20;pointer-events:none;
}
.ph-seg{
  display:flex;gap:2px;padding:3px;border-radius:999px;
  background:rgba(120,120,128,.15);
  backdrop-filter:blur(22px) saturate(170%);
  -webkit-backdrop-filter:blur(22px) saturate(170%);
  pointer-events:auto;
}
.ph-seg button{
  font-size:13.5px;font-weight:500;letter-spacing:-.1px;color:#000;
  padding:7px 15px;border-radius:999px;transition:background .16s;
}
.ph-seg button.on{background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.16);font-weight:600;}

/* ---------- ⑦ 单张大图页（返回 / 年月·照片 / 编辑 + 底部四键） ---------- */
.photo-viewer{background:#000;}
.pv-top{
  display:flex;align-items:center;justify-content:space-between;
  padding:calc(var(--sb-h) + 0px) 12px 10px;gap:4px;
}
.pv-back{width:36px;height:36px;display:grid;place-items:center;flex:0 0 36px;}
.pv-back svg{
  width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2.1;
  stroke-linecap:round;stroke-linejoin:round;
}
.pv-back:active{opacity:.5;}
.pv-cap{flex:1;text-align:center;min-width:0;}
.pv-title{
  font-size:15px;font-weight:600;color:#fff;letter-spacing:-.1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pv-sub{font-size:11.5px;color:rgba(255,255,255,.5);margin-top:1px;}
.pv-edit{width:44px;flex:0 0 44px;text-align:right;font-size:15px;color:#fff;}
.pv-edit:active{opacity:.5;}
.pv-stage{flex:1;min-height:0;}
.pv-slide img{border-radius:0;}
.pv-tools{
  height:78px;flex:0 0 78px;display:flex;align-items:center;
  justify-content:space-between;padding:0 26px 24px;
}
.pv-t{width:42px;height:42px;display:grid;place-items:center;}
.pv-t svg{
  width:23px;height:23px;fill:none;stroke:#fff;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;
}
.pv-t:active{opacity:.45;}

/* ---------- ⑧ Naver 底部导航（韩文原样，不可点） ---------- */
.nv-tabbar{
  position:absolute;left:0;right:0;bottom:0;height:88px;
  background:#fff;
  border-radius:20px 20px 0 0;
  box-shadow:0 -1px 0 rgba(0,0,0,.06),0 -6px 18px rgba(0,0,0,.04);
  display:flex;align-items:center;
  padding:10px 4px 22px;
  pointer-events:none;
  user-select:none;
}
.nv-tab{
  flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;
  font-size:11.5px;font-weight:500;color:#0b0b0b;letter-spacing:-.3px;
}
.nv-ico{width:27px;height:27px;display:block;}
.nv-ico svg{width:27px;height:27px;display:block;}
.nv-ico-shop svg{width:27px;height:27px;}
.nv-sep{
  flex:0 0 .5px;width:.5px;height:26px;
  background:rgba(60,60,67,.22);
  margin:0 4px 18px;
}

/* =========================================================
   第二十轮 · 气泡小尖角 / Safari 历史记录 / 大图日期 / 解锁键更淡
   ========================================================= */

/* ---------- ① KKT 气泡：Kakao 式小尖角 ----------
   每组第一条：靠内侧的上角收成 5px 小圆角（白气泡左上 / 黄气泡右上），
   其余三个角 16px；同组续接的消息四角都是 16px。 */
.chat-row .cm,
.chat-row.me .cm,
.chat-row.cont .cm,
.cm-block .cm-line .cm{
  border-radius:16px;
}
.chat-row:not(.me):not(.cont) .cm{
  border-top-left-radius:5px;
}
.chat-row.me:not(.cont) .cm{
  border-top-right-radius:5px;
}
/* 图片气泡不含尖角，圆角统一 */
.cm-wrap .cm-img{border-radius:16px;}

/* ---------- ② Safari：搜索键盘（深色玻璃 + 键盘上的搜索框） ---------- */
.skb{
  position:absolute;left:0;right:0;bottom:0;z-index:60;
  padding:8px 5px 0;
  background:rgba(30,30,33,.88);
  backdrop-filter:blur(30px) saturate(160%);
  -webkit-backdrop-filter:blur(30px) saturate(160%);
  box-shadow:0 -1px 0 rgba(255,255,255,.07),0 -14px 40px rgba(0,0,0,.35);
  transform:translateY(104%);
  transition:transform .34s var(--ease);
  user-select:none;
}
.skb.show{transform:none;}

.skb-search{display:flex;align-items:center;gap:8px;padding:2px 1px 9px 3px;}
.skb-pill{
  flex:1;height:44px;border-radius:13px;
  background:rgba(255,255,255,.14);
  box-shadow:inset 0 0 0 .5px rgba(255,255,255,.07);
  display:flex;align-items:center;gap:9px;padding:0 12px 0 14px;
}
.skb-txt{
  flex:1;min-width:0;font-size:16px;color:rgba(255,255,255,.44);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.1px;
}
.skb-txt.typed{color:#fff;}
.skb-pill .skb-mic{
  width:19px;height:19px;flex:0 0 19px;
  fill:none;stroke:rgba(255,255,255,.8);stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.skb-x{
  width:46px;height:46px;flex:0 0 46px;border-radius:50%;
  background:rgba(255,255,255,.14);
  display:grid;place-items:center;
}
.skb-x svg{width:21px;height:21px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;}
.skb-x:active{background:rgba(255,255,255,.26);}

.skb-rows{padding:0 1px;}
.skb-row{display:flex;gap:5px;justify-content:center;margin-bottom:8px;}
.skb-row-mid{padding:0 18px;}
.skb-key{
  flex:1;min-width:0;height:44px;border-radius:6px;
  background:rgba(255,255,255,.15);
  color:#fff;font-size:22px;font-weight:400;line-height:1;
  display:grid;place-items:center;
  box-shadow:0 .5px 0 rgba(0,0,0,.45);
}
.skb-key:active{background:rgba(255,255,255,.32);}
.skb-fn{flex:0 0 44px;background:rgba(255,255,255,.10);}
.skb-fn svg{
  width:24px;height:24px;fill:none;stroke:#fff;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.skb-wide{font-size:15px;letter-spacing:.2px;}
.skb-emoji{flex:0 0 42px;}
.skb-emoji svg{width:25px;height:25px;fill:none;stroke:#fff;stroke-width:1.5;}
.skb-space{
  flex:1 1 auto;position:relative;background:rgba(255,255,255,.15);
}
.skb-pin{
  position:absolute;right:10px;top:50%;transform:translateY(-50%);
  font-size:12px;color:rgba(255,255,255,.45);letter-spacing:0;
}
.skb-dot{flex:0 0 30px;font-size:21px;}
.skb-go{flex:0 0 48px;background:rgba(255,255,255,.22);}
.skb-foot{
  display:flex;align-items:center;justify-content:space-between;
  padding:3px 26px 27px;
}
.skb-foot svg{
  width:26px;height:26px;fill:none;stroke:rgba(255,255,255,.92);stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;
}

/* ---------- ③ 解锁页：朦胧玻璃、键位更浅、删除键常在、整块居中 ---------- */
.pass-layer{
  background:rgba(14,16,22,.26);
  backdrop-filter:blur(30px) saturate(175%);
  -webkit-backdrop-filter:blur(30px) saturate(175%);
  align-items:center;justify-content:center;
}
.pass-inner{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:0 0 54px;
}
.pass-title{font-size:16.5px;font-weight:500;margin:0 0 22px;letter-spacing:.5px;}
.pass-dots{gap:26px;margin-bottom:2px;height:14px;}
.pass-dots i{box-shadow:0 0 6px rgba(255,255,255,.18);}
.pass-error{margin-top:4px;}
.pass-pad{margin-top:24px;}
.key{
  background:rgba(255,255,255,.11);
  border:.5px solid rgba(255,255,255,.10);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.key:active{background:rgba(255,255,255,.24);transform:scale(.95);}
.key.blank,
.key.del{
  background:none;border-color:transparent;box-shadow:none;
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
/* 0 左边那格彻底空掉（不留圆圈） */
.pass-pad .key.blank{background:none;border:0;box-shadow:none;pointer-events:none;}
/* 删除键一直在 0 的右边（没输入时也在，只是更淡） */
.key.del{opacity:.85;pointer-events:auto;}
.key.del.show{opacity:1;}
.key.del:active{background:none;opacity:.5;}
.pass-foot{bottom:30px;}
.pass-flat{text-shadow:0 1px 4px rgba(0,0,0,.35);}

/* ---------- ④ 相册大图页顶部：完整日期 + 24 小时制时间 ---------- */
.pv-title{
  font-size:17.5px;font-weight:700;letter-spacing:-.2px;
  color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  line-height:1.2;
}
.pv-sub{
  font-size:12.5px;font-weight:500;margin-top:1px;
  color:rgba(255,255,255,.55);letter-spacing:.2px;
}

/* ---------- ⑤ Safari 历史记录：可以上下滑动 ---------- */
.saf-suggest{overflow:hidden;}
.saf-sg-list{
  flex:1;min-height:0;
  overflow-y:auto;overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  overscroll-behavior:contain;
  padding-bottom:36px;
}
.saf-sg-list::-webkit-scrollbar{width:0;height:0;}
.saf-hist-item{min-height:44px;}

/* =========================================================
   第二十二轮 · 拨出通话页收紧（头像变小、按钮变大更靠下）
   ========================================================= */
.call-body{padding:80px 20px 20px;}
.call-ava{
  width:92px;height:92px;margin-bottom:18px;
  background:rgba(255,255,255,.17);
  font-size:32px;color:rgba(255,255,255,.9);
}
.call-initial{
  font-size:33px;font-weight:400;line-height:1;color:rgba(255,255,255,.92);
  letter-spacing:.5px;
}
.call-name{font-size:26px;font-weight:400;letter-spacing:-.3px;}
.call-sub{font-size:13.5px;opacity:.6;margin-top:9px;letter-spacing:.4px;}

.call-grid{
  margin:auto 0 16px;
  gap:14px 8px;
}
.call-cell{gap:7px;font-size:12px;letter-spacing:.2px;}
.call-cell i{width:80px;height:80px;}
.call-cell svg{width:28px;height:28px;}
.call-cell.red svg{width:31px;height:31px;}

/* =========================================================
   第二十三轮 · 通知三态 / 桌面未读红圈 / 同分钟只留一个时间
                / 发送失败药丸 / 聊天照片按原比例
   ========================================================= */

/* ① 桌面图标右上角的未读红圈（kkt 图标用） */
.tile-wrap{position:relative;display:block;}
.home-badge{
  position:absolute;top:-5px;right:-5px;min-width:21px;height:21px;padding:0 6px;
  border-radius:11px;background:#ff3b30;color:#fff;font-size:12.5px;font-weight:600;
  line-height:21px;text-align:center;letter-spacing:-.2px;
  box-shadow:0 1px 4px rgba(0,0,0,.28);pointer-events:none;
}
.home-badge[hidden]{display:none;}

/* ② 锁屏通知叠成一摞：最新的在最上面，旧的那条往下折起来 */
.notif-stack{display:flex;flex-direction:column;}
.notif-stack .notif-card{transition:transform .32s var(--ease),opacity .32s,margin-top .32s;}
.notif-stack .notif-card:not(:first-child){
  animation:none;margin-top:-8px;transform:scale(.965);opacity:.6;
}

/* ③ 我发出的消息「没送到」：气泡后面挂白色小药丸（重发 / 删除） */
.cm-fail{
  align-self:flex-end;display:flex;align-items:center;gap:6px;flex:0 0 auto;
  background:#fff;border-radius:8px;padding:5px 7px;margin-bottom:2px;
  box-shadow:0 1px 2px rgba(0,0,0,.14);
}
.cm-fail svg{width:13px;height:13px;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.cm-fail .fl-again{stroke:#1a1a1a;stroke-width:2.1;}
.cm-fail .fl-x{stroke:#ef5b52;stroke-width:2.4;}

/* ④ 聊天里的照片：严格按原图比例，不裁切、不拉伸、不放大 */
.cm-img{width:auto;max-width:220px;height:auto;max-height:330px;}
.cm-img img{width:auto;height:auto;max-width:100%;max-height:330px;object-fit:contain;}
.cm-img.is-ph{width:220px;height:auto;aspect-ratio:4/3;}

/* =========================================================================
   第二十八轮：全局语言（中文 / English / 한국어）
   ========================================================================= */

/* ---------- ① 锁屏上的语言切换胶囊 ----------
   位置：灵动岛（top 11 + 高 35 → 底边 46）下方、日期（top 96）上方，水平居中。
   绝对定位 + 不占流，所以原有锁屏版式一格都不动。 */
.lock-lang{
  position:absolute;top:57px;left:50%;transform:translateX(-50%);
  display:flex;align-items:center;gap:1px;
  padding:3px;border-radius:999px;
  background:rgba(38,38,42,.45);
  border:1px solid rgba(255,255,255,.13);
  backdrop-filter:blur(14px) saturate(150%);
  -webkit-backdrop-filter:blur(14px) saturate(150%);
  box-shadow:0 4px 12px rgba(0,0,0,.18);
  z-index:7;
}
.lock-lang button{
  appearance:none;border:0;cursor:pointer;
  background:transparent;color:rgba(255,255,255,.7);
  font-family:inherit;font-size:10.5px;line-height:1;font-weight:500;
  letter-spacing:.1px;padding:5px 8px;border-radius:999px;
  transition:background .18s,color .18s,transform .14s;
}
.lock-lang button:active{transform:scale(.94);}
.lock-lang button.on{
  background:#fff;color:#111;font-weight:650;
  box-shadow:0 1px 4px rgba(0,0,0,.22);
}
/* 锁屏进入密码页时语言胶囊跟着淡出（和手电筒/相机一致） */
.lock-layer.passing .lock-lang{opacity:0;pointer-events:none;transition:opacity .25s;}

/* ---------- ② 英文 / 韩文下的小字微调 ---------- */
[data-lang="en"] .app-icon .label,
[data-lang="ko"] .app-icon .label{font-size:10.5px;letter-spacing:0;}

.app-icon .label{
  max-width:88px;overflow:hidden;text-overflow:ellipsis;
}

/* 底部标签栏：英文单词更长，略缩一号，避免挤在一起 */
[data-lang="en"] .tabbar .tab,
[data-lang="en"] .kkt-tab,
[data-lang="en"] .yt-tab{font-size:9.5px;letter-spacing:0;}

[data-lang="ko"] .tabbar .tab,
[data-lang="ko"] .kkt-tab,
[data-lang="ko"] .yt-tab{font-size:10px;letter-spacing:-.2px;}

/* 韩文 / 英文没有中文那么方正，行高稍收紧一点更接近真机 */
[data-lang="en"] .cm,
[data-lang="ko"] .cm{line-height:1.42;}

/* 通知横幅标题在英文下更长，允许缩一点 */
[data-lang="en"] .notif-title{font-size:12px;letter-spacing:0;}

/* 大标题（备忘录 / 图库 / 信息 …）韩文容易顶出去，收一点字距 */
[data-lang="ko"] .large-head h1,
[data-lang="en"] .large-head h1{letter-spacing:-.2px;}

/* =========================================================================
   第二十九轮：键盘 / 语音备忘录 / 直播对话跟着语言走
   ========================================================================= */

/* ---------- ① 键盘底部的语言提示：当前语言点亮 ---------- */
.kb-bar{display:flex;align-items:center;justify-content:center;gap:5px;}
.kb-bar .kb-lang{color:#9aa1ab;font-weight:400;}
.kb-bar .kb-lang.on{color:#3a3f47;font-weight:650;}
.kb-bar .kb-dot{font-style:normal;color:#b6bcc4;}

/* ---------- ② 韩文键盘：两벌式字母比拉丁字母宽，字号收一点 ---------- */
.ios-kb.ko .kb-key{font-size:15px;letter-spacing:-.2px;}
.ios-kb.ko .kb-key.wide{font-size:11.5px;}
.ios-kb.ko .kb-key.space{font-size:11.5px;letter-spacing:0;}

/* =========================================================================
   调试：?audio=1 时右下角的音频通道状态条（正常访问不会出现）
   ========================================================================= */
#audioDbg{
  position:fixed;left:10px;bottom:10px;z-index:99999;
  max-width:min(92vw,420px);padding:6px 9px;border-radius:8px;
  background:rgba(0,0,0,.78);color:#7dfba0;
  font:11.5px/1.45 -apple-system,"SF Mono",Menlo,monospace;
  white-space:normal;word-break:break-all;pointer-events:none;
}
