/* style.css：网页界面的样式（颜色、字体、位置、动画）。配色：深酒红底 + 金色点缀，和 3D 沙盘一致 */
:root {                                                      /* 全局颜色变量，改这里全网页跟着变 */
  --bg: rgba(24, 10, 14, 0.78);                              /* 面板底色：半透明深酒红 */
  --line: rgba(242, 193, 78, 0.32);                          /* 描边：半透明金 */
  --gold: #f2c14e;                                           /* 主金色 */
  --text: #f3ebdd;                                           /* 正文：米白 */
  --muted: #b9a58c;                                          /* 次要文字：灰金 */
  --kai: "STKaiti", "KaiTi", "Kaiti SC", serif;              /* 标题字体：楷体，有博物馆的书卷气 */
}
* { box-sizing: border-box; margin: 0; padding: 0; }         /* 去掉浏览器默认边距；宽高按"含边框"计算 */
html, body { width: 100%; height: 100%; overflow: hidden; background: #120a0c; }   /* 铺满窗口，不出滚动条 */
body { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif; color: var(--text); -webkit-tap-highlight-color: transparent; user-select: none; }   /* 正文字体；手机点按不出蓝框；拖动时不选中文字 */
#app, .lbl-layer { position: fixed; inset: 0; }              /* 3D 画布和文字层都铺满屏幕 */
.lbl-layer { pointer-events: none; z-index: 1; }             /* 文字层不挡鼠标，点击能穿过去点到 3D 画布 */
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }   /* 去掉按钮的默认样式 */

/* 左上角标题 */
.title { position: fixed; z-index: 10; left: 28px; top: 22px; pointer-events: none; }   /* 固定在左上角，不挡鼠标 */
.title h1 { font-family: var(--kai); font-size: 34px; letter-spacing: 4px; background: linear-gradient(180deg, #fff1c4, #e2a93b); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 10px rgba(242, 193, 78, 0.3)); }   /* 金色渐变大字 + 柔光 */
.title p { margin-top: 6px; font-size: 14px; letter-spacing: 6px; color: var(--muted); }   /* 副标题：小字、字距拉开 */

/* 右侧城市列表 */
.list { position: fixed; z-index: 10; right: 20px; top: 64px; bottom: 20px; width: 232px; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(8px); overflow: hidden; transform: translateX(calc(100% + 28px)); opacity: 0; transition: transform 0.28s ease, opacity 0.28s ease; }   /* 半透明毛玻璃面板；默认滑出右边屏外藏起来，点右上角按钮才滑进来 */
.list.open { transform: none; opacity: 1; }                  /* 展开：滑回原位、显形 */
.list-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }   /* 列表顶部 */
.list-head b { display: block; font-family: var(--kai); font-size: 18px; color: var(--gold); letter-spacing: 3px; }   /* "推荐路线" */
.list-head span { font-size: 11px; color: var(--muted); }   /* 排序说明 */
.list ol { list-style: none; overflow-y: auto; padding: 6px; counter-reset: stop; }   /* 列表能上下滚；用计数器自动编站号 */
.list li { counter-increment: stop; }                        /* 每一行站号 +1 */
.list li button { width: 100%; display: grid; grid-template-columns: 24px 14px minmax(0, 1fr); align-items: center; column-gap: 4px; padding: 7px 10px; border-radius: 9px; text-align: left; transition: background 0.2s; }   /* 一行三列：站号、圆点、文字 */
.list li button::before { content: counter(stop, decimal-leading-zero); grid-row: span 2; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }   /* 站号 01、02… */
.list li button:hover { background: rgba(242, 193, 78, 0.12); }   /* 鼠标移上去微微发亮 */
.list i { grid-row: span 2; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06); }   /* 年代小圆点 */
.list li b { font-size: 15px; font-weight: 600; letter-spacing: 1px; }   /* 市名 */
.list li span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* 馆名：太长就显示省略号 */
.list-toggle { display: inline-flex; align-items: center; gap: 6px; position: fixed; z-index: 11; right: 20px; top: 20px; padding: 9px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; color: var(--gold); font-family: var(--kai); font-size: 16px; letter-spacing: 2px; backdrop-filter: blur(8px); cursor: pointer; transition: background 0.2s, border-color 0.2s; }   /* 电脑上：右上角一个小胶囊按钮，点它才展开路线面板 */
.list-toggle:hover { background: rgba(242, 193, 78, 0.14); border-color: var(--gold); }   /* 悬停微微发亮 */
.list-toggle.on { background: rgba(242, 193, 78, 0.18); border-color: var(--gold); }       /* 面板展开时按钮高亮，提示"再点收起" */

