/* ============================================================================
 * 巡影织网 · 风景皮肤样式层（skin-scenery.css）—— 2026-10-28
 * ----------------------------------------------------------------------------
 * 只服务 data-theme="scenery" 一款皮肤。分四段：
 *   1. 场景层（.xy-sc）—— 照片双缓冲 + 调色/压暗/颗粒 + 8 种动画原语
 *   2. 内容层适配 —— 让 body/侧栏/顶栏/卡片在照片上「透气」而不是被糊死
 *   3. 风景控制台（.xy-scc）—— 场景 / 时刻 / 氛围 / 更多 四个面板
 *   4. 卡片聚焦（.xy-focus-chip）
 *
 * 🔴 性能纪律：所有动画只用 transform / opacity（GPU 合成），不改 width/height/
 *    filter —— 后者会触发整层重绘，全屏照片上那是灾难。
 * 🔴 层级纪律：.xy-sc 是 z-index:-1 的 fixed 层，pointer-events:none；
 *    负层级子元素会画在 body 背景之上、内容之下 —— 这是唯一不挡交互的做法。
 * ========================================================================== */

/* ==========================================================================
   1. 场景层
   ========================================================================== */
.xy-sc {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #0b1620;
    /* 下面这些变量由 xy-scenery.js 写入，缺省值保证「JS 没跑」时也不崩 */
    --sc-mist: 0.55;
    --sc-glow: 0.5;
    --sc-view: 0.6;
    --sc-speed: 1;
    --sc-dim: 0.42;
    --sc-grain: 0.15;
    --sc-temp: 0;
    --sc-bright: 1;
    --sc-sat: 1;
    --sc-hue: 0;
    --sc-blur: 0px;
}

/* —— 照片层：双缓冲交叉淡入 —— */
.xy-sc__stack {
    position: absolute;
    inset: -5% -5% -5% -5%;
    transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.03);
    transition: transform 900ms cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}
.xy-sc__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    /* 2026-10-27：改成 ease-in-out 并缩短到 820ms —— 照片溶解的观感更"匀"。
       配合 paintScene 的"新层在上、旧层托底"，全程不出现两层各半的中间态。 */
    transition: opacity 820ms cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(var(--sc-bright)) saturate(var(--sc-sat))
            hue-rotate(calc(var(--sc-hue) * 1deg)) blur(var(--sc-blur));
}
.xy-sc__photo.is-on { opacity: 1; }

/* —— 调色/压暗层：上暗下更暗 + 左侧加重（给标题让位） —— */
.xy-sc__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(7, 15, 23, calc(var(--sc-dim) * 1.10)) 0%,
            rgba(7, 15, 23, calc(var(--sc-dim) * 0.08)) 36%,
            rgba(5, 11, 17, calc(var(--sc-dim) * 0.95)) 100%),
        linear-gradient(96deg,
            rgba(5, 11, 17, calc(var(--sc-dim) * 0.70)) 0%,
            rgba(5, 11, 17, calc(var(--sc-dim) * 0.14)) 44%,
            rgba(5, 11, 17, 0) 74%);
}
/* 色温：暖/冷两片薄纱，按 --sc-temp（-1 冷 ~ +1 暖）此消彼长 */
.xy-sc__veil::before,
.xy-sc__veil::after {
    content: "";
    position: absolute;
    inset: 0;
    transition: opacity 600ms ease;
}
.xy-sc__veil::before {
    background: linear-gradient(150deg, rgba(255, 176, 96, 0.20), rgba(255, 140, 60, 0.06));
    opacity: calc((var(--sc-temp) + 1) / 2 * 0.9);
}
.xy-sc__veil::after {
    background: linear-gradient(150deg, rgba(90, 160, 255, 0.18), rgba(120, 200, 220, 0.05));
    opacity: calc((1 - var(--sc-temp)) / 2 * 0.9);
}

