/* uvizu 首页专用样式（只有首页加载，见 layouts/_partials/tou.html；改了要把 hugo.toml 的 params.assetVer 加 1）。
   只用 zhiwen.css 已有的 token：--bg-* --tx-* --ln-* --acc* --ok --bad --r-* --f*；不新增颜色、圆角、字体。
   排法和字段见源目录 README.md「首页只精选」一节。 */

/* ── 首屏那一块的两处小修（码卡 HTML 不动） ── */
/* 指纹组件答案里的文章链接：上下各加 10px 可点范围，用等量负外边距抵掉，下面的东西不挪位 */
.uv-go{display:inline-block;padding:10px 0;margin:-10px 0}
/* 第一格那句不带链接的话：不加粗，免得像一条点不动的链接 */
.uv-go-note{font-weight:400}
/* 中文首页不到 320px 宽时码卡第一行（邀请码 + 复制按钮）比卡片宽 1.3px，把整页撑出横向滚动：只收这一行的间距。
   英文首页这个宽度本来没有横向滚动，不套这一段（套了导语会多折一行，首屏那一块变高） */
@media (max-width:319.98px){
 :lang(zh) .uv-card--home .uv-code{gap:6px;padding-left:8px}
}

.uv-nb{white-space:nowrap}
/* 末行不剩两三个字：模板把每段末尾一小段包进 .uv-nb，这里再让短段落各行长短接近 */
.uv-hm-note,.uv-hm-line,.uv-hm-seg-b p,.uv-hm-rule-q,.uv-hm-yn li,.uv-go-soon{text-wrap:balance}
.uv-hm-src p,.uv-hm-lang>span{text-wrap:pretty}

.uv-hm{border-top:1px solid var(--ln-1);padding:30px 0 0}
.uv-hm-band{padding-bottom:38px}
.uv-hm-top{margin:0 0 12px}
.uv-hm-h{font:700 21px/1.35 var(--f);letter-spacing:-.005em;margin:0;text-wrap:balance}
.uv-hm-sub{margin-top:2px;font-size:13px;line-height:1.5;color:var(--tx-3)}

/* ── 每段先放的那一块图：工具算例 / 天数轴，装在同一种底板里（沿用 .uv-fd / .uv-tool 的底板） ── */
.uv-hm-aid{background:var(--bg-2);border:1px solid var(--ln-1);border-radius:var(--r-3);padding:16px 16px 18px;min-width:0}
.uv-hm-eg{font-size:14px;line-height:1.6;color:var(--tx-2)}
.uv-hm-eg>span:not(.uv-hm-tag){display:inline-block}
.uv-hm-tag{display:inline-block;margin-right:8px;padding:0 6px;border:1px solid var(--ln-3);border-radius:var(--r-1);font-size:12px;font-weight:600;line-height:1.6;color:var(--tx-2);vertical-align:1px}
.uv-hm-note{font-size:14px;line-height:1.7;color:var(--tx-2);margin-top:12px}
.uv-hm-asof{display:inline-block;color:var(--tx-3)}
.uv-hm-x-c{margin:0}
.uv-hm-tool{display:inline-flex;align-items:center;min-height:44px;margin-top:12px;padding:4px 14px;border:1px solid var(--ln-3);border-radius:var(--r-1);background:var(--bg-1);color:var(--tx-1);font-weight:600;font-size:15px;line-height:1.35;text-decoration:none;transition:border-color .2s,background-color .2s}
.uv-hm-tool:hover{border-color:var(--acc);background:var(--acc-soft)}

