/* 宋：天工与风雅 · 展厅。页面骨架沿用 hw.css 的顶栏与配色变量。 */
.yh-body { overflow: hidden; background: #e4dbc6; overscroll-behavior: none; }
.yh {
	--dockh: 64px;
	position: fixed; inset: var(--top) 0 0 0; overflow: hidden;
	color: var(--ink); font: 400 15px/1.7 var(--sans); -webkit-tap-highlight-color: transparent;
}
.yh-stage { position: absolute; inset: 0; touch-action: none; }
.yh-stage canvas { display: block; outline: none; cursor: grab; opacity: 0; transition: opacity .9s; }
.is-ready .yh-stage canvas { opacity: 1; }
.yh-stage canvas:active { cursor: grabbing; }
.yh-fb { font-family: var(--serif) !important; }
.yh [hidden] { display: none !important; }
.yh :focus-visible { outline: 2px solid var(--zhu); outline-offset: 2px; }

/* 按钮 */
.yh-b {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px;
	border: 1px solid rgba(7, 8, 12, .72); background: var(--paper); color: var(--ink);
	font: 700 14px/1 var(--sans); letter-spacing: .12em; text-decoration: none; cursor: pointer; white-space: nowrap;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .14); transition: background .15s, color .15s;
}
.yh-b:hover { background: #fff; }
.yh-b--y { background: var(--ehuang); border-color: #b8901a; }
.yh-b--y:hover { background: #ffe07a; }
.yh-b[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* 左上：现在在哪 */
.yh-card {
	position: absolute; left: 16px; top: 16px; z-index: 5; max-width: 380px; padding: 14px 18px 10px;
	background: rgba(243, 238, 228, .95); border: 1px solid rgba(7, 8, 12, .16); box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.yh-card__k { margin: 0; font: 700 12px/1.5 var(--sans); letter-spacing: .14em; color: #8a2f1f; }
.yh-card__t { margin: 2px 0 2px; font: 900 30px/1.25 var(--disp); letter-spacing: .08em; }
.yh-card__s { margin: 0; font-size: 14px; line-height: 1.65; color: #4a453d; }
.yh-card__go { display: flex; gap: 18px; margin: 10px 0 0; padding-top: 8px; border-top: 1px solid rgba(7, 8, 12, .12); font-size: 13px; }
.yh-card__go a { color: #8a2f1f; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.yh-card__go a:hover { text-decoration: underline; }

/* 右上：导览 / 走进展厅 / 帮助 */
.yh-tools { position: absolute; right: 16px; top: 16px; z-index: 6; display: flex; gap: 8px; }
.yh-help {
	position: absolute; right: 16px; top: 66px; z-index: 7; width: 340px; padding: 16px 18px 14px;
	background: rgba(243, 238, 228, .98); border: 1px solid rgba(7, 8, 12, .2); box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
}
.yh-help p { margin: 0 0 10px; font-size: 14px; line-height: 1.75; }

/* 展品说明 */
.yh-info {
	position: absolute; right: 16px; top: 66px; z-index: 6; width: 344px; max-height: calc(100% - 66px - var(--dockh) - 130px); overflow: auto;
	padding: 16px 20px 16px; background: rgba(243, 238, 228, .97); border: 1px solid rgba(7, 8, 12, .2); border-top: 4px solid var(--zhu);
	box-shadow: 0 12px 36px rgba(0, 0, 0, .26);
}
.yh-info__x { position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border: 0; background: none; color: #3a362f; font: 400 26px/1 var(--sans); cursor: pointer; }
.yh-info__k { margin: 0; font: 700 12px/1.5 var(--sans); letter-spacing: .14em; color: #8a2f1f; }
.yh-info__t { margin: 4px 36px 8px 0; font: 900 26px/1.3 var(--disp); letter-spacing: .06em; }
.yh-info__t.is-long { font-size: 21px; letter-spacing: .02em; }
.yh-info__d { margin: 0; font-size: 15px; line-height: 1.85; color: #2c2924; }
.yh-info__go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.is-modal .yh-info, .is-modal .yh-card { visibility: hidden; }

/* 导览 */
.yh-tour {
	position: absolute; left: 50%; bottom: calc(var(--dockh) + 16px); z-index: 5; transform: translateX(-50%);
	width: min(560px, calc(100% - 32px)); padding: 12px 18px 14px;
	background: rgba(243, 238, 228, .97); border: 1px solid rgba(7, 8, 12, .2); box-shadow: 0 12px 36px rgba(0, 0, 0, .26);
}
.yh-tour__k { margin: 0; font: 700 12px/1.5 var(--sans); letter-spacing: .14em; color: #8a2f1f; }
.yh-tour__t { margin: 4px 0 10px; font-size: 17px; line-height: 1.7; }
.yh-tour__go { display: flex; flex-wrap: wrap; gap: 8px; }
.yh-tour__go .yh-b { min-height: 36px; padding: 0 12px; font-size: 13px; }

/* 底栏：七个展区。宽屏时自右向左排，和俯瞰图、小地图的方位一致 */
.yh-dock {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: stretch; height: var(--dockh);
	background: rgba(11, 11, 13, .88); border-top: 1px solid rgba(243, 238, 228, .14);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding-bottom: env(safe-area-inset-bottom);
}
.yh-dock__x { display: none; }
.yh-bar { flex: 1; display: flex; flex-direction: row; min-width: 0; }
.yh-bar button {
	position: relative; flex: 1 1 0; min-width: 0; padding: 10px 12px 10px; border: 0; border-right: 1px solid rgba(243, 238, 228, .1);
	background: none; color: var(--paper); text-align: left; cursor: pointer; transition: background .15s;
}
.yh-bar button:last-child { border-right: 0; }
.yh-bar b { display: block; font: 900 18px/1.25 var(--disp); letter-spacing: .18em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yh-bar b.yh-lat { font-size: 15px; letter-spacing: .03em; }
.yh-bar small { display: block; margin-top: 4px; font: 400 11.5px/1.35 var(--sans); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yh-bar button:hover { background: rgba(243, 238, 228, .07); }
.yh-bar button.is-on { background: rgba(255, 210, 63, .12); box-shadow: inset 0 3px 0 var(--ehuang); }
.yh-bar button.is-on b { color: var(--ehuang); }

/* 小地图 */
.yh-map {
	position: absolute; right: 16px; bottom: calc(var(--dockh) + 16px); z-index: 4; padding: 8px 8px 4px;
	background: rgba(11, 11, 13, .82); border: 1px solid rgba(243, 238, 228, .16);
}
.yh-map canvas { display: block; width: 168px; height: 176px; cursor: pointer; }
.yh-map__x { display: block; width: 100%; margin-top: 4px; padding: 4px 0; border: 0; background: none; color: var(--dim); font: 500 12px/1 var(--sans); letter-spacing: .2em; cursor: pointer; }
.yh-map__x:hover { color: var(--paper); }
.is-mapoff .yh-map { padding: 4px 10px; }
.is-mapoff .yh-map canvas { display: none; }
.is-mapoff .yh-map__x { margin: 0; }
.is-tour .yh-map, .is-info .yh-map { opacity: .9; }

/* 提示（几秒后淡出） */
.yh-hint {
	position: absolute; left: 50%; bottom: calc(var(--dockh) + 16px); z-index: 3; transform: translateX(-50%); margin: 0;
	padding: 8px 14px; background: rgba(11, 11, 13, .74); color: var(--paper); font-size: 13px; letter-spacing: .08em; white-space: nowrap;
	pointer-events: none; transition: opacity .8s;
}
.yh-hint.is-off, .is-tour .yh-hint { opacity: 0; }

/* 浮在画面上的标签 */
.yh-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.yh-labels > * { position: absolute; left: 0; top: 0; will-change: transform; }
.yh-labels > button { pointer-events: auto; }
.yh-door { padding: 4px 6px 4px 10px; background: var(--zhu); color: #fff; font: 700 13px/1 var(--sans); letter-spacing: .32em; white-space: nowrap; pointer-events: none; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.yh-labels > .is-off { visibility: hidden; }
.yh-lb {
	padding: 6px 12px 6px 14px; border: 1px solid rgba(7, 8, 12, .6); background: rgba(243, 238, 228, .93); color: var(--ink);
	font: 900 18px/1 var(--disp); letter-spacing: .2em; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.yh-lb:hover { background: var(--ehuang); }
.yh-lb .yh-lat { font-size: 15px; letter-spacing: .03em; }
.yh-card__t.yh-lat { letter-spacing: .02em; }
.yh-tag span.yh-lat { letter-spacing: .02em; }
.yh-tag {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border: 1px solid rgba(7, 8, 12, .55);
	background: rgba(243, 238, 228, .95); color: var(--ink); cursor: pointer; white-space: nowrap; box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
}
.yh-tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: var(--stem, 12px); background: rgba(7, 8, 12, .55); }
.yh-tag i { padding: 3px 5px; background: var(--zhu); color: #fff; font: 700 11px/1 var(--sans); font-style: normal; letter-spacing: .04em; }
.yh-tag span { font: 900 14px/1.1 var(--disp); letter-spacing: .1em; }
.yh-tag--prop i { background: #4b5a55; }
.yh-tag--plan { border-style: dashed; background: rgba(243, 238, 228, .85); }
.yh-tag--plan i { background: none; color: #6b655c; outline: 1px dashed #8f877b; outline-offset: -1px; }
.yh-tag.is-on, .yh-tag.is-hot, .yh-tag:hover { background: var(--ehuang); }

/* 作品浮层 */
.yh-modal { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #0c0c0e; color: var(--paper); font: 400 15px/1.7 var(--sans); }
.yh-modal[hidden] { display: none; }
.yh-modal :focus-visible { outline: 2px solid var(--ehuang); outline-offset: 2px; }
.yh-modal__bar { display: flex; align-items: center; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); background: #15151a; color: var(--paper); border-bottom: 1px solid rgba(243, 238, 228, .14); }
.yh-modal__bar p { flex: 1; min-width: 0; margin: 0; font: 900 16px/1.3 var(--disp); letter-spacing: .12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yh-modal__bar .yh-b { min-height: 36px; padding: 0 12px; font-size: 13px; box-shadow: none; }
.yh-modal iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* 没法显示画面时的展品列表 */
.yh-nogl { position: absolute; inset: 0; overflow: auto; padding: 28px 20px 48px; background: var(--paper); color: var(--ink); }
.yh-nogl > p { max-width: 760px; margin: 0 auto 10px; color: #6b655c; }
.yh-list { max-width: 760px; margin: 0 auto; }
.yh-list h2 { margin: 0 0 8px; font: 900 30px/1.3 var(--serif); letter-spacing: .06em; }
.yh-list > p { margin: 0 0 10px; color: #3a362f; }
.yh-list h3 { margin: 28px 0 6px; font: 900 19px/1.4 var(--serif); letter-spacing: .06em; }
.yh-list ul { margin: 0; padding: 0; list-style: none; }
.yh-list li { padding: 10px 0; border-top: 1px solid rgba(7, 8, 12, .12); }
.yh-list li b { display: block; }
.yh-list li span { display: block; color: #4a453d; font-size: 14px; }
.yh-list li a { font-size: 14px; color: #8a2f1f; font-weight: 700; }
.yh-list .yh-list__go { display: flex; gap: 18px; margin-top: 28px; }

@media (max-width: 860px) {
	.yh-bar b { font-size: 16px; letter-spacing: .12em; }
	.yh-bar small { display: none; }
	.yh { --dockh: 50px; }
}
@media (max-width: 720px) {
	.yh { --dockh: 48px; }
	.yh-card { left: 10px; top: 10px; max-width: calc(100% - 20px); padding: 9px 12px 7px; }
	.yh-card__t { font-size: 22px; }
	.yh-card__s { font-size: 13px; line-height: 1.55; }
	.yh-card.is-home .yh-card__s { display: none; }
	.yh-card__go { margin-top: 6px; padding-top: 6px; gap: 14px; }
	.yh-tools { top: auto; left: 10px; right: 10px; bottom: calc(var(--dockh) + 10px); justify-content: center; }
	.yh-b { min-height: 38px; padding: 0 12px; font-size: 13px; letter-spacing: .08em; }
	.yh-help { left: 10px; right: 10px; top: auto; bottom: calc(var(--dockh) + 60px); width: auto; }
	.yh-info {
		left: 0; right: 0; top: auto; bottom: 0; z-index: 8; width: auto; max-height: 58%;
		padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-left: 0; border-right: 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .3);
	}
	.yh-info__t { font-size: 22px; }
	.yh-info__d { font-size: 14.5px; line-height: 1.8; }
	.is-info .yh-tools, .is-info .yh-tour, .is-tour .yh-tools { visibility: hidden; }
	.yh-tour { bottom: calc(var(--dockh) + 58px); padding: 10px 14px 12px; }
	.yh-tour__t { font-size: 15px; margin-bottom: 8px; }
	.yh-dock__x {
		display: block; flex: none; padding: 0 12px; border: 0; border-right: 1px solid rgba(243, 238, 228, .14);
		background: none; color: var(--paper); font: 700 12px/1 var(--sans); letter-spacing: .1em; cursor: pointer;
	}
	.yh-bar { flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.yh-bar::-webkit-scrollbar { display: none; }
	.yh-bar button { flex: 0 0 auto; padding: 0 16px; scroll-snap-align: start; }
	.yh-bar b { font-size: 16px; }
	.is-baroff .yh-bar { display: none; }
	.is-baroff .yh-dock { right: auto; background: rgba(11, 11, 13, .7); }
	.is-baroff .yh-dock__x { border-right: 0; }
	.yh-map { right: 10px; top: 10px; bottom: auto; }
	.yh-map canvas { width: 132px; height: 138px; }
	.yh-card { max-width: calc(100% - 100px); }
	.yh-hint { bottom: calc(var(--dockh) + 60px); white-space: normal; width: max-content; max-width: calc(100% - 20px); text-align: center; }
	.yh-lb { font-size: 15px; padding: 5px 9px 5px 11px; letter-spacing: .14em; }
	.yh-tag span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	.yh-hint, .yh-b, .yh-bar button { transition: none; }
}

/* 载入：绢色底上一行字、一条细线 */
.yh-load { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(ellipse at 50% 42%, #efe7d4 0%, #e4dbc6 60%, #d9cfb7 100%); color: #2b2823; transition: opacity .8s; }
.yh-load.is-off { opacity: 0; pointer-events: none; }
.yh-load__t { margin: 0; font: 900 34px/1.2 var(--disp); letter-spacing: .14em; }
.yh-load__s { margin: 0; font: 400 14px/1.6 var(--sans); letter-spacing: .12em; color: #6b655c; }
.yh-load__bar { display: block; width: min(240px, 60vw); height: 2px; background: rgba(43,40,35,.15); }
.yh-load__bar b { display: block; width: 0; height: 100%; background: #b8432c; transition: width .3s; }

/* 游园印：小地图下面一排七方印 */
.yh-seals { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(243,238,228,.14); }
.yh-seals__k { font: 500 11.5px/1.2 var(--sans); letter-spacing: .14em; color: var(--dim); }
.yh-seals__row { display: flex; gap: 4px; }
.yh-seals i { flex: 1 1 0; display: flex; align-items: center; justify-content: center; height: 22px; border: 1px dashed rgba(243,238,228,.3); color: rgba(243,238,228,.35); font: 900 13px/1 var(--disp); font-style: normal; transition: background .3s, color .3s, transform .3s; }
.yh-seals i.is-on { border: 1px solid #b8432c; background: #b8432c; color: #fbf3e6; }
.yh-seals i.is-new { transform: scale(1.35) rotate(-6deg); box-shadow: 0 0 0 3px rgba(255,210,63,.5); }
.is-mapoff .yh-seals { display: none; }

/* 盖印的提示 */
.yh-toast { position: absolute; left: 50%; top: 18px; z-index: 7; margin: 0; padding: 8px 16px; transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
	background: #b8432c; color: #fbf3e6; font: 700 14px/1.4 var(--sans); letter-spacing: .12em; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: opacity .35s, transform .35s; }
.yh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.yh-card__kt { }

@media (max-width: 720px) {
	.yh-toast { top: auto; bottom: calc(var(--dockh) + 64px); font-size: 13px; }
	.yh-load__t { font-size: 26px; }
}