/* —— 颗粒：SVG 湍流噪声，比 PNG 贴图小一百倍 —— */
.xy-sc__grain {
    position: absolute;
    inset: 0;
    opacity: var(--sc-grain);
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* —— 光斑跟随：一个径向渐变跟着鼠标，不动任何节点 —— */
.xy-sc__lit {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 500ms ease;
    background: radial-gradient(
        380px 380px at var(--lx, 50%) var(--ly, 40%),
        rgba(255, 244, 214, calc(var(--sc-glow) * 0.24)) 0%,
        rgba(255, 240, 200, calc(var(--sc-glow) * 0.08)) 38%,
        rgba(255, 240, 200, 0) 72%);
    transform: scale(calc(0.82 + var(--sc-glow) * 0.36));
}

/* ==========================================================================
   1.1 动画原语（tf-*）—— 一个场景由若干「类型 × 数量」拼成
   ========================================================================== */
.xy-fx {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
    will-change: transform, opacity;
}

/* —— 雾气：横向缓慢漂移的大椭圆 —— */
.tf-mist {
    background: radial-gradient(60% 40% at 30% 60%, rgba(226, 238, 240, 0.30), rgba(226, 238, 240, 0) 70%);
    opacity: calc(var(--sc-mist) * 0.55 * var(--fa, 1));
    animation: xyScMist calc(70s / var(--sc-speed)) linear infinite;
    animation-delay: calc(var(--i) * -11s);
    transform: translate3d(calc(var(--i) * -8%), calc(var(--i) * 6%), 0) scale(calc(1 + var(--i) * 0.22));
}
@keyframes xyScMist {
    0%   { transform: translate3d(-6%, 0, 0) scale(1.05); }
    50%  { transform: translate3d(6%, -2%, 0) scale(1.12); }
    100% { transform: translate3d(-6%, 0, 0) scale(1.05); }
}

/* —— 雨丝：斜向雨丝 + 纵向遮罩切段（2026-10-30 重写）——
 *
 * 旧实现为什么会出现「大片白色竖条」（真机截图反馈）：
 *   repeating-linear-gradient(102deg, … 周期 9px) 只沿 102° 一个方向重复，
 *   而 background-size: 100% 220px 让它铺满整屏 —— 于是横向上每 9px 就有一条
 *   **贯穿屏幕上下、永不中断**的亮线。再乘上 3~5 层（rainforest / bamboo 的
 *   fx 都是 ['rain',3]），得到的就是一整片等距竖条纹。它读起来不像雨，
 *   像显示器坏了。这也是设计底线里明确点名的一条：条纹纹理底下没有真正的
 *   画布/蓝图语义，就是硬凑。
 *
 * 改法两步，都在同一层上完成，不增加 DOM、不增加绘制层数：
 *   ① 周期 9px → 26px，线宽 1px，亮度 .16 → .10：横向上不再连成一片，
 *      相邻两条之间留出 25px 空白，视觉上才像「一滴一滴」。
 *   ② 用 mask 纵向切成 29~116px 之间的短段，段与段之间留 42px 空隙。
 *      这一步是「柱子 → 雨丝」的关键：一条不断的线不管多细都还是条纹，
 *      只有断开才有长度和间隔，才读得出是在往下落。
 *      遮罩周期 168px 与背景周期 240px 互质，层与层的相位（--i）再错开，
 *      叠起来就不会重新对齐成规则网格。
 *
 * 亮度总量：0.13 × 0.70 ≈ 0.09/层，线数只有原来的 1/3，纵向还被遮掉约 45%，
 * 实际总能量约为原来的 1/6 —— 雨还在，但不再抢前景内容。
 */
.tf-rain {
    background-image: repeating-linear-gradient(102deg,
        rgba(214, 236, 240, 0) 0px,
        rgba(214, 236, 240, 0) 12px,
        rgba(214, 236, 240, 0.13) 12px,
        rgba(214, 236, 240, 0.13) 13px,
        rgba(214, 236, 240, 0) 13px,
        rgba(214, 236, 240, 0) 26px);
    background-size: 100% 240px;
    opacity: calc(0.70 * var(--fa, 1));
    animation: xyScRain calc(1.1s / var(--sc-speed)) linear infinite;
    animation-delay: calc(var(--i) * -0.35s);
    /* 纵向切段：0~29px 空 → 29~116px 实 → 116~168px 空 */
    -webkit-mask-image: repeating-linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 29px,
        rgba(0, 0, 0, 1) 29px,
        rgba(0, 0, 0, 1) 116px,
        rgba(0, 0, 0, 0) 116px,
        rgba(0, 0, 0, 0) 168px);
    mask-image: repeating-linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 29px,
        rgba(0, 0, 0, 1) 29px,
        rgba(0, 0, 0, 1) 116px,
        rgba(0, 0, 0, 0) 116px,
        rgba(0, 0, 0, 0) 168px);
    /* 每层错开遮罩相位：遮罩几何是各层共用的，不错开的话所有雨丝的"起头"
     * 会落在同一排，看起来像横向对齐的格点 —— 又变回规则图案了。
     * 位移量取 37/61 这种与 26/168 都不成整数倍的数，两层叠起来才不共振。 */
    -webkit-mask-position: calc(var(--i) * -37px) calc(var(--i) * -61px);
    mask-position: calc(var(--i) * -37px) calc(var(--i) * -61px);
}
@keyframes xyScRain {
    from { background-position: 0 0; }
    to   { background-position: -80px 240px; }
}

/* —— 飘雪：点阵整体下移 + 轻微横摆 —— */
.tf-snow {
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1.6px 1.6px at 120px 90px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2.4px 2.4px at 210px 40px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.4px 1.4px at 300px 140px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 70px 190px, rgba(255, 255, 255, 0.75), transparent);
    background-size: 360px 260px;
    opacity: calc(0.55 * var(--fa, 1));
    animation: xyScSnow calc(16s / var(--sc-speed)) linear infinite, xyScSway calc(7s / var(--sc-speed)) ease-in-out infinite;
    animation-delay: calc(var(--i) * -3.5s);
}
@keyframes xyScSnow {
    from { background-position: 0 0; }
    to   { background-position: 40px 260px; }
}
@keyframes xyScSway {
    0%, 100% { transform: translate3d(-6px, 0, 0); }
    50%      { transform: translate3d(6px, 0, 0); }
}

