/* ============================================================
   「投资通州」共享组件库（三端共用）
   ============================================================ */

/* ================= 0. 壳层注入防闪烁 =================
   带壳页面（小程序/后台/大屏）在 shell.js 完成注入前先隐藏，注入完成后加
   .shell-ready 再显示——避免「内容先裸显、手机壳后补」的跳转闪烁。
   index.html 等无 data-* 属性的总览页不受影响 */
body[data-app], body[data-admin], body[data-screen] { visibility: hidden; }
body[data-app].shell-ready, body[data-admin].shell-ready, body[data-screen].shell-ready { visibility: visible; }
/* 兜底：若 shell.js 未执行（如浏览器缓存了旧版脚本，未添加 .shell-ready），
   3 秒后强制显示页面内容，避免永久空白 */
@keyframes shell-reveal { to { visibility: visible; } }
body[data-app]:not(.shell-ready), body[data-admin]:not(.shell-ready), body[data-screen]:not(.shell-ready) {
  animation: shell-reveal 0s 3s forwards;
}

/* ================= 1. 小程序手机壳 ================= */
.phone {
  width: 415px; height: 862px;
  background: linear-gradient(160deg, #3A3A3A, #1A1A1A);
  border-radius: 46px;
  padding: 12px;
  position: relative;
  box-shadow: 0 24px 70px rgba(20, 10, 8, .35), inset 0 0 0 2px #4A4A4A;
}
.phone::before { /* 刘海 */
  content: "";
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 150px; height: 24px;
  background: #111;
  border-radius: 0 0 16px 16px;
  z-index: 30;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 35px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.statusbar {
  height: 40px; flex: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 22px 6px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  background: transparent;
  position: relative; z-index: 20;
}
.statusbar .sb-right { display: flex; align-items: center; gap: 5px; }
.statusbar svg { display: block; }
/* v1.2.0：微信小程序胶囊按钮占位（右上角预留，实际微信中为「…」+「◉」胶囊） */
.sb-capsule {
  display: inline-flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 13px; margin-left: 8px;
  border: 1.5px dashed rgba(43, 35, 32, .35); border-radius: 26px;
  background: rgba(255, 255, 255, .45);
  box-sizing: border-box;
}
.sb-capsule i { width: 14px; height: 14px; border: 1.5px solid rgba(43, 35, 32, .4); border-radius: 50%; }
.app-content { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; }

/* 桌面浏览器：居中 + 快捷跳转浮层 */
body[data-app] {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 30px 120px 30px 30px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(201, 160, 99, .10), transparent 60%),
    var(--bg);
}
.quick-nav {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 200;
}
.quick-nav .qn-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--red); color: #fff;
  box-shadow: var(--shadow-2);
  display: flex; align-items: center; justify-content: center;
}
.quick-nav .qn-btn svg { width: 20px; height: 20px; }
.quick-nav .qn-panel {
  display: none;
  position: absolute; right: 54px; top: 50%; transform: translateY(-50%);
  width: 240px; max-height: 78vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 10px;
}
.quick-nav.open .qn-panel { display: block; }
.quick-nav .qn-panel h4 {
  font-size: 12px; color: var(--ink-3); padding: 6px 8px; font-weight: 600;
}
.quick-nav .qn-panel a {
  display: block; padding: 7px 10px; border-radius: 8px; font-size: 13px;
  color: var(--ink-2);
}
.quick-nav .qn-panel a:hover, .quick-nav .qn-panel a.cur { background: var(--red-bg); color: var(--red); }

/* 小屏（真机/窄窗口）：隐藏壳与浮层，内容全屏 */
@media (max-width: 460px) {
  .phone {
    width: 100vw; height: 100vh; padding: 0; border-radius: 0; box-shadow: none;
    background: var(--bg);
  }
  .phone::before { display: none; }
  .phone-screen { border-radius: 0; }
  .quick-nav { display: none; }
  body[data-app] { padding: 0; }
}

/* ================= 2. 底部五导航 ================= */
.tabbar {
  flex: none;
  height: 62px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  position: relative; z-index: 20;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  font-size: 10.5px; color: var(--ink-3);
  position: relative;
}
.tabbar a svg { width: 22px; height: 22px; display: block; }
.tabbar a.on { color: var(--red); font-weight: 600; }
.tabbar a.on::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--gold-grad);
}

