/* ============================================================
 * 自动生成文件 —— 请勿手工编辑
 * 源文件：board.css        生成器：tools/gen-board-rot-css.js
 *
 * 用途：画面旋转 90°/270° 时使用。转置后逻辑视口长短边互换，
 *       本文件把全部 vh ↔ vw 对调、并把 aspect-ratio 媒体查询取反，
 *       使版式按「转置后的逻辑画布」计算，而不是按物理视口。
 * 修改请改 board.css 后重新运行：node tools/gen-board-rot-css.js
 * ============================================================ */
/* ============ 房价牌模板样式：6 套模板 × 横屏/竖屏 ============ */
.board-root {
  position: absolute; left:0; top:0; right:0; bottom:0; overflow: hidden;
  display: flex; flex-direction: column;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --room-anim: fadeUp .5s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .35; } }
.board-head { display: flex; align-items: center; justify-content: space-between; padding: 3.5vw 5vh 2.5vw; flex: none; }
.head-right { display: flex; align-items: center; gap: 2vh; }
.board-weather { display: flex; align-items: center; gap: .7vh; font-size: 2vw; opacity: .85; }
.wx-txt { white-space: nowrap; }
/* ============ 天气温度读数（2026-11-19） ============
   原来温度是拼在 .wx-txt 里的纯文本（"haze 12°"），
   字号与描述完全一致、中间只隔一个空格，电视上远看就是一串糊字。
   现在温度单独成 .wx-temp：数字略大 + 加粗 + 等宽数字，
   度符号缩小一号并上提，中间隔开一段距离 —— 远看先读到温度。 */
.wx-temp { display: inline-flex; align-items: baseline; gap: .06em;
           margin-left: .12em; white-space: nowrap;
           font-weight: 700; font-variant-numeric: tabular-nums; }
.wx-temp .wx-num { font-size: 1.18em; line-height: 1; letter-spacing: -.01em; }
.wx-temp .wx-deg { font-size: .78em; line-height: 1; opacity: .85; }
.wx-city { opacity: .7; margin-left: .9vh; white-space: nowrap; }
/* 酒店名称字重：加粗开关。
   ⚠️ 2026-11-24 重写。实机反馈「字体加粗没起作用」，两条原因叠加：
     ① 字重原本靠 CSS 变量下发（font-weight: var(--fw-hotel,800)），
        老内核（Chromium 37 一类）不认 var()，会把含 var() 的声明【整条丢弃】，
        只剩前面的普通 font-weight:800 兜底 → 开关永远无效；
     ② 内置免费商用字体（fonts/*.woff2）是【单字重】文件，
        加粗只能靠内核的「合成加粗」，老 WebView 普遍不支持 → 切到 800 也看不出变化。
   现在的做法（都不依赖新特性，任何内核都生效）：
     · 字重由 HTML 上的 data-bold 属性 + 属性选择器控制
       （CSS2 特性，不依赖 CSS 变量）；
     · 单字重 webfont 另用 text-shadow 描边补粗（描边是真画出来的像素）。
   变量路径保留在下面（值与 data-bold 始终一致），
   仅为兼容老版本 CSS 缓存，主路径已是 data-bold。 */
.hotel-name {font-size: calc(3.8vw * 1.1); font-size: calc(var(--fs-hotel, 3.8vw) * 1.1); font-weight: 800; font-weight: var(--fw-hotel, 800); letter-spacing: .12em; }
/* data-bold="0" = 关闭加粗，"1" = 开启（属性选择器优先级高于上面的基础规则） */
.hotel-name[data-bold="0"] { font-weight: 400; }
.hotel-name[data-bold="1"] { font-weight: 800; }
/* 单字重 webfont 没有真粗体 → 用描边补粗（老 WebView 唯一可靠的加粗手段）。
   描边用 currentColor（与文字同色），同时保留 .sc-hotel 原有的白色柔光层。 */
.hotel-name[data-wf="1"][data-bold="1"] {
  text-shadow: .025em 0 0 currentColor, -.025em 0 0 currentColor, 0 0 1.4vw rgba(255,255,255,.12);
}
.clock { text-align: right; }
.clk-date { display: block; font-size: 2.0vw; opacity: .75; }
.clk-time { display: block; font-size: 2.4vw; font-weight: 600; font-variant-numeric: tabular-nums; }
.board-foot { flex: none; padding: 2vw 5vh 3vw; }
.notice { font-size: 2.6vw; font-weight: 600; margin-bottom: 1vw; animation: blink 2.4s ease-in-out infinite; }
/* ============ 底部滚动通知（多条跑马灯轮播） ============ */
.notice-wrap { position: relative; height: 4.4vw; min-height: 3vw; overflow: hidden; margin-bottom: .8vw; }
.notice-item { position: absolute; left:0; top:0; right:0; bottom:0; display: flex; align-items: center;
               opacity: 0; transform: translateY(1.2vw); transition: opacity .55s ease, transform .55s ease; }
.notice-item.on { opacity: 1; transform: none; }
.notice-scroll { display: flex; white-space: nowrap; will-change: transform;font-size: 2.4vw; font-size: var(--fs-notice, 2.4vw); font-weight: 600;
                 animation: marquee 18s linear infinite; }
