/* ===========================================================================
 * C 端展示页（viewer.html）
 * 深蓝科技风：面板 rgba(10,22,40,.9) + 1px 蓝边 + 毛玻璃，强调色 #ffd54f
 * =========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%; overflow: hidden; position: fixed;
  overscroll-behavior: none; -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #0a1628; color: #fff;
}
button, input, select { font-family: inherit; }

#view3d { position: fixed; inset: 0; z-index: 1; }
#view3d canvas { display: block !important; width: 100% !important; height: 100% !important; }

/* ============================= 启动序列 ============================= */
#bootSeq {
  position: fixed; inset: 0; z-index: 30000; overflow: hidden;
  background: #eceeec; color: #101418;
  transition: opacity .78s cubic-bezier(.4, 0, .2, 1); will-change: opacity;
}
#bootSeq.gone { opacity: 0; pointer-events: none; }
#bootSeq .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.bs-bg {
  position: absolute; inset: -8%;
  background:
    radial-gradient(58% 48% at 20% 20%, rgba(255,255,255,.96), transparent 62%),
    radial-gradient(52% 58% at 84% 80%, rgba(255,255,255,.82), transparent 64%),
    linear-gradient(102deg, #e6e9e7 0%, #f8f9f8 26%, #e2e5e3 47%, #f5f6f5 68%, #e6e9e7 100%);
}
.bs-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background:
    repeating-linear-gradient(0deg, rgba(16,20,24,.055) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(16,20,24,.016) 0 1px, transparent 1px 4px);
}
.bs-watermark {
  position: absolute; left: -3%; top: 46%; transform: translateY(-50%);
  font-size: 17vw; font-weight: 800; letter-spacing: -.05em; line-height: .8;
  color: rgba(16,20,24,.042); white-space: nowrap; pointer-events: none; user-select: none;
}
.bs-hex {
  position: absolute; right: 34px; top: 62px; width: 196px; height: 62%;
  text-align: right; white-space: pre; overflow: hidden;
  font: 9px/1.62 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: rgba(16,20,24,.26); pointer-events: none;
}
.bs-top { position: absolute; left: 40px; right: 40px; top: 30px; display: flex; justify-content: space-between; align-items: flex-start; }
.bs-brand .l1 { font-size: 26px; font-weight: 800; letter-spacing: .015em; line-height: 1; }
.bs-brand .l2 { margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: .18em; color: #2d343b; }
.bs-brand .l3 { margin-top: 2px; font-size: 22px; font-weight: 800; letter-spacing: .01em; line-height: 1.06; }
.bs-skip {
  font: 10.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .24em; color: #2d343b; cursor: pointer; padding: 5px 2px;
  user-select: none; transition: color .18s;
}
.bs-skip:hover { color: #ff6a13; }
.bs-rev {
  position: absolute; left: 40px; top: 116px;
  font: 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .16em; color: #4d555d; display: flex; gap: 16px; align-items: center;
}
.bs-segs { display: flex; gap: 5px; margin-top: 14px; }
.bs-segs i { width: 24px; height: 2px; background: rgba(16,20,24,.15); transition: background .3s; }
.bs-segs i.on { background: #ff6a13; }

.bs-stage {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: min(900px, 94vw); display: flex; flex-direction: column; align-items: center; text-align: center;
}
.bs-stage::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 118%; height: 190%; pointer-events: none;
  background: radial-gradient(50% 45% at 50% 50%, rgba(242,244,243,.94) 0%, rgba(242,244,243,.72) 45%, transparent 72%);
}
.bs-ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(600px, 82vw); height: min(600px, 82vw); pointer-events: none;
}
.bs-ring svg { width: 100%; height: 100%; display: block; overflow: visible; }
#bsRot { transform-origin: 180px 180px; animation: bsSpin 26s linear infinite; }
@keyframes bsSpin { to { transform: rotate(360deg); } }
#bsArc { transition: stroke-dashoffset .5s ease; }
.bs-ttl {
  position: relative; font-size: clamp(19px, 2.9vw, 34px); font-weight: 700;
  letter-spacing: .12em; line-height: 1.25; text-indent: .12em;
}
.bs-num {
  position: relative; margin-top: 13px;
  font: 700 clamp(32px, 4.6vw, 56px)/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .01em; font-variant-numeric: tabular-nums; color: #101418; transition: opacity .3s ease;
}
.bs-num i { font-style: normal; font-size: .4em; font-weight: 600; margin-left: 3px; opacity: .5; }
.bs-rule { position: relative; width: min(420px, 62vw); height: 1px; margin: 18px 0 15px; background: rgba(16,20,24,.22); }
.bs-ttl.flip { animation: bsFlip .45s ease both; }
@keyframes bsFlip { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bs-en {
  position: relative; font: 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .3em; color: #6a737b;
}
.bs-band {
  display: none; position: relative; margin-top: 6px; padding: 6px 16px;
  background: #101418; color: #eceeec; font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 700; letter-spacing: .02em; max-width: 92vw;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bs-band.show { display: block; }
.bs-mark { position: relative; width: 56px; height: 30px; margin-top: 18px; opacity: .75; }
.bs-bars { position: absolute; left: 40px; bottom: 92px; display: flex; gap: 5px; align-items: flex-end; height: 26px; }
.bs-bars i { width: 3px; height: 100%; background: rgba(16,20,24,.3); animation: bsBar 1.1s ease-in-out infinite alternate; }
@keyframes bsBar { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.bs-foot { position: absolute; left: 40px; right: 40px; bottom: 46px; }
.bs-count { font-size: 10px; letter-spacing: .2em; color: #6a737b; margin-bottom: 6px; }
.bs-cn { font-size: 14px; font-weight: 600; color: #2d343b; }
.bs-en2 { margin-top: 4px; font-size: 9.5px; letter-spacing: .2em; color: #8a9299; }
.bs-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(16,20,24,.1); }
.bs-bar i { display: block; height: 100%; width: 0; background: #ff6a13; transition: width .3s ease; }

/* ============================= 加载层 ============================= */
.loading-overlay {
  position: fixed; inset: 0; z-index: 900; background: #0a1628;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .5s;
}
.loading-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-spinner {
  width: 40px; height: 40px; border: 3px solid rgba(100,180,255,.2);
  border-top-color: #64b5f6; border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { margin-top: 12px; font-size: 13px; color: #8bb8e0; }
.loading-progress-bar { margin-top: 14px; width: 180px; height: 4px; background: rgba(100,180,255,.1); border-radius: 2px; overflow: hidden; }
.loading-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #3a7bd5, #64b5f6); transition: width .3s ease; }
.loading-sub { margin-top: 6px; font-size: 11px; color: #5a7a9a; text-align: center; }

/* ============================= 顶栏 ============================= */
.top-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 12px 16px;
  background: linear-gradient(180deg, rgba(10,22,40,.85) 0%, rgba(10,22,40,0) 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.top-bar > * { pointer-events: auto; }
.project-title {
  font-size: 17px; font-weight: 600; letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 40vw;
}
.top-bar-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; max-width: 78%; }
.fp-viewer-btn {
  padding: 6px 14px; border: none; border-radius: 8px; color: #fff; font-size: 13px;
  cursor: pointer; white-space: nowrap; background: linear-gradient(135deg, #9b59b6, #8e44ad);
  transition: filter .15s, transform .15s;
}
.fp-viewer-btn:hover { filter: brightness(1.12); }
.fp-viewer-btn:active { transform: scale(.96); }
.fp-viewer-btn.bi { background: linear-gradient(135deg, #3498db, #2980b9); }
.fp-viewer-btn.pt { background: linear-gradient(135deg, #3498db, #2980b9); }
.fp-viewer-btn.dl { background: linear-gradient(135deg, #27ae60, #1e8449); }
#btnShowPanoramas { background: linear-gradient(135deg, #3498db, #2980b9); }
#btnShowVideos { background: linear-gradient(135deg, #e74c3c, #c0392b); }
#btnShowOfficialDocs { background: linear-gradient(135deg, #1abc9c, #16a085); }

/* ============================= 楼盘资料卡 ============================= */
.bi-overlay { position: fixed; inset: 0; z-index: 9000; display: none; pointer-events: none; }
.bi-overlay.show { display: block; }
.bi-box {
  position: absolute; left: 16px; bottom: 164px; width: 276px; max-width: calc(100vw - 32px);
  height: auto; max-height: min(64vh, 620px);
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(160deg, rgba(24,30,36,.96) 0%, rgba(12,17,22,.97) 100%);
  border: 1px solid rgba(255,255,255,.09); border-radius: 14px;
  box-shadow: 0 14px 42px rgba(0,0,0,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}
.bi-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 6px; flex-shrink: 0; }
.bi-tabs { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; flex-wrap: wrap; }
.bi-tab-cap { font-size: 11px; color: #77848f; letter-spacing: 2px; margin-right: 4px; }
.bi-tab {
  padding: 4px 9px; border: none; border-radius: 6px; background: none;
  color: #8b98a3; font-size: 11px; cursor: pointer; letter-spacing: 1px;
}
.bi-tab:hover { color: #cbd5dc; }
.bi-tab.active { background: rgba(74,222,128,.16); color: #4ade80; font-weight: 600; }
.bi-head .close-btn { background: none; border: none; color: #8b98a3; font-size: 20px; cursor: pointer; line-height: 1; padding: 0 2px; }
.bi-head .close-btn:hover { color: #fff; }
.bi-content { padding: 4px 16px 16px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.bi-content::-webkit-scrollbar { width: 5px; }
.bi-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.bi-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.bi-row:last-of-type { border-bottom: none; }
.bi-section { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; font-size: 10px; color: #8b98a3; letter-spacing: 3px; }
.bi-section::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.11); }
.bi-row-label { flex: 0 0 auto; font-size: 12px; color: #8b98a3; letter-spacing: 2px; white-space: nowrap; }
.bi-row-right { text-align: right; min-width: 0; }
.bi-row-value { font-size: 14px; font-weight: 700; color: #f2f6f8; line-height: 1.4; word-break: break-word; }
.bi-row-value.bi-hl { color: #4ade80; }
.bi-row-value.bi-sm { font-size: 12px; }
.bi-row-sub { font-size: 11px; color: #75838e; line-height: 1.4; margin-top: 3px; }
.bi-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.09); font-size: 11px; line-height: 1.7; color: #8b98a3; white-space: pre-wrap; word-break: break-word; }
.bi-note-title { color: #aab6bf; font-weight: 600; margin-bottom: 4px; }
.bi-empty { text-align: center; color: #75838e; padding: 32px 10px; font-size: 12px; line-height: 1.8; }
.bi-actions { display: flex; gap: 8px; margin-top: 12px; }
.bi-btn {
  flex: 1; padding: 8px 0; border-radius: 8px; cursor: pointer; font-size: 12px;
  background: rgba(74,222,128,.14); border: 1px solid rgba(74,222,128,.45); color: #4ade80;
}
.bi-btn:hover { background: rgba(74,222,128,.24); color: #fff; }

/* ============================= 通用弹窗（户型图 / 资料 / 全景 / 视频） ============================= */
.fp-viewer-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.fp-viewer-overlay.show { display: flex; }
.fp-viewer-box {
  width: 90%; max-width: 620px; max-height: 85vh; background: #1a2a4a;
  border-radius: 16px; border: 1px solid rgba(100,180,255,.15);
  display: flex; flex-direction: column; overflow: hidden;
}
.fp-viewer-box.narrow { max-width: 700px; }
.fp-viewer-head { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(100,180,255,.1); }
.fp-viewer-head h3 { font-size: 16px; color: #a0d4ff; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.fp-sub { font-size: 11px; color: #6f8fb0; font-weight: 400; }
.fp-viewer-head .close-btn { background: none; border: none; color: #8bb8e0; font-size: 20px; cursor: pointer; }
.fp-viewer-head .close-btn:hover { color: #fff; }
.fp-viewer-content { padding: 20px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; flex: 1; min-height: 0; }
.fp-viewer-content.col { display: flex; flex-direction: column; gap: 12px; }
.fp-viewer-foot { padding: 12px 20px; border-top: 1px solid rgba(100,180,255,.1); display: flex; justify-content: center; align-items: center; gap: 12px; }
.fp-foot-label { color: #8bb8e0; font-size: 12px; }
.fp-back-btn {
  padding: 8px 24px; border-radius: 8px; border: none; color: #fff; font-size: 13px; cursor: pointer;
  background: linear-gradient(135deg, #3498db, #2980b9);
}
.fp-back-btn:hover { background: linear-gradient(135deg, #2980b9, #3498db); }
.fp-viewer-item {
  background: rgba(15,30,55,.8); border-radius: 10px; overflow: hidden; display: flex;
  flex-direction: column; cursor: pointer; position: relative; min-height: 220px;
  border: 1px solid rgba(100,180,255,.12); transition: border-color .15s, transform .15s;
}
.fp-viewer-item:hover { border-color: rgba(100,180,255,.5); transform: translateY(-2px); }
.fp-viewer-item img { width: 100%; height: 140px; object-fit: contain; display: block; background: rgba(0,0,0,.3); }
.fp-viewer-item .fp-info { padding: 8px; min-height: 66px; display: flex; flex-direction: column; gap: 3px; }
.fp-viewer-item .fp-name { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-viewer-item .fp-meta { font-size: 11px; color: #8bb8e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-link-btn {
  display: block; margin-top: 4px; padding: 4px 8px; border-radius: 4px;
  background: rgba(100,180,255,.15); color: #64b4ff; font-size: 11px; text-align: center;
  border: 1px solid rgba(100,180,255,.2); cursor: pointer;
}
.fp-link-btn:hover { background: rgba(100,180,255,.28); color: #a0d4ff; }
.fp-doc-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 12px; gap: 6px; text-align: center; }
.fp-doc-item .ic { font-size: 30px; }
.fp-doc-item .nm { font-size: 13px; color: #fff; font-weight: 600; word-break: break-all; }
.fp-doc-item .mt { font-size: 11px; color: #8bb8e0; }
.fp-empty { grid-column: 1 / -1; text-align: center; color: #8bb8e0; font-size: 12px; padding: 40px 10px; line-height: 1.9; }

/* 全景预览 iframe */
.pano-preview-overlay { position: fixed; inset: 0; z-index: 10001; background: #000; display: none; flex-direction: column; }
.pano-preview-overlay.show { display: flex; }
.pano-preview-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: rgba(10,22,40,.9); color: #fff; flex-shrink: 0; }
.pano-preview-head h3 { font-size: 15px; font-weight: 600; }
.pano-preview-head .back-btn { padding: 6px 16px; border-radius: 6px; background: #4ade80; color: #fff; border: none; cursor: pointer; font-size: 13px; font-weight: 600; }
.pano-preview-head .back-btn:hover { background: #22c55e; }
.pano-preview-frame { flex: 1; width: 100%; border: none; background: #000; }

/* 视频播放器 */
.fp-viewer-overlay.video-player { z-index: 10002; background: #000; }
#videoPlayer { width: 100vw; height: 100vh; object-fit: contain; background: #000; }
.close-btn.float {
  position: absolute; top: 12px; right: 14px; z-index: 10; width: 40px; height: 40px;
  font-size: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* 户型图大图预览 */
.fp-preview-overlay { position: fixed; inset: 0; z-index: 20000; background: #000; display: none; flex-direction: column; align-items: center; justify-content: center; }
.fp-preview-overlay.show { display: flex; }
.fp-preview-head {
  position: absolute; top: 0; left: 0; right: 0; padding: 12px 16px;
  background: rgba(10,22,40,.9); display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(100,180,255,.1);
}
.fp-preview-head h3 { font-size: 16px; color: #a0d4ff; font-weight: 600; }
.fp-preview-back { padding: 6px 16px; border-radius: 6px; border: 1px solid rgba(100,180,255,.3); background: rgba(100,180,255,.15); color: #a0d4ff; font-size: 14px; cursor: pointer; }
.fp-preview-back:hover { background: rgba(100,180,255,.25); }
#fpPreviewImg {
  width: 100%; height: 100%; object-fit: contain; display: block;
  -webkit-touch-callout: none; user-select: none; -webkit-user-select: none;
  pointer-events: none; -webkit-user-drag: none;
}

/* 链接查看器 */
.link-viewer-overlay { position: fixed; inset: 0; z-index: 21000; background: #fff; display: none; flex-direction: column; }
.link-viewer-overlay.show { display: flex; }
.link-viewer-head { padding: 10px 16px; background: #1a2a4a; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(100,180,255,.15); flex-shrink: 0; }
.link-viewer-head h3 { font-size: 15px; color: #a0d4ff; }
.link-viewer-head .back-btn { padding: 6px 16px; border-radius: 6px; border: none; background: linear-gradient(135deg, #3498db, #2980b9); color: #fff; font-size: 13px; cursor: pointer; }
.link-viewer-frame { flex: 1; width: 100%; border: none; }

/* ============================= 价格卡（楼顶标注关联） ============================= */
.apc-overlay {
  position: fixed; inset: 0; z-index: 10002; background: rgba(28,38,52,.42);
  display: none; align-items: center; justify-content: center; padding: 16px;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.apc-overlay.show { display: flex; }
.apc-layout { display: flex; align-items: stretch; gap: 14px; max-width: min(1000px, 96vw); max-height: 88vh; }
.apc-layout.has-fp { height: min(80vh, 760px); }
.apc-box {
  width: min(430px, 94vw); max-height: min(80vh, 760px); display: flex; flex-direction: column;
  overflow: hidden; background: #fff; border: 1px solid #dbe2ea; border-top: 3px solid #e0524a;
  border-radius: 10px; box-shadow: 0 18px 48px rgba(24,38,58,.28); color: #33404f;
}
.apc-layout.has-fp .apc-box { height: 100%; min-height: 0; max-height: none; }
.apc-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 13px 16px 11px 18px; background: #f7f9fc; border-bottom: 1px solid #e6ebf1; }
.apc-title { font-size: 15px; font-weight: 700; color: #2c5f9e; }
.apc-sub { font-size: 11px; color: #7b8798; margin-top: 5px; line-height: 1.5; }
.apc-close { background: none; border: none; color: #8c99a8; font-size: 20px; cursor: pointer; line-height: 1; padding: 0 2px; }
.apc-close:hover { color: #e0524a; }
.apc-fp-hint { display: none; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid #edf1f5; background: #f4f8fd; font-size: 11px; color: #5c7189; cursor: zoom-in; }
.apc-fp-hint.show { display: flex; }
.apc-fp-hint .go { margin-left: auto; color: #2c6cb0; white-space: nowrap; }
.apc-fp-panel {
  display: none; width: min(400px, 42vw); height: auto; min-height: 0; flex: 0 0 auto; align-self: stretch;
  flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #dbe2ea;
  border-top: 3px solid #3f7fc4; border-radius: 10px; box-shadow: 0 18px 48px rgba(24,38,58,.28);
}
.apc-fp-panel.show { display: flex; }
.apc-layout.has-fp .apc-fp-panel { height: 100%; width: min(40vw, 500px); min-height: 0; max-height: none; }
.apc-fp-panel-head { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px 8px 16px; border-bottom: 1px solid #e6ebf1; background: #f7f9fc; }
.apc-fp-panel-title { font-size: 14px; font-weight: 700; color: #2c5f9e; }
.apc-fp-panel-sub { font-size: 11px; color: #7b8798; margin-top: 3px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apc-fp-panel-img { position: relative; flex: 1; min-height: 0; margin: 8px 34px; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.apc-fp-panel-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.apc-fp-panel-img .zoom { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 6px; background: rgba(44,62,84,.82); color: #fff; font-size: 10px; pointer-events: none; }
.apc-fp-panel-foot { padding: 0 12px 9px; display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #7b8798; }
.apc-fp-panel-foot .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apc-fp-panel-foot .tag { flex-shrink: 0; color: #2c6cb0; }
.apc-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 16px; border-bottom: 1px solid #edf1f5; }
.apc-stat { background: #f5f7fa; border: 1px solid #e6ebf1; border-radius: 6px; padding: 7px 9px; min-width: 0; }
.apc-stat-label { font-size: 10px; color: #8a97a6; letter-spacing: .5px; }
.apc-stat-value { font-size: 13px; font-weight: 700; color: #2c5f9e; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apc-stat-value.neutral { color: #33404f; }
.apc-sell { padding: 10px 16px 11px; border-bottom: 1px solid #edf1f5; background: #fafbfd; }
.apc-sell-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.apc-sell-label { font-size: 11px; color: #6b7888; }
.apc-sell-pct { font-size: 17px; font-weight: 700; color: #2c6cb0; line-height: 1; }
.apc-sell-track { height: 6px; border-radius: 4px; background: #e6ebf1; overflow: hidden; }
.apc-sell-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7fa9d6, #3f7fc4); transition: width .35s ease; }
.apc-sell-foot { margin-top: 6px; font-size: 10px; color: #8a97a6; }
.apc-legend { display: none; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 16px; border-bottom: 1px solid #edf1f5; font-size: 10px; color: #7b8798; }
.apc-legend.show { display: flex; }
.apc-legend-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.apc-legend-item i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.apc-legend-item.s0 i { background: #2e9e5b; }
.apc-legend-item.s1 i { background: #efc33f; }
.apc-legend-item.s2 i { background: #e98324; }
.apc-legend-item.s3 i { background: #d94b45; }
.apc-legend-item.s4 i { background: #7a3fbf; }
.apc-list { overflow-y: auto; flex: 1; padding: 2px 16px 14px; scrollbar-width: thin; scrollbar-color: #c7d2de transparent; }
.apc-list::-webkit-scrollbar { width: 5px; }
.apc-list::-webkit-scrollbar-thumb { background: #c7d2de; border-radius: 3px; }
.apc-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; margin-bottom: 3px; border-bottom: 1px solid #f0f3f7; border-radius: 5px; }
.apc-floor { font-size: 12px; color: #7b8798; }
.apc-room { font-size: 12px; color: #425063; }
.apc-price { text-align: right; min-width: 92px; }
.apc-total { font-size: 14px; font-weight: 700; color: #33404f; }
.apc-unit { font-size: 10px; color: #98a4b2; margin-top: 2px; }
.apc-row.seg-0 { background: #2e9e5b; border-bottom-color: transparent; }
.apc-row.seg-1 { background: #efc33f; border-bottom-color: transparent; }
.apc-row.seg-2 { background: #e98324; border-bottom-color: transparent; }
.apc-row.seg-3 { background: #d94b45; border-bottom-color: transparent; }
.apc-row.seg-4 { background: #7a3fbf; border-bottom-color: transparent; }
.apc-row[class*="seg-"] .apc-floor,
.apc-row[class*="seg-"] .apc-room,
.apc-row[class*="seg-"] .apc-total,
.apc-row[class*="seg-"] .apc-unit { color: #fff; }
.apc-row.seg-1 .apc-floor,
.apc-row.seg-1 .apc-room,
.apc-row.seg-1 .apc-total,
.apc-row.seg-1 .apc-unit { color: #5b4300; }
.apc-row.sold { background: #eef1f5 !important; }
.apc-row.sold .apc-floor, .apc-row.sold .apc-room,
.apc-row.sold .apc-total, .apc-row.sold .apc-unit { color: #8b98a7 !important; }
.apc-row.sold .apc-room::after { content: ' 已售'; font-size: 10px; color: #8b98a7; }
.apc-empty { text-align: center; color: #8a97a6; font-size: 12px; padding: 36px 10px; line-height: 1.7; }
.apc-fp-lightbox { position: fixed; inset: 0; z-index: 10020; background: #eef2f7; display: none; align-items: center; justify-content: center; padding: 26px; }
.apc-fp-lightbox.show { display: flex; }
.apc-fp-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 6px; box-shadow: 0 20px 60px rgba(30,45,65,.28); }
.apc-fp-lightbox .lb-close { position: absolute; top: 16px; right: 18px; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid #dbe2ea; color: #50627a; font-size: 24px; line-height: 36px; text-align: center; cursor: pointer; box-shadow: 0 2px 8px rgba(30,45,65,.15); }
.apc-fp-lightbox .lb-name { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #5c6b7d; font-size: 12px; }
@media (max-width: 980px) {
  .apc-layout, .apc-layout.has-fp { height: auto; flex-direction: column; align-items: stretch; max-height: 88vh; overflow-y: auto; }
  .apc-fp-panel, .apc-layout.has-fp .apc-fp-panel { order: -1; width: 100%; max-width: none; height: 320px; align-self: auto; }
  .apc-fp-panel-img { margin: 8px 10px; }
  .apc-box, .apc-layout.has-fp .apc-box { width: 100%; height: auto; max-height: 48vh; }
}

/* ============================= 价格表（灰白） ============================= */
.v-price-table-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(28,38,52,.42);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.v-price-table-overlay.show { display: flex; }
.v-price-table-box {
  width: 95%; max-width: 1100px; max-height: 90vh; background: #fff;
  border: 1px solid #dbe2ea; border-top: 3px solid #e0524a; border-radius: 10px;
  box-shadow: 0 18px 48px rgba(24,38,58,.28); color: #33404f;
  display: flex; flex-direction: column; overflow: hidden;
}
.v-price-table-head { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e6ebf1; background: #f7f9fc; flex-shrink: 0; }
.v-price-table-head h3 { font-size: 16px; color: #2c5f9e; }
.v-price-table-head .close-btn { background: none; border: none; color: #8c99a8; font-size: 22px; cursor: pointer; line-height: 1; }
.v-price-table-head .close-btn:hover { color: #e0524a; }
.v-price-toolbar { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #edf1f5; flex-wrap: wrap; }
.pt-field { display: flex; align-items: center; gap: 6px; }
.pt-field label { font-size: 12px; color: #6b7888; cursor: pointer; }
.pt-field input[type="number"] { width: 62px; padding: 3px 6px; border-radius: 6px; border: 1px solid #dbe2ea; background: #fff; color: #33404f; font-size: 12px; text-align: center; outline: none; }
.pt-field input[type="checkbox"] { accent-color: #3f7fc4; margin-right: 3px; }
.pt-unit { font-size: 12px; color: #6b7888; }
.v-price-legend { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #6b7888; margin-left: auto; }
.v-price-legend span { padding: 2px 8px; border-radius: 4px; color: #fff; }
.v-level-1 { background: #2e9e5b; }
.v-level-2 { background: #efc33f; color: #5b4300 !important; }
.v-level-3 { background: #e98324; }
.v-level-4 { background: #d94b45; }
.v-level-5 { background: #7a3fbf; }
.v-price-tabs { display: flex; gap: 6px; padding: 8px 20px; border-bottom: 1px solid #edf1f5; flex-wrap: wrap; }
.v-price-tab { padding: 4px 12px; border-radius: 14px; border: 1px solid #dbe2ea; background: #fff; color: #5c7189; font-size: 12px; cursor: pointer; }
.v-price-tab:hover { border-color: #3f7fc4; color: #2c6cb0; }
.v-price-tab.active { background: #2c6cb0; border-color: #2c6cb0; color: #fff; }
.v-price-table-body { overflow: auto; flex: 1; min-height: 0; }
.v-price-table-wrap { padding: 8px 20px 20px; overflow-x: auto; }
.v-price-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.v-price-table th {
  position: sticky; top: 0; background: #f5f7fa; color: #6b7888; font-weight: 600;
  text-align: left; padding: 8px 8px; border-bottom: 1px solid #e6ebf1; white-space: nowrap;
}
.v-price-table th.num, .v-price-table td.num { text-align: right; }
.v-price-table td { padding: 7px 8px; border-bottom: 1px solid #f0f3f7; }
.v-price-table tbody tr.seg-0 { background: #eaf7ee; }
.v-price-table tbody tr.seg-1 { background: #fdf7e3; }
.v-price-table tbody tr.seg-2 { background: #fdf0e3; }
.v-price-table tbody tr.seg-3 { background: #fbeceb; }
.v-price-table tbody tr.seg-4 { background: #f2ebfa; }
.v-price-table tbody tr:hover { outline: 1px solid #c7d9f0; }
.v-price-table tbody tr.sold { background: #f3f5f8; color: #9aa6b4; }
.v-price-table tbody tr.sold .cell-bld { color: #8a97a6; }
.v-price-table .cell-bld { color: #2c5f9e; font-weight: 600; }
.v-price-table .cell-price { font-weight: 700; }
.v-price-empty { text-align: center; color: #8a97a6; padding: 40px 10px; font-size: 12px; line-height: 1.9; }

/* ============================= 成交（灰白） ============================= */
.v-deals-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(28,38,52,.42);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.v-deals-overlay.show { display: flex; }
.v-deals-box { width: 92%; max-width: 760px; max-height: 86vh; background: #fff; border: 1px solid #dbe2ea; border-top: 3px solid #2e9e5b; border-radius: 10px; box-shadow: 0 18px 48px rgba(24,38,58,.28); color: #33404f; display: flex; flex-direction: column; overflow: hidden; }
.v-deals-head { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e6ebf1; background: #f7f9fc; }
.v-deals-head h3 { font-size: 16px; color: #1e8449; }
.v-deals-head .close-btn { background: none; border: none; color: #8c99a8; font-size: 22px; cursor: pointer; line-height: 1; }
.v-deals-list { overflow-y: auto; padding: 12px 20px 20px; }
.v-deal-row { display: grid; grid-template-columns: 1fr 92px 92px 110px; gap: 10px; align-items: center; padding: 9px 10px; border-bottom: 1px solid #f0f3f7; font-size: 12px; }
.v-deal-row.head { color: #6b7888; font-weight: 600; border-bottom: 1px solid #e6ebf1; background: #f9fbfd; position: sticky; top: 0; }
.v-deal-row .nm { color: #2c5f9e; font-weight: 600; }
.v-deal-row .up { color: #c0392b; font-weight: 700; }
.v-deal-empty { text-align: center; color: #8a97a6; padding: 40px 10px; font-size: 12px; }

/* ============================= 视角按钮 ============================= */
.view-btns { position: absolute; right: 16px; bottom: 160px; z-index: 20; display: flex; flex-direction: row; gap: 8px; }
.view-btn {
  width: 46px; height: 46px; border-radius: 10px; background: rgba(10,22,40,.85);
  border: 1px solid rgba(100,180,255,.3); color: #a0d4ff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: all .2s; user-select: none;
}
.view-btn:hover { background: rgba(40,100,200,.5); border-color: rgba(100,180,255,.5); color: #fff; }
.view-btn:active { transform: scale(.92); }
.view-btn.active { background: rgba(255,152,0,.32); border-color: rgba(255,152,0,.7); color: #ffd54f; }
/* 与参考系统一致：只保留「视角」「切换」，其余隐藏 */
.view-btns .view-btn:not(#btnViewpoint):not(#btnViewAbove) { display: none; }

/* ============================= 视角点面板 ============================= */
.viewpoint-panel {
  position: absolute; left: 16px; top: 60px; z-index: 10; width: 224px;
  background: rgba(10,22,40,.92); border: 1px solid rgba(100,180,255,.25); border-radius: 12px;
  padding: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: none; flex-direction: column; gap: 10px; max-height: calc(100vh - 120px); overflow-y: auto;
}
.viewpoint-panel.visible { display: flex; }
/* 折叠后收成一个小胶囊：宽度按内容自适应，不再按整屏宽铺一条空白横条 */
.viewpoint-panel.collapsed { width: auto; padding: 8px 10px; }
.viewpoint-panel.collapsed .vp-content { display: none; }   /* 里面的 select 会把宽度撑开 */
.viewpoint-panel.collapsed h4 { border-bottom: none; padding-bottom: 0; gap: 10px; font-size: 12.5px; }
.viewpoint-panel h4 { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: #a0d4ff; border-bottom: 1px solid rgba(100,180,255,.2); padding-bottom: 8px; }
.vp-toggle-btn { width: 24px; height: 24px; border-radius: 6px; background: rgba(100,180,255,.15); border: 1px solid rgba(100,180,255,.3); color: #a0d4ff; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vp-toggle-btn.collapsed { transform: rotate(180deg); }
.vp-content { display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: all .3s ease; }
.vp-content.collapsed { max-height: 0; opacity: 0; gap: 0; }
.vp-row { display: flex; flex-direction: column; gap: 4px; }
.vp-row label { font-size: 11px; color: #5a7a9a; }
.vp-row select { background: rgba(20,40,70,.8); border: 1px solid rgba(100,180,255,.25); border-radius: 6px; color: #e0e8f0; padding: 6px 8px; font-size: 12px; outline: none; cursor: pointer; }
.vp-row select:focus { border-color: rgba(100,180,255,.5); }
.vp-list { max-height: 186px; overflow-y: auto; margin-top: 6px; border: 1px solid rgba(100,180,255,.15); border-radius: 6px; background: rgba(0,0,0,.2); }
.vp-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid rgba(100,180,255,.1); cursor: pointer; }
.vp-item:last-child { border-bottom: none; }
.vp-item:hover { background: rgba(60,120,200,.2); }
.vp-item.active { background: rgba(60,120,200,.35); }
.vp-item .vp-name { color: #a0d4ff; font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-item .vp-go { color: #ffd54f; font-size: 12px; }
.vp-actions { display: flex; gap: 8px; margin-top: 6px; }
.btn-vp-exit { flex: 1; padding: 8px 0; background: rgba(100,180,255,.15); border: 1px solid rgba(100,180,255,.3); border-radius: 6px; color: #a0d4ff; font-size: 12px; cursor: pointer; }
.btn-vp-exit:hover { background: rgba(100,180,255,.25); }
.vp-tip { font-size: 11px; color: #5a7a9a; text-align: center; margin-top: 4px; }
.vp-roam-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 7px 0 2px; border-top: 1px solid rgba(100,180,255,.12); }
.vp-roam-bar label { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #a0d4ff; cursor: pointer; white-space: nowrap; }
.vp-roam-bar input[type=checkbox] { accent-color: #27ae60; width: 14px; height: 14px; cursor: pointer; margin: 0; }
.vp-roam-bar select, .vp-roam-bar button { background: rgba(20,40,70,.85); border: 1px solid rgba(100,180,255,.25); border-radius: 6px; color: #a0d4ff; font-size: 11px; padding: 4px 6px; cursor: pointer; outline: none; }
.vp-roam-bar button:hover, .vp-roam-bar select:hover { border-color: rgba(100,180,255,.55); }

/* 摇杆 */
.vp-joystick { position: fixed; left: 252px; bottom: 168px; z-index: 21010; display: none; flex-direction: column; align-items: center; gap: 6px; touch-action: none; user-select: none; -webkit-user-select: none; }
.vp-joystick.show { display: flex; }
.vp-joy-fold { position: absolute; top: -7px; right: -7px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(12,30,54,.92); border: 1px solid rgba(120,200,255,.55); color: #a8cdf0; font-size: 15px; cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.vp-joy-fold:hover { background: rgba(30,70,120,.95); color: #fff; }
.vp-joy-mini { display: none; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 22px; font-size: 12px; background: rgba(10,26,48,.9); border: 1px solid rgba(120,200,255,.5); color: #a8cdf0; cursor: pointer; white-space: nowrap; box-shadow: 0 3px 14px rgba(0,0,0,.45); }
.vp-joy-mini:hover { background: rgba(30,70,120,.95); color: #fff; }
.vp-joystick.collapsed .vp-joy-base, .vp-joystick.collapsed .vp-joy-caption, .vp-joystick.collapsed .vp-joy-fold { display: none; }
.vp-joystick.collapsed .vp-joy-mini { display: flex; }
.vp-joy-base { position: relative; width: 122px; height: 122px; border-radius: 50%; background: radial-gradient(circle at 50% 42%, rgba(30,70,120,.55), rgba(8,20,38,.88)); border: 2px solid rgba(120,200,255,.45); box-shadow: 0 4px 20px rgba(0,0,0,.45), inset 0 0 20px rgba(80,160,255,.12); touch-action: none; cursor: grab; }
.vp-joy-base:active { cursor: grabbing; }
.vp-joy-arrow { position: absolute; color: rgba(150,205,255,.5); font-size: 11px; line-height: 1; pointer-events: none; }
.vp-joy-arrow.up { top: 7px; left: 50%; transform: translateX(-50%); }
.vp-joy-arrow.down { bottom: 7px; left: 50%; transform: translateX(-50%); }
.vp-joy-arrow.left { left: 8px; top: 50%; transform: translateY(-50%); }
.vp-joy-arrow.right { right: 8px; top: 50%; transform: translateY(-50%); }
.vp-joy-knob { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #6fd8ff, #2b7fd0 65%, #1b4f8f); border: 2px solid rgba(220,245,255,.85); box-shadow: 0 3px 12px rgba(0,0,0,.5), 0 0 14px rgba(90,190,255,.35); pointer-events: none; will-change: transform; }
.vp-joy-caption { font-size: 10px; color: #a8cdf0; background: rgba(8,20,38,.75); padding: 3px 9px; border-radius: 9px; white-space: nowrap; pointer-events: none; }

/* ============================= 楼栋选择 / 分组面板 ============================= */
.white-model-panel {
  position: fixed; right: 132px; bottom: 216px; z-index: 25; width: 190px;
  display: none; flex-direction: column; gap: 2px; max-height: min(58vh, 470px); overflow-y: auto;
  background: rgba(10,22,40,.92); border: 1px solid rgba(100,180,255,.3); border-radius: 8px; padding: 6px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.white-model-panel.show { display: flex; }
.white-model-panel::-webkit-scrollbar { width: 4px; }
.white-model-panel::-webkit-scrollbar-thumb { background: rgba(100,180,255,.35); border-radius: 2px; }
.white-model-item { padding: 5px 10px; border-radius: 6px; color: #a0d4ff; cursor: pointer; font-size: 12px; transition: all .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid transparent; }
.white-model-item:hover { background: rgba(40,100,200,.5); border-color: rgba(100,180,255,.4); color: #fff; }
.white-model-item.active { background: rgba(255,152,0,.3); border-color: rgba(255,152,0,.5); color: #ffd54f; font-weight: 600; }
.vg-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.vg-item .vg-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-checkbox { flex: 0 0 14px; width: 14px; height: 14px; box-sizing: border-box; border: 1.5px solid rgba(120,190,255,.75); border-radius: 3px; background: rgba(10,30,55,.6); font-size: 11px; line-height: 11px; text-align: center; font-weight: 700; }
.vg-item.active .vg-checkbox { background: #ffb74d; border-color: #ffd54f; }
.vg-checkbox.checked::after { content: '✓'; color: #10243c; }
.vg-empty { color: #6f8fb0; font-size: 11px; padding: 8px 10px; line-height: 1.6; }
/* 楼栋选择面板顶部的一句规则说明（只列 B 端点亮的栋） */
.vg-note { color: #6f8fb0; font-size: 10px; padding: 6px 10px 4px; line-height: 1.5; border-bottom: 1px solid rgba(100,180,255,.12); margin-bottom: 4px; }

/* ============================= 房源价格 / 剖切 / 参数设置面板 ============================= */
.floor-cut-panel {
  display: none; flex-direction: column; gap: 6px; width: 206px; margin-top: 2px;
  background: rgba(10,22,40,.92); border: 1px solid rgba(100,180,255,.3); border-radius: 8px;
  padding: 8px 10px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.floor-cut-panel.show { display: flex; }
.fc-title { font-size: 12px; color: #ffd54f; font-weight: 600; position: relative; display: flex; align-items: center; gap: 4px; padding-right: 22px; }
.fc-title span { color: #7fa8cc; font-weight: 400; }
/* 面板右上角关闭（手机上不用再去找按钮列里的同一个按钮） */
.fc-close {
  position: absolute; right: -4px; top: -3px; width: 22px; height: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid rgba(100,180,255,.28); background: rgba(6,16,32,.8);
  color: #a8c6e2; font-size: 11px; line-height: 1; cursor: pointer;
}
.fc-close:hover { background: rgba(231,76,60,.32); border-color: #e74c3c; color: #fff; }
.fc-bld {
  font-size: 11px; color: #cfe4ff; padding: 3px 7px; border-radius: 5px;
  background: rgba(80,150,220,.14); border: 1px solid rgba(100,180,255,.22);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fc-bld b { color: #ffd54f; font-weight: 600; }
#fcRange { width: 100%; accent-color: #ff9800; cursor: pointer; }
.fc-info { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #a0d4ff; }
.fc-chk { display: flex; align-items: flex-start; gap: 5px; font-size: 10.5px; color: #a8c6e2; cursor: pointer; line-height: 1.35; }
.fc-chk input { margin: 1px 0 0; accent-color: #ff9800; flex: none; }
.fc-chk span { flex: 1; }
.fc-hint { color: #6f8fb0; font-size: 10px; line-height: 1.35; }
.fc-status { color: #66c99a; font-size: 10px; line-height: 1.35; word-break: break-all; }
#unitPricePanel, #settingsPanel {
  position: fixed; right: 132px; bottom: 216px; top: auto; transform: none;
  width: 214px; margin-top: 0; z-index: 26; max-height: calc(100vh - 380px); overflow-y: auto;
}
#unitPricePanel::-webkit-scrollbar, #settingsPanel::-webkit-scrollbar { width: 4px; }
#unitPricePanel::-webkit-scrollbar-thumb, #settingsPanel::-webkit-scrollbar-thumb { background: rgba(100,180,255,.35); border-radius: 2px; }
.up-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #a0d4ff; }
.up-row > span { flex: 0 0 26px; color: #7fa8cc; }
.up-row select { flex: 1 1 auto; min-width: 0; padding: 3px 6px; border-radius: 6px; background: rgba(6,16,30,.9); color: #cfe6ff; border: 1px solid rgba(100,180,255,.3); font-size: 11px; }
.up-stats { font-size: 10px; color: #66c99a; line-height: 1.5; word-break: break-all; }
.up-mode { display: flex; gap: 6px; margin: 2px 0 5px; }
.up-mode-btn { flex: 1 1 0; padding: 4px 0; border-radius: 6px; font-size: 11px; cursor: pointer; border: 1px solid rgba(100,180,255,.28); background: rgba(6,16,30,.85); color: #8fb4d6; transition: all .15s; }
.up-mode-btn.active { background: rgba(124,240,180,.14); border-color: #7cf0b4; color: #7cf0b4; font-weight: 700; }
.up-mode-btn[data-up-mode="deal"].active { background: rgba(255,159,67,.16); border-color: #ff9f43; color: #ffb26b; }
.up-list { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.up-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 10.5px; color: #cfe6ff; padding: 4px 6px; border-radius: 5px; background: rgba(6,16,30,.55); border: 1px solid rgba(100,180,255,.14); }
.up-item .u-t { color: #8fb4d6; flex: 0 0 auto; }
.up-item .u-p { color: #7cf0b4; font-weight: 700; }
.up-item .u-p.none { color: #93a9bf; font-weight: 400; }
.sq-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; color: #a0d4ff; }
.sq-row select { flex: 1; max-width: 122px; font-size: 11px; color: #e8f4ff; background: rgba(6,16,32,.95); border: 1px solid rgba(100,180,255,.35); border-radius: 5px; padding: 2px 4px; cursor: pointer; outline: none; }
.sq-row select:focus { border-color: #ff9800; }
.sq-chk { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #ffd54f; cursor: pointer; user-select: none; }
.sq-chk input { accent-color: #ff9800; cursor: pointer; margin: 0; width: 13px; height: 13px; }
.sq-stat { font-size: 10px; color: #7fa8cc; line-height: 1.45; white-space: pre-line; background: rgba(0,0,0,.25); border-radius: 5px; padding: 4px 6px; }
.sq-stat b { color: #ffd54f; font-weight: 600; }
.sq-hint { color: #6f8fb0; font-size: 10px; line-height: 1.35; }
.sq-range-row input[type=range] { flex: 1; min-width: 56px; height: 14px; accent-color: #ff9800; cursor: pointer; }
.sq-range-val { font-size: 10px; color: #ffd54f; min-width: 46px; text-align: right; }

/* ============================= 显示控制按钮 ============================= */
.toggle-btns {
  position: absolute; right: 16px; bottom: 216px; z-index: 20;
  display: flex; flex-direction: column; gap: 5px; align-items: flex-end;
  max-height: calc(100vh - 330px); overflow-y: auto; overflow-x: hidden; padding: 2px;
  scrollbar-width: thin;
}
.toggle-btns::-webkit-scrollbar { width: 4px; }
.toggle-btns::-webkit-scrollbar-thumb { background: rgba(100,180,255,.35); border-radius: 2px; }
.toggle-btn {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
  background: rgba(10,22,40,.8); border: 1px solid rgba(100,180,255,.25); color: #a0d4ff;
  cursor: pointer; font-size: 12px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: all .2s; user-select: none; white-space: nowrap;
}
.toggle-btn:hover { background: rgba(40,100,200,.5); border-color: rgba(100,180,255,.5); color: #fff; }
.toggle-btn.off { opacity: .5; }
.toggle-btn .toggle-dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; transition: background .2s; }
.toggle-btn.off .toggle-dot { background: #666; }
.toggle-btn.active { background: rgba(231,76,60,.45); border-color: #e74c3c; color: #fff; }
.toggle-btn.active .toggle-dot { background: #e74c3c; box-shadow: 0 0 6px #e74c3c; }
.toggle-btn.sun-on { background: rgba(46,204,113,.26); border-color: rgba(46,204,113,.7); color: #eafff3; }
.toggle-btn.sun-on:hover { background: rgba(46,204,113,.42); border-color: #2ecc71; color: #fff; }
.toggle-btn.sun-on .toggle-dot { background: #2ecc71; box-shadow: 0 0 6px #2ecc71; }
.bottom-panel.sun-off .timeline-wrap,
.bottom-panel.sun-off .sun-info,
.bottom-panel.sun-off .date-season-row { opacity: .45; }
.bottom-panel.sun-off .sun-icon { filter: grayscale(1); }

.ui-hide-btn { border-color: rgba(255,213,79,.35); color: #ffd54f; background: rgba(20,30,50,.9); font-weight: 600; }
.ui-hide-btn:hover { background: rgba(255,213,79,.22); border-color: rgba(255,213,79,.6); color: #fff; }
.ui-hide-btn .ui-hide-arrow { font-size: 12px; letter-spacing: -1px; }
body.ui-right-hidden .ui-hide-btn { background: rgba(255,152,0,.28); border-color: #ff9800; color: #ffe0b2; }
body.ui-right-hidden .toggle-btns > :not(.ui-hide-btn),
body.ui-right-hidden .white-model-panel,
body.ui-right-hidden #unitPricePanel,
body.ui-right-hidden #settingsPanel,
body.ui-right-hidden .view-btns { display: none !important; }

/* ============================= 指南针 ============================= */
.compass-overlay {
  position: absolute; top: 72px; left: 50%; margin-left: -40px; z-index: 15; width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(20,50,90,.9) 0%, rgba(10,25,50,.95) 100%);
  border: 2px solid rgba(100,180,255,.3); border-radius: 50%;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.4), inset 0 0 20px rgba(100,180,255,.05);
  cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.compass-overlay:hover { border-color: rgba(100,180,255,.7); transform: scale(1.05); }
.compass-overlay.hidden { display: none; }
.compass-ring-inner { width: 68px; height: 68px; border-radius: 50%; border: 1px solid rgba(100,180,255,.2); position: relative; display: flex; align-items: center; justify-content: center; }
.compass-face { width: 100%; height: 100%; position: relative; will-change: transform; }
.compass-n { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); color: #ff3333; font-size: 14px; font-weight: 800; text-shadow: 0 0 8px rgba(255,50,50,.5); }
.compass-s { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); color: rgba(100,180,255,.5); font-size: 11px; font-weight: 600; }
.compass-e { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: rgba(100,180,255,.5); font-size: 11px; font-weight: 600; }
.compass-w { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); color: rgba(100,180,255,.5); font-size: 11px; font-weight: 600; }
.compass-center-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #fff 0%, #a0d4ff 100%); border: 2px solid rgba(100,180,255,.5); box-shadow: 0 0 8px rgba(100,180,255,.4); }

/* ============================= 底部面板 ============================= */
.bottom-panel {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10; padding: 12px 16px 2px;
  padding-bottom: calc(2px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(10,22,40,.92) 0%, rgba(10,22,40,.7) 70%, rgba(10,22,40,0) 100%);
  pointer-events: none;
}
.bottom-panel > * { pointer-events: auto; }
.timeline-wrap { padding: 0 4px; display: flex; align-items: center; gap: 8px; }
.auto-play-btn {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #ff9800, #ffd54f); border: none; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center; color: #3a2c00;
  box-shadow: 0 2px 8px rgba(255,152,0,.4); transition: all .2s;
}
.auto-play-btn:hover { transform: scale(1.1); }
.auto-play-btn.playing { background: linear-gradient(135deg, #e53935, #ff7043); color: #fff; }
.auto-play-btn.playing::before { content: '⏸'; }
.auto-play-btn.playing span { display: none; }
.auto-speed { display: flex; gap: 2px; align-items: center; background: rgba(10,22,40,.6); border: 1px solid rgba(100,180,255,.25); border-radius: 8px; padding: 2px; flex-shrink: 0; }
.speed-opt { font-size: 11px; line-height: 1; color: #a0d4ff; background: transparent; border: none; border-radius: 6px; padding: 5px 7px; cursor: pointer; transition: all .2s; }
.speed-opt.active { background: linear-gradient(135deg, #ff9800, #ffd54f); color: #333; font-weight: 600; }
.timeline { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); outline: none; margin: 6px 0 2px; }
.timeline::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle, #ffd54f 30%, #ff9800 100%);
  box-shadow: 0 0 10px rgba(255,213,79,.5); cursor: pointer; border: 2px solid #fff;
}
.timeline::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #ffd54f 30%, #ff9800 100%);
  box-shadow: 0 0 10px rgba(255,213,79,.5); cursor: pointer; border: 2px solid #fff;
}
.sun-info { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 0 4px; font-size: 13px; color: #8bb8e0; }
.sun-info .sun-icon { font-size: 22px; }
.sun-info .val { color: #ffd54f; font-weight: 600; }
.date-season-row { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 0 8px; }
.date-row input[type="date"] {
  background: rgba(255,255,255,.08); border: 1px solid rgba(100,180,255,.25); border-radius: 8px;
  color: #fff; padding: 5px 10px; font-size: 13px; outline: none;
}
.season-btns { display: flex; gap: 6px; justify-content: center; }
.season-btn {
  padding: 4px 14px; border-radius: 14px; font-size: 12px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: #8bb8e0; transition: all .2s;
}
.season-btn:hover { background: rgba(255,255,255,.12); }
.season-btn.active { background: rgba(40,100,200,.5); border-color: rgba(100,180,255,.5); color: #fff; }
.city-info { display: flex; align-items: center; justify-content: center; gap: 4px; padding-top: 2px; font-size: 12px; color: #8bb8e0; }

/* ============================= 响应式 ============================= */
@media (max-width: 900px) {
  .project-title { max-width: 30vw; font-size: 15px; }
  .fp-viewer-btn { padding: 5px 10px; font-size: 12px; }
  .viewpoint-panel { width: 200px; }
}
@media (max-width: 640px) {
  .top-bar { padding: 8px 10px; flex-wrap: wrap; gap: 6px; }
  .top-bar-btns { max-width: 100%; min-width: 0; gap: 6px; justify-content: flex-start; }
  .fp-viewer-btn { padding: 4px 9px; font-size: 11.5px; border-radius: 7px; }
  .bi-box { left: 10px; right: 10px; bottom: 158px; width: auto; max-width: none; height: auto; max-height: 46vh; border-radius: 12px; }
  .bi-row-value { font-size: 13px; }
  .bi-row-label { font-size: 11px; letter-spacing: 1px; }
  .viewpoint-panel { width: calc(100vw - 32px); left: 16px; max-height: 50vh; top: auto; bottom: 190px; z-index: 30; }
  /* 折叠态：缩到摇杆正上方左侧，避开摇杆、右下按钮和右侧功能列表 */
  .viewpoint-panel.collapsed {
    left: 12px; right: auto; width: auto; max-width: calc(100vw - 24px);
    top: auto; bottom: 306px; padding: 7px 9px;
  }
  .view-btns { bottom: 158px; }
  /* 按钮列：手机上按钮更紧凑 + 允许手指竖向滑动。
     原来 max-height 只给到 100vh-360，屏幕矮一点的手机（≤740）会把最后几个按钮
     （房源价格 / 参数设置）裁在容器外 —— 看着在那儿、点下去落在 canvas 上，就是「点了没反应」。 */
  .toggle-btns {
    bottom: 208px; max-height: calc(100vh - 300px);
    gap: 4px; padding: 2px 0 6px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
  .toggle-btn { padding: 4px 10px; font-size: 11.5px; gap: 5px; border-radius: 7px; position: relative; }
  /* 紧凑后按钮只有 25px 高，把点击热区往上下各撑 2px（正好吃掉 4px 间隙，不互相压） */
  .toggle-btn::after { content: ''; position: absolute; left: 0; right: 0; top: -2px; bottom: -2px; }
  .toggle-btn .toggle-dot { width: 7px; height: 7px; }
  .white-model-panel { width: 150px; right: 112px; max-height: 46vh; }
  /* 参数设置 / 房源价格：手机端改成底部抽屉（整块可点、触控目标加大）。
     以前参数设置挤在 right:112 的 186px 窄条里，还套在可滚动的按钮列里，
     真机上很容易点了没反应。 */
  #settingsPanel, #unitPricePanel {
    left: 10px; right: 10px; width: auto; max-width: none; top: auto;
    bottom: calc(148px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 168px); padding: 12px 14px 14px;
    gap: 9px; border-radius: 14px; z-index: 21020;
    box-shadow: 0 16px 44px rgba(0,0,0,.55);
  }
  #settingsPanel .sq-row, #unitPricePanel .up-row { min-height: 36px; font-size: 12.5px; }
  #settingsPanel .sq-row select, #unitPricePanel .up-row select { max-width: 60%; min-height: 32px; font-size: 13px; padding: 4px 8px; }
  #settingsPanel .sq-chk { min-height: 34px; font-size: 12.5px; }
  #settingsPanel .sq-chk input { width: 18px; height: 18px; }
  #settingsPanel .sq-range-row input[type=range] { height: 22px; }
  #settingsPanel .sq-stat, #settingsPanel .sq-hint { font-size: 11px; }
  #unitPricePanel .up-mode-btn { min-height: 34px; font-size: 12.5px; }
  .fc-close { width: 26px; height: 26px; font-size: 12px; }
  .vp-joystick { left: 12px; bottom: 160px; }
  .vp-joy-base { width: 112px; height: 112px; }
  .fp-viewer-box { width: 100%; height: 100%; max-width: 100%; max-height: 100%; border-radius: 0; }
  .fp-viewer-content { grid-template-columns: repeat(2, 1fr); padding: 12px; }
  .v-deal-row { grid-template-columns: 1fr 60px 60px 84px; font-size: 11px; }
  .bs-foot { left: 20px; right: 20px; bottom: 30px; }
  .bs-top { left: 20px; right: 20px; top: 20px; }
  .bs-rev { left: 20px; top: 96px; }
  .bs-hex { display: none; }
  .bs-bars { display: none; }
}
@media (max-width: 420px) {
  .fp-viewer-content { grid-template-columns: 1fr; }
  .top-bar-btns .fp-viewer-btn { font-size: 11px; padding: 4px 7px; }
  .sun-info { gap: 10px; font-size: 12px; }
  .season-btn { padding: 3px 9px; font-size: 11px; }
}


/* 真机窄屏（<=500）：顶栏两行、底部面板允许换行、指南针下移 */
@media (max-width: 500px) {
  .top-bar { flex-direction: column; align-items: stretch; }
  .project-title { max-width: 100%; font-size: 14px; }
  .top-bar-btns { max-width: 100%; }
  .sun-info { flex-wrap: wrap; gap: 8px; font-size: 11.5px; }
  .sun-info .sun-icon { font-size: 17px; }
  .date-season-row { flex-wrap: wrap; gap: 8px; }
  .season-btns { flex-wrap: wrap; gap: 4px; }
  .season-btn { padding: 3px 8px; font-size: 11px; }
  .date-row input[type="date"] { padding: 4px 8px; font-size: 12px; }
  .compass-overlay { top: 120px; width: 64px; height: 64px; margin-left: -32px; }
  .compass-ring-inner { width: 56px; height: 56px; }
  .compass-n { font-size: 12px; top: 3px; }
  .compass-s, .compass-e, .compass-w { font-size: 9px; }
  .bi-box { max-height: 40vh; }
  .toggle-btns { max-height: calc(100vh - 300px); }
}

/* ===== 内部视角点标记（C 端） ===== */
.vp-markers {
  position: absolute; inset: 0; z-index: 12; pointer-events: none;
  overflow: hidden;
}
.vp-marker {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  margin: -11px 0 0 -11px; border-radius: 50%; pointer-events: auto; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #ffe082 0%, #ff9800 70%, #f57c00 100%);
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(255,152,0,.75), 0 2px 6px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s, box-shadow .2s;
  will-change: transform;
}
.vp-marker::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(255,176,60,.55);
  animation: vpPulse 1.8s infinite;
}
@keyframes vpPulse {
  0% { transform: scale(.75); opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}
.vp-marker svg { width: 12px; height: 12px; fill: #4a2a00; }
.vp-marker .mk-label {
  position: absolute; left: 26px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 11px; font-weight: 600; color: #fff;
  background: rgba(10,22,40,.86); border: 1px solid rgba(255,176,60,.45);
  padding: 2px 7px; border-radius: 6px; opacity: 0; transition: opacity .15s;
  pointer-events: none;
}
.vp-marker:hover { transform: scale(1.12); box-shadow: 0 0 16px rgba(255,176,60,.95), 0 3px 10px rgba(0,0,0,.5); }
.vp-marker:hover .mk-label { opacity: 1; }
.vp-marker.active {
  background: radial-gradient(circle at 35% 30%, #b3e5fc 0%, #29b6f6 70%, #0288d1 100%);
  box-shadow: 0 0 14px rgba(41,182,246,.9), 0 3px 10px rgba(0,0,0,.5);
}
.vp-marker.active::after { border-color: rgba(41,182,246,.6); }
.vp-markers.hide { display: none; }

/* 视角点按钮：更宽 + 数量徽标 */
.view-btn.vp-entry { width: auto; min-width: 46px; padding: 0 9px; gap: 4px; font-size: 12.5px; }
.vp-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  background: #ff9800; color: #2b1b00; font-size: 10px; font-weight: 700; line-height: 1;
}

/* 视角点按钮：载入后有视角点时轻微提示一下 */
.view-btn.vp-entry.glow { animation: vpGlow 1.5s ease-in-out 3; }
@keyframes vpGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(255,152,0,0); }
  50% { box-shadow: 0 0 16px rgba(255,152,0,.95); border-color: rgba(255,176,60,.9); color: #ffd54f; }
}

/* 视角点提示气泡 */
.vp-hint {
  position: absolute; right: 132px; bottom: 216px; z-index: 24; display: none;
  max-width: 262px; padding: 9px 28px 9px 12px;
  background: rgba(12,24,42,.94); border: 1px solid rgba(255,176,60,.55);
  border-radius: 10px; color: #d9e6f5; font-size: 11.5px; line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  animation: vpHintIn .24s ease-out;
}
.vp-hint.show { display: block; }
.vp-hint b { display: block; color: #ffb84d; font-size: 12px; margin-bottom: 2px; }
.vp-hint-x {
  position: absolute; right: 8px; top: 6px; font-style: normal; cursor: pointer;
  color: #7f97b3; font-size: 14px; line-height: 1;
}
.vp-hint-x:hover { color: #fff; }
@keyframes vpHintIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 楼栋层与路网整体错位提示（项目快照坐标和当前片区不是一套时出现） */
.fix-hint {
  position: absolute; left: 50%; bottom: 190px; transform: translateX(-50%);
  z-index: 30; display: none; align-items: center; gap: 10px;
  padding: 9px 12px 9px 14px; border-radius: 12px;
  background: rgba(12,24,42,.95); border: 1px solid rgba(255,176,60,.6);
  color: #dbe7f6; font-size: 12px; line-height: 1.5;
  box-shadow: 0 10px 28px rgba(0,0,0,.5);
}
.fix-hint.show { display: flex; }
.fix-hint b { color: #ffb84d; font-weight: 600; }
.fix-hint .fix-btn {
  border: 1px solid rgba(96,165,250,.6); background: rgba(37,99,235,.9); color: #fff;
  font-size: 12px; padding: 5px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.fix-hint .fix-btn:hover { background: rgba(59,130,246,1); }
.fix-hint .fix-x {
  border: none; background: none; color: #8aa3c0; font-size: 15px; cursor: pointer;
  padding: 0 2px; line-height: 1;
}
.fix-hint .fix-x:hover { color: #fff; }

/* 项目快照缺失说明（手机上打开分享链接时最常见） */
.prj-note {
  position: absolute; left: 50%; top: 74px; transform: translateX(-50%);
  z-index: 45; display: none; width: min(560px, calc(100vw - 32px));
  padding: 12px 34px 12px 14px; border-radius: 12px;
  background: rgba(12,24,42,.96); border: 1px solid rgba(255,176,60,.55);
  color: #dbe7f6; font-size: 12px; line-height: 1.6;
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
}
.prj-note.show { display: block; }
.prj-note-t { color: #ffb84d; font-weight: 600; margin-bottom: 5px; font-size: 13px; }
.prj-note-b b { color: #ffd28a; font-weight: 600; word-break: break-all; }
.prj-note-b code {
  background: rgba(255,255,255,.08); border-radius: 4px; padding: 1px 4px;
  font-family: ui-monospace, Consolas, monospace; font-size: 11px;
}
.prj-note-x {
  position: absolute; right: 8px; top: 6px; border: none; background: none;
  color: #8aa3c0; font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 4px;
}
.prj-note-x:hover { color: #fff; }
@media (max-width: 560px) {
  .prj-note {
    left: 12px; right: 12px; transform: none; width: auto; top: 58px;
    font-size: 11.5px; line-height: 1.55;
  }
  .prj-note-t { font-size: 12px; }
}

/* 触屏：canvas / 摇杆区禁止浏览器默认手势（滚动、双击缩放） */
canvas { touch-action: none; -ms-touch-action: none; }


/* ===== 楼顶标注 / 底图标注 / 房源价格标注（DOM 叠层：屏幕恒定大小） ===== */
.anno-layer {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 6;
}
.anno-tag {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 2px solid #7fb2e5; border-radius: 8px;
  padding: 3px 9px; font-size: 12.5px; line-height: 1.3;
  color: #243447; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(15, 35, 60, .18);
  pointer-events: auto; cursor: pointer; user-select: none;
}
.anno-tag::after {
  content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -6px;
  border: 6px solid transparent; border-top-color: #7fb2e5;
}
.anno-tag.linked { border-color: #2fa36b; }
.anno-tag.linked::after { border-top-color: #2fa36b; }
.anno-tag.linked .anno-tag-text { color: #14724a; font-weight: 700; }
.anno-tag.bg { border-color: #e8a33d; }
.anno-tag.bg::after { border-top-color: #e8a33d; }

/* 点标注定位到的那套房源 */
.apc-row.focus { outline: 2px solid #2fa36b; outline-offset: -2px; }

/* ===================== C 端房源价格标注（按 B 端户号位置 + 楼层高度） ===================== */
.price-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 6; }
.price-tag {
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 3px 7px 4px; border-radius: 8px;
  background: rgba(8, 16, 28, .90);
  border: 1px solid rgba(255, 208, 74, .55);
  color: #fff; font-size: 10.5px; line-height: 1.35;
  white-space: nowrap; letter-spacing: .2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  transform: translate(-50%, -100%);
  pointer-events: auto;
}
.price-tag b { font-size: 11px; color: #ffd24d; font-weight: 700; }
.price-tag span { color: #d7e6f5; }
.price-tag em { font-style: normal; color: #7ee0a1; font-weight: 700; }
.price-tag::after {
  content: ''; position: absolute; left: 50%; bottom: -4px;
  width: 6px; height: 6px; transform: translateX(-50%) rotate(45deg);
  background: rgba(8, 16, 28, .90);
  border-right: 1px solid rgba(255, 208, 74, .55);
  border-bottom: 1px solid rgba(255, 208, 74, .55);
}
@media (max-width: 720px) {
  .price-tag { font-size: 9.5px; padding: 2px 5px 3px; }
  .price-tag b { font-size: 10px; }
}

/* 成交价标签：换成蓝边 + 琥珀色价格，和在售区分 */
.price-tag.deal { border-color: rgba(110, 190, 255, .65); }
.price-tag.deal b { color: #7fc8ff; }
.price-tag.deal em { color: #ffc46b; }
.price-tag.deal::after {
  border-right-color: rgba(110, 190, 255, .65);
  border-bottom-color: rgba(110, 190, 255, .65);
}

/* C 端：带房源链接的价签 */
.price-tag-link {
  position: absolute; right: -5px; top: -6px;
  font-size: 9px; font-style: normal; line-height: 1;
  padding: 2px 3px; border-radius: 6px;
  background: rgba(37, 99, 235, .95); color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
}
.price-tag.has-link { cursor: pointer; }
.price-tag.has-link:hover { filter: brightness(1.12); }

/* C 端价卡列表：带链接的行 */
.apc-row.has-link { cursor: pointer; }
.apc-row.has-link:hover { background: rgba(79, 156, 249, .10); }
.apc-link { font-style: normal; margin-left: 5px; font-size: 10px; opacity: .95; }

/* ===== C 端价卡：标注关联的新房备案 ===== */
.apc-nh { display: none; margin: 0 16px 10px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #e6dcc8; background: #fffdf6; }
.apc-nh.show { display: block; }
.apc-nh-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #8a5a12; margin-bottom: 7px; }
.apc-nh-h .tag { margin-left: auto; font-size: 10px; font-weight: 400; color: #a8865a; }
.apc-nh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; }
.apc-nh-cell { min-width: 0; }
.apc-nh-cell span { display: block; font-size: 9.5px; color: #a08e73; }
.apc-nh-cell b { display: block; margin-top: 1px; font-size: 12px; color: #4a3a22; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apc-nh-cell b.money { color: #c2410c; }
.apc-nh-foot { margin-top: 7px; font-size: 10px; color: #a08e73; line-height: 1.5; }
@media (max-width: 620px) { .apc-nh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== C 端标注详情：链接按钮 / 空提示 ===== */
.ai-linkrow { display: none; padding: 0 16px 16px; }
.ai-linkrow.show { display: block; }
.ai-linkbtn {
  width: 100%; height: 34px; border-radius: 8px; cursor: pointer;
  border: 1px solid #cfe0f3; background: #f2f8ff; color: #2c6cb0;
  font-size: 12px; font-weight: 600;
}
.ai-linkbtn:hover { background: #e6f2ff; }
.ai-empty { display: none; padding: 12px 16px 20px; font-size: 12px; color: #7b8798; }
.ai-empty.show { display: block; }

/* 标注详情：左卡不要被户型图撑满，按内容高度收 */
#aiLayout.has-fp { height: auto; align-items: flex-start; }
#aiLayout.has-fp .apc-box { height: auto; max-height: 80vh; }
#aiLayout.has-fp #aiFpPanel { height: min(72vh, 640px); width: min(40vw, 500px); }

/* ===== 标注详情：新房备案按「户型」展示（该户型的价格，不是整栋所有价格） ===== */
.apc-nh-lead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.apc-nh-lead b { font-size: 14px; color: #4a3a22; letter-spacing: .2px; }
.apc-nh-lead span { font-size: 12px; color: #8a6a3e; }
.apc-nh-lead em { margin-left: auto; font-style: normal; font-size: 10.5px; color: #a08e73; }
.apc-nh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.apc-nh-stat span { display: block; font-size: 9.5px; color: #a08e73; }
.apc-nh-stat b {
  display: block; margin-top: 1px; font-size: 12px; color: #4a3a22; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.apc-nh-stat b.money { color: #c2410c; }
.apc-nh-rows { border-top: 1px dashed #e6dcc8; }
.apc-nh-row {
  display: grid; grid-template-columns: 48px 1.4fr 1fr 74px 74px; gap: 6px; align-items: center;
  padding: 5px 0; border-bottom: 1px solid #f4eee2;
  font-size: 10.5px; color: #5a4a30; font-variant-numeric: tabular-nums;
}
.apc-nh-row .r { color: #8a6a3e; }
.apc-nh-row .u { text-align: right; }
.apc-nh-row .t { text-align: right; color: #c2410c; font-weight: 600; }
.apc-nh-row .d { text-align: right; color: #a08e73; font-size: 9.5px; }
@media (max-width: 620px) {
  .apc-nh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apc-nh-row { grid-template-columns: 40px 1fr 1fr 64px; }
  .apc-nh-row .d { display: none; }
}