/* ================= 3. 页面顶部导航 ================= */
.nav-bar {
  flex: none;
  height: 46px;
  display: flex; align-items: center;
  padding: 0 12px;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  color: #fff;
  position: relative; z-index: 20;
}
.nav-bar .nb-title {
  flex: 1; text-align: center;
  font-family: var(--serif); font-size: 17px; letter-spacing: 1px;
}
.nav-bar .nb-side { width: 64px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.nav-bar .nb-side--right { justify-content: flex-end; }
.nav-bar .nb-btn { color: #fff; display: flex; align-items: center; gap: 2px; }
.nav-bar .nb-btn svg { width: 18px; height: 18px; }
.nav-bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--pattern-key); opacity: .7;
}
/* 首页式大标题导航（红色渐变大标题区） */
.home-hero {
  position: relative; z-index: 0;
  padding: 34px 20px 40px;
  color: #fff;
  border-radius: 0 0 26px 26px;
  overflow: hidden;
}
.home-hero::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 8px;
  background: var(--pattern-key); opacity: .8; border-radius: 4px;
}
.home-hero .hh-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.home-hero .hh-logo { display: flex; align-items: center; gap: 10px; }
.home-hero .hh-title { font-family: var(--serif); font-size: 24px; letter-spacing: 3px; font-weight: 700; }
.home-hero .hh-sub { font-size: 10px; letter-spacing: 1.5px; opacity: .82; margin-top: 3px; line-height: 1.6; }
.home-hero .hh-sub-cn { font-size: 11px; letter-spacing: 2px; opacity: .7; margin-top: 1px; }
.home-hero .hh-lang {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 20px;
  padding: 5px 12px; font-size: 12px; color: #fff;
  white-space: nowrap;
}
.home-hero .hh-banner {
  margin-top: 22px; position: relative; z-index: 2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  min-height: 132px;
  display: flex; align-items: center; justify-content: center;
}
.home-hero .hh-banner img { width: 100%; }

/* ================= 4. 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 14px; font-weight: 600;
  transition: transform .12s, box-shadow .12s, opacity .12s;
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap; /* 按钮文案保持一行，避免折行撑高按钮 */
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--red-light), var(--red) 55%, var(--red-deep));
  color: #fff;
  box-shadow: 0 4px 12px rgba(179, 36, 44, .3);
}
.btn-gold {
  background: var(--gold-grad);
  color: #4A3403;
  box-shadow: var(--shadow-gold);
}
.btn-outline { border-color: var(--red); color: var(--red); background: #fff; }
.btn-ghost { color: var(--ink-2); background: var(--line-2); }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-sm { padding: 6px 13px; font-size: 12.5px; border-radius: 18px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* 底部固定操作栏 */
.footer-bar {
  flex: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px;
  /* v1.2.1：absolute 固定于滚动区可视底部（不再随内容流落到中部/框外） */
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
}
/* 底部栏按钮字号略收窄，保证多按钮（如收藏/测一测/问小策）一行放得下不互相遮挡 */
.footer-bar .btn { flex: 1; font-size: 13px; }

/* ================= 5. 标签 ================= */
.chip {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px; line-height: 1.5;
  background: var(--line-2); color: var(--ink-2);
  white-space: nowrap;
}
.chip--red { background: var(--red-bg); color: var(--red); }
.chip--gold { background: var(--gold-pale); color: var(--gold-deep); }
.chip--ok { background: var(--ok-bg); color: var(--ok); }
.chip--info { background: var(--info-bg); color: var(--info); }
.chip--err { background: var(--err-bg); color: var(--err); }
.chip--line { background: #fff; border: 1px solid var(--line); }
.chip-select {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
  cursor: pointer; transition: all .15s;
}
.chip-select.on { background: var(--red-bg); border-color: var(--red); color: var(--red); font-weight: 600; }
.chip-select.on::after { content: "✓"; font-size: 12px; }

/* 等级标签（空间等级） */
.lv-tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 5px;
  font-size: 11px; font-weight: 700;
  color: #fff;
  background: var(--gold-grad);
  letter-spacing: 1px;
}

/* 状态标签（审核状态） */
.st-tag { font-size: 11px; padding: 2px 8px; border-radius: 5px; font-weight: 600; }
.st-pending { background: var(--warn-bg); color: var(--warn); }
.st-pass { background: var(--ok-bg); color: var(--ok); }
.st-reject { background: var(--err-bg); color: var(--err); }
.st-draft { background: var(--line-2); color: var(--ink-3); }
.st-online { background: var(--ok-bg); color: var(--ok); }
.st-offline { background: var(--line-2); color: var(--ink-3); }

/* ================= 6. 卡片 ================= */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  margin: 18px 0 12px;
  padding-left: 10px;
  position: relative;
}
.section-title::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px;
  background: var(--gold-grad);
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
}
.section-title .st-more { margin-left: auto; font-size: 12px; color: var(--ink-3); font-family: var(--sans); font-weight: 400; display: flex; align-items: center; }

