/* 手机近景：SVG 机身 + DOM 可读屏幕。机身按设计尺寸绘制，再整体缩放以适应视口。 */
.phone-stage {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr minmax(200px, 260px);
  gap: 1rem;
  padding: 4.6rem 1.2rem 5rem;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(95, 115, 91, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(10, 13, 15, 0.86), rgba(10, 13, 15, 0.94));
  animation: fade-in 0.2s ease;
}
/* 拿着手机、坐在拆机台前：场景栏照样在（点了先收起手上的活），窄屏物件清单收起 */
.app.has-phone .hotspot-list { display: none; }
html.reduce-motion .phone-stage { animation: none; }

.phone-side { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; overflow-y: auto; padding-bottom: 4rem; }
.phone-card {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(21, 25, 27, 0.9);
  font-size: 0.88rem;
}
.phone-card h2 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.phone-card .sub { color: var(--ink-3); font-size: 0.8rem; }
.phone-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.7rem; margin: 0.5rem 0 0; }
.phone-card dt { color: var(--ink-3); }
.phone-card dd { margin: 0; }
.phone-tools { display: grid; gap: 0.4rem; }
.phone-tools .btn { justify-content: flex-start; width: 100%; }
.phone-tools .btn[aria-pressed="true"] { border-color: var(--lamp); }
.phone-hint { font-size: 0.78rem; color: var(--ink-3); line-height: 1.7; }
.phone-hint .kbd { margin: 0 0.1em; }

.phone-center { position: relative; display: grid; place-items: center; min-width: 0; overflow: hidden; }
.phone-scaler { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; transition: transform 0.35s var(--ease); }
html.reduce-motion .phone-scaler { transition: none; }

