/* 登录后界面：雾霁兰青主题。
   仅覆盖业务外壳和功能面板，不影响登录页、鉴权和业务数据。 */

/* 左侧栏 */
#sidebar {
  --green: #3d9fcc;
  --green2: #568ce2;
  font-family: "HarmonyOS Sans SC", "HarmonyOS Sans", "MiSans",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  background:
    linear-gradient(165deg, rgba(53, 111, 132, 0.98), rgba(67, 143, 165, 0.97));
  border-right: 1px solid rgba(220, 239, 244, 0.5);
  box-shadow: 10px 0 30px rgba(23, 65, 82, 0.18);
}

#sidebar::before {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 32px 32px;
}

.sb-head {
  position: relative;
  min-height: 82px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.2);
}

.sb-head > * {
  position: relative;
  z-index: 2;
}

.sb-citymark {
  position: absolute !important;
  right: -8px;
  bottom: -7px;
  z-index: 1 !important;
  width: 148px;
  height: 68px;
  opacity: 0.38;
  pointer-events: none;
}

.sb-name {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
}

.sb-name small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.sb-citymark path,
.sb-citymark polyline,
.sb-citymark line {
  fill: none;
  stroke: rgba(220, 239, 244, 0.72);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.sb-citymark .city-fill {
  fill: rgba(220, 239, 244, 0.12);
  stroke: rgba(220, 239, 244, 0.72);
}

.sb-search {
  margin-top: 16px;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: none;
}

.sb-search input {
  color: #fff;
  font-size: 15px;
}

.sb-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.sb-search .ic,
.grp-h i,
.grp-h b,
.grp-h.menu-action i {
  color: rgba(255, 255, 255, 0.9);
}

.grp {
  border-color: rgba(255, 255, 255, 0.14);
}

.grp-h {
  color: #fff;
  padding: 15px 12px;
  font-size: 16px;
  font-weight: 700;
}

.grp-h:hover,
.grp-h.menu-action:hover,
.grp.open > .grp-h,
body:has(#statPanel:not(.hidden)) #statMenuBtn {
  color: #fff;
  background: linear-gradient(110deg, #3d9fcc, #568ce2);
  box-shadow: 0 8px 20px rgba(31, 107, 162, 0.28);
}

.grp-h:hover i,
.grp-h.menu-action:hover i,
.grp.open > .grp-h i,
body:has(#statPanel:not(.hidden)) #statMenuBtn i {
  color: #fff;
}

.dnode,
.std-row,
.lyr,
.lyr-slider,
.reno-row,
.rpt-item {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.dnode:hover,
.reno-row[data-levels]:hover,
.rpt-item:hover,
.chip:hover,
.prob:hover {
  color: #fff;
  background: rgba(220, 239, 244, 0.16);
}

.dnode.on,
.chip.on,
.prob.on,
.reno-row.on {
  color: #fff;
  background: rgba(220, 239, 244, 0.2);
  outline-color: rgba(220, 239, 244, 0.66);
}

.sb-user {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(19, 66, 84, 0.2);
}

.sb-user-avatar {
  color: #fff;
  background: linear-gradient(135deg, #63d2e8, #72a5ef);
  box-shadow: 0 0 18px rgba(99, 210, 232, 0.28);
}

.sb-user-name,
.sb-user-meta b {
  color: #fff;
}

.sb-user-meta {
  color: rgba(255, 255, 255, 0.76);
}

.sb-user-logout {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.sb-user-logout:hover {
  color: #16191c;
  border-color: #fff;
  background: #fff;
}

.sb-foot {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(19, 66, 84, 0.18);
  font-size: 13px;
}

/* 地图悬浮控件 */
#sidebarToggle,
#depthBtn,
#mapSearch,
#rightRail,
#opacityCtl,
#legend {
  font-family: "HarmonyOS Sans SC", "HarmonyOS Sans", "MiSans",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #16191c;
  border-color: rgba(53, 111, 132, 0.25);
  background: rgba(247, 250, 251, 0.95);
  box-shadow: 0 8px 24px rgba(23, 65, 82, 0.16);
}

#sidebarToggle,
#depthBtn {
  color: #fff;
  background: linear-gradient(135deg, #3d9fcc, #568ce2);
}

#sidebarToggle:hover,
#depthBtn:hover {
  color: #fff;
  border-color: #3d9fcc;
  background: linear-gradient(135deg, #348eaf, #477cd0);
}

#mapSearch,
#searchType,
#searchInput {
  font-size: 15px;
}

#searchType,
#searchInput {
  color: #16191c;
  background: #fff;
  border-color: #d4e2e7;
}

#searchInput::placeholder {
  color: #555d62;
}

.ms-go,
#rightRail button {
  color: #356f84;
}