/* —— 气泡：小圆点上浮 —— */
.tf-bubble {
    background-image:
        radial-gradient(3px 3px at 40px 200px, rgba(210, 245, 255, 0.55), transparent),
        radial-gradient(2px 2px at 150px 300px, rgba(210, 245, 255, 0.45), transparent),
        radial-gradient(4px 4px at 260px 160px, rgba(210, 245, 255, 0.40), transparent),
        radial-gradient(2px 2px at 330px 380px, rgba(210, 245, 255, 0.5), transparent);
    background-size: 400px 460px;
    opacity: calc(0.50 * var(--fa, 1));
    animation: xyScBubble calc(22s / var(--sc-speed)) linear infinite;
    animation-delay: calc(var(--i) * -6s);
}
@keyframes xyScBubble {
    from { background-position: 0 0; }
    to   { background-position: -30px -460px; }
}

/* —— 光柱（丁达尔）：几束斜向亮带，缓慢呼吸 —— */
.tf-shaft {
    background: linear-gradient(96deg,
        rgba(255, 250, 230, 0) 22%,
        rgba(255, 250, 230, 0.16) 38%,
        rgba(255, 250, 230, 0) 52%,
        rgba(255, 250, 230, 0.11) 62%,
        rgba(255, 250, 230, 0) 78%);
    opacity: calc((0.35 + var(--sc-glow) * 0.5) * var(--fa, 1));
    animation: xyScShaft calc(13s / var(--sc-speed)) ease-in-out infinite;
    animation-delay: calc(var(--i) * -4.4s);
    transform: translate3d(calc(var(--i) * 7%), 0, 0) scale(calc(1 + var(--i) * 0.1));
}
/* 🔴 关键帧里的 opacity 会**整体覆盖**元素上的 opacity，
   所以 --fa 必须在这里也乘一次，否则光柱/星空两层归一完全失效 */
@keyframes xyScShaft {
    0%, 100% { opacity: calc(0.18 * var(--fa, 1)); }
    50%      { opacity: calc((0.28 + var(--sc-glow) * 0.42) * var(--fa, 1)); }
}

/* —— 星空：点阵闪烁 —— */
.tf-star {
    background-image:
        radial-gradient(1.4px 1.4px at 30px 40px, #fff, transparent),
        radial-gradient(1px 1px at 110px 130px, #fff, transparent),
        radial-gradient(1.6px 1.6px at 190px 60px, #fff, transparent),
        radial-gradient(1px 1px at 270px 180px, #fff, transparent),
        radial-gradient(1.2px 1.2px at 60px 220px, #fff, transparent),
        radial-gradient(1px 1px at 320px 30px, #fff, transparent);
    background-size: 380px 280px;
    opacity: calc(0.55 * var(--fa, 1));
    animation: xyScTwinkle calc(6s / var(--sc-speed)) ease-in-out infinite;
    animation-delay: calc(var(--i) * -2.1s);
}
@keyframes xyScTwinkle {
    0%, 100% { opacity: calc(0.22 * var(--fa, 1)); }
    50%      { opacity: calc(0.70 * var(--fa, 1)); }
}

/* —— 水光：横向亮带轻微缩放 —— */
.tf-ripple {
    background: repeating-linear-gradient(180deg,
        rgba(226, 244, 250, 0) 0px,
        rgba(226, 244, 250, 0) 26px,
        rgba(226, 244, 250, 0.10) 28px,
        rgba(226, 244, 250, 0) 32px);
    opacity: calc(0.42 * var(--fa, 1));
    animation: xyScRipple calc(9s / var(--sc-speed)) ease-in-out infinite;
    animation-delay: calc(var(--i) * -3s);
}
@keyframes xyScRipple {
    0%, 100% { transform: translate3d(0, 0, 0) scaleY(1); }
    50%      { transform: translate3d(0, -6px, 0) scaleY(1.06); }
}

/* —— 日晕：大范围呼吸光 —— */
.tf-glow {
    background: radial-gradient(46% 34% at 64% 22%,
        rgba(255, 236, 190, calc(var(--sc-glow) * 0.42)) 0%,
        rgba(255, 226, 170, calc(var(--sc-glow) * 0.16)) 40%,
        rgba(255, 226, 170, 0) 74%);
    /* 🔴 2026-10-28 补基础 opacity：这条规则原来**只靠关键帧给 opacity**，
       一旦动画被停掉（系统"减少动效"或控制台开关 → animation:none），
       计算值就退回 1 —— 日晕变成一整块全亮的白光斑；同时也让 --fa 无从生效。 */
    opacity: calc(0.85 * var(--fa, 1));
    animation: xyScGlow calc(11s / var(--sc-speed)) ease-in-out infinite;
    animation-delay: calc(var(--i) * -4s);
}
@keyframes xyScGlow {
    0%, 100% { opacity: calc(0.55 * var(--fa, 1)); transform: scale(1); }
    50%      { opacity: calc(1 * var(--fa, 1));      transform: scale(1.06); }
}

/* —— 停动：用户系统偏好或控制台「减少动效」 —— */
.xy-sc.is-still .xy-fx,
html[data-xy-sc-idle] .xy-fx {
    animation: none !important;
}
/* 2026-10-30：光停动画不够。
 * 雨/涟漪这类「高频纹理」原本靠位移把规则图案糊成动态效果，一旦定格，
 * 留下的就是一张**规则的静态条纹图**——用户截图里看到的白色竖条，
 * 一半来自这里。静态的雪点/气泡没关系（点阵定格仍像纹理），
 * 但断成段的雨丝定格后依然是一排排平行短线，所以停动时把它整层淡出，
 * 让背景图本身成为静止画面 —— 这才是「减少动效」该有的样子。 */
.xy-sc.is-still .tf-rain,
html[data-xy-sc-idle] .tf-rain {
    opacity: 0;
    transition: opacity 480ms ease;
}
/* 浮尘开关由 xy-particles.js 的 canvas 承担，这里只关掉它 */
.xy-sc.is-nodust ~ canvas { display: none; }

/* ==========================================================================
   1.2 地标标注（.xy-pin）
   ========================================================================== */
.xy-sc__pins {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 1;
    transition: opacity 400ms ease;
}
.xy-sc__pins.is-off { opacity: 0; }
.xy-sc__pins.is-off { display: none; }

.xy-pin {
    position: absolute;
    display: block;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    /* 🔴 这里是 span 不是 button：.xy-sc 整个层是 z-index:-1 + pointer-events:none，
       放在里面的任何控件都收不到点击（会被 .app-shell 挡住）。
       所以背景里只做「标记点」，可点的入口在控制台的「地标」列表里。 */
    pointer-events: none;
    z-index: 2;
}
.xy-pin__dot {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.36);
    animation: xyPinPulse 3.4s ease-out infinite;
    transition: transform 200ms ease, background 200ms ease;
}
@keyframes xyPinPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.34); }
    70%  { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.xy-pin.is-on .xy-pin__dot {
    transform: scale(1.22);
    background: rgba(255, 255, 255, 0.50);
    border-color: #fff;
}

/* 2026-10-28 新增：常驻地名标签。
   之前背景里只有 26px 圆点，不打开控制台就不知道是哪儿。
   底衬必须给 —— 底图是照片，纯白字在雪原/云海这种亮画面上直接消失。
   rgba(8,14,12,.62) 压上去后合成背景 ≈ #61，白字实测对比度 5.6:1（≥4.5 合格）。 */
.xy-pin__tag {
    position: absolute;
    left: 21px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    padding: 4px 8px 5px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(8, 14, 12, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
/* 靠右的地标把标签翻到圆点左侧（JS 按 x>68% 打 is-left） */
.xy-pin.is-left .xy-pin__tag {
    left: auto;
    right: 21px;
}
/* 选中态：标签反白，和亮起的圆点呼应；同时把说明卡也翻到左侧 */
.xy-pin.is-on .xy-pin__tag {
    background: rgba(255, 255, 255, 0.93);
    color: #10160f;
    border-color: transparent;
    text-shadow: none;
}
.xy-pin.is-left .xy-pin__card {
    left: auto;
    right: 34px;
    text-align: right;
}

.xy-pin__card {
    position: absolute;
    left: 34px;
    top: -8px;
    width: 216px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #f2f6f4;
    background: rgba(10, 22, 30, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
    white-space: normal;
    text-align: left;
}
.xy-pin__card b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #fff;
    font-family: var(--font-display);
    letter-spacing: 0.3px;
}
.xy-pin.is-on .xy-pin__card {
    opacity: 1;
    transform: translateY(0);
}
/* 右侧的钉：卡片翻到左边，避免被视口裁掉 */
.xy-pin[style*="left:7"],
.xy-pin[style*="left:8"],
.xy-pin[style*="left:9"] {
    /* 数值型左偏移落在 70%~99% 时卡片朝左展开 */
}
.xy-pin--flip .xy-pin__card,
.xy-pin[style*="left:70"] .xy-pin__card,
.xy-pin[style*="left:76"] .xy-pin__card,
.xy-pin[style*="left:78"] .xy-pin__card,
.xy-pin[style*="left:80"] .xy-pin__card,
.xy-pin[style*="left:82"] .xy-pin__card,
.xy-pin[style*="left:84"] .xy-pin__card,
.xy-pin[style*="left:86"] .xy-pin__card,
.xy-pin[style*="left:88"] .xy-pin__card,
.xy-pin[style*="left:90"] .xy-pin__card {
    left: auto;
    right: 34px;
    text-align: right;
}

/* ==========================================================================
   1.3 点击涟漪（.xy-rip）
   ========================================================================== */
.xy-sc__rip {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.xy-rip {
    position: absolute;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    animation: xyRip 1800ms cubic-bezier(.16, .68, .36, 1) forwards;
}
.xy-rip:nth-child(2n) { animation-duration: 2200ms; border-color: rgba(200, 240, 235, 0.45); }
@keyframes xyRip {
    from { transform: scale(1);   opacity: 0.85; }
    to   { transform: scale(34);  opacity: 0; }
}

/* ==========================================================================
   2. 内容层适配
   ========================================================================== */
html[data-theme="scenery"] body {
    /* body 背景留着当"照片没加载出来"的兜底色；照片层是 z-index:-1 的
       fixed 子元素，会画在 body 背景之上、内容之下 */
    background: #0b1620;
}
html[data-theme="scenery"] body::before,
html[data-theme="scenery"] body::after {
    display: none;          /* 关掉 neon 的网格与辉光底 */
}
html[data-theme="scenery"] .app-shell,
html[data-theme="scenery"] .app-main {
    background: transparent;
}

/* 侧栏：半透明玻璃，越往下越透，让风景从底下透出来 */
html[data-theme="scenery"] .sidebar {
    background: linear-gradient(180deg,
        rgba(9, 20, 28, 0.90) 0%,
        rgba(9, 20, 28, 0.72) 46%,
        rgba(9, 20, 28, 0.52) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    box-shadow: none;
}
html[data-theme="scenery"] .topbar {
    background: linear-gradient(180deg, rgba(9, 20, 28, 0.86), rgba(9, 20, 28, 0.58));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    box-shadow: none;
}
html[data-theme="scenery"] header {
    background: linear-gradient(180deg, rgba(9, 20, 28, 0.86), rgba(9, 20, 28, 0.58));
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

/* 卡片：宣纸感玻璃 —— 半透明底 + 极淡边 + 内高光，不做彩色投影 */
html[data-theme="scenery"] .card,
html[data-theme="scenery"] .stat-card,
html[data-theme="scenery"] .chart-card,
html[data-theme="scenery"] .analysis-card,
html[data-theme="scenery"] .panel,
html[data-theme="scenery"] .settings-section {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 38, 48, 0.62), rgba(14, 28, 38, 0.52));
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-card);
    box-shadow: 0 18px 46px rgba(3, 10, 16, 0.42),
                inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    transition: transform 260ms cubic-bezier(.22, .61, .36, 1),
                box-shadow 260ms ease, border-color 260ms ease, opacity 260ms ease;
}
html[data-theme="scenery"] .card:hover,
html[data-theme="scenery"] .stat-card:hover,
html[data-theme="scenery"] .chart-card:hover,
html[data-theme="scenery"] .analysis-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: 0 26px 58px rgba(3, 10, 16, 0.50),
                inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* 标题：衬线 + 双细线，像画卷题签，不是发光的横条 */
html[data-theme="scenery"] .page-header h1,
html[data-theme="scenery"] .page-title {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-left: 0;
    color: #f6f2e9;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}
html[data-theme="scenery"] .page-title::before,
html[data-theme="scenery"] .page-header h1::before {
    display: none;          /* 去掉左侧品牌竖条 */
}
html[data-theme="scenery"] .page-title::after,
html[data-theme="scenery"] .page-header h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    margin-top: 10px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
    box-shadow: 0 3px 0 -2px rgba(255, 255, 255, 0.28);
}
html[data-theme="scenery"] .section-title,
html[data-theme="scenery"] .card-header h3,
html[data-theme="scenery"] .chart-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #f2efe6;
}

/* 表格：去网格线，只留水平细线，斑马纹压到几乎看不见 */
html[data-theme="scenery"] .data-table {
    border-collapse: separate;
    border-spacing: 0;
}
html[data-theme="scenery"] .data-table th {
    background: rgba(255, 255, 255, 0.045);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(240, 246, 244, 0.86);
    font-family: var(--font-ui);
    font-weight: 600;
    letter-spacing: 0.02em;
}
html[data-theme="scenery"] .data-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
html[data-theme="scenery"] .data-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.022);
}
html[data-theme="scenery"] .data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.06);
}

/* 按钮：柔和渐变 + 12px 圆角，不做切角也不做胶囊 */
html[data-theme="scenery"] .btn,
html[data-theme="scenery"] .xy-btn,
html[data-theme="scenery"] .filter-btn {
    border-radius: var(--radius-btn);
    font-family: var(--font-ui);
    font-weight: 600;
    letter-spacing: 0.01em;
}
html[data-theme="scenery"] .btn:hover,
html[data-theme="scenery"] .xy-btn:hover {
    transform: translateY(-1px);
}
html[data-theme="scenery"] input,
html[data-theme="scenery"] select,
html[data-theme="scenery"] textarea {
    border-radius: var(--radius-input);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f2efe6;
}
html[data-theme="scenery"] input:focus,
html[data-theme="scenery"] select:focus,
html[data-theme="scenery"] textarea:focus {
    border-color: rgba(127, 208, 184, 0.62);
    box-shadow: 0 0 0 3px rgba(127, 208, 184, 0.14);
}

/* 侧栏导航：hover 是一条从左淡入的纸色底，不是整块荧光 */
html[data-theme="scenery"] .sidebar-link {
    border-radius: 10px;
    color: rgba(238, 244, 241, 0.76);
}
html[data-theme="scenery"] .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}
html[data-theme="scenery"] .sidebar-link.active {
    background: linear-gradient(90deg, rgba(127, 208, 184, 0.20), rgba(127, 208, 184, 0.03));
    color: #fff;
    box-shadow: inset 1px 0 0 rgba(127, 208, 184, 0.85);
}

