/* ===================== 基础 ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: radial-gradient(1200px 800px at 50% -10%, #23262d 0%, #14161a 55%, #0e1013 100%);
  color: #eef1f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
button:focus-visible { outline: 2px solid #07c160; outline-offset: 2px; }

/* ===================== 顶栏 ===================== */
.topbar {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 10px;
}
.brand { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.brand span { color: #07c160; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.seg {
  display: inline-flex;
  background: #1c1f25;
  border: 1px solid #2a2e37;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #9aa1ad;
  min-height: 34px;
  transition: all .18s ease;
}
.seg button.active { background: #07c160; color: #0b0f0a; font-weight: 600; }
.icon-btn {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #9aa1ad;
  border: 1px solid #2a2e37;
  min-height: 34px;
  transition: all .18s ease;
}
.icon-btn:hover { color: #eef1f5; border-color: #3a3f4a; }
.icon-btn.danger:hover { color: #ff8f8f; border-color: #6e2b2b; }

/* ===================== 舞台与设备 ===================== */
.stage {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 16px 28px;
}
.device {
  position: relative;
  background: linear-gradient(145deg, #2a2d33, #17191d 60%, #202329);
  border-radius: 56px;
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(0,0,0,.55),
    0 8px 24px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.6);
  transition: all .45s cubic-bezier(.4,.1,.2,1);
  transform-origin: top left;
}
.device-wrap { position: relative; flex: 0 0 auto; }
.device.phone { width: 402px; height: 874px; border-radius: 56px; }
.device.tablet { width: 960px; height: 660px; border-radius: 40px; }

/* 设备侧边按键 */
.side-btn {
  position: absolute;
  background: linear-gradient(180deg, #3a3d43, #26282d);
  border-radius: 2px;
  z-index: 5;
}
.side-btn.mute { left: -3px; top: 132px; width: 3px; height: 26px; }
.side-btn.vol { left: -3px; top: 186px; width: 3px; height: 54px; }
.side-btn.power { right: -3px; top: 216px; width: 3px; height: 76px; }
.device.tablet .side-btn.mute { display: none; }
.device.tablet .side-btn.vol { display: none; }
.device.tablet .side-btn.power { left: auto; right: -3px; top: 120px; width: 3px; height: 64px; }

/* 视图转场 */
.view-in { animation: viewIn .22s ease; }
@keyframes viewIn { from { opacity: .35; transform: translateY(12px); } }

/* 主屏壁纸与 Dock */
.home-wall { background: linear-gradient(180deg, #f7f8f9, #e9ebee); }
.dock {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 14px 12px 12px;
  background: rgba(255,255,255,.6);
  border-radius: 26px;
  backdrop-filter: blur(22px);
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.05), 0 2px 10px rgba(0,0,0,.05);
}
.dock .app { min-height: 76px; }
.dock .app .app-ic { width: 54px; height: 54px; border-radius: 14px; }

/* 应用图标按压反馈 */
.app-ic { transition: transform .12s ease, filter .12s ease; }
.app:active .app-ic { transform: scale(.88); filter: brightness(.92); }
.app-name { transition: opacity .12s ease; }
.app:active .app-name { opacity: .6; }

/* 微信未读角标 */
.ava-wrap { position: relative; flex: 0 0 auto; }
.u-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #fa5151;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1.5px #fff;
}

/* 微信导航栏加号 */
.nav-plus {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #14161a; font-size: 22px; font-weight: 300;
}
.nav-plus:hover { background: rgba(0,0,0,.05); }

/* 图片消息占位 */
.bubble.img { padding: 4px; }
.img-ph {
  width: 132px; height: 96px; border-radius: 11px;
  background: linear-gradient(135deg, #d9dade, #ccd0d6);
  position: relative;
}
.img-ph::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.2s infinite;
}

/* 登录页协议占位 */
.agree-row {
  display: flex; align-items: center; justify-content: center;
  gap: 7px; margin-top: 16px;
}

/* 记事本浮动新建 */
.notes-page { position: relative; }
.fab {
  position: absolute; right: 16px; bottom: 26px;
  width: 54px; height: 54px; border-radius: 50%;
  background: #f5b301; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(245,179,1,.45);
  transition: transform .15s ease;
}
.fab:active { transform: scale(.9); }

/* 电话拨打键 */
.call-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: #34c759; color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 6px 14px rgba(52,199,89,.4);
  transition: transform .15s ease;
}
.call-btn:active { transform: scale(.9); }

/* 证据项 hover */
.ev-item { transition: border-color .15s ease, transform .15s ease; }
.ev-item:hover { border-color: #3a4150; transform: translateY(-1px); }

/* 启动闪屏 */
.splash {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashOut .22s ease .34s forwards;
}
.splash svg { width: 64px; height: 64px; }
@keyframes splashOut { to { opacity: 0; } }

/* Home 返回动画 */
.exit-home { transform: scale(.86); opacity: 0; transition: transform .18s ease, opacity .18s ease; }

/* 会话页顶部联系人 */
.chat-peer { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: 62%; }
.peer-ava { width: 30px; height: 30px; border-radius: 5px; flex: 0 0 auto; }
.peer-name { font-size: 16px; font-weight: 600; color: #14161a; }

/* 语音消息 */
.bubble.voice { display: flex; align-items: center; gap: 4px; padding: 13px 14px; }
.v-bar { height: 10px; border-radius: 5px; background: #d8dbe0; }
.bubble-row.mine .v-bar { background: #7fd65c; }

/* 小红书卡片互动 */
.wmeta { display: flex; align-items: center; gap: 5px; padding: 2px 10px 12px; }
.m-ic { width: 12px; height: 12px; border-radius: 50%; background: #d9dade; }
.wmeta .ph { width: 14px; height: 9px; }

/* 淘宝价格 */
.gprice { margin: 9px 10px 0; height: 14px; border-radius: 5px; }

/* 电话回拨 */
.rec-call { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #34c759; flex: 0 0 auto; }
.rec-call svg { width: 18px; height: 18px; }

/* 主屏分页圆点 */
.page-dots { display: flex; justify-content: center; gap: 6px; padding: 6px 0 12px; }
.page-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.16); }
.page-dots .dot.on { background: rgba(0,0,0,.5); }

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: #f5f6f7;
  display: flex;
  flex-direction: column;
}

/* 摄像头 / 灵动岛 */
.island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  border-radius: 20px;
  background: #05070a;
  z-index: 40;
  transition: all .45s ease;
}
.device.tablet .island {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  top: 16px;
  left: 46px;
  transform: none;
}

/* 状态栏 */
.statusbar {
  height: 54px;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 26px 6px;
  color: #14161a;
  font-size: 14px;
  font-weight: 600;
  z-index: 30;
  background: transparent;
}
.statusbar .sb-icons { display: flex; gap: 5px; align-items: center; }
.device.tablet .statusbar { height: 48px; }
/* 深色头部页：状态栏融入页面深色渐变（渐变顶部） */
.statusbar.sb-dark {
  background: linear-gradient(180deg, #323e58 0%, #323e58 65%, #343e5a 100%);
  color: #fff;
}

/* 视图滚动区 */
.view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  position: relative;
}
.view::-webkit-scrollbar { display: none; }

/* Home 条（点击返回主屏） */
.homebar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: #1a1c20;
  z-index: 40;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .15s ease;
}
.homebar:hover { background: #34373e; }
.homebar:active { background: #464a53; transform: translateX(-50%) scale(.96); }
.homebar::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%, 50%);
  width: 240px;
  height: 46px;
  border-radius: 24px;
}
.device.tablet .homebar { width: 150px; }
.device.tablet .homebar::before { width: 300px; }

/* ===================== 通用组件 ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 14px;
  background: rgba(245,246,247,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.navbar .back {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07c160;
  border-radius: 12px;
}
.navbar .back:hover { background: rgba(7,193,96,.1); }
.navbar .nav-title { font-size: 17px; font-weight: 600; color: #14161a; flex: 1; text-align: center; margin-right: 44px; }
.navbar .nav-title .sub { font-size: 12px; font-weight: 400; color: #9aa0a8; display: block; margin-top: 1px; }
.navbar .nav-slot { width: 44px; display: flex; justify-content: flex-end; }
.navbar.plain { justify-content: center; }
.navbar.plain .nav-title { margin-right: 0; }

/* 底部标签栏 */
.tabbar {
  position: sticky;
  bottom: 0;
  display: flex;
  background: rgba(250,250,250,.98);
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 3px 6px calc(18px);
  z-index: 25;
}
.tabbar .tab {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 46px;
  font-size: 10px;
  color: #9aa0a8;
  padding-top: 3px;
}
.tabbar .tab.on { color: #07c160; }
.tabbar .tab svg { width: 24px; height: 24px; }

/* 应用页容器（底部栏贴底） */
.app-page { display: flex; flex-direction: column; min-height: 100%; background: #f5f6f7; }
.app-page .tabbar { margin-top: auto; }
.app-page .chat-input { margin-top: auto; }
.app-page .bubbles { flex: 1; }

/* Keep XHS tab pages inside the simulated screen. Only their content scrolls;
   the tab bar is a fixed-height flex child instead of iOS sticky content. */
.xhs-tab-page { height: 100%; min-height: 0; overflow: hidden; }
.xhs-tab-page > .xhs-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.xhs-tab-page > .tabbar { position: relative; bottom: auto; flex: 0 0 auto; margin-top: 0; }

/* 平板微信分栏 */
.tablet-split { display: flex; height: 100%; background: #f5f6f7; }
.left-pane {
  width: 28%; min-width: 270px;
  border-right: 1px solid #e3e4e6;
  background: #fff;
  display: flex; flex-direction: column;
}
.left-head {
  height: 56px; flex: 0 0 auto;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 0 10px;
}
.lh-title { font-size: 17px; font-weight: 600; color: #14161a; }
.lh-count { font-size: 13px; font-weight: 500; color: #9aa0a8; }
.left-head .nav-plus { position: absolute; right: 6px; }
.left-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.left-scroll::-webkit-scrollbar { display: none; }
.wx-contact-row { width: 100%; text-align: left; color: #191919; background: #fff; border-radius: 0; }
.wx-contact-row .ava svg { width: 26px; height: 26px; }
.wx-profile-entry { display: block; padding: 0; text-align: left; color: inherit; background: transparent; border-radius: 0; }
.left-pane .li-row.on { background: #eceff3; }
.left-pane .tabbar { flex: 0 0 auto; }
.right-pane { flex: 1; min-width: 0; background: #ededed; overflow: hidden; display: flex; flex-direction: column; }
.right-pane .app-page { height: 100%; }
.right-pane .bubbles { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; min-height: 0; }
.right-pane .bubbles::-webkit-scrollbar { display: none; }
.right-head {
  height: 52px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 0 14px;
  background: rgba(237,237,237,.92);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.right-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }

.tab-badge {
  position: absolute;
  top: 1px;
  right: calc(50% - 24px);
  min-width: 15px; height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: #fa5151; color: #fff;
  font-size: 9px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* 微信搜索框 */
.wx-search { padding: 8px 12px 2px; background: #ededed; }
.wx-search .search-box {
  height: 36px; border-radius: 8px; background: #fff;
  display: flex; align-items: center; gap: 6px; padding: 0 10px;
}
.wx-chat-search { padding: 8px 10px 10px; flex: none; }
.wx-chat-search .search-box { position: relative; }
.wx-chat-search input { width: 100%; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: #191919; font: inherit; font-size: 16px; }
.wx-chat-search input::placeholder { color: #999; }
.wx-chat-search:focus-within .search-box { outline: 1px solid #aaa; }
.left-pane .li-row[hidden], .wx-main-scroll .li-row[hidden] { display: none; }
.device.tablet .wx-chat-search .search-box { height: 38px; border-radius: 5px; }

/* 会话行首行（昵称 + 时间） */
.li-row .line-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* 会话时间分隔 */
.date-chip { display: flex; justify-content: center; padding: 4px 0 2px; }
.date-chip .ph { width: 64px; height: 17px; border-radius: 9px; background: #d9dade; }
.date-chip span { font-size: 11px; color: #b9bec6; background: #f0f1f2; border-radius: 8px; padding: 3px 10px; }
.b-name { display: block; font-size: 12px; color: #8a909a; margin-bottom: 4px; }
.sys-tip { text-align: center; font-size: 12px; color: #b9bec6; padding: 8px 0; }
.sys-call { display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 12px; color: #8a909a; padding: 8px 0; }

/* 输入条图标按钮 */
.chat-input .ico {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #8a8f96; flex: 0 0 auto;
}
.chat-input .ico:hover { background: rgba(0,0,0,.05); }

/* 浏览器地址栏与底部工具栏 */
.addrbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f5f6f7; }
.addr-box {
  flex: 1; height: 38px; border-radius: 19px; background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
}
.addr-actions { display: flex; gap: 4px; }
.addr-actions button { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: #6d747f; border-radius: 50%; }
.addr-actions button:hover { background: rgba(0,0,0,.05); }
.browser-toolbar {
  position: sticky; bottom: 0;
  margin-top: auto;
  display: flex; justify-content: space-around;
  padding: 4px 30px calc(16px);
  background: rgba(250,250,250,.98);
  border-top: 1px solid rgba(0,0,0,.05);
  z-index: 25;
}
.browser-toolbar button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #6d747f; }
.browser-toolbar button.on { color: #3b82f6; }
/* Explicit SVG sizes prevent intrinsic flex sizing from collapsing in WebKit. */
.browser-toolbar button { flex: 0 0 44px; }
.browser-toolbar button > svg { display: block; width: 32px; height: 32px; flex: 0 0 32px; }
.addr-actions button > svg { display: block; width: 28px; height: 28px; flex: 0 0 28px; }
/* File preview uses a dark back arrow on its light navigation bar. */
.liu-authorization-page > .navbar .back { flex: 0 0 44px; color: #1f2937; }
.liu-authorization-page > .navbar .back > svg { display: block; width: 24px; height: 24px; flex: 0 0 24px; }


/* 占位块 */
.ph {
  background: #e4e6ea;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.ph.dark { background: #3a3f46; }
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: shimmer 2.2s infinite;
}
.ph.dark::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* 列表行占位 */
.li-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f1f3;
  min-height: 66px;
}
.li-row .ava {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  flex: 0 0 auto;
}
.li-row .lines { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.li-row .time { width: 34px; height: 11px; flex: 0 0 auto; }
.pad { padding: 14px 16px; }

/* 卡片 */
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
}

/* 按钮 */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .12s ease, background .18s ease, opacity .18s ease;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: #07c160; color: #fff; }
.btn.primary:hover { background: #06ad56; }
.btn.ghost { background: rgba(120,124,130,.12); color: #14161a; }
.btn.ghost:hover { background: rgba(120,124,130,.2); }
.btn.danger { background: #7f2a2a; color: #fff; }
.btn.danger:hover { background: #6b2323; }
.btn.plain { background: transparent; color: #07c160; }

/* ===================== 主屏 ===================== */
.home { height: 100%; display: flex; flex-direction: column; background: #f5f6f7; }
.home-wall {
  flex: 1;
  padding: 18px 16px 12px;
  display: flex;
  flex-direction: column;
}
.home-clock { text-align: center; margin: 4px 0 16px; }
.home-clock b { display: block; font-size: 30px; font-weight: 600; color: #14161a; letter-spacing: .01em; line-height: 1.15; }
.home-clock span { font-size: 12px; color: #8a8f96; }
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 8px;
}
.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-height: 88px;
  border-radius: 14px;
  padding: 6px 2px;
}
.app:hover { background: rgba(0,0,0,.05); }
.app .app-ic {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.16);
}
.app .app-name { font-size: 11px; color: #14161a; }
.app .badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #fa5151;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-ic-wrap { position: relative; }

/* ===================== 微信 ===================== */
.wx-login { background: #ededed; min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 40px 28px 20px; }
.wx-login .wx-logo {
  width: 72px; height: 72px; border-radius: 20px;
  background: #07c160; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; box-shadow: 0 6px 16px rgba(7,193,96,.35);
}
.wx-login .field {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 0 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.wx-login .field label { font-size: 11px; color: #9aa0a8; margin-top: 10px; }
.wx-login .field input {
  border: none; outline: none; background: transparent;
  height: 40px; font-size: 15px; color: #14161a;
}
.wx-login .field input::placeholder { color: #c3c7cc; }
.wx-login .wx-hint { font-size: 12px; color: #9aa0a8; text-align: center; margin-top: 6px; line-height: 1.6; }
.shake { animation: shake .4s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

.chat-title { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; background: #fff; border-bottom: 1px solid #f0f1f3; }
.chat-title .ava-lg { width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; }
.chat-title .lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.bubbles { background: #ededed; min-height: 100%; padding: 16px 14px; display: flex; flex-direction: column; gap: 14px; }
.bubble-row { display: flex; gap: 10px; align-items: flex-start; }
.bubble-row.mine { flex-direction: row-reverse; }
.bubble-row .ava-sm { width: 36px; height: 36px; border-radius: 6px; flex: 0 0 auto; }
.bubble-row .bubble { max-width: 62%; padding: 10px 12px; border-radius: 8px; font-size: 17px; line-height: 1.45; color: #191919; word-break: break-word; }
.bubble-row.theirs .bubble { background: #fff; border-bottom-left-radius: 2px; }
.bubble-row.mine .bubble { background: #95ec69; border-bottom-right-radius: 2px; }
.bubble-row .bubble .ph { width: 128px; height: 13px; margin-bottom: 7px; }
.bubble-row .bubble .ph:last-child { margin-bottom: 0; width: 78px; }
.bubble-row.mine .bubble .ph { background: #7fd65c; }
.bubble-row.mine .bubble .ph::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); }
.chat-input {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; background: #f5f6f7; border-top: 1px solid rgba(0,0,0,.05);
}
.chat-input .input-bar { flex: 1; height: 38px; border-radius: 6px; background: #f2f3f5; border: 1px solid #e8eaed; }
.chat-input .send { width: 38px; height: 38px; border-radius: 50%; background: #07c160; display: flex; align-items: center; justify-content: center; }

/* 收藏抽屉占位 */
.fav-card { margin: 14px; padding: 16px; }
.fav-card .fav-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: #14161a; }
.fav-card .fav-grid { display: flex; flex-direction: column; gap: 10px; }
.fav-card .ph-row { display: flex; gap: 10px; align-items: center; }

/* ===================== 浏览器 / 官网 ===================== */
.browser { background: #fff; min-height: 100%; display: flex; flex-direction: column; margin-top: -12px; }
.baidu-body { flex: 1; overflow: hidden; background: #fff; display: flex; flex-direction: column; position: relative; }
.bd-topnav { display: flex; justify-content: space-between; align-items: center; padding: 6px 15px 0; font-size: 12px; color: #3567d8; }
.bd-nav-l { display: flex; gap: 15px; }
.bd-nav-r { display: flex; gap: 16px; align-items: center; }
.bd-login { color: #fff; background: #3567d8; border-radius: 12px; padding: 2px 13px; font-size: 12px; }
.bd-logo { text-align: center; font-size: 30px; font-weight: 700; color: #2932e1; letter-spacing: -1px; margin: 48px 0 18px; line-height: 1; }
.bd-logo span { margin-left: 2px; }
.bd-search { display: flex; flex-direction: column; align-items: stretch; gap: 10px; background: #fff; border: 1px solid #e1e4ea; border-radius: 28px; margin: 0 12px; padding: 14px 12px 12px 18px; box-shadow: 0 2px 10px rgba(20, 30, 70, .06); position: relative; }
.bd-sugg { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid #e1e4ea; border-radius: 14px; box-shadow: 0 8px 24px rgba(20,30,70,.14); z-index: 60; overflow: hidden; }
.bd-sugg-i { padding: 11px 18px; font-size: 14px; color: #222; cursor: pointer; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f2f3f7; }
.bd-sugg-i:last-child { border-bottom: none; }
.bd-sugg-i:hover { background: #f4f6ff; }
.bd-sugg-i::before { content: '🔍'; font-size: 12px; opacity: .55; }
.bd-sugg-i.acc { color: #4e6ef2; }
.bd-banned-tip { margin: 16px 14px 8px; background: #f6f7f9; border: 1px solid #e6e8ec; border-radius: 8px; padding: 14px 16px; font-size: 13px; color: #8a8f99; line-height: 1.6; }
.bd-related { margin: 10px 14px 0; }
.bd-related-h { font-size: 13px; color: #222; font-weight: 600; margin-bottom: 10px; }
.bd-related-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-related-i { background: #f0f2f7; color: #333; font-size: 12px; padding: 7px 14px; border-radius: 16px; cursor: pointer; }
.bd-related-i:hover { background: #e3e8ff; color: #4e6ef2; }
.bd-search-btns { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.bd-input { flex: 1; min-width: 0; border: none; outline: none; font-size: 15px; color: #14161a; background: transparent; height: 30px; }
.bd-input::placeholder { color: #a0a4ad; }
.bd-mic, .bd-plus { background: none; border: none; font-size: 20px; color: #333; padding: 6px 4px; line-height: 1; }
.bd-go { background: #4e6ef2; color: #fff; border: none; border-radius: 20px; padding: 0 24px; height: 36px; font-size: 15px; font-weight: 500; flex: 0 0 auto; }
.bd-wenxin { margin: 18px 14px 0; background: #f0f5ff; border-radius: 8px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.bd-wx { color: #4e6ef2; font-weight: 600; flex: 0 0 auto; }
.bd-wenxin b { color: #14161a; font-weight: 400; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-arrow { color: #9aa0a8; flex: 0 0 auto; font-size: 14px; }
.bd-hot { margin: 38px 14px 0; }
.bd-hot-h { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; color: #14161a; }
.bd-hot-h span { font-size: 12px; color: #9aa0a8; font-weight: 400; }
.bd-hot-i { display: flex; align-items: center; gap: 10px; padding: 8px 2px; font-size: 13px; color: #14161a; border-bottom: 1px solid #f5f6f8; }
.bd-hot-i:last-child { border-bottom: none; }
.bd-hot-n { width: 16px; text-align: center; font-size: 13px; font-style: italic; font-weight: 700; color: #b8bcc4; flex: 0 0 auto; }
.bd-hot-n.t { color: #ff2d2d; }
.bd-hot-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-hot-tag { font-size: 10px; color: #ff6b35; border: 1px solid #ffb38c; border-radius: 4px; padding: 0 4px; flex: 0 0 auto; }
.bd-links { display: flex; gap: 10px; justify-content: center; font-size: 11px; color: #a0a4ad; padding: 4px 12px 2px; flex-wrap: wrap; margin-top: auto; }
.bd-float { display: flex; flex-direction: column; gap: 12px; position: absolute; right: 20px; bottom: 74px; }
.bd-fbtn { width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 1px solid #e1e4ea; box-shadow: 0 3px 10px rgba(20, 30, 70, .08); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #4e6ef2; font-size: 10px; }
/* ---- 百度搜索结果页（参考移动端百度） ---- */
.bd-res-body { background: #f2f3f5; flex: 1; min-height: 0; overflow-y: auto; }
.bd-res-head { background: #fff; padding: 8px 12px 6px; position: sticky; top: 0; z-index: 5; }
.bd-res-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #4e6ef2; border-radius: 20px; padding: 0 12px; height: 36px; }
.bd-res-logo { width: 20px; height: 20px; flex: 0 0 auto; color: #4e6ef2; }
.bd-res-q { flex: 1; min-width: 0; font-size: 14px; color: #14161a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-res-mic { color: #9aa0a8; font-size: 16px; flex: 0 0 auto; }
.bd-res-tabs { display: flex; gap: 22px; padding: 8px 14px 0; background: #fff; font-size: 15px; color: #8b919b; }
.bd-res-tabs .on { color: #14161a; font-weight: 700; position: relative; }
.bd-res-tabs .on::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -6px; width: 20px; height: 2.5px; border-radius: 2px; background: #14161a; }
.bd-res-item { background: #fff; padding: 14px 14px 12px; }
.bd-res-title { font-size: 17px; font-weight: 700; color: #ff2d42; line-height: 1.4; }
.bd-res-title.blue { color: #2440b3; }
.bd-res-line { display: flex; gap: 12px; margin-top: 10px; }
.bd-res-thumb { width: 108px; height: 82px; border-radius: 8px; flex: 0 0 auto; object-fit: cover; background: #e8ecf3; }
.bd-res-thumb.ph { display: flex; align-items: center; justify-content: center; font-size: 26px; }
.bd-res-abstract { flex: 1; min-width: 0; font-size: 13px; color: #3a3f47; line-height: 1.55; }
.bd-res-abstract em { color: #ff2d42; font-style: normal; }
.bd-res-caps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bd-res-cap { background: #f2f3f5; border-radius: 14px; padding: 4px 13px; font-size: 12px; color: #3a3f47; }
.bd-res-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #9aa0a8; }
.bd-res-src { display: flex; align-items: center; gap: 6px; }
.bd-res-src .ic { width: 16px; height: 16px; border-radius: 4px; background: #4e6ef2; color: #fff; font-size: 9px; display: flex; align-items: center; justify-content: center; }
.bd-sep { height: 10px; background: #e9eaee; }
.bd-res-visit { color: #4e6ef2; font-size: 12px; }
.bd-res-loading { text-align: center; padding: 18px 0 22px; color: #9aa0a8; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bd-res-loading .spinner { width: 16px; height: 16px; border: 2px solid #e1e4ea; border-top-color: #4e6ef2; border-radius: 50%; animation: bdspin .8s linear infinite; }
@keyframes bdspin { to { transform: rotate(360deg); } }
.bd-res-loading.done { color: #b8bcc4; }
.bd-res-loading.done .spinner { display: none; }
.bd-site-frame { flex: 1; min-height: 0; width: 100%; border: none; background: #fff; display: block; }
.device.tablet .bd-res-item { padding: 16px 40px; }
.device.tablet .bd-res-tabs { padding-left: 40px; }
.device.tablet .bd-res-head { padding-left: 32px; padding-right: 32px; }
/* ---- 平板百度首页 ---- */
.device.tablet .bd-topnav { padding: 8px 24px 0; font-size: 12px; }
.device.tablet .bd-nav-l { gap: 22px; }
.device.tablet .bd-nav-r { gap: 20px; }
.device.tablet .bd-logo { font-size: 40px; margin: 10px 0 6px; }
.device.tablet .bd-search { flex-direction: row; align-items: center; gap: 3px; margin: 0 64px; padding: 4px 8px 4px 20px; border-radius: 26px; }
.device.tablet .bd-input { font-size: 15px; height: 34px; }
.device.tablet .bd-go { height: 32px; padding: 0 26px; border-radius: 19px; font-size: 14px; }
.device.tablet .bd-mic, .device.tablet .bd-plus { font-size: 18px; padding: 4px; }
.device.tablet .bd-wenxin { margin: 6px 64px 0; font-size: 12px; padding: 8px 16px; }
.device.tablet .bd-hot { margin: 12px 64px 0; }
.device.tablet .bd-hot-list { display: grid; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 30px; }
.device.tablet .bd-hot-h { font-size: 16px; }
.device.tablet .bd-hot-i { padding: 4px 2px; font-size: 14px; }
.device.tablet .bd-links { padding: 12px 16px 8px; gap: 14px; font-size: 12px; }
.device.tablet .bd-float { bottom: 60px; }
.device.tablet .bd-fbtn { width: 48px; height: 48px; }
.searchbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #f5f6f7;
}
.searchbar .search-box {
  flex: 1; height: 38px; border-radius: 19px; background: #fff;
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
  border: 1px solid rgba(0,0,0,.06);
}
.searchbar .search-box svg { flex: 0 0 auto; }
.searchbar .search-box input { border: none; outline: none; background: transparent; flex: 1; font-size: 14px; color: #14161a; }
.searchbar .search-box input::placeholder { color: #c3c7cc; }
.hero {
  margin: 14px; height: 130px; border-radius: 16px;
  background: linear-gradient(135deg, #4a1c1c, #2a1111);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px; gap: 8px;
}
.hero .ph { background: rgba(255,255,255,.28); }
.hero .ph::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); }
.site-nav { display: flex; gap: 10px; padding: 4px 14px 14px; flex-wrap: wrap; }
.site-nav .ph { height: 30px; border-radius: 15px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 14px 16px; }
.cols .col-card { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.cols .col-card .ph { width: 100%; }
.footer-ph { padding: 0 14px 16px; display: flex; flex-direction: column; gap: 8px; }

/* ===================== 小红书（首页帖子 / 消息 / 我 / 市集 / 发布） ===================== */
.xhs-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; background: #fff; }
.xhs-scroll::-webkit-scrollbar { display: none; }
.goods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px 16px; background: #fff; }
.device.tablet .goods-grid { grid-template-columns: repeat(4, 1fr); }

/* 分类横滚条（市集等） */
.cat-bar { display: flex; gap: 8px; padding: 12px 14px 6px; background: #fff; overflow-x: auto; scrollbar-width: none; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar .cat { flex: 0 0 auto; padding: 6px 13px; border-radius: 15px; background: #f2f3f5; font-size: 12px; color: #5c636d; white-space: nowrap; }
.cat-bar .cat.on { background: #ffe9ed; color: #ff2e4d; font-weight: 600; }

/* 信息流主页（白天模式发现页） */
.xhs-nav {
  height: 48px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 26px;
  position: relative;
  background: #fff;
}
.xhs-nav button {
  font-size: 16px; font-weight: 600; color: #9aa0a8;
  padding: 7px 2px;
  border-bottom: 3px solid transparent;
}
.xhs-nav button.on { color: #14161a; border-color: #ff2e4d; }
.xhs-nav .xhs-nav-search { position: absolute; right: 14px; color: #14161a; display: flex; }
.xhs-cat-bar {
  display: flex; gap: 20px;
  padding: 6px 16px 2px;
  background: #fff;
  overflow-x: auto; scrollbar-width: none;
}
.xhs-cat-bar::-webkit-scrollbar { display: none; }
.xhs-cat-bar span { flex: 0 0 auto; font-size: 14px; color: #5c636d; white-space: nowrap; }
.xhs-cat-bar span.on { color: #ff2442; font-weight: 700; }
.xhs-waterfall {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 10px 12px 16px;
  background: #fff;
}
.device.tablet .xhs-waterfall { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.xf-card { border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 7px; cursor: pointer; }
.xf-img-wrap { position: relative; }
.xf-img { width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; object-fit: cover; display: block; }
.xf-now {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; color: #fff;
  background: rgba(0,0,0,.55);
  border-radius: 4px; padding: 3px 6px;
}
.xf-title { font-size: 13px; color: #2b2f36; line-height: 1.45; }
.feed-card .xf-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xf-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xf-author { font-size: 12px; color: #9aa0a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xf-like { display: flex; align-items: center; gap: 3px; font-size: 12px; color: #9aa0a8; flex: 0 0 auto; }

/* 消息页 */
.xhs-dark { background: #fff; }
.xhs-dark .navbar { background: rgba(255,255,255,.98); border-bottom-color: #f0f1f3; }
.xhs-dark .navbar .back { color: #ff2e4d; }
.xhs-dark .nav-title { color: #14161a; }
.xhs-dark .xhs-scroll { background: #fff; }
.xhs-dark .tabbar { background: rgba(255,255,255,.98); border-top-color: #ebedf0; }
.xhs-dark .tabbar .tab { color: #9aa0a8; }
.xhs-dark .tabbar .tab.on { color: #ff2e4d; }

.xhs-topbar {
  height: 52px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: #fff;
  border-bottom: 1px solid #f0f1f3;
}
.xhs-topbar .xt-title { font-size: 17px; font-weight: 700; color: #14161a; }
.xhs-topbar .xt-actions { position: absolute; right: 14px; display: flex; align-items: center; gap: 15px; color: #14161a; }
.xhs-topbar .xt-actions svg { width: 21px; height: 21px; }
.xhs-topbar .xt-actions .xt-plus svg { width: 24px; height: 24px; }

.msg-entry { display: flex; justify-content: space-around; padding: 14px 10px 10px; background: #fff; }
.me-item { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: #14161a; position: relative; }
.me-item svg { flex: 0 0 auto; }
.me-item .msg-badge {
  position: absolute; top: -9px; left: 14px;
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; font-size: 9px;
}
.msg-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: #fff; border-bottom: 1px solid #f0f1f3; }
.msg-row .ava { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto; }
.msg-main { flex: 1; min-width: 0; }
.msg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.msg-name { font-size: 16px; font-weight: 600; color: #14161a; }
.msg-time { font-size: 12px; color: #9aa0a8; flex: 0 0 auto; }
.msg-prev { font-size: 13px; color: #6d7278; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #fa5151; color: #fff;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.msg-dot { width: 9px; height: 9px; border-radius: 50%; background: #fa5151; flex: 0 0 auto; }
.msg-notice {
  display: flex; align-items: center; justify-content: space-between;
  margin: 10px 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f2f3f5;
}
.msg-notice span { font-size: 13px; color: #5c636d; }
.msg-notice button { font-size: 13px; font-weight: 600; color: #ff2e4d; padding: 6px 18px; border: 1px solid rgba(255,46,77,.55); border-radius: 17px; background: transparent; }

/* 我的页（白天） */
.me-topbar {
  height: 52px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid #f0f1f3;
  color: #14161a;
}
.mt-right { display: flex; align-items: center; gap: 16px; }
.mt-edit { font-size: 14px; color: #14161a; }
.me-head2 { display: flex; align-items: center; gap: 14px; padding: 18px 16px 10px; background: #fff; cursor: pointer; }
.me-head2 .me-ava { width: 68px; height: 68px; border-radius: 50%; flex: 0 0 auto; }
.me-info { flex: 1; min-width: 0; }
.me-name { font-size: 20px; font-weight: 700; color: #14161a; }
.me-id { font-size: 13px; color: #9aa0a8; margin-top: 5px; }
.me-stats2 { display: flex; background: #fff; padding: 8px 0 12px; }
.me-stats2 div { flex: 1; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.me-stats2 b { font-size: 17px; font-weight: 700; color: #14161a; }
.me-stats2 span { font-size: 11px; color: #9aa0a8; }
.me-bio { background: #fff; padding: 4px 16px 8px; }
.me-bio p { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: #2b2f36; }
.me-count { background: #fff; padding: 2px 16px 10px; font-size: 13px; color: #6d7278; }
.me-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 2px 16px 14px; background: #fff; }
.ma-cell { background: #f7f8fa; border-radius: 12px; padding: 14px 6px; text-align: center; display: flex; flex-direction: column; gap: 5px; }
.ma-cell b { font-size: 14px; font-weight: 600; color: #14161a; }
.ma-cell span { font-size: 11px; color: #9aa0a8; }
.me-tabs { display: flex; background: #fff; border-bottom: 1px solid #f0f1f3; }
.me-tabs button { flex: 1; padding: 12px 0; font-size: 14px; color: #9aa0a8; text-align: center; border-bottom: 3px solid transparent; }
.me-tabs button.on { color: #14161a; font-weight: 700; border-color: #14161a; }
.me-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px 16px 20px; background: #fff; }
.mc { position: relative; display: flex; flex-direction: column; gap: 5px; }
.mc-img { width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; display: block; position: relative; }
.mc-tag { font-size: 12px; color: #2b2f36; line-height: 1.35; }
.mc-lock { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.mc-lock svg { width: 13px; height: 13px; color: #fff; }
.mc-tag2 { position: absolute; left: 8px; bottom: 8px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.mc-pin {
  position: absolute; top: 6px; left: 6px;
  font-size: 10px; color: #fff;
  background: rgba(0,0,0,.5);
  border-radius: 4px; padding: 2px 6px;
}
.mc-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px dashed #d4d7dc; border-radius: 8px; }
.mc-plus { font-size: 28px; color: #b9bec6; line-height: 1; }
.mc-add-t { font-size: 12px; color: #b9bec6; }
.device.tablet .me-grid { grid-template-columns: repeat(5, 1fr); }

/* 编辑资料页 */
.edit-save { font-size: 14px; font-weight: 600; color: #ff2e4d; padding: 6px 10px; }
.edit-ava-row { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0 22px; cursor: pointer; }
.edit-ava-wrap { position: relative; width: 86px; height: 86px; }
.edit-ava { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; display: block; }
.edit-cam {
  position: absolute; right: -1px; bottom: -1px;
  width: 27px; height: 27px; border-radius: 50%;
  background: #ff2e4d; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.edit-cam svg { width: 15px; height: 15px; }
.edit-ava-t { font-size: 12px; color: #9aa0a8; }
.edit-row { display: flex; align-items: center; gap: 14px; margin: 0 16px; padding: 15px 0; border-bottom: 1px solid #f0f1f3; }
.edit-label { font-size: 14px; color: #14161a; width: 72px; flex: 0 0 auto; }
.edit-input { flex: 1; font-size: 14px; color: #14161a; border: none; outline: none; background: transparent; }
.edit-input::placeholder { color: #b9bec6; }
.edit-readonly { flex: 1; font-size: 14px; color: #9aa0a8; }

/* 关注列表页 */
.fl-nav {
  position: relative; height: 48px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 28px;
  background: #fff; border-bottom: 1px solid #f0f1f3;
}
.fl-nav button { font-size: 16px; font-weight: 600; color: #9aa0a8; padding: 7px 2px; border-bottom: 3px solid transparent; }
.fl-nav button.on { color: #14161a; border-color: #ff2e4d; }
.fl-nav .fl-back { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 26px; color: #14161a; border: none; padding: 0 10px; line-height: 1; }
.fl-search {
  margin: 12px 16px 0; height: 36px; border-radius: 18px;
  background: #f2f3f5; display: flex; align-items: center; gap: 7px;
  padding: 0 14px; font-size: 13px; color: #b9bec6;
}
.fl-search svg { flex: 0 0 auto; }
.fl-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 4px; }
.fl-count { font-size: 15px; font-weight: 700; color: #14161a; }
.fl-sort { font-size: 12px; color: #9aa0a8; display: flex; align-items: center; gap: 3px; }
.fl-filter { display: flex; gap: 20px; padding: 6px 16px 8px; font-size: 13px; color: #6d7278; }
.fl-filter .on { color: #14161a; font-weight: 600; }
.fl-user { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #f5f6f7; }
.fl-ava { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 26px; background: #fff0f2; }
.fl-ava.ph { background: #f2f3f5; }
.fl-info { flex: 1; min-width: 0; }
.fl-name { font-size: 15px; font-weight: 600; color: #14161a; }
.fl-bio { font-size: 12px; color: #6d7278; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-follow { flex: 0 0 auto; font-size: 12px; color: #7a8087; border: 1px solid #c9ccd1; border-radius: 13px; padding: 4px 12px; }
.fl-more { flex: 0 0 auto; font-size: 18px; color: #9aa0a8; padding: 0 4px; letter-spacing: 1px; }

/* 私信聊天页（像素级复刻） */
.xhs-dark .xhsc-scroll { background: #f2f3f5; }
.xhsc-nav { background: #fff; border-bottom: none; height: 48px; }
.xhsc-nav .xhsc-ava { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; }
.xhsc-nav .xhsc-title { font-size: 16px; font-weight: 600; color: #14161a; flex: 1; text-align: left; }
.xhsc-nav .nav-slot { width: 44px; display: flex; align-items: center; justify-content: flex-end; }
.xhsc-scroll { padding: 14px 14px 20px; background: #f2f3f5; }
.xhsc-time { text-align: center; font-size: 11px; color: #b9bec6; margin: 16px 0 16px; }
.xhsc-row { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 16px; }
.xhsc-row.me { justify-content: flex-end; }
.xhsc-ava { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; }
.xhsc-bubble {
  max-width: 72%; font-size: 14px; line-height: 1.5;
  background: #fff; color: #14161a;
  border-radius: 16px; border-top-left-radius: 4px;
  padding: 10px 14px;
}
.xhsc-row.me .xhsc-bubble {
  background: #d8ecff; border-radius: 16px; border-top-right-radius: 4px;
}
.xhsc-link { color: #3b7ff2; }
.xhsc-quick {
  display: flex; justify-content: space-between; padding: 8px 14px 10px;
  background: #fff; overflow-x: auto; scrollbar-width: none;
}
.xhsc-quick::-webkit-scrollbar { display: none; }
.xhsc-quick span {
  flex: 0 0 auto; white-space: nowrap;
  font-size: 13px; color: #5c636d;
  background: #f2f3f5; border-radius: 15px; padding: 6px 14px;
}
.xhsc-input-bar { padding: 0 12px 14px; background: #fff; }
.xhsc-input {
  height: 44px; border-radius: 22px;
  background: #f2f3f5;
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  color: #8a919a;
}
.xhsc-input svg { width: 18px; height: 18px; flex: 0 0 auto; }
.xhsc-input .ph-text { flex: 1; font-size: 14px; color: #b9bec6; }

/* 他人主页（小红薯6A5131D11，像素级 v2：深色头部 + 白底内容 + 蓝底便签图） */
.up-hero {
  flex: 0 0 auto;
  margin-top: -12px;
  padding-top: 10px;
  background: linear-gradient(180deg, #343e5a 0%, #394255 60%, #6a5d66 100%);
  padding-bottom: 6px;
}
.up-hero .up-nav { background: transparent; border-bottom: none; }
.up-hero .up-nav .back { color: #fff; }
.up-hero .up-nav .nav-slot { color: #fff; }
.up-head { display: flex; align-items: center; gap: 14px; padding: 8px 18px 6px; }
.up-ava {
  width: 96px; height: 96px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 42px;
  line-height: 1; overflow: hidden;
  background: linear-gradient(135deg, #ff9ec4, #b9a2ff);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.up-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.up-name { font-size: 17px; font-weight: 700; color: #fff; }
.up-meta { font-size: 12px; color: #b6b4c4; display: flex; align-items: center; }
.up-meta .up-copy { width: 17px; height: 17px; margin-left: 8px; color: rgba(255,255,255,.72); flex: 0 0 auto; }
.up-ip { font-size: 12px; color: #a09eb1; }
.up-stats { display: flex; align-items: baseline; gap: 14px; padding: 12px 0 2px 18px; }
.up-stat { display: flex; align-items: baseline; gap: 3px; }
.up-stats b { font-size: 15px; font-weight: 700; color: #fff; }
.up-stats span { font-size: 13px; color: #c9c7d4; }
.up-btns { display: flex; align-items: center; justify-content: space-between; padding: 12px 23px 16px 40px; }
.up-follow {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  font-size: 13px; line-height: 1; color: #fff; font-weight: 500;
  background: rgba(255,255,255,.14); border-radius: 13px;
  width: 118px; height: 26px; flex-shrink: 0;
}
.up-msg {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1; color: #fff; font-weight: 500;
  background: rgba(255,255,255,.14); border-radius: 13px;
  width: 118px; height: 26px; flex-shrink: 0;
}
.up-add {
  display: flex; align-items: center; justify-content: center;
  width: 16px; height: 26px; color: #fff; flex-shrink: 0;
}
.up-scroll { background: #fafafa; }
.xhs-dark .up-scroll { background: #fafafa; }
.up-tabs {
  display: flex; gap: 32px; padding: 0 18px; background: #fff;
  border-bottom: 1px solid #f0f1f3;
}
.up-tabs span {
  font-size: 14px; color: #9aa0a8; padding: 10px 2px;
  border-bottom: 2.5px solid transparent; font-weight: 600;
}
.up-tabs span.on { color: #14161a; border-color: #ff2e4d; }
.up-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 12px 16px 24px; background: #fafafa;
}
.up-card { min-width: 0; background: #fff; border-radius: 8px; padding: 8px; }
.up-fig {
  background: #4f77f3; border-radius: 6px;
  height: 195px; position: relative; overflow: hidden;
}
.up-fig2 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-sticky {
  position: absolute; left: 14px; top: 24px;
  background: #fff; border: 1.5px solid #7db8ff; border-radius: 10px;
  width: 160px; height: 168px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(79,119,243,.35);
}
.up-sticky .st-dots {
  position: absolute; left: 12px; top: 7px;
  font-size: 14px; letter-spacing: 1px; color: #9aa0a8;
}
.up-sticky .st-tag {
  position: absolute; right: 10px; top: 8px;
  font-size: 10px; color: #9aa0a8;
}
.up-sticky .st-text { font-size: 19px; font-weight: 700; color: #14161a; text-align: center; line-height: 1.5; }
.up-note-cap {
  font-size: 13px; color: #14161a; margin-top: 7px; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.up-note-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.up-note-ava {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  background: linear-gradient(135deg, #ff9ec4, #b9a2ff);
}
.up-note-info { display: flex; flex-direction: column; gap: 0; flex: 1; min-width: 0; }
.up-note-author { font-size: 11px; color: #5c636d; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-note-date { font-size: 10px; color: #b9bec6; }
.up-note-likes { font-size: 11px; color: #5c636d; flex: 0 0 auto; }
/* 平板模式：主页笔记区 3 列大卡（仅平板设备，窗口宽度不干扰手机） */
@media (min-width: 800px) {
  .device.tablet .up-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px 20px 28px; }
  .device.tablet .up-fig { height: 290px; }
  .device.tablet .up-sticky { left: 22px; top: 30px; width: 250px; height: 240px; }
  .device.tablet .up-sticky .st-text { font-size: 24px; }
  .device.tablet .up-note-cap { font-size: 14px; margin-top: 8px; }
  .device.tablet .up-note-ava { width: 24px; height: 24px; font-size: 13px; }
  .device.tablet .up-note-author { font-size: 12px; }
  .device.tablet .up-note-date { font-size: 11px; }
  .device.tablet .up-note-likes { font-size: 12px; }
}

/* 发布页 */
.pub-scroll { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.pub-drop {
  border: 2px dashed #d4d7dc; border-radius: 14px;
  padding: 42px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #fafbfc;
}
.pub-t { font-size: 14px; font-weight: 600; color: #5c636d; }
.pub-s { font-size: 12px; color: #b9bec6; }
.pub-row {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 10px; padding: 14px;
  border: 1px solid #f0f1f3;
}
.pub-row span:first-child { font-size: 13px; color: #5c636d; flex: 0 0 auto; }
.pub-btn {
  margin-top: 4px;
  height: 44px; border-radius: 22px;
  background: #ff2e4d; color: #fff;
  font-size: 15px; font-weight: 600;
  transition: opacity .15s ease;
}
.pub-btn:hover { opacity: .9; }
.post-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; background: #fff; }
.post-scroll::-webkit-scrollbar { display: none; }
.post { padding-bottom: 8px; }

/* 手机：帖子详情（白天） */
.dark-post { background: #fff; height: 100%; }
.dark-post .navbar { background: rgba(255,255,255,.98); border-bottom-color: #f0f1f3; }
.dark-post .navbar .back { color: #ff2e4d; }
.dark-post .nav-title { color: #14161a; }
.dark-post .post-scroll { background: #fff; min-height: 0; }
.dp-author { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.dp-author .pa-ava { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.dp-name { flex: 1; font-size: 15px; font-weight: 600; color: #14161a; }
.dp-follow { font-size: 12px; color: #7a8087; border: 1px solid #c9ccd1; border-radius: 13px; padding: 4px 12px; flex: 0 0 auto; }

/* 手机帖子顶部：返回键与作者同一行 */
.post-nav .nav-author { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.post-nav .nav-author .pa-ava { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; }
.post-nav .nav-follow { flex: 0 0 auto; }
.post-nav .nav-slot { width: auto; }
.post-nav .nav-slot svg { width: 21px; height: 21px; }
.dp-cover { padding: 2px 16px 12px; }
.dp-cover .swipe img { width: 100%; height: auto; border-radius: 14px; display: block; }
.dp-body { padding: 2px 16px 0; }
.dp-body h1 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: #14161a; line-height: 1.45; }
.dp-body p { margin: 0 0 8px; font-size: 14px; color: #2b2f36; line-height: 1.75; }
.dp-divider { color: #c3c7cc; letter-spacing: .12em; text-align: center; padding: 2px 0 8px; font-size: 13px; user-select: none; }
.dp-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px 12px;
  border-top: 1px solid #f0f1f3;
  background: rgba(255,255,255,.98);
  flex: 0 0 auto;
}
.dp-bar .dp-say { flex: 1; font-size: 13px; color: #b9bec6; background: #f2f3f5; border-radius: 17px; padding: 8px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-bar button { display: flex; align-items: center; gap: 4px; color: #5c636d; font-size: 12px; }
.dp-bar svg { width: 19px; height: 19px; }

/* 图片左右切换 */
.swipe { position: relative; display: flex; align-items: center; justify-content: center; }
.ipad-left .swipe { height: 100%; width: 100%; }
.ipad-left .swipe img { width: 100%; height: 100%; object-fit: contain; }
.swipe-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.38); color: #fff;
  font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  padding: 0 0 3px;
}
.swipe-btn.prev { left: 10px; }
.swipe-btn.next { right: 10px; }
.swipe-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.swipe-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.25); }
.swipe-dots span.on { background: #ff2e4d; }

/* 平板：左图右文分栏 */
.ipad-page { height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.ipad-post { display: flex; flex: 1; min-height: 0; background: #fff; }
.ipad-left {
  width: 46%; flex: 0 0 auto;
  overflow: hidden;
  background: #f2f3f5;
  display: flex; align-items: center; justify-content: center;
}
.ipad-right {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  padding: 0;
}
.ipad-main {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
  padding: 0 18px 16px;
}
.ipad-main::-webkit-scrollbar { display: none; }
.ip-author { display: flex; align-items: center; gap: 8px; padding: 14px 0 6px; }
.ip-author .pa-ava { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; }
.ip-name { flex: 1; font-size: 14px; font-weight: 600; color: #14161a; }
.ip-follow { font-size: 12px; color: #8b919b; }
.ip-title { margin: 6px 0 10px; font-size: 18px; font-weight: 700; color: #14161a; line-height: 1.45; }
.ip-text { margin: 0 0 8px; font-size: 14px; color: #2b2f36; line-height: 1.7; }
.ip-divider { color: #c3c7cc; letter-spacing: .12em; text-align: center; padding: 4px 0 10px; font-size: 13px; user-select: none; }
.ip-edit { margin: 0 0 10px; font-size: 14px; color: #2b2f36; line-height: 1.7; }
.ip-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ip-pills span { font-size: 12px; color: #14161a; background: #f2f3f5; padding: 5px 10px; border-radius: 8px; white-space: nowrap; }
.ip-meta { display: flex; justify-content: space-between; font-size: 12px; color: #9aa0a8; margin-bottom: 8px; }
.ip-comments { border-top: 1px solid #f0f1f3; padding-top: 10px; }
.ip-c-title { font-size: 13px; font-weight: 600; color: #14161a; margin-bottom: 10px; }
.ip-c-input { font-size: 13px; color: #b9bec6; background: #f2f3f5; border-radius: 16px; padding: 8px 12px; margin-bottom: 14px; }
.ip-c { margin-bottom: 14px; }
.ip-c .c-name { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #14161a; margin-bottom: 4px; }
.ip-c .c-name .c-ava { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; }
.ip-c .c-body { font-size: 13px; color: #2b2f36; line-height: 1.6; margin-bottom: 3px; }
.ip-c .c-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #b9bec6; }
.ip-c .c-meta .c-like { display: flex; align-items: center; gap: 3px; font-size: 12px; color: #b9bec6; }
.ip-c .c-meta .c-like svg { width: 14px; height: 14px; }
.ip-bar { display: flex; align-items: center; gap: 18px; padding: 10px 16px 12px; border-top: 1px solid #f0f1f3; background: #fff; flex: 0 0 auto; }
.ip-bar .ip-say { flex: 1; font-size: 13px; color: #b9bec6; background: #f2f3f5; border-radius: 17px; padding: 8px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-bar span { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #5c636d; flex: 0 0 auto; }
.ip-bar svg { width: 22px; height: 22px; color: #5c636d; }
.wcard { border-radius: 12px; overflow: hidden; background: #fafafa; display: flex; flex-direction: column; gap: 8px; }
.wcard .wimg { width: 100%; aspect-ratio: 3 / 4; }
.wcard .wline { margin: 0 10px; height: 12px; }
.wcard .wline.short { width: 55%; margin-bottom: 12px; }

/* ===================== 淘宝 / 电话 / 记事本 ===================== */
.goods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; background: #f5f6f7; }
.good { background: #fff; border-radius: 14px; overflow: hidden; padding-bottom: 12px; }
.good .gimg { width: 100%; aspect-ratio: 1 / 1; border-radius: 0; }
.good .gline { margin: 10px 10px 0; height: 12px; }
.good .gline.short { width: 40%; margin-top: 7px; }

/* 淘宝首页轮播与分类 */
.tba-banner {
  margin: 12px 14px 0;
  height: 96px; border-radius: 14px;
  background: linear-gradient(135deg, #ff8a3d, #ff6a00);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px; gap: 8px;
}
.tba-banner .ph { background: rgba(255,255,255,.32); }
.tba-banner .ph::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); }
.tba-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; padding: 14px; background: #f5f6f7; }
.tba-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tba-cat .c-ic { width: 44px; height: 44px; border-radius: 50%; }

/* 浏览器新闻列表 */
.b-news { border-top: 1px solid #f0f1f3; margin-top: 2px; }
.b-news .li-row .ava { width: 74px; height: 54px; border-radius: 8px; }

.phone-page { background: #f5f6f7; min-height: 100%; }
.dial-area { display: flex; flex-direction: column; align-items: center; padding: 6px 0 0; }
.sim-tag {
  padding: 3px 12px; border-radius: 8px;
  background: #e8efff; color: #2f6bff;
  font-size: 12px; font-weight: 600;
}
.recs { background: #fff; margin: 14px; border-radius: 14px; overflow: hidden; }
.rec { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #f0f1f3; min-height: 58px; }
.rec .ava { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.rec .lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.vm-wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.vm-wave span { width: 2px; border-radius: 1px; background: #b9bec6; }
.pad-key {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px;
  padding: 14px 30px 18px; width: 100%;
}
.pad-key button {
  height: 66px; border-radius: 50%;
  background: rgba(120,124,130,.12); color: #14161a;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transition: background .15s ease;
}
.pad-key button b { font-size: 20px; font-weight: 600; line-height: 1.05; }
.pad-key button i { font-size: 8px; font-weight: 600; font-style: normal; letter-spacing: .06em; color: #9aa0a8; }
.pad-key button:hover { background: rgba(120,124,130,.22); }
.pad-readout { text-align: center; font-size: 18px; letter-spacing: .2em; color: #14161a; padding: 10px 0 4px; min-height: 36px; }
.phone-tabbar .tab.on { color: #34c759; }

/* iOS-style dialler, sized to the simulated device rather than the desktop. */
.phone-app{background:#fff;min-height:100%;height:100%;color:#000}
.phone-app .phone-page{background:#fff;min-height:0;flex:1;display:flex;flex-direction:column}
.phone-dial .navbar{height:0;min-height:0;padding:0;border:0;overflow:hidden}
.phone-dial .dial-area{--key-size:clamp(58px,19cqw,82px);position:relative;flex:1;min-height:460px;padding:16px 0 22px;container-type:inline-size}
.phone-dial .sim-tag{align-self:flex-start;margin-left:18px;padding:0;background:none;display:flex;align-items:center;gap:5px;font-size:19px;color:#fff}
.phone-dial .sim-tag>span:first-child{background:#0098f7;border-radius:6px;padding:1px 6px}
.phone-dial .sim-arrows{color:#999;font-size:20px;line-height:10px;font-weight:400}
.phone-dial .pad-readout{flex:1;display:flex;align-items:center;justify-content:center;width:95%;min-height:70px;font-size:30px;letter-spacing:1px;padding:15px 0;color:#000;overflow-wrap:anywhere}
.phone-dial .pad-key{width:auto;grid-template-columns:repeat(3,var(--key-size));gap:17px 24px;padding:0 0 18px}
.phone-dial .pad-key button{width:var(--key-size);height:var(--key-size);background:#e6e6e6;color:#000;gap:0;border-radius:50%}
.phone-dial .pad-key button b{font-size:39px;font-weight:400;line-height:1.06;font-family:Arial,sans-serif}
.phone-dial .pad-key button i{font-size:10px;color:#000;font-weight:700;letter-spacing:3px;margin-left:3px}
.phone-dial .pad-key button:active{background:#c9c9c9}
.phone-call-row{display:grid;grid-template-columns:repeat(3,var(--key-size));gap:24px;align-items:center}
.phone-dial .call-btn{grid-column:2;width:var(--key-size);height:var(--key-size);margin:0;background:#2bc653;box-shadow:none}
.phone-dial .call-btn svg{width:34px;height:34px;fill:white;stroke-width:1}
.phone-delete{grid-column:3;color:#888;font-size:25px;min-height:44px;background:transparent}
.phone-app .phone-tabbar{background:#fff;border:0;flex-shrink:0;padding:10px 0 18px}
.phone-app .phone-tabbar .tab{color:#a0a0a0;font-size:10px;gap:5px}
.phone-app .phone-tabbar .tab.on{color:#0098f7}
.phone-app .phone-tabbar svg{width:27px;height:27px}
.phone-app [data-seg="vm"]::before,.phone-app [data-seg="vm"]::after,.phone-app [data-seg="vm"] .badge{display:none}
.phone-app button:focus-visible{outline:2px solid #0098f7;outline-offset:3px}
.device.tablet .phone-dial .dial-area{--key-size:78px}

.notes-page { background: #f5f6f7; min-height: 100%; }

.note-list { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.note { background: #fff; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 96px; transition: transform .15s ease, box-shadow .15s ease; }
.note:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.note .nline { width: 100%; height: 12px; }
.note .nline.short { width: 46%; }

/* ===================== 证据册 ===================== */
.evidence-page { background: #1b1e23; min-height: 100%; color: #e8eaee; }
.ev-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; height: 52px; padding: 0 14px; background: rgba(27,30,35,.95); backdrop-filter: blur(14px); }
.ev-nav .back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #07c160; }
.ev-nav .ev-title { font-size: 16px; font-weight: 600; flex: 1; text-align: center; margin-right: 44px; }
.ev-nav.plain { justify-content: center; }
.ev-nav.plain .ev-title { margin-right: 0; }
.ev-nav .ev-title .sub { font-size: 11px; font-weight: 400; color: #6d747f; display: block; margin-top: 1px; }
.ev-counter {
  margin: 14px 14px 0;
  padding: 14px;
  border-radius: 14px;
  background: #23272e;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ev-counter .cnt { font-size: 22px; font-weight: 700; color: #07c160; }
.ev-counter .cnt small { font-size: 13px; color: #8b919b; font-weight: 500; }
.ev-egg-row { padding: 2px 16px 10px; }
.ev-egg {
  width: 100%;
  border: 1px dashed #3a4150;
  background: #23262d;
  color: #e8eaee;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}
.ev-egg.locked { color: #6d747f; cursor: default; }
.ev-egg.open { border-color: #07c160; color: #07c160; cursor: pointer; }
.ev-egg.open:hover { background: #1f2a25; }
.ev-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px 14px 26px;
}
.device.tablet .ev-grid { grid-template-columns: repeat(6, 1fr); }
.device.tablet .apps-grid { grid-template-columns: repeat(7, 1fr); gap: 24px 10px; }
.device.tablet .app .app-ic { width: 64px; height: 64px; border-radius: 17px; }
.device.tablet .waterfall { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ev-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #23272e;
  border: 1px solid #2c313a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #aeb4bd;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.ev-item:hover { border-color: #07c160; background: #2a2f37; transform: translateY(-1px); }
.ev-item:active { transform: scale(.94); }
.ev-footer { text-align: center; font-size: 11px; color: #5c636d; padding: 2px 16px 18px; line-height: 1.7; }

/* 证据详情 */
.ev-detail { display: flex; gap: 14px; padding: 6px 2px 8px; }
.ed-num {
  width: 64px; height: 64px; flex: 0 0 auto;
  border-radius: 16px;
  background: #23272e;
  border: 1px solid #2c313a;
  color: #07c160;
  font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ed-body { flex: 1; display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }

/* ===================== 弹层 / Toast ===================== */
.modal-mask {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.sheet {
  width: 100%;
  background: #f5f6f7;
  border-radius: 24px 24px 0 0;
  padding: 14px 16px calc(30px + 10px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideUp .28s cubic-bezier(.3,.9,.3,1);
}
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } }
.sheet .sheet-title { text-align: center; font-size: 16px; font-weight: 600; color: #14161a; padding: 6px 0 4px; }
.sheet .sheet-sub { text-align: center; font-size: 12px; color: #9aa0a8; margin-bottom: 4px; line-height: 1.6; }
.result-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.result-card .rc-branch { font-size: 30px; font-weight: 800; letter-spacing: .04em; }
.result-card .rc-name { font-size: 14px; color: #5c636d; margin-top: 6px; }
.result-card .rc-desc { font-size: 12px; color: #9aa0a8; margin-top: 10px; line-height: 1.7; }
.rc-A { color: #07c160; }
.rc-B { color: #d9901e; }
.rc-C { color: #b33a3a; }

.toast {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: rgba(20,22,26,.92);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  animation: toastIn .25s ease;
  white-space: nowrap;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } }

/* ===================== 响应式（设备尺寸由 JS fitDevice 等比缩放） ===================== */
@media (max-width: 720px) {
  .topbar { padding: 10px 14px 6px; flex-wrap: wrap; gap: 8px; }
  .brand { font-size: 14px; }
  .seg button { padding: 6px 12px; font-size: 12px; min-height: 32px; }
  .icon-btn { padding: 6px 12px; font-size: 12px; min-height: 32px; }
}
/* 真实窄屏手机：收紧设备外壳，让屏幕占满 */
body.is-real-phone .side-btn { display: none; }
body.is-real-phone .device { padding: 6px; border-radius: 30px; }
/* 横屏手机（高度不足）：顶栏更紧凑，给设备让位 */
@media (max-height: 480px) {
  .topbar { padding: 6px 14px; }
  .brand { display: none; }
  .stage { padding: 4px 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 微信“我”与设置：按参考图的 402px 逻辑宽度排版。 */
.statusbar.wx-white{background:#fff;color:#000}.statusbar.wx-gray{background:#ededed;color:#000}
.wx-me-page,.wx-settings-page{background:#ededed;color:#000;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;height:100%;min-height:0;display:flex;flex-direction:column}
.wx-me-scroll,.wx-settings-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:none}.wx-me-scroll::-webkit-scrollbar,.wx-settings-scroll::-webkit-scrollbar{display:none}
.wx-profile{height:198px;box-sizing:border-box;background:white;padding:66px 20px 25px 29px;display:flex;gap:21px;position:relative}
.wx-avatar{flex:none;width:70px;height:70px;border-radius:7px;background-image:url('assets/wx-profile-reference.png');background-size:402px auto;background-position:-29px -120.5px}
.wx-profile-info{min-width:0;flex:1}.wx-profile-name{font-size:23px;font-weight:600;line-height:30px;letter-spacing:1px;margin:5px 0 6px}.wx-profile-id{font-size:16px;color:#777;white-space:nowrap;line-height:25px}.wx-profile-tools{display:flex;gap:8px;margin-top:8px}.wx-status-pill{border:1px solid #ddd;border-radius:18px;padding:2px 10px;color:#777;font-size:15px;line-height:21px}.wx-status-ring{border:1px solid #ddd;border-radius:50%;width:27px;height:27px;color:#777;display:grid;place-items:center}.wx-status-ring svg{width:19px;height:19px}.wx-qr{position:absolute;right:19px;top:77px;color:#5d759b;width:19px;height:19px}.wx-profile>.wx-chevron{position:absolute;right:21px;top:114px}
.wx-menu-group{margin-top:9px;background:#fff}.wx-menu-row{height:57px;width:100%;display:flex;align-items:center;text-align:left;padding:0 20px 0 18px;gap:19px;color:#000;font-size:18px;position:relative;border-radius:0;background:#fff;flex-shrink:0}.wx-menu-row+.wx-menu-row:before{content:'';height:1px;transform:scaleY(.5);background:#ddd;position:absolute;top:0;left:59px;right:0}.wx-menu-icon{width:22px;height:24px;flex:none;display:grid;place-items:center}.wx-menu-icon svg{width:24px;height:24px}.wx-menu-label{flex:1}.wx-chevron{width:9px;height:9px;border-top:1.7px solid #999;border-right:1.7px solid #999;transform:rotate(45deg);flex:none}.wx-menu-row:active,.wx-setting-row:active,.wx-session-button:active{background:#ddd}
.wx-tabbar{margin:0;flex:none;height:96px;box-sizing:border-box;padding:10px 0 29px;background:#f7f7f7;border-top:1px solid #e5e5e5}.wx-tabbar .tab{color:#111;font-size:11px;gap:5px}.wx-tabbar .tab.on{color:#008c45}.wx-tabbar svg{width:26px;height:26px}.wx-tabbar .tab.on[data-tab="me"] svg{fill:currentColor}.wx-tabbar .tab-badge{right:calc(50% - 34px);top:-5px;font-size:12px;height:20px;min-width:28px;border-radius:14px}
.wx-settings-nav{height:46px;flex:none;display:flex;align-items:center;justify-content:center;position:relative;background:#ededed;font-size:18px;font-weight:600;z-index:2}.wx-settings-back{position:absolute;left:6px;top:0;width:36px;height:46px;display:grid;place-items:center;color:#000}.wx-settings-back svg{width:25px;height:25px}
.wx-settings-search{height:45px;margin:4px 8px 14px;position:relative}.wx-settings-search input{width:100%;height:40px;border:0;border-radius:6px;background:#fff;outline:0;text-align:center;color:#111;font-size:18px;padding:0 16px}.wx-settings-search input::placeholder{color:#999}.wx-settings-search:focus-within input{text-align:left}.wx-search-hint{position:absolute;inset:0 0 5px;display:flex;align-items:center;justify-content:center;gap:7px;color:#999;font-size:18px;pointer-events:none}.wx-search-hint svg{width:20px;height:20px}.wx-settings-search:focus-within .wx-search-hint,.wx-settings-search input:not(:placeholder-shown)+.wx-search-hint{display:none}
.wx-setting-heading{height:40px;display:flex;align-items:flex-end;padding:0 16px 5px;box-sizing:border-box;color:#737373;font-size:15px;font-weight:400;margin:0}.wx-setting-row{width:100%;height:57px;background:#fff;display:flex;align-items:center;text-align:left;padding:0 20px 0 16px;gap:12px;color:#000;font-size:18px;position:relative;border-radius:0}.wx-setting-row+.wx-setting-row:before{content:'';position:absolute;left:16px;right:0;top:0;height:1px;background:#ddd;transform:scaleY(.5)}.wx-setting-label{white-space:nowrap}.wx-setting-meta{margin-left:auto;color:#777;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wx-setting-row>.wx-chevron{margin-left:auto}.wx-setting-meta+.wx-chevron{margin-left:0}.wx-plugin-bulb{width:17px;height:20px;color:#999;flex:none}.wx-session-button{display:block;width:100%;height:57px;text-align:center;background:#fff;color:#000;font-size:18px;margin-top:10px;border-radius:0}.wx-legal{padding:25px 8px 67px;display:flex;justify-content:center;align-items:center;gap:8px;color:#5b739c;white-space:nowrap}.wx-legal button{font-size:14px;color:inherit}.wx-legal span{font-size:12px;color:#bbb}.wx-search-empty{text-align:center;color:#888;padding:30px 0}.wx-setting-group[hidden],.wx-setting-row[hidden]{display:none}
.device.tablet .wx-profile{padding-top:36px;height:168px}.device.tablet .wx-qr{top:47px}.device.tablet .wx-profile>.wx-chevron{top:84px}.device.tablet .wx-tabbar{height:76px;padding-bottom:15px}


.wx-main-page{height:100%;min-height:0;overflow:hidden}.wx-main-page>.navbar{flex:none}.wx-main-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:none}.wx-main-scroll::-webkit-scrollbar{display:none}.wx-main-page>.wx-tabbar{margin-top:0}
.wx-personal-scroll{padding-bottom:20px}.wx-personal-group{background:#fff}.wx-personal-group+.wx-personal-group{margin-top:9px}.wx-personal-row{gap:12px}.wx-personal-value{margin-left:auto;min-width:0;color:#777;font-size:18px;text-align:right;display:flex;align-items:center;justify-content:flex-end;line-height:22px}.wx-personal-row>.wx-chevron{margin-left:0}.wx-personal-avatar{display:block;width:35px;height:35px;border-radius:4px;background-image:url('assets/wx-profile-reference.png');background-size:201px auto;background-position:-14.5px -60.25px}.wx-personal-qr{width:22px;height:22px}.wx-personal-signature{height:95px}.wx-personal-signature .wx-personal-value{max-width:246px;color:#888}.wx-personal-row[data-label="手机号"] .wx-personal-value{color:#888}
.wx-panshi-avatar{background:#3e7d5f;display:grid;place-items:center;color:#fff}.wx-panshi-avatar:after{content:"磐";font-size:28px}.wx-personal-avatar.wx-panshi-avatar:after{font-size:18px}

/* 微信聊天：固定头尾，中间消息独立滚动。 */
.wx-conversation{height:100%;min-height:0;overflow:hidden;background:#ededed;color:#111}.wx-conversation>.navbar,.wx-conversation>.right-head{height:46px;flex:none;background:#ededed;border-bottom:1px solid #ddd;position:relative;padding:0 12px;backdrop-filter:none}.wx-conversation .navbar .back{color:#111;width:24px}.wx-conversation .peer-name{font-size:19px!important;font-weight:600!important;color:#111}.wx-chat-more{position:absolute;right:16px;top:0;height:46px;letter-spacing:2px;font-size:19px;color:#111}.wx-chat-back{position:absolute;left:12px;top:0;height:46px;color:#111;display:grid;place-items:center}.wx-chat-back svg{width:22px;height:22px}
.wx-conversation .bubbles{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;padding:0 12px 12px;gap:18px}.wx-conversation .bubble-row{gap:12px}.wx-conversation .ava-sm{width:43px;height:43px;border-radius:4px}.wx-conversation .bubble{position:relative;max-width:calc(100% - 96px);border-radius:4px!important;min-height:43px;padding:10px 12px;font-size:18px;line-height:1.4;flex:none}.wx-conversation .bubble:before{content:'';position:absolute;top:16px;width:8px;height:8px;transform:rotate(45deg);background:inherit}.wx-conversation .theirs .bubble:before{left:-4px}.wx-conversation .mine .bubble:before{right:-4px}.wx-conversation .mine .bubble{background:#95ec69}.wx-conversation .date-chip{padding:10px 0 0;margin:0 0 2px}.wx-conversation .date-chip:empty{display:none}.wx-conversation .date-chip span{background:none;font-size:14px;color:#999;padding:0;border-radius:0}.wx-chat-self{background:url('assets/wx-profile-reference.png') -17.8px -74px / 247px auto!important}.wx-chat-mom{background:url('assets/wx-chat-reference.jpg') -12px -198px / 402px auto!important}.wx-call-bubble{display:flex;align-items:center;gap:9px}.wx-call-bubble svg{width:27px;height:22px;flex:none}
.wx-conversation .wx-composer{position:relative;flex:none;min-height:94px;padding:9px 10px 33px;gap:10px;background:#f7f7f7;border-top:1px solid #e3e3e3;display:flex;align-items:flex-start}.wx-composer .ico{width:28px;height:43px;flex:none;padding:0;display:grid;place-items:center;color:#080808}.wx-composer .ico svg{width:28px;height:28px}.wx-input-wrap{flex:1;min-width:0;position:relative}.wx-composer .input-bar{width:100%;height:43px;background:white;border:0;border-radius:7px;padding:6px 10px;outline:none;font-family:inherit;font-size:18px;color:#111}.wx-input-mic{display:none}
.device.tablet .tablet-split .left-pane{width:33.333%;min-width:0}.device.tablet .left-head{height:46px;background:#ededed}.device.tablet .left-pane .li-row{min-height:69px;padding:10px 12px}.device.tablet .left-pane .li-row.on{background:#e5e5e5}.device.tablet .left-pane .wx-tabbar{height:70px;padding:8px 0 12px}.device.tablet .wx-conversation .peer-name{font-size:17px!important}.device.tablet .wx-conversation .bubbles{padding:0 13px 24px;gap:20px}.device.tablet .wx-conversation .ava-sm{width:41px;height:41px}.device.tablet .wx-conversation .bubble{font-size:16px;min-height:41px;padding:10px 12px;max-width:75%}.device.tablet .wx-conversation .date-chip{padding:2px 0 7px;margin-bottom:4px}.device.tablet .wx-conversation .date-chip:not(:first-child){padding-top:16px}.device.tablet .wx-conversation .wx-composer{min-height:70px;padding:7px 9px 20px;gap:10px}.device.tablet .wx-composer .input-bar{border-radius:3px;padding-right:28px}.device.tablet .wx-input-mic{display:block;position:absolute;right:10px;top:12px;color:#777}.device.tablet .wx-composer .ico{width:24px}.device.tablet .wx-composer .ico svg{width:24px;height:24px}

/* 手机帖子详情：白底、通栏图片与固定互动栏。 */
.device.phone .dark-post{min-height:0;overflow:hidden;color:#333}.device.phone .dark-post .post-nav{height:64px;flex:none;border:0;padding:0 16px;gap:12px;background:#fff}.device.phone .post-nav .back{color:#333;width:20px;height:38px;flex:none}.device.phone .post-nav .back svg{width:28px;height:28px}.device.phone .post-nav .pa-ava{width:36px;height:36px}.dp-author-avatar{display:grid;place-items:center;background:#fcefe4;color:#bc8261;font-size:17px;border:1px solid #eee}.device.phone .post-nav .dp-name{font-size:15px;color:#333;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.device.phone .post-nav .nav-author{gap:10px}.device.phone .post-nav .dp-follow{border:1px solid #ff2442;color:#ff2442;border-radius:20px;padding:5px 13px;font-size:13px;white-space:nowrap}.device.phone .post-nav .nav-slot svg{width:26px;height:26px;color:#333}.device.phone .dark-post .dp-cover{padding:0}.device.phone .dp-cover .swipe{width:100%;height:auto;aspect-ratio:3 / 4;background:#fff}.device.phone .dp-cover .swipe img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:0}.dp-image-count{position:absolute;right:10px;top:10px;background:#999;color:#fff;font-size:12px;border-radius:16px;padding:4px 7px}.device.phone .dp-cover .swipe-btn{background:transparent;color:#888;width:30px;height:100%;top:0;transform:none;opacity:0}.device.phone .dp-cover .swipe:hover .swipe-btn,.device.phone .dp-cover .swipe-btn:focus-visible{opacity:1}.device.phone .dp-pagination{position:static;height:25px;transform:none;display:flex;align-items:center;justify-content:center;gap:5px}.device.phone .dark-post .dp-body{padding:0 16px}.device.phone .dp-body h1{font-size:18px;line-height:1.5;margin:0 0 8px;color:#333}.device.phone .dp-body p{font-size:16px;line-height:1.65;margin:0 0 12px;color:#333}.device.phone .dp-divider{text-align:left;margin:12px 0}.dp-search-pill{display:flex;align-items:center;gap:5px;max-width:100%;border:1px solid #eee;border-radius:6px;padding:5px 8px;font-size:12px;color:#333;margin:12px 0 18px}.dp-search-pill span{border-left:1px solid #ddd;padding-left:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dp-post-meta{display:flex;align-items:center;justify-content:space-between;color:#999;font-size:12px;padding:0 0 12px}.dp-post-meta button{border:1px solid #eee;border-radius:16px;padding:3px 7px;color:#444}.device.phone .dark-post .ip-comments{border-top:1px solid #eee;padding-top:20px}.device.phone .dark-post .ip-c-title{font-size:16px;font-weight:400;color:#333;margin-bottom:18px}.dp-comment-compose{display:flex;align-items:center;gap:12px;margin-bottom:22px}.dp-comment-avatar{height:36px;width:36px;flex:none;border-radius:50%;background:#ede5d9;display:grid;place-items:center;color:#8e775c}.dp-comment-compose>div{display:flex;align-items:center;flex:1;min-width:0;border-radius:22px;background:#f5f5f5;padding:9px 13px;gap:8px}.dp-comment-compose input{min-width:0;width:100%;border:0;outline:none;background:none;font-size:14px}.dp-comment-compose input::placeholder{color:#bbb}.dp-comment-compose svg{width:17px;height:17px;color:#aaa}.dp-comment-compose span{display:flex;gap:10px}.device.phone .dark-post .c-name{font-size:14px;color:#aaa}.device.phone .dark-post .c-body{font-size:14px;line-height:1.6;color:#333}.device.phone .dark-post .c-meta{font-size:11px}.device.phone .dark-post .dp-bar{height:92px;padding:10px 15px 32px;gap:14px;align-items:center;background:#fff}.device.phone .dp-bar .dp-say{font-size:14px;padding:9px 12px;border-radius:25px;background:#f5f5f5;min-width:0;color:#888;display:flex;align-items:center;gap:6px;text-align:left}.device.phone .dp-bar .dp-say svg{width:18px;height:18px;flex:none}.device.phone .dp-bar .dp-say span{overflow:hidden;text-overflow:ellipsis}.device.phone .dp-bar button:not(.dp-say){font-size:14px;gap:4px;color:#333;flex:none}.device.phone .dp-bar svg{width:26px;height:26px}.device.phone .dp-bar button[aria-pressed="true"]{color:#ff2442}.device.phone .dp-bar button[aria-pressed="true"] svg{fill:#ff2442}

.xs-page{height:100%;min-height:0;display:flex;flex-direction:column;background:#fff;color:#333}.xs-head{height:64px;display:flex;align-items:center;padding:8px 16px 8px 15px;gap:16px;flex:none}.xs-back{width:15px;display:grid;place-items:center;flex:none}.xs-back svg{width:26px;height:26px}.xs-search-form{display:flex;align-items:center;height:44px;flex:1;min-width:0;border:1px solid #eee;border-radius:20px;padding:0 12px 0 16px;gap:9px}.xs-search-form input{flex:1;min-width:0;border:0;outline:0;font:15px Arial,sans-serif;color:#333;background:none}.xs-search-form input::-webkit-search-cancel-button{display:none}.xs-clear{border-radius:50%;background:#ccc;color:#fff;width:15px;height:15px;line-height:14px;font-size:16px;flex:none}.xs-submit{border-left:1px solid #eee;padding-left:10px;font-size:15px;white-space:nowrap}.xs-tabs{height:40px;display:flex;align-items:stretch;justify-content:space-between;padding:0 16px;gap:13px;flex:none;overflow-x:auto;scrollbar-width:none}.xs-tabs button{position:relative;white-space:nowrap;font-size:16px;color:#777;flex:none;display:flex;align-items:center;gap:4px}.xs-tabs button.selected{color:#333;font-weight:600}.xs-tabs button.selected:after{content:'';position:absolute;bottom:5px;left:2px;width:27px;height:2px;background:#ff2442;border-radius:2px}.xs-filter{font-size:12px;color:#999;font-weight:400}.xs-tabs button:last-child{border-left:1px solid #eee;padding-left:9px;color:#333}.xs-tabs i{width:14px;height:14px;background:#a0eee2;border-radius:8px 8px 8px 0}.xs-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:none;background:#f8f8f8;padding:5px 5px 25px}.xs-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}.xs-grid>div{min-width:0}.xs-card{container-type:inline-size;border-radius:5px;overflow:hidden;background:white;margin-bottom:5px}.xs-open{display:block;width:100%;text-align:left}.xs-cover{width:100%;height:133.4cqw;background-image:url('assets/xhs-search-reference.png');background-repeat:no-repeat;background-size:207.7cqw auto}.xs-cover-0{background-position:-2.64cqw -82.42cqw}.xs-cover-1{background-position:-105.05cqw -82.42cqw}.xs-cover-2{height:120cqw;background-position:-2.64cqw -267.5cqw}.xs-cover-3{background-position:-105.05cqw -267.5cqw}.xs-card h2{font-size:14px;font-weight:500;line-height:1.5;padding:9px 10px 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:57px}.xs-card-foot{display:flex;align-items:center;gap:7px;padding:8px 10px 4px;min-width:0}.xs-avatar{width:24px;height:24px;flex:none;border-radius:50%;background:url('assets/xhs-search-reference.png') -15px -479px / 400px auto}.xs-avatar-alt{background-position:-213px -479px}.xs-author{font-size:12px;color:#777;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:17px}.xs-author small{display:block;color:#bbb;font-size:10px}.xs-like{display:flex;align-items:center;gap:4px;color:#999;font-size:13px;flex:none}.xs-like svg{width:16px;height:16px}.xs-like.is-liked svg{color:#ff2442}.xs-empty{text-align:center;color:#999;padding:70px 15px}.xs-users{background:#fff}.xs-user{display:flex;gap:12px;align-items:center;padding:20px 15px;border-bottom:1px solid #eee}.xs-preview{width:85%;max-height:90%;overflow:auto;padding:15px;background:#fff;border-radius:10px;color:#333;position:relative}.xs-preview>button{display:block;margin-left:auto;font-size:24px}.xs-preview h2{font-size:17px;line-height:1.5}.xs-preview p{font-size:13px;color:#888;margin-top:10px}.device.tablet .xs-grid{max-width:650px;margin:auto}.device.tablet .xs-tabs{justify-content:flex-start;gap:35px}
.browser:has(.bd-site-frame){height:100%;min-height:0;margin-top:0;overflow:hidden}.browser:has(.bd-site-frame)>.addrbar,.browser:has(.bd-site-frame)>.browser-toolbar{flex-shrink:0}.bd-result-submit{color:#4e6ef2;white-space:nowrap;font-size:14px;padding:5px}.bd-res-q.bd-input{width:0;flex:1;min-width:0}

.stage{padding:8px;justify-content:center;min-height:0;height:100dvh;flex:none}.device-wrap{flex:none}.device{transition:none}
.wx-work-message .bubble.wx-public-share-bubble{padding:0;background:#fff;max-width:100%;width:280px;color:#222}
.wx-public-share{padding:13px 13px 10px;text-align:left;white-space:normal}
.wx-public-share h3{font-size:17px;line-height:1.45;font-weight:400;margin:0 0 10px;overflow-wrap:anywhere}
.wx-public-share-summary{display:flex;gap:12px;align-items:flex-start}
.wx-public-share-summary p{flex:1;min-width:0;margin:0;font-size:14px;line-height:1.55;color:#888;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.wx-public-share-summary img{width:58px;height:58px;object-fit:cover;flex:none}
.wx-public-share footer{display:flex;align-items:center;gap:6px;margin-top:12px;padding-top:8px;border-top:1px solid #eee;color:#999;font-size:12px;line-height:1.4}
.wx-public-share footer svg{width:16px;height:16px;flex:none}

.app.qiandao-desktop{opacity:1;cursor:default}
.app.qiandao-desktop:hover{background:transparent}
.app.qiandao-desktop:active .app-ic{transform:none;filter:none}
.app.qiandao-desktop:active .app-name{opacity:1}
.app .qiandao-app-icon{background:#6846ff;display:flex;align-items:center;justify-content:center;color:#fff;overflow:hidden}

/* Original screenshot sprites: no redrawn lettering or logos. Coordinates use
   the 945 x 2048 reference preview; percentage scaling preserves source detail. */
.home .app-ic:has(>.desktop-reference-icon){overflow:hidden;border-radius:25%;box-shadow:none}
.home .desktop-reference-icon{display:block;flex:none;width:100%;height:100%;background-image:url('assets/desktop-icons-reference.jpg');background-repeat:no-repeat;background-size:647.2602739726027% 1402.7397260273972%;background-position-y:10.094637223974763%;border-radius:inherit}
.home .desktop-reference-qiandao{background-position-x:9.261576971214017%}
.home .desktop-reference-wechat{background-position-x:36.42052565707134%}
.home .desktop-reference-xhs{background-position-x:63.57947434292866%}
.home .desktop-reference-taobao{background-position-x:90.73842302878599%}

/* iOS WebKit may resolve a percentage-height flex child before .view receives
   its final height. Keep app shells tied to the simulated screen instead. */
.view > .wx-main-page,
.view > .wx-me-page,
.view > .phone-app,
.view > .browser {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}
.view > .wx-main-page > .wx-tabbar,
.view > .wx-me-page > .wx-tabbar,
.view > .phone-app > .phone-tabbar,
.view > .browser > .browser-toolbar {
  position: relative;
  bottom: auto;
  flex: 0 0 auto;
  margin-top: 0;
}
.view > .browser > .addrbar { flex: 0 0 auto; }
.view > .browser > .baidu-body { min-height: 0; overflow-y: auto; }
.view > .phone-app .dial-area { min-height: 0; overflow-y: auto; scrollbar-width: none; }
.view > .phone-app .dial-area::-webkit-scrollbar { display: none; }
