/* 第 4 章:玻璃拟态,与 00 同色板。外壳、卡片、抽屉由 ../00-agent/glass.css(body.glass)提供。
   卡片、抽屉、顶栏的样式与 05 的 memory.css 相同(复制,不跨目录引用)。 */
.tour3d .stage { background: transparent; }
.app { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); }

.home-title { display: flex; align-items: baseline; gap: 10px; padding: 6px 14px; border-radius: 14px; }
.home-title b { font-size: 14px; }
.home-title span { font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .home-title span { display: none; } }

.hcard { position: relative; width: 262px; border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 14px; font-size: 13px; line-height: 1.5; pointer-events: auto; z-index: 100; }
.hcard b { display: block; font-size: 14.5px; padding-right: 26px; margin-bottom: 2px; }
.hcard p { margin: 3px 0 0; }
.hcard .src { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.hcard .x, .drawer .x { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; background: none; color: var(--text); font-size: 20px; cursor: pointer; }
.srcbtn { appearance: none; border: 1px solid var(--accent); background: none; color: var(--accent); padding: 0 8px; min-height: 26px; border-radius: 4px; font: inherit; cursor: pointer; }
/* 好坏对照:卡内的小开关 */
.hcard .cmp { display: inline-flex; border: 1px solid var(--accent); border-radius: 999px; overflow: hidden; }
.hcard .cmp button { appearance: none; border: 0; background: none; color: var(--accent); padding: 0 10px; min-height: 26px; font: inherit; font-size: 12px; cursor: pointer; }
.hcard .cmp button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(440px,100%); z-index: 120; overflow-y: auto; padding: 18px 20px 28px; }
.drawer[hidden] { display: none; }
.drawer h3 { margin: 0 40px 10px 0; font-size: 15px; }
.drawer .lead { margin: 0 0 14px; font-size: 13.5px; line-height: 1.7; font-weight: 600; }
.drawer .pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.drawer .pts li { border-left: 3px solid var(--accent); padding: 2px 0 2px 10px; font-size: 13px; line-height: 1.7; word-break: break-word; }
.drawer .pts b { display: block; font-size: 12.5px; color: var(--accent); }
.drawer .foot { margin: 16px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }

.note { position: absolute; left: 16px; right: 16px; bottom: 34px; z-index: 4; pointer-events: none; color: var(--muted); font-size: 11.5px; max-width: 760px; }
@media (max-width: 860px) { .note { display: none; } }
body.glass .back { background: var(--glass-solid); color: var(--text); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); border-radius: 10px; }
body.glass .back:hover { border-color: var(--accent); }

/* ---------- 04 自己的标签 ---------- */
/* 特写标签:总览隐藏,飞近某个热点才显示该热点的标签(main.js 给它加 .on) */
body.glass #stage .lbl.aux-exh { opacity: 0; transition: opacity .35s; pointer-events: none; }
body.glass #stage .lbl.aux-exh.on { opacity: 1; }
/* 分区标题:总览里一直显示 */
body.glass .lbl.gt.zone-title { font-weight: 700; letter-spacing: .04em; text-shadow: 0 0 6px rgba(255,255,255,.9); }
/* 可点击的标签(主线标签 → 感知层的呼吸) */
body.glass .lbl.gt.pickable-label { pointer-events: auto; cursor: pointer; }
body.glass .lbl.gt.pickable-label:hover { text-decoration: underline; }
/* 几种底色胶囊 */
body.glass .lbl.gt.gpill.bad { background: #ffe3e6; color: #b3202c; border-color: #ffc9d0; }
body.glass .lbl.gt.gpill.good { background: #dcf5e9; color: #0e6b4b; border-color: #bfe8d3; }
body.glass .lbl.gt.gpill.warmc { background: #fff0d6; color: #8a4300; border-color: #ffdca0; }
body.glass .lbl.gt.gpill.coolc { background: #e4ecff; color: #2a4fc0; border-color: #c9d8ff; }
body.glass .lbl.gt.gpill.bluec { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 热点卡固定在右侧(宽屏)/ 底部(窄屏),相机把物体放到剩余区域 */
.hcard.fixedcard { position: absolute; right: 16px; top: 76px; }
@media (max-width: 860px) { .hcard.fixedcard { right: 8px; left: 8px; top: auto; bottom: 8px; width: auto; } }

/* 飞近某个热点后,章节大标题和副标题淡出,免得盖住特写(圈号 ①②③④ 保留) */
body.glass #stage[data-focus="on"] .lbl.zone-title, body.glass #stage[data-focus="on"] .lbl.sub { opacity: 0; pointer-events: none; transition: opacity .35s; }

@media (max-width: 860px) { body.glass .lbl.gt.sub { display: none; } }
/* 回路球上的圈号 ①②③④:特写只在讲回路的两个热点里留着,其余特写里它们会和别的标签叠,甚至钻到顶栏下面 */
body.glass #stage[data-focus="on"]:not([data-hot="per_loop"]):not([data-hot="per_step"]) .lbl.keep { opacity: 0; transition: opacity .35s; }