/* 辅助按键 */
.assist {
  display: grid;
  grid-template-columns: repeat(3, 3rem);
  grid-template-rows: repeat(4, 2.6rem);
  gap: 0.3rem;
  justify-content: center;
  padding: 0.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(21, 25, 27, 0.9);
}
.assist[hidden] { display: none; }
.assist button {
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #20282c;
  color: var(--ink);
  font-size: 0.85rem;
}
.assist button:active { background: #2e3a40; }
.assist .a-call { color: #9fe0a8; }
.assist .a-end { color: #f0a090; }

/* ---------- 机身 ---------- */
.phone { position: relative; }
/* 机身阴影：静态的一层，不用 filter（filter 会让屏幕每次刷新都把整台机身重算一遍阴影） */
.phone::before { content: ""; position: absolute; left: 6%; right: 6%; top: 4%; bottom: 2%; border-radius: 40px; box-shadow: 0 26px 46px 6px rgba(0, 0, 0, 0.55); pointer-events: none; }
.phone__part { position: relative; }
.phone__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.phone__screen, .phone__outer {
  position: absolute;
  overflow: hidden;
  border-radius: 3px;
}
.phone .pk { cursor: pointer; }
.phone .pk:hover > :first-child { filter: brightness(1.15); }
.phone .pk.is-down { transform-box: fill-box; transform-origin: center; transform: scale(0.94); }
.phone .pk.is-down > :first-child { filter: brightness(0.8); }
.phone .pk:focus { outline: none; }
.phone .pk.is-dead { cursor: default; }

/* 翻盖 */
.phone.form-flip .phone__base { margin-top: -6px; transform-origin: 50% 0; transition: transform 0.35s var(--ease), opacity 0.25s; }
.phone.form-flip.is-closed .phone__base { display: none; }
.phone.form-flip .phone__lid-outer { display: none; }
.phone.form-flip.is-closed .phone__lid-inner { display: none; }
.phone.form-flip.is-closed .phone__lid-outer { display: block; }
.phone.form-flip.is-opening .phone__lid { animation: flip-open 0.35s var(--ease); }
@keyframes flip-open { from { transform: perspective(800px) rotateX(-70deg); transform-origin: 50% 100%; } }
html.reduce-motion .phone.form-flip.is-opening .phone__lid { animation: none; }

/* 滑盖 */
.phone.form-slider .phone__slide-wrap { position: relative; transition: height 0.35s var(--ease); }
.phone.form-slider .phone__keys-part { position: absolute; left: 0; top: 0; transition: transform 0.35s var(--ease); z-index: 0; }
.phone.form-slider .phone__top { position: relative; z-index: 1; }
html.reduce-motion .phone.form-slider .phone__keys-part, html.reduce-motion .phone.form-slider .phone__slide-wrap { transition: none; }

/* 背面 */
.phone__back { display: none; }
.phone.is-back > .phone__front { display: none; }
.phone.is-back > .phone__back { display: block; }

/* ---------- 屏幕通用 ---------- */
/* 设置里的字号也作用于手机屏幕（最多放大到 1.25 倍，再大小屏机就装不下一行字了） */
:root { --ph-fs: min(var(--font-scale), 1.25); }
.ph-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  font-size: calc(16px * var(--ph-fs));
  line-height: 1.38;
  user-select: none;
  --menu-ms: 90ms;
}
.ph-status { display: flex; align-items: center; gap: 6px; padding: 2px 6px; font-size: calc(12px * var(--ph-fs)); line-height: 16px; flex: none; }
.ph-status .op { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ph-signal { display: inline-flex; align-items: flex-end; gap: 1px; height: 11px; }
.ph-signal i { width: 3px; background: currentColor; display: block; }
.ph-signal i:nth-child(1) { height: 4px; } .ph-signal i:nth-child(2) { height: 6px; } .ph-signal i:nth-child(3) { height: 8px; } .ph-signal i:nth-child(4) { height: 11px; }
.ph-batt { width: 18px; height: 9px; border: 1px solid currentColor; position: relative; padding: 1px; display: inline-block; }
.ph-batt::after { content: ""; position: absolute; right: -3px; top: 2px; width: 2px; height: 3px; background: currentColor; }
.ph-batt b { display: block; height: 100%; width: 70%; background: currentColor; }
.ph-title { flex: none; padding: 2px 8px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-body { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.ph-scroll { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain; }
.ph-soft { flex: none; display: flex; justify-content: space-between; padding: 2px 8px; font-size: calc(14px * var(--ph-fs)); font-weight: 600; }
.ph-soft span:empty { visibility: hidden; }
.ph-body.is-entering { animation: ph-enter var(--menu-ms) steps(3) both; }
@keyframes ph-enter { from { opacity: 0.2; transform: translateX(8%); } }
html.reduce-motion .ph-body.is-entering { animation: none; }

.ph-list { list-style: none; margin: 0; padding: 0; }
.ph-list li { display: flex; align-items: center; gap: 6px; padding: 3px 8px; min-height: 26px; }
.ph-list .lbl { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ph-list .sub { font-size: calc(12px * var(--ph-fs)); opacity: 0.75; white-space: nowrap; }
.ph-list .badge { font-size: calc(11px * var(--ph-fs)); padding: 0 5px; border-radius: 8px; }
.ph-list .ico { width: 18px; height: 18px; flex: none; }
.ph-list .two { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ph-list .two .lbl { flex: none; }
.ph-list .two .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-empty { padding: 12px 8px; opacity: 0.7; }

.ph-text { padding: 6px 8px 14px; white-space: pre-wrap; word-break: break-all; }
.ph-meta { font-size: calc(12px * var(--ph-fs)); opacity: 0.75; }
.ph-msg { padding: 5px 8px; border-bottom: 1px dotted currentColor; }
.ph-msg .who { font-size: calc(12px * var(--ph-fs)); opacity: 0.8; display: flex; justify-content: space-between; gap: 6px; }
.ph-msg .tx { white-space: pre-wrap; word-break: break-all; }
.ph-msg.is-draft .who::after { content: "未发送"; font-size: calc(11px * var(--ph-fs)); }
.ph-msg img { display: block; max-width: 100%; margin-top: 4px; border-radius: 2px; }
.ph-new { font-size: calc(10px * var(--ph-fs)); padding: 0 4px; margin-left: 4px; }
.ph-image { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; }
.ph-image img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.ph-image .cap { font-size: calc(12px * var(--ph-fs)); padding: 2px 6px; color: #ddd; background: rgba(0, 0, 0, 0.6); }
.ph-big { font-size: calc(26px * var(--ph-fs)); text-align: center; letter-spacing: 2px; padding: 10px 4px; word-break: break-all; font-family: var(--font-mono); }
.ph-center { text-align: center; padding: 8px; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; }
.ph-grid .cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border-radius: 6px; font-size: calc(13px * var(--ph-fs)); }
.ph-grid .tile { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; }
.ph-grid .tile svg { width: 28px; height: 28px; }
.ph-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 4px; }
.ph-thumbs .cell { aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid transparent; border-radius: 2px; position: relative; }
.ph-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-thumbs .fn { position: absolute; left: 0; right: 0; bottom: 0; font-size: calc(9px * var(--ph-fs)); color: #fff; background: rgba(0, 0, 0, 0.55); padding: 0 2px; }
.ph-month { padding: 4px 6px; font-size: calc(13px * var(--ph-fs)); }
.ph-month table { width: 100%; border-collapse: collapse; text-align: center; }
.ph-month td, .ph-month th { padding: 1px 0; height: 20px; }
.ph-month td.has-ev { font-weight: 700; text-decoration: underline; }
.ph-month td.out { opacity: 0.3; }
.ph-month td.is-wkend { color: #b03a2e; }
.ph-month td.is-hol { position: relative; color: #b03a2e; }
.ph-month td.is-hol::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #c8402e; }
.ph-hol { color: #b03a2e; font-weight: 700; }
.ph-almanac { white-space: pre-wrap; font-size: calc(15px * var(--ph-fs)); line-height: 1.6; }
.ph-month .evs { margin-top: 4px; font-size: calc(13px * var(--ph-fs)); }
.ph-table { border-collapse: collapse; font-size: calc(13px * var(--ph-fs)); margin: 6px 8px; }
.ph-table td { border: 1px solid currentColor; padding: 2px 5px; white-space: nowrap; }
.ph-canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.ph-toastline { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 4px 6px; font-size: calc(13px * var(--ph-fs)); border-radius: 3px; z-index: 3; }
.ph-tabs { display: flex; flex: none; overflow: hidden; font-size: calc(12px * var(--ph-fs)); }
.ph-tabs span { padding: 2px 6px; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, 0.15); }
.ph-tabs u { text-decoration: underline; }

/* ---------- 岩芯OS：黑白单色液晶 ---------- */
.os-yanxin {
  background: #9ba98a;
  color: #1c2418;
  font-family: "SimSun", "Songti SC", "STSong", var(--font-mono), serif;
  text-shadow: 0.5px 0.5px 0 rgba(28, 36, 24, 0.18);
}
.os-yanxin::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 3px);
}
.os-yanxin .ph-title { text-align: center; border-bottom: 2px solid #1c2418; }
.os-yanxin .ph-list li.is-sel { background: #1c2418; color: #9ba98a; text-shadow: none; }
.os-yanxin .ph-soft { border-top: 1px solid #1c2418; }
.os-yanxin .ph-list .badge { border: 1px solid currentColor; }
.os-yanxin .ph-msg.is-sel { outline: 2px solid #1c2418; outline-offset: -2px; }
.os-yanxin .ph-toastline { background: #1c2418; color: #9ba98a; }
.os-yanxin .ph-new { border: 1px solid currentColor; }

/* ---------- 晶窗OS：彩色渐变 ---------- */
.os-jingchuang { background: #0f1a2c; color: #eef3ff; }
.os-jingchuang .ph-status { background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2)); }
.os-jingchuang .ph-title { background: linear-gradient(180deg, var(--os-a), var(--os-b)); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); }
.os-jingchuang .ph-body { background: linear-gradient(180deg, #f5f8ff, #dfe7f6); color: #1b2740; }
.os-jingchuang .ph-body.is-wall { background: var(--wall); color: #fff; }
.os-jingchuang .ph-list li { border-bottom: 1px solid rgba(27, 39, 64, 0.08); }
.os-jingchuang .ph-list li.is-sel { background: linear-gradient(180deg, var(--os-a), var(--os-b)); color: #fff; }
.os-jingchuang .ph-list .badge { background: #e2445a; color: #fff; }
.os-jingchuang .ph-soft { background: linear-gradient(180deg, #2a3550, #121a2b); color: #fff; }
.os-jingchuang .ph-grid .cell.is-sel { background: rgba(255, 255, 255, 0.28); outline: 2px solid #fff; }
.os-jingchuang .ph-grid .tile { background: linear-gradient(160deg, var(--os-a), var(--os-b)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45); color: #fff; }
.os-jingchuang .ph-grid .cell { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }
.os-jingchuang .ph-msg { border-bottom: 0; margin: 4px 6px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.os-jingchuang .ph-msg.out { background: #d9ecff; margin-left: 22px; }
.os-jingchuang .ph-msg.in { margin-right: 22px; }
.os-jingchuang .ph-msg.is-draft { background: #fff5d6; }
.os-jingchuang .ph-msg.is-sel { outline: 2px solid var(--os-a); }
.os-jingchuang .ph-thumbs .cell.is-sel { border-color: var(--os-a); }
.os-jingchuang .ph-toastline { background: rgba(10, 20, 40, 0.88); color: #fff; }
.os-jingchuang .ph-new { background: #e2445a; color: #fff; border-radius: 6px; }
.os-jingchuang .ph-month td.is-sel { background: var(--os-a); color: #fff; border-radius: 4px; }
.theme-blue { --os-a: #4f86d8; --os-b: #23519c; }
.theme-berry { --os-a: #e2667a; --os-b: #9a2a3e; }
.theme-gold { --os-a: #c9a24a; --os-b: #6e5216; }
.theme-silver { --os-a: #6aa2b8; --os-b: #2f5f72; }
.theme-night { --os-a: #4f8de0; --os-b: #1b3666; }
.theme-patched { --os-a: #6f9fb4; --os-b: #3a5f70; }

/* ---------- 链讯Desk：商务目录树 ---------- */
.os-lianxun { background: #e9ece8; color: #1f2622; font-size: calc(15px * var(--ph-fs)); }
.os-lianxun .ph-status { background: #2b3238; color: #d9e0e6; }
.os-lianxun .ph-tabs { background: #3b444b; color: #cfd6dc; }
.os-lianxun .ph-tabs span.is-on { background: #e9ece8; color: #1f2622; font-weight: 700; }
.os-lianxun .ph-title { background: #d4d9d4; border-bottom: 1px solid #9aa39d; font-weight: 600; font-size: calc(14px * var(--ph-fs)); }
.os-lianxun .ph-list li { border-bottom: 1px solid #d0d5d0; min-height: 24px; }
.os-lianxun .ph-list li.is-sel { background: #2f5d86; color: #fff; }
.os-lianxun .ph-list .badge { background: #b5584a; color: #fff; }
.os-lianxun .ph-soft { background: #2b3238; color: #d9e0e6; font-size: calc(12px * var(--ph-fs)); }
.os-lianxun .ph-msg.is-sel { background: #dbe6f0; }
.os-lianxun .ph-toastline { background: #2b3238; color: #fff; }
.os-lianxun .ph-month td.is-sel { background: #2f5d86; color: #fff; }
.os-lianxun.theme-desk-stamp .ph-tabs { background: #4b3c36; }
.os-lianxun.theme-desk-stamp .ph-body { background: radial-gradient(circle at 78% 72%, rgba(181, 88, 74, 0.16) 0 18%, transparent 19%), radial-gradient(circle at 78% 72%, transparent 0 14%, rgba(181, 88, 74, 0.2) 15% 16%, transparent 17%), #ede8dc; }

/* ---------- 汀舟Palm：手写笔窗口 ---------- */
.os-tingzhou { background: #c9cdb8; color: #1d2219; font-size: calc(15px * var(--ph-fs)); cursor: crosshair; }
.os-tingzhou .ph-status { background: #1d2219; color: #c9cdb8; }
.os-tingzhou .ph-menu { position: absolute; top: 18px; left: 4px; z-index: 4; min-width: 60%; background: #f1f2e8; border: 1px solid #1d2219; box-shadow: 2px 2px 0 #1d2219; }
.os-tingzhou .ph-menu button { display: block; width: 100%; text-align: left; padding: 6px 8px; border: 0; border-bottom: 1px solid #c9cdb8; background: transparent; font-size: calc(14px * var(--ph-fs)); cursor: crosshair; }
.os-tingzhou .ph-menubtn { border: 1px solid currentColor; background: transparent; color: inherit; font-size: calc(11px * var(--ph-fs)); padding: 0 5px; cursor: crosshair; }
.os-tingzhou .ph-title { display: flex; align-items: center; gap: 6px; background: #3f5a68; color: #f1f2e8; padding: 3px 6px; }
.os-tingzhou .ph-title .t { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.os-tingzhou .ph-title button { border: 1px solid #f1f2e8; background: transparent; color: #f1f2e8; width: 22px; height: 20px; line-height: 16px; padding: 0; cursor: crosshair; }
.os-tingzhou .ph-body { background: #f1f2e8; margin: 0 3px 3px; border: 1px solid #1d2219; }
.os-tingzhou .ph-list li { min-height: 34px; border-bottom: 1px solid #d6d9c8; cursor: crosshair; }
.os-tingzhou .ph-list li.is-sel { background: #3f5a68; color: #f1f2e8; }
.os-tingzhou .ph-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 6px; }
.os-tingzhou .ph-grid .cell { color: #1d2219; cursor: crosshair; }
.os-tingzhou .ph-grid .tile { background: #f1f2e8; border: 2px solid #1d2219; border-radius: 6px; color: #1d2219; }
.os-tingzhou .ph-grid .cell.is-sel .tile { background: #3f5a68; color: #f1f2e8; }
.os-tingzhou .ph-msg.is-sel { background: #dfe3d0; }
.os-tingzhou .ph-thumbs .cell.is-sel { border-color: #3f5a68; }
.os-tingzhou .ph-toastline { background: #1d2219; color: #f1f2e8; }
.os-tingzhou .ph-month td { cursor: crosshair; }
.os-tingzhou .ph-month td.is-sel { background: #3f5a68; color: #f1f2e8; }
.os-tingzhou .ph-btnrow { display: flex; gap: 6px; padding: 6px; }
.os-tingzhou .ph-btnrow button { border: 1px solid #1d2219; background: #f1f2e8; padding: 4px 10px; font-size: calc(13px * var(--ph-fs)); cursor: crosshair; border-radius: 3px; }
.theme-palm-champagne.os-tingzhou .ph-title { background: #6f5a32; }
.theme-palm-champagne.os-tingzhou { background: #d8cba8; }
.theme-palm-night.os-tingzhou { background: #1c2126; color: #b9c8d4; }
.theme-palm-night.os-tingzhou .ph-body { background: #262c32; color: #d0dbe4; border-color: #0b0d0f; }
.theme-palm-night.os-tingzhou .ph-title { background: #2f4f68; }
.theme-palm-night.os-tingzhou .ph-list li { border-bottom-color: #343b42; }
.theme-palm-night.os-tingzhou .ph-grid .cell { color: #d0dbe4; }
.theme-palm-night.os-tingzhou .ph-grid .tile { background: #262c32; border-color: #9fb4c4; color: #d0dbe4; }

/* 触摸点反馈（显示实际被识别的位置，触摸偏移时能看出来） */
.ph-tap { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #e2445a; pointer-events: none; z-index: 5; animation: ripple 0.5s ease-out forwards; }

/* ---------- 故障显示 ---------- */
.ph-off { position: absolute; inset: 0; background: #050607; z-index: 6; }
.ph-off::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 40%); }
.phone.fx-dim .ph-screen { filter: brightness(0.16) contrast(1.3); }
.ph-crack { position: absolute; inset: 0; pointer-events: none; z-index: 5; }

/* ---------- 外屏 ---------- */
.ph-outer { position: absolute; inset: 0; background: #0b1420; color: #9fd0ff; font-family: var(--font-mono); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: calc(12px * var(--ph-fs)); line-height: 1.3; }
.ph-outer .t { font-size: calc(20px * var(--ph-fs)); }

/* 放大屏幕 */
.phone-stage.is-zoom .phone-side { opacity: 0.35; }

/* 台面上的机器 */
.bench-device {
  position: absolute;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: transparent;
}
.bench-device svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); }
.bench-device:hover, .bench-device:focus-visible { border-color: rgba(232, 194, 122, 0.85); border-style: dashed; outline: none; }
.bench-device .hotspot__label { opacity: 0; }
.bench-device:hover .hotspot__label, .bench-device:focus-visible .hotspot__label { opacity: 1; }

@media (max-width: 1100px) {
  .phone-stage { grid-template-columns: 1fr; grid-template-rows: minmax(64vh, 1fr) auto auto; padding: 6.6rem 0.5rem 0.5rem; gap: 0.4rem; overflow-y: auto; }
  .phone-center { order: -1; min-height: 64vh; }
  .phone-side { overflow: visible; padding-bottom: 0; }
  .phone-side--left .phone-card { display: none; }
  .phone-side--left .phone-card.is-compact { display: block; }
  .phone-tools { grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
  .phone-side--right { padding-bottom: 4rem; }
}

/* 拿着手机时，提示改到底部中央，不挡工具栏 */
.app.has-phone .toasts { top: auto; bottom: 1rem; left: 1.2rem; right: auto; width: min(16rem, calc(100vw - 2rem)); }

/* 阶段3：故障屏幕与信号 */
.ph-fault { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #06080a; color: #cfd8dc; font-size: calc(12px * var(--ph-fs)); text-align: center; }
.ph-fault__mark { font-weight: 700; letter-spacing: 0.18em; font-size: calc(15px * var(--ph-fs)); color: #e8eef0; }
.ph-fault__sub { font-size: calc(10px * var(--ph-fs)); color: #8a979c; animation: ph-blink 1.6s steps(2) infinite; }
.ph-fault--upgrade { background: #0d1a2e; color: #e6ecf5; }
.ph-fault__code { font-family: var(--font-mono); font-size: calc(10px * var(--ph-fs)); color: #f0b28a; }
.ph-fault--flicker { background: repeating-linear-gradient(0deg, #1b2a30 0 2px, #0a0f12 2px 5px); animation: ph-flicker 0.23s steps(3) infinite; }
@keyframes ph-flicker { 0% { opacity: 0.9; } 33% { opacity: 0.15; } 66% { opacity: 0.6; filter: hue-rotate(40deg); } 100% { opacity: 0.05; } }
@keyframes ph-blink { 50% { opacity: 0.3; } }
.ph-outer--garbled { font-family: var(--font-mono); letter-spacing: 1px; color: #9fc5a0; }
.ph-signal.is-none i { opacity: 0.18; }
@media (prefers-reduced-motion: reduce) { .ph-fault--flicker, .ph-fault__sub { animation: none; } }
.ph-rec { margin-left: 4px; padding: 0 3px; font-size: calc(9px * var(--ph-fs)); border-radius: 2px; background: #6b5a24; color: #f6ecc4; }

/* 阶段8：汇通商务（N17 手机里的商务银行客户端，2000 年代风格：深蓝横幅、细线表格） */
.bank { font-size: calc(12px * var(--ph-fs)); color: #1d2433; background: #eef1f4; min-height: 100%; }
.bank__bar { display: flex; justify-content: space-between; padding: 4px 6px; background: linear-gradient(#26407a, #172a55); color: #f2f4f8; }
.bank__acct { padding: 3px 6px; border-bottom: 1px solid #b8c0cc; font-family: var(--font-mono); }
.bank__balance { display: flex; justify-content: space-between; align-items: baseline; padding: 6px; }
.bank__balance b { font-size: calc(18px * var(--ph-fs)); color: #0f2a5c; }
.bank__closed { padding: 8px 6px; color: #7a2a22; }
.bank__notice { margin: 0 6px 4px; padding: 3px 5px; background: #fff7d6; border: 1px solid #d9c37a; font-size: calc(11px * var(--ph-fs)); }
.bank__hist { margin: 4px 6px; border-top: 1px solid #b8c0cc; }
.bank__row { display: flex; justify-content: space-between; gap: 6px; padding: 2px 0; border-bottom: 1px dotted #c8ced8; }
.bank__row--out { color: #7a2a22; }
.bank__form { margin: 6px; padding: 5px; border: 1px solid #8a96aa; background: #f8f9fb; }
.bank__amount { width: 100%; box-sizing: border-box; font: inherit; padding: 3px; margin: 3px 0; border: 1px solid #6a768a; background: #fff; color: #1d2433; }
.bank__payee { display: block; padding: 2px 0; }