/* 宫格（首页六大板块） */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 6px 13px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .15s;
  overflow: hidden;
}
.grid-item:active { transform: scale(.96); }
.grid-item .gi-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.grid-item .gi-icon svg { width: 25px; height: 25px; }
.grid-item .gi-name { font-size: 13px; font-weight: 600; }
.grid-item .gi-sub { font-size: 10.5px; color: var(--ink-3); }
.grid-item .gi-corner {
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold);
  border-radius: 0 6px 0 0; opacity: .7;
}
/* 宫格图标配色 */
.gi-red { background: linear-gradient(135deg, #D44B57, #B3242C); }
.gi-gold { background: var(--gold-grad); color: #4A3403; }
.gi-green { background: linear-gradient(135deg, #4C8A63, #2E7D4F); }
.gi-blue { background: linear-gradient(135deg, #5E87B5, #35608C); }
.gi-purple { background: linear-gradient(135deg, #9A74B8, #744C9A); }
.gi-teal { background: linear-gradient(135deg, #4FA3A0, #2E7D7A); }

/* 列表卡（空间/政策/供需/活动通用） */
.list-card {
  display: flex; gap: 12px;
  background: #fff; border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .12s;
}
.list-card:active { transform: scale(.985); }
.list-card .lc-img {
  width: 104px; height: 104px; flex: none;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--line-2);
}
.list-card .lc-img img { width: 100%; height: 100%; object-fit: cover; }
.list-card .lc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-card .lc-title {
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; min-width: 0;
}
/* 名称完整显示（一行优先，长名称可换行）；等级标签保持一行不被挤压折行 */
.list-card .lc-name { min-width: 0; white-space: normal; }
.list-card .lv-tag { flex: none; white-space: nowrap; align-self: flex-start; }
.list-card .lc-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.list-card .lc-meta .chip { font-size: 10.5px; padding: 2px 6px; flex: none; white-space: nowrap; }
.list-card .lc-info { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 11.5px; color: var(--ink-3); padding-top: 7px; }
.list-card .lc-price { color: var(--red); font-weight: 700; font-size: 15px; }
.list-card .lc-price em { font-style: normal; font-size: 11px; font-weight: 400; }
.list-card .lc-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 8px; }
.fav-btn { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--ink-3); }
.fav-btn svg { width: 17px; height: 17px; }
.fav-btn.on { color: var(--red); }
.fav-btn.on svg { fill: var(--red); stroke: var(--red); }

/* 纯文字列表卡（政策） */
.text-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.text-card .tc-title { font-size: 15px; font-weight: 700; line-height: 1.45; display: flex; gap: 8px; align-items: flex-start; }
.text-card .tc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-deep); flex: none; margin-top: 9px; }
.text-card .tc-meta { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }

/* ================= 7. 搜索栏 ================= */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 22px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}
.search-bar:focus-within { border-color: var(--red); }
.search-bar svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.search-bar input { flex: 1; border: none; background: none; font-size: 13.5px; }
.search-bar .sb-clear { display: none; color: var(--ink-3); font-size: 16px; padding: 0 2px; }
.search-bar.has-val .sb-clear { display: block; }
.search-wrap { padding: 12px 16px; background: linear-gradient(180deg, var(--red-deep), var(--red) 80%); }

/* ================= 8. 筛选抽屉 ================= */
.mask {
  position: fixed; inset: 0;
  background: rgba(30, 12, 10, .45);
  z-index: 90;
  display: none;
  animation: fadeIn .2s;
}
.mask.show { display: block; }
@keyframes fadeIn { from { opacity: 0; } }
.drawer {
  /* v1.2.0：absolute 挂载于 .phone-screen（shell.js 将抽屉移出滚动区），
     top 显式指定避免解析为静态位置导致随内容滚动漂移；bottom:0 固定于手机屏底部 */
  position: absolute; left: 0; right: 0; bottom: 0; top: 22%;
  z-index: 95;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 0 0 env(safe-area-inset-bottom);
  transform: translateY(105%);
  transition: transform .25s ease;
  max-height: 78%;
  display: flex; flex-direction: column;
}
.drawer.show { transform: translateY(0); }
.drawer .dr-head {
  padding: 14px 18px 8px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--serif); font-size: 16px; font-weight: 700;
}
.drawer .dr-body { padding: 4px 18px 10px; overflow-y: auto; }
.drawer .dr-foot { padding: 10px 18px 16px; display: flex; gap: 10px; border-top: 1px solid var(--line-2); }
.drawer .dr-foot .btn { flex: 1; }
.filter-group { margin-top: 14px; }
.filter-group .fg-title { font-size: 13px; font-weight: 700; margin-bottom: 9px; display: flex; align-items: center; gap: 6px; }
.filter-group .fg-title::before { content: ""; width: 3px; height: 12px; background: var(--gold-grad); border-radius: 2px; }
.filter-group .fg-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-range { display: flex; align-items: center; gap: 8px; }
.filter-range input {
  flex: 1; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; width: 60px;
}
.filter-range .fr-s { color: var(--ink-3); }

/* 排序行 */
.sort-row { display: flex; gap: 6px; background: #fff; padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 15; }
.sort-row .chip-select { padding: 5px 12px; font-size: 12.5px; white-space: nowrap; }

/* ================= 9. 弹窗 / Toast ================= */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
}
.modal.show { display: flex; }
/* 手机端：弹窗/提示挂载于手机壳内（ui.js / shell 注入），absolute 限定在壳内，
   避免 fixed 全屏遮罩扩散到手机壳外边 */
body[data-app] .modal, body[data-app] .toast { position: absolute; }
.modal .m-mask { position: absolute; inset: 0; background: rgba(30, 12, 10, .5); }
.modal .m-box {
  position: relative;
  width: 300px; max-width: 86vw;
  background: #fff; border-radius: 16px;
  overflow: hidden;
  animation: popIn .2s ease;
  box-shadow: var(--shadow-2);
}
@keyframes popIn { from { transform: scale(.92); opacity: 0; } }
.modal .m-box::before {
  content: ""; display: block; height: 4px;
  background: var(--gold-grad);
}
/* v1.1.1：PC 端弹窗放大——后台默认 560px；wide 760px；xl 880px（小程序端保持原尺寸） */
body[data-admin] .modal .m-box { width: 560px; max-width: 92vw; }
body[data-admin] .modal-wide .m-box { width: 760px; max-width: 94vw; }
body[data-admin] .modal-xl .m-box { width: 880px; max-width: 94vw; }
.modal-wide .m-box { width: 760px; max-width: 94vw; }
.modal-xl .m-box { width: 880px; max-width: 94vw; }
/* v1.2.1：小程序端弹窗统一收窄到手机框架内（含 wide/xl 规格），长内容在弹窗内滚动 */
body[data-app] .modal .m-box { width: 320px; max-width: 88vw; }
body[data-app] .modal-wide .m-box, body[data-app] .modal-xl .m-box { width: 320px; max-width: 88vw; }
body[data-app] .modal .m-content { max-height: 62vh; overflow-y: auto; }
.modal .m-title { font-size: 17px; }
body[data-admin] .modal .m-title { font-size: 17px; padding: 18px 22px 8px; }
body[data-admin] .modal .m-content { padding: 8px 22px 18px; }
.modal .m-title { text-align: center; font-family: var(--serif); font-size: 16px; font-weight: 700; padding: 16px 18px 6px; }
.modal .m-content { padding: 6px 18px 16px; text-align: center; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.modal .m-actions { display: flex; border-top: 1px solid var(--line-2); }
.modal .m-actions button {
  flex: 1; padding: 12px; font-size: 14px; font-weight: 600;
  color: var(--ink-2);
}
.modal .m-actions button + button { border-left: 1px solid var(--line-2); }
.modal .m-actions button.m-confirm { color: var(--red); }
.modal .m-actions button.m-gold { color: var(--gold-deep); }

.toast {
  position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.9);
  background: rgba(40, 22, 18, .88); color: #fff;
  padding: 11px 20px; border-radius: 10px;
  font-size: 13.5px;
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: all .2s;
  max-width: 70vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast--ok::before { content: "✓ "; color: var(--gold-light); }

/* ================= 10. 手风琴 ================= */
.acc-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

/* ================= 8.5 信息卡片（我的供需/我的需求等「我的」列表通用） ================= */
.sup-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.sup-item:active { background: var(--red-bg); }
.sup-item .si-top { display: flex; align-items: center; gap: 8px; }
.sup-item .si-title { font-size: 14.5px; font-weight: 700; line-height: 1.5; margin-top: 10px; }
.sup-item .si-meta { font-size: 12px; color: var(--ink-3); margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.acc-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  cursor: pointer;
}
.acc-head .acc-title { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; }
.acc-head .acc-arrow { transition: transform .2s; color: var(--ink-3); flex: none; }
.acc-head .acc-arrow svg { width: 16px; height: 16px; display: block; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.acc-item.open .acc-arrow { transform: rotate(180deg); }
.acc-item.open .acc-head { border-bottom: 1px dashed var(--line); }

/* ================= 11. 轮播 ================= */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); }
.carousel .cr-track { display: flex; transition: transform .3s; }
.carousel .cr-slide { flex: none; width: 100%; }
.carousel .cr-slide img { width: 100%; height: 190px; object-fit: cover; display: block; }
.carousel .cr-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px;
}
.carousel .cr-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); transition: all .2s; }
.carousel .cr-dots i.on { width: 16px; background: #fff; }

/* ================= 12. 认证徽章 ================= */
.cert-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 5px;
}
.cert-badge svg { width: 13px; height: 13px; }
.cert-verified { background: var(--gold-grad); color: #4A3403; }
.cert-pending { background: var(--warn-bg); color: var(--warn); }
.cert-none { background: var(--line-2); color: var(--ink-3); }

/* ================= 13. 表单 ================= */
.form-item { margin-bottom: 14px; }
.form-item .fi-label { font-size: 13px; font-weight: 600; margin-bottom: 7px; display: flex; align-items: center; gap: 4px; }
.form-item .fi-label .req { color: var(--red); }
.form-item .fi-hint { font-size: 11px; color: var(--ink-3); margin-top: 5px; }
.fi-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-s);
  padding: 11px 13px;
  font-size: 14px;
  transition: border .15s;
}
.fi-input:focus { border-color: var(--red); }
textarea.fi-input { resize: none; line-height: 1.6; }
.fi-input.err { border-color: var(--red); background: var(--err-bg); }
.fi-select-wrap { position: relative; }
.fi-select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
select.fi-input { appearance: none; -webkit-appearance: none; padding-right: 34px; }
.chip-selects { display: flex; flex-wrap: wrap; gap: 8px; }