/* 顶栏皮肤圆点：亮色描边，压在照片上也看得清 */
html[data-theme="scenery"] .xy-theme-quick {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

/* 徽标：全部改成纸白 + 低透明，不用彩色块 */
html[data-theme="scenery"] .badge,
html[data-theme="scenery"] .xy-badge {
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ==========================================================================
   3. 风景控制台（.xy-scc）
   ========================================================================== */
.xy-scc {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
    width: 340px;
    /* 🔴 顶栏高度不是常量（60~82px，随宽度/皮肤/字号变）。原来写死 -96px，
       ≥1800 宽实测顶栏底边 81.4px、面板顶边 78px → 圆角啃进顶栏 3.4px。
       变量由 xy-scenery.js 的 syncTopInset() 按真实顶栏底边 +8px 写入；
       兜底的 86px 只为"JS 还没跑到"的那一帧不闪。 */
    max-height: calc(100vh - var(--xy-scc-top, 86px) - 18px);
    display: flex;
    flex-direction: column;
    font-family: var(--font-ui);
    color: #eef4f1;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(12, 24, 32, 0.86), rgba(10, 20, 28, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 26px 64px rgba(2, 8, 14, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(1.25);
    -webkit-backdrop-filter: blur(24px) saturate(1.25);
    overflow: hidden;
    transition: width 260ms ease, transform 260ms ease;
}
/* 收起态：只剩一枚竖排小把手 */
.xy-scc.is-shut {
    width: 56px;
}
.xy-scc.is-shut .xy-scc__panel,
.xy-scc.is-shut .xy-scc__meta {
    display: none;
}

.xy-scc__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.xy-scc.is-shut .xy-scc__bar { border-bottom: none; padding: 10px 6px; }
/* 🔴 2026-10-28 修：收起态只有 56px 宽（窄屏 52px），原来「三根横杠 + 风景」
   横排 flex 一共要约 60px，文字被压到看不清。改成竖排：只留「风景」两字
   从上往下读，横杠隐去，宽度富余且一眼知道点它展开。 */
.xy-scc.is-shut .xy-scc__grip {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px;
}
.xy-scc.is-shut .xy-scc__bars { display: none; }
.xy-scc.is-shut .xy-scc__grip em {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 3px;
    font-size: 12.5px;
    line-height: 1;
}

.xy-scc__grip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
}
.xy-scc__grip:hover { background: rgba(255, 255, 255, 0.12); }
.xy-scc__grip em { font-style: normal; }
.xy-scc__bars { display: inline-flex; flex-direction: column; gap: 3px; }
.xy-scc__bars i {
    display: block;
    width: 14px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    opacity: 0.85;
}
.xy-scc__meta {
    margin-left: auto;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: rgba(238, 244, 241, 0.56);
    font-family: var(--font-display);
}

.xy-scc__panel {
    padding: 10px 12px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}
.xy-scc__panel::-webkit-scrollbar { width: 6px; }
.xy-scc__panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
}

