/*
 * 第一期视觉与定位维护说明
 * 日常换期先在 index.html 替换图片地址与 .artwork 坐标，交互入口由 js/js.js 读取。
 * 本文件规定长卷坐标、热点点击区和共用弹窗局部坐标；不要为每条 CMS 内容复制整套弹窗样式。
 * 各期高度统一720，卷宽由sceneCanvas的data-design-width交给共用JS读取并写成--design-width。
 * 未配置时回退10200宽，兼容贵州旧页；江西新版5700宽仅在自己的HTML配置，不更改其他期数。
 * 更换卷宽或切片方案时，同步HTML分片尺寸/left与热点定位；不要在公共CSS里写死某一期的新宽度。
 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: #fff7e8; }
ul, li { list-style: none; }
button { border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #ff9c00; outline-offset: 4px; }
img { display: block; max-width: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; pointer-events: none; }
/*
 * 语言显示约定：JS 只切换 body 的 tl 属性；图片里的文字已在切图中完成，不在 CSS/JS 中转字。
 * 成对素材分别用 img-jian / img-fan，共用图片不加这两个类；hidden 用于整体关闭共用弹窗。
 */
[hidden], .this-lan[tl="this-jian"] .img-fan, .this-lan[tl="this-fan"] .img-jian { display: none !important; }

/*
 * 长卷统一坐标系：stage 是可旋转视口，panorama 负责横向位移，scene-canvas 负责等比缩放。
 * 所有图片和热点仍使用 PSD 原始像素填写位置，不能各自再按屏幕尺寸换算一次。
 * --scene-scale / --modal-scale 由 JS 布局函数更新；手机竖屏旋转与桌面居中也由 JS 统一处理。
 */
.wrap-box-con-wrap { position: fixed; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; --scene-scale: 1; --modal-scale: 1; }
.wrap-box { position: relative; width: 100%; height: 100%; overflow: hidden; touch-action: none; cursor: grab; }
.wrap-box.is-dragging { cursor: grabbing; }
.wrap-box-con { position: relative; height: 100%; will-change: transform; }
.scene-canvas { position: relative; width: var(--design-width, 10200px); height: 720px; transform-origin: 0 0; }
.bg-wrap, .con-list { position: absolute; inset: 0; width: var(--design-width, 10200px); height: 720px; }
/*
 * 背景分片默认1700×720，供贵州六片旧结构使用；江西新版在每个.bg-panel的HTML内联width:1425px。
 * 内部图片填满当前panel，真实宽度由父panel控制，不能再把img锁死1700px，否则新版会被拉伸。
 * 新切片需同时填写panel的width/left和img的width/height属性，确保总宽与data-design-width一致。
 * 简繁两张图在同一panel内尺寸一致、相邻片无重叠/空隙，父画布负责统一缩放。
 */
.bg-panel { position: absolute; top: 0; width: 1700px; height: 720px; }
.bg-panel img { position: absolute; inset: 0; width: 100%; height: 100%; }
/*
 * 旧版/其它期可选封面兼容层：只覆盖长卷前1280px，不拉伸、不移动后续内容。
 * 江西5700宽新版已移除封面节点，本段样式不参与其人物首屏；其它页仍可配置GIF/JPG。
 * 原底图保留作封面加载失败的回退；右侧 224px 从封面渐变过渡到原静态飘带。
 * 图片由 Loading 完成后挂载，和整张长卷一起缩放、拖动；不独占舞台或拦截手势。
 */
