/* 页面外框，以及新设计（.panel.v2）的屏内样式。官方设计的屏内样式在 screen.css。 */

/* ── 页面 */
:root { --zoom: 1.3; }
html, body { background: #e9e7e1; }
body { font-family: "PingFang SC", "Avenir Next", "Helvetica Neue", sans-serif; }
.stage { max-width: 1240px; padding: 18px 28px 40px; }
.top { align-items: center; margin-bottom: 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-icon { width: 28px; height: 28px; display: block; flex: none; filter: drop-shadow(0 2px 5px rgba(20, 36, 26, 0.22)); }
.brand b { font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.brand span { font-size: 12px; color: var(--muted); }
.design-tabs { display: inline-flex; padding: 3px; background: #d8d5cc; border-radius: 10px; }
.design-tabs button { border: 0; background: none; padding: 7px 20px; border-radius: 8px; font-size: 13px; color: #5c584f; }
.design-tabs button.on { background: #fbfaf7; color: #161616; font-weight: 600; box-shadow: 0 1px 2px rgba(40, 32, 18, 0.18); }
.reset { border: 1px solid #c4c0b5; background: none; border-radius: 8px; padding: 6px 12px; font-size: 12px; color: #5c584f; }
.reset:hover, .jump button:hover { background: #dedbd2; }

.layout { grid-template-columns: auto minmax(300px, 1fr); gap: 20px; }
.device { padding-right: calc(74px * var(--zoom)); }
.shell { zoom: var(--zoom); }
.tag { font-size: 9px; left: calc(100% + 16px); }

.notes { max-width: 520px; font-size: 13px; line-height: 1.7; color: #3d3a34; }
.notes h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; color: #161616; }
.notes .lede { margin: 0 0 12px; color: var(--muted); }
.notes .points { margin: 0 0 4px; padding: 0; list-style: none; }
.notes .points li { margin: 0; padding: 7px 0 7px 22px; border-top: 1px solid #d5d1c7; position: relative; }
.notes .points li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 9px; height: 9px; background: #161616; clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%); }
.notes h3 { margin: 22px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 6px; }
.jump button { border: 1px solid #c4c0b5; background: none; border-radius: 999px; padding: 4px 12px; font-size: 12px; color: #3d3a34; }
.now { width: auto; margin: 0; font-size: 13px; }
.now p { margin: 0 0 6px; }
.now dl { gap: 4px 14px; }
.log { list-style: none; padding: 0; min-height: 5em; font-size: 13px; }
.log li { margin: 0; padding: 3px 0 3px 14px; position: relative; color: var(--muted); }
.log li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: #b9b4a8; }
.log li:first-child { color: #161616; }
.log li:first-child::before { background: #e28a06; }
.fine { margin: 18px 0 0; font-size: 12px; color: #8b867a; }

/* 机内主字库没有的字：画成方框。两套设计共用。 */
.tofu { display: inline-block; box-sizing: border-box; width: 0.84em; height: 0.84em; margin: 0 0.08em; border: 1px solid currentColor; vertical-align: -0.08em; }

/* ── 新设计。只用四级灰（墨、深灰、浅灰、纸），字号只用固件有的 20–50 px（这里 ×0.36）。 */
.panel.v2 { --ink: #111; --g1: #555; --g2: #aaa; --paper: #f2f2f1; }
.panel.v2 button { -webkit-tap-highlight-color: transparent; }
.panel.v2 button:focus-visible { outline: 2px solid var(--g1); outline-offset: -2px; }
.panel.v2 .bar { height: 24px; padding: 0 12px; border-bottom: 0; font-size: 9px; grid-template-columns: 1fr auto 1fr; }
.panel.v2 .bar .right { justify-self: end; }
.v2 .ic { display: block; flex: none; width: 14px; height: 14px; }

/* 首页 */
.v-home { height: 414px; padding: 0 12px; display: flex; flex-direction: column; }
.v-hero { position: relative; flex: none; height: 102px; }
.v-clock { position: absolute; left: 0; top: 0; font: 200 50px/1 "Avenir Next", "Helvetica Neue", sans-serif; letter-spacing: -2px; }
.v-clock span { display: block; }
.v-clock span:last-child { margin: -3px 0 0 5px; }
.v-clock i { position: absolute; left: 6px; top: 53px; width: 56px; border-top: 1.2px solid var(--ink); transform: rotate(-11.2deg); transform-origin: left center; }
.v-date { position: absolute; right: 0; bottom: 9px; text-align: right; }
.v-date span { display: block; font: 300 10.8px/1.5 "Avenir Next", "PingFang SC", sans-serif; letter-spacing: 0.4px; }
.v-date b { display: block; font-size: 14.4px; font-weight: 600; line-height: 1.45; }

.v-pair { position: relative; flex: none; height: 134px; }
.v-pair > svg { position: absolute; inset: 0; display: block; }
.v-pair polygon { fill: transparent; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; cursor: pointer; }
.v-pair polygon.dark { fill: var(--ink); }
.v-pair polygon.off { fill: url(#v-dither); }
.v-pair polygon:hover { stroke-width: 2.4; }
.v-ask, .v-call { position: absolute; top: 0; bottom: 0; width: 96px; padding: 12px 0 11px; display: flex; flex-direction: column; pointer-events: none; }
.v-ask { left: 13px; color: var(--paper); }
.v-call { right: 13px; align-items: flex-end; text-align: right; }
.v-ask .ic, .v-call .ic { width: 26px; height: 26px; }
.v-ask b, .v-call b { margin-top: auto; font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: 2px; }
.v-call b { margin-right: -2px; }
.v-ask span, .v-call span { margin-top: 3px; font-size: 9px; white-space: nowrap; }
.v-call span { background: var(--paper); }
/* 没有通话时右边这块是「接着读」：同一个位置、同一种排法，多一条进度。 */
.v-read-block { width: 100px; }
.v-read-block .v-track { position: absolute; right: 0; top: 46px; width: 58px; height: 4px; }
.v-read-block span { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.v-todos { flex: none; margin-top: 12px; width: 100%; padding: 0; border: 0; border-top: 1.2px solid var(--ink); background: none; display: flex; flex-direction: column; text-align: left; }
.v-todos-head { height: 28px; display: flex; align-items: center; gap: 8px; }
.v-todos-head b { font-size: 10.8px; font-weight: 600; }
.v-todos-head em { flex: 1; font-style: normal; font-size: 9px; color: var(--g1); }
.v-todos-head .ic { width: 9px; height: 9px; }
.v-todos-item { height: 28px; padding: 0 1px; border-top: 1px solid var(--g2); display: flex; align-items: center; gap: 8px; font-size: 10.8px; }
.v-todos-item > i { flex: none; width: 9px; height: 9px; box-sizing: border-box; border: 1.2px solid var(--ink); }
.v-todos-item > span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v-todos-none { height: 28px; border-top: 1px solid var(--g2); display: flex; align-items: center; font-size: 9px; color: var(--g1); }

.v-who { flex: none; margin: 0 0 2px; width: 100%; height: 22px; padding: 0 1px; border: 0; background: none; display: flex; align-items: center; gap: 6px; font-size: 9px; text-align: left; }
.v-who > i { flex: none; width: 7px; height: 7px; box-sizing: border-box; border: 1.2px solid var(--ink); border-radius: 50%; }
.v-who > i.on { background: var(--ink); }
.v-who span { flex: 1; }
.v-who .ic { width: 9px; height: 9px; }

.v-book { position: relative; flex: none; margin-top: 12px; width: 100%; height: 68px; padding: 0 0 0 8px; border: 1.2px solid var(--ink); background: none; display: flex; align-items: center; gap: 10px; text-align: left; overflow: hidden; }
.v-cover { flex: none; width: 32px; height: 46px; box-sizing: border-box; border: 1px solid var(--ink); border-left-width: 3px; display: flex; align-items: center; justify-content: center; text-align: center; font: 600 10.8px/1.35 "Songti SC", "Source Han Serif SC", serif; }
.v-book-main { flex: 1; min-width: 0; padding-right: 78px; display: flex; flex-direction: column; gap: 4px; }
.v-book-main b, .v-book-main em { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v-book-main b { font-size: 12.6px; font-weight: 600; }
.v-book-main em { font-style: normal; font-size: 9px; color: var(--g1); }
.v-track { display: block; box-sizing: border-box; width: 86px; height: 5px; border: 1px solid var(--ink); }
.v-track i { display: block; height: 100%; background: var(--ink); }
.v-wedge { position: absolute; right: -1px; top: -1px; bottom: -1px; width: 77px; padding-right: 8px; background: var(--ink); color: var(--paper); clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%); display: flex; align-items: center; justify-content: flex-end; gap: 2px; font-size: 10.8px; font-weight: 600; }
.v-wedge .ic { width: 10px; height: 10px; }

.v-todo { flex: none; margin-top: 8px; width: 100%; height: 30px; padding: 0 1px 2px; border: 0; border-bottom: 1px solid var(--ink); background: none; display: flex; align-items: center; gap: 8px; font-size: 10.8px; text-align: left; }
.v-todo b { flex: none; min-width: 16px; height: 16px; background: var(--ink); color: var(--paper); font: 600 9px/16px "Avenir Next", sans-serif; text-align: center; }
.v-todo span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v-todo em { font-style: normal; font-size: 9px; color: var(--g1); }
.v-todo .ic { width: 9px; height: 9px; }

.v-foot { flex: none; margin-top: auto; height: 28px; display: flex; align-items: center; justify-content: space-between; }
.v-foot .dots { height: auto; }
.v-foot button { border: 0; background: none; padding: 6px 0; display: flex; align-items: center; gap: 2px; font-size: 9px; }
.v-foot .ic { width: 9px; height: 9px; }

/* 首页第二屏：全部应用 */
.v-apps { height: 414px; display: flex; flex-direction: column; }
.v-apps h2 { margin: 6px 12px 10px; font-size: 14.4px; font-weight: 600; }
.v-apps .tiles { flex: none; }
.v-apps .tile { color: #111; }
.v-apps .tile.dark { color: #f2f2f1; }
.v-apps .tile text { font-size: 12.6px; }
.v-apps .tile text.long { font-size: 10.8px; }
.v-apps .v-foot { margin: auto 12px 0; }
.v-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; }
.v-cell { height: 70px; border: 0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 10.8px; }
.v-cell img, .v-cell .ic { width: 28px; height: 28px; }
.v-cell .ic { stroke-width: 1.7; }
.v-cell.border { background: none; border: 1.2px solid var(--ink); }
.v-cell.gray { background: radial-gradient(#111 0.5px, transparent 0.6px) 0 0 / 3px 3px; }
.v-cell.gray span { background: var(--paper); padding: 0 3px; }

/* 页头 */
.v-page { height: 414px; display: flex; flex-direction: column; }
.v-head { flex: none; height: 34px; padding: 0 12px 0 4px; border-bottom: 1.2px solid var(--ink); display: grid; grid-template-columns: 30px 1fr auto; align-items: center; }
.v-back { width: 30px; height: 30px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.v-back .ic { width: 16px; height: 16px; }
.v-title { min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.v-title b { font-size: 14.4px; font-weight: 600; white-space: nowrap; }
.v-title span { font-size: 9px; color: var(--g1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-txt { border: 0; background: none; padding: 6px 0 6px 8px; font-size: 9px; text-decoration: underline; text-underline-offset: 2px; }

/* 助手：提问和通话 */
.v-subject { position: relative; flex: none; margin: 8px 12px 0; height: 26px; border: 1.2px solid var(--ink); display: flex; }
.v-subject::before { content: ""; position: absolute; top: 0; bottom: 0; width: calc(50% + 6px); background: var(--ink); }
.v-subject.at-book::before { left: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.v-subject.at-solo::before { right: 0; clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%); }
.v-subject button { position: relative; flex: 1; border: 0; background: none; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 10.8px; }
.v-subject button.on { color: var(--paper); font-weight: 600; }
.v-subject .ic { width: 12px; height: 12px; }
.v-quote { flex: none; display: block; margin: 9px 12px 0; padding: 0 0 0 8px; border: 0; border-left: 3px solid var(--ink); background: none; text-align: left; }
.v-quote span { display: block; font-size: 9px; color: var(--g1); }
.v-quote p { margin: 3px 0 0; font: 10.8px/1.6 "Songti SC", "Source Han Serif SC", serif; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.v-warn { flex: none; margin: 8px 12px 0; padding: 6px 8px; border: 1.2px dashed var(--ink); background: none; display: flex; align-items: center; gap: 6px; font-size: 9px; line-height: 1.55; text-align: left; }
.v-warn span { flex: 1; }
.v-warn .ic { width: 9px; height: 9px; }

.v-body { flex: 1; min-height: 0; padding: 10px 12px 0; display: flex; flex-direction: column; overflow: hidden; }
.v-welcome { height: 100%; display: flex; flex-direction: column; }
.v-welcome h2 { margin: 6px 0 4px; font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.v-welcome p { margin: 0; font-size: 10.8px; line-height: 1.6; color: var(--g1); }
.v-sugs { margin-top: auto; border-top: 1.2px solid var(--ink); }
.v-sugs button { width: 100%; height: 34px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--ink); background: none; display: flex; align-items: center; gap: 8px; font-size: 10.8px; text-align: left; }
.v-sugs button:last-child { border-bottom: 0; }
.v-sugs i { flex: none; width: 14px; height: 14px; box-sizing: border-box; border: 1.2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 600 8px/1 "Avenir Next", sans-serif; font-style: normal; }
.v-sugs span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v-sugs .ic { width: 9px; height: 9px; }
.v-listen { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.v-listen .ic { width: 40px; height: 40px; stroke-width: 1.4; }
.v-listen b { font-size: 18px; letter-spacing: 2px; }
.v-listen span { font-size: 10.8px; color: var(--g1); }
.v-qa .q { margin: 0 0 10px; padding-bottom: 9px; border-bottom: 1px solid var(--ink); display: flex; gap: 7px; font-size: 10.8px; line-height: 1.6; }
.v-qa .q i { flex: none; width: 16px; height: 16px; margin-top: 1px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-style: normal; font-size: 9px; }
.v-qa .a { margin: 0; font-size: 12.6px; line-height: 1.8; }
.v-setup { margin: auto 0; }
.v-setup h2 { margin: 0 0 6px; font-size: 16.2px; font-weight: 600; }
.v-setup p { margin: 0 0 14px; font-size: 10.8px; line-height: 1.7; color: var(--g1); }

.v-live { height: 100%; display: flex; flex-direction: column; }
.v-state { flex: none; padding-bottom: 9px; border-bottom: 1px solid var(--ink); display: flex; align-items: center; gap: 8px; }
.v-state b { font-size: 12.6px; font-weight: 600; }
.v-state em { margin-left: auto; font-style: normal; font-size: 9px; color: var(--g1); }
.v-bars { height: 16px; display: flex; align-items: center; gap: 2px; }
.v-bars i { width: 2px; height: 3px; background: var(--ink); }
.v-state.is-speak .v-bars i:nth-child(odd) { height: 12px; }
.v-state.is-speak .v-bars i:nth-child(4) { height: 16px; }
.v-state.is-speak .v-bars i:nth-child(2), .v-state.is-speak .v-bars i:nth-child(6) { height: 7px; }
.v-state.is-listen .v-bars i:nth-child(4) { height: 7px; }
.v-state.is-mute .v-bars i { background: var(--g2); }
.v-caption { margin: 14px 0 0; font-size: 16.2px; font-weight: 500; line-height: 1.7; }
.v-caption.past { color: var(--g1); font-weight: 400; }

.v-pages { flex: none; height: 24px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 9px; }
.v-pages button { width: 26px; height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.v-pages button:disabled { color: var(--g2); }
.v-pages .ic { width: 11px; height: 11px; }
.v-talk { position: relative; flex: none; height: 36px; margin: 4px 12px 10px; border: 1.2px solid var(--ink); border-radius: 0; overflow: hidden; display: grid; grid-template-columns: 38px 1fr auto; }
.v-talk > span { display: grid; place-items: center; font-size: 12.6px; font-weight: 600; letter-spacing: 1px; cursor: pointer; touch-action: none; }
.v-talk.rec > span { background: var(--ink); color: var(--paper); }
.v-talk .v-cam { position: relative; padding: 0 2px 0 0; border: 0; background: none; display: grid; place-items: center; }
.v-talk .v-cam::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1.2px; background: var(--ink); transform: skewX(-17.4deg); }
.v-talk .v-cam .ic { width: 15px; height: 15px; }
.v-talk .tolive { padding: 0 13px 0 19px; border: 0; background: var(--ink); color: var(--paper); clip-path: polygon(13px 0, 100% 0, 100% 100%, 0 100%); display: flex; align-items: center; gap: 4px; font-size: 10.8px; font-weight: 600; }
.v-askbar > [data-hold] { white-space: nowrap; line-height: 1.2; }
.v-photo-pending { flex: none; display: flex; align-items: stretch; align-self: flex-start; margin: 4px 12px 0; border: 1px solid var(--ink); font-size: 10px; }
.v-photo-pending > span { display: flex; align-items: center; gap: 5px; padding: 0 7px; }
.v-photo-pending .ic { width: 12px; height: 12px; }
.v-photo-pending > button { display: grid; place-items: center; width: 27px; height: 24px; padding: 0; border: 0; border-left: 1px solid var(--ink); background: none; }
/* 通话：同一条斜切底栏，左边两格图标 + 字横排，中间一条斜线，右边斜切「挂断」与「通话」同形 */
.v-talk.v-callbar { grid-template-columns: 1.15fr 1fr auto; }   /* 「取消静音」比「打断」长 */
.v-callbar > button:not(.tolive) { position: relative; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 10.8px; font-weight: 600; }
.v-callbar > button[data-interrupt]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1.2px solid var(--ink); transform: skewX(-17.4deg); }
.v-callbar .ic.stop { width: 10px; height: 10px; }
.v-solid { height: 32px; padding: 0 14px; border: 0; background: var(--ink); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 10.8px; font-weight: 600; }
.v-solid .ic { width: 10px; height: 10px; }

/* 正文：页眉只放章节（回次一行、回目一行），页码在页脚正中，像纸书。 */
.v-read .read-head { position: relative; align-items: flex-start; padding: 8px 18px 2px; min-height: 36px; box-sizing: border-box; }
.v-read .read-head::after { content: ""; position: absolute; inset: auto 18px 0; border-bottom: 1px solid var(--ink); pointer-events: none; }
.v-read .read-foot { position: relative; align-items: center; justify-content: space-between; padding: 4px 18px 8px; min-height: 22px; }
.v-read .read-foot b { position: absolute; left: 50%; transform: translateX(-50%); font: 500 10px/1 "Songti SC", "Source Han Serif SC", serif; letter-spacing: 1px; }
.v-chap { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.v-chap b { font: 600 11px/1.3 "Songti SC", "Source Han Serif SC", serif; letter-spacing: 1px; }
.v-chap em { font-style: normal; font: 400 9px/1.3 "Songti SC", "Source Han Serif SC", serif; color: var(--g1); letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-read .read-body { padding: 6px 22px 2px; }
.v-mark { width: 16px; height: 16px; margin-top: 1px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: none; color: var(--ink); font: 600 9px/1 "Songti SC", serif; }
.v-miss { padding: 0 0 1px; border: 0; border-bottom: 1px solid var(--ink); background: none; color: var(--ink); font-size: 9px; }
/* 点屏幕中间：下方工具面板。首页四行（问、目录、书签、排版），点进去才是那一项，不再用页签表单。 */
.v-tool { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-height: 72%; background: var(--paper); display: flex; flex-direction: column; }
.v-tool::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 5px; background-image: radial-gradient(var(--ink) 0.55px, transparent 0.75px); background-size: 2px 2px; }
.v-tool-head { flex: none; height: 32px; padding: 0 4px 0 8px; background: var(--ink); color: var(--paper); display: flex; align-items: center; gap: 4px; }
.v-tool-head b { flex: 1; font-size: 11.5px; font-weight: 600; letter-spacing: 1px; }
.v-tool-head button { width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--paper); display: grid; place-items: center; }
.v-tool-head .ic { width: 13px; height: 13px; }
.v-tool-body { flex: 1; min-height: 0; overflow: hidden; padding: 2px 0 8px; }
.v-tool-home button { width: 100%; height: 40px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--ink); background: none; display: flex; align-items: center; gap: 10px; text-align: left; }
.v-tool-home button:last-child { border-bottom: 0; }
.v-tool-home .ic { width: 16px; height: 16px; flex: none; }
.v-tool-home .chev { width: 9px; height: 9px; margin-left: auto; }
.v-tool-home span { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.v-tool-home b { font-size: 12px; font-weight: 600; }
.v-tool-home em { font-style: normal; font-size: 9px; color: var(--g1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-tool-row { width: 100%; min-height: 36px; padding: 6px 14px; border: 0; border-bottom: 1px solid var(--ink); background: none; display: flex; align-items: baseline; gap: 10px; text-align: left; font-size: 11px; }
.v-tool-row b { flex: none; font-weight: 600; }
.v-tool-row span { color: var(--g1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-tool-row.on b::before { content: ""; display: inline-block; width: 6px; height: 9px; margin-right: 6px; background: var(--ink); clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%); vertical-align: -1px; }
.v-tool-empty { margin: 8px 14px; font-size: 10px; line-height: 1.6; color: var(--g1); }
.v-tool-add { width: calc(100% - 28px); height: 30px; margin: 8px 14px 2px; border: 1.2px solid var(--ink); background: none; font-size: 11px; font-weight: 600; }
.v-type { padding: 6px 14px 4px; display: flex; flex-direction: column; gap: 6px; }
.v-type > label { font-size: 9px; color: var(--g1); }
.v-type-size { display: flex; align-items: stretch; height: 28px; border: 1.2px solid var(--ink); }
.v-type-size > button { width: 40px; border: 0; background: none; font-size: 11px; }
.v-type-size > b { width: 36px; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); display: grid; place-items: center; font: 600 12px "Avenir Next", sans-serif; }
.v-type-size .v-seg { flex: 1; border: 0; }
.v-type-size .v-seg button { height: auto; font-size: 9px; border-left: 1px solid var(--ink); }
.v-type .v-pack { margin-top: 2px; }
.panel.v2 .sheet { padding: 10px 12px 12px; background: var(--paper); border-top: 1.2px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.v-sheet-ai { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 2px; }
.v-sheet-ai button { height: 32px; border: 1.2px solid var(--ink); background: none; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 10.8px; font-weight: 600; }
.v-sheet-ai button.solid { background: var(--ink); color: var(--paper); }
.v-sheet-ai button:only-child { grid-column: 1 / -1; }
.v-pack { width: 100%; padding: 6px 8px; border: 1.2px dashed var(--ink); background: none; display: flex; align-items: center; justify-content: space-between; font-size: 9px; text-align: left; }
.v-pack .ic { width: 9px; height: 9px; }
.panel.v2 .tabs { margin: 0; border: 0; border-bottom: 1.2px solid var(--ink); }
.panel.v2 .tabs span { padding: 6px 0; font-size: 10.8px; }
.panel.v2 .tabs .on { font-weight: 600; }
.panel.v2 .sheet .note { margin-top: 2px; font-size: 9px; color: var(--g1); }
.panel.v2 .row, .panel.v2 .row-btns button { padding: 7px 8px; border: 0; border-bottom: 1px solid var(--ink); font-size: 10.8px; margin: 0; }
.panel.v2 .row.on { background: none; color: var(--ink); font-weight: 600; }
.panel.v2 .row.on::before { content: ""; display: inline-block; width: 6px; height: 9px; margin-right: 6px; background: var(--ink); clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%); }
.panel.v2 .row-btns { gap: 6px; }
.panel.v2 .row-btns button { border: 1.2px solid var(--ink); }

/* 通用的选项：一排分段按钮 */
.panel.v2 .choices { gap: 0; flex-wrap: nowrap; border: 1.2px solid var(--ink); }
.panel.v2 .choices .choice { flex: 1; height: 24px; padding: 0 2px; border: 0; border-left: 1px solid var(--ink); border-radius: 0; font-size: 9px; white-space: nowrap; }
.panel.v2 .choices .choice:first-child { border-left: 0; }
.panel.v2 .choice { border: 1.2px solid var(--ink); border-radius: 0; padding: 6px 10px; font-size: 9px; }
.panel.v2 .choice.on { background: var(--ink); color: var(--paper); font-weight: 600; }

/* 设置 */
.v-pane { flex: 1; min-height: 0; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; touch-action: pan-y; cursor: grab; }
.v-pane.dragging { cursor: grabbing; }
.scroll-dot { position: fixed; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(17, 17, 17, 0.16); pointer-events: none; z-index: 20; }
.v-pairing { display: flex; flex-direction: column; gap: 6px; }
.v-pairing h2 { margin: 0; font-size: 14px; }
.v-assistant-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v-assistant-heading .v-line { padding: 0 8px; height: 26px; font-size: 11px; }
.v-assistant-item { border: 1px solid var(--ink); padding: 10px; display: grid; gap: 9px; }
.v-assistant-item.is-row { display: flex; flex-direction: column; gap: 4px; padding: 6px 9px; }
.v-assistant-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.v-assistant-top b { min-width: 0; flex: 1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-assistant-sub { display: block; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-assistant-ops { width: 98px; flex-shrink: 0; }
.v-assistant-ops .v-slant { height: 26px; }
.v-assistant-ops .v-slant > button { font-size: 10px; padding: 0 4px; }
.v-assistant-item.selected { border-left-width: 4px; }
.v-assistant-item b { display: block; font-size: 13px; }
.v-assistant-item span { display: block; font-size: 10px; margin-top: 4px; }
.v-assistant-current { align-self: center; }
.v-assistant-url { font-size: 10px; overflow-wrap: anywhere; }
.v-pair-address { padding: 12px 8px; border: 1px solid var(--ink); display: grid; gap: 6px; }
.v-pair-address small { font-size: 9px; }
.v-pair-address code { font-size: 11px; overflow-wrap: anywhere; }
.v-pane::-webkit-scrollbar { width: 3px; }
.v-pane::-webkit-scrollbar-thumb { background: var(--ink); }
.v-quick { flex: none; padding: 3px 8px; border: 1.2px solid var(--ink); }
.v-level { height: 26px; display: flex; align-items: center; gap: 6px; font-size: 9px; }
.v-level > span { width: 22px; white-space: nowrap; }
.v-level > span:empty { display: none; }
.v-level .ic { width: 13px; height: 13px; }
.v-blocks { flex: 1; height: 14px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.v-blocks button { padding: 0; border: 1px solid var(--ink); background: none; }
.v-blocks button.on { background: var(--ink); }
.v-level b { width: 20px; text-align: right; font: 600 9px "Avenir Next", sans-serif; }
.v-rows { flex: none; display: flex; flex-direction: column; border-top: 1.2px solid var(--ink); }
.v-row { width: 100%; min-height: 44px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--ink); background: none; display: flex; align-items: center; gap: 10px; text-align: left; }
.v-row > .ic { width: 18px; height: 18px; stroke-width: 1.8; }
.v-row span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v-row b { font-size: 12.6px; font-weight: 600; }
.v-row em { font-style: normal; font-size: 9px; color: var(--g1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-row .chev { width: 9px; height: 9px; }
div.v-row { box-sizing: border-box; }
.v-rows.fill .v-row { min-height: 52px; }

.v-fld { flex: none; }
.v-fld > label { display: block; margin-bottom: 5px; font-size: 9px; color: var(--g1); }
.v-fld > p, .v-tip { margin: 5px 0 0; font-size: 9px; line-height: 1.6; color: var(--g1); }
.v-tip { margin: 0; flex: none; }
.v-fld .v-level { margin-top: 4px; }
.v-seg { display: flex; border: 1.2px solid var(--ink); }
.v-seg button { flex: 1; height: 26px; padding: 0 2px; border: 0; border-left: 1px solid var(--ink); background: none; font-size: 10.8px; white-space: nowrap; }
.v-seg button:first-child { border-left: 0; }
.v-seg button.on { background: var(--ink); color: var(--paper); font-weight: 600; }
.v-card { flex: none; padding: 9px 10px; background: var(--ink); color: var(--paper); display: flex; align-items: center; gap: 10px; }
.v-card.bad { padding: 8px 9px; background: none; color: var(--ink); border: 1.2px dashed var(--ink); }
.v-card .ic { width: 18px; height: 18px; }
.v-card b { display: block; font-size: 12.6px; font-weight: 600; }
.v-card em { display: block; margin-top: 2px; font-style: normal; font-size: 9px; }
.v-inputs { display: grid; grid-template-columns: 1fr 58px; gap: 6px; }
.v-inputs label { display: flex; flex-direction: column; gap: 5px; font-size: 9px; color: var(--g1); }
.v-inputs input { min-width: 0; width: 100%; height: 26px; box-sizing: border-box; padding: 0 6px; border: 1.2px solid var(--ink); border-radius: 0; background: none; color: var(--ink); font: 9px "SF Mono", Menlo, monospace; outline: none; }
.v-line { flex: none; height: 28px; box-sizing: border-box; padding: 0 10px; border: 1.2px solid var(--ink); background: none; font-size: 10.8px; }
.v-line.dashed { border-style: dashed; font-size: 9px; }
.v-two { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: center; }
.v-two > .v-solid { height: 28px; box-sizing: border-box; border: 1.2px solid var(--ink); }
.v-step { height: 28px; border: 1.2px solid var(--ink); display: flex; align-items: stretch; }
.v-step button { width: 48px; border: 0; background: none; font-size: 10.8px; }
.v-step b { flex: 1; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); display: grid; place-items: center; font: 600 12.6px "Avenir Next", sans-serif; }
.v-set .v-solid { flex: none; }

/* 设备下面几页：官方的选项，换成这一套外观 */
.v-old { display: flex; flex-direction: column; gap: 6px; font-size: 10.8px; }
.v-old h3 { margin: 8px 0 0; font-size: 10.8px; font-weight: 600; }
.v-old h3:first-child { margin-top: 0; }
.v-old .note, .v-old .cur { margin: 0; font-size: 9px; line-height: 1.6; color: var(--g1); }
.v-old > .choice { text-align: left; margin: 0; }
.v-old .about { margin: 0; padding: 8px 2px; border-bottom: 1px solid var(--ink); }
.v-old .about b { font-size: 10.8px; }
.v-old .about span { font-size: 9px; color: var(--g1); margin-top: 2px; }

/* 其余应用：官方的结构，统一页头和线条 */
.v-app { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.v-app > div { height: 100%; }

/* 阅读首页：一屏放完，不滚动。进度条、本周、最近、书架。 */
.v-readhome { padding-bottom: 8px; }
.v-rh-now { flex: none; margin: 10px 12px 0; height: 57px; padding: 0 10px 0 8px; border: 1.2px solid var(--ink); background: none; display: flex; align-items: center; gap: 10px; text-align: left; }
.rh-cover { box-sizing: border-box; border: 1px solid var(--ink); border-left-width: 3px; background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; text-align: center; font: 600 11px/1.3 "Songti SC", "Source Han Serif SC", serif; }
.v-rh-now .rh-cover { flex: none; width: 32px; height: 44px; }
.v-rh-now > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.v-rh-now b { font-size: 13px; font-weight: 600; }
.v-rh-now em { font-style: normal; font-size: 9px; color: var(--g1); }
.v-rh-now .v-track { width: 100%; }
.v-rh-pct { flex: none; font: 600 16px/1 "Avenir Next", sans-serif; }
.v-rh-week { flex: none; margin: 6px 12px 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; column-gap: 10px; height: 40px; }
.v-rh-week > div:first-child { grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.v-rh-week b { font-size: 11px; font-weight: 600; }
.v-rh-week span { font-size: 9px; color: var(--g1); }
.v-rh-chart { display: flex; align-items: flex-end; gap: 4px; }
.v-rh-chart i { flex: 1; background: var(--g2); min-height: 3px; }
.v-rh-chart i.on { background: var(--ink); }
.v-rh-days { display: flex; }
.v-rh-days span { flex: 1; text-align: center; font-size: 8px; color: var(--g1); }
.v-rh-stats { flex: none; margin: 5px 12px 0; display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.v-rh-stats div { padding: 4px 0; border-left: 1px solid var(--ink); }
.v-rh-stats div:first-child { border-left: 0; }
.v-rh-stats b { display: block; font-size: 13px; }
.v-rh-stats span { font-size: 8px; color: var(--g1); }
.v-rh-h { flex: none; margin: 6px 12px 4px; font-size: 10px; font-weight: 600; }
.v-rh-recent { flex: 1; min-height: 0; margin: 0 12px; container-type: size; position: relative; }
.v-rh-recent.is-empty { display: grid; place-items: center; border: 1px dashed var(--ink); }
.v-rh-recent.is-empty p { margin: 0; font-size: 10px; color: var(--g1); }
/* 书少就居中，书多就从左边摆满。封面 2:3、高度占满；每条书脊宽 --s：放得下就宽一点（最宽 34），书多就窄（最窄 22）。
   8 本时书脊挤不下，就让最上面那本的封面窄一点，绝不超出这一块。 */
/* 书少就居中，书多就从左边摆满。封面 2:3、高度占满；每条书脊宽 --s：放得下就宽一点（最宽 36），书多就窄（最窄 24）。
   8 本时书脊挤不下，就让最上面那本的封面窄一点，绝不超出这一块。 */
.v-rh-stack { --bind: 6px; --face: min(100cqh * 2 / 3, 100cqw - (var(--n) - 1) * 24px); --s: clamp(24px, (100cqw - var(--face)) / max(var(--n) - 1, 1), 36px);
  --sw: calc((var(--n) - 1) * var(--s) + var(--face));
  position: absolute; top: 0; bottom: 0; left: max(0px, (100cqw - var(--sw)) / 2); width: var(--sw); }
/* 越旧的书越往后：顶上低一点，看着是一摞往后退。 */
.v-rh-book { position: absolute; bottom: 0; top: calc((var(--n) - 1 - var(--i)) * 9px / max(var(--n) - 1, 1)); left: calc(var(--i) * var(--s)); width: calc(var(--s) + var(--face)); padding: 0; box-sizing: border-box; border: 1.2px solid var(--ink); background: var(--paper); color: var(--ink); display: flex; text-align: left; }
/* 压在上面的书在左边投一道网点阴影 */
.v-rh-book + .v-rh-book::after { content: ""; position: absolute; top: -1.2px; bottom: -1.2px; left: -4.4px; width: 3px; background-image: radial-gradient(var(--ink) 0.5px, transparent 0.7px); background-size: 2px 2px; }
/* 书脊：左边一道装订线 + 四针线（线从书边绕到装订线） */
.v-rh-band { position: relative; flex: none; width: calc(var(--s) - 1.2px); box-sizing: border-box; padding: 9px 0 9px var(--bind); display: flex; flex-direction: column; align-items: center; gap: 3px; overflow: hidden; }
.v-rh-book.is-top { top: 0; width: var(--face); }
/* 最上面那本没封面：书脊同样的装订线，题签贴在封面左上角 */
.v-rh-book.is-top .v-rh-band { width: 100%; align-items: flex-start; padding-left: calc(var(--bind) + 9px); }
.v-rh-book.is-top .v-rh-band .v-rh-au { align-self: flex-start; margin-left: 2px; }
.v-rh-book.has-cover img { width: 100%; height: 100%; object-fit: contain; }
.v-rh-band::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--bind); width: 0.8px; background: var(--ink); }
.v-rh-band::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--bind);
  background: linear-gradient(var(--ink), var(--ink)) 0 12% / 100% 1px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 37% / 100% 1px no-repeat,
              linear-gradient(var(--ink), var(--ink)) 0 63% / 100% 1px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 88% / 100% 1px no-repeat; }
/* 包角：书脊上下两个角包一小块深色绫子 */
.v-rh-corner { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--bind) + 0.8px);
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 5px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 5px no-repeat; }
/* 题签：一张贴上去的白纸条，书名竖排从上往下 */
.v-rh-slip { flex: none; box-sizing: border-box; border: 0.8px solid var(--ink); background: #fff; padding: 3px 1.5px; display: flex; overflow: hidden; }
.v-rh-slip b { writing-mode: vertical-rl; text-orientation: upright; font: 600 10px/1 "Songti SC", "Source Han Serif SC", serif; letter-spacing: 1.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-rh-au { flex: none; writing-mode: vertical-rl; text-orientation: upright; font: 400 6.8px/1 "Songti SC", "Source Han Serif SC", serif; letter-spacing: 0.8px; font-style: normal; color: var(--ink); white-space: nowrap; }
/* 作者都贴着书底写，各本书的作者底边对齐 */
.v-rh-band .v-rh-au { margin-top: auto; }
.v-rh-shelf { flex: none; margin: 6px 12px 0; height: 33px; padding: 0 10px; border: 0; background: var(--ink); color: var(--paper); display: flex; align-items: center; gap: 8px; text-align: left; }
.v-rh-shelf .ic { width: 14px; height: 14px; }
.v-rh-shelf b { font-size: 12px; font-weight: 600; }
.v-rh-shelf span { flex: 1; font-size: 9px; opacity: .8; text-align: right; }
.v-rh-shelf .chev { width: 9px; height: 9px; }
.panel.v2 .seg { border: 1.2px solid var(--ink); }
.panel.v2 .seg.pill { border-radius: 0; align-self: stretch; }
.panel.v2 .seg.pill button { flex: 1; }
.panel.v2 .seg button { font-size: 10.8px; padding: 5px 10px; }
.panel.v2 .seg.tiny button { font-size: 9px; padding: 3px 7px; }
.panel.v2 .frame { border: 0; border-top: 1.2px solid var(--ink); border-radius: 0; padding: 2px 0 0; }
.panel.v2 .thead { font-size: 10.8px; }
.panel.v2 .todo { font-size: 10.8px; padding: 9px 0; border-bottom-color: var(--ink); }
.panel.v2 .app-row { border-bottom-color: var(--ink); }
.panel.v2 .app-row b { font-size: 10.8px; }
.panel.v2 .app-row em { font-size: 9px; }
.panel.v2 .cont, .panel.v2 .shelf-btn, .panel.v2 .cont button { border-radius: 0; }
.panel.v2 .dialog { border-width: 1.2px; font-size: 10.8px; }
.panel.v2 .shelf-head > b, .panel.v2 .wb-top > b { font-size: 10.8px; }
.panel.v2 .toast { top: 30px; border-radius: 0; font-size: 9px; padding: 6px 12px; z-index: 20; max-width: 200px; white-space: normal; text-align: center; }

/* 待机 */

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > * { min-width: 0; }
  .device { padding-right: 0; }
  .tag { display: none; }
  .notes { overflow-wrap: anywhere; }
}

/* 补丁：不可用的通话块、两排的分段、传输页的页签 */
.v-call.off .ic { background: var(--paper); border-radius: 50%; }
.v-call.off b { background: var(--paper); padding: 0 0 0 4px; margin-right: 0; }
.v-call.off span { padding: 1px 0 1px 4px; }
.v-seg.two { flex-wrap: wrap; }
.v-seg.two button { flex: 0 0 50%; }
.v-seg.two button:nth-child(odd) { border-left: 0; }
.v-seg.two button:nth-child(n + 3) { border-top: 1px solid var(--ink); }
.panel.v2 .seg.wrap { flex-wrap: nowrap; }
.panel.v2 .seg.wrap button, .panel.v2 .seg.tiny button { flex: 1; padding: 6px 0; font-size: 9px; white-space: nowrap; }
.panel.v2 .app-row button { border: 1.2px solid var(--ink); font-size: 9px; padding: 4px 7px; }
.panel.v2 .xfer p, .panel.v2 .store p, .panel.v2 .buddy p { font-size: 10.8px; }
.panel.v2 .local-service-card { border: 1.2px solid var(--ink); padding: 9px; display: flex; flex-direction: column; gap: 5px; }
.panel.v2 .local-service-card.on { background: var(--ink); color: var(--paper); }
.panel.v2 .local-service-head { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.panel.v2 .service-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; }
.panel.v2 .local-service-card.on .service-dot { background: var(--paper); }
.panel.v2 .local-service-card code { font: 600 11px/1.3 monospace; }
.panel.v2 .local-service-card .choice { border-color: currentColor; color: inherit; }
.panel.v2 .local-service-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.panel.v2 .local-setup { border-top: 1px solid currentColor; padding-top: 7px; display: flex; flex-direction: column; gap: 5px; }
.panel.v2 .local-setup h3 { margin: 0; font-size: 12px; }
.panel.v2 .local-setup pre { margin: 0; padding: 6px; white-space: pre-wrap; font: 8px/1.45 monospace; border: 1px dashed currentColor; }
.panel.v2 .setup-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.panel.v2 .setup-choice .choice.on { background: var(--ink); color: var(--paper); }
.panel.v2 .pair-input { width: 100%; box-sizing: border-box; height: 27px; border: 1px solid currentColor; background: transparent; color: inherit; padding: 0 6px; font-size: 9px; }
.panel.v2 .empty { font-size: 10.8px; color: var(--g1); }
.v-talk.rec .tolive { display: none; }
.v-talk.rec { grid-template-columns: 38px 1fr; }
.panel.v2 .book { gap: 8px; padding: 14px 12px 12px; }
.panel.v2 .book h3 { font-size: 14.4px; }
.panel.v2 .book > p { font-size: 10.8px; color: var(--g1); }
.panel.v2 .book .meta { margin: 4px 0 0; padding-bottom: 6px; border-bottom: 1.2px solid var(--ink); box-shadow: none; font-size: 9px; }
.panel.v2 .stats.two { grid-template-columns: 1fr 1fr; }
.panel.v2 .stats b { font-size: 12.6px; }
.panel.v2 .wide { align-self: stretch; height: 32px; margin-top: auto; border: 0; border-radius: 0; background: var(--ink); color: var(--paper); font-size: 10.8px; font-weight: 600; }
.panel.v2 button.app-row { width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--ink); background: none; text-align: left; }
.panel.v2 .app-row .st { font-size: 9px; }
.panel.v2 .frame-foot button, .panel.v2 .thead button { border: 1.2px solid var(--ink); background: none; font-size: 9px; padding: 3px 8px; }

@media (max-height: 800px) { :root { --zoom: 1.12; } }
@media (max-height: 700px) { :root { --zoom: 1; } }
/* 手机按视口宽度缩放机身，不能让桌面网格把页面撑宽。 */
@media (max-width: 600px) {
  :root { --zoom: 1.08; }
  .stage { padding: 16px 16px 32px; }
  .brand { flex-wrap: wrap; white-space: normal; gap: 4px 10px; }
  .device { justify-self: center; }
}
@media (max-width: 360px) { :root { --zoom: .94; } }
.v-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.v-grid2 .choice { margin: 0; text-align: left; }
.panel.v2 .buddy { box-sizing: border-box; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.panel.v2 .buddy p { margin: 0; }
.panel.v2 .buddy .qr { margin: 4px auto; }
.panel.v2 .buddy.chat { align-items: stretch; }
.panel.v2 .wallview .choices { flex-direction: column; }
.panel.v2 .wallview .choices .choice { flex: none; height: 24px; border-left: 0; border-top: 1px solid var(--ink); }
.panel.v2 .wallview .choices .choice:first-child { border-top: 0; }

/* 设备上的「添加助理」与「扫码添加来源」：二维码 + 地址（右侧去掉多余外框，与二维码垂直居中对齐） */
.v-pair-top { flex: none; display: flex; gap: 12px; align-items: center; }
.v-pair-top .pair-qr { flex: none; width: 76px; height: 76px; border: 1.2px solid var(--ink); }
.v-pair-top .v-pair-address { flex: 1; min-width: 0; padding: 0; border: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.v-pair-top .v-pair-address code { font-size: 9.8px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.v-flow { flex: none; list-style: none; margin: 0; padding: 0; border-top: 1.2px solid var(--ink); }
.v-flow li { display: flex; align-items: center; gap: 9px; min-height: 28px; border-bottom: 1px solid var(--ink); font-size: 10.8px; }
.v-flow li i { flex: none; width: 15px; height: 15px; display: grid; place-items: center; border: 1.2px solid var(--ink); border-radius: 50%; font-style: normal; font-size: 8.5px; font-weight: 600; }
.v-flow li i .ic { width: 9px; height: 9px; stroke-width: 2.6; }
.v-flow li.is-done i { background: var(--ink); color: var(--paper); }
.v-flow li.is-cur i { border-width: 2.4px; }
.v-flow li.is-cur b { font-weight: 700; }
.v-flow li.is-todo { color: var(--g1); }
.v-flow li.is-todo i { border-color: var(--g2); }
.v-flow li.is-bad i, .v-flow li.is-warn i { border-style: dashed; }

.v2 .calibration { margin: 12px 0; }
.v2 .calibration h3 { margin: 0 0 8px; font-size: 13px; font-weight: 500; }
.v2 .calibration .note { margin: 6px 0; font-size: 12px; }
/* 代理页的测试按钮占满一行，和设备上一样。 */
.v-fld > .v-line.is-full { width: 100%; }
/* 网络页多了顶部的状态卡：间距收一点，4G 那一版（状态卡、上网方式、选卡、两行入口、断网时间）一屏放得下。 */
.v-pane.is-tight { gap: 7px; }

/* 悬窗：正文页下方问这一页、聊这一页，占 3/4 屏（上沿对齐到两行之间，见 v2SnapFloat）；全屏时原地拉满整屏，不卸载底层书页。 */
.v-float { position: absolute; left: 0; right: 0; bottom: 0; height: 75%; background: var(--paper); display: flex; flex-direction: column; z-index: 3; }
.v-float.is-full { top: 0; height: 100% !important; }
.v-float.is-full::before { display: none; }
/* 和书页分开：上沿外面一条抖点阴影（墨水屏只有黑白和抖点），标题栏整条黑底 */
.v-float::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 5px; background-image: radial-gradient(var(--ink) 0.55px, transparent 0.75px); background-size: 2px 2px; }
.v-float-head { flex: none; height: 32px; padding: 0 4px 0 14px; background: var(--ink); color: var(--paper); display: flex; align-items: center; gap: 4px; }
.v-float-head b { font-size: 11.5px; font-weight: 600; letter-spacing: 1px; }
.v-float-head span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; }
.v-float-head .v-txt { padding: 6px 4px; color: var(--paper); }
.v-float-head .v-float-x { color: var(--paper); }
.v-float-x { width: 28px; height: 28px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.v-float-x .ic { width: 13px; height: 13px; }
.v-right { display: flex; align-items: center; }
.v-head-tts { margin-left: 6px; margin-right: -6px; }
.v-head-tts .ic { width: 14px; height: 14px; }
.v-float-body { flex: 1; min-height: 0; overflow: hidden; padding: 10px 14px 4px; display: flex; flex-direction: column; }
.v-float-body .v-live { height: auto; flex: 1; }
.v-float-tip { margin: 0; font-size: 10.8px; line-height: 1.6; color: var(--g1); }
.v-float-sugs { margin-top: auto; border-top: 1.2px solid var(--ink); }
.v-float-sugs button { width: 100%; height: 30px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--ink); background: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.8px; text-align: left; }
.v-float-sugs button:last-child { border-bottom: 0; }
.v-float-sugs .ic { width: 9px; height: 9px; }
.v-float-more { margin-top: auto; align-self: flex-start; padding: 4px 0; border: 0; border-bottom: 1px solid var(--ink); background: none; display: flex; align-items: center; gap: 4px; font-size: 9px; }
.v-float-more .ic { width: 8px; height: 8px; }
.v-float .v-pages { height: 22px; }
.v-float .v-talk { margin: 2px 12px 10px; }

/* SS 加密方式的弹出列表：遮罩盖住整屏，面板占下方 76%，列表带常显的滚动条，拖完停在整行上。 */
/* 阅读卡片开着时盖在正文上的网点层（和弹出列表同一种网点）；卡片在它上面。 */
.v-shade { position: absolute; inset: 0; z-index: 1; background-image: radial-gradient(var(--ink) 0.5px, transparent 0.7px); background-size: 3px 3px; }
.panel.v2 .v-read .sheet { z-index: 2; }
/* 墨水屏没有灰色蒙层：下面的页面盖一层稀疏的网点（看上去发灰，说明被盖住了、点它会关），
   面板标题用黑底白字，和阅读页悬窗的标题栏一样，一眼看出是浮在页面上的一层。 */
.v-pick { position: absolute; inset: 0; z-index: 15; background-image: radial-gradient(var(--ink) 0.5px, transparent 0.7px); background-size: 3px 3px; }
.v-pick-panel { position: absolute; left: 0; right: 0; bottom: 0; height: 76%; box-sizing: border-box; padding: 0 11px 5px; background: var(--paper); display: flex; flex-direction: column; }
.v-pick-head { height: 32px; flex: none; margin: 0 -11px 6px; padding: 0 6px 0 14px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: space-between; }
.v-pick-head b { font-size: 11.5px; font-weight: 600; letter-spacing: 1px; }
.v-pick-head button { border: 0; background: none; color: var(--paper); padding: 6px 8px 6px 12px; font-size: 9px; text-decoration: underline; }
.v-pick > .v-pick-panel > p { flex: none; margin: 0 0 4px; font-size: 9px; color: var(--ink); }
.v-pick-list { flex: none; overflow-y: scroll; padding-right: 8px; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.v-pick-list::-webkit-scrollbar { width: 3px; }
.v-pick-list::-webkit-scrollbar-thumb { background: var(--ink); }
.v-pick-row { width: 100%; height: 31px; box-sizing: border-box; padding: 0 1px; border: 0; border-bottom: 1px solid var(--ink); background: none; display: flex; align-items: center; justify-content: space-between; text-align: left; scroll-snap-align: start; }
.v-pick-row b { font-size: 10.8px; font-weight: 400; }
.v-pick-row.on b { font-weight: 700; }
.v-pick-row em { font-style: normal; font-size: 9px; margin-right: 6px; }
/* 项少（不用滚）时面板缩到刚好放下，列表不显示滚动条。 */
.v-pick-panel.fit { height: auto; padding-bottom: 12px; }
.v-pick-list.fit { overflow-y: hidden; }

/* ── 状态栏（新设计）：三组按同一条中线摆，图标都用 SVG 画，不靠字体基线 ── */
.panel.v2 .bar.sb { height: 24px; padding: 0 10px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; cursor: pointer; }
.panel.v2 .bar.sb .sb-left { display: flex; align-items: center; gap: 4px; height: 100%; }
.panel.v2 .bar.sb .c { font-size: 10px; font-weight: 600; letter-spacing: .3px; line-height: 1; }
.panel.v2 .bar.sb .right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.sb i { display: flex; align-items: center; justify-content: center; }
/* 所有图标轮廓都是 10px 高（加上线宽正好和信号格的 11px 一样高），线宽都是 1.5px，不跟着缩放变粗变细 */
.sb .sbi { height: 9.5px; width: auto; overflow: visible; }
.sb .sbi :not(.solid) { vector-effect: non-scaling-stroke; stroke-width: 1.5px; }
/* 盾牌里的两支箭头比外框细一档，小尺寸下不挤成一团 */
.sb .sb-proxy .sbi path:last-child { stroke-width: 1.05px; }
/* 4G 信号是实心的柱子，没有线宽撑出来的那圈，直接画 11px 高，和 Wi-Fi（9.5px + 线宽）一样高；块里同理 */
.sb .sb-sig .sbi, .sb .sb-wifi .sbi { height: 11px; }
/* 实心图标（Wi-Fi）不吃上面的固定像素线宽：它的线宽就是弧带的粗细和扇形的圆角，写在图形自己身上，跟着图标一起缩放 */
/* 电池，照 iPhone：没有描边的圆角块，没电的部分浅灰、有电的部分中灰（按电量从左往右），黑色粗体数字铺满整块。
   进度用灰不用黑，数字始终是白底上的黑字，不用反显。墨水屏能显示 16 级灰（GL16 刷新），电量一般几分钟才变一次。 */
.sb-batt { position: relative; width: 25px; height: 13px; box-sizing: border-box; border-radius: 4px; margin-right: 3px;
  background: linear-gradient(90deg, #9c9c9a calc(var(--lvl) * 1%), #dcdcda 0); }
.sb-batt::after { content: ""; position: absolute; right: -2.6px; top: 4px; width: 1.8px; height: 5px; background: #dcdcda; border-radius: 0 1.2px 1.2px 0; }
.sb-batt b { position: relative; z-index: 1; font-family: "Helvetica Neue", Arial, sans-serif; font-style: normal; display: flex; align-items: center; gap: .4px;
  font-size: 9.6px; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.sb-batt .bolt { width: 4.4px; height: 7.6px; fill: currentColor; margin-left: .2px; }
/* 充电时框跟着内容变宽，闪电右边不留多余的空 */
.sb-batt.charging { width: auto; min-width: 25px; padding: 0 2.4px 0 2.8px; }

/* ── 快捷面板（从状态栏往下拉）── */
.q-mask { position: absolute; inset: 0; z-index: 14; background-image: radial-gradient(var(--ink) 0.5px, transparent 0.7px); background-size: 3px 3px; }
.q-panel { position: absolute; left: 0; right: 0; top: 24px; z-index: 15; padding: 10px 10px 14px; background: var(--paper); border-bottom: 1.2px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
/* 两块一样宽：1fr 的最小宽度是内容宽，长的小字会把一列撑宽，所以用 minmax(0, 1fr) */
.q-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.q-grid .q-tile { min-width: 0; }
.q-tile { height: 44px; padding: 0 8px; border: 1.2px solid var(--ink); background: var(--paper); color: var(--ink); display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; }
/* 块里的图标：裁到轮廓、一样高（18px），线宽 1.8px；放在 24px 宽的格子里居中，两块的字左边对齐 */
.q-tile .q-ic { width: 24px; flex: none; display: flex; justify-content: center; }
/* 等高时 Wi-Fi 比盾牌宽一半，放大后看着大一号。改成都装进同样大的方框（20×20，按比例缩到放得下）：
   宽的 Wi-Fi 顶满宽、矮一些，高的盾牌顶满高、窄一些，看着一样大 */
.q-tile .qi { width: 20px; height: 20px; overflow: visible; }
/* 盾牌是封闭的轮廓，里面还有箭头，同样大的框里看着比 Wi-Fi 的几道弧重，缩一点点找齐 */
.q-tile[data-quick="proxy"] .qi { width: 19px; height: 19px; }
.q-tile[data-quick="link"] .qi rect { stroke: none; }
.q-tile .qi :not(.solid) { vector-effect: non-scaling-stroke; stroke-width: 1.8px; }
.q-tile[data-quick="proxy"] .qi path:last-child { stroke-width: 1.4px; }
.q-tile span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.q-tile b { font-size: 10.8px; font-weight: 600; }
.q-tile em { font-style: normal; font-size: 8.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 开着的块用深灰，不用纯黑：墨水屏能显示灰阶，深灰上的白字照样清楚，看着没那么重 */
.q-tile.on { background: #4a4a48; border-color: #4a4a48; color: var(--paper); }
.q-tile.dim { border-style: dashed; }
.q-tile { position: relative; }
/* 右上角的小标：反色小方块，和开关同色系 */
.q-corner { position: absolute; top: 5px; right: 7px; font-style: normal; font-size: 8px; font-weight: 600; line-height: 1; }
.q-level { height: 24px; display: flex; align-items: center; gap: 7px; font-size: 9px; }
.q-level .ic { width: 14px; height: 14px; }
/* 一排左边的图标兼开关：有框，一看就能点；关着时反白（黑底白图标） */
/* 三个图标一个样子，都不加框：框会让人以为它和色温不是一类东西。前光、音量的图标就是这一排的「0 档」，点它关掉；关了换成划掉的图标，右边写「关」「静音」 */
.q-switch { width: 24px; height: 22px; flex: none; padding: 0; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
/* 面板里填上的格子也用同一种深灰，和上面两块一致 */
.q-level .v-blocks button.on { background: #4a4a48; border-color: #4a4a48; }
.q-switch.label { border-color: transparent; cursor: default; }
.q-level.dim .v-blocks, .q-level.dim b, .q-level.dim .q-switch { opacity: .45; }
.q-level .v-blocks { height: 16px; }
.q-level b { width: 22px; text-align: right; font-weight: 600; white-space: nowrap; }
.q-tip { margin: 0; font-size: 8.4px; color: var(--g1); }
.q-grip { align-self: center; width: 34px; height: 3px; border-radius: 2px; background: var(--ink); margin-top: 2px; }

/* 本机图标（sim/local/icons.js）：同一个比例缩放，Wi-Fi 在状态栏 11px、块里 15px 高，其余按各自原来的高矮 */
.sb .sbi.local { height: calc(var(--h) * 11px / 63.09); width: auto; }
.q-tile[data-quick] .qi.local { height: calc(var(--h) * 15px / 63.09); width: auto; }

/* 本机电池框：和 Wi-Fi 一样 11px 高；灰色块用中灰（16 级灰里稳的一档），数字黑色粗体 */
.sb-batt2 { position: relative; display: block; height: 11px; margin-right: 2px; }
.sb-batt2 svg { height: 100%; width: auto; display: block; overflow: visible; }
.sb-batt2 .lvl { fill: #a3a3a0; }
.sb-batt2 b { position: absolute; display: flex; align-items: center; justify-content: center; gap: .3px; font: 700 7.2px/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: -.1px; }
.sb-batt2 .bolt { width: 3.4px; height: 5.8px; fill: currentColor; }
/* 本机闪电（sim/local）：比数字略矮，紧贴在数字右边 */
.sb-batt2 .bolt2 { height: 5.4px; width: auto; fill: currentColor; margin-left: .4px; }
.q-level .q-rowic { display: block; overflow: visible; }
.q-level .q-rowic .erase { fill: var(--paper); }
.sbi .erase, .qi .erase { fill: var(--paper); }
/* Wi-Fi 省电睡下：扇形变灰（真机上是 50% 格点，黑白屏也能看出灰） */
.sb .sb-wifi.asleep .sbi, .sb .sb-proxy.asleep .sbi { opacity: .35; }

/* 选字：选中的字反显（深灰底白字），底下卡片列出几个现成的问题 */
.v-read .read-body [data-ch].sel { background: #4a4a48; color: var(--paper); box-shadow: 1px 0 0 #4a4a48, -1px 0 0 #4a4a48; }   /* 影子补上字间的细缝 */
/* 选中后浮在字旁边的卡片：黑底白字，几乎整屏宽。上面几行预设问题，下面一排 查字典 / 整句 / 问 AI。
   上面放得下就在选中的字上面，不然在下面；小三角指着选中的字 */
.v-selpop { position: absolute; z-index: 5; width: calc(100% - 16px); background: var(--ink); color: var(--paper); border-radius: 0; }
.v-pop-qs { padding: 4px 0; }
.v-pop-qs button { width: 100%; min-height: 32px; padding: 5px 12px; border: 0; background: none; color: inherit; display: flex; align-items: center; gap: 8px; text-align: left; font-size: 11px; line-height: 1.35; }
.v-pop-qs button + button { border-top: 1px solid #5a5a58; }
.v-pop-qs .ic { flex: none; width: 13px; height: 13px; }
.v-pop-tip { margin: 6px 12px 2px; font-size: 10.5px; line-height: 1.5; }
.v-pop-tools { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #8a8a88; }
.v-pop-tools button { position: relative; z-index: 1; height: 48px; border: 0; background: none; color: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; }
.v-pop-tools .ic { width: 16px; height: 16px; }
.v-pop-tools button.on { background: var(--paper); color: var(--ink); margin: 0 -7px; padding: 0 7px; clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%); }   /* 整句按下去：斜切反白 */
.v-pop-cut { position: absolute; top: 0; bottom: 0; width: 1.2px; margin-left: -0.6px; background: #8a8a88; transform: skewX(-17.4deg); pointer-events: none; z-index: 2; }
.v-pop-tools button:disabled { opacity: .38; }
.v-pop-arrow { position: absolute; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--ink); transform: rotate(45deg); }
.v-selpop.below .v-pop-arrow { bottom: auto; top: -5px; }
/* 选中范围两头的把手：一根竖线加一个圆点（开头的点在上，结尾的点在下），按住拖动改范围。
   放在字里面绝对定位，不改排版；透明的宽条是放大后的手指触控区（开头向上延伸，结尾向下延伸，避免单字重叠） */
.v-read .read-body { touch-action: none; }
.v-read .read-body [data-ch].sel { position: relative; }
.v-hdl { position: absolute; width: 48px; z-index: 2; cursor: ew-resize; }
.v-hdl.s { left: -24px; top: -32px; bottom: 0; }
.v-hdl.e { right: -24px; top: 0; bottom: -32px; }
.v-hdl::before { content: ""; position: absolute; left: 23px; width: 2px; background: var(--ink); }
.v-hdl.s::before { top: 32px; bottom: 0; }
.v-hdl.e::before { top: 0; bottom: 32px; }
.v-hdl::after { content: ""; position: absolute; left: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.v-hdl.s::after { top: 23px; }
.v-hdl.e::after { bottom: 23px; }

/* ── 书架 · 书库（OPDS / 微信读书）与画廊式墨水屏书架 ── */
.v-lib { gap: 8px; padding-top: 8px; }
.v-lhead-acts { display: flex; align-items: center; gap: 6px; }
.v-ltag-btn { flex: none; border: 1.2px solid var(--ink); padding: 2px 7px; font-size: 9px; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 3.5px; }
.v-ltag-btn .ic { width: 10px; height: 10px; stroke-width: 2.2; flex: none; }
.v-sseg button { height: 22px; font-size: 9px; }

.v-opds-list { display: flex; flex-direction: column; border-top: 1.2px solid var(--ink); }
.v-opds-row { width: 100%; min-height: 48px; padding: 5px 2px; border: 0; border-bottom: 1px solid var(--ink); background: none; display: flex; align-items: center; gap: 8px; text-align: left; }
.v-opds-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v-opds-row b { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-opds-row em { font-style: normal; font-size: 9px; color: var(--g1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-opds-row small { flex: none; font-size: 9px; }

.v-lsearch { flex: none; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 7px; border: 1.2px solid var(--ink); background: none; }
.v-lsearch .ic { width: 11px; height: 11px; flex: none; }
.v-lsearch input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--ink); font-size: 9.5px; }
.v-lsearch button { border: 0; background: none; font-size: 8.5px; text-decoration: underline; padding: 2px; }
.v-lhint { margin: 0; flex: none; font-size: 9px; color: var(--g1); }

/* ── 实体书装帧封面系统（严格遵循四级灰阶与直角线条，零圆角、零模糊） ── */
.v-lcover {
  position: relative;
  height: 82px;
  box-sizing: border-box;
  border: 1.2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  display: block;
  font-style: normal;
  overflow: hidden;
  /* 右下 1px 纸白 + 1px 墨线 = 实体书页层叠边缘 */
  box-shadow: 1.5px 1.5px 0 var(--paper), 2.5px 2.5px 0 var(--ink);
}
.v-cov-in {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 7px 5px 5px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.v-cov-t {
  font: 600 10.5px/1.25 "Songti SC", "Source Han Serif SC", serif;
  letter-spacing: 0.3px;
  display: flex;
  flex-direction: column;
}
.v-cov-t span { display: block; }
.v-cov-a {
  font-style: normal;
  font-size: 6.8px;
  color: var(--g1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 装帧 1：经典左书脊 (tpl-classic) */
.v-lcover.tpl-classic::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--ink);
  z-index: 2;
}

/* 装帧 2：中式线装签条 (tpl-tategaki) — 左侧四钉线装孔 + 竖排题签框 */
.v-lcover.tpl-tategaki {
  background:
    linear-gradient(90deg, transparent 4px, var(--ink) 4px, var(--ink) 4.8px, transparent 4.8px),
    linear-gradient(180deg, transparent 16%, var(--ink) 16%, var(--ink) 17.5%, transparent 17.5%, transparent 38%, var(--ink) 38%, var(--ink) 39.5%, transparent 39.5%, transparent 60%, var(--ink) 60%, var(--ink) 61.5%, transparent 61.5%, transparent 82%, var(--ink) 82%, var(--ink) 83.5%, transparent 83.5%),
    var(--paper);
  background-size: 100% 100%, 4.5px 100%, 100% 100%;
  background-repeat: no-repeat;
}
.v-lcover.tpl-tategaki .v-cov-in {
  padding: 6px 6px 5px 9px;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
}
.v-lcover.tpl-tategaki .v-cov-t {
  writing-mode: vertical-rl;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 4px 2.5px;
  font-size: 9.5px;
  line-height: 1.15;
  letter-spacing: 1px;
  max-height: 66px;
}
.v-lcover.tpl-tategaki.tagged .v-cov-in { padding-right: 13px; }
.v-lcover.tpl-tategaki .v-cov-a {
  align-self: flex-end;
  writing-mode: vertical-rl;
  font-size: 6.5px;
  letter-spacing: 0.5px;
  max-height: 52px;
}

/* 装帧 3：深墨典藏 (tpl-dark) — 墨底白字 + 内嵌细白框 */
.v-lcover.tpl-dark {
  background: var(--ink);
  color: var(--paper);
}
.v-lcover.tpl-dark .v-cov-in {
  margin: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border: 1px solid rgba(242, 242, 241, 0.72);
  padding: 5px 4px 4px 5px;
}
.v-lcover.tpl-dark .v-cov-t { color: var(--paper); font-size: 10px; }
.v-lcover.tpl-dark .v-cov-a { color: var(--g2); }

/* 装帧 4：斜切现代 (tpl-slash) — 呼应 Valet 首页 11.2° 斜切几何基因 */
.v-lcover.tpl-slash {
  background: linear-gradient(168.8deg, var(--ink) 0%, var(--ink) 54%, var(--paper) 54.5%, var(--paper) 100%);
}
.v-lcover.tpl-slash .v-cov-in { padding: 6px 5px 4px 7px; }
.v-lcover.tpl-slash .v-cov-t { color: var(--paper); font-size: 10px; }
.v-lcover.tpl-slash .v-cov-a { color: var(--ink); font-weight: 600; }

/* 缩略与详情页大尺寸封面 */
.v-lcover.sm { width: 32px; height: 46px; flex: none; box-shadow: none; border-left-width: 3px; }
.v-lcover.sm::before { display: none; }
.v-lcover.sm .v-cov-in { padding: 3px 2px; align-items: center; justify-content: center; text-align: center; }
.v-lcover.sm .v-cov-t { font-size: 8.5px; line-height: 1.2; }
.v-lcover.sm .v-cov-a { display: none; }
.v-lcover.big { width: 74px; height: 104px; flex: none; }
.v-lcover.big .v-cov-t { font-size: 12.5px; }

/* ── 右上角 45° 来源斜角标（微读 / 书库 / 古登堡） ── */
.v-ltag {
  position: absolute;
  top: 7px;
  right: -20px;
  width: 62px;
  transform: rotate(45deg);
  z-index: 4;
  font-style: normal;
  font-size: 6.2px;
  font-weight: 600;
  line-height: 9.5px;
  text-align: center;
  letter-spacing: 0.4px;
  white-space: nowrap;
  pointer-events: none;
}
/* 微读：黑底白字 + 1px 纸白外衬边（在深色/浅色封面上都清晰分明） */
.v-ltag.is-dark {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 0 0 1px var(--paper), 0 0 0 1.8px var(--ink);
}
/* 自建同步书库：纸白底黑字 + 上下墨线 */
.v-ltag.is-paper {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 0 0 1px var(--paper);
}
/* 古登堡：墨水屏抖点网纹底 */
.v-ltag.is-dither {
  background-color: var(--paper);
  background-image: radial-gradient(var(--ink) 0.45px, transparent 0.6px);
  background-size: 2px 2px;
  color: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.v-lcover.tagged:not(.tpl-tategaki) .v-cov-t { padding-right: 14px; }
.v-lcover.away { border-style: dashed; box-shadow: none; background: var(--paper) !important; color: var(--ink) !important; }
.v-lcover.away::before { background: none; border-left: 1px dashed var(--ink); }
.v-lcover.away .v-cov-t, .v-lcover.away .v-cov-a { color: var(--g1) !important; }

/* ── 四款书架板式 ── */
.v-sstage { display: flex; flex-direction: column; gap: 11px; padding-bottom: 4px; }
.v-stier { position: relative; display: flex; flex-direction: column; }
.v-sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; position: relative; z-index: 1; }
.v-sitem {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}
.v-scov-box { position: relative; width: 100%; }

/* 方案 1：书脊刻度 (v-prog-spine) — 嵌在封面左侧 3.5px 书脊装订槽内，从下往上生长，完全不遮挡封面和作者 */
.v-prog-spine {
  position: absolute;
  left: 1.2px;
  top: 1.2px;
  bottom: 1.2px;
  width: 3.2px;
  background: var(--paper);
  border-right: 1px solid var(--ink);
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.v-prog-spine b {
  display: block;
  width: 100%;
  background: var(--ink);
}

/* 方案 2：底框墨线 (v-prog-edge) — 贴在封面最底边 3px，不悬浮进封面内部，不遮挡左下角作者行 */
.v-prog-edge {
  position: absolute;
  left: 1.2px;
  right: 1.2px;
  bottom: 1.2px;
  height: 3px;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  z-index: 3;
  display: block;
  pointer-events: none;
}
.v-prog-edge b { display: block; height: 100%; background: var(--ink); }
.pm-edge .v-cov-in { padding-bottom: 6px; }

/* 方案 3：书名同行 (v-sname-row) — 封面零遮挡，下方单行左书名、右百分比 */
.v-sname-row {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px;
  min-width: 0;
}
.v-sname-row .v-sname { margin-top: 0; flex: 1; min-width: 0; }
.v-sname-row b {
  flex: none;
  font: 600 8px/1 "Avenir Next", sans-serif;
  color: var(--g1);
}
.v-sname-row .v-sin-away {
  flex: none;
  font-size: 7.2px;
  color: var(--g1);
}

/* 方案 4：书名下细线 (v-prog-sub) — 封面零遮挡，书名下紧跟一条 2.5px 细进度轨 */
.v-prog-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 7px;
  margin-top: 1px;
}
.v-prog-sub.is-empty { visibility: hidden; }
.v-prog-sub > i {
  flex: 1;
  height: 2.5px;
  border: 1px solid var(--ink);
  background: var(--paper);
  display: block;
}
.v-prog-sub b { display: block; height: 100%; background: var(--ink); }
.v-prog-sub span { flex: none; font: 600 7.2px/1 "Avenir Next", sans-serif; color: var(--g1); }

.v-sname {
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 板式 2：斜切主卡 + 网格 (is-slash) — 复用首页 .v-book 的斜切设计 */
.v-shero {
  position: relative;
  flex: none;
  width: 100%;
  height: 60px;
  padding: 0 0 0 8px;
  border: 1.2px solid var(--ink);
  background: none;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
}
.v-shero-main { flex: 1; min-width: 0; padding-right: 72px; display: flex; flex-direction: column; gap: 3px; }
.v-shero-main b { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-shero-main em { font-style: normal; font-size: 8.5px; color: var(--g1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-shero-main .v-track { width: 76px; height: 4px; }
.v-shero .v-wedge { width: 68px; font-size: 10px; }

/* 板式 3：层板托轨 (is-rail) — 封面稳立在双线层板与抖点阴影上 */
.v-stier.is-rail .v-lcover { box-shadow: 2px 0 0 var(--ink); }
.v-stier.is-rail .v-sname { margin-top: 8px; text-align: center; }
.v-stier.is-rail .v-snote { text-align: center; }
.v-sledge {
  position: absolute;
  left: -2px;
  right: -2px;
  top: 82px;
  height: 3px;
  background: var(--ink);
  z-index: 3;
  pointer-events: none;
}
.v-sledge::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 3px;
  height: 3px;
  background-image: radial-gradient(var(--ink) 0.55px, transparent 0.75px);
  background-size: 2px 2px;
}

/* ── 列表视图：4 款无封面排版方案对比 ── */
.v-llist { border-top: 1.2px solid var(--ink); display: flex; flex-direction: column; }
.v-litem {
  position: relative;
  width: 100%;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}
.v-litem.away .v-ll-main b,
.v-litem.away .v-lc-title { color: var(--g1); }
.v-ll-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2.5px; }
.v-ll-main b { font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-ll-main em { font-style: normal; font-size: 8.5px; color: var(--g1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 来源小标签（微读黑底白字 / 书库白底黑框） */
.v-lsrc-pill {
  flex: none;
  font-style: normal;
  font-size: 7.5px;
  font-weight: 600;
  line-height: 1;
  padding: 2px 4px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.v-lsrc-pill.is-dark {
  background: var(--ink);
  color: var(--paper);
}

/* 方案 1：双行主次 (is-twoline) — 右侧上下叠放百分比与 42px 迷你进度条 */
.v-litem.is-twoline { min-height: 44px; }
.v-lr-box { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 44px; }
.v-lmini-bar { width: 42px; height: 3.5px; border: 1px solid var(--ink); background: var(--paper); display: block; box-sizing: border-box; }
.v-lmini-bar b { display: block; height: 100%; background: var(--ink); }

/* 方案 2：底轨进度 (is-bottombar) — 行底分隔线本身加粗为通栏进度条，呼应封面底框墨线 */
.v-litem.is-bottombar { min-height: 44px; padding-bottom: 8px; }
.v-lr-inline { flex: none; display: flex; align-items: center; gap: 6px; }
.v-lrow-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.v-lrow-edge b { display: block; height: 100%; background: var(--ink); }

/* 方案 3：单行紧凑 (is-compact) — 一屏 9 本高密度目录 */
.v-litem.is-compact { min-height: 33px; padding: 4px 2px; gap: 6px; }
.v-lc-title { flex: 1; min-width: 0; font-size: 10.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-lc-author { flex: 0 1 54px; font-style: normal; font-size: 8.5px; color: var(--g1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.v-lc-pct { flex: none; width: 28px; text-align: right; font: 600 10px/1 "Avenir Next", sans-serif; color: var(--ink); }
.v-lc-stat { flex: none; width: 28px; text-align: right; font-size: 8px; color: var(--g1); }
.v-lc-stat.is-away { text-decoration: underline; text-decoration-style: dashed; }

/* 方案 4：左竖标线 (is-catalog) — 左侧 3px 竖向进度刻度槽 + 双行信息 + 右侧进度 */
.v-litem.is-catalog { min-height: 44px; gap: 8px; }
.v-lcat-bar {
  flex: none;
  width: 3px;
  height: 28px;
  box-sizing: border-box;
  border: 1px solid var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.v-lcat-bar.is-unread { border-color: var(--g2); }
.v-lcat-bar.is-away { border-style: dashed; border-color: var(--g1); }
.v-lcat-bar b { display: block; width: 100%; background: var(--ink); }
.v-lcat-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.v-lcat-r b { font: 600 11px/1 "Avenir Next", sans-serif; }

.v-lpct { flex: none; font: 600 12px/1 "Avenir Next", sans-serif; color: var(--ink); }
.v-lstat { flex: none; font-size: 8px; font-weight: 500; padding: 1.5px 4px; border: 1px solid var(--ink); color: var(--ink); }
.v-lstat.is-away { border-style: dashed; color: var(--g1); }

.v-lrows { flex: none; display: flex; flex-direction: column; border-top: 1.2px solid var(--ink); }
.v-lrow { width: 100%; min-height: 52px; padding: 5px 2px; border: 0; border-bottom: 1px solid var(--ink); background: none; display: flex; align-items: center; gap: 8px; text-align: left; }
.v-lrow > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v-lrow b { font-size: 11.5px; font-weight: 600; }
.v-lrow em { font-style: normal; font-size: 9px; color: var(--g1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-lrow small, .v-lok { flex: none; font-size: 8px; padding: 2px 4px; border: 1px solid var(--ink); }
.v-lbook { display: flex; flex-direction: column; gap: 9px; }
.v-opds-detail-mask { position: absolute; inset: 0; display: flex; align-items: flex-end; background: #0006; z-index: 20; }
.v-opds-detail { width: 100%; max-height: 100%; overflow: auto; background: var(--paper); }
.v-opds-detail header { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; color: var(--paper); background: var(--ink); font-size: 13px; }
.v-opds-detail header button { border: 0; color: inherit; background: none; font-size: 11px; }
.v-opds-detail .v-lbook { padding: 12px 14px 14px; }
.v-opds-row .v-opds-meta { display: flex; }
.v-opds-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-opds-meta span:last-child { flex: none; white-space: pre; }
.v-lbook-top { display: flex; gap: 11px; }
.v-lbook h3 { margin: 2px 0 4px; font: 600 15px "Songti SC", serif; }
.v-lbook-top p { margin: 0 0 4px; font-size: 10.8px; }
.v-lbook .v-lmeta { font-size: 9px; color: var(--g1); }
.v-lbook .v-lmeta b { color: var(--ink); font-weight: 600; }
.v-ldesc { margin: 0; padding-top: 8px; border-top: 1.2px solid var(--ink); font-size: 10.8px; line-height: 1.6; }
.v-lacts { display: flex; flex-direction: column; gap: 6px; }
.v-lacts .v-solid, .v-lacts .v-line { width: 100%; height: 34px; }
.v-lacts .v-solid[disabled] { background: var(--paper); color: var(--ink); border: 1.2px dashed var(--ink); }
.v-lacts .v-line.on { border-style: dashed; }
.v-inputs.one { grid-template-columns: 1fr; margin-bottom: 6px; }
.v-lbar { flex: none; display: flex; align-items: center; justify-content: space-between; font-size: 8.5px; color: var(--g1); }
.panel.v2 .seg.tiny.v-lview button { padding: 3px 9px; }
.v-lrow.tagged { position: relative; overflow: hidden; }
.v-lrow.tagged > small { margin-right: 18px; }

/* ── 待机（AI 终端优先）。尺寸按真机 0.36 倍：40 px→14.4，30 px→10.8，25 px→9，20 px→7.2。
   两条箭头的高度对着机身右侧的键：AI 键中心 y≈96，电源键中心 y≈315。 */
.v-sb3 { position: relative; height: 100%; box-sizing: border-box; padding: 16px 13px 0; color: var(--ink); background: var(--paper); }
.v-sb3 header { display: flex; justify-content: space-between; align-items: baseline; font-size: 9px; }
.v-sb3 .sb-low { font-size: 9px; }
/* 短箭头：文字右对齐，箭头从文字末尾伸到屏幕边，尖正对侧键 */
.sb-arrow { flex: none; width: 20px; position: relative; height: 1.2px; background: var(--ink); margin-left: 6px; margin-right: -13px; }
.sb-arrow::after { content: ""; position: absolute; right: 0; top: -3.5px; border: 4px solid transparent; border-right: 0; border-left: 6px solid var(--ink); }
.sb-ai { position: absolute; left: 13px; right: 13px; top: 40px; }
.sb-ai-icon { display: flex; justify-content: flex-end; height: 34px; margin-right: 10px; }
/* 这一行的中线落在 y≈96，箭头正对 AI 键 */
.sb-ai-cta { display: flex; align-items: center; justify-content: flex-end; height: 24px; margin-top: 10px; }
.sb-ai-cta b { font-size: 18px; font-weight: 600; letter-spacing: 0.5px; }
.sb-ai-who { margin: 8px 13px 0 0; font-size: 10.8px; text-align: right; }
.sb-book { position: relative; display: block; box-sizing: border-box; border: 1.2px solid var(--ink); background: var(--paper); --bind: 6px; }
.sb-book .v-rh-band { width: 100%; height: 100%; align-items: flex-start; padding: 9px 0 9px calc(var(--bind) + 9px); }
.sb-book.is-mid { --bind: 4px; width: 54px; height: 81px; flex: none; }
.sb-book.is-mid .v-rh-band { padding: 7px 0 7px calc(var(--bind) + 7px); }
.sb-book.is-mid .v-rh-slip b { font-size: 8.5px; letter-spacing: 1px; }
.sb-book.is-mid .v-rh-corner { background-size: 100% 4px; }
/* 这一行的中线落在 y≈315，箭头正对电源键 */
.sb-read-cta { position: absolute; left: 13px; right: 13px; top: 308px; display: flex; align-items: center; justify-content: flex-end; height: 14px; font-size: 9px; }
.v-sb3 footer { position: absolute; left: 13px; right: 13px; top: 342px; padding-top: 9px; border-top: 1px solid var(--ink); font-size: 10.8px; }
.v-sb3 footer em { display: block; font-style: normal; font-size: 9px; letter-spacing: 1px; margin-bottom: 3px; }
.v-sb3 footer ul { margin: 0; padding: 0; list-style: none; }
.v-sb3 footer li { display: flex; align-items: center; gap: 7px; padding: 4px 0; }
.v-sb3 footer li i { flex: none; width: 7px; height: 7px; border: 1px solid var(--ink); }
.v-sb3 footer li.none { color: var(--g1); font-size: 9px; }

.v-sb3 .sb-arrow { width: 17px; height: 17px; margin: 0 0 0 7px; border-radius: 50%; background: var(--ink); }
.v-sb3 .sb-read-cta .sb-arrow { width: 14px; height: 14px; }
.v-sb3 .sb-arrow::after { content: ""; top: 50%; right: auto; left: 50%; width: 6px; height: 6px; border: solid var(--paper); border-width: 1.6px 1.6px 0 0; transform: translate(-70%, -50%) rotate(45deg); }
.v-sb3 .sb-ai-who { margin-right: 0; }
.v-sb3 .sb-ai-icon { margin-right: -3px; }

/* 进度：一条细线，读过的部分加粗 */
.sb-r2-line { position: relative; display: block; height: 3px; margin-top: 10px; }
.sb-r2-line::before { content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 0.8px; background: var(--ink); }
.sb-r2-line i { position: absolute; left: 0; top: 0; height: 3px; background: var(--ink); }
.sb-r2-quote { margin: 16px 0 0 -4.5px; font-size: 10.8px; line-height: 1.75; letter-spacing: 0.3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sb-read3 { position: absolute; left: 13px; right: 13px; top: 142px; padding-top: 12px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: 54px 1fr; column-gap: 13px; }
.sb-r3-t { display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; min-width: 0; padding-bottom: 2px; }
.sb-r3-t b { font-size: 10.8px; font-weight: 600; letter-spacing: 1px; }
.sb-r3-t span:not(.sb-r2-line) { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-r3-t em { font-style: normal; font-size: 7.2px; letter-spacing: 0.5px; }
.sb-r3-t .sb-r2-line { margin-top: 6px; }

/* 在读：有原书封面就用封面，没有才画线装书 */
.sb-cover { display: block; width: 54px; height: 81px; box-sizing: border-box; border: 1px solid var(--ink); overflow: hidden; }
.sb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-ai-icon svg { width: 46px; height: 28px; }
.sb-ai-icon { margin-right: 2px; align-items: center; }
/* 书名一行放得下就写作者、回目；书名两行就只留书名和进度。百分比跟在进度线后面 */
.sb-r3-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.sb-r3-t.is-long > span:not(.sb-r3-prog) { display: none; }
.sb-r3-prog { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.sb-r3-prog .sb-r2-line { flex: 1; margin-top: 0; }
.sb-r3-prog em { font-style: normal; font-size: 9px; }
.sb-read3 .sb-r2-quote { grid-column: 1 / -1; margin-top: 14px; }

/* ── 页面统一语言（2026-12-01）：和「全部应用」一样的页头页脚；所有内容两端对齐 12px 边线（机器 33px） */
.v-head { height: 36px; padding: 0 12px; border-bottom: 0; grid-template-columns: 1fr auto; }
.v-right { display: flex; align-items: center; gap: 6px; }
.v-page > .v-pfoot { margin: auto 12px 0; }
.v-pfoot .v-pg { font-size: 9px; color: var(--g1); }
.v-pane:has(+ .v-pfoot), .v-pane:has(+ .v-acts) { flex: 1; }
/* 分节标题：半粗小字，后面跟一个黑底计数块（同首页待办） */
.v-sec { flex: none; margin: 2px 0 -4px; display: flex; align-items: center; gap: 6px; font-size: 10.8px; font-weight: 600; }
.v-sec em { min-width: 14px; height: 14px; padding: 0 3px; box-sizing: border-box; background: var(--ink); color: var(--paper); font: 600 8px/14px "Avenir Next", sans-serif; font-style: normal; text-align: center; }
/* 空页：一句大字，一句灰字 */
.v-empty { flex: none; margin-top: 14px; }
.v-empty b { display: block; font-size: 14.4px; font-weight: 600; }
.v-empty p { margin: 6px 0 0; font-size: 9px; line-height: 1.6; color: var(--g1); }
/* 编号步骤 */
.v-steps { flex: none; list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.v-steps li { display: flex; gap: 8px; font-size: 10.8px; line-height: 1.5; }
.v-steps li > i { flex: none; width: 16px; height: 16px; margin-top: 1px; background: var(--ink); color: var(--paper); font: 600 9px/16px "Avenir Next", sans-serif; font-style: normal; text-align: center; }
.v-steps li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.v-code { align-self: stretch; padding: 5px 7px; border: 1.2px solid var(--ink); font: 600 10.8px "Avenir Next", ui-monospace, monospace; }
.v-qr { width: 84px; height: 84px; border: 1.2px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; }
.v-qr.big { width: 110px; height: 110px; }
.v-qr b { font-size: 9px; }
/* 主操作黑块（左边斜切，同「接着读」），次操作细框 */
.v-acts { flex: none; margin: 0 12px 6px; display: flex; flex-direction: column; gap: 6px; }
.v-block { flex: none; width: 100%; height: 32px; border: 0; background: var(--ink); color: var(--paper); font-size: 12.6px; font-weight: 600; letter-spacing: 1px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); }
.v-line.wide { width: 100%; height: 32px; }
.v-line.sm { flex: none; height: 22px; padding: 0 8px; display: inline-flex; align-items: center; font-size: 9px; font-style: normal; }
/* 每日清单：方框（同待机页、首页的待办） */
.v-tlist { flex: none; border-top: 1.2px solid var(--ink); }
.v-trow { width: 100%; min-height: 40px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--ink); background: none; display: flex; align-items: center; gap: 10px; font-size: 12.6px; text-align: left; }
.v-trow > i { flex: none; width: 12px; height: 12px; box-sizing: border-box; border: 1.2px solid var(--ink); display: grid; place-items: center; }
.v-trow > i .ic { width: 10px; height: 10px; stroke-width: 2.6; }
.v-trow span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.v-trow.done span { color: var(--g1); text-decoration: line-through; }
/* 底部弹层 */
.v-mask { position: absolute; inset: 0; z-index: 5; background: rgba(242, 242, 241, 0.65); display: flex; align-items: flex-end; }
.v-sheet { width: 100%; box-sizing: border-box; padding: 12px 12px 14px; background: var(--paper); border-top: 1.2px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.v-sheet > p { margin: 0; font-size: 12.6px; }
.v-sheet .v-two { display: flex; gap: 6px; }
.v-sheet .v-two .v-line { flex: 1; height: 32px; }
/* 壁纸：三列，两端贴边线，比例和屏幕一样 */
.v-wgrid { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
.v-wcell { min-width: 0; padding: 0; border: 0; background: none; display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-wimg { position: relative; display: grid; place-items: center; aspect-ratio: 684 / 1216; box-sizing: border-box; border: 1.2px solid var(--ink); background: repeating-linear-gradient(135deg, #d6d6d4 0 3px, #ebebea 3px 6px); }
.v-wimg em { position: absolute; left: 0; top: 0; padding: 1px 4px; background: var(--ink); color: var(--paper); font-size: 8px; font-style: normal; }
.v-wcell.add .v-wimg { border-style: dashed; background: none; }
.v-wcell.add .ic { width: 18px; height: 18px; }
.v-wimg.big { flex: 1; width: 100%; aspect-ratio: auto; margin: 0; }
.v-wbtns { flex: none; margin: 8px 12px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.v-wbtns.two { grid-template-columns: 1fr 1fr; }
.v-wbtns .v-line { height: 30px; border-width: 1.4px; }
.v-wbtns .v-line.on { background: var(--ink); color: var(--paper); }
.v-wbtns .v-line { display: inline-flex; align-items: center; justify-content: center; gap: 3px; white-space: nowrap; padding: 0 4px; }
.v-wbtns .v-line .ic { width: 11px; height: 11px; flex: none; }
/* 画一张 */
.v-wgen-spec { font-size: 8.5px; white-space: nowrap; border: 1px solid var(--ink); padding: 1px 4px; }
.v-wgen-q { flex: none; min-height: 58px; box-sizing: border-box; padding: 8px 9px; border: 1.2px solid var(--ink); font-size: 12.6px; line-height: 1.55; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.v-wgen-q.rec { border-width: 2px; }
.v-wgen-q em { font-style: normal; font-size: 9px; }
.v-wgen-hint { font-weight: 400; font-size: 10.5px; }
.v-wgen-ex { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.v-wgen-ex .v-line.sm { height: 24px; font-size: 9.5px; }
.v-wgen-src { flex: none; display: flex; align-items: center; gap: 8px; }
.v-wgen-src .v-wimg { width: 30px; flex: none; }
.v-wgen-src span { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 10.8px; font-weight: 600; }
.v-wgen-src em { font-style: normal; font-weight: 400; font-size: 9px; }
.v-wgen-src button { border: 0; background: none; padding: 4px; }
.v-wgen-src button .ic { width: 12px; height: 12px; }
.v-wgen-go { flex: none; margin: 0 12px 2px; }
.v-wgen-go .v-talk { margin: 0; grid-template-columns: 0 1fr auto; }
.v-wgen-go .tolive { padding: 0 18px 0 24px; font-size: 12.6px; letter-spacing: 1px; }
.v-wgen-go .tolive .ic { width: 12px; height: 12px; stroke: var(--paper); }
.v-wgen-pick0.one { grid-template-columns: 1fr; }
.v-wgen-steps { flex: none; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.v-wgen-steps li { display: flex; gap: 8px; align-items: flex-start; font-size: 10.8px; line-height: 1.5; }
.v-wgen-steps li > i { flex: none; width: 16px; height: 16px; border: 1.2px solid var(--ink); box-sizing: border-box; display: grid; place-items: center; font: 600 9px/1 "Avenir Next", sans-serif; font-style: normal; }
.v-wgen-steps li > i .ic { width: 10px; height: 10px; stroke-width: 2.6; }
.v-wgen-steps li.on > i, .v-wgen-steps li.done > i { background: var(--ink); color: var(--paper); }
.v-wgen-steps li.on span { font-weight: 600; }
.v-wgen-said { margin-top: 2px; }
.v-wgen-src .v-line.sm { flex: none; }
.v-wimg.photo { background: radial-gradient(ellipse at 50% 38%, #cfcfcd 0 18%, #6d6d6b 19% 30%, transparent 31%), linear-gradient(180deg, #e4e4e3 0 55%, #8a8a88 55% 100%); }
.v-wgen-pick { max-height: 260px; overflow-y: auto; }
.v-wgen-pick0 { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.v-wgen-pick0 .v-line { height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 12px; border-width: 1.4px; }
.v-wgen-pick0 .v-line .ic { width: 20px; height: 20px; }
.v-lpair .v-ltag-btn:first-child .ic { stroke: var(--paper); }
/* 应用商店 */
.v-appic { flex: none; width: 26px; height: 26px; box-sizing: border-box; border: 1.2px solid var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; font-style: normal; }
.v-installed { flex: none; font-style: normal; font-size: 9px; color: var(--g1); }
.v-head.has-back { padding-left: 4px; grid-template-columns: 30px 1fr auto; }
/* 书架页头的一对操作：外框一个，中间斜切一道 */
.v-lpair { position: relative; gap: 0; border: 1.2px solid var(--ink); }
.v-lpair .v-ltag-btn { border: 0; height: 22px; padding: 0 9px; }
.v-lpair .v-ltag-btn:first-child { padding-right: 11px; }
.v-lpair .v-ltag-btn:last-child { padding-left: 11px; }
/* 左黑右白（同提问页「这一页 / 随口问」选中前一项的样子）：左半是黑块，右边沿斜切 */
.v-lpair::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(50% + 4px); background: var(--ink); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.v-lpair .v-ltag-btn { position: relative; }
.v-lpair .v-ltag-btn:first-child { color: var(--paper); font-weight: 600; }
/* 另一种：两个独立的平行四边形 */
.v-lslant { gap: 4px; }
.v-lslant .v-ltag-btn { position: relative; border: 0; height: 22px; padding: 0 11px; }
.v-lslant .v-ltag-btn::before { content: ""; position: absolute; inset: 0; border: 1.2px solid var(--ink); transform: skewX(-20deg); }

/* 斜切按钮组：一个外框，斜线分格，主按钮那格填黑（v2Slant） */
.v-slant { position: relative; display: flex; height: 32px; border: 1.4px solid var(--ink); box-sizing: border-box; }
.v-slant.tall { height: 64px; }
.v-slant > button { position: relative; z-index: 1; flex: 1; min-width: 0; padding: 0 6px; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: 10.8px; white-space: nowrap; }
.v-slant.tall > button { flex-direction: column; gap: 5px; font-size: 12px; }
.v-slant > button .ic { width: 11px; height: 11px; flex: none; }
.v-slant.tall > button .ic { width: 20px; height: 20px; }
.v-slant > button.on { color: var(--paper); font-weight: 600; }
.v-slant > button.on .ic { stroke: var(--paper); }
.v-slant-fill { position: absolute; inset: 0; background: var(--ink); }
.v-slant-cut { position: absolute; inset: 0; background: var(--ink); }
.v-wbtns:has(.v-slant) { display: block; }
.v-wgen-pick0:has(.v-slant) { display: block; }
/* 壁纸社区 */
.v-comm-bar { flex: none; margin: 8px 12px 0; display: flex; gap: 8px; align-items: center; }
.v-comm-bar .v-seg { flex: 1; }
.v-comm-bar .v-line.sm { height: 26px; font-size: 10px; }
.v-comm-more { margin: 4px 0 6px; text-align: center; font-size: 9px; }
.v-comm-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.v-comm-cats .v-line { height: 30px; }
.v-comm-cats .v-line.on { background: var(--ink); color: var(--paper); }
/* 阅读背景预览：在大图上叠一段正文 */
.v-wpeek { position: absolute; inset: 9% 12%; font-style: normal; overflow: hidden; font-size: 9px; line-height: 1.9; text-align: justify; color: var(--ink); }
.v-wpeek b { display: block; margin-bottom: 4px; text-align: center; font-size: 10px; }
.v-read.has-bg .read-body { box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px #444, inset 0 0 0 8px var(--paper), inset 0 0 0 9px #444; }
/* 多排按钮之间留出间隙，每排用独立斜切梯形（同「全部应用」风格） */
.v-slant-stack { display: flex; flex-direction: column; gap: 4px; }
.v-slant.is-split { border: 0; }
.v-slant.is-split > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.v-comm-bar .v-slant { flex: 1; height: 28px; }
.v-type .v-slant { height: 28px; }
.v-type-row .v-slant > button { padding: 0 3px; font-size: 10px; }
.v-type-row .v-slant > button b { font: 600 12px "Avenir Next", sans-serif; }
.v-fld .v-slant { height: 28px; }
.v-fld .v-slant > button { font-size: 10.3px; }
.v-set .v-pane > .v-slant, .v-set .v-pane > .v-slant-stack { flex: none; }
.v-sheet .v-slant { height: 32px; }