.notice-dup { padding-right: 0; }
.notice-item.static .notice-scroll { animation: none; justify-content: center; width: 100%; }
.notice-item.static .notice-dup:last-child { display: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.music-hint { position: fixed; right: 1.6vh; bottom: 1.6vw; z-index: 60; display: none;
                align-items: center; gap: .6vh; padding: .8vw 1.4vh; border-radius: 999px;
                background: rgba(15,23,42,.72); color: #e2e8f0; font-size: 1.8vw; cursor: pointer; }
.music-hint.show { display: flex; }
.music-hint .mi { font-size: 2.4vw; line-height: 1; }
.music-hint.muted { opacity: .55; }
.sc-foot { flex: none; padding: 0 3vh 1.4vw; }
.sc-foot .notice-wrap { margin-bottom: 0; }
/* 技术支持署名：所有房价牌左下角的小字。
   要求「不喧宾夺主，但仔细一看能看到」——字号用 vh 跟着屏幕缩放，
   横竖屏视觉比例一致；透明度压到 .42，浅色/深色主题都靠 inherit 取色。 */
.pb-tech {
  position: absolute; left: 3vh; bottom: .35vw;
  z-index: 4;                 /* 低于滚动通知(25)，永远不压住跑马灯 */
  font-size: 1.05vw; font-weight: 400; letter-spacing: .04em;
  line-height: 1; opacity: .42; color: inherit;
  white-space: nowrap; pointer-events: none;
}
/* 展示型底部联系信息：电话 + 地址 + 二维码 */
.sc-contact { display: flex; align-items: center; gap: 1.6vh; margin-bottom: .8vw; font-size: 1.9vw; opacity: .82; }
.sc-contact .ct-phone { font-weight: 700; }
.sc-contact .ct-addr { opacity: .8; }
.sc-contact .ct-qr { height: 6.4vw; width: 6.4vw; object-fit: contain; background: #fff; padding: .3vw;
                    border-radius: .6vw; box-shadow: 0 .3vw 1vw rgba(0,0,0,.25); margin-left: auto; }
/* 酒店名字号：跟随后台「酒店名字号」滑块。
   ⚠️ 2026-11-24：原来这里是写死的 4.8vh，把 --fs-hotel 硬覆盖掉了 ——
   竖屏下后台的字号滑块完全失效（实机反馈「字体变更不起效果」的一部分）。
   现在按 --fs-hotel 换算（竖屏版式 ×1.263 = 原来的 4.8vh 默认值），
   内核不认 var() 时回落到 4.8vh —— 观感与改版前一致，不会变小。
   （renderer.js 另有一层：把最终字号直接内联到 .hotel-name，双保险。）
   ⚠️ 2026-11-25：v2.4.9 整体回退表格版式时误把这条一起退掉了，已补回。 */
.o-portrait .hotel-name { font-size: 4.8vw; font-size: calc(var(--fs-hotel, 3.8vw) * 1.263); }
.full-stamp { position: absolute; left:0; top:0; right:0; bottom:0; display: flex; align-items: center; justify-content: center; z-index: 50; pointer-events: none; }
.full-stamp .stamp-text {
  /* 印章整体尺寸只由「字号」驱动，内距/边框/圆角/阴影全部用 em 跟着缩放。
     旧写法 font-size:11vh + padding:2vh 5vw 混用两种视口单位：9:16 竖屏上
     vh 被拉到 211px、宽度却只有 1080px，四个字放不下被挤成两行，
     再叠加 -16° 旋转后外接框冲出屏幕（占屏宽 113%）。
     现在字号由宽度约束 + 强制单行；印章挂在 .sc-gallery 内（见 renderer.js），
     由图片容器自己居中，横竖屏都不需要按视口硬算偏移，也不会压住价格表。 */
  /* 字号单位用 vw，不用 min()/max()/clamp()。
     ⚠️ 2026-11-24：老写法 min(7vh, 8.5vw) 在小米盒子4C（Chromium 56）上
     整条声明被【丢弃】——min() 要 Chrome 79+ —— 于是字号回落到继承值(16px)，
     印章缩成一小团，实测只占照片宽度的 12.7%。
     现在改成纯 vw：四个中文字 + 字距 + 内距的总宽 ≈ 5.78em，
     5.6vw 的字号 → 印章宽 ≈ 屏宽 32%（约 1/3），与用户要求一致；
     且只依赖 vw，转置（board-rot.css 里 vw↔vh 对调）后比例自动保持不变。 */
  font-size: 5.6vh;
  white-space: nowrap; box-sizing: border-box;
  font-weight: 900; color: #e02020; letter-spacing: .12em;
  border: .1em double #e02020; outline: .03em solid #e02020; outline-offset: .05em;
  padding: .22em .55em; border-radius: .1em; background: rgba(255,255,255,.14);
  transform: rotate(-16deg);
  text-shadow: 0 0 .18em rgba(224,32,32,.35);
  animation: stampIn .55s cubic-bezier(.2,1.4,.4,1) both;
}
/* 全部房型满房时已有「今日满房」大印章，照片上不再叠加一层
   「已满房」半透明遮罩（否则同一句话说两遍，画面也变脏）。
   部分房型满房时轮播到该房型，这个遮罩仍正常显示。 */
.sc-root.board-full .sc-ph-sold { display: none; }
@keyframes stampIn {
  /* 入场放大幅度收敛到 1.45，否则动画首帧也会把印章撑出屏幕 */
  0%   { opacity: 0; transform: rotate(-16deg) scale(1.45); }
  65%  { opacity: 1; transform: rotate(-16deg) scale(.96); }
  100% { opacity: 1; transform: rotate(-16deg) scale(1); }
}
/* ============ 房型图片 / 多价格列 / Logo / 联系信息 ============ */
/* logo 收口：去掉刺眼白底白边，改由圆角 + 柔和投影收口（logo 本身是蓝底圆角方块，自带收口）。
   无 logo 时该 <img> 根本不渲染，区域直接露背景色。 */
.head-logo { height: 6.5vw; margin-right: 1.6vh; border-radius: 1.1vw; background: transparent; padding: 0; box-shadow: 0 .35vw 1.1vw rgba(0,0,0,.32); object-fit: contain; display: block; }
.ct-qr { height: 10.5vw; background: #fff; padding: .5vw; border-radius: 1vw; flex: none; box-shadow: 0 .3vw 1.2vw rgba(0,0,0,.2); }
/* ============================================================
 * 展示型版式（横屏）：顶部日期天气条 + 左图片廊 + 右价格表
 * ============================================================ */
.sc-root { --sc-accent: #58b4ff; --sc-price: #ffffff; --sc-tbl-bg: rgba(10,38,86,.55);
           --sc-th-bg: rgba(23,86,165,.42); --sc-line: rgba(90,170,255,.25);
           --sc-ribbon: #2b9ee0; --sc-ph-bg: #0b1c42; --sc-hot: rgba(64,158,255,.20);
           --sc-top-bg: rgba(4,12,32,.85); --sc-focus-price: #ffffff; color: #eaf2ff; }

/* ★ 老 WebView 内核降级（2026-11-22）
   ------------------------------------------------------------
   Android 5.1 的 WebView 内核（Chromium 37）不支持 CSS 自定义属性。
   不支持的浏览器会【整条丢弃】含 var() 声明的规则，
   导致 --sc-accent / --sc-price / --sc-top-bg 等全部失效，
   背景变透明、颜色变默认 → 房价牌显示严重错乱。

   这里的做法：把同样的默认值写成【普通 CSS 属性】，
   放在独立的规则块里。老内核会忽略上面的变量声明，
   但会正常应用这里的普通属性 → 视觉基本一致。
   新内核两者都生效，行为一致（skin.js 运行时覆盖的仍然是变量，优先级更高）。
   ------------------------------------------------------------ */
.sc-root { color: #eaf2ff; }
.sc-top { background: rgba(4,12,32,.85); }
.sc-hotel { color: #58b4ff; }
.sc-th { color: #58b4ff; background: rgba(23,86,165,.42); }
.sc-p { color: #ffffff; }
.sc-tbl { background: rgba(10,38,86,.55); }
.sc-tr { border-bottom: 1px solid rgba(90,170,255,.25); }
.sc-ph { background: #0b1c42; }
.sc-ribbon { background: #2b9ee0; }
.sc-stat.hot { background: rgba(64,158,255,.20); }
.sc-focus-price { color: #ffffff; }
/* 顶栏两行：
     第一行酒店名（Logo + 名称），第二行日期/时间/天气。
     横屏时并排，竖屏时由 .o-portrait 规则改成纵向堆叠。 */
.sc-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 2vh;
          padding: 1.5vw 3vh;background: rgba(255,255,255,.06); background: var(--sc-top-bg); font-size: 1.9vw; letter-spacing: .04em; }
.sc-meta { display: flex; align-items: baseline; gap: 2vh; }
.sc-left { display: flex; align-items: baseline; gap: 1vh; }
.sc-date { opacity: .95; }
.sc-time { font-size: 1.9vw; font-weight: 400; line-height: 1; letter-spacing: .04em; opacity: .95; }
.sc-hotel { display: flex; align-items: center; justify-content: center; gap: .8vh; text-align: center;font-size: 3.8vw;
            font-size: var(--fs-hotel, 3.8vw); font-weight: 700;color: #e0b46a; color: var(--sc-accent); letter-spacing: .12em;
            text-shadow: 0 0 1.4vw rgba(255,255,255,.12); min-width: 0; }
.sc-hotel .hotel-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-hotel .head-logo { height: 4.6vw; margin-right: 0; }
.sc-topright { justify-self: end; }
.sc-weather { display: flex; align-items: center; gap: .7vh; opacity: .9; }
.sc-main { flex: 1; display: flex; gap: 2.4vh; padding: 1.8vw 3vh 2.6vw; min-height: 0; }
.sc-gallery { width: 40%; display: flex; flex-direction: column; gap: 1vw; min-height: 0; }
.sc-ph { position: relative; flex: 1; min-height: 0; border-radius: 1vw; overflow: hidden;background: #223047;
         background: var(--sc-ph-bg); box-shadow: 0 .5vw 1.6vw rgba(0,0,0,.35); }
.sc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 中间主图：完整展示整张照片（contain 不裁切），柔和底色衬底 */
.sc-ph-mid { flex: 3.2;background: radial-gradient(120% 90% at 50% 40%, rgba(255,255,255,.10), rgba(0,0,0,.18)), #223047; background:
  radial-gradient(120% 90% at 50% 40%, rgba(255,255,255,.10), rgba(0,0,0,.18)), var(--sc-ph-bg); }
.sc-ph-mid img { object-fit: contain; }
/* 上下：缩小的过渡条，直接铺满，不做模糊过渡 */
.sc-ph-small { flex: .62; }
.sc-ph-small img { object-fit: cover; }
.sc-ribbon { position: absolute; top: 1.4vw; right: -1.4vw; transform: rotate(38deg);background: #e3c076;
             background: var(--sc-ribbon); color: #fff; font-size: 1.8vw; font-weight: 700;
             letter-spacing: .08em; padding: .45vw 2.6vw; box-shadow: 0 .4vw 1.2vw rgba(0,0,0,.45); }
.sc-seal { display: none; position: absolute; right: 1.2vw; bottom: 1.2vw; width: 5.4vw; height: 5.4vw;
           border-radius: .6vw; background: #c62828; color: #fff; writing-mode: vertical-rl;
           align-items: center; justify-content: center; font-size: 2.1vw; font-family: "KaiTi","STKaiti",serif;
           letter-spacing: .12em; box-shadow: 0 .3vw 1vw rgba(0,0,0,.35); }
.sc-right { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sc-table { flex: 1;background: rgba(255,255,255,.06); background: var(--sc-tbl-bg);border-radius: .8vw; border-radius: var(--sk-radius, .8vw); overflow: hidden;
             display: flex; flex-direction: column; backdrop-filter: blur(3px); }
.tp-custom .sc-ph {border-radius: 1vw; border-radius: var(--sk-radius, 1vw); }
.tp-custom .sc-hotel { letter-spacing: .06em; }
/* ============================================================
 * 表格版式（2026-11-25 按用户反馈回退重做）
 * ------------------------------------------------------------
 * 用户原话：「标题显示换行的情况，你的处理太简单粗暴了……
 *   就是把表头拉宽是不行的，这个表的布局先回到前一版的样式，
 *   包括横屏和竖屏，要的是列宽的自适应，
 *   如果价格体系超过三列，建议就可以向左自动基站一点房型的列宽。」
 *
 * 【上一版错在哪】
 *   v2.4.8 把左右内边距从「行级」挪到「列级（span）」，
 *   视觉上表格左右不再留白 → 整块表被拉到贴住屏幕右边缘，
 *   「协议价」三个字紧贴屏幕边（实机照片）。
 *   根因不是换行，而是版式被破坏。
 *
 * 【这一版怎么做】
 *   ① 版式回退：行级内边距保持原样（横屏 2vw / 竖屏 2.6vw），
 *      表格左右留白恢复，价格列不会顶到屏幕边。
 *   ② 列宽自适应：价格列 > 3 时，房型列按比例让位给价格列，
 *      见下面的 data-cols 分档（由 renderer.js 输出 data-cols）。
 *   ③ 表头绝不换行：white-space: nowrap + 省略号收尾，
 *      放不下时由 renderer.js 的 fitHeaderRow() 收口【字号】——
 *      只动字号，绝不动列宽（动列宽会导致表头与数据行错位）。
 *
 * 【列边界为什么能对齐】
 *   flex-basis 的百分比相对「行 content box」= 行宽 − 行左右内边距。
 *   表头行与数据行的左右内边距【完全相同】（都是 2vw / 2.6vw），
 *   content box 相同 → 同一个百分比算出同一个列宽 → 严格对齐。
 *   所以【必须】让表头行和数据行用同一份内边距数值，
 *   这也是「表头内边距写 .45em、数据行写 .5em」会错位 2px 的原因
 *   （em 基准跟着各自字号走，两个值算出的像素不一样）。
 * ============================================================ */
.sc-tr { display: flex; align-items: center; padding: 1.35vw 2vh;font-size: 2.6vw; font-size: var(--fs-room, 2.6vw);border-bottom: 1px solid #e3c076;
         border-bottom: 1px solid var(--sc-line); flex: 1; }
.sc-tr:last-child { border-bottom: none; }
.sc-th {color: #e0b46a; color: var(--sc-accent); font-size: 2.4vw; font-weight: 800;background: rgba(255,255,255,.10); background: var(--sc-th-bg); flex: none;
         padding: 1.5vw 2vh; letter-spacing: .06em; }
/* 表头文字【绝不换行】：
   ① white-space: nowrap —— 中文可以任意字间断行，硬保证不换行；
   ② overflow:hidden + ellipsis —— 列名确实过长时省略号收尾，
      绝不换成第二行（宁可少一个字，也不破版式）；
   ③ 放不下时由 renderer.js 的 fitHeaderRow() 缩【字号】——
      字号变化不影响列宽（列宽由 flex 百分比决定），所以不会错位。 */
.sc-th > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* 表头加粗开关：同 .hotel-name，走 data-bold 属性（不依赖 CSS 变量）。
   竖屏/横屏的 .sc-th 规则里【不再】写 font-weight ——
   那两条是 (0,3,0) 优先级，会压过 (0,2,0) 的 data-bold 规则，开关又失效。 */
.sc-th[data-bold="0"] { font-weight: 400; }
.sc-th[data-bold="1"] { font-weight: 800; }
/* 单字重 webfont 用描边补粗（表头字号小，描边比酒店名略重一点才看得出） */
.sc-th[data-wf="1"][data-bold="1"] {
  text-shadow: .03em 0 0 currentColor, -.03em 0 0 currentColor;
}
.sc-tr > span:first-child { flex: 1.5; text-align: left; }
.sc-tr > span:not(:first-child) { flex: 1; text-align: center; }
/* ============================================================
 * 列宽对齐的【最后一块拼图】：min-width: 0
 * ------------------------------------------------------------
 * 问题：价格列一多，数据行就会比表头行宽 → 上下错位。
 *
 * 原因：flex item 的默认 min-width 是 auto，
 *        意思是「不许比内容还窄」。数据行里写着「398元」，
 *        内容宽度有下限，flex 压不下去 →
 *        数据行各价格列被撑到 63px，表头行只有 57px，
 *        越往右偏得越多（6 列时累计偏差 29px）。
 *        表头反而窄，是因为 fitHeaderRow() 把表头字号收口过，
 *        内容变窄了才塞得进去 —— 两行宽度对不上就是这么来的。
 *
 * 修法：给所有格子 min-width: 0，允许它们缩到内容宽度以下。
 *       文字放不下时由 overflow:hidden + ellipsis 收尾
 *       （表头已经有这条规则；数据行是数字，缩一点没问题）。
 *
 * ⚠️ 必须同时给表头行和数据行 —— 只给一边，两行还是会差。
 *    这条规则放在这里（基础规则区），特异性 (0,2,0)，
 *    不会被后面的 data-count 字号档覆盖。
 * ============================================================ */
.sc-tr > span { min-width: 0; }
/* 房型列的内容（.sc-name）也要能缩，否则长房型名会顶宽整列 */
.sc-tr > span:first-child .sc-name { min-width: 0; }
/* 价格格：内容不能换行（数字+元要在一行），放不下就裁。
   配合上面的 min-width:0 —— 价格列被压窄时数字不会撑破整行。 */
.sc-tr > span:not(:first-child) { overflow: hidden; }
/* 价格表头整行居中：首列「房型」原本左对齐，与价格列保持一致的居中效果 */
.sc-th > span:first-child { text-align: center; }
/* 2026-11-09：主推房不再用「整行加深颜色条」表示。
   旧规则是给带 hot 类的行套上高亮行底色、并把房型名变色加粗，现已删除；
   现在只在房型名后面跟一个红色 HOT 小标，整行仍用主题原本的表格底色。
   各主题里遗留的高亮行色变量仅为兼容旧皮肤数据保留，页面已不再消费。 */
/* 房型名列 = 名称 + HOT 标 + 状态标。名称过长时省略号收尾，
   两个徽标固定不收缩、始终同一行，避免竖屏房型列把「满房」挤到第二行。 */
/* 房型列「联动居中」（2026-11-10）：
   --sc-name-w 由 renderer.js 的 roomNameWidthStyle() 按【最长房型名】
   动态算出（em），名称区据此定宽并把文字居中。表头「房型」本就在同一列
   （横/竖屏第一列都固定 40%）的中心，于是表头与所有房型名落在同一条
   中心线上。徽标放进 .sc-tags 绝对定位贴名称区右侧，不参与居中计算，
   所以带 HOT/满房的行房型名也不会被挤偏。 */
.sc-name { display: flex; align-items: center; justify-content: center; position: relative; min-width: 0; }
.sc-rname { flex: none;width: 6em; width: var(--sc-name-w, 6em); max-width: 100%; text-align: center;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-tags { position: absolute;left: calc(50% + 6em / 2 + .25em); left: calc(50% + var(--sc-name-w, 6em) / 2 + .25em);
           top: 50%; transform: translateY(-50%);
           display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; }
.sc-name .sc-hottag, .sc-name .sc-soldtag, .sc-name .sc-stat { margin-left: 0; flex: none; }
.sc-hottag { display: inline-block; font-style: normal; font-size: .56em; line-height: 1;
             font-weight: 800; letter-spacing: .06em; color: #fff; background: #e11d2e;
             padding: .22em .42em; margin-left: .55em; border-radius: .28em;
             vertical-align: middle; white-space: nowrap;
             box-shadow: 0 .1em .35em rgba(0,0,0,.3); }
/* 满房行整行红字时，HOT 标始终保持白字红底，不被继承色或删除线影响 */
.sc-tr.sold .sc-hottag { color: #fff !important; text-decoration: none; }
/* 竖屏房型列只有 40% 宽：徽标再收紧一号、间距缩小，
   保证名称区 + 徽标完整同一行且不压到右侧价格列。 */
.sc-root.o-portrait .sc-tags { gap: .16em; }
.sc-root.o-portrait .sc-hottag { font-size: .48em; padding: .18em .24em; }
.sc-root.o-portrait .sc-soldtag,
.sc-root.o-portrait .sc-stat { font-size: .56em; padding: .1em .28em; }
/* 非 16:9（4:3 会议平板、视口被压小的电视）：房型列变窄，
   绝对定位的 .sc-tags 会溢出这一列，把 HOT/满房 压到右侧价格数字上。
   让徽标回到文档流、紧跟定宽名称，整体由 flex 居中：不溢出、不截字。 */
@media (min-aspect-ratio: 10/15) {
  .sc-tags { position: static; left: auto; right: auto; top: auto; transform: none; gap: .25em; }
  .sc-rname {width: 6em; width: var(--sc-name-w, 6em); max-width: none; flex: none; }
  .sc-hottag { font-size: .5em; padding: .18em .3em; margin-left: 0; }
  .sc-soldtag, .sc-stat { font-size: .58em; }
}
.sc-tr.sold .sc-name, .sc-tr.sold .sc-p { color: #ff5a5a !important; }
.sc-tr.sold .sc-soldtag { text-decoration: none; }
.sc-p {color: #f1e6cd; color: var(--sc-price);font-size: 2.6vw; font-size: var(--fs-price, 2.6vw); }
/* 数字与「元」装进同一行盒并严格基线对齐：消除中英文字体度量差异
   造成的视觉高低不齐（原来 488 和 元 的底边看着不在一条线上）。 */
.sc-p-in { display: inline-flex; align-items: baseline; white-space: nowrap; position: relative; }
.sc-p .yuan { font-style: normal; font-size: .72em; margin-left: .2em; opacity: .85; line-height: 1; }
/* 满房行的删除线：改用一条贯穿整段「数字+元」的直线。
   原 text-decoration:line-through 会按各自字号分别计算位置，
   数字(1em)与「元」(.72em)的线高度不同 → 断成高低两截、不在一条线上。 */
.sc-tr.sold .sc-p { text-decoration: none; }
.sc-tr.sold .sc-p-in::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: .075em; min-height: 1px; transform: translateY(-50%);
  background: currentColor; opacity: .9; pointer-events: none;
}
.sc-none { opacity: .35; }
.sc-stat { font-style: normal; font-size: .72em; font-weight: 700; margin-left: .5em;
           padding: .1em .45em; border-radius: .3em; vertical-align: middle; white-space: nowrap; }
.sc-stat-tight { background: #ea580c; color: #fff; }
.sc-stat-bad { background: #dc2626; color: #fff; }
.sc-soldtag { font-style: normal; font-size: .68em; font-weight: 700; margin-left: .6em;
              padding: .1em .5em; border-radius: .3em; background: #dc2626; color: #fff !important; }
.sc-table { position: relative; }
.focus-band { position: absolute; left: 0; right: 0; top: 0; height: 0; pointer-events: none; z-index: 3;
              border-left: .45vw solid rgba(37,99,235,.55);
              background: linear-gradient(90deg, rgba(37,99,235,.15), rgba(37,99,235,.02) 72%);
              transition: transform .42s cubic-bezier(.4,0,.2,1), height .42s cubic-bezier(.4,0,.2,1); }
.sc-root .focus-band {border-left-color: #e0b46a; border-left-color: var(--sc-accent);
              background: linear-gradient(90deg, rgba(255,255,255,.15), rgba(255,255,255,0) 70%); }
.sc-tr.is-focus .sc-name {color: #e0b46a; color: var(--sc-accent); font-weight: 700; }
.sc-tr.is-focus .sc-p {color: #ffffff; color: var(--sc-focus-price, #ffffff); }
.sc-gallery { transition: opacity .22s ease; }
.sc-gallery.swapping { opacity: 0; }
.sc-ph-label { position: absolute; left:0; top:0; right:0; bottom:0; display: flex; align-items: center; justify-content: center;
              /* ⚠️ 不能写死白色：浅底主题（米白/淡青/纯白）上白字几乎看不见，
                 占位符里的房型名会直接消失。跟随主题的基础文字色。 */
              color: var(--sc-ph-label, rgba(255,255,255,.5));
              font-size: 2.2vw; letter-spacing: .1em;
              background: repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 10px, transparent 10px 20px); }
/* 中间大图缓慢推镜，增加画面呼吸感 */
.sc-ph-mid img { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.sc-ph-sold { position: absolute; left:0; top:0; right:0; bottom:0; display: flex; align-items: center; justify-content: center;
              background: rgba(20,0,0,.42); color: #ff6b6b; font-size: 2.8vw; font-weight: 800; letter-spacing: .22em;
              text-shadow: 0 .2vw .6vw rgba(0,0,0,.5); }
/* 「已满房」文字包一层 span 做红底白字徽标：横屏时容器改为顶部整行
   text-align:center，徽标自然落在图片最上居中（见横屏段覆盖规则）。 */
.sc-ph-sold > span { display: inline-block; background: rgba(220,38,38,.94); color: #fff;
                     font-size: 2.4vw; font-weight: 800; letter-spacing: .16em;
                     padding: .7vw 1.8vw; border-radius: .6vw; text-shadow: none;
                     box-shadow: 0 .3vw 1vw rgba(0,0,0,.32); }
/* 竖屏时改为上下布局：图片横排在上、价格表在下 */
.sc-root.o-portrait .sc-main { flex-direction: column; }
.sc-root.o-portrait .sc-gallery { width: 100%; flex-direction: row; height: 34vw; }
.sc-root.o-portrait .sc-ph-mid { flex: 2.6; }
.sc-root.o-portrait .sc-hotel { font-size: 4.4vw; }
/* ============ 13. 星空蓝（横屏） ============ */
.tp-starry {
  --sc-accent: #5cb6ff; --sc-price: #ffffff; --sc-tbl-bg: rgba(10,40,92,.55);
  --sc-th-bg: rgba(24,88,168,.42); --sc-line: rgba(96,176,255,.26);
  --sc-ribbon: #2f9fe0; --sc-ph-bg: linear-gradient(135deg,#0b1c42,#123a72); --sc-hot: rgba(64,158,255,.20);
  --sc-top-bg: linear-gradient(90deg, rgba(3,9,28,.95), rgba(6,24,58,.62));
  background-color: #030817;
  background-image:
    radial-gradient(ellipse at 78% 16%, rgba(30,90,200,.30), transparent 62%),
    radial-gradient(1.3px 1.3px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 34% 62%, #cfe4ff, transparent),
    radial-gradient(1.5px 1.5px at 58% 14%, #fff, transparent),
    radial-gradient(1px 1px at 72% 44%, #a9d4ff, transparent),
    radial-gradient(1.2px 1.2px at 88% 28%, #fff, transparent),
    radial-gradient(1px 1px at 22% 78%, #d8e9ff, transparent),
    radial-gradient(1.1px 1.1px at 46% 88%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 80% 72%, #bcdcff, transparent),
    radial-gradient(1px 1px at 66% 32%, #fff, transparent),
    radial-gradient(1px 1px at 8% 48%, #e3efff, transparent);
}
/* ============ 14. 甜蜜粉（横屏） ============ */
.tp-sweetpink {
  --sc-accent: #ff9ac8; --sc-price: #ffe9f4; --sc-tbl-bg: rgba(88,18,54,.50);
  --sc-th-bg: rgba(150,32,82,.42); --sc-line: rgba(255,150,200,.25);
  --sc-ribbon: #ff5f9e; --sc-ph-bg: linear-gradient(135deg,#3a0d26,#6b1440); --sc-hot: rgba(255,90,160,.18);
  --sc-top-bg: linear-gradient(90deg, rgba(56,10,30,.95), rgba(96,22,58,.58));
  background-color: #12040c;
  background-image:
    radial-gradient(circle at 62% 18%, rgba(255,120,180,.22) 0 6%, transparent 6.4%),
    radial-gradient(circle at 30% 62%, rgba(255,90,160,.16) 0 8%, transparent 8.4%),
    radial-gradient(circle at 78% 62%, rgba(255,140,200,.14) 0 5%, transparent 5.4%),
    radial-gradient(circle at 46% 86%, rgba(255,110,175,.12) 0 4%, transparent 4.4%),
    radial-gradient(circle at 88% 40%, rgba(255,190,225,.10) 0 3%, transparent 3.4%),
    linear-gradient(160deg, #35081c, #12040c);
}
/* ============ 15. 宝石蓝（横屏） ============ */
.tp-gemblue {
  --sc-accent: #3ec9d8; --sc-price: #e8fbff; --sc-tbl-bg: rgba(8,44,62,.55);
  --sc-th-bg: rgba(14,88,112,.44); --sc-line: rgba(60,200,215,.25);
  --sc-ribbon: #2f9bd0; --sc-ph-bg: linear-gradient(135deg,#052230,#0a3d52); --sc-hot: rgba(50,200,215,.18);
  --sc-top-bg: linear-gradient(90deg, rgba(3,28,42,.95), rgba(6,50,72,.62));
  background-color: #03151f;
  background-image:
    radial-gradient(ellipse at 70% 8%, rgba(0,190,220,.22), transparent 58%),
    linear-gradient(160deg, #062634, #02121c);
}
/* ============ 16. 中国水墨风（横屏） ============ */
.tp-ink {
  --sc-accent: #d8b878; --sc-price: #ece5d8; --sc-tbl-bg: rgba(0,0,0,.34);
  --sc-th-bg: rgba(42,37,30,.55); --sc-line: rgba(216,184,120,.22);
  --sc-ribbon: #d8b878; --sc-ph-bg: #17150f; --sc-hot: rgba(216,184,120,.14);
  --sc-top-bg: linear-gradient(90deg, rgba(8,8,8,.92), rgba(20,18,14,.6));
  background-color: #0a0a0a;
  background-image:
    radial-gradient(62% 46% at 92% 104%, rgba(200,200,190,.16), transparent 70%),
    radial-gradient(46% 34% at 74% 104%, rgba(165,165,155,.12), transparent 72%),
    radial-gradient(80% 30% at 104% 78%, rgba(120,120,112,.10), transparent 74%),
    radial-gradient(30% 22% at 58% 102%, rgba(180,180,170,.09), transparent 74%),
    linear-gradient(160deg, #101010, #050505);
}
.tp-ink .sc-seal { display: flex; }
.tp-ink .sc-hotel { font-family: "Songti SC","STSong","SimSun",serif; }
.tp-ink .sc-name { font-family: "Songti SC","STSong","SimSun",serif; }
/* ============ 17. 清新绿（横屏） ============ */
.tp-freshgreen {
  --sc-accent: #c3e75a; --sc-price: #eaffd0; --sc-tbl-bg: rgba(10,58,40,.45);
  --sc-th-bg: rgba(20,92,56,.44); --sc-line: rgba(195,231,90,.22);
  --sc-ribbon: #a9d63b; --sc-ph-bg: linear-gradient(135deg,#0b3a2c,#12503a); --sc-hot: rgba(195,231,90,.14);
  --sc-top-bg: linear-gradient(90deg, rgba(12,54,38,.92), rgba(18,72,48,.58));
  background-color: #06231b;
  background-image:
    radial-gradient(ellipse at 78% 12%, rgba(150,230,90,.16), transparent 58%),
    linear-gradient(160deg, #0d3b2c, #06231b);
}
/* ============ 18. 工业灰（横屏） ============ */
.tp-industrial {
  --sc-accent: #e8edf2; --sc-price: #f4f7fa; --sc-tbl-bg: rgba(18,20,24,.55);
  --sc-th-bg: rgba(48,52,58,.6); --sc-line: rgba(255,255,255,.14);
  --sc-ribbon: #c9ced6; --sc-ph-bg: linear-gradient(135deg,#2b2f36,#3a3f47); --sc-hot: rgba(255,255,255,.10);
  --sc-top-bg: linear-gradient(90deg, rgba(26,28,32,.92), rgba(48,52,58,.6));
  background-color: #1a1c20;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, rgba(0,0,0,.035) 2px 4px),
    linear-gradient(160deg, #2b2e34, #14161a);
}
/* ============ 19. 木纹棕（横屏） ============ */
.tp-wood {
  --sc-accent: #e3bd8c; --sc-price: #f5e3cb; --sc-tbl-bg: rgba(58,30,12,.45);
  --sc-th-bg: rgba(92,46,18,.44); --sc-line: rgba(227,189,140,.22);
  --sc-ribbon: #d9a86a; --sc-ph-bg: linear-gradient(135deg,#3a2210,#5a3a1c); --sc-hot: rgba(227,189,140,.14);
  --sc-top-bg: linear-gradient(90deg, rgba(48,26,10,.92), rgba(84,50,20,.58));
  background-color: #2a1708;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.10) 0 3px, rgba(255,255,255,.02) 3px 5px, transparent 5px 11px),
    linear-gradient(160deg, #472a12, #1d1108);
}
/* ============ 20. 欧式古典（横屏） ============ */
.tp-euroclassic {
  --sc-accent: #e3c076; --sc-price: #f1e6cd; --sc-tbl-bg: rgba(20,14,8,.55);
  --sc-th-bg: rgba(62,44,22,.5); --sc-line: rgba(227,192,118,.25);
  --sc-ribbon: #e3c076; --sc-ph-bg: linear-gradient(135deg,#241a10,#3b2a18); --sc-hot: rgba(227,192,118,.13);
  --sc-top-bg: linear-gradient(90deg, rgba(26,18,10,.94), rgba(58,40,20,.6));
  background-color: #150e07;
  background-image:
    radial-gradient(ellipse at 50% -12%, rgba(227,192,118,.14), transparent 58%),
    repeating-radial-gradient(circle at 22% 26%, rgba(227,192,118,.05) 0 2px, transparent 2px 26px),
    linear-gradient(160deg, #2c1f11, #140d06);
}
.tp-euroclassic .sc-top { border-bottom: .25vw solid rgba(227,192,118,.45); }
.tp-euroclassic .sc-hotel { font-family: "Songti SC","STSong","SimSun",serif; letter-spacing: .16em; }
/* ============ 21. 典雅紫（横屏） ============ */
.tp-elegantpurple {
  --sc-accent: #c98bff; --sc-price: #f2e8ff; --sc-tbl-bg: rgba(52,16,96,.50);
  --sc-th-bg: rgba(96,32,170,.45); --sc-line: rgba(201,139,255,.25);
  --sc-ribbon: #d95fff; --sc-ph-bg: linear-gradient(135deg,#2c0f52,#4a1a80); --sc-hot: rgba(201,139,255,.16);
  --sc-top-bg: linear-gradient(90deg, rgba(38,12,74,.94), rgba(70,22,124,.58));
  background-color: #150733;
  background-image:
    radial-gradient(circle at 86% 14%, rgba(201,139,255,.26) 0 20%, transparent 20.5%),
    radial-gradient(circle at 86% 14%, transparent 0 32%, rgba(160,80,255,.16) 32.2% 32.8%, transparent 33%),
    radial-gradient(circle at 12% 88%, rgba(120,60,220,.18) 0 24%, transparent 24.5%),
    linear-gradient(160deg, #2a0f52, #150733);
}
/* ============ 低配模式（电视端 APP 设置里可开） ============
   目标：老旧电视盒子（1GB 内存 / 弱 GPU）上不掉帧
   手段：关掉毛玻璃、背景滤镜、Ken Burns 推镜、跑马灯动画等重绘开销 */
.low-spec .sc-table,
.low-spec .sc-ph,
.low-spec .ct-qr {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.low-spec .sc-ph-mid img {
    animation: none !important;      /* 关闭推镜缩放 */
    transform: none !important;
}
.low-spec .sc-gallery {
    transition: none !important;      /* 图廊切换改为瞬时 */
}
.low-spec .notice-scroll {
    animation: none !important;       /* 跑马灯停止滚动，改由 JS 控制（见下） */
}
.low-spec .sc-ph {
    box-shadow: none !important;
}
.low-spec .sc-ribbon,
.low-spec .sc-seal {
    box-shadow: none !important;
}
/* 低配模式下把动画元素降为简单淡入，避免持续重绘 */
.low-spec .notice-item {
    transition: opacity .2s linear !important;
}
.board-root .hotel-name, .board-root .sc-hotel, .board-root .sc-name, .board-root .sc-p, .board-root .notice-scroll{font-family: inherit; font-family: var(--font, inherit); }
.board-root .hotel-name, .board-root .sc-hotel, .board-root .sc-name{font-family: inherit; font-family: var(--font-custom, var(--font, inherit)); }
/* 酒店名称可单独指定字体：--font-hotel 由 typographyStyle 在显式选择时输出，
   未设置（-1）则回落到自定义字体 / 全局字体，与表头字体互不影响。
   放在上面两条之后，保证优先级足够覆盖主题自带的 font-family。 */
.board-root .hotel-name, .board-root .sc-hotel {font-family: inherit;
    font-family: var(--font-hotel, var(--font-custom, var(--font, inherit)));
}
/* ============================================================
 * 竖屏专属版式 v4（2026-11-06）
 *   顶部：logo + 酒店名【整体居中】，字号放大
 *   第二行：左 = 年月日 星期几 时间（时钟图标）
 *            右 = 城市（定位图标）+ 天气（天气图标）
 *   中部：单张大图（PPT 式横向轮换）
 *   下部：价格表（表头加大；按房型数量自适应）
 *   底部：热线 → 地址 → 滚动消息，各一行；二维码右下角
 * ============================================================ */
/* ── 顶栏小图标 ──
   内部是内联 SVG（iconSvg() 生成），尺寸写在 SVG 属性里，
   这里只管对齐与颜色 —— 不用 mask，避免尺寸被 CSS 覆盖算不出来。 */
.ic {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; opacity: .72; vertical-align: -.28em;
  line-height: 0;
}
.ic svg { display: block; width: 1.45em; height: 1.45em; }
/* ── 顶部：logo + 酒店名整体居中，字号放大 ── */
.sc-root.o-portrait .sc-top {
  display: flex; flex-direction: column; align-items: stretch;
  gap: .9vw; padding: 2.6vw 5vh 1.6vw;
}
.sc-root.o-portrait .sc-hotel {
  justify-content: center; gap: 1.4vh;font-size: calc(3.8vw * 1.5);
  font-size: calc(var(--fs-hotel, 3.8vw) * 1.5);
  letter-spacing: .06em;
  /* 新建屏酒店名/logo 还没填时，空 flex 行高度会塌成 0，
     顶栏只剩一行时间，v4 的「品牌行 + 信息行」骨架就没了。
     给个最小高度，保证任何数据状态下版式比例都一致。 */
  min-height: 6.6vw;
}
/* logo 明确尺寸与不被压缩 */
.sc-root.o-portrait .sc-hotel .head-logo {
  height: 6.2vw; width: auto; flex: 0 0 auto;
  object-fit: contain; border-radius: .8vw;
}
.sc-root.o-portrait .sc-hotel .hotel-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ⚠️ 顶栏第二行：左 日期时间 / 右 城市+天气
 *
 *   踩过的三个坑（都实测过，别再犯）：
 *   ① flex + flex-basis:auto → 右侧组内容宽度只算出 12px，
 *      图标和文字被压扁、竖排换行。
 *   ② grid + auto 列 → 因为 overflow:hidden 算不出 max-content，
 *      同样压成 12px。
 *   ③ float:right → CSS 规范规定 float 会把元素的 display「块化」，
 *      inline-flex 被算成 flex，还得再修回去。
 *
 *   正解：flex 布局 + 右侧组显式 width:max-content。
 *   max-content 让浏览器按内容算出真实宽度，不受容器剩余空间影响。
 */
.sc-root.o-portrait .sc-meta {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 1.4vh;
  position: relative;   /* 右侧「城市+天气」用绝对定位贴右，见下 */
}
.sc-root.o-portrait .sc-left,
.sc-root.o-portrait .sc-right {
  display: flex; align-items: center; gap: .7vh;
  font-size: 2.1vw; white-space: nowrap;
  /* ⚠️ 必须显式写 row ——
     基础规则 .sc-right 有 flex-direction: column（那是给价格表容器用的），
     竖屏规则只覆盖了 display，方向被继承下来，
     结果顶栏右侧的图标竖着排了三行（高度 76px）。 */
  flex-direction: row;
}
/* 左侧日期：过长时省略 */
.sc-root.o-portrait .sc-left {
  flex: 0 1 auto; min-width: 0; overflow: hidden;
}
.sc-root.o-portrait .sc-left > span { overflow: hidden; text-overflow: ellipsis; }
/* 右侧：地点 + 天气固定贴在顶栏第二行最右。
   ⚠️ 2026-11-24：原来靠 width:max-content + margin-left:auto 推到右边，
   实机（小米盒子 4C）的老内核不认 max-content，右侧组就紧跟在日期时间后面，
   挤在左上角、右边空一大片（用户实拍照片实锤）。
   与横屏（2026-11-15 已修）保持同一套做法：相对 .sc-meta 绝对定位贴右，
   不依赖 flex 分配、不依赖 max-content，任何内核都稳定靠右。 */
.sc-root.o-portrait .sc-right {
  position: absolute; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; flex-direction: row;
  /* ⚠️ 2026-11-24：原来 .7vw —— 1920 宽的屏上是 13.4px，
     差不多正好半个汉字宽，用户实拍照片里「成都」和天气图标之间
     就多出这半个字的空隙。这里收到 .24vw（≈4.6px）。
     图钉与城市名之间另给 .28vw（见 .ic-pin 规则），保住呼吸感。
     ⚠️ 2026-11-25：v2.4.9 回退表格版式时误把这条一起退掉了，已补回。 */
  gap: .24vh; white-space: nowrap;
  width: auto; flex: none; min-width: 0; margin-left: 0;
  font-size: 2.1vw;
}
/* 左侧日期时间留出右侧空间，窄屏也不会和右侧天气叠在一起 */
.sc-root.o-portrait .sc-left { max-width: 58%; }
.sc-root.o-portrait .sc-right .sc-weather {
  display: inline-flex; align-items: center; gap: .32vh; white-space: nowrap;
}
.sc-root.o-portrait .sc-right .sc-city { white-space: nowrap; }
/* 图钉与城市名之间保留一点间距（整体 gap 收紧后由这里补回来） */
.sc-root.o-portrait .sc-right .ic-pin { margin-right: .28vh; }
/* 图标固定尺寸，不能被压扁 */
.sc-root.o-portrait .ic { flex: 0 0 auto; display: inline-block; }
/* 日期里的「年」字在竖屏省掉，省出宽度给右侧 */
.sc-root.o-portrait .sc-date .yr { display: none; }
/* ── 中部：单张大图 ── */
.sc-root.o-portrait .sc-main { flex-direction: column; gap: 1.6vw; padding: 0 4vh 1.6vw; }
.sc-root.o-portrait .sc-gallery {
  /* 展示框与素材同规格：2048×1366（3:2 横图）。
     height 由宽度按 3:2 反算，不再写死 38%，整张照片完整显示、不裁不变形。
     9:16 屏上 3:2 约占主区 49% 高，所以兜底上限放到 60%：
     设成 44% 会把框压成 1.8:1（实测踩过），照片又被裁掉上下。 */
  /* ⚠️ 2026-11-24：aspect-ratio 要 Chrome 88+，小米盒子4C（Chromium 56）
     【整条丢弃】→ height:auto 且框内图片全是 position:absolute（不撑父高）
     → 图廊高度塌成 0 → 整块图片区消失、价格表铺满全宽（转 90° 后实机故障）。
     横屏 .o-landscape .sc-gallery 早在 2026-11-15 就为此改成显式百分比宽度，
     竖屏这条是漏改。现补上等价的显式高度：
       .sc-main 左右 padding 各 4vw → 图廊宽 = 92vw → 3:2 反算 = 61.33vw。
     两行同时保留：新内核 aspect-ratio 生效但因 height 已确定而不参与计算，
     老内核丢弃 aspect-ratio 后用 height —— 两种内核结果完全一致。
     转置（board-rot.css 把 vw↔vh 对调）后为 61.33vh，逻辑宽 = 100vh，比例不变。 */
  width: 100%; flex: none; height: 61.33vh; min-height: 0;
  aspect-ratio: 3 / 2; max-height: 60%;
  display: block; position: relative; overflow: hidden;
  border-radius: 1.4vw;
  box-shadow: 0 .4vw 1.6vw rgba(0,0,0,.14);
}
.sc-root.o-portrait .sc-ph:not(.sc-ph-mid) { display: none; }
.sc-root.o-portrait .sc-ph-mid { flex: 1; border-radius: 1.4vw; overflow: hidden; }
.sc-root.o-portrait .sc-ph-slide { position: absolute; left:0; top:0; right:0; bottom:0; }
.sc-root.o-portrait .sc-ph-slide img { width: 100%; height: 100%; object-fit: cover; }
/* 轮播指示点 */
.sc-root.o-portrait .sc-dots {
  position: absolute; right: 1.6vw; bottom: 1.4vw;
  display: flex; gap: .7vw; z-index: 3;
}
.sc-root.o-portrait .sc-dots i {
  width: .9vw; height: .9vw; border-radius: 50%;
  background: rgba(255,255,255,.5); display: block;
}
.sc-root.o-portrait .sc-dots i.on { background: #fff; width: 2.6vw; border-radius: .5vw; }
/* 占位符（没配图时） */
.sc-root.o-portrait .sc-ph-label {
  top:auto; right:0; bottom:0; left:0; top: auto; height: auto;
  padding: 1.8vw 1.6vw 2.8vw;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.42) 100%);
  color: #fff; font-size: 3vw;
}
/* ── 价格表：表头加大 + 按房型数量自适应 ── */
/* 价格表容器：必须撑满整行 —— .sc-main 是 column 布局，
   它作为 flex item 没有宽度约束的话，表格会收缩到内容宽度。 */
.sc-root.o-portrait .sc-price { width: 100%; flex: 1; min-height: 0; }
.sc-root.o-portrait .sc-table { display: flex; flex-direction: column; height: 100%; }
.sc-root.o-portrait .sc-th {
  font-size: 2.5vw; letter-spacing: .06em;
  padding: 1.5vw 2.6vh; flex: none;border-bottom: 1.5px solid #e3c076;
  border-bottom: 1.5px solid var(--sc-line);
}
.sc-root.o-portrait .sc-tr {
  font-size: 2.35vw; padding: 1.3vw 2.6vh;
  flex: 1 1 0; min-height: 0;   /* 各行均分剩余高度 */
}
.sc-root.o-portrait .sc-tr > span:first-child { flex: 0 0 40%; }
/* 竖屏价格字号：以 --fs-price 为基准的倍数。
   ⚠️ 2026-11-25：原来这里写死 2.5vh，把 --fs-price 整个顶掉了 ——
      而 --fs-price 正是「价格列一多就缩字号」的载体
      （renderer.js 的 priceFontScale() 会按列数把它乘小）。
      写死 vh 的话，列数一多价格数字就放不下 → 挤在一起重叠。
      改成 calc(var(--fs-price) × 系数)，缩放才透得下来。
      前一条字面量是给「不认 var() 的老内核」兜底的（与 .hotel-name 同套路）。 */
.sc-root.o-portrait .sc-p { font-size: 2.5vw; font-size: calc(var(--fs-price, 2.6vw) * .96); }
/* ============================================================
 * 列宽自适应（2026-11-25 新增，用户明确要求）
 * ------------------------------------------------------------
 * 用户原话：「如果价格体系超过三列，建议就可以向左自动基站
 *   一点房型的列宽，做到自适应。」
 *
 * 【为什么这样做】
 *   价格列越多，每列越窄，表头「门市价」三个字就放不下 → 换行。
 *   用户允许的解法是【挤压房型列】把宽度让给价格列。
 *   房型列让位后，价格列变宽 → 表头放得下 → 不换行。
 *
 * 【为什么用 CSS 分档而不是 JS 算】
 *   ① 表头行和数据行的列宽必须【逐像素一致】，
 *      否则房型名与价格数字上下错位（实机照片里就错位过）。
 *      用同一条 CSS 规则（.sc-tr 同时匹配表头行与数据行）
 *      → 两行拿到的 flex 百分比天然相同，零错位。
 *   ② 老内核不认 var()，用 CSS 变量写房型列宽度会导致整条规则
 *      被丢弃、房型列塌回默认值、版式全乱 —— 必须枚举。
 *
 * 【分档表】（与 renderer.js 的 roomShareOf() 必须完全一致）
 *   价格列数 ≤3 → 40%（沿用默认，不写规则）
 *   4 → 34%   5 → 30%   6 → 27%   7 → 25%   8 → 23%   ≥9 → 21%
 *
 * 【房型名放不下怎么办】
 *   .sc-rname 已有 max-width:100% + overflow:hidden + ellipsis，
 *   房型名过长自动省略号收尾，绝不溢出压到价格列上。
 *   徽标（HOT/满房）用绝对定位贴在名称区右侧，也不参与列宽计算。
 * ============================================================ */
.sc-root.o-portrait .sc-table[data-cols="4"] .sc-tr > span:first-child,
.sc-root.o-landscape .sc-table[data-cols="4"] .sc-tr > span:first-child { flex: 0 0 34%; }
.sc-root.o-portrait .sc-table[data-cols="5"] .sc-tr > span:first-child,
.sc-root.o-landscape .sc-table[data-cols="5"] .sc-tr > span:first-child { flex: 0 0 30%; }
.sc-root.o-portrait .sc-table[data-cols="6"] .sc-tr > span:first-child,
.sc-root.o-landscape .sc-table[data-cols="6"] .sc-tr > span:first-child { flex: 0 0 27%; }
.sc-root.o-portrait .sc-table[data-cols="7"] .sc-tr > span:first-child,
.sc-root.o-landscape .sc-table[data-cols="7"] .sc-tr > span:first-child { flex: 0 0 25%; }
.sc-root.o-portrait .sc-table[data-cols="8"] .sc-tr > span:first-child,
.sc-root.o-landscape .sc-table[data-cols="8"] .sc-tr > span:first-child { flex: 0 0 23%; }
.sc-root.o-portrait .sc-table[data-cols="9"] .sc-tr > span:first-child,
.sc-root.o-landscape .sc-table[data-cols="9"] .sc-tr > span:first-child,
.sc-root.o-portrait .sc-table[data-cols="10"] .sc-tr > span:first-child,
.sc-root.o-landscape .sc-table[data-cols="10"] .sc-tr > span:first-child,
.sc-root.o-portrait .sc-table[data-cols="11"] .sc-tr > span:first-child,
.sc-root.o-landscape .sc-table[data-cols="11"] .sc-tr > span:first-child,
.sc-root.o-portrait .sc-table[data-cols="12"] .sc-tr > span:first-child,
.sc-root.o-landscape .sc-table[data-cols="12"] .sc-tr > span:first-child,
.sc-root.o-portrait .sc-table[data-cols="13"] .sc-tr > span:first-child,
.sc-root.o-landscape .sc-table[data-cols="13"] .sc-tr > span:first-child,
.sc-root.o-portrait .sc-table[data-cols="14"] .sc-tr > span:first-child,
.sc-root.o-landscape .sc-table[data-cols="14"] .sc-tr > span:first-child,
.sc-root.o-portrait .sc-table[data-cols="15"] .sc-tr > span:first-child,
.sc-root.o-landscape .sc-table[data-cols="15"] .sc-tr > span:first-child,
.sc-root.o-portrait .sc-table[data-cols="16"] .sc-tr > span:first-child,
.sc-root.o-landscape .sc-table[data-cols="16"] .sc-tr > span:first-child { flex: 0 0 21%; }
/* 房型很少（1–3 个）时，.sc-tr 的 flex:1 1 0 会把唯一一行拉到
   占满整个下半屏，表头与数据之间出现巨大空白，看起来像一块空色卡。
   改成固定行高 + 表格内容垂直居中：表格紧凑，剩余空间匀给主题背景，
   与 5 行房型时的 v4 观感保持一致。 */
.sc-root.o-portrait .sc-price[data-sparse="1"] {
  display: flex; align-items: center;
}
.sc-root.o-portrait .sc-price[data-sparse="1"] .sc-table {
  height: auto; width: 100%;   /* 表格只包住表头 + 数据行，不再铺满下半屏 */
}
.sc-root.o-portrait .sc-table[data-count="1"] .sc-tr:not(.sc-th),
.sc-root.o-portrait .sc-table[data-count="2"] .sc-tr:not(.sc-th),
.sc-root.o-portrait .sc-table[data-count="3"] .sc-tr:not(.sc-th) {
  flex: 0 0 auto; min-height: 7vw; max-height: 10vw;
}
/* 房型多时压缩：≤5 正常 / 6-8 缩小 / >8 更紧凑 */
.sc-root.o-portrait .sc-table[data-count="6"] .sc-th,
.sc-root.o-portrait .sc-table[data-count="7"] .sc-th,
.sc-root.o-portrait .sc-table[data-count="8"] .sc-th { font-size: 2.2vw; padding: 1.1vw 2.2vh; }
.sc-root.o-portrait .sc-table[data-count="6"] .sc-tr,
.sc-root.o-portrait .sc-table[data-count="7"] .sc-tr,
.sc-root.o-portrait .sc-table[data-count="8"] .sc-tr { font-size: 2.1vw; padding: .9vw 2.2vh; }
.sc-root.o-portrait .sc-table[data-count="6"] .sc-p,
.sc-root.o-portrait .sc-table[data-count="7"] .sc-p,
.sc-root.o-portrait .sc-table[data-count="8"] .sc-p { font-size: 2.2vw; font-size: calc(var(--fs-price, 2.6vw) * .85); }
.sc-root.o-portrait .sc-table[data-count="9"] .sc-th,
.sc-root.o-portrait .sc-table[data-count="10"] .sc-th,
.sc-root.o-portrait .sc-table[data-count="11"] .sc-th,
.sc-root.o-portrait .sc-table[data-count="12"] .sc-th { font-size: 2vw; padding: .9vw 2vh; }
.sc-root.o-portrait .sc-table[data-count="9"] .sc-tr,
.sc-root.o-portrait .sc-table[data-count="10"] .sc-tr,
.sc-root.o-portrait .sc-table[data-count="11"] .sc-tr,
.sc-root.o-portrait .sc-table[data-count="12"] .sc-tr { font-size: 1.95vw; padding: .6vw 2vh; }
.sc-root.o-portrait .sc-table[data-count="9"] .sc-p,
.sc-root.o-portrait .sc-table[data-count="10"] .sc-p,
.sc-root.o-portrait .sc-table[data-count="11"] .sc-p,
.sc-root.o-portrait .sc-table[data-count="12"] .sc-p { font-size: 2vw; font-size: calc(var(--fs-price, 2.6vw) * .77); }
/* 房型更多（13+）：只压字号，不再压行高（否则太挤读不出来） */
.sc-root.o-portrait .sc-table[data-count="13"] .sc-th { font-size: 1.9vw; }
.sc-root.o-portrait .sc-table[data-count="13"] .sc-tr { font-size: 1.85vw; padding: .5vw 1.8vh; }
.sc-root.o-portrait .sc-table[data-count="13"] .sc-p { font-size: 1.9vw; font-size: calc(var(--fs-price, 2.6vw) * .73); }
/* 焦点行（与图片轮播联动）：左侧竖条 + 淡底 + 加粗 */
.sc-root.o-portrait .sc-tr.is-focus {background: rgba(139,115,85,.14); background: var(--sc-focus-bg, rgba(139,115,85,.14)); }
.sc-root.o-portrait .sc-tr.is-focus .sc-name {color: #e0b46a; color: var(--sc-accent); font-weight: 800; }
.sc-root.o-portrait .sc-tr { position: relative; }
.sc-root.o-portrait .sc-tr.is-focus::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: .5vw;background: #e0b46a;
  background: var(--sc-accent); border-radius: 0 .4vw .4vw 0;
}
/* ── 底部：左列三行，右列二维码 ──
   ⚠️ .sc-foot 必须纵向排列 —— 之前是 flex 横向，
   .sc-notices 又设了 flex:1，直接把 contact 挤没了
   （第二次上线渲染出来底部整块是空的）。 */
.sc-root.o-portrait .sc-foot {
  padding: 0 4vh 1.6vw;
  display: flex; flex-direction: column; align-items: stretch; gap: .3vw;
  /* 联系信息/滚动消息都为空时保留底部骨架，避免主区被拉到贴着屏幕底边 */
  min-height: 11vw;
}
.sc-root.o-portrait .sc-contact {
  flex: none; width: 100%; min-width: 0; margin: 0;
  display: flex; align-items: flex-end; gap: 1.6vh;
}
.sc-root.o-portrait .ct-lines { flex: 1; min-width: 0; }
.sc-root.o-portrait .ct-line {
  font-size: 2.05vw; line-height: 1.7;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 标签自带「：」，右间距收窄，避免冒号与内容之间空得过开 */
.sc-root.o-portrait .ct-line b { font-weight: 700; margin-right: .35vh; }
.sc-root.o-portrait .ct-line.ct-addr { opacity: .74; }
.sc-root.o-portrait .ct-qr {
  width: 8.6vw; height: 8.6vw; flex: none;
  border-radius: .8vw; box-shadow: 0 .3vw 1vw rgba(0,0,0,.2);
}
/* 滚动消息：contact 下面独占一行，不压二维码 */
.sc-root.o-portrait .sc-notices {
  flex: none; width: 100%; min-width: 0; margin-top: 0;
}
.sc-root.o-portrait .notice-wrap { height: 3.4vw; min-height: 2.4vw; margin-bottom: 0; }
.sc-root.o-portrait .notice-scroll { font-size: 2vw; }
/* ==== 以下由 tools/build-skins.js 自动生成，请勿手改 ==== */

/* ============================================================
 * 新版展示型主题（2026-11-06 设计师交付 / 2026-11-09 改版）
 *   横屏：左 42% 单大图 / 右 58% 价格表铺满（所有主题统一）
 *   竖屏：上 38% 单大图 / 下 62% 价格表（不变）
 *   sc-flip 类保留仅兼容旧模板数据，不再翻转布局方向。
 * ============================================================ */
.sc-root.sc-flip:not(.o-portrait) .sc-main { flex-direction: row; }

/* ============ 水墨清雅（ink-elegant） ============ */
.tp-ink-elegant {
  --sc-accent: #534533; --sc-price: #342920; --sc-tbl-bg: rgba(255,250,240,.75);
  --sc-th-bg: rgba(240,235,220,.6); --sc-line: rgba(139,115,85,.25);
  --sc-ribbon: #53462e; --sc-hot: rgba(139,115,85,.1); --sc-ph-bg: rgba(0,0,0,.05);
  --sc-top-bg: linear-gradient(90deg, rgba(250,248,240,.95), rgba(240,235,220,.6));
  --sc-ph-label: #342920;color: #f1e6cd;
  color: var(--sc-price);
  --sc-focus-price: #342920;
  background-color: #F5F0E5;
  background-image:
    radial-gradient(ellipse at 80% 14%, rgba(255,255,255,.10), transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(255,255,255,.06), transparent 58%);
}

/* ============ 朱砂古韵（cinnabar-classic） ============ */
.tp-cinnabar-classic {
  --sc-accent: #E8C87A; --sc-price: #F0E0B8; --sc-tbl-bg: rgba(80,15,15,.62);
  --sc-th-bg: rgba(120,25,25,.5); --sc-line: rgba(232,200,122,.2);
  --sc-ribbon: #D4AF5A; --sc-hot: rgba(232,200,122,.12); --sc-ph-bg: rgba(255,255,255,.05);
  --sc-top-bg: linear-gradient(90deg, rgba(60,10,10,.95), rgba(100,20,20,.6));
  --sc-ph-label: rgba(255,255,255,.5);color: #f1e6cd;
  color: var(--sc-price);
  --sc-focus-price: #ffffff;
  background-color: #5A1010;
  background-image:
    radial-gradient(ellipse at 80% 14%, rgba(255,255,255,.10), transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(255,255,255,.06), transparent 58%);
}

/* ============ 青瓷雅集（celadon-elegant） ============ */
.tp-celadon-elegant {
  --sc-accent: #334f46; --sc-price: #1b322a; --sc-tbl-bg: rgba(240,248,245,.75);
  --sc-th-bg: rgba(220,235,228,.6); --sc-line: rgba(90,138,122,.25);
  --sc-ribbon: #374c45; --sc-hot: rgba(90,138,122,.1); --sc-ph-bg: rgba(0,0,0,.05);
  --sc-top-bg: linear-gradient(90deg, rgba(245,250,248,.95), rgba(220,235,228,.6));
  --sc-ph-label: #1b322a;color: #f1e6cd;
  color: var(--sc-price);
  --sc-focus-price: #1b322a;
  background-color: #E8F0EC;
  background-image:
    radial-gradient(ellipse at 80% 14%, rgba(255,255,255,.10), transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(255,255,255,.06), transparent 58%);
}

/* ============ 星空商务（starry-business） ============ */
.tp-starry-business {
  --sc-accent: #E8C87A; --sc-price: #F0E0B8; --sc-tbl-bg: rgba(8,18,38,.62);
  --sc-th-bg: rgba(15,30,60,.5); --sc-line: rgba(232,200,122,.2);
  --sc-ribbon: #D4AF5A; --sc-hot: rgba(232,200,122,.12); --sc-ph-bg: rgba(255,255,255,.05);
  --sc-top-bg: linear-gradient(90deg, rgba(5,12,28,.95), rgba(12,25,50,.6));
  --sc-ph-label: rgba(255,255,255,.5);color: #f1e6cd;
  color: var(--sc-price);
  --sc-focus-price: #ffffff;
  background-color: #0A1628;
  background-image:
    radial-gradient(ellipse at 80% 14%, rgba(255,255,255,.10), transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(255,255,255,.06), transparent 58%);
}

/* ============ 典雅欧式（euro-elegant） ============ */
.tp-euro-elegant {
  --sc-accent: #D4AF5A; --sc-price: #F0E0B8; --sc-tbl-bg: rgba(35,18,45,.62);
  --sc-th-bg: rgba(50,25,65,.5); --sc-line: rgba(212,175,90,.2);
  --sc-ribbon: #C9A04A; --sc-hot: rgba(212,175,90,.12); --sc-ph-bg: rgba(255,255,255,.05);
  --sc-top-bg: linear-gradient(90deg, rgba(25,12,35,.95), rgba(45,22,55,.6));
  --sc-ph-label: rgba(255,255,255,.5);color: #f1e6cd;
  color: var(--sc-price);
  --sc-focus-price: #ffffff;
  background-color: #2A1535;
  background-image:
    radial-gradient(ellipse at 80% 14%, rgba(255,255,255,.10), transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(255,255,255,.06), transparent 58%);
}

/* ============ 森林原木（forest-wood） ============ */
.tp-forest-wood {
  --sc-accent: #C89A5A; --sc-price: #E8D0A8; --sc-tbl-bg: rgba(35,22,12,.62);
  --sc-th-bg: rgba(55,35,20,.5); --sc-line: rgba(200,154,90,.2);
  --sc-ribbon: #B8863A; --sc-hot: rgba(200,154,90,.12); --sc-ph-bg: rgba(255,255,255,.05);
  --sc-top-bg: linear-gradient(90deg, rgba(25,15,8,.95), rgba(45,30,15,.6));
  --sc-ph-label: rgba(255,255,255,.5);color: #f1e6cd;
  color: var(--sc-price);
  --sc-focus-price: #ffffff;
  background-color: #2A1A10;
  background-image:
    radial-gradient(ellipse at 80% 14%, rgba(255,255,255,.10), transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(255,255,255,.06), transparent 58%);
}

/* ============ 极简禅白（zen-minimal） ============ */
.tp-zen-minimal {
  --sc-accent: #494949; --sc-price: #2d2d2d; --sc-tbl-bg: rgba(255,255,255,.8);
  --sc-th-bg: rgba(245,245,245,.7); --sc-line: rgba(136,136,136,.25);
  --sc-ribbon: #494949; --sc-hot: rgba(136,136,136,.08); --sc-ph-bg: rgba(0,0,0,.03);
  --sc-top-bg: linear-gradient(90deg, rgba(255,255,255,.95), rgba(245,245,245,.6));
  --sc-ph-label: #2d2d2d;color: #f1e6cd;
  color: var(--sc-price);
  --sc-focus-price: #2d2d2d;
  background-color: #FAFAFA;
  background-image:
    radial-gradient(ellipse at 80% 14%, rgba(255,255,255,.10), transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(255,255,255,.06), transparent 58%);
}

/* ============ 莫兰迪暖粉（morandi-pink） ============ */
.tp-morandi-pink {
  --sc-accent: #5b423b; --sc-price: #3c2620; --sc-tbl-bg: rgba(255,250,248,.75);
  --sc-th-bg: rgba(250,235,230,.6); --sc-line: rgba(212,154,138,.25);
  --sc-ribbon: #56443e; --sc-hot: rgba(212,154,138,.1); --sc-ph-bg: rgba(0,0,0,.03);
  --sc-top-bg: linear-gradient(90deg, rgba(255,250,248,.95), rgba(250,235,230,.6));
  --sc-ph-label: #3c2620;color: #f1e6cd;
  color: var(--sc-price);
  --sc-focus-price: #3c2620;
  background-color: #FDF5F2;
  background-image:
    radial-gradient(ellipse at 80% 14%, rgba(255,255,255,.10), transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(255,255,255,.06), transparent 58%);
}

/* ============ 工业都市（urban-industrial） ============ */
.tp-urban-industrial {
  --sc-accent: #E8782A; --sc-price: #F0E0D0; --sc-tbl-bg: rgba(20,20,22,.65);
  --sc-th-bg: rgba(40,40,45,.5); --sc-line: rgba(232,120,42,.2);
  --sc-ribbon: #D46820; --sc-hot: rgba(232,120,42,.12); --sc-ph-bg: rgba(255,255,255,.05);
  --sc-top-bg: linear-gradient(90deg, rgba(15,15,18,.95), rgba(35,35,40,.6));
  --sc-ph-label: rgba(255,255,255,.5);color: #f1e6cd;
  color: var(--sc-price);
  --sc-focus-price: #ffffff;
  background-color: #151518;
  background-image:
    radial-gradient(ellipse at 80% 14%, rgba(255,255,255,.10), transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(255,255,255,.06), transparent 58%);
}

/* ============ 深海蓝调（deep-sea-blue） ============ */
.tp-deep-sea-blue {
  --sc-accent: #4A9AE8; --sc-price: #E0F0FF; --sc-tbl-bg: rgba(5,20,45,.65);
  --sc-th-bg: rgba(10,40,80,.5); --sc-line: rgba(74,154,232,.2);
  --sc-ribbon: #2A7AC8; --sc-hot: rgba(74,154,232,.12); --sc-ph-bg: rgba(255,255,255,.05);
  --sc-top-bg: linear-gradient(90deg, rgba(3,12,30,.95), rgba(8,30,60,.6));
  --sc-ph-label: rgba(255,255,255,.5);color: #f1e6cd;
  color: var(--sc-price);
  --sc-focus-price: #ffffff;
  background-color: #051530;
  background-image:
    radial-gradient(ellipse at 80% 14%, rgba(255,255,255,.10), transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(255,255,255,.06), transparent 58%);
}

/* ============ 星空深蓝（starry-blue） ============ */
.tp-starry-blue {
  --sc-accent: #E8C87A; --sc-price: #F0E0B8; --sc-tbl-bg: rgba(8,18,38,.62);
  --sc-th-bg: rgba(15,30,60,.5); --sc-line: rgba(232,200,122,.2);
  --sc-ribbon: #D4AF5A; --sc-hot: rgba(232,200,122,.12); --sc-ph-bg: rgba(255,255,255,.05);
  --sc-top-bg: linear-gradient(90deg, rgba(5,12,28,.95), rgba(12,25,50,.6));
  --sc-ph-label: rgba(255,255,255,.5);color: #f1e6cd;
  color: var(--sc-price);
  --sc-focus-price: #ffffff;
  background-color: #0A1628;
  background-image:
    radial-gradient(ellipse at 80% 14%, rgba(30,90,200,.32), transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(64,158,255,.20), transparent 58%),
    linear-gradient(135deg, #0A1628, #36404f);
}

/* ============ 典雅紫金（elegant-purple） ============ */
.tp-elegant-purple {
  --sc-accent: #D4AF5A; --sc-price: #F0E0B8; --sc-tbl-bg: rgba(35,18,45,.62);
  --sc-th-bg: rgba(50,25,65,.5); --sc-line: rgba(212,175,90,.2);
  --sc-ribbon: #C9A04A; --sc-hot: rgba(212,175,90,.12); --sc-ph-bg: rgba(255,255,255,.05);
  --sc-top-bg: linear-gradient(90deg, rgba(25,12,35,.95), rgba(45,22,55,.6));
  --sc-ph-label: rgba(255,255,255,.5);color: #f1e6cd;
  color: var(--sc-price);
  --sc-focus-price: #ffffff;
  background-color: #2A1535;
  background-image:
    radial-gradient(ellipse at 80% 14%, rgba(140,90,200,.30), transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(212,175,90,.16), transparent 58%),
    linear-gradient(135deg, #2A1535, #503f59);
}

/* ============ 墨韵东方（ink-oriental） ============ */
.tp-ink-oriental {
  --sc-accent: #5d460d; --sc-price: #342a18; --sc-tbl-bg: rgba(255,250,240,.72);
  --sc-th-bg: rgba(240,230,210,.6); --sc-line: rgba(139,105,20,.25);
  --sc-ribbon: #5d4518; --sc-hot: rgba(139,105,20,.1); --sc-ph-bg: rgba(0,0,0,.05);
  --sc-top-bg: linear-gradient(90deg, rgba(250,245,235,.95), rgba(240,230,210,.6));
  --sc-ph-label: #342a18;color: #f1e6cd;
  color: var(--sc-price);
  --sc-focus-price: #342a18;
  background-color: #F5F0E5;
  background-image:
    radial-gradient(ellipse at 80% 14%, rgba(139,115,85,.16), transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(60,50,40,.14), transparent 58%),
    linear-gradient(135deg, #F5F0E5, #f7f3ea);
}

/* ============ 森林暖木（forest-timber） ============ */
.tp-forest-timber {
  --sc-accent: #C89A5A; --sc-price: #E8D0A8; --sc-tbl-bg: rgba(35,22,12,.62);
  --sc-th-bg: rgba(55,35,20,.5); --sc-line: rgba(200,154,90,.2);
  --sc-ribbon: #B8863A; --sc-hot: rgba(200,154,90,.12); --sc-ph-bg: rgba(255,255,255,.05);
  --sc-top-bg: linear-gradient(90deg, rgba(25,15,8,.95), rgba(45,30,15,.6));
  --sc-ph-label: rgba(255,255,255,.5);color: #f1e6cd;
  color: var(--sc-price);
  --sc-focus-price: #ffffff;
  background-color: #2A1A10;
  background-image:
    radial-gradient(ellipse at 80% 14%, rgba(120,160,90,.20), transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(200,154,90,.16), transparent 58%),
    linear-gradient(135deg, #2A1A10, #50433b);
}

/* ── 房型密度分档兜底（2026-11-08 代码审查）────────────────
   data-count 是枚举式规则，≥14 时没有任何一档命中，文字会溢出；
   横屏原本完全没有压缩规则。改用 renderer.js 计算的 data-tier
   做无空洞兜底，横竖屏同时覆盖。 */
.sc-root .sc-table[data-tier="xl"] .sc-th { font-size: 1.9vw; padding: .6vw 1.8vh; }
.sc-root .sc-table[data-tier="xl"] .sc-tr { font-size: 1.8vw; padding: .35vw 1.8vh; }
.sc-root .sc-table[data-tier="xl"] .sc-p  { font-size: 1.9vw; }
.sc-root .sc-table[data-tier="xxl"] .sc-th { font-size: 1.6vw; padding: .4vw 1.5vh; }
.sc-root .sc-table[data-tier="xxl"] .sc-tr { font-size: 1.5vw; padding: .15vw 1.5vh; overflow: hidden; }
.sc-root .sc-table[data-tier="xxl"] .sc-p  { font-size: 1.6vw; }

/* ============================================================
 * 横屏专属版式 v5（2026-11-09，按设计稿统一所有横屏主题）
 *   顶部第一行：Logo + 酒店名【整体居中】，字号放大
 *   顶部第二行：左 = 年月日 星期几 时间（时钟图标）
 *               右 = 城市（定位图标）+ 天气（天气图标）
 *   中部：左侧【单张大图】一张一张显示，上下不要小图
 *         右侧房型价格表【铺满整个区域】，房型与价格同一行
 *   底部：订房热线 → 地址 → 滚动消息，二维码右下角
 *   ⚠️ 这里只作用于 .o-landscape，竖屏 v4 完全不受影响。
 * ============================================================ */
/* ── 顶栏：两行、酒店名居中 ── */
/* 顶栏适当加高（2026-11-15 第二轮：客户要求酒店名区域更舒展、压缩中部） */
.sc-root.o-landscape .sc-top {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 1.2vw; padding: 2.4vw 3vh 1.6vw;
}
.sc-root.o-landscape .sc-hotel {
  justify-content: center; gap: 1.2vh;font-size: calc(3.8vw * 1.55);
  font-size: calc(var(--fs-hotel, 3.8vw) * 1.55);
  letter-spacing: .06em;
  min-height: 7vw;
}
.sc-root.o-landscape .sc-hotel .head-logo {
  height: 6.2vw; width: auto; flex: 0 0 auto; margin-right: 0;
  object-fit: contain; border-radius: .8vw;
}
.sc-root.o-landscape .sc-hotel .hotel-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ── 顶栏第二行：时间居左 / 城市天气居右 ──
   基础规则里 .sc-right 有 flex-direction: column（历史遗留），
   这里必须显式改回 row，否则右侧图标会竖着排三行。 */
.sc-root.o-landscape .sc-meta {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 1.4vh;
  position: relative;   /* 右侧「城市+天气」用绝对定位贴右，见下 */
}
.sc-root.o-landscape .sc-left,
.sc-root.o-landscape .sc-right {
  display: flex; align-items: center; gap: .7vh;
  font-size: 2vw; white-space: nowrap; flex-direction: row;
}
.sc-root.o-landscape .sc-left { flex: 0 1 auto; min-width: 0; overflow: hidden; }
.sc-root.o-landscape .sc-left > span { overflow: hidden; text-overflow: ellipsis; }
/* 地点 + 天气固定在顶栏第二行最右侧。
   ⚠️ 2026-11-15：原来靠 width:max-content + margin-left:auto 推到右边，
   老版本电视 WebView 不认 max-content，右侧组就紧跟在日期时间后面挤在左上角。
   改成相对 .sc-meta 的绝对定位（top/bottom:0 + align-items:center 垂直居中），
   不依赖 flex 分配、不依赖 transform，任何内核都稳定贴右。 */
.sc-root.o-landscape .sc-right {
  position: absolute; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; flex-direction: row;
  /* ⚠️ 2026-11-24：与竖屏同一套收紧 —— .7vw ≈ 半个汉字宽，
     实机照片里「成都」和天气图标之间多出半个字。收到 .24vw。 */
  gap: .24vh; white-space: nowrap;
  width: auto; flex: none; min-width: 0; margin-left: 0;
  font-size: 2vw;
}
/* 左侧日期时间留出右半空间，窄屏也不会和右侧天气叠在一起 */
.sc-root.o-landscape .sc-left { max-width: 58%; }
.sc-root.o-landscape .sc-right .sc-weather {
  display: inline-flex; align-items: center; gap: .32vh; white-space: nowrap;
}
.sc-root.o-landscape .sc-right .sc-city { white-space: nowrap; }
/* 图钉与城市名之间保留一点间距（整体 gap 收紧后由这里补回来） */
.sc-root.o-landscape .sc-right .ic-pin { margin-right: .28vh; }
.sc-root.o-landscape .ic { flex: 0 0 auto; display: inline-block; }
/* ── 中部：左单大图 / 右价格表铺满 ── */
.sc-root.o-landscape .sc-main {
  flex-direction: row; align-items: stretch;
  gap: 2vh; padding: .4vw 3vh .6vw;   /* 中部收紧，把高度让给顶栏与底部 */
}
.sc-root.o-landscape .sc-gallery {
  /* 左图右价，上下齐平。
     ⚠️ 2026-11-15：原来写的是 width:auto + aspect-ratio:1/1 由高度反算宽度，
     但电视自带 WebView（TV Bro 走系统 WebView）版本偏老，不支持 aspect-ratio，
     且内部图片全是 position:absolute → 容器宽度被算成 0，整个图片栏消失、
     价格表铺满全宽。改为显式百分比宽度，所有内核都能算出确定尺寸。 */
  /* 高度靠 align-self:stretch 吃满主区，不写 height:100% ——
     老电视 WebView 里 flex item 的百分比高度解析不稳定，会让内部图片的
     height:100% 一起失效，照片只显示上半截、下面留一大块空框。 */
  width: 42%; flex: 0 0 42%;
  min-width: 26vh;   /* 老内核 flex 收缩异常时也不至于塌成 0 */
  max-width: 48%;    /* 非 16:9 屏幕兜底：别把价格表挤没 */
  display: block; position: relative; align-self: stretch;
  overflow: hidden; border-radius: 1.2vw;
  background: rgba(255,255,255,.07);   /* 图片万一加载失败，框仍可见，便于定位问题 */
  box-shadow: 0 .4vw 1.6vw rgba(0,0,0,.28);
}
.sc-root.o-landscape .sc-ph:not(.sc-ph-mid) { display: none; }
/* 四边显式定位，不用 left:0; top:0; right:0; bottom:0 简写（老 WebView 可能不认，导致 slide 尺寸按内容算） */
.sc-root.o-landscape .sc-ph-mid,
.sc-root.o-landscape .sc-ph-slide {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  border-radius: 1.2vw; overflow: hidden;
}
/* 图片绝对定位填满 slide：不再依赖 img 在文档流里按原始比例撑高，
   老内核下也能整框铺满，不会上面一张图、下面一片空白。 */
.sc-root.o-landscape .sc-ph-slide img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* 「已满房」标签放到图片最上方居中（2026-11-15）。
   原规则用 left:0; top:0; right:0; bottom:0 做全屏遮罩，老电视 WebView 不解析 inset 简写 →
   元素塌成文字大小并落在图片左上角。横屏改为顶部整行容器
   （四边显式定位 + bottom:auto 清掉遮罩）+ text-align:center，
   徽标 inner span 用 inline-block 居中，不依赖 flex / transform / aspect-ratio。 */
.sc-root.o-landscape .sc-ph-sold {
  position: absolute; top: 1.4vw; left: 0; right: 0; bottom: auto;
  width: 100%; height: auto;
  display: block; text-align: center;
  background: none; color: #fff;
  font-size: 2.2vw; z-index: 5; text-shadow: none;
}
/* 全部房型满房时仍遵守「今日满房」大印章去重规则 */
.sc-root.o-landscape.board-full .sc-ph-sold { display: none !important; }
.sc-root.o-landscape .sc-ph-sold > span { vertical-align: top; }
.sc-root.o-landscape .sc-ph-slide { transition: opacity .28s ease, transform .28s ease; }
.sc-root.o-landscape .sc-gallery.pb-sliding .sc-ph-slide { opacity: .25; transform: translateX(-1.5%); }
.sc-root.o-landscape .sc-dots {
  position: absolute; right: 1.4vw; bottom: 1.2vw;
  display: flex; gap: .6vw; z-index: 3;
}
.sc-root.o-landscape .sc-dots i {
  width: .8vw; height: .8vw; border-radius: 50%;
  background: rgba(255,255,255,.5); display: block;
}
.sc-root.o-landscape .sc-dots i.on { background: #fff; width: 2.4vw; border-radius: .4vw; }
/* ⚠️ .sc-price 原本没有 flex:1，右侧表格只按内容宽度收缩，
   设计稿要求「房价表格铺满整个区域」—— 这里补上。 */
.sc-root.o-landscape .sc-price { flex: 1; min-width: 0; display: flex; }
.sc-root.o-landscape .sc-table {
  flex: 1; width: 100%; height: 100%;
  display: flex; flex-direction: column;
}
/* 表头字重：加粗开关由 data-bold 属性控制（见基础 .sc-th 处注释）。
   这里【不写 font-weight】—— 本规则是 (0,3,0)，
   会压过 (0,2,0) 的 .sc-th[data-bold] 规则，开关又失效。 */
.sc-root.o-landscape .sc-th { font-size: 2.4vw; letter-spacing: .06em; }
/* 房型名与价格保持同一行；不覆盖 data-tier 的字号/内边距压缩档
   （那边选择器特异性更高，≥14 房型仍能自动收紧）。 */
.sc-root.o-landscape .sc-tr { flex: 1 1 0; min-height: 0; white-space: nowrap; position: relative; }
.sc-root.o-landscape .sc-tr > span:first-child { flex: 0 0 40%; }
/* 图片轮播焦点行：左侧竖条 + 淡底 + 加粗 */
.sc-root.o-landscape .sc-tr.is-focus {background: rgba(139,115,85,.14); background: var(--sc-focus-bg, rgba(139,115,85,.14)); }
.sc-root.o-landscape .sc-tr.is-focus .sc-name {color: #e0b46a; color: var(--sc-accent); font-weight: 800; }
.sc-root.o-landscape .sc-tr.is-focus::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: .45vw;background: #e0b46a;
  background: var(--sc-accent); border-radius: 0 .4vw .4vw 0;
}
/* ── 底部：热线 / 地址两行，二维码右下，滚动消息独立一行 ── */
.sc-root.o-landscape .sc-foot {
  position: relative; padding: 1.2vw 3vh 2.2vw;
  min-height: 10.5vw;   /* 底部留高：热线/地址在上、通知居中在下，互不挤压 */
  display: flex; flex-direction: column; align-items: stretch; gap: .2vw;
}
.sc-root.o-landscape .sc-contact {
  flex: none; width: 100%; min-width: 0; margin: 0;
  display: flex; align-items: flex-end; gap: 1.2vh;
  padding-right: 9vw;   /* 给右下角二维码留出位置 */
}
.sc-root.o-landscape .ct-lines { flex: 1; min-width: 0; }
.sc-root.o-landscape .ct-line {
  font-size: 1.9vw; line-height: 1.55;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 同竖屏：标签自带「：」，右间距收窄 */
.sc-root.o-landscape .ct-line b { font-weight: 700; margin-right: .3vh; }
.sc-root.o-landscape .ct-line.ct-addr { opacity: .74; }
.sc-root.o-landscape .ct-qr {
  position: absolute; right: 3vh; bottom: .8vw;
  width: 8vw; height: 8vw; margin: 0; flex: none;
  border-radius: .8vw; box-shadow: 0 .3vw 1vw rgba(0,0,0,.2);
}
/* 滚动通知栏：屏幕底端居中（2026-11-15 第三轮修正）。
   老电视 WebView 里 initNotices 的 getBoundingClientRect 测量会失败，
   误判成「文字太长要跑马灯」；而 flex 的 justify-content:center 在这类
   内核上也不生效，两条叠加 → 文字贴在容器左边缘（客户两次反馈偏左）。
   这里彻底绕开 flex 与 JS 测量，改用 CSS2.1 的 block + text-align:center
   + inline 文本流，任何 WebView 都会把文字放在屏幕正中。
   容器用 left/right:0 + width:100% 吃满整行，中心即屏幕中心。 */
.sc-root.o-landscape .sc-notices {
  position: absolute; left: 0; right: 0; bottom: 1vw;
  width: 100%; margin: 0; padding: 0;
  text-align: center; z-index: 25;
}
.sc-root.o-landscape .notice-wrap {
  width: 100%; height: 3.2vw; min-height: 2.2vw;
  margin-bottom: 0; text-align: center;
}
.sc-root.o-landscape .sc-notices .notice-item {
  display: block; width: 100%; text-align: center;
}
.sc-root.o-landscape .sc-notices .notice-scroll {
  display: block !important;   /* 关掉 flex，text-align:center 才作用于文字 */
  width: 100%; text-align: center;
  animation: none !important;
  transform: none !important;  /* 压掉 marquee 的 translateX(-50%) */
}
.sc-root.o-landscape .sc-notices .notice-dup {
  display: inline; padding: 0;  /* 纯文本流，随父级居中 */
}
.sc-root.o-landscape .sc-notices .notice-dup:last-child { display: none !important; }
