/* Pocket 官网:一幕一幕滚动推动 3D 手机。配色 = 纸白 / 墨黑 / 工牌黄。 */
:root {
  --paper: #FAF9F4; --paper2: #F2F1EB; --ink: #151515; --ink2: #55544E; --ink3: #6E6C63; --line: #E3E1D8; --yellow: #FFC53D;
  --night: #0A0A0C; --night-fg: #F4F3EE; --night-2: #A3A198;
  --nav: 56px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav); }
body { background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* 实体按键:墨边 + 硬投影,按下去沉 */
.key { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: 10px;
  background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--ink); font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .08s, box-shadow .08s; }
.key:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.key.key-yellow { background: var(--yellow); }
.key.small { height: 36px; padding: 0 14px; font-size: 14.5px; border-radius: 8px; box-shadow: 0 2.5px 0 var(--ink); }

/* 顶栏 */
.topbar { position: fixed; left: 0; right: 0; top: 0; z-index: 100; height: var(--nav); display: flex; align-items: center; gap: 28px; padding: 0 max(20px, 4vw);
  background: rgba(250, 249, 244, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1.5px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 16px/1 var(--mono); letter-spacing: .16em; text-decoration: none; }
.brand i { width: 17px; height: 17px; background: var(--ink); position: relative; flex: none; }
.brand i::after { content: ""; position: absolute; inset: 4px; background: var(--yellow); }
.links { display: flex; gap: 22px; font-size: 14px; }
.links a { color: var(--ink3); text-decoration: none; }
.links a:hover { color: var(--ink); }
.grow { flex: 1; }
/* 语言切换(2026-10-08):英文页 → 中文,中文页 → English;小号等宽,手机上和「下载」并排也放得下 */
.lang { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 9px; border: 1.5px solid var(--ink); border-radius: 7px; background: #fff;
  font: 700 12.5px/1 var(--mono); letter-spacing: .04em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.lang:hover { background: var(--paper2); }
/* 功能多了(2026-10-08 加了多引擎 / 搜索 / 接手):中等宽度先收紧,再藏掉最后两个 */
@media (max-width: 1320px) { .links { gap: 15px; font-size: 13.5px; } .topbar { gap: 20px; } }
@media (max-width: 1140px) { .links a.opt { display: none; } }

/* 每一幕:外层给滚动长度,里面一层钉在屏幕上 */
.stage { position: relative; height: var(--len, 240vh); background: var(--sbg, var(--paper)); }
.stage.gray { --sbg: var(--paper2); }
.stage.dark { --sbg: var(--night); color: var(--night-fg); }
#top { --len: 190vh; } #s-see { --len: 220vh; } #s-answer { --len: 240vh; } #s-art { --len: 250vh; } #s-send { --len: 250vh; } #s-usage { --len: 220vh; } #s-night { --len: 210vh; }
#s-engines { --len: 240vh; } #s-search { --len: 250vh; } #s-handoff { --len: 270vh; }
.view { position: sticky; top: var(--nav); height: calc(100vh - var(--nav)); overflow: hidden; display: grid; grid-template-columns: minmax(340px, 38%) 1fr; align-items: center; }
.copy { position: relative; z-index: 5; padding: 0 0 0 max(40px, 6vw); }
.eyebrow { margin: 0 0 14px; font: 700 14px/1.3 var(--mono); letter-spacing: .14em; color: var(--ink3); }
.eyebrow b { display: inline-block; margin-right: 10px; padding: 3px 7px; border: 1.5px solid var(--ink); background: var(--yellow); color: var(--ink); letter-spacing: .06em; }
.dark .eyebrow { color: var(--night-2); }
.copy h2 { margin: 0; font-size: clamp(34px, 4.3vw, 64px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.copy p { margin: 22px 0 0; max-width: 430px; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.65; color: var(--ink2); }
.dark .copy p { color: var(--night-2); }
.copy p b { color: var(--ink); font-weight: 700; }
.dark .copy p b { color: var(--night-fg); }
/* 标题逐行升起。脚本没跑起来(被拦、加载失败)时 3 秒后照样显示出来,不留一整页空白;脚本跑起来就由它按滚动来升 */
.rise { display: block; overflow: hidden; }
.rise > span { display: block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2, .9, .25, 1); animation: show-anyway 0s 3s forwards; }
.in .rise > span { transform: none; }
.in .rise:nth-child(2) > span { transition-delay: .08s; }
.fade { opacity: 0; transform: translateY(16px); transition: opacity .9s .2s, transform .9s .2s cubic-bezier(.2, .9, .25, 1); animation: show-anyway 0s 3s forwards; }
.in .fade { opacity: 1; transform: none; }
.js .rise > span, .js .fade { animation: none; }
@keyframes show-anyway { to { opacity: 1; transform: none; } }

.box { position: relative; height: 100%; min-width: 0; }
.scene { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--k, 1)); perspective: 2600px; perspective-origin: 50% 42%; }
#top .scene { width: 1400px; height: 980px; }
#s-see .scene, #s-answer .scene, #s-usage .scene, #s-engines .scene, #s-search .scene, #s-handoff .scene { width: 1000px; height: 980px; }
#s-art .scene { width: 1300px; height: 980px; }
#s-send .scene { width: 1400px; height: 980px; }
#s-night .scene { width: 1100px; height: 980px; }
/* 鼠标视差:site.js 跟着鼠标直接改每个 .cam 的 transform(2026-10-11 以前是改 :root 上的 --mx / --my,整页跟着重算样式) */
.cam { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(0deg) rotateY(0deg); transition: transform 1s cubic-bezier(.2, .9, .3, 1); }

/* 手机机身:正面玻璃 + 金属边一层层叠出厚度 + 背面(--i 由 site.js 设) */
.dev { position: absolute; left: 0; top: 0; width: 406px; height: 860px; transform-style: preserve-3d; will-change: transform; }
.dev-body { position: absolute; inset: 0; transform-style: preserve-3d; }
.dev-edge { position: absolute; inset: 0; border-radius: 60px; border: 5px solid hsl(220 4% calc(70% - var(--i) * 2.2%)); transform: translateZ(calc(var(--i) * -3.3px)); }
.dev-edge:nth-child(1) { border-color: #D7D9DD; }
.dev-side { position: absolute; transform-origin: 0 0; background: linear-gradient(90deg, #A9ACB2, #DADCE0 42%, #B8BBC0 70%, #8E9197); }
.dev-side.l { left: 0; top: 60px; width: 34px; height: 740px; transform: rotateY(90deg); }
.dev-side.r { left: 406px; top: 60px; width: 34px; height: 740px; transform: rotateY(90deg); }
.dev-side.t { left: 60px; top: 0; width: 286px; height: 34px; transform: rotateX(-90deg); background: linear-gradient(180deg, #A9ACB2, #DADCE0 42%, #B8BBC0 70%, #8E9197); }
.dev-side.b { left: 60px; top: 860px; width: 286px; height: 34px; transform: rotateX(-90deg); background: linear-gradient(180deg, #A9ACB2, #DADCE0 42%, #B8BBC0 70%, #8E9197); }
.dev-side.l::before, .dev-side.r::before { content: ""; position: absolute; left: 9px; right: 9px; border-radius: 5px; background: linear-gradient(90deg, #B4B7BC, #E4E6E9, #A7AAB0); }
.dev-side.l::before { top: 150px; height: 64px; box-shadow: 0 88px 0 #C9CBD0; }
.dev-side.r::before { top: 210px; height: 110px; }
.dev-front { position: absolute; inset: 0; border-radius: 60px; background: #0B0B0C; box-shadow: inset 0 0 0 2.5px #C7CACF, inset 0 0 0 4px #3A3B3F; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.dev-screen { position: absolute; left: 8px; top: 8px; width: 390px; height: 844px; border-radius: 52px; overflow: hidden; background: #000; isolation: isolate; }
.dev-island { position: absolute; left: 50%; top: 19px; width: 122px; height: 36px; margin-left: -61px; border-radius: 18px; background: #000; z-index: 80; }
.dev-glare { position: absolute; inset: 0; border-radius: 60px; pointer-events: none; z-index: 81;
  background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 18%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .07) 100%); }
.dev-back { position: absolute; inset: 0; border-radius: 60px; background: linear-gradient(150deg, #F0F0F2, #D4D5D9 60%, #C8C9CE); box-shadow: inset 0 0 0 2.5px #C7CACF;
  transform: translateZ(-34px) rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.dev-cam { position: absolute; left: 24px; top: 24px; width: 158px; height: 158px; border-radius: 40px; background: linear-gradient(150deg, #E4E5E8, #C4C6CB); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .12); }
.dev-cam b { position: absolute; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 42% 38%, #3C4252 0 12%, #0E1016 13% 44%, #2A2D35 45% 60%, #15161A 61%); box-shadow: 0 0 0 5px #BFC1C6, 0 0 0 6px rgba(0, 0, 0, .25); }
.dev-cam b:nth-child(1) { left: 14px; top: 14px; } .dev-cam b:nth-child(2) { left: 14px; top: 84px; } .dev-cam b:nth-child(3) { left: 84px; top: 49px; }
.dev-mark { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; background: #151515; }
.dev-mark::after { content: ""; position: absolute; inset: 11px; background: #FFC53D; }
.dev-shadow { position: absolute; left: 40px; right: 40px; bottom: -70px; height: 90px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .24), rgba(0, 0, 0, 0)); transform: translateZ(-80px) rotateX(78deg); pointer-events: none; }
.dark .dev-shadow { display: none; }
#top .dev-body { animation: rise 1.6s cubic-bezier(.2, .9, .25, 1) both; }
#top .dev:nth-of-type(2) .dev-body { animation-delay: .12s; }
#top .dev:nth-of-type(3) .dev-body { animation-delay: .24s; }
@keyframes rise { from { transform: translate3d(0, 460px, -200px) rotateX(42deg); } }

/* 从屏幕里浮出来的那张待处理卡(答那一幕) */
.pop { position: absolute; transform-style: preserve-3d; pointer-events: none; z-index: 90; }
.toast { position: absolute; left: 16px; right: 16px; bottom: 100px; z-index: 60; display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 8px 0 16px; border-radius: 10px;
  background: #151515; color: #F4F3EE; font-size: 15px; font-weight: 600; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .35s cubic-bezier(.2, .9, .3, 1); }
.toast b { color: #FFC53D; padding: 6px 10px; }
.toast.on { opacity: 1; transform: none; }

/* 产出环 */
.ring { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.orb { position: absolute; left: -130px; top: -100px; width: 260px; height: 200px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fff; overflow: hidden;
  box-shadow: 0 5px 0 var(--ink); backface-visibility: hidden; -webkit-backface-visibility: hidden; color: #151515; }
.orb .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 12px 8px; border-top: 1.5px solid var(--ink); background: var(--yellow); font: 700 12.5px var(--mono); }
.orb .cap small { display: block; font: 500 11px var(--font); color: #5A4611; }
.orb.doc { padding: 14px 14px 0; font-size: 11.5px; line-height: 1.5; color: #333; }
.orb h6 { margin: 0 0 7px; font-size: 14px; font-weight: 800; color: #111; }
.orb table { width: 100%; border-collapse: collapse; font-size: 11px; }
.orb td { padding: 3px 0; border-bottom: 1px solid #eee; }
.orb td:last-child { text-align: right; color: #888; font-family: var(--mono); }
.orb .bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; padding-top: 6px; }
.orb .bars i { flex: 1; background: #151515; }
.orb .bars i:nth-child(3) { background: #FFC53D; box-shadow: inset 0 0 0 1.5px #151515; }
.orb .d, .orb .a { font: 11px/1.6 var(--mono); white-space: pre; }
.orb .a { background: #E6F4EA; color: #1E6B34; } .orb .d { background: #FCE8E6; color: #A31515; }
.orb.pic { background: #FFF6DC; }
.orb.pic svg { position: absolute; left: 0; top: 0; width: 100%; height: 162px; }
.orb.zip { display: flex; align-items: center; justify-content: center; background: #F7F6F1; }
.orb.zip b { width: 62px; height: 76px; margin-bottom: 30px; border: 1.5px solid #151515; border-radius: 8px; background: #fff; box-shadow: 0 3px 0 #151515; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 9px; font: 700 11px var(--mono); letter-spacing: .1em; }
.orb.web { background: #FAF9F4; }
.orb.web .wb { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--yellow); border-bottom: 1.5px solid #151515; font: 700 9px var(--mono); letter-spacing: .14em; }
.orb.web .wb i { width: 10px; height: 10px; background: #151515; position: relative; }
.orb.web .wb i::after { content: ""; position: absolute; inset: 2.5px; background: #FFC53D; }
.orb.web h5 { margin: 12px 12px 4px; font-size: 17px; line-height: 1.2; font-weight: 800; }
.orb.web p { margin: 0 12px; font-size: 10px; color: #6E6C63; }

/* 终端(派活那一幕) */
.term { position: absolute; left: 0; top: 0; width: 600px; height: 430px; border: 1.5px solid #151515; border-radius: 14px; background: #1A1A1A; box-shadow: 0 8px 0 #151515, 0 40px 90px rgba(0, 0, 0, .25); overflow: hidden;
  color: #E5E5E5; font: 14px/1.7 var(--mono); }
.term .bar { position: relative; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: #2A2A2A; border-bottom: 1px solid #111; }
.term .bar i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.term .bar i:nth-child(2) { background: #FEBC2E; } .term .bar i:nth-child(3) { background: #28C840; }
.term .bar b { position: absolute; left: 0; right: 0; text-align: center; font: 500 13px var(--font); color: #A1A1A6; }
.term pre { margin: 0; padding: 16px 20px; font: inherit; white-space: pre-wrap; }
.term .me { color: #FFC53D; font-weight: 700; }
.term .ok { color: #5AD27A; }
.term .dim { color: #8A8A8E; }
.term .cur { display: inline-block; width: 8px; height: 16px; margin-left: 1px; vertical-align: -3px; background: #E5E5E5; animation: cur 1s steps(1) infinite; }
@keyframes cur { 50% { opacity: 0; } }

/* 首屏 */
#top .view { display: block; }
#top .box { position: absolute; inset: 0; }
#top .scene { transform: translate(-50%, -50%) translateY(var(--dy, 0px)) scale(var(--k, 1)); }
#top .copy { position: absolute; left: 0; right: 0; top: 0; padding: 6vh 24px 0; text-align: center; }
#top .copy h1 { margin: 0; font-size: clamp(40px, 6.2vw, 96px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
#top .copy p { margin: 20px auto 0; max-width: 700px; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.5; color: var(--ink2); }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* 夜间那一幕:两台下面的标签 */
.labels { position: absolute; left: 0; right: 0; bottom: 4%; display: flex; justify-content: center; gap: 24%; font-size: 17px; font-weight: 700; z-index: 5; }
.labels span small { display: block; font-size: 14px; font-weight: 400; color: var(--night-2); text-align: center; }

/* 下载 */
.download { padding: 110px max(20px, 6vw) 120px; background: var(--paper2); border-top: 1.5px solid var(--ink); }
.download h2 { margin: 0; font-size: clamp(34px, 4.3vw, 60px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.download .lead { max-width: 680px; margin: 16px 0 0; font-size: 17px; line-height: 1.65; color: var(--ink2); }
.wx-tip { max-width: 680px; margin: 20px 0 0; padding: 12px 16px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--yellow); box-shadow: 0 3px 0 var(--ink); font-size: 15px; line-height: 1.6; font-weight: 700; }
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; max-width: 1200px; margin-top: 40px; }
.pkg { display: flex; flex-direction: column; min-width: 0; padding: 18px 18px 16px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 0 4px 0 var(--ink); }
.pkg-head { display: flex; align-items: center; gap: 10px; }
.pkg-head h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 800; }
.pill { flex: none; padding: 3px 7px; border: 1.5px solid var(--ink); background: var(--yellow); font: 700 11px/1.2 var(--mono); letter-spacing: .08em; }
.pkg-meta { margin-top: 10px; font: 12px/1.5 var(--mono); color: var(--ink3); overflow-wrap: anywhere; }
.pkg-note { flex: 1; margin: 10px 0 16px; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.pkg-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pkg-links .key { height: auto; min-height: 42px; padding: 9px 16px; font-size: 15px; line-height: 1.25; max-width: 100%; white-space: normal; text-align: center; }   /* 英文按钮字长(Download Pocket-Windows-Setup.exe):放不下就在按钮里折行,不截掉两头 */
.pkg-links .alt { font-size: 14px; color: var(--ink3); }
/* Linux 卡(2026-10-19):一行安装命令 + 「复制命令」。宽屏上占两格,命令放得下一行;窄屏一格,命令在框里折行。点一下整行选中 */
.pkg-cmd { margin: 12px 0 0; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 8px; background: #151515; color: #F4F3EE;
  font: 13px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.pkg-cmd code { font: inherit; -webkit-user-select: all; user-select: all; }
.pkg-links button.key { cursor: pointer; }
@media (min-width: 640px) { .pkg.pkg-wide { grid-column: span 2; } }
.download .fine { max-width: 1200px; margin: 28px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--ink3); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 28px max(20px, 6vw) 40px; background: var(--ink); color: #A3A198; font-size: 13px; }
.foot .brand { color: #F4F3EE; }
.foot .brand i { background: #F4F3EE; }
.foot a { color: #F4F3EE; text-decoration: underline; text-underline-offset: 3px; }
.foot .brand i::after { background: var(--yellow); }

@media (max-width: 900px) {
  .links { display: none; }
  .view { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; }
  .copy { padding: 26px 22px 0; }
  .copy p { margin-top: 12px; }
  .eyebrow { margin-bottom: 8px; font-size: 12.5px; }
  #top .copy { padding-top: 4vh; }
  .labels { gap: 30%; font-size: 15px; }
}
/* 最窄的手机(320 宽):首屏大标题每行七八个字也排得下,不折成三行 */
@media (max-width: 359px) { #top .copy h1 { font-size: 34px; } }
/* 英文页(2026-10-08):首屏那段话两行排匀、各幕正文不留孤字(中文按字断行,不用这两条);英文词长,手机上首屏标题收小一点,一行一句不折;
   顶栏多了语言切换,窄屏把间距收紧 */
:lang(en) #top .copy p { text-wrap: balance; }
:lang(en) .copy p { text-wrap: pretty; }
@media (max-width: 480px) { :lang(en) #top .copy h1 { font-size: 36px; } }
@media (max-width: 359px) { :lang(en) #top .copy h1 { font-size: 30px; } }
@media (max-width: 420px) { .topbar { gap: 12px; padding: 0 16px; } }
@media (max-width: 359px) { .topbar { gap: 9px; padding: 0 12px; } .lang { padding: 0 7px; } }
/* ================= 手机 / 平板:轻 3D(2026-10-03) =================
 * 用户:「现在的网页不适配手机(模型会闪烁,交互也不方便)」→ 先做成平铺,嫌不好看 →「能不能还是有 3d 效果,但是解决之前的问题」。
 * 闪的根源:一整幕的几台手机共用一个三维空间(preserve-3d),机身靠十层金属边隔 3.3px 叠出厚度,手机上整幕又缩到 0.3 倍左右,
 * 层间距更小,转动时在 iOS Safari 上互相抢着显示;卡的根源:每一幕两倍多屏高的滚动长度把画面钉住,地址栏一伸一缩画面就跳。
 * 现在(site.js 在 <html> 上加 .lite:宽 ≤ 900px,或没有悬停、指针粗):不钉住、正常往下滚;每台手机自己一个透视,整台先压成一个平面
 * 再转(transform-style: flat)→ 没有层和层抢显示;机身厚度改用同一平面上的描边 + 偏移阴影画;转角跟着滚动走(site.js 的 lite 那段)。 */
.lite .stage { height: auto; }
.lite .view { position: relative; top: auto; height: auto; overflow: visible; display: block; }
.lite .copy { padding: 52px 22px 0; }
.lite #top .copy { position: relative; padding: calc(var(--nav) + 34px) 22px 0; transform: none !important; opacity: 1 !important; }
.lite .box, .lite #top .box { position: relative; inset: auto; height: auto; overflow: hidden; }
.lite .scene, .lite #top .scene { position: relative; left: auto; top: auto; width: auto !important; height: auto !important; transform: none !important; perspective: none; }
.lite .cam { position: relative; inset: auto; height: var(--camh, 620px); margin: 30px 0 92px; transform: none !important; transform-style: flat; transition: none; }
.lite .dev { transform-style: flat; will-change: transform; }
.lite .dev-body { transform-style: flat; animation: none !important; }
.lite .dev-edge, .lite .dev-side, .lite .dev-back, .lite .dev-shadow { display: none; }
.lite .dev-front { box-shadow: inset 0 0 0 2.5px #C7CACF, inset 0 0 0 4px #3A3B3F, 0 0 0 3px #DADCE0, 0 40px 70px -30px rgba(0, 0, 0, .4); }
/* 首屏:一台大手机往后仰,下半截渐隐;两边那两台、产出那圈产物卡在手机上不要(第二版) */
.lite #h-l, .lite #h-r, .lite #ring { display: none; }
.lite #top .cam { margin-bottom: 18px; -webkit-mask-image: linear-gradient(#000 52%, transparent 97%); mask-image: linear-gradient(#000 52%, transparent 97%); }
/* 近景卡:墨边圆角 + 硬投影(和 App 里的卡一个样子);里面只露屏幕上那一块,机身、灵动岛、反光都不要 */
.lite .zc { position: absolute; left: 0; top: 0; border: 1.5px solid var(--ink); border-radius: 22px; background: #FAF9F4; will-change: transform;
  box-shadow: 0 5px 0 var(--ink), 0 36px 50px -28px rgba(0, 0, 0, .38); }
.lite .zc-in { position: absolute; inset: 0; border-radius: 20.5px; overflow: hidden; clip-path: inset(0 round 20.5px); }
.lite .zc .dev { position: absolute; left: 0; top: 0; }
.lite .zc .dev-front { box-shadow: none; border-radius: 0; background: #FAF9F4; }
.lite .zc .dev-screen { border-radius: 0; }
.lite .zc .dev-island, .lite .zc .dev-glare { display: none; }
.lite .zc #term { border: 0; border-radius: 0; box-shadow: none; }
.lite .dark .zc { border-color: #3A3A3F; background: #0C0C0E; box-shadow: 0 36px 50px -28px rgba(0, 0, 0, .7); }
.lite .dark .zc .dev-front { background: #0C0C0E; }
.lite #s-night .cam { margin-bottom: 30px; }
.lite .labels { position: static; display: flex; justify-content: center; gap: 12px; padding: 0 22px 48px; margin-top: 0; }
.lite .labels span { width: calc((min(100vw - 44px, 420px) - 12px) / 2); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .cam { transform: none; }
}

/* ================= 自动降档第 3 档起(2026-10-12,site.js 在 <html> 上加 .p-flat) =================
 * 电脑没开显卡加速(软件渲染)或者实测一直掉帧:每台手机的机身压成一个平面(十层金属边、四条侧边、背面、地上的影子不画,
 * 软件合成时这些层每帧都要一层层叠,最费),金属边改成同一平面上的两圈描边 + 一道硬投影(和页面上按键的硬投影一个路子);
 * 顶栏不要毛玻璃,大片模糊阴影换成硬投影。手机照样斜着摆、跟着滚动转 */
.p-flat .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
.p-flat .cam { transition: none; }
.p-flat .dev, .p-flat .dev-body { transform-style: flat; }
.p-flat .dev-edge, .p-flat .dev-side, .p-flat .dev-back, .p-flat .dev-shadow { display: none; }
.p-flat .dev-front { box-shadow: inset 0 0 0 2.5px #C7CACF, inset 0 0 0 4px #3A3B3F, 0 0 0 3px #DADCE0, 0 9px 0 3px #A9ACB2; }
.p-flat .term { box-shadow: 0 8px 0 #151515; }
/* 第 4 档起再加 .p-2d:手机只平移、缩放(site.js 的 place2d),场景不要透视、不再是一个三维空间;产出那一圈立体的产物卡不要 */
.p-2d .scene { perspective: none; }
.p-2d .cam { transform-style: flat; }
.p-2d #ring { display: none; }
.lite.p-flat .dev-front { box-shadow: inset 0 0 0 2.5px #C7CACF, inset 0 0 0 4px #3A3B3F, 0 0 0 3px #DADCE0; }
.lite.p-flat .zc .dev-front { box-shadow: none; }
.lite.p-flat .zc { box-shadow: 0 5px 0 var(--ink); }
.lite.p-flat .dark .zc { box-shadow: none; }

/* ================= 手机里的 App 画面(都挂在 .ap 下) ================= */
/* ---------- App 里面:两套配色用变量换 ---------- */
  .app { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
  .ap { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", sans-serif; font-size: 17px; -webkit-font-smoothing: antialiased; color: var(--fg); }
  .ap button { font: inherit; color: inherit; cursor: pointer; }
  .ap.dark { --fg: #F4F3EE; --fg2: #C9C7C0; --fg3: #A3A198; --fg4: #66655F; --panel: #151515; --panel2: #1F1F1D; --pline: #F4F3EE; --div: #2F2E2B; --pshadow: none; --orbit: #FFC53D; --key-side: #8C6A12; --strip-bg: #151515; --strip-line: #3A3935; --tab-on: #FFC53D; --card-shadow: #FFC53D; --chip: transparent; --chip-fg: #FFC53D; --mark: #F4F3EE; --mark-core: #151515; --ok: #45C07E; --err: #E0524D; --warn: #F0A83A; --dock: #151515; --dock-line: #F4F3EE; --field: #1F1F1D; }
  .ap.light { --fg: #151515; --fg2: #55544E; --fg3: #6E6C63; --fg4: #A3A198; --panel: #FFFFFF; --panel2: #F7F6F1; --pline: #151515; --div: #E3E1D8; --pshadow: 0 4px 0 #151515; --orbit: #151515; --key-side: #151515; --strip-bg: #FAF9F4; --strip-line: #151515; --tab-on: #151515; --card-shadow: #151515; --chip: #FFC53D; --chip-fg: #151515; --mark: #151515; --mark-core: #FFC53D; --ok: #1C8C4E; --err: #C9302C; --warn: #B76E00; --dock: #FAF9F4; --dock-line: #151515; --field: #FFFFFF; }
  .ap canvas.sea { position: absolute; left: 0; top: 0; width: 390px; height: 844px; display: block; }
  .ap .scrim { position: absolute; left: 0; right: 0; top: 330px; bottom: 0; pointer-events: none; transition: opacity .3s; }
  .ap .sb { position: absolute; left: 0; right: 0; top: 0; height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 3px 26px 0 44px; font: 600 16.5px -apple-system, "SF Pro Text", sans-serif; letter-spacing: -0.2px; z-index: 40; pointer-events: none; }
  .ap .sb svg { display: block; }
  .ap .hbar { position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--fg); opacity: .9; z-index: 45; pointer-events: none; }
  .ap .tab ~ .hbar { background: #F4F3EE; }
  .ap.chatting .hbar { background: var(--fg); }

  /* 页面层:切换时淡入淡出,底下的针海不动 */
  .ap .scr { position: absolute; inset: 0; z-index: 10; opacity: 0; visibility: hidden; transition: opacity .18s, visibility 0s .18s; }
  .ap .scr.on { opacity: 1; visibility: visible; transition: opacity .18s; }
  .ap .scr-chat { z-index: 30; opacity: 1; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.9,.25,1), visibility 0s .3s; }
  .ap .scr-chat.on { transform: none; transition: transform .3s cubic-bezier(.2,.9,.25,1); }

  /* 顶上:导航 + 大标题,浮在远处的雾上 */
  .ap .nav { position: absolute; left: 0; right: 0; top: 47px; height: 44px; display: flex; align-items: center; gap: 4px; padding: 0 10px 0 16px; }
  .ap .brandmark { flex: 1; display: flex; align-items: center; gap: 8px; font: 700 15px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.14em; }
  .ap .brandmark i { flex: none; width: 16px; height: 16px; background: var(--mark); position: relative; }
  .ap .brandmark i::after { content: ""; position: absolute; inset: 3px; background: var(--mark-core); }
  .ap .ib { width: 36px; height: 36px; border: 0; background: none; display: flex; align-items: center; justify-content: center; padding: 0; }
  .ap .k { height: 34px; padding: 0 13px; border: 1.5px solid #151515; border-radius: 7px; background: #FFFFFF; color: #151515; font-size: 14px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 2.5px 0 var(--key-side, #151515); white-space: nowrap; }
  .ap .k.y { background: #FFC53D; }
  .ap .k.sq { width: 34px; padding: 0; }
  .ap .k.red { color: #C9302C; }
  .ap .k { color: #151515; }
  .ap .k:active { transform: translateY(2.5px); box-shadow: 0 0 0 #151515; }
  .ap .head { position: absolute; left: 0; right: 0; top: 91px; padding: 4px 16px 0; pointer-events: none; }
  .ap .hl { margin: 0; font-size: 30px; line-height: 38px; font-weight: 800; letter-spacing: -0.5px; }
  .ap .hl .n { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--chip-fg); background: var(--chip); padding: 0 5px; margin-right: 1px; border-radius: 3px; }
  .ap .hsub { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--fg2); }
  .ap .hsub b { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--fg); }
  .ap .hsub u { color: var(--fg); font-weight: 700; text-decoration-thickness: 1.4px; }

  /* 文字标签页:实底的一条 */
  .ap .tabs { position: absolute; left: 0; right: 0; height: 40px; display: flex; gap: 20px; padding: 0 16px; background: var(--strip-bg); border-top: 1.5px solid var(--strip-line); border-bottom: 1.5px solid var(--strip-line); }
  .ap .tabs span { position: relative; display: flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 600; color: var(--fg3); white-space: nowrap; }
  .ap .tabs span b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; }
  .ap .tabs span.on { color: var(--fg); }
  .ap .tabs span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 4px; background: var(--tab-on); }

  /* 可以上下滚的内容区(针海不跟着滚) */
  .ap .list { position: absolute; left: 0; right: 0; bottom: 83px; overflow-y: auto; overflow-x: hidden; padding: 14px 16px 22px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: none; }
  .ap .list::-webkit-scrollbar { display: none; }

  /* 待处理卡:白卡墨边硬投影(深色时投影是黄的) */
  .ap .pcard { flex: none; padding: 10px 12px 13px; border: 1.5px solid #151515; border-radius: 12px; background: #FFFFFF; color: #151515; box-shadow: 0 4px 0 var(--card-shadow); cursor: pointer; }
  .ap .ph { display: flex; align-items: center; gap: 8px; height: 22px; }
  .ap .dot { flex: none; width: 14px; height: 14px; background: #151515; position: relative; }
  .ap .dot::after { content: ""; position: absolute; inset: 3px; background: #FFC53D; }
  .ap .ph b { min-width: 0; font-size: 16px; line-height: 22px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap .ph .en { flex: none; font-size: 12.5px; color: #6E6C63; }
  .ap .ph .tm { margin-left: auto; flex: none; font-size: 12.5px; font-weight: 800; color: #B76E00; }
  .ap .pm { margin: 3px 0 0 22px; font-size: 13px; line-height: 18px; color: #6E6C63; }
  .ap .pcode { display: flex; align-items: center; gap: 8px; margin: 9px 0 0 22px; padding: 9px 12px; border-radius: 7px; background: #151515; color: #F4F3EE; font: 700 15px ui-monospace, "SF Mono", Menlo, monospace; }
  .ap .pcode::before { content: "$"; color: #FFC53D; }
  .ap .pcode small { margin-left: auto; font: 500 11px -apple-system, "PingFang SC", sans-serif; color: #A3A198; }
  .ap .pact { display: flex; gap: 8px; margin: 12px 0 0 22px; }
  .ap .pact .k { flex: 1; height: 36px; box-shadow: 0 2.5px 0 #151515; }

  /* 面板:深色 = 墨底纸线,浅色 = 白底墨线 + 硬投影 */
  .ap .grp { flex: none; border: 1.5px solid var(--pline); border-radius: 12px; background: var(--panel); box-shadow: var(--pshadow); overflow: hidden; }
  .ap .grp > header { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 14px 4px 16px; }
  .ap .grp h2 { margin: 0; font-size: 15px; font-weight: 800; color: var(--fg); }
  .ap .grp > header span { font-size: 12.5px; color: var(--fg3); }
  .ap .grp > header span b { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--fg); }
  .ap .row { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 12px; padding: 9px 14px 10px 16px; cursor: pointer; }
  .ap .row:active { background: color-mix(in srgb, var(--fg) 6%, transparent); }
  .ap .row + .row::before { content: ""; position: absolute; left: 42px; right: 0; top: 0; height: 1px; background: var(--div); }
  .ap .g { position: relative; display: block; flex: none; width: 14px; height: 14px; margin-top: 4px; border: 1.5px solid var(--fg); }
  .ap .g.r::after { content: ""; position: absolute; left: 1px; top: 1px; width: 4px; height: 4px; background: var(--orbit); animation: orbit 1.2s steps(1, end) infinite; }
  .ap .g.d::after { content: ""; position: absolute; left: 3.2px; top: 0.5px; width: 3px; height: 6.5px; border: solid var(--fg); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
  .ap .g.e { border-color: #C9302C; background: #C9302C; }
  .ap .g.e::after { content: "!"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font: 800 9.5px/1 ui-monospace, Menlo, monospace; }
  .ap .g.w { border: 0; background: var(--mark); }
  .ap .g.w::after { content: ""; position: absolute; inset: 3px; background: #FFC53D; }
  @keyframes orbit { 0% { transform: none; } 25% { transform: translateX(4px); } 50% { transform: translate(4px, 4px); } 75% { transform: translateY(4px); } }
  .ap .rm { min-width: 0; }
  .ap .r1 { display: flex; align-items: baseline; gap: 7px; }
  .ap .r1 b { min-width: 0; font-size: 16px; line-height: 22px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap .r1 .en { flex: none; font-size: 12.5px; color: var(--fg3); }
  .ap .r1 .tm { margin-left: auto; flex: none; font: 700 13px/22px ui-monospace, "SF Mono", Menlo, monospace; color: var(--fg); }
  .ap .row.dn .r1 .tm { color: var(--fg3); font-weight: 600; }
  .ap .r2 { margin-top: 1px; font-size: 13px; line-height: 18px; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap .err { color: var(--err); font-weight: 700; }

  /* 底栏:墨黑,选中的是黄 */
  .ap .tab { position: absolute; left: 0; right: 0; bottom: 0; height: 83px; padding: 8px 6px 32px; background: #151515; display: flex; z-index: 20; }
  .ap .tab button { position: relative; flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 650; color: #A3A198; }
  .ap .tab button[aria-current] { color: #FFC53D; }
  .ap .tab button[aria-current]::before { content: ""; position: absolute; top: -8px; left: calc(50% - 15px); width: 30px; height: 3.5px; background: #FFC53D; }
  .ap .tb { position: absolute; top: -3px; left: 50%; margin-left: 6px; min-width: 18px; height: 17px; padding: 0 4px; border-radius: 4px; background: #FFC53D; color: #151515; font: 700 11px/17px ui-monospace, Menlo, monospace; text-align: center; }

  /* ---------- 产物:立体画廊浮在针海上 ---------- */
  .ap .flow { position: absolute; left: 0; right: 0; top: 206px; height: 250px; perspective: 900px; perspective-origin: 50% 40%; }
  .ap .rig { position: absolute; inset: 0; transform-style: preserve-3d; }
  .ap .fi { position: absolute; left: 50%; top: 8px; width: 168px; height: 212px; margin-left: -84px; border: 1.5px solid #151515; border-radius: 9px; overflow: hidden; background: #FFFFFF; color: #151515; cursor: pointer; transition: transform .5s cubic-bezier(.2,.9,.25,1), opacity .4s, box-shadow .3s; backface-visibility: hidden; }
  .ap .fi.mid { box-shadow: 0 5px 0 var(--card-shadow); }
  .ap .art { position: absolute; inset: 0; background: #FFFFFF; }
  .ap .art.doc { padding: 12px 12px 0; font-size: 10.5px; line-height: 1.5; color: #333; }
  .ap .art h6 { margin: 0 0 7px; font-size: 12.5px; font-weight: 700; color: #111; }
  .ap .art table { width: 100%; border-collapse: collapse; font-size: 10px; }
  .ap .art td { padding: 3px 0; border-bottom: 1px solid #EEE; }
  .ap .art td:last-child { text-align: right; color: #888; font-family: ui-monospace, Menlo, monospace; }
  .ap .art .bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 8px; }
  .ap .art .bars i { flex: 1; background: #151515; }
  .ap .art .bars i:nth-child(3) { background: #FFC53D; box-shadow: inset 0 0 0 1.5px #151515; }
  .ap .art .diff div, .ap .art.diff div { font: 10px/1.6 ui-monospace, Menlo, monospace; white-space: pre; }
  .ap .art .a { background: #E6F4EA; color: #1E6B34; } .ap .art .d { background: #FCE8E6; color: #A31515; }
  .ap .art.zip { display: flex; align-items: center; justify-content: center; background: #F7F6F1; }
  .ap .art.zip b { width: 62px; height: 78px; border: 1.5px solid #151515; border-radius: 8px; background: #fff; box-shadow: 0 3px 0 #151515; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 9px; font: 700 11px ui-monospace, Menlo, monospace; letter-spacing: .1em; }
  .ap .art.cat { background: #FFF6DC; display: flex; align-items: center; justify-content: center; }
  .ap .art.web { background: #FAF9F4; }
  .ap .art.web .wb { height: 34px; background: #FFC53D; border-bottom: 1.5px solid #151515; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
  .ap .art.web .wb i { width: 10px; height: 10px; background: #151515; position: relative; }
  .ap .art.web .wb i::after { content: ""; position: absolute; inset: 2.5px; background: #FFC53D; }
  .ap .art.web .wb span { font: 700 8px ui-monospace, Menlo, monospace; letter-spacing: .14em; }
  .ap .art.web h5 { margin: 12px 10px 6px; font-size: 15px; line-height: 1.2; font-weight: 800; }
  .ap .art.web p { margin: 0 10px; font-size: 9px; color: #6E6C63; line-height: 1.5; }
  .ap .art.web .ph2 { margin: 10px auto 0; width: 62px; height: 104px; border: 1.5px solid #151515; border-radius: 11px; background: #151515; position: relative; overflow: hidden; }
  .ap .art.web .ph2::before { content: ""; position: absolute; left: 4px; right: 4px; top: 4px; height: 22px; border-radius: 7px 7px 0 0; background: #FFC53D; }
  .ap .art.web .ph2::after { content: ""; position: absolute; left: 4px; right: 4px; top: 30px; bottom: 4px; border-radius: 0 0 7px 7px; background: repeating-linear-gradient(#F4F3EE 0 9px, #FAF9F4 9px 13px); }
  .ap .sheet { position: absolute; left: 16px; right: 16px; border: 1.5px solid var(--pline); border-radius: 12px; background: var(--panel); box-shadow: var(--pshadow); }
  .ap .art-sheet { top: 478px; padding: 12px 14px 14px; text-align: center; }
  .ap .art-sheet b.nm { display: block; font: 700 15.5px ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap .art-sheet .mt { display: block; margin-top: 2px; font-size: 12.5px; color: var(--fg3); }
  .ap .acts { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
  .ap .acts .k { height: 36px; padding: 0 18px; }
  .ap .lbl { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--div); font-size: 14px; font-weight: 750; text-align: left; }
  .ap .lbl span { font: 600 12.5px ui-monospace, Menlo, monospace; color: var(--fg3); }
  .ap .grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 8px; }
  .ap .grid5 i { aspect-ratio: 1; border: 1px solid var(--pline); border-radius: 5px; display: flex; align-items: center; justify-content: center; font: 700 8.5px ui-monospace, Menlo, monospace; letter-spacing: .06em; color: #151515; background: #FFFFFF; }
  .ap .grid5 i.y { background: #FFC53D; } .ap .grid5 i.p { background: #FFF6DC; } .ap .grid5 i.k2 { background: #151515; color: #FFC53D; }

  /* ---------- 设备 ---------- */
  .ap .pc { padding: 14px 14px 10px; }
  .ap .pc-top { display: flex; align-items: flex-start; gap: 12px; }
  .ap .pc-ic { flex: none; width: 44px; height: 44px; border: 1.5px solid var(--pline); border-radius: 7px; display: flex; align-items: center; justify-content: center; background: var(--panel2); color: var(--fg3); }
  .ap .pc-ic.on { background: #FFC53D; color: #151515; border-color: #151515; }
  .ap .pc-nm { flex: 1; min-width: 0; }
  .ap .pc-nm b { display: block; font-size: 17.5px; line-height: 23px; font-weight: 800; }
  .ap .pc-nm span { display: block; margin-top: 2px; font-size: 14px; line-height: 19px; color: var(--fg2); }
  .ap .pc-st { flex: none; display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; color: var(--fg3); }
  .ap .pc-st i { width: 8px; height: 8px; background: currentColor; }
  .ap .pc-st.on { color: var(--ok); }
  .ap .perm { margin-top: 12px; padding: 9px 11px; border-radius: 8px; background: var(--panel2); font-size: 13.5px; line-height: 1.45; color: var(--fg2); }
  .ap .perm.bad b { display: block; color: var(--warn); font-size: 14.5px; }
  .ap .perm.bad p { margin: 4px 0 0; }
  .ap .pc-foot { display: flex; justify-content: flex-end; margin-top: 4px; }
  .ap .pc-foot button { border: 0; background: none; padding: 8px 2px 2px 10px; font-size: 14px; font-weight: 700; color: var(--err); }
  /* 额度与余额(2026-10-05,照 App 设备页的 UsageSection):左边引擎名 + 套餐 + 多久以前,右边额度条 / 余额;
     额度条 10 格,用了几成亮几格,≥80% 琥珀色、用完红色 */
  .ap .use { margin-top: 12px; border-top: 1.5px solid var(--pline); }
  .ap .use-h { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
  .ap .use-h b { font-size: 13px; font-weight: 700; color: var(--fg3); }
  .ap .use-h span { display: flex; align-items: center; gap: 4px; padding: 4px 0 4px 12px; font-size: 12px; color: var(--fg3); }
  .ap .ur { display: grid; grid-template-columns: 90px minmax(0, 1fr); column-gap: 10px; padding: 8px 0; }
  .ap .ur + .ur { border-top: 1px solid var(--div); }
  .ap .ue { min-width: 0; }
  .ap .ue b { display: block; font-size: 14px; line-height: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap .ue small { display: block; font-size: 11.5px; line-height: 15px; color: var(--fg3); white-space: nowrap; }
  .ap .ue small.ago { color: var(--fg4); }
  .ap .uv { min-width: 0; }
  .ap .ql { display: flex; align-items: center; gap: 8px; min-height: 20px; }
  .ap .qs + .ql { margin-top: 6px; }
  .ap .qk { flex: none; width: 40px; font-size: 12.5px; color: var(--fg2); white-space: nowrap; }
  .ap .um { flex: 1; max-width: 120px; height: 10px; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; }
  .ap .um i { background: var(--div); transition: background-color .35s; }
  .ap .um i.f { background: var(--fg); }
  .ap .um.w i.f { background: var(--warn); }
  .ap .um.x i.f { background: var(--err); }
  .ap .qp { margin-left: auto; font: 700 14px/20px ui-monospace, "SF Mono", Menlo, monospace; }
  .ap .qv { margin-left: auto; font-size: 12.5px; color: var(--fg2); white-space: nowrap; }
  .ap .qv b { font: 700 14px/20px ui-monospace, "SF Mono", Menlo, monospace; color: var(--fg); }
  .ap .qs { padding-left: 48px; font-size: 12px; line-height: 17px; color: var(--fg3); }
  .ap .qs.w { color: var(--warn); font-weight: 700; }
  .ap .qs.x { color: var(--err); font-weight: 700; }
  .ap .addbox { padding: 14px; text-align: center; }
  .ap .addbox .k { width: 100%; height: 46px; font-size: 16px; }
  .ap .addbox p { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--fg3); }

  /* ---------- 我的 ---------- */
  .ap .ir { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; }
  .ap .ir + .ir { border-top: 1px solid var(--div); }
  .ap .ir svg { flex: none; color: var(--fg2); }
  .ap .ir .t { flex: 1; min-width: 0; font-size: 16px; }
  .ap .ir .t small { display: block; font-size: 12.5px; color: var(--fg3); }
  .ap .ir .v { flex: none; font-size: 15px; color: var(--fg3); max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap .ir .v.ok { color: var(--ok); }
  .ap .ir.danger .t { color: var(--err); font-weight: 600; }
  .ap .ir.danger svg { color: var(--err); }
  .ap .gt { padding: 10px 14px 2px; font-size: 13.5px; font-weight: 700; color: var(--fg3); }
  .ap .gf { padding: 2px 14px 12px; font-size: 12.5px; line-height: 1.5; color: var(--fg3); }

  /* ---------- 对话页 ---------- */
  .ap .dnav { position: absolute; left: 0; right: 0; top: 47px; height: 44px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 0 6px; }
  .ap .dnav .bk { width: 40px; height: 40px; border: 0; background: none; display: flex; align-items: center; justify-content: center; padding: 0; }
  .ap .dnav .tt { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; font-size: 16.5px; font-weight: 750; }
  .ap .dnav .tt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap .dnav .ib { justify-self: end; }
  .ap .stl { position: absolute; left: 0; right: 0; top: 91px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--strip-bg); border-top: 1.5px solid var(--strip-line); border-bottom: 1.5px solid var(--strip-line); font-size: 14.5px; }
  .ap .stl .g { margin-top: 0; width: 13px; height: 13px; }
  .ap .stl b { font-weight: 800; }
  .ap .stl .s { color: var(--fg3); font-size: 13.5px; }
  .ap .stl .stop { margin-left: auto; height: 28px; padding: 0 11px; border: 1.5px solid #151515; border-radius: 7px; background: #FFFFFF; color: #C9302C; font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 5px; box-shadow: 0 2px 0 var(--key-side); }
  .ap .stl .stop i { width: 9px; height: 9px; background: #C9302C; }
  .ap .cscroll { position: absolute; left: 0; right: 0; top: 131px; bottom: 92px; overflow-y: auto; overflow-x: hidden; padding: 64px 16px 18px; scrollbar-width: none; }
  .ap .cscroll::-webkit-scrollbar { display: none; }
  .ap .csheet { border: 1.5px solid var(--pline); border-radius: 12px; background: var(--panel); box-shadow: var(--pshadow); padding: 12px 14px 16px; }
  .ap .hero { position: relative; height: 170px; border: 1.5px solid #151515; border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
  .ap .hero .art { inset: 0 0 42px; }
  .ap .hero .cap { position: absolute; left: 0; right: 0; bottom: 0; height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 12px; background: #FFC53D; border-top: 1.5px solid #151515; color: #151515; }
  .ap .hero .cap b { display: block; font: 700 12.5px ui-monospace, Menlo, monospace; }
  .ap .hero .cap small { display: block; font-size: 11px; color: #5A4611; }
  .ap .hero .cap .k { height: 28px; padding: 0 11px; font-size: 13px; box-shadow: 0 2px 0 #151515; }
  .ap .spec { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1.5px solid var(--pline); border-bottom: 1.5px solid var(--pline); }
  .ap .spec div { min-width: 0; padding: 6px 0 7px; }
  .ap .spec div:nth-child(odd) { padding-right: 10px; border-right: 1px solid var(--div); }
  .ap .spec div:nth-child(even) { padding-left: 12px; }
  .ap .spec div:nth-child(-n+2) { border-bottom: 1px solid var(--div); }
  .ap .spec dt { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .06em; color: var(--fg3); }
  .ap .spec dd { margin: 2px 0 0; font-size: 14px; line-height: 19px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap .spec dd.w { color: var(--warn); } .ap .spec dd.ok { color: var(--ok); } .ap .spec dd.e { color: var(--err); }
  .ap .log { display: flex; flex-direction: column; gap: 11px; margin-top: 14px; }
  .ap .me { align-self: flex-end; max-width: 260px; padding: 8px 12px; border: 1.5px solid #151515; border-radius: 10px 10px 2px 10px; background: #FFC53D; color: #151515; font-size: 15px; line-height: 22px; }
  .ap .ai { font-size: 15px; line-height: 23px; color: var(--fg); }
  .ap .ai small { display: block; margin-bottom: 2px; font: 600 11px ui-monospace, Menlo, monospace; letter-spacing: .08em; color: var(--fg3); }
  .ap .steps { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--div); border-radius: 8px; background: var(--panel2); font-size: 14px; font-weight: 700; }
  .ap .steps .g { margin-top: 0; width: 13px; height: 13px; }
  .ap .steps svg { margin-left: auto; }
  .ap .imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .ap .imgs i { position: relative; aspect-ratio: 1; border: 1.5px solid #151515; border-radius: 6px; overflow: hidden; background: #FFF6DC; }
  .ap .imgs i svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .ap .file { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 11px; border: 1px solid var(--div); border-radius: 8px; }
  .ap .file b { flex: 1; min-width: 0; font: 700 13px ui-monospace, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap .file span { font-size: 12.5px; color: var(--fg3); }
  .ap .file .k { width: 30px; height: 30px; padding: 0; box-shadow: 0 2px 0 var(--key-side); }
  .ap .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 20px; color: var(--fg2); }
  .ap .dock { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px 34px; background: var(--dock); border-top: 1.5px solid var(--dock-line); }
  .ap .ask { margin-bottom: 10px; padding: 10px 12px 12px; border: 1.5px solid #151515; border-radius: 12px; background: #FFFFFF; color: #151515; box-shadow: 0 3px 0 var(--card-shadow); }
  .ap .ask .a1 { display: flex; justify-content: space-between; font-size: 12.5px; color: #6E6C63; }
  .ap .ask .a1 b { color: #B76E00; }
  .ap .ask .pcode { margin-left: 0; }
  .ap .ask .pact { margin-left: 0; }
  .ap .din { display: flex; align-items: center; gap: 8px; }
  .ap .din .k { width: 40px; height: 40px; padding: 0; border-radius: 8px; }
  .ap .din .f { flex: 1; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 12px; border: 1.5px solid var(--pline); border-radius: 8px; background: var(--field); font-size: 15px; color: var(--fg3); }

  /* 位置与柱高;对话页的颜色标记;打字时输入框里的字用正文色 */
  .ap .top160 { top: 160px; } .ap .top172 { top: 172px; } .ap .top300 { top: 300px; } .ap .top340 { top: 340px; }
  .bars i.h30 { height: 30%; } .bars i.h36 { height: 36%; } .bars i.h44 { height: 44%; } .bars i.h48 { height: 48%; } .bars i.h55 { height: 55%; } .bars i.h62 { height: 62%; } .bars i.h80 { height: 80%; }
  .ap .imgs i.flip svg { transform: scaleX(-1); } .ap .imgs i.dim { filter: grayscale(.2) brightness(.96); }
  .ap .stl b.w { color: var(--warn); } .ap .stl b.ok { color: var(--ok); } .ap .stl b.e { color: var(--err); }
  .ap .c-hint.typing { color: var(--fg); }

  /* ---------- 新建会话:选 AI、模型、思考深度(2026-10-08,多引擎那一幕) ---------- */
  .ap .scr-new, .ap .scr-search { z-index: 30; }
  .ap.pushed .tab { visibility: hidden; }
  .ap.pushed .hbar { background: var(--fg); }
  .ap .nchips { position: absolute; left: 0; right: 0; top: 91px; display: flex; gap: 8px; padding: 4px 16px 0; }
  .ap .nchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 1.5px solid var(--pline); border-radius: 7px; background: var(--panel);
    box-shadow: 0 2.5px 0 var(--key-side); font-size: 14px; font-weight: 650; white-space: nowrap; }
  .ap .nchip svg { flex: none; color: var(--fg3); }
  .ap .top136 { top: 136px; } .ap .top118 { top: 118px; }
  .ap .scr-new .list { bottom: 92px; }
  .ap .scr-search .list { bottom: 0; }
  .ap .eng { position: relative; transition: background-color .3s; }
  .ap .eng + .eng::before { content: ""; position: absolute; left: 58px; right: 0; top: 0; height: 1px; background: var(--div); }
  .ap .eng.on { background: var(--panel2); }
  .ap .eng.on::before, .ap .eng.on + .eng::before { left: 0; }
  .ap .eh { display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; column-gap: 14px; align-items: center; padding: 10px 14px; }
  .ap .eb { width: 30px; height: 30px; border: 1.5px solid var(--pline); border-radius: 7px; display: flex; align-items: center; justify-content: center;
    background: var(--panel2); color: var(--fg); font: 700 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; transition: background-color .3s; }
  .ap .eng.on .eb { background: #FFC53D; color: #151515; border-color: #151515; }
  .ap .em { min-width: 0; }
  .ap .em b { display: block; font-size: 16px; line-height: 21px; font-weight: 750; }
  .ap .em small { display: block; font-size: 12.5px; line-height: 17px; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap .eng.on .em small { color: var(--fg2); font-weight: 600; }
  .ap .radio { width: 16px; height: 16px; border: 1.5px solid var(--fg4); position: relative; }
  .ap .eng.on .radio { border-color: var(--mark); background: var(--mark); }
  .ap .eng.on .radio::after { content: ""; position: absolute; inset: 3px; background: #FFC53D; }
  .ap .opts { overflow: hidden; max-height: 0; opacity: 0; padding: 0 14px; transition: max-height .45s cubic-bezier(.2,.9,.25,1), opacity .3s, padding-bottom .45s; }
  .ap .eng.on .opts { max-height: 90px; opacity: 1; padding-bottom: 12px; }
  .ap .ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
  .ap .ol > b { flex: none; width: 62px; font-size: 12px; font-weight: 700; color: var(--fg3); }
  .ap .ch { flex: none; height: 26px; padding: 0 8px; border: 1.5px solid var(--pline); border-radius: 6px; display: inline-flex; align-items: center; background: var(--panel);
    font-size: 12.5px; font-weight: 600; color: var(--fg2); transition: background-color .25s, box-shadow .25s, color .25s; }
  .ap .ch.m { font: 600 11.5px/1 ui-monospace, "SF Mono", Menlo, monospace; }
  .ap .ch.on { background: #FFC53D; color: #151515; border-color: #151515; box-shadow: 0 2px 0 var(--key-side); }
  .ap .scr-new .dock .f span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* ---------- 搜索:标题 + 聊天内容,命中的那句列在会话下面(2026-10-08) ---------- */
  .ap .snav { position: absolute; left: 0; right: 0; top: 47px; height: 44px; display: flex; align-items: center; gap: 2px; padding: 0 14px 0 6px; }
  .ap .snav .bk { flex: none; width: 40px; height: 40px; border: 0; background: none; display: flex; align-items: center; justify-content: center; padding: 0; }
  .ap .sfield { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1.5px solid var(--pline); border-radius: 7px; background: var(--field); color: var(--fg3); }
  .ap .sfield svg { flex: none; }
  .ap .sqt { flex: none; font-size: 16px; color: var(--fg); white-space: pre; }
  .ap .sph { min-width: 0; font-size: 15px; color: var(--fg4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap .caret { flex: none; width: 2px; height: 19px; margin: 0 -5px 0 -6px; background: var(--fg); animation: cur 1s steps(1) infinite; }
  .ap .sx { margin-left: auto; display: flex; color: var(--fg4); }
  .ap .sst { position: absolute; left: 0; right: 0; top: 95px; margin: 0; padding: 0 18px; font-size: 13px; line-height: 18px; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ap .fres + .fres { border-top: 1px solid var(--div); }
  .ap .fres .row { cursor: default; }
  .ap .hit { padding: 0 14px 8px 42px; display: flex; gap: 8px; align-items: flex-start; transition: background-color .2s; }
  .ap .hit p { flex: 1; min-width: 0; margin: 0; padding-left: 9px; border-left: 2.5px solid #FFC53D; font-size: 13.5px; line-height: 19px; color: var(--fg2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ap .hit p > b { margin-right: 6px; font-size: 12.5px; font-weight: 700; color: var(--fg3); }
  .ap .hit > span { flex: none; padding-top: 1px; font-size: 12px; color: var(--fg4); white-space: nowrap; }
  .ap .hit.press { background: color-mix(in srgb, var(--fg) 8%, transparent); }
  .ap mark { padding: 0 1px; background: #FFC53D; color: #151515; font-weight: 700; }
  .ap .found { margin: -6px -8px; padding: 6px 8px; border-radius: 8px; box-shadow: inset 0 0 0 2px #FFC53D; background: color-mix(in srgb, #FFC53D 14%, transparent); }

  /* ---------- 换个 AI 接手:聊天页上拉起的弹层(2026-10-08) ---------- */
  .ap .hdim { position: absolute; inset: 0; z-index: 38; background: rgba(10, 10, 12, .34); opacity: 0; transition: opacity .3s; pointer-events: none; }
  .ap .scr-chat.ho .hdim { opacity: 1; }
  .ap .hsheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 16px 34px; border-top: 1.5px solid var(--pline); border-radius: 16px 16px 0 0;
    background: var(--panel); transform: translateY(104%); transition: transform .42s cubic-bezier(.2,.9,.25,1); }
  .ap .scr-chat.ho .hsheet { transform: none; }
  .ap .grab { display: block; width: 38px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: var(--div); }
  .ap .hs-t { display: block; font-size: 19px; line-height: 25px; font-weight: 800; }
  .ap .hs-s { margin: 3px 0 0; font-size: 13px; line-height: 18px; color: var(--fg3); }
  .ap .hs-l { margin: 14px 0 6px; font-size: 14px; line-height: 19px; font-weight: 700; color: var(--fg2); }
  .ap .hs-box { min-height: 74px; padding: 10px 12px; border: 1.5px solid var(--pline); border-radius: 7px; background: var(--field); font-size: 15.5px; line-height: 22px; color: var(--fg); }
  .ap .hs-box .hs-ph { color: var(--fg4); }
  .ap .hs-box .caret { display: inline-block; margin: 0 0 0 1px; vertical-align: -4px; }
  .ap .hs-h { margin: 6px 0 8px; font-size: 12.5px; line-height: 17px; color: var(--fg3); }
  .ap .hs-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; column-gap: 12px; align-items: center; padding: 9px 6px; border-top: 1px solid var(--div); transition: background-color .2s; }
  .ap .hs-row b { display: block; font-size: 16px; line-height: 21px; font-weight: 750; }
  .ap .hs-row small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 17px; color: var(--fg3); }
  .ap .hs-row.press { background: color-mix(in srgb, var(--fg) 9%, transparent); }
  .ap .hs-row.press .eb { background: #FFC53D; color: #151515; border-color: #151515; }
  .ap .hs-row.sel { background: var(--panel2); }
  .ap .hs-row.sel .eb { background: #FFC53D; color: #151515; border-color: #151515; }
  .ap .hs-row.sel small { color: var(--fg2); font-weight: 600; }
  .ap .hs-row.sel .radio { border-color: var(--mark); background: var(--mark); }
  .ap .hs-row.sel .radio::after { content: ""; position: absolute; inset: 3px; background: #FFC53D; }
  .ap .hs-start { width: 100%; height: 46px; margin-top: 14px; font-size: 16px; transition: background-color .25s, color .25s; }
  .ap .k.off { background: transparent; color: var(--fg4); border-color: var(--fg4); box-shadow: none; }
  .ap .hs-b { display: none; }
  .ap .hsheet.step2 .hs-a { display: none; }
  .ap .hsheet.step2 .hs-b { display: block; }
  .ap .hs-b .ol { margin-top: 0; }
  .ap .hs-go { width: 100%; height: 46px; margin-top: 20px; font-size: 16px; }
  .ap .press.k, .ap .k.press { transform: translateY(2.5px); box-shadow: 0 0 0 #151515; }
  .ap .dnav .ib.press { border-radius: 9px; background: color-mix(in srgb, var(--fg) 10%, transparent); }