.cover-animation { position: absolute; left: 0; top: 0; z-index: 1; width: 1280px; height: 720px; pointer-events: none; -webkit-mask-image: linear-gradient(to right, #000 0%, #000 82.5%, transparent 100%); mask-image: linear-gradient(to right, #000 0%, #000 82.5%, transparent 100%); }
.cover-animation img { width: 1280px; height: 720px; }
/*
 * 前景与热点：.artwork 的具体 left/top/width/height 写在 HTML，按切图在 PSD 中的坐标填写。
 * 图片只负责显示，弹窗交互用button，返回总页等跳转用a；button保留list-icon/list-videos等识别类。
 * 内容层本身不拦截拖动，button和a单独恢复点击，不给整个.con-list增加大面积点击遮罩。
 * 链接支持直接a.artwork（自身内联设计坐标/尺寸）或.artwork内嵌a（填满外层），两者都不参与拖拽。
 */
.con-list { z-index: 2; pointer-events: none; }
.artwork { position: absolute; }
.artwork > img, .artwork button > img, .artwork a > img { width: 100%; height: 100%; }
.artwork button { display: block; width: 100%; height: 100%; pointer-events: auto; touch-action: manipulation; }
.con-list a { pointer-events: auto; touch-action: manipulation; }
.con-list > a.artwork { display: block; }
.artwork a { display: block; width: 100%; height: 100%; pointer-events: auto; touch-action: manipulation; }
/* 照片已在背景中，透明按钮只接收点击；多边形沿照片白框设置，键盘聚焦时轻微着色提示。 */
.video-photo-trigger:focus-visible { background: rgba(255,156,0,.16); }
/*
 * 简介点击引导：原切图保持不变，图片本身做双拍缩放，两圈波纹从图片外缘向外扩散。
 * 周期为 1.8 秒，图片最大放大到 1.16 倍，波纹最大到 1.9 倍；下一期可在下方关键帧统一调整。
 * 波纹不能放在原图内部，否则会被原图的白色/橙色实心圆遮住；它们只展示，不拦截点击。
 * 点击热区和长卷定位仍由外层 .artwork 决定，动画不参与位置计算。
 */
.list-icon { position: relative; border-radius: 50%; isolation: isolate; }
.list-icon > img { position: relative; z-index: 1; transform-origin: center; animation: story-button-beat 1.8s ease-in-out infinite; will-change: transform; }
.list-icon::before, .list-icon::after { content: ""; position: absolute; inset: 2px; z-index: 0; border: 4px solid #ff9c00; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.95), 0 0 18px rgba(255,156,0,.55); opacity: 0; animation: story-button-wave 1.8s ease-out infinite; pointer-events: none; }
.list-icon::after { animation-delay: -.9s; }
@keyframes story-button-beat { 0%, 62%, 100% { transform: scale(1); } 16% { transform: scale(1.16); } 30% { transform: scale(1.02); } 44% { transform: scale(1.1); } }
@keyframes story-button-wave { 0% { transform: scale(.94); opacity: 0; } 12% { opacity: .95; } 70% { opacity: .28; } 100% { transform: scale(1.9); opacity: 0; } }

/*
 * 简繁钮：默认相对 stage 右下角定位，供 index.html / index-static.html 预览入口使用。
 * IMP 的开关改为首屏内定位，见下方 --first-screen 专用样式。
 * 简/繁字样及选中态都在图片中；两枚透明按钮各覆盖一半，data-language 决定实际语言。
 * 如换按钮切图比例，须同步整体宽高和两半点击区，不能只更换视觉图片而保留错误热区。
 */
.language-switch { position: absolute; z-index: 40; right: calc(37px * var(--scene-scale)); bottom: calc(34px * var(--scene-scale)); width: calc(171px * var(--scene-scale)); height: calc(71px * var(--scene-scale)); }
.language-switch > img { width: 100%; height: 100%; }
.language-switch button { position: absolute; top: 50%; transform: translateY(-50%); width: 50%; height: 100%; min-height: 44px; border-radius: 999px; touch-action: manipulation; }
.language-switch .btn-jian { left: 0; }
.language-switch .btn-fan { right: 0; }
/*
 * IMP 首屏开关：节点在 sceneCanvas 中，随首屏移动，父层已完成等比缩放。
 * JS 写入的 --first-screen-width 是当前可见首屏的设计宽度；208 = 右边距37 + 按钮宽171。
 * 因此首屏右/下边距仍为37/34设计像素，不能继续套用默认样式中的二次缩放。
 * 透明按钮最小点击高度仍保留实际44px；图片本身始终保持171×71的设计比例。
 */
.language-switch--first-screen { left: calc(var(--first-screen-width, 1280px) - 208px); right: auto; bottom: 34px; width: 171px; height: 71px; }
.language-switch--first-screen button { min-height: calc(44px / var(--scene-scale)); }

/*
 * 共用弹窗各只有一份：入口条目只提供内容地址，固定 id 的 mask/dialog/player 不放入 CMS 循环。
 * 两种弹窗都在 stage 内，随舞台统一旋转；不得再次对弹窗设置手机旋转变换。
 * 简介框以下数值是框内局部坐标，和长卷中人物/视频按钮的全局坐标无关。
 */
.info-mask, .vmask { position: absolute; inset: 0; z-index: 100; width: 100%; height: 100%; }
.info-mask { background: rgba(65, 31, 12, .2); }
.info-dialog { position: absolute; left: 50%; top: 50%; width: 1004px; height: 624px; transform-origin: center; }
.popup-frame { position: absolute; left: -6px; top: -6px; width: 1016px; height: 594px; }
/*
 * 简介正文区域仅放图片：入口数据由 JS 点击后生成 img，不在这里写每一期的文字或图片高度。
 * 当前正文宽 894px、高度自适应；更长的新简介沿同宽导出长图即可，滚动范围由自然高度决定。
 * 要改正文栏宽，需同步图片导出宽度、info-scroll/其 img 的宽度及框内位置，并检查右侧轨道。
 */
.info-scroll { position: absolute; left: 61px; top: 43px; width: 894px; height: 456px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; touch-action: none; cursor: grab; -webkit-mask-image: linear-gradient(#000 0%, #000 88%, transparent 100%); mask-image: linear-gradient(#000 0%, #000 88%, transparent 100%); }
.info-scroll::-webkit-scrollbar { display: none; }
/* JS 检测距末尾不超过 2px 时加 is-at-end，移除底部渐隐，确保最后一行不会永久被遮住。 */
.info-scroll.is-at-end { -webkit-mask-image: none; mask-image: none; }
.info-scroll img { width: 894px; height: auto; }
/* 轨道/滑块只显示阅读进度；高度与位置由 JS 按正文实际高度更新，正文滚动靠拖动/滚轮/键盘。 */
.info-track { position: absolute; left: 960px; top: 41px; width: 15px; height: 462px; border-radius: 10px; background: #ffb58a; pointer-events: none; }
.info-thumb { position: absolute; top: 0; left: 0; width: 15px; border-radius: 10px; background: #ff7956; }
.list-btn-close-wins { position: absolute; left: 719px; top: 516px; width: 256px; height: 114px; }
.list-btn-close-wins img { width: 100%; height: 100%; }

/*
 * 视频框共用，媒体地址来自入口 data-src；关闭按钮在播放器上方。
 * 视频最高 540 × scale，为顶部关闭图片留出空间，避免舞台 overflow:hidden 裁掉关闭按钮。
 * 调整播放器高度或关闭按钮尺寸后，需同时检查桌面、手机竖屏旋转与真横屏的可点击范围。
 */
.vmask { display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .82); }
.vbox { position: relative; width: min(86%, 1050px); max-height: 80%; }
.vbox video { display: block; width: 100%; max-height: calc(540px * var(--scene-scale)); background: #000; }
.vclose { position: absolute; right: 0; bottom: 100%; width: calc(192px * var(--scene-scale)); height: calc(85.5px * var(--scene-scale)); }
.vclose img { width: 100%; height: 100%; }

/*
 * 加载页依据 loading.psd 的 1280×720 局部坐标：背景铺满舞台，前景按画布完整等比缩放。
 * loadingCanvas 的缩放由 JS 按舞台宽高取较小比例，号角/进度条不会被窄屏裁掉，也不重复旋转。
 * fill-window 是轨道内部区域，load-fill 的百分比宽由真实资源加载更新，内部图片同步缩放渐变。
 * 百分比仍是图片：窗口256×40，仅显示图集当前格；0–100的文字位置由JS换算。
 * 最快展示800ms（号角一轮），资源未完成继续等待；is-leaving淡出240ms与HTML参数保持一致。
 */
.load-page { position: absolute; inset: 0; z-index: 200; overflow: hidden; background: #faebcd; opacity: 1; transition: opacity .24s ease; }
.load-page.is-leaving { opacity: 0; }
.load-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.loading-canvas { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform: translate(-50%,-50%); transform-origin: center; }
.load-track { position: absolute; left: 210px; top: 242px; width: 855px; height: 95px; }
.load-fill-window { position: absolute; left: 224px; top: 256px; width: 827px; height: 68px; overflow: hidden; border-radius: 34px; }
.load-fill { width: 0; height: 100%; overflow: hidden; border-radius: 34px; transition: width .12s linear; }
.load-fill img { width: 100%; height: 68px; }
.load-horn-shadow { position: absolute; left: 405px; top: 380px; width: 477px; height: 54px; }
.load-horn { position: absolute; left: 463px; top: 22px; width: 480px; height: 480px; }
.load-percent-window { position: absolute; left: 512px; top: 453px; width: 256px; height: 40px; overflow: hidden; display: none;}
#loadPercentAtlas { position: absolute; left: 0; top: 0; width: 2560px; height: 440px; }
@media (prefers-reduced-motion: reduce) { .list-icon > img, .list-icon::before, .list-icon::after { animation: none; } .load-fill { transition: none; } }


.load-horn {top: 107px;width: 400px;height: 400px;}
.load-horn-shadow {top: 402px;}
.load-track {top: 300px;width: 800px;height: 85px;}
.load-fill-window {top: 314px;width: 770px;height: 58px;}