/* —— 四个页签 —— */
.xy-scc__tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 3px;
    margin-bottom: 10px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.055);
}
.xy-scc__tabs button {
    padding: 7px 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(238, 244, 241, 0.66);
    font: inherit;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}
.xy-scc__tabs button:hover { color: #fff; }
.xy-scc__tabs button.is-on {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.xy-scc__pane { display: none; }
.xy-scc__pane.is-on { display: block; animation: xySccIn 200ms ease both; }
@keyframes xySccIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

.xy-scc__label {
    margin: 12px 0 7px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(238, 244, 241, 0.48);
}
.xy-scc__label:first-child { margin-top: 2px; }

/* —— 场景卡网格 —— */
.xy-scc__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}
.xy-scene-card {
    position: relative;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.xy-scene-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.28);
}
.xy-scene-card.is-on {
    border-color: rgba(127, 208, 184, 0.86);
    box-shadow: 0 0 0 1px rgba(127, 208, 184, 0.55), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.xy-scene-card__thumb {
    display: block;
    height: 46px;
    background-size: cover;
    background-position: center;
    filter: brightness(0.92);
}
.xy-scene-card.is-on .xy-scene-card__thumb { filter: brightness(1.06); }
.xy-scene-card__name {
    display: block;
    padding: 5px 6px 0;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xy-scene-card__en {
    display: block;
    padding: 0 6px 6px;
    font-size: 9.5px;
    letter-spacing: 0.04em;
    color: rgba(238, 244, 241, 0.42);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-display);
}

/* —— 行内按钮 / 小胶囊 —— */
.xy-scc__row {
    display: flex;
    gap: 7px;
    margin-top: 9px;
}
.xy-scc__btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: #eef4f1;
    font: inherit;
    font-size: 12px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.xy-scc__btn:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.xy-scc__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.xy-scchip {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: transparent;
    color: rgba(238, 244, 241, 0.74);
    font: inherit;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 180ms ease;
}
.xy-scchip:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.08);
}
.xy-scchip.is-on {
    background: rgba(127, 208, 184, 0.20);
    border-color: rgba(127, 208, 184, 0.66);
    color: #eafff7;
}