/* ================= 14. 富文本容器 ================= */
.rich { font-size: 14px; line-height: 1.85; color: #3A332E; }
.rich h1, .rich h2 { font-family: var(--serif); color: var(--ink); margin: 18px 0 8px; }
.rich h1 { font-size: 18px; } .rich h2 { font-size: 16px; }
.rich p { margin: 8px 0; text-indent: 2em; }
.rich ul { padding-left: 2.5em; margin: 8px 0; }
.rich ul li { list-style: disc; margin: 4px 0; }
.rich .rich-img {
  margin: 12px 0; border-radius: var(--radius-s); overflow: hidden;
  background: var(--line-2);
}
.rich .rich-img img { width: 100%; }

/* ================= 15. 聊天（AI 顾问） ================= */
.chat-wrap { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.chat-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 82%; }
.chat-msg .cm-avatar {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-family: var(--serif); font-weight: 700;
}
.chat-msg .cm-bubble {
  padding: 10px 13px; border-radius: 12px;
  font-size: 13.5px; line-height: 1.6;
  background: #fff; box-shadow: var(--shadow);
  border-top-left-radius: 3px;
  white-space: pre-wrap; word-break: break-all;
}
.chat-msg.cm-user { margin-left: auto; flex-direction: row-reverse; }
.chat-msg.cm-user .cm-bubble {
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: #fff; border-top-left-radius: 12px; border-top-right-radius: 3px;
}
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px; }
.chat-quick .chip-select { font-size: 12.5px; }
.chat-typing .cm-bubble { color: var(--ink-3); }
.chat-typing .cm-bubble i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); margin-right: 3px; animation: blink 1.2s infinite; }
.chat-typing .cm-bubble i:nth-child(2) { animation-delay: .2s; }
.chat-typing .cm-bubble i:nth-child(3) { animation-delay: .4s; margin-right: 0; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.chat-input-bar {
  flex: none;
  display: flex; gap: 8px; align-items: center;
  padding: 10px 14px;
  background: #fff; border-top: 1px solid var(--line);
}
.chat-input-bar input {
  flex: 1; border: 1px solid var(--line); border-radius: 20px;
  padding: 9px 14px; font-size: 13.5px;
}

/* ================= 16. 管理后台布局 ================= */
body[data-admin] { background: #F4F0E8; overflow: hidden; }
.admin-layout { display: flex; height: 100vh; min-width: 1200px; width: 1920px; margin: 0 auto; }
.admin-side {
  width: 200px; flex: none;
  color: #EDE3D0;
  display: flex; flex-direction: column;
  position: relative; z-index: 1;
}
.admin-side .as-logo {
  padding: 20px 14px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.admin-side .as-logo .seal { background: rgba(255,255,255,.1); color: var(--gold-light); border-color: var(--gold); }
.admin-side .as-name { font-family: var(--serif); font-size: 15px; letter-spacing: 1px; color: #fff; font-weight: 700; }
.admin-side .as-sub { font-size: 10px; letter-spacing: 1px; color: rgba(255,255,255,.5); }
.admin-menu { flex: 1; overflow-y: auto; padding: 10px 0 16px; }
.admin-menu .am-group {
  padding: 14px 20px 6px;
  font-size: 11px; color: rgba(255, 255, 255, .45); letter-spacing: 2px;
}
.admin-menu a {
  display: flex; align-items: center; gap: 10px;
  margin: 2px 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .82);
  transition: all .15s;
}
.admin-menu a svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.admin-menu a:hover { background: rgba(255, 255, 255, .08); }
.admin-menu a.on {
  background: rgba(232, 201, 122, .16);
  color: var(--gold-light);
  font-weight: 600;
  position: relative;
}
.admin-menu a.on::before {
  content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 2px;
  background: var(--gold-grad);
}
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-top {
  height: 56px; flex: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  box-shadow: 0 1px 8px rgba(142, 27, 37, .04);
  position: relative; z-index: 10;
}
.admin-top .at-crumb { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.admin-top .at-crumb b { color: var(--ink); font-weight: 600; }
.admin-top .at-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.admin-top .at-user { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.admin-top .at-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-grad); color: #4A3403;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 14px;
}
.admin-top .at-role { font-size: 11px; color: var(--gold-deep); background: var(--gold-pale); padding: 2px 8px; border-radius: 10px; }
/* v1.1.0 二级导航：一级分组可展开/收回 */
.admin-menu .am-group {
  cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between;
  transition: color .15s;
}
.admin-menu .am-group:hover { color: rgba(255, 255, 255, .7); }
.admin-menu .am-arrow { width: 13px; height: 13px; transition: transform .2s; opacity: .6; }
.admin-menu .am-group.open .am-arrow { transform: rotate(180deg); }
.admin-menu .am-items { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.admin-menu .am-items.open { max-height: 480px; }
/* v1.1.0 头像下拉：个人设置 / 退出登录 */
.admin-top .at-user { position: relative; }
.admin-top .at-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: #fff; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(20, 6, 8, .18);
  border: 1px solid var(--line);
  min-width: 200px; padding: 6px;
  display: none; z-index: 60;
}
.admin-top .at-dropdown.open { display: block; }
.admin-top .at-dropdown .ad-head { padding: 8px 12px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.admin-top .at-dropdown a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.admin-top .at-dropdown a svg { width: 15px; height: 15px; opacity: .7; }
.admin-top .at-dropdown a:hover { background: var(--red-bg); color: var(--red); }
.admin-top .at-dropdown .ad-divider { height: 1px; background: var(--line-2); margin: 5px 8px; }
/* v1.1.0 部门树 */
.dept-tree .dt-node {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; margin: 3px 0; border-radius: 9px;
  background: #fff; box-shadow: var(--shadow);
  font-size: 13.5px; cursor: pointer;
}
.dept-tree .dt-node .dt-toggle { width: 18px; height: 18px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); transition: transform .2s; }
.dept-tree .dt-node.open .dt-toggle { transform: rotate(90deg); }
.dept-tree .dt-children { margin-left: 26px; border-left: 1px dashed var(--line); padding-left: 12px; }
.dept-tree .dt-badge { margin-left: auto; font-size: 11px; color: var(--ink-3); background: var(--bg); padding: 2px 9px; border-radius: 10px; }
.dept-tree .dt-act { margin-left: 10px; color: var(--red); font-size: 12px; }
.admin-body { flex: 1; overflow-y: auto; padding: 20px 35px; }
/* 内容展示区域 1650 = 1920 - 200(侧边栏) - 35×2(间距) */
.admin-body > * { max-width: 1650px; }
.admin-panel {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.admin-panel .ap-title {
  font-family: var(--serif); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.admin-panel .ap-title::before {
  content: ""; width: 4px; height: 15px; border-radius: 2px;
  background: var(--gold-grad);
}
.admin-panel .ap-extra { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* 后台表格 */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left;
  background: var(--red-bg);
  color: var(--red-deep);
  font-weight: 700;
  padding: 10px 12px;
  white-space: nowrap;
  border-bottom: 2px solid var(--gold);
}
.tbl td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: middle;
}
.tbl tr:hover td { background: #FDF9F2; }
.tbl .td-title { color: var(--ink); font-weight: 600; }
.tbl .tbl-op { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.tbl .tbl-op a { color: var(--red); font-size: 12.5px; }
.tbl .tbl-op a.tbl-op-ghost { color: var(--ink-3); }

/* 分页 */
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.pagination button {
  min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff; color: var(--ink-2);
}
.pagination button.on { background: var(--red); border-color: var(--red); color: #fff; }
.pagination button:disabled { opacity: .4; }

/* 后台统计卡 */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ""; position: absolute; right: -18px; bottom: -18px;
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--red-bg);
}
.stat-card .sc-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.stat-card .sc-icon svg { width: 22px; height: 22px; }
.stat-card .sc-val { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-card .sc-name { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.stat-card .sc-trend { font-size: 11px; color: var(--ok); margin-top: 3px; }

/* 后台标签页 */
.admin-tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.admin-tabs button {
  padding: 9px 18px; font-size: 13.5px; color: var(--ink-2);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  font-weight: 600;
}
.admin-tabs button.on { color: var(--red); border-bottom-color: var(--red); }

/* 表单两列（后台） */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }

/* ================= 17. 数据大屏 ================= */
body[data-screen] { background: #12060A; overflow: hidden; }
.screen-stage {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.screen-canvas {
  width: 1920px; height: 1080px;
  position: relative;
  overflow: hidden;
  transform-origin: center center;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(201, 160, 99, .10) 0%, transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(179, 36, 44, .25) 0%, transparent 65%),
    linear-gradient(165deg, #2A0E13 0%, #170709 55%, #0D0306 100%);
  color: #EDE3D0;
  font-family: var(--sans);
}
.screen-canvas::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--pattern-cloud);
  pointer-events: none;
}
.screen-head {
  height: 96px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border-bottom: 1px solid rgba(201, 160, 99, .3);
  margin: 0 24px;
}
.screen-head::after {
  content: ""; position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%);
  width: 340px; height: 5px; border-radius: 3px;
  background: var(--gold-grad);
}
.screen-head .sh-title {
  font-family: var(--serif);
  font-size: 40px; font-weight: 800; letter-spacing: 8px;
  background: linear-gradient(180deg, #F5E3B8, #C9A063 70%, #A87B2E);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(232, 201, 122, .25);
}
.screen-head .sh-sub { text-align: center; font-size: 13px; letter-spacing: 4px; color: rgba(237, 227, 208, .55); margin-top: 6px; }
.screen-head .sh-time { position: absolute; right: 10px; top: 16px; font-size: 15px; letter-spacing: 2px; color: rgba(237, 227, 208, .7); font-variant-numeric: tabular-nums; }
.screen-head .sh-corner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--gold); opacity: .8; }
.sh-corner--tl { left: -24px; top: 18px; border-right: none; border-bottom: none; }
.sh-corner--tr { right: -24px; top: 18px; border-left: none; border-bottom: none; }
.screen-head .sh-back {
  position: absolute; left: 4px; top: 26px;
  font-size: 13px; color: rgba(237, 227, 208, .6);
  display: flex; align-items: center; gap: 4px;
}
.screen-body { position: absolute; inset: 108px 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.screen-kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.screen-kpi {
  border: 1px solid rgba(201, 160, 99, .25);
  background: linear-gradient(180deg, rgba(201, 160, 99, .08), rgba(201, 160, 99, .02));
  border-radius: 12px;
  padding: 14px 20px;
  position: relative;
  overflow: hidden;
}
.screen-kpi::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--gold-grad); }
.screen-kpi .sk-name { font-size: 14px; color: rgba(237, 227, 208, .6); letter-spacing: 2px; }
.screen-kpi .sk-val { font-size: 38px; font-weight: 800; margin-top: 6px; color: #F5E3B8; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.screen-kpi .sk-val em { font-style: normal; font-size: 17px; font-weight: 400; margin-left: 3px; }
.screen-kpi .sk-extra { font-size: 12px; color: rgba(237, 227, 208, .45); margin-top: 5px; }
.screen-panel {
  border: 1px solid rgba(201, 160, 99, .25);
  background: linear-gradient(180deg, rgba(201, 160, 99, .06), rgba(201, 160, 99, .015));
  border-radius: 12px;
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.screen-panel .sp-title {
  height: 42px; flex: none;
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
  font-family: var(--serif); font-size: 17px; letter-spacing: 2px;
  color: #E8C97A;
  border-bottom: 1px solid rgba(201, 160, 99, .15);
}
.screen-panel .sp-title::before {
  content: ""; width: 4px; height: 14px;
  background: var(--gold-grad); border-radius: 2px;
}
.screen-panel .sp-title .sp-tabs { margin-left: auto; display: flex; gap: 4px; }
.screen-panel .sp-title .sp-tabs button {
  font-size: 12.5px; color: rgba(237, 227, 208, .5);
  padding: 3px 10px; border-radius: 4px;
  font-family: var(--sans); letter-spacing: 1px;
}
.screen-panel .sp-title .sp-tabs button.on { background: rgba(232, 201, 122, .18); color: #E8C97A; }
.screen-panel .sp-body { flex: 1; min-height: 0; position: relative; padding: 12px 14px; }
.screen-row { display: grid; gap: 14px; }
.screen-grid-3 { grid-template-columns: 2fr 1.2fr 1.2fr; }
.screen-grid-2 { grid-template-columns: 1fr 1fr; }
.screen-grid-33 { grid-template-columns: 1.4fr 1fr 1.4fr; }

/* ================= 18. 地图容器 ================= */
.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #F4EFE6, #EDE5D6);
  border: 1px solid var(--line);
}
.map-wrap svg { display: block; width: 100%; height: 100%; }
.map-town { transition: fill .2s, filter .2s; cursor: pointer; }
.map-town:hover { filter: brightness(1.08); }
.map-pin { cursor: pointer; }
.map-tip {
  position: absolute;
  background: #fff; border-radius: 10px;
  box-shadow: var(--shadow-2);
  padding: 10px 12px;
  font-size: 12px;
  pointer-events: none;
  z-index: 20;
  display: none;
  min-width: 120px;
}
.map-tip.show { display: block; }
.map-tip .mt-title { font-weight: 700; font-size: 13px; }
.map-tip .mt-row { color: var(--ink-2); margin-top: 3px; }
.map-ctrl {
  position: absolute; left: 10px; bottom: 10px; z-index: 15;
  display: flex; flex-direction: column; gap: 6px;
}
.map-ctrl button {
  width: 30px; height: 30px; border-radius: 8px;
  background: #fff; box-shadow: var(--shadow);
  font-size: 16px; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}

/* ================= 20. 时间轴 ================= */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .tl-item { position: relative; padding: 0 0 18px 14px; }
.timeline .tl-item::before {
  content: ""; position: absolute; left: -18px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--red);
}
.timeline .tl-item.tl-gold::before { border-color: var(--gold-deep); }
.timeline .tl-date { font-size: 11.5px; color: var(--ink-3); }
.timeline .tl-text { font-size: 13.5px; margin-top: 2px; }

/* ================= 21. 空状态 / 加载 ================= */
.empty {
  padding: 46px 0; text-align: center; color: var(--ink-3); font-size: 13px;
}
.empty svg { width: 54px; height: 54px; opacity: .4; margin: 0 auto 10px; display: block; }
.skeleton {
  background: linear-gradient(90deg, var(--line-2) 25%, #F7F2E9 37%, var(--line-2) 63%);
  background-size: 400% 100%;
  animation: sk 1.3s infinite;
  border-radius: 8px;
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ================= 22. 原型标注水印 ================= */
.proto-note {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: var(--info);
  background: var(--info-bg);
  padding: 2px 8px; border-radius: 4px;
  vertical-align: middle;
}

/* ================= 23. 数字人 / VR ================= */
.dh-stage {
  position: relative; border-radius: var(--radius);
  overflow: hidden; background: #1A0D10;
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
}
.dh-stage .dh-figure { font-size: 90px; filter: drop-shadow(0 0 30px rgba(232, 201, 122, .35)); animation: dhFloat 3.5s ease-in-out infinite; }
@keyframes dhFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.dh-subtitle {
  position: absolute; left: 16px; right: 16px; bottom: 40px;
  text-align: center; color: #F5E3B8; font-size: 13.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
  min-height: 44px;
}
.dh-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75));
  display: flex; align-items: center; gap: 10px;
}
.dh-controls .dh-play { color: #F5E3B8; }
.dh-controls .dh-play svg { width: 24px; height: 24px; }
.dh-controls .dh-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.dh-controls .dh-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--gold-grad); transition: width .3s; }

.vr-stage {
  position: relative; border-radius: var(--radius);
  overflow: hidden; background: #12100C;
  touch-action: none; user-select: none;
}
.vr-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: rgba(0, 0, 0, .55); color: #F5E3B8;
  font-size: 11.5px; padding: 6px 14px; border-radius: 16px;
  pointer-events: none; white-space: nowrap;
}
.vr-hot {
  position: absolute; transform: translate(-50%, -50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid #F5E3B8;
  background: rgba(179, 36, 44, .75);
  color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  animation: vrPulse 1.8s infinite;
  cursor: pointer;
}
@keyframes vrPulse { 0% { box-shadow: 0 0 0 0 rgba(245, 227, 184, .5); } 100% { box-shadow: 0 0 0 14px rgba(245, 227, 184, 0); } }

/* ================= 24. OCR 扫描 ================= */
.ocr-stage {
  position: relative; border-radius: var(--radius);
  overflow: hidden;
  background: #171310;
  aspect-ratio: 16 / 11;
  display: flex; align-items: center; justify-content: center;
}
.ocr-stage .ocr-doc {
  width: 72%; border-radius: 8px; overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.ocr-stage .ocr-scan {
  position: absolute; left: 0; right: 0; height: 34%;
  top: 0;
  background: linear-gradient(180deg, rgba(201, 160, 99, 0), rgba(232, 201, 122, .5), rgba(201, 160, 99, 0));
  animation: ocrScan 2.2s ease-in-out infinite;
}
@keyframes ocrScan { 0% { top: -34%; } 100% { top: 100%; } }

/* ================= 25. 原型总览页 ================= */
body.overview-page { padding: 0; background: var(--bg); }
.ov-hero {
  padding: 44px 40px 46px;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.ov-hero .ov-title { font-family: var(--serif); font-size: 34px; letter-spacing: 6px; font-weight: 800; position: relative; z-index: 2; }
.ov-hero .ov-sub { margin-top: 10px; font-size: 14px; letter-spacing: 3px; opacity: .8; position: relative; z-index: 2; }
.ov-hero .ov-tags { margin-top: 18px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; }
.ov-hero .ov-tags span {
  border: 1px solid rgba(232, 201, 122, .5); color: var(--gold-light);
  padding: 5px 14px; border-radius: 16px; font-size: 12px; letter-spacing: 1px;
}
.ov-section { max-width: 1240px; margin: 26px auto; padding: 0 32px; }
.ov-section .os-title {
  font-family: var(--serif); font-size: 21px; font-weight: 800;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.ov-section .os-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.ov-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.ov-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 14px;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
  position: relative;
}
.ov-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.ov-card .oc-icon {
  width: 40px; height: 40px; margin: 0 auto 10px;
  border-radius: 12px; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ov-card .oc-icon svg { width: 21px; height: 21px; }
.ov-card .oc-name { font-size: 14px; font-weight: 700; }
.ov-card .oc-file { font-size: 11px; color: var(--ink-3); margin-top: 3px; font-family: Consolas, monospace; }
.ov-foot { text-align: center; padding: 8px 0 40px; color: var(--ink-3); font-size: 12.5px; }

/* ================= 26. 小工具 ================= */
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.page-body { padding: 14px 16px 20px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }
