/* BIM 应用 · 大屏页样式（与驾驶舱同族蓝底，独立命名空间不与 cockpit.css 混用） */
:root{
  --bg0:#0f2033; --bg1:#132841; --bg2:#1d3a5f;
  --cyan:#4fd1ff; --cyan-dim:#2b8fb8;
  --amber:#ffb454; --green:#5be3a7; --red:#ff7a7a;
  --txt:#dcecff; --txt-dim:#8fb4d8;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  background:radial-gradient(1200px 700px at 50% -10%, var(--bg2), var(--bg1) 55%, var(--bg0));
  color:var(--txt); font-family:"Microsoft YaHei","PingFang SC",sans-serif; overflow:hidden;
}

/* ---- 顶部导航（与驾驶舱同构） ---- */
#topbar{
  position:fixed; top:0; left:0; right:0; z-index:30; text-align:center;
  padding:10px 0 8px; pointer-events:none;
  background:linear-gradient(180deg, rgba(10,22,38,.92), rgba(10,22,38,.55) 70%, transparent);
}
#topbar .tline{display:inline-block; vertical-align:middle; height:2px; width:150px;
  background:linear-gradient(90deg,transparent,var(--cyan-dim)); margin:0 12px}
#topbar .tline.r{transform:scaleX(-1)}
#topbar h1{
  display:inline-block; vertical-align:middle; font-size:26px; letter-spacing:5px; font-weight:700;
  background:linear-gradient(180deg,#eaffff,#6fd4ff 70%,#3aa4d8);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
#navRow{margin-top:6px; pointer-events:auto}
.navbtn{
  margin:0 6px; padding:7px 20px; border-radius:20px; cursor:pointer; font-size:13px; letter-spacing:2px;
  color:#eaffff; background:rgba(43,143,184,.35); border:1px solid rgba(79,209,255,.45);
  text-decoration:none; display:inline-block; transition:box-shadow .18s, border-color .18s;
  font-family:inherit;
}
.navbtn:hover{border-color:var(--cyan); box-shadow:0 0 14px rgba(79,209,255,.35)}
/* 当前页高亮：实底蓝 + 发光，一眼可辨（2026-10-18e 锋哥反馈"按钮高亮不行"） */
.navbtn.active{background:linear-gradient(180deg,#2a7de0,#1a559f); border-color:#5fc8ff;
  color:#fff; box-shadow:0 0 12px rgba(79,195,255,.55)}
/* 驾驶舱面板"展开中"按压态：与当前页高亮区分（描边亮、底色淡） */
#btnPanels.active{background:rgba(79,209,255,.18); border-color:var(--cyan);
  box-shadow:inset 0 0 8px rgba(79,209,255,.35)}

/* ---- BIM 工具区（嵌入档 2 viewer：无横幅、无自带侧栏；让出顶栏 100px / 状态条 40px，
        模型直接铺在蓝色背景上——与第一页工地全景同构布局） ---- */
#bimFrame{
  position:fixed; top:100px; left:0; right:0; bottom:40px;
  /* 关键修正（2026-10-18f）：iframe 属替换元素，width/height:auto 会退回固有尺寸 300×150，
     left/right/top/bottom 约束不撑开尺寸——必须显式给满宽高，模型才能铺满中间 */
  width:100%; height:calc(100% - 140px);
  border:0; background:transparent;
}

/* ---- BIM 驾驶舱面板（左侧停靠栏 372px，与第一页驾驶舱面板同位异侧镜像；
        top:100 / bottom:40 与 iframe 对齐，z-index 35 浮于自身文档层；
        viewer 自带 BIM 工具条已移至右上，互不压盖） ---- */
#bimPanels{
  position:fixed; top:100px; left:0; bottom:40px; width:372px; z-index:35;
  overflow-y:auto; padding:10px 12px; display:none;
  /* 滚动条细化（2026-10-18e 锋哥：边上那条位置条小一点，和右边细滚动条一样） */
  scrollbar-width:thin; scrollbar-color:rgba(79,209,255,.35) transparent;
}
#bimPanels::-webkit-scrollbar{width:4px}
#bimPanels::-webkit-scrollbar-track{background:transparent}
#bimPanels::-webkit-scrollbar-thumb{background:rgba(79,209,255,.35); border-radius:2px}
#bimPanels::-webkit-scrollbar-thumb:hover{background:rgba(79,209,255,.6)}
body.panels-on #bimPanels{display:block}
.panel{
  border:1px solid rgba(79,209,255,.3); border-radius:10px; margin-bottom:10px;
  background:linear-gradient(160deg, rgba(29,58,95,.88), rgba(15,32,51,.92));
  box-shadow:0 8px 22px rgba(0,0,0,.4); padding:10px 12px;
}
.panel h2{font-size:13px; letter-spacing:2px; color:var(--cyan); margin-bottom:8px;
  display:flex; align-items:center; gap:8px}