/* 被横向拉伸的 SVG 条：线宽和圆点不跟着变形 */
.uv-hm-strip{display:block;width:100%;height:16px;overflow:visible}
.uv-hm-strip path,.uv-hm-ticks path{fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round}
.uv-hm-span{stroke:var(--acc-line);stroke-width:8}
.uv-hm-span.is-mid{stroke:var(--tx-3)}
.uv-hm-mk-o{stroke:var(--tx-2);stroke-width:14}
.uv-hm-mk-i{stroke:var(--bg-2);stroke-width:10}
.uv-hm-end{stroke:var(--acc);stroke-width:14}
.uv-hm-stop{stroke:var(--tx-1);stroke-width:2}
.uv-hm-tick{stroke:var(--ln-2);stroke-width:1}
.uv-hm-axis{display:flex;justify-content:space-between;gap:12px;font-size:13px;line-height:1.5;color:var(--tx-2);font-variant-numeric:tabular-nums}
.uv-hm-axis span{white-space:nowrap}

/* 提现恢复时间：一个算例，两根条的时间轴 */
.uv-hm-aid--t1 .uv-res-l{margin-top:12px}
.uv-hm-when.uv-res-big{margin-top:2px;font-size:clamp(20px,7.2vw,30px)}
.uv-hm-when-t,.uv-hm-when .uv-res-unit{white-space:nowrap}
.uv-hm-when .uv-res-unit{font-size:15px;margin-left:.6em}
.uv-hm-gantt{position:relative;margin-top:14px}
.uv-hm-ticks{position:absolute;left:0;top:0;width:100%;height:calc(100% - 28px)}
.uv-hm-g-rows{list-style:none;margin:0;padding:4px 0 8px;position:relative;display:grid;gap:8px}
.uv-hm-g-l{display:inline-block;position:relative;background:var(--bg-2);padding:0 8px 2px 2px;font-size:13px;line-height:1.5;color:var(--tx-2);white-space:nowrap}
.uv-hm-g-l b{font-weight:400;margin-left:.7em;font-variant-numeric:tabular-nums}
.is-key .uv-hm-g-l,.is-key .uv-hm-g-l b{color:var(--tx-1);font-weight:700}
.uv-hm-gantt .uv-hm-axis{border-top:2px solid var(--ln-3);padding-top:5px}

/* 认证审核：从提交画到 48 小时的一根条 */
.uv-hm-bar{margin-top:14px}
.uv-hm-bar .uv-hm-axis{margin-top:4px}
.uv-hm-res{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 10px;margin-top:10px;font-weight:600;font-size:15px;line-height:1.5;color:var(--tx-2)}
.uv-hm-res b{font:700 23px/1.3 var(--f);letter-spacing:-.01em;color:var(--tx-1);white-space:nowrap;font-variant-numeric:tabular-nums}
.uv-hm-res b span{white-space:nowrap;font-size:14px;font-weight:600;letter-spacing:0;color:var(--tx-2);margin-left:.6em}