#searchResults {
  color: #16191c;
  border-color: #d4e2e7;
  background: rgba(255, 255, 255, 0.97);
}

.sr:hover {
  color: #16191c;
  background: #dceff4;
}

#rightRail button:hover,
#rightRail button.on {
  color: #fff;
  background: #3d9fcc;
}

#opacityCtl input[type="range"] {
  accent-color: #3d9fcc;
}

#bottomBar {
  font-family: "HarmonyOS Sans SC", "HarmonyOS Sans", "MiSans",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #252b2f;
  border-color: rgba(53, 111, 132, 0.24);
  background: rgba(247, 250, 251, 0.96);
  font-size: 13px;
}

#bottomBar b,
#opacityCtl em {
  color: #111416;
  font-weight: 700;
}

/* 登录后的业务面板 */
#statPanel,
#panel,
#analysisCtl,
#digCtl,
#measureCtl,
#questionnaireQrCtl,
#nearbyDrawer,
#thematicInfo,
.asset-modal-card {
  --green: #3d9fcc;
  --green2: #568ce2;
  font-family: "HarmonyOS Sans SC", "HarmonyOS Sans", "MiSans",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #16191c;
  border-color: rgba(53, 111, 132, 0.27);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 52px rgba(23, 65, 82, 0.2);
  font-size: 15px;
}

.sp-head,
.panel-head,
.asset-modal-head,
.nb-head,
.theme-info-head,
.tool-pop-head {
  color: #16191c;
  border-color: #d4e2e7;
  background: linear-gradient(100deg, #f1f5f6, #fff 62%);
}

.sp-title b,
.asset-modal-head h2,
.nb-head b,
.panel-title,
.sp-city-section-head b,
.sp-city-intro b,
.sec,
.recognition-group-title b,
.recognition-category-head b {
  color: #111416;
  font-weight: 800;
}

.sp-title b,
.asset-modal-head h2,
.panel-title {
  font-size: 20px;
}

.sp-title span,
.sp-city-intro span,
.sp-city-section-head span,
.panel-sub,
.muted,
.dw-tip {
  color: #555d62;
  font-size: 14px;
}

.sp-tabs {
  border-color: #d4e2e7;
  background: #eef5f7;
}

.sp-tab {
  color: #202528;
  font-size: 15px;
}

.sp-tab:hover:not(.on) {
  color: #111416;
  background: #dceff4;
}

.sp-tab.on,
.dim.on,
.sp-titlemark,
.sp-city-actions button,
.dw-submit {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(110deg, #3d9fcc, #568ce2);
}

.sp-titlemark {
  box-shadow: 0 7px 16px rgba(61, 159, 204, 0.24);
}

.sp-global-indicators,
.sp-city-card,
.sp-qn-overall,
.recognition-evidence-gallery,
.recognition-category,
.building-asset-kv > div {
  color: #16191c;
  border-color: #d4e2e7;
  background: #f7fafb;
}

.sp-city-card strong,
.sp-qn-overall b,
.sp-qn-cats b,
.sp-city-intro em,
.stat-big b,
.dw-msg,
.recognition-group-title span,
.recognition-category-head span {
  color: #111416;
}

.sp-qn-note,
.recognition-group-title span,
.recognition-category-head span {
  color: #202528;
  background: #dceff4;
}

.sp-tbl,
.tbl,
.net-tbl,
.manual-detail-table {
  color: #16191c;
  font-size: 13px;
}

.sp-tbl th,
.tbl th,
.net-tbl th,
.manual-detail-table th {
  color: #111416;
  background: #eef5f7;
  font-weight: 800;
}

.sp-tbl tbody tr:nth-child(even),
.net-tbl tr:nth-child(even) {
  background: #f7fafb;
}

.sp-tbl tbody tr:hover,
.net-tbl tr:hover {
  color: #16191c;
  background: #dceff4;
}

.dim,
.dw-b,
#spExport,
#spLevel,
#spDistrict,
#spSearch,
.recognition-unit-selector select,
.recognition-unit-selector button,
.recognition-evidence-toolbar select,
.dw-row input,
.dw-row select,
.dw-row textarea {
  color: #16191c;
  border-color: #d4e2e7;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
}

.dim:hover,
.dw-b:hover:not(:disabled),
#spExport:hover,
.rpt-item:hover {
  color: #16191c;
  border-color: #8fc9d8;
  background: #dceff4;
}

.recognition-unit-selector label,
.recognition-evidence-toolbar b,
.recognition-evidence-card b,
.sp-qn-summary b,
.sp-qn-cats span,
.sp-qn-overall span,
.sp-city-card-head,
.sp-city-card p {
  color: #202528;
}

.recognition-unit-selector span,
.recognition-evidence-card span,
.recognition-evidence-card small,
.recognition-examples figcaption,
.sp-qn-overall small,
.sp-qn-overall em,
.sp-qn-summary p {
  color: #555d62;
}

.lg-head {
  color: #fff;
  background: linear-gradient(110deg, #3d9fcc, #568ce2);
}

.lg-body,
.lg-item {
  color: #16191c;
  background: #fff;
}

.lg-sec {
  color: #111416;
  border-color: #d4e2e7;
}

/* 指标卡片来源说明：保留颜色区分，放大并保持单行。 */
.sp-city-card-head {
  align-items: flex-start;
  gap: 12px;
}

.sp-source,
.sp-source.mock {
  flex: 0 0 auto;
  max-width: none;
  padding: 3px 7px;
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  text-align: right;
}

.sp-source {
  color: #234f60;
  background: #dceff4;
}

.sp-source.mock {
  color: #79550b;
  background: #fff0c2;
}

/* 字号与详情组件统一放在当前主题中，避免叠加第二套主题。 */
#panel :is(.kv, .tbl, .net-tbl, .std-row, .dw-row, .reno-row, .rpt-item, .lyr, .dnode, .chip, .prob, .dim, .dw-b),
#statPanel :is(.std-row, .dw-row, .rpt-item, .dim, .dw-b) {
  font-size: 14px;
}

:is(.tbl, .net-tbl) { font-size: 13px; }
.facade-metrics-table { font-size: clamp(10.5px, 3vw, 13px); }
.manual-detail-table { font-size: 11.5px; }
.building-asset-source,
.building-asset-source b { font-size: 11px; }
.model-card-main b,
.building-recognition-title b,
.manual-detail-title b { font-size: 13.5px; }
.model-card-main span { font-size: 11.5px; }
.model-preview-btn { font-size: 12.5px; }
.building-recognition-title span,
.manual-detail-title span,
.tag-sim { font-size: 11px; }
.badge { font-size: 12px; }
.kpi b { font-size: 22px; }
.stat-big b { font-size: 21px; }

/* 详情组件统一为兰青与黑字；业务告警色仍由各功能样式控制。 */
.sec {
  color: #111416;
  border-left-color: #3d9fcc;
}

:is(.model-preview-btn, .building-recognition-title, .manual-detail-title,
  .building-recognition-total, .sp-qn-summary, .recognition-report-tip,
  .indi-cats span, .tag-sim) {
  color: #202528;
  border-color: #d4e2e7;
  background: #dceff4;
}

.model-preview-btn:hover {
  color: #111416;
  border-color: #8fc9d8;
  background: #cde9f0;
}

.model-card-icon:is(.is-glb, .is-pointcloud) { background: #3d9fcc; }

:is(.building-recognition-group, .manual-detail-group) {
  border-color: #d4e2e7;
}

:is(.building-recognition-title, .manual-detail-title) :is(b, span),
.manual-detail-table .manual-detail-total td,
.manual-detail-table td:not(:first-child) {
  color: #111416;
}

.lg-toggle-item input,
.lyr-slider input[type="range"] {
  accent-color: #3d9fcc;
}

/* 五组参考融合：深青蓝结构、珠光雾面、粒子点阵与紫蓝高光。 */
:root {
  --tech-teal: #2e778d;
  --tech-cyan: #53c8ca;
  --tech-indigo: #7777c8;
  --tech-ink: #183348;
}

#sidebar {
  background:
    radial-gradient(circle at 12% 8%, rgba(91, 211, 207, .18), transparent 27%),
    radial-gradient(circle at 92% 72%, rgba(121, 108, 211, .13), transparent 34%),
    linear-gradient(165deg, #1f6075 0%, #164c63 53%, #123b50 100%);
}

#sidebar::before {
  opacity: .34;
  background-image:
    radial-gradient(circle, rgba(185, 239, 235, .22) 0 1px, transparent 1.5px),
    linear-gradient(rgba(153, 226, 229, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 226, 229, .035) 1px, transparent 1px);
  background-size: 18px 18px, 36px 36px, 36px 36px;
}

.sb-citymark path, .sb-citymark polyline, .sb-citymark line {
  stroke: rgba(141, 235, 230, .74);
}

.grp-h:hover, .grp-h.menu-action:hover, .grp.open > .grp-h,
body:has(#statPanel:not(.hidden)) #statMenuBtn {
  background: linear-gradient(110deg, #347f98, #4daeb4 72%, #7475c6);
  box-shadow: 0 8px 20px rgba(18, 70, 91, .25);
}

#sidebarToggle, #depthBtn {
  background: linear-gradient(135deg, #327b96, #4aa8b0 70%, #7776c8);
}

#sidebarToggle:hover, #depthBtn:hover {
  border-color: #62ced0;
  background: linear-gradient(135deg, #3a8ba3, #5abcc0 70%, #8582d5);
}

#rightRail button:hover, #rightRail button.on,
.lg-head, .sp-titlemark, .sp-tab.on, .dim.on,
.sp-city-actions button, .dw-submit {
  background: linear-gradient(135deg, #347e98, #4baeb4 68%, #7877ca);
}

.login-mask {
  background:
    radial-gradient(circle at 8% 10%, rgba(105, 211, 208, .28), transparent 28%),
    radial-gradient(circle at 90% 13%, rgba(126, 113, 216, .18), transparent 30%),
    linear-gradient(145deg, #385e72 0%, #2d5269 50%, #2e4661 100%);
}

.login-mask::before {
  opacity: .58;
  background-image:
    radial-gradient(circle, rgba(226, 248, 246, .18) 0 1px, transparent 1.5px),
    linear-gradient(rgba(226, 248, 246, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 248, 246, .045) 1px, transparent 1px);
  background-size: 22px 22px, 44px 44px, 44px 44px;
}

.login-visual {
  background: linear-gradient(150deg, #13566a 0%, #104c60 50%, #2b4165 100%);
}

.login-visual::before {
  background:
    radial-gradient(circle at 76% 17%, rgba(91, 222, 214, .24), transparent 27%),
    radial-gradient(circle at 92% 76%, rgba(132, 115, 219, .18), transparent 31%),
    radial-gradient(circle, rgba(168, 231, 232, .2) 0 1px, transparent 1.5px);
  background-size: auto, auto, 17px 17px;
  -webkit-mask-image: linear-gradient(110deg, transparent 0 34%, #000 58% 100%);
}

.login-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -18%;
  top: 20%;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid rgba(115, 222, 218, .2);
  border-radius: 42% 58% 63% 37% / 44% 37% 63% 56%;
  background: conic-gradient(from 165deg, rgba(91, 210, 209, .03), rgba(119, 109, 217, .16), rgba(81, 196, 207, .11), rgba(91, 210, 209, .03));
  box-shadow: inset 0 0 42px rgba(125, 118, 223, .08), 0 0 52px rgba(78, 201, 205, .08);
  transform: rotate(-18deg);
}

.login-submit {
  background: linear-gradient(100deg, #2c718c, #3e96a7 52%, #59babb 82%, #7778ca);
}

.login-submit:hover:not(:disabled) {
  background: linear-gradient(100deg, #377f9a, #4aa6b3 52%, #68c7c5 82%, #8785d5);
}
