/* 全站公共工作台视觉层：只统一颜色、间距和控件外观，不改模块内容与业务逻辑。 */
:root {
  color-scheme: light;
  --lc-bg: #f5f4f0;
  --lc-panel: #ffffff;
  --lc-panel-soft: #faf9f6;
  --lc-control: #ffffff;
  --lc-line: #e1dfd8;
  --lc-line-soft: #ebe9e3;
  --lc-text: #173042;
  --lc-muted: #687b86;
  --lc-primary: #0f8f7c;
  --lc-focus: #0284c7;
  --lc-paper: #f5f4f0;
  --lc-grid: #e1dfd8;
  --lc-warn: #f59e0b;
  --lc-danger: #ef4444;
  --lc-radius: 6px;
}

html,
body {
  background: var(--lc-bg) !important;
  color: var(--lc-text);
  letter-spacing: 0 !important;
  scrollbar-color: #465268 transparent;
  scrollbar-width: thin;
}

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #465268; border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: #59677f; }

button,
input,
select,
textarea,
summary {
  font-family: inherit;
  letter-spacing: 0 !important;
}

button,
input,
select,
textarea {
  border-radius: var(--lc-radius) !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: rgba(2,132,199,.78) !important;
  box-shadow: 0 0 0 3px rgba(2,132,199,.13) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 { letter-spacing: 0 !important; }

/* 结构节点库 */
.showcase-head {
  margin: 0 0 12px !important;
  padding: 12px 14px !important;
  border-radius: var(--lc-radius) !important;
  border-color: var(--lc-line) !important;
  background: var(--lc-panel) !important;
  box-shadow: none !important;
}
.showcase-head h2 { font-size: 23px !important; margin-bottom: 8px !important; }
.search-bar-wrap { margin-bottom: 0 !important; gap: 10px !important; }
.search-bar-wrap input { padding: 9px 12px !important; border-radius: var(--lc-radius) !important; }
.model-card {
  border-radius: var(--lc-radius) !important;
  border-color: var(--lc-line-soft) !important;
  background: var(--lc-panel) !important;
  box-shadow: none !important;
}
.model-card:hover { transform: translateY(-2px) !important; border-color: rgba(2,132,199,.65) !important; box-shadow: 0 10px 24px rgba(0,0,0,.24) !important; }
.model-card .card-body { padding: 11px 12px !important; }
.category-tag { border-radius: 4px !important; }
.enter-3d-btn { border-radius: var(--lc-radius) !important; background: var(--lc-primary) !important; box-shadow: none !important; }

/* 标准楼板和预制板计算器 */
#tst-super-module,
#yzb-super-module {
  padding: 12px !important;
  border-radius: var(--lc-radius) !important;
  border-color: var(--lc-line) !important;
  background: var(--lc-bg) !important;
  box-shadow: none !important;
}
.tst-title,
.yzb-title { margin-bottom: 10px !important; padding-bottom: 8px !important; border-bottom-color: var(--lc-line) !important; }
.tst-main-layout,
.yzb-main-layout { gap: 8px !important; }
.tst-accordion,
.tst-result-card,
.yzb-local-card,
.yzb-analysis-cell {
  border-radius: var(--lc-radius) !important;
  border-color: var(--lc-line-soft) !important;
  box-shadow: none !important;
}
.tst-accordion { background: rgba(255,255,255,.02) !important; }
.tst-input { border-radius: var(--lc-radius) !important; }
.yzb-analysis-button { border-radius: var(--lc-radius) !important; box-shadow: none !important; }

/* 装修重量、梁墙开洞、飘窗模拟器 */
.dcc-shell,
.sff-shell,
.bws-shell {
  background: var(--lc-bg) !important;
}
.dcc-workbench,
.sff-section,
.sff-panel,
.bws-board {
  border-radius: var(--lc-radius) !important;
  border-color: var(--lc-line) !important;
  box-shadow: none !important;
}
.dcc-workbench { margin-bottom: 12px !important; }
.dcc-controls,
.dcc-visual { padding: 14px !important; }
.dcc-details,
.dcc-layer-card,
.sff-member-card { border-radius: var(--lc-radius) !important; }
.dcc-splitter,
.sff-resizer,
.bws-resizer { box-shadow: none !important; }
.bws-toolbar { box-shadow: none !important; }
.bws-tool,
.bws-popover,
.bws-analysis,
.sff-view-toolbar { border-radius: var(--lc-radius) !important; }

/* 进阶画板：让画布继续成为视觉中心。 */
.app { background: var(--lc-bg) !important; }
.side,
.stage-wrap { border-radius: var(--lc-radius) !important; box-shadow: none !important; }
.side { border-color: var(--lc-line) !important; }

/* 内容型页面保持紧凑，不使用浮夸阴影。 */
.shell,
.fbk-shell,
.support-shell,
.help-shell,
.board-shell {
  background: var(--lc-bg) !important;
}
.card,
.panel,
.section,
.fbk-card,
.support-card,
.board-card {
  box-shadow: none !important;
}

@media (max-width: 767.98px) {
  #tst-super-module,
  #yzb-super-module { padding: 8px !important; }
  .showcase-head { padding: 10px !important; }
  .showcase-head h2 { font-size: 20px !important; }
  .dcc-controls,
  .dcc-visual { padding: 10px !important; }
}