/* 注册天数三段轴：一根轴分三段，手机竖排 */
.uv-hm-rule-q{font-weight:600;font-size:15px;line-height:1.55;color:var(--tx-1)}
.uv-hm-rule{list-style:none;margin:14px 0 0;padding:0}
.uv-hm-seg{display:grid;grid-template-columns:60px 8px minmax(0,1fr);column-gap:8px}
.uv-hm-seg-at{font-weight:600;font-size:12px;line-height:1.3;color:var(--tx-2);text-align:right;white-space:nowrap;margin-top:-1px}
.uv-hm-seg-bar{display:block;border-top:2px solid var(--tx-1);background:var(--tx-3)}
.uv-hm-seg.is-self .uv-hm-seg-bar{background:var(--acc-line);border-radius:3px 3px 0 0}
.uv-hm-seg.is-gap .uv-hm-seg-bar{background:repeating-linear-gradient(to bottom,var(--ln-3) 0 6px,transparent 6px 11px)}
.uv-hm-seg.is-late .uv-hm-seg-bar{-webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent);mask-image:linear-gradient(to bottom,#000 55%,transparent)}
.uv-hm-seg-b{padding:0 0 16px;margin-top:-4px}
.uv-hm-seg-b b{display:block;font-weight:700;font-size:16px;line-height:1.4}
.uv-hm-seg-b p{font-size:14px;line-height:1.65;color:var(--tx-2);margin-top:2px}
.uv-hm-seg.is-late .uv-hm-seg-b{padding-bottom:4px}
.uv-hm-aid--rule .uv-hm-note{margin-top:10px;padding-top:10px;border-top:1px solid var(--ln-1)}

/* 「收 / 不收」两栏清单：用正文表格的画法（细边框、12px 圆角、表头底色），手机上两栏叠着排 */
.uv-hm-aid--list{padding:0;border-color:var(--ln-2);border-radius:var(--r-2);overflow:hidden;display:grid}
.uv-hm-yn h3{font:700 15px/1.4 var(--f);padding:10px 14px;background:var(--bg-3)}
.uv-hm-yn ul{list-style:none;margin:0;padding:0 14px}
.uv-hm-yn li{position:relative;padding:7px 0 7px 26px;font-size:14px;line-height:1.5;border-bottom:1px solid var(--ln-1)}
.uv-hm-yn li:last-child{border-bottom:0}
.uv-hm-yn li::before,.uv-hm-yn li::after{content:"";position:absolute}
.uv-hm-yn--y li::before{left:2px;top:11px;width:11px;height:6px;border-left:2.5px solid var(--ok);border-bottom:2.5px solid var(--ok);transform:rotate(-45deg)}
.uv-hm-yn--n li::before,.uv-hm-yn--n li::after{left:7px;top:8px;width:2.5px;height:14px;background:var(--bad);border-radius:1px}
.uv-hm-yn--n li::before{transform:rotate(45deg)}
.uv-hm-yn--n li::after{transform:rotate(-45deg)}

/* ── 文章轨道：实心橙点是重条目，空心点是轻条目，轻条目跟在同段重条目后面 ── */
.uv-hm-reads{margin-top:14px;min-width:0}
.uv-hm-hv{position:relative;padding:0 0 4px 28px}
.uv-hm-hv::before,.uv-hm-lt::before{content:"";position:absolute;border-radius:50%}
.uv-hm-hv::before{left:0;top:15px;width:14px;height:14px;background:var(--acc);box-shadow:0 0 0 4px var(--acc-soft)}
.uv-hm-hv:not(:only-child)::after,.uv-hm-lt:not(:last-child)::after{content:"";position:absolute;left:6px;top:36px;bottom:-16px;border-left:2px solid var(--ln-2)}
.uv-hm-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.uv-hm-t{display:inline-block;min-width:0;padding:10px 0;font-weight:700;font-size:18px;line-height:1.35;color:var(--tx-1);text-decoration-line:underline;text-decoration-color:var(--acc);text-decoration-thickness:1.5px;text-wrap:balance}
.uv-hm-t:hover{color:var(--acc)}
/* 数牌：只放数、单位和一排小刻度；手机上宽不超过 120px */
.uv-hm-fig{flex:none;max-width:120px;display:grid;justify-items:start;gap:4px;border:1.5px dashed var(--ln-3);border-radius:var(--r-1);padding:5px 8px 6px}
.uv-hm-figv{display:flex;flex-wrap:wrap;align-items:baseline;gap:1px 5px}
.uv-hm-figv b{font:700 24px/1 var(--f);letter-spacing:-.01em;color:var(--tx-1);white-space:nowrap;font-variant-numeric:tabular-nums}
.uv-hm-figv span{font-size:13px;font-weight:600;line-height:1.3;color:var(--tx-1);white-space:nowrap}
.uv-hm-fig--stack .uv-hm-figv{flex-direction:column;flex-wrap:nowrap;align-items:flex-start}
.uv-hm-pips{display:block}
.uv-hm-pips .on{fill:var(--acc)}
.uv-hm-pips .off{fill:var(--ln-2)}
.uv-hm-line{font-size:15px;line-height:1.6;color:var(--tx-2)}
.uv-hm-cap{margin-top:4px;font-size:12.5px;line-height:1.45;color:var(--tx-3)}
.uv-hm-lts{list-style:none;margin:0;padding:0}
.uv-hm-lt{position:relative;padding-left:28px}
.uv-hm-lt::before{left:2px;top:19px;width:10px;height:10px;border:2px solid var(--ln-3);background:var(--bg-1)}
.uv-hm-lt a{display:flex;align-items:center;min-height:48px;padding:6px 0;font-size:16px;line-height:1.4;color:var(--tx-1);text-decoration-line:underline;text-decoration-color:var(--ln-3)}
.uv-hm-lt a:hover{color:var(--acc);text-decoration-color:var(--acc)}
.uv-hm-d{flex:none;font:13px/1 var(--f-lat);color:var(--tx-3);margin-right:10px;font-variant-numeric:tabular-nums;white-space:nowrap}
.uv-hm-new-h{font-weight:600;font-size:13px;line-height:1.4;color:var(--tx-3);margin:6px 0 0 28px}
.uv-hm-all{margin:2px 0 0 28px}

/* ── 收尾：这些说法从哪来 + 另一个语种 ── */
.uv-hm-band--src{border-top:1px solid var(--ln-1);padding-top:30px;padding-bottom:52px}
.uv-hm-src>h2:first-child{margin-top:0}
.uv-hm-src a{padding:11px 0}
.uv-hm-lang{margin-top:16px;font-size:14px;line-height:1.6;color:var(--tx-3)}
.uv-hm-lang>span{display:block}

@media (max-width:339.98px){
 .uv-hm-t{font-size:17px;padding:11px 0}
 .uv-hm-hv::before{top:16px}
 .uv-hm-line{font-size:14px}
 .uv-hm-figv b{font-size:22px}
 .uv-hm-seg{grid-template-columns:58px 8px minmax(0,1fr)}
 .uv-hm-seg-at{font-size:11.5px}
 .uv-hm-when.uv-res-big{font-size:19px}
 .uv-hm-g-l{font-size:12px}
}
/* 认证那一格的到点时刻：不到 320px 宽时 23px 的字会伸出底板内边距 */
@media (max-width:319.98px){
 .uv-hm-res b{font-size:20px}
}

@media (min-width:641px){
 .uv-hm{padding-top:38px}
 .uv-hm-band{padding-bottom:46px}
 .uv-hm-top{margin-bottom:16px}
 .uv-hm-h{font-size:24px}
 .uv-hm-aid{padding:20px 24px 22px}
 .uv-hm-aid--list{padding:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .uv-hm-yn+.uv-hm-yn{border-left:1px solid var(--ln-2)}
 .uv-hm-yn h3{padding:10px 18px}
 .uv-hm-yn ul{padding:2px 18px 4px}
 .uv-hm-yn li{padding-top:9px;padding-bottom:9px;font-size:15px}
 .uv-hm-yn--y li::before{top:14px}
 .uv-hm-yn--n li::before,.uv-hm-yn--n li::after{top:11px}
 .uv-hm-reads{margin-top:18px}
 /* 数牌紧跟标题，不推到最右边 */
 .uv-hm-hd{justify-content:flex-start;gap:16px}
 .uv-hm-fig{max-width:128px}
 .uv-hm-lt a{min-height:44px}
 .uv-hm-lt::before{top:17px}
}
@media (max-width:640.98px){
 .uv-hm-yn+.uv-hm-yn{border-top:1px solid var(--ln-2)}
}

/* 680–1099px：轨道横排两栏，重条目在左约 3 份，轻条目、最新和去全部的链接在右约 2 份（不窄于 264px，放得下一行英文短标题），各带自己的点，不画竖线。
   641–679px 两栏排不开（重条目的标题会被挤成两截），照手机的单列轨道排 */
@media (min-width:680px) and (max-width:1099.98px){
 .uv-hm-reads{display:grid;grid-template-columns:minmax(0,3fr) minmax(264px,2fr);column-gap:36px;align-items:start}
 .uv-hm-hv{padding-bottom:0}
 .uv-hm-hv:not(:only-child)::after,.uv-hm-lt:not(:last-child)::after{display:none}
 .uv-hm-side{padding-top:2px}
}

/* 天数轴放平 */
@media (min-width:700px){
 .uv-hm-rule{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,4fr) minmax(0,4fr)}
 .uv-hm-seg{display:block}
 .uv-hm-seg-at{display:block;font-size:13px;line-height:1.2;text-align:left;margin:0 0 5px}
 .uv-hm-seg-bar{height:8px;border-top:0;border-left:2px solid var(--tx-1)}
 .uv-hm-seg.is-self .uv-hm-seg-bar{border-radius:3px 0 0 3px}
 .uv-hm-seg.is-gap .uv-hm-seg-bar{background:repeating-linear-gradient(to right,var(--ln-3) 0 6px,transparent 6px 11px)}
 .uv-hm-seg.is-late .uv-hm-seg-bar{-webkit-mask-image:linear-gradient(to right,#000 55%,transparent);mask-image:linear-gradient(to right,#000 55%,transparent)}
 .uv-hm-seg-b,.uv-hm-seg.is-late .uv-hm-seg-b{margin-top:0;padding:10px 22px 2px 0}
}

/* 两个工具算例：底板够宽就左右分开排 */
@media (min-width:760px){
 .uv-hm-aid--t1{display:grid;grid-template-columns:minmax(0,11fr) minmax(0,10fr);grid-template-rows:auto 1fr;column-gap:32px;align-items:start}
 .uv-hm-aid--t1 .uv-hm-x-a{grid-column:1;grid-row:1}
 .uv-hm-aid--t1 .uv-hm-x-c{grid-column:1;grid-row:2;align-self:start}
 .uv-hm-aid--t1 .uv-hm-x-b{grid-column:2;grid-row:1/3}
 .uv-hm-aid--t1 .uv-hm-gantt{margin-top:2px}
 .uv-hm-when.uv-res-big{font-size:clamp(22px,2.05vw,27px)}
 .uv-hm-aid--t2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:32px;align-items:start}
 .uv-hm-aid--t2 .uv-hm-x-a{grid-column:1;grid-row:1}
 .uv-hm-aid--t2 .uv-hm-x-c{grid-column:1;grid-row:2;align-self:start}
 .uv-hm-aid--t2 .uv-hm-x-b{grid-column:2;grid-row:1/3}
 .uv-hm-aid--t2 .uv-hm-res{margin-top:0}
}

/* 1100–1139px：时间轴在 7 栏里左右分开后，英文的行标签（Password reset lifts by 15 Nov 21:00）比那一栏宽 3px，字收半号 */
@media (min-width:1100px) and (max-width:1139.98px){
 .uv-hm-g-l{font-size:12.5px}
}

/* 电脑：每段占一横排，图和文章一左一右，左右和栏宽由首页内容文件的 desk 定 */
@media (min-width:1100px){
 .uv-hm-in{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:40px;align-items:start}
 .uv-hm-top{grid-column:1/-1}
 .uv-hm-reads{margin-top:0}
 .uv-hm-band--ar.uv-hm-band--s7 .uv-hm-aid{grid-column:6/13;grid-row:2}
 .uv-hm-band--ar.uv-hm-band--s7 .uv-hm-reads{grid-column:1/6;grid-row:2}
 .uv-hm-band--al.uv-hm-band--s7 .uv-hm-aid{grid-column:1/8;grid-row:2}
 .uv-hm-band--al.uv-hm-band--s7 .uv-hm-reads{grid-column:8/13;grid-row:2}
 .uv-hm-band--ar.uv-hm-band--s8 .uv-hm-aid{grid-column:5/13;grid-row:2}
 .uv-hm-band--ar.uv-hm-band--s8 .uv-hm-reads{grid-column:1/5;grid-row:2}
 .uv-hm-band--al.uv-hm-band--s8 .uv-hm-aid{grid-column:1/9;grid-row:2}
 .uv-hm-band--al.uv-hm-band--s8 .uv-hm-reads{grid-column:9/13;grid-row:2}
 .uv-hm-band--src .uv-hm-src{grid-column:1/8;max-width:none}
 .uv-hm-band--src .uv-hm-lang{grid-column:9/13;margin-top:6px}
}