/* 门口的"按 E 进入"按钮 */
.prompt { position: fixed; z-index: 10; left: 50%; bottom: 64px; transform: translate(-50%, 12px); padding: 12px 26px; background: linear-gradient(180deg, #c0392b, #8e2219); border: 1px solid var(--gold); border-radius: 999px; font-size: 16px; letter-spacing: 2px; color: #fff3d6; box-shadow: 0 6px 24px rgba(192, 57, 43, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; }   /* 红底金边胶囊按钮，平时藏起来 */
.prompt.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }   /* 到门口时从下往上浮出来 */

/* 左下角操作说明 */
.help { position: fixed; z-index: 10; left: 28px; bottom: 22px; font-size: 12px; color: var(--muted); letter-spacing: 1px; pointer-events: none; }

/* 加载提示 */
#loading { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; background: #14090d; color: var(--gold); font-family: var(--kai); font-size: 22px; letter-spacing: 6px; transition: opacity 0.8s; }   /* 全屏盖住，文字居中 */
#loading.hide { opacity: 0; pointer-events: none; }          /* 加载完淡出 */
#fade { position: fixed; z-index: 50; inset: 0; background: #14100d; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }   /* 进馆淡出遮罩：和展厅页加载层同色(深褐)，淡满后跳转，两页衔接无缝 */
#fade.show { opacity: 1; pointer-events: auto; }             /* 触发时淡到不透明并挡住点击 */

/* 地图上的浮动文字 */
.lbl { text-align: center; white-space: nowrap; transition: opacity 0.3s; }   /* 文字居中、不换行，显隐有过渡 */
.lbl span { display: block; }                                /* 每行文字单独一行 */
.lbl.city .n { font-family: var(--kai); font-size: 18px; font-weight: bold; letter-spacing: 3px; color: #8a7a68; text-shadow: 0 0 5px rgba(255, 248, 235, 0.9); }   /* 没开馆的市名：浅灰褐楷体，退到背景里 */
.lbl.city.open .n { font-size: 26px; color: #6b1d1d; text-shadow: 0 0 6px rgba(255, 248, 235, 0.95), 0 0 2px #fff; }   /* 开馆的市名：更大的深红楷体 + 白色描边，一眼看出能去哪 */
.lbl.water .n { font-size: 13px; font-weight: 600; letter-spacing: 6px; color: #f4fbff; text-shadow: 0 0 3px #1d5f94, 0 0 8px #1d5f94; }   /* 水系名：白字蓝边，压在蓝色水面上也看得清 */
.lbl.pav { padding: 6px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }   /* 馆名牌：小深色卡片 */
.lbl.pav .n { font-size: 14px; font-weight: 600; color: var(--gold); letter-spacing: 1px; }   /* 馆名 */
.lbl.pav .s { margin-top: 2px; font-size: 11px; color: var(--muted); }   /* 一句话主题 */

/* 进馆弹窗 */
.modal { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; background: rgba(10, 4, 6, 0.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }   /* 全屏暗幕，平时透明 */
.modal.show { opacity: 1; pointer-events: auto; }            /* 打开时显示 */
.card { width: min(980px, 92vw); max-height: 86vh; overflow-y: auto; padding: 28px 32px; background: linear-gradient(180deg, #2a1015, #1a0a0e); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }   /* 居中卡片 */
.card small { color: var(--muted); letter-spacing: 4px; }    /* 城市名小字 */
.card h2 { margin: 4px 0 6px; font-family: var(--kai); font-size: 30px; letter-spacing: 3px; color: var(--gold); }   /* 馆名大字 */
.card .sub { margin-bottom: 18px; font-size: 12px; color: var(--muted); }   /* 说明 */
.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }   /* 三块展板排一行 */
.boards section { padding: 16px 18px; background: rgba(243, 235, 221, 0.05); border: 1px solid rgba(242, 193, 78, 0.18); border-top: 3px solid #c0392b; border-radius: 12px; }   /* 一块展板：顶边一道红 */
.boards em { font-style: normal; font-size: 11px; letter-spacing: 3px; color: var(--gold); }   /* 展板类别 */
.boards h3 { margin: 6px 0 8px; font-size: 16px; }           /* 展板标题 */
.boards p { font-size: 13px; line-height: 1.85; color: #e2d6c3; }   /* 展板正文：行距大一点好读 */
.back { margin-top: 20px; padding: 10px 28px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); }   /* 返回按钮 */
.back:hover { background: rgba(242, 193, 78, 0.12); }        /* 鼠标移上去微微发亮 */

/* 手机 / 窄屏 */
@media (max-width: 760px) {
  .title { left: 16px; top: 14px; }                          /* 标题往角落靠 */
  .title h1 { font-size: 22px; letter-spacing: 2px; }        /* 标题缩小 */
  .title p { font-size: 11px; letter-spacing: 3px; }         /* 副标题缩小 */
  .list { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 52vh; border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform 0.3s; }   /* 列表变成底部抽屉，平时藏在屏幕下面 */
  .list.open { transform: none; }                            /* 展开时滑上来 */
  .list-toggle { display: block; position: fixed; z-index: 11; right: 16px; top: 16px; padding: 8px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; color: var(--gold); }   /* 右上角"城市"按钮 */
  .help { left: 16px; bottom: 14px; font-size: 11px; }       /* 操作说明缩小 */
  .prompt { bottom: 48px; font-size: 15px; }                 /* 进入按钮稍微下移 */
  .boards { grid-template-columns: 1fr; }                    /* 展板改成竖着一块一块排 */
  .card { padding: 20px; }                                   /* 卡片内边距缩小 */
}