.panel h2 i{display:inline-block; width:8px; height:8px; background:var(--cyan);
  transform:rotate(45deg); box-shadow:0 0 8px var(--cyan)}
.panel .kv{display:flex; justify-content:space-between; font-size:12.5px; padding:4px 0; color:var(--txt)}
.panel .kv b{color:#eaffff; font-weight:600}
.panel .dim{color:var(--txt-dim); font-size:12px}
.barrow{margin:5px 0}
.barrow .lb{display:flex; justify-content:space-between; font-size:12px; color:var(--txt-dim)}
.barrow .tr{height:7px; border-radius:4px; background:rgba(255,255,255,.08); margin-top:3px; overflow:hidden}
.barrow .tr i{display:block; height:100%; border-radius:4px;
  background:linear-gradient(90deg,var(--cyan-dim),var(--cyan))}
.issue{border-top:1px dashed rgba(143,180,216,.25); padding:6px 0; font-size:12.5px}
.issue:first-of-type{border-top:0}
.issue .t{color:#eaffff}
.issue .m{color:var(--txt-dim); font-size:11.5px; margin-top:2px}
.st{padding:1px 7px; border-radius:9px; font-size:11px; margin-right:6px}
.st.OPEN{color:var(--red); border:1px solid rgba(255,122,122,.55)}
.st.RECTIFYING{color:var(--amber); border:1px solid rgba(255,180,84,.55)}
.st.CLOSED{color:var(--green); border:1px solid rgba(91,227,167,.55)}
.mdlswitch{margin-top:6px}
.mdlswitch button{
  margin-right:6px; padding:3px 12px; border-radius:12px; font-size:12px; cursor:pointer;
  color:var(--txt); background:rgba(43,143,184,.3); border:1px solid rgba(79,209,255,.4);
  font-family:inherit;
}
.mdlswitch button.active{background:rgba(79,209,255,.3); border-color:var(--cyan); color:#eaffff}

/* ---- 监理作业台：检索行 / 快速定位 / 作业动作 / 检索结果 ---- */
.searchrow{display:flex; gap:6px; align-items:stretch; margin-bottom:7px}
.searchrow input{
  flex:1; min-width:0; padding:6px 10px; font-size:12.5px; font-family:inherit; color:var(--txt);
  background:rgba(10,22,38,.7); border:1px solid rgba(79,209,255,.35); border-radius:6px; outline:none;
}
.searchrow input:focus{border-color:var(--cyan); box-shadow:0 0 8px rgba(79,209,255,.25)}
.searchrow input::placeholder{color:#6f93b5}
.pbtn{
  padding:6px 14px; border-radius:6px; font-size:12.5px; cursor:pointer; font-family:inherit;
  color:#eaffff; background:linear-gradient(180deg,rgba(43,143,184,.5),rgba(27,90,140,.5));
  border:1px solid rgba(79,209,255,.5); text-decoration:none; display:inline-block; white-space:nowrap;
  transition:box-shadow .16s, border-color .16s;
}
.pbtn:hover{border-color:var(--cyan); box-shadow:0 0 12px rgba(79,209,255,.35)}
.pbtn.gray{background:rgba(143,180,216,.16); border-color:rgba(143,180,216,.4); color:var(--txt-dim)}
.pbtn.gray:hover{border-color:var(--txt-dim); box-shadow:none}
.quickrow{display:flex; flex-wrap:wrap; gap:5px; align-items:center; margin-bottom:7px}
.quickrow .qlab{font-size:11.5px; color:var(--txt-dim)}
.quickrow button{
  padding:2px 10px; border-radius:11px; font-size:11.5px; cursor:pointer; font-family:inherit;
  color:var(--txt); background:rgba(43,143,184,.28); border:1px solid rgba(79,209,255,.35);
}
.quickrow button:hover{background:rgba(79,209,255,.3); border-color:var(--cyan); color:#eaffff}
/* 作业动作：2×2 大按钮，监理一眼找到 */
.actgrid{display:grid; grid-template-columns:1fr 1fr; gap:7px}
.actbtn{
  text-align:left; padding:8px 10px; border-radius:8px; cursor:pointer; font-family:inherit;
  background:linear-gradient(160deg,rgba(29,58,95,.7),rgba(15,32,51,.85));
  border:1px solid rgba(79,209,255,.3); color:var(--txt);
  transition:transform .16s, border-color .16s, box-shadow .16s;
}
.actbtn:hover{transform:translateY(-2px); border-color:var(--cyan); box-shadow:0 6px 16px rgba(0,0,0,.4), 0 0 14px rgba(79,209,255,.2)}
.actbtn b{display:block; font-size:13px; color:#eaffff; letter-spacing:1px; margin-bottom:2px}
.actbtn span{display:block; font-size:11px; color:var(--txt-dim); line-height:1.5}
/* 作业动作提示条（内联，不用 alert 打断大屏） */
.notice{
  margin-top:8px; padding:8px 10px; border-radius:6px; font-size:11.5px; line-height:1.75;
  color:#ffd9a0; background:rgba(255,180,84,.1); border:1px solid rgba(255,180,84,.32);
}
/* 检索结果条目 */
.hit{border-top:1px dashed rgba(143,180,216,.25); padding:5px 0; font-size:12.5px; cursor:pointer}
.hit:first-of-type{border-top:0}
.hit:hover .ht{color:var(--cyan)}
.hit .ht{color:#eaffff}
.hit .hm{color:var(--txt-dim); font-size:11.5px; margin-top:1px}
.hit .tag{display:inline-block; padding:0 6px; border-radius:9px; font-size:11px; margin-right:5px;
  background:rgba(79,209,255,.16); color:#9fd8f5; border:1px solid rgba(79,209,255,.3)}
.hit .tag.struct{background:rgba(91,227,167,.14); color:var(--green); border-color:rgba(91,227,167,.3)}
.hit .tag.mep{background:rgba(255,180,84,.14); color:var(--amber); border-color:rgba(255,180,84,.3)}
.hitmore{text-align:center; font-size:11.5px; color:var(--cyan); padding-top:5px; cursor:pointer}
.hitmore:hover{text-decoration:underline}

/* ---- 底部状态条 ---- */
#statusbar{
  position:fixed; left:0; right:0; bottom:0; z-index:30; display:flex; gap:18px; align-items:center;
  padding:5px 14px; font-size:12px; color:var(--txt-dim);
  background:linear-gradient(0deg, rgba(10,22,38,.92), rgba(10,22,38,.5) 80%, transparent);
  pointer-events:none;
}

/* 外链服务未启动时的按钮态（2026-10-22）：点击不再无反应，置灰 + 提示原因 */
.pbtn.extoff,
.navbtn.extoff {
  opacity: .42;
  filter: grayscale(1);
  cursor: not-allowed;
  position: relative;
}
.pbtn.extoff::after,
.navbtn.extoff::after {
  content: "未启动";
  position: absolute;
  top: -7px;
  right: -6px;
  font-size: 9px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
  background: #b4541c;
  color: #fff;
  pointer-events: none;
}