/* —— 滑块 —— */
.xy-scc__rangerow { margin-top: 9px; }
.xy-scc__rangerow label {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: rgba(238, 244, 241, 0.66);
    margin-bottom: 4px;
}
.xy-scc__rangerow output {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
    color: rgba(238, 244, 241, 0.92);
}
/* 轮播间隔的依赖提示（自动轮播未开时显示，开了收掉）。
   🔴 用固定 alpha 而不是 opacity：opacity 会把文字往面板底色里混，
   在深底上看着"脏"。
   对比度按最坏情况算（面板底 rgba(12,24,32,.86) 叠在**纯白照片**上）：
   文字 rgba(238,244,241,.72) → 有效 #b8bfbe 对底 #2e383f ≈ 6.2:1，过 AA。 */
.xy-scc__hint {
    margin: 7px 0 0;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: rgba(238, 244, 241, 0.72);
}
.xy-scc__hint.is-off { display: none; }
.xy-scc__rangerow input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(127, 208, 184, 0.72), rgba(255, 255, 255, 0.16));
    outline: none;
    cursor: pointer;
    border: 0;
    padding: 0;
}
.xy-scc__rangerow input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #eef4f1;
    border: 2px solid rgba(10, 22, 30, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}
.xy-scc__rangerow input[type="range"]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #eef4f1;
    border: 2px solid rgba(10, 22, 30, 0.9);
    cursor: pointer;
}

/* —— 开关 —— */
.xy-scsw {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 7px 2px;
    border: 0;
    background: none;
    color: rgba(238, 244, 241, 0.80);
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
    text-align: left;
}
.xy-scsw:hover { color: #fff; }
.xy-scsw__track {
    position: relative;
    flex: 0 0 auto;
    width: 34px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    transition: background 200ms ease;
}
.xy-scsw__track i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    transition: transform 200ms cubic-bezier(.32, .72, 0, 1), background 200ms ease;
}
.xy-scsw[aria-pressed="true"] .xy-scsw__track {
    background: rgba(127, 208, 184, 0.62);
}
.xy-scsw[aria-pressed="true"] .xy-scsw__track i {
    transform: translateX(16px);
    background: #fff;
}
.xy-scsw__name { flex: 1 1 auto; }

.xy-scc__note,
.xy-scc__poem {
    margin: 9px 0 0;
    font-size: 11.5px;
    line-height: 1.66;
    color: rgba(238, 244, 241, 0.52);
    font-family: var(--font-display);
    letter-spacing: 0.04em;
}
.xy-scc__poem {
    font-size: 12.5px;
    color: rgba(238, 244, 241, 0.72);
    border-left: 1.5px solid rgba(127, 208, 184, 0.42);
    padding-left: 9px;
}
.xy-scc__clip {
    position: fixed;
    left: -9999px;
    top: 0;
    opacity: 0;
}

/* 导入配置：与「复制配置」成对，粘贴 JSON 后点应用。
   🔴 2026-10-28 补：原来只有复制没有导入，这套参数只能"给人看"不能"换机恢复"。 */
.xy-scc__import {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 6px 0 8px;
    padding: 8px 10px;
    min-height: 58px;
    resize: vertical;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #eef4f1;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    outline: none;
}
.xy-scc__import::placeholder { color: rgba(238, 244, 241, 0.42); }
.xy-scc__import:focus-visible {
    border-color: rgba(127, 208, 184, 0.62);
    box-shadow: 0 0 0 2px rgba(127, 208, 184, 0.18);
}

/* 窄屏：控制台缩成半宽、可折叠 */
@media (max-width: 900px) {
    .xy-scc {
        width: min(88vw, 340px);
        right: 10px;
        bottom: 10px;
        max-height: 62vh;
    }
    .xy-scc.is-shut { width: 52px; }
    .xy-scc__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .xy-scc { width: min(92vw, 320px); }
    .xy-scc__panel { max-height: 52vh; }
}

/* ==========================================================================
   4. 卡片聚焦
   ========================================================================== */
/* 控制台展开时，主内容整体左让 —— 否则表格最右列会被面板压住。
   由 xy-scenery.js 在 <html> 上打 .xy-sc-scc-on，收起或切皮肤即摘掉。 */
@media (min-width: 1800px) {
    html.xy-sc-scc-on .app-main {
        padding-right: 372px;
        transition: padding-right 260ms ease;
    }
    /* 🔴 2026-10-28 修（用户反馈「打开右侧菜单以后，顶部导航栏右上角会缺一块」）：
       .topbar 是 .app-main 的子元素，上一条 padding-right 会把顶栏的**背景**
       一起缩掉 372px（实测顶栏右端停在 1896-372=1524，屏幕右沿还空着 372px），
       上面那一整条就少了一截，看着像被啃掉。
       这里给顶栏补回等宽的负外边距让它铺到屏幕右沿，同时把 padding-right 加上
       同样的 372px，让栏内右侧控件（站点选择器/用户）位置**保持不变**：
       改前内容右沿 = 1524-20；改后 = 1896-(20+372)，两者相等。 */
    html.xy-sc-scc-on .topbar {
        margin-right: -372px;
        padding-right: calc(20px + 372px);
    }
}

