/*
 * prediction-width-fix.css —— 预测内容宽度/弹性覆盖层
 *
 * 生成：_audit_tmp/local/_genwidthfix3.php
 * 源站样式表快照：_live_bui.css / _live_style.css / _live_common.css /
 *                 _live_index-SP4oVTUH.css
 * 采集样本：_audit_tmp/local/_wrvs/*.orig.html（线上库现状）
 *
 * 作用：线上库里的采集内容是旧采集器产物 —— 采集器用 getComputedStyle 取
 *   「使用值」写进 style=""，浏览器对百分比 width 返回的是换算后的 px
 *   ⇒ 源站的 width:35% / width:100% 被烤成 width:267px / width:767px。
 *   内联样式压过普通 CSS 规则 ⇒ 桌面视口下 .pred-content 可视宽仅 426px
 *   而内容根仍 767px ⇒ 右半边（含「准/错」答案列 .text3）被裁掉。
 *
 * 手段：作者 !important 样式的优先级高于内联样式 ⇒ 可压过烤死的 px。
 *
 * ★ v3 关键修正：**规则值直接从后端还原器产物反推**，不再照抄源站 CSS。
 *   起因：源站 CSS 里存在被内联样式覆盖的**死规则**，照抄必错：
 *     CSS 快照  .jingxuan-wubuzhong .item .box{width:30%} .box2{width:45%}
 *     源站实况  .box 内联 flex:1（无 width）  .box2 内联 width:25%
 *             实测比例 25% / 50% / 25%（1219px 视口，probe_srcbox.json）
 *   后端 PredictionWidthRestorer 分支④ 用的是 **DOM 换算比例**，不是 CSS 声明值
 *   ⇒ 本文件与还原器共用同一份计算结果 ⇒ 两条路径口径必然一致。
 *
 * 三层结构（同优先级时后写的胜出）：
 *   ① 兜底 width:auto —— 对齐还原器分支⑤
 *      （块级撑满 / 收缩包裹 / flex 由 flex 决定 / inline 本就无效）
 *   ② 实测百分比宽度（还原器产物反推）
 *   ③ 源站绝对宽度（rem→px，基准 1rem=50px，与 prediction-source.css 一致）
 *
 * 长期正解：后端 PredictionWidthRestorer 重跑（已修，需跑一次 sync:prediction）
 *   ⇒ 数据层变百分比后，本文件退化为「同值声明」，无副作用。
 */

/* ── ① 兜底 ─────────────────────────────────────────── */
/*
 * ★ 2026-12-02【P0 修正】：**去掉 !important**。
 *
 *   起因：`.pred-content * { width: auto !important; }` 压掉了**源站 CSS 自己的
 *   百分比宽度**，导致 5 个分类共 154 处宽度与源站不一致（对拍一致率 95.73%）：
 *     八肖16码   .p_baxiaoshiliuma > .item        82.08 → 72.52   （74 处）
 *     绝杀专区   .juesha-box .item .text          57.61 → 26.00   （66 处）
 *     平特一尾   #wanfa_pingteyiwei .pingteyiwei-number  高度 54 → 48.19（21 处）
 *     平特一肖   同上                                                  （21 处）
 *     绝杀十码   .wanfa-ys2 .kai-num              339.63 → 357.50  （10 处）
 *     玉女心经   .yunixinjing .guanwang           125.13 → 21.72  （3 处）
 *
 *   成因：作者样式（!important）优先于普通作者样式 ⇒ 无论源站 CSS 声明了什么
 *   百分比，一律被压成 auto ⇒ flex 布局重新分配 ⇒ 宽度全错。
 *
 *   现在数据层已是百分比（v10 采集器不再把 width 内联成 px，
 *   PredictionWidthRestorer 对新数据 no-op），auto 只是「没有宽度声明」的默认，
 *   去掉 !important 后源站的 25% / 35% / 38.5% / 16.3% 等声明自然生效。
 *
 *   保留 !important 的两条例外（img/table 撑满）也无害：
 *   采集器保留源站内联 width，img/table 在源站即 100%。
 */