.xy-focus-chip {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(10, 22, 30, 0.42);
    cursor: pointer;
    opacity: 0;
    transition: opacity 200ms ease, transform 200ms ease, border-color 200ms ease;
    z-index: 3;
}
.xy-focus-chip span {
    position: absolute;
    inset: 6px;
    border: 1.4px solid rgba(255, 255, 255, 0.78);
    border-radius: 2px;
}
.xy-focus-chip:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.44);
}
.card:hover > .xy-focus-chip,
.stat-card:hover > .xy-focus-chip,
.chart-card:hover > .xy-focus-chip,
.analysis-card:hover > .xy-focus-chip,
.xy-focus-chip:focus-visible,
.is-focus > .xy-focus-chip {
    opacity: 1;
}
.is-focus {
    outline: 1px solid rgba(127, 208, 184, 0.6);
    outline-offset: 3px;
}
.is-focus > .xy-focus-chip {
    background: rgba(127, 208, 184, 0.34);
    border-color: rgba(127, 208, 184, 0.86);
}
/* 聚焦态：其余卡片与风景一起退下去 */
body.xy-focus-on .xy-sc { opacity: 0.32; }
body.xy-focus-on .card:not(.is-focus),
body.xy-focus-on .stat-card:not(.is-focus),
body.xy-focus-on .chart-card:not(.is-focus),
body.xy-focus-on .analysis-card:not(.is-focus) {
    opacity: 0.32;
    filter: saturate(0.7);
}
.xy-sc { transition: opacity 320ms ease; }

/* ==========================================================================
   5. 画幅（控制台「画幅」四档）与场景筛选
   --------------------------------------------------------------------------
   2026-10-28 重做：
     原来四档只改 background-position（18% / center / 82%），而照片本身是
     background-size: cover 通铺 —— 只平移了几十像素，用户的原话就是
     「画幅下的各种选项区别不大」。这不算 bug，是设计选错了变量。
     现在 cover 之外三档改成「高度铺满、宽度按比例」（auto 100%），
     图不再通铺，留白侧是真的空出一条（露出 .xy-sc 的 #0b1620 画框底色），
     四档一眼可辨，而且"左留白/右留白"的语义也顺过来了（留白在哪边，图就往另一边靠）。
     仍然只动 background-*，不动 transform，不和视差打架。
   ========================================================================== */
.xy-sc[data-frame="center"] .xy-sc__photo,
.xy-sc[data-frame="left"]   .xy-sc__photo,
.xy-sc[data-frame="right"]  .xy-sc__photo {
    background-size: auto 100%;
}
.xy-sc[data-frame="center"] .xy-sc__photo { background-position: center center; }
.xy-sc[data-frame="left"]   .xy-sc__photo { background-position: right center; }  /* 左留白：图贴右 */
.xy-sc[data-frame="right"]  .xy-sc__photo { background-position: left center; }   /* 右留白：图贴左 */
.xy-sc[data-frame="left"]   .xy-sc__veil,
.xy-sc[data-frame="right"]  .xy-sc__veil { opacity: 1; }

/* 标签筛选：被筛掉的场景卡直接不占格 */
.xy-scene-card.is-hidden { display: none; }

/* ==========================================================================
   6. 控制台「地标」列表（唯一可点的地标入口）
   ========================================================================== */
.xy-scc__pinlist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.xy-scc__pinbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(238, 244, 241, 0.76);
    font: inherit;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 170ms ease;
}
.xy-scc__pinbtn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.26);
}
.xy-scc__pinbtn.is-on {
    background: rgba(127, 208, 184, 0.18);
    border-color: rgba(127, 208, 184, 0.62);
    color: #eafff7;
}
.xy-scc__pindot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.10);
}
.xy-scc__pinbtn.is-on .xy-scc__pindot {
    background: #7fd0b8;
    box-shadow: 0 0 0 3px rgba(127, 208, 184, 0.26);
}

/* ==========================================================================
   7. 统计卡在风景皮肤下的排版校正
   —— 原因：.stat-value 用 --font-mono（等宽），等宽数字比原皮肤的比例数字宽，
      52px 下 "3,942" 会顶出卡片。这里压字号 + 收字距，并把零偏移的文字辉光去掉
      （craft-floor：零偏移 text-shadow 就是主动糊字）。
   ========================================================================== */
html[data-theme="scenery"] .stat-value {
    font-size: 36px;
    letter-spacing: -0.02em;
    text-shadow: none;
    color: #f4f1e8;
    margin-bottom: 8px;
}
html[data-theme="scenery"] .stat-content { min-width: 0; overflow: hidden; }
html[data-theme="scenery"] .stat-label {
    text-transform: none;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 12.5px;
}
html[data-theme="scenery"] .stat-card .stat-arrow { opacity: .34; flex: 0 0 auto; margin-left: 6px; }