.pred-content * { width: auto; }
.pred-content img { width: 100%; }
.pred-content table { width: 100%; }

/* ── ② 百分比宽度（后端还原器产物反推） ────────────────── */
.pred-content .content.bg-fff.shangxuxian-000 { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .waibiankuang { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .waibiankuang .jxzt-box { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .waibiankuang .jxzt-box .text1 { width: 34.9988% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .waibiankuang .jxzt-box .text3.color-1e90ff { width: 19.9996% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .jmxc-tip { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .text.juzhong.waibiankuang { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .jingxuan-wubuzhong { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .jingxuan-wubuzhong .item { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .jingxuan-wubuzhong .item .qishu { width: 25% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .jingxuan-wubuzhong .item .box2 { width: 25% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .jingxuan-wubuzhong .item .qishu.color-zise { width: 25% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .jingxuan-wubuzhong .item .box2.color-anhong { width: 25% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .dslx-tip { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .dslx-tip .box { width: 50.0001% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .jingxuan-wubuzhong .item .item { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .liuxiao-shierma { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .liuxiao-shierma .liuxiaoshierma-table { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .text.juzhong.waibiankuang .pingteyiwei-number { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .sanguo-tip { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .jingxuan-wubuzhong.jueshabanbo-box { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .jingxuan-wubuzhong.jueshabanbo-box .item { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .jingxuan-wubuzhong.jueshabanbo-box .item .qishu { width: 25% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .jingxuan-wubuzhong.jueshabanbo-box .item .box2 { width: 25% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .jingxuan-wubuzhong.jueshabanbo-box .item .qishu.color-zise { width: 25% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .jingxuan-wubuzhong.jueshabanbo-box .item .box2.color-anhong { width: 25% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .text.juzhong { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .center.green { width: 100% !important; }
.pred-content .content.bg-fff.shangxuxian-000 .center.blue { width: 100% !important; }

/* ── ③ 绝对宽度 ─────────────────────────────────────── */
.pred-content .bui-icon { width: 44px !important; }
.pred-content .bui-btn .icon { width: 35px !important; }
.pred-content .bui-btn .bui-thumbnail { width: 100px !important; }
.pred-content .bui-list .icon { width: 27px !important; }
.pred-content .bui-nav-icon .bui-btn i { width: 44px !important; }
.pred-content .bui-nav-icon .bui-btn .icon { width: 44px !important; }
.pred-content .bui-bar .bui-bar-left { width: 60px !important; }
.pred-content .bui-bar .bui-bar-right { width: 60px !important; }
.pred-content .bui-bar .bui-bar-text { width: 70px !important; }
.pred-content .bui-choose { width: 22px !important; }
.pred-content .bui-like { width: 22px !important; }
.pred-content .bui-fav { width: 22px !important; }
.pred-content .bui-checkbox { width: 22px !important; }
.pred-content .bui-radio { width: 22px !important; }
.pred-content .bui-input i { width: 30px !important; }
.pred-content .bui-input .icon-listright { width: 24px !important; }
.pred-content .bui-input .icon-dropdown { width: 24px !important; }
.pred-content .bui-label { width: 90px !important; }
.pred-content .bui-switch-text { width: 23px !important; }
.pred-content .bui-switch { width: 23px !important; }
.pred-content .bui-range { width: 11px !important; }
.pred-content .bui-number .bui-number-prev { width: 25px !important; }
.pred-content .bui-number .bui-number-next { width: 25px !important; }
.pred-content .bui-number-skin01 input { width: 22px !important; }
.pred-content .bui-number-skin01 .bui-number-prev { width: 22px !important; }
.pred-content .bui-number-skin01 .bui-number-next { width: 22px !important; }
.pred-content .bui-loading { width: 50px !important; }
.pred-content .bui-loading-block { width: 100px !important; }
.pred-content .bui-stepbar .bui-stepbar-dot { width: 8px !important; }
.pred-content .bui-stepbar .active .bui-stepbar-dot { width: 16px !important; }
.pred-content .bui-stepbar .bui-stepbar-number .bui-stepbar-dot { width: 19.2px !important; }
.pred-content .bui-stepbar-line .bui-stepbar-cell .bui-stepbar-text { width: 50px !important; }
.pred-content .bui-stepbar-line .bui-stepbar-dot { width: 8px !important; }
.pred-content .bui-stepbar-line .bui-stepbar-dot.small { width: 6px !important; }
.pred-content .bui-stepbar-line .bui-stepbar-number .bui-stepbar-dot { width: 19.2px !important; }
.pred-content .bui-scroll-x > .bui-scroll-main { width: 2000px !important; }
.pred-content .bui-scroll-x .bui-list-pic li { width: 100px !important; }
.pred-content .bui-scroll-x .bui-list-photo li { width: 100px !important; }
.pred-content .bui-slide-head ul li { width: 6px !important; }
.pred-content .bui-slide-skin01 .bui-slide-head ul .active { width: 20px !important; }
.pred-content .bui-tab-sidenav { width: 150px !important; }
.pred-content .bui-sidebar { width: 280px !important; }
.pred-content .bui-searchbar .bui-input i { width: 35px !important; }
.pred-content .popover.popover-picker-columns { width: 280px !important; }
.pred-content .bui-onepx { width: 1px !important; }
.pred-content .bui-onepx-left { width: 1px !important; }
.pred-content .bui-onepx-right { width: 1px !important; }
.pred-content .bui-sub { width: 20px !important; }
.pred-content .bui-sub-bottom { width: 20px !important; }
.pred-content .thumbnail { width: 50px !important; }
.pred-content .rect { width: 100px !important; }
.pred-content .square { width: 50px !important; }
.pred-content .open-qiu-box > .open-num .box .qiu { width: 40px !important; }
.pred-content .text2 { width: 150px !important; }
.pred-content .jrtt-tit { width: 100px !important; }
.pred-content .gsb-tu .ssb { width: 50px !important; }
.pred-content .gsb-tu .heshu { width: 50px !important; }
.pred-content .sanshima-zhongte-content .item .text1 { width: 30px !important; }

/* ── flex ──────────────────────────────────────────── */
.pred-content > .span1 { flex: 1 !important; }
.pred-content > .bui-panel-main { flex: 1 !important; }
.pred-content > .bui-tab-main { flex: 1 !important; }
.pred-content > .bui-dialog-main { flex: 1 !important; }
.pred-content .zxgg marquee { flex: 1 !important; }
.pred-content .content .jxzt-box .text2 { flex: 1 !important; }
.pred-content .sanshima-zhongte-content .item .text2 { flex: 1 !important; }
.pred-content .jxzt-box .text2 { flex: 1 !important; }

/* ── ④ flex 行内长内容换行兜底 ───────────────────────────────
 * .juzhong 是 flex 行（期号 / 号码 / 答案 三列），子 span 各自带
 *   烤死的 px 宽度（实测 145.578 / 391.32 / 95.578px）。
 *   320px 窄屏下 251px 容器装不下 307px ⇒ 答案列被推出可视区。
 * min-width:0 单独无效（flex 项能缩，但长号码串本身无法断行）
 *   ⇒ 必须配合 overflow-wrap:anywhere 才会在必要时断行。
 * 实测：min-width:0 → 仍溢出；+overflow-wrap:anywhere → 零溢出。
 * 用 anywhere 而非 break-all：只在无处可断时才断，不会主动拆散短词。 */
.pred-content .juzhong > span { min-width: 0 !important; overflow-wrap: anywhere !important; }
