/* ANSYS Mechanical 2022 R1 web clone — 中文界面复刻（1920x1010）。
 * 参考：/data/dev/ansys2202r1-work/shots/mechanical-main.png (1936x1048, PrintWindow)
 *   截图外框 8px -> 内容 1920x1032；参考截图客户内容 = abs(8,31)-(1928,1040) = 1920x1009。
 *   本页把该 1009px 内容 + 22px 窗口标题行压进 1010px 视图（body 吸收 21px 差）。
 * 纵向实测（参考内容坐标，px）：
 *   0..28     Ribbon 页签行（文件蓝 tab / 主页选中 / 项目... / 快速启动）
 *   29..29    1px 分隔线
 *   30..118   Ribbon 内容行（分组 轮廓|求解|插入|工具|布局，分组竖分隔 x=215/437/765/1238/1439）
 *   120..146  图形工具条行（左侧 x0..287 为「轮廓」停靠标题栏）
 *   147..987  主体（左面板 0..287 | 分隔 288..291 | 图形区 292..1919）
 *   988..1008 状态栏 #007ACC
 * 左面板：树停靠 120..637（标题 120..141 / 过滤行 142..168 / 树 169..637）、
 *         分隔 638..641、详细信息 642..987（标题 642..663 / 表格 664..895 / 空白）
 * 横向：树面板宽 288，详细信息标签列 0..131，值列 131..288。
 * 图形区：浅蓝线性渐变 (107,140,222)->(254,254,255)，右上 Ansys 2022 R1 水印，
 *         右下 XYZ 坐标轴（X 红 / Y 绿 / Z 蓝）。
 */
:root {
  --font: "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Rubik", "Segoe UI", sans-serif;
  --bg: #EFEFF2;
  --ribbon-bg: #FAFAFA;
  --line: #C6C6C6;
  --line-strong: #A8A8A8;
  --blue: #0072C6;
  --status: #007ACC;
  --text: #000000;
  --sel: #CCE4F7;
  --link: #1E51BC;
  --tree-head: linear-gradient(to bottom, #F2F2F6 0%, #DDDDE6 55%, #CCCEDB 100%);
  --dock-head: linear-gradient(to bottom, #F4F4F8 0%, #E6E6EC 50%, #CCCEDB 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: var(--bg); }
body { font-family: var(--font); font-size: 12px; color: var(--text); user-select: none; -webkit-font-smoothing: antialiased; }
img { -webkit-user-drag: none; display: block; }
.win { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--ribbon-bg); }

/* ================= 标题行 ================= */
.titlebar { position: relative; flex: 0 0 22px; height: 22px; background: var(--bg); }
.titlebar .appicon { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; }
.titlebar .savewrap { position: absolute; left: 32px; top: 3px; display: flex; align-items: center; height: 16px; }
.titlebar .savewrap img { width: 16px; height: 16px; }
.titlebar .savewrap .caret { margin-left: 3px; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid #555; }
.titlebar .envtab { position: absolute; left: 115px; top: 0; width: 48px; height: 22px; background: #CCE4FC;
  border-top: 3px solid #2B579A; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #16324F; }
.titlebar .wintitle { position: absolute; left: 0; right: 0; top: 2px; height: 18px; text-align: center;
  font-size: 12px; color: #8F8F8F; white-space: nowrap; pointer-events: none; }
.titlebar .sysbtns { position: absolute; right: 0; top: 0; height: 22px; display: flex; }
.titlebar .sysbtn { width: 46px; height: 22px; display: grid; place-items: center; color: #1B1B1B; }
.titlebar .sysbtn:hover { background: #E5E5E5; }
.titlebar .sysbtn.close:hover { background: #E81123; color: #fff; }
.titlebar .sysbtn .g-min { width: 10px; height: 1px; background: currentColor; }
.titlebar .sysbtn .g-max { width: 9px; height: 9px; border: 1px solid currentColor; }
.titlebar .sysbtn .g-close { font-size: 13px; line-height: 1; }

/* ================= Ribbon 页签行 ================= */
.tabrow { position: relative; flex: 0 0 29px; height: 29px; background: var(--bg); border-bottom: 1px solid #C6C6C6; }
.tabrow .tab { position: absolute; top: 0; height: 29px; font-size: 13px; color: #000; white-space: nowrap; cursor: default; }
.tabrow .tab.file { left: 0; width: 56px; height: 29px; background: var(--blue); color: #fff; display: grid; place-items: center;
  border-radius: 5px 5px 0 0; font-size: 13px; }
.tabrow .tab.file:hover { background: #0A7FD0; }
.tabrow .tab.main { top: 3px; height: 27px; padding: 0 12px; display: flex; align-items: center;
  border: 1px solid transparent; border-bottom: none; }
.tabrow .tab.main:hover { background: #E3E9F2; }
.tabrow .tab.main.active { top: 2px; height: 27px; background: #FCFCFC; border: 1px solid #C0C0C0;
  border-bottom: 1px solid #FCFCFC; border-radius: 4px 4px 0 0; z-index: 3; }
.tabrow .searchwrap { position: absolute; right: 34px; top: 3px; width: 166px; height: 22px; }
.tabrow .searchbox { width: 166px; height: 22px; background: #fff; border: 1px solid #9E9E9E; display: flex; align-items: center; padding: 0 6px; }
.tabrow .searchbox .ph { color: #8C8C8C; font-size: 12px; }
.tabrow .searchbox .caret { margin-left: auto; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #666; }
.tabrow .qicons { position: absolute; top: 5px; height: 18px; display: flex; align-items: center; gap: 7px; }
.tabrow .qicons .qarrow { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 7px solid #E0A020; }
.tabrow .qicons .qcheck { width: 10px; height: 10px; border: 1px solid #9A9A9A; background: #fff; position: relative; }
.tabrow .qicons .qcheck::after { content: ""; position: absolute; left: 1px; top: 2px; width: 6px; height: 2px; border-left: 2px solid #3B6EA5; border-bottom: 2px solid #3B6EA5; transform: rotate(-45deg); }
.tabrow .qicons .qhelp { width: 15px; height: 15px; border-radius: 50%; background: #5B8FD0; color: #fff; text-align: center; line-height: 15px; font-size: 11px; }

/* ================= Ribbon ================= */
.ribbon { position: relative; flex: 0 0 89px; height: 89px; background: var(--ribbon-bg); border-bottom: 1px solid #C6C6C6; overflow: hidden; }
.ribbon .group { position: absolute; top: 0; height: 89px; }
.ribbon .group + .group { }
.ribbon .gsep { position: absolute; top: 3px; width: 1px; height: 83px; background: #C8C8C8; }
.ribbon .glabel { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 12px; color: #000; white-space: nowrap; }
.ribbon .it { position: absolute; display: flex; align-items: center; cursor: default; white-space: nowrap; }
.ribbon .it:hover { background: #E5F1FB; outline: 1px solid #BFDBF5; }
.ribbon .it img { width: 16px; height: 16px; margin-right: 4px; }
.ribbon .it .lbl { font-size: 12px; line-height: 16px; color: #000; }
.ribbon .it.disabled .lbl { color: #969696; }
.ribbon .it.disabled img { opacity: .45; }
.ribbon .it.disabled:hover { background: none; outline: none; }
.ribbon .big { position: absolute; top: 2px; text-align: center; cursor: default; display: flex; flex-direction: column; align-items: center; }
.ribbon .big img { margin: 0 auto; }
.ribbon .big:hover { background: #E5F1FB; outline: 1px solid #BFDBF5; }
.ribbon .big .lbl { display: block; margin-top: 5px; font-size: 12px; line-height: 14px; color: #000; white-space: nowrap; }
.ribbon .big .caret { display: block; margin: 1px auto 0; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid #444; }
.ribbon .big:hover { background: #E5F1FB; outline: 1px solid #BFDBF5; }
.ribbon .caret-down { display: inline-block; width: 0; height: 0; margin-left: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid #333; vertical-align: middle; }
.ribbon .combo { position: absolute; height: 22px; background: #fff; border: 1px solid #9E9E9E; display: flex; align-items: center; padding: 0 5px; font-size: 12px; }
.ribbon .combo .caret { margin-left: auto; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid #555; }
.ribbon .chk { position: absolute; display: flex; align-items: center; gap: 5px; }
.ribbon .chk .box { width: 12px; height: 12px; border: 1px solid #8A8A8A; background: #fff; position: relative; }
.ribbon .chk.on .box::after { content: ""; position: absolute; left: 1px; top: 2px; width: 7px; height: 3px;
  border-left: 2px solid #1B4B9C; border-bottom: 2px solid #1B4B9C; transform: rotate(-45deg); }
.ribbon .chk .lbl { font-size: 12px; }
.ribbon .lblonly { position: absolute; font-size: 12px; }
.ribbon .edit { position: absolute; height: 22px; background: #fff; border: 1px solid #9E9E9E; padding: 0 4px; font-size: 12px; line-height: 20px; }
.ribbon .dlg { position: absolute; width: 12px; height: 12px; border: 1px solid #666; right: 4px; bottom: 4px; }
.ribbon .dlg::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 8px; height: 8px;
  border-right: 2px solid #666; border-bottom: 2px solid #666; }

/* ================= 工具条行 ================= */
.toolrow { position: relative; flex: 0 0 27px; height: 27px; background: var(--bg); border-bottom: 1px solid #BDBDBD; }
.toolrow .treehead { position: absolute; left: 0; top: 0; width: 288px; height: 22px; border-bottom: 1px solid #BDBDBD;
  background: var(--dock-head); display: flex; align-items: center; }
.toolrow .treehead .name { margin-left: 6px; font-size: 12px; }
.toolrow .treehead .dots { flex: 1 1 auto; height: 3px; margin: 0 4px;
  background-image: radial-gradient(circle, #9C9CA8 0.7px, transparent 0.9px); background-size: 4px 3px; background-repeat: repeat-x; }
.toolrow .treehead .hbtns { display: flex; align-items: center; gap: 6px; padding-right: 5px; color: #1B1B1B; }
.toolrow .treehead .hbtn { width: 13px; height: 13px; display: grid; place-items: center; }
.toolrow .treehead .hbtn:hover { background: rgba(0,0,0,.12); }
.toolrow .treehead .hbtn svg { display: block; }
.gfxtoolbar { position: relative; flex: 0 0 27px; height: 27px; background: var(--bg); border-bottom: 1px solid #BDBDBD; display: flex; align-items: center; padding-left: 4px; }
.gfxtoolbar .grip { width: 14px; margin-left: 5px; height: 17px;
  background-image: radial-gradient(circle, #A8A8B0 0.8px, transparent 1px); background-size: 3px 3px; }
.gfxtoolbar .tsep { width: 1px; height: 18px; background: #C4C4C4; margin: 0 5px; }
.gfxtoolbar .ib { height: 22px; min-width: 24px; padding: 0 3px; display: flex; align-items: center; justify-content: center; cursor: default; }
.gfxtoolbar .ib:hover { background: #E5F1FB; outline: 1px solid #BFDBF5; }
.gfxtoolbar .ib.on { background: #CDE6FA; outline: 1px solid #7FB8E8; }
.gfxtoolbar .ib img { width: 16px; height: 16px; }
.gfxtoolbar .ib .caret { width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid #333; margin-left: 2px; }
.gfxtoolbar .txt { padding: 0 5px; height: 22px; display: flex; align-items: center; font-size: 12px; }
.gfxtoolbar .txt:hover { background: #E5F1FB; outline: 1px solid #BFDBF5; }
.gfxtoolbar .txt .caret { margin-left: 3px; }
.gfxtoolbar .empty { color: #666; }

/* ================= 主体 ================= */
.body { position: relative; flex: 1 1 auto; display: flex; min-height: 0; background: #fff; }
.leftdock { position: relative; flex: 0 0 288px; width: 288px; height: 100%; background: var(--bg); display: flex; flex-direction: column; min-height: 0; }
.splitter-v { flex: 0 0 4px; width: 4px; background: var(--bg); border-left: 1px solid #fff; border-right: 1px solid #8A8A8A; cursor: col-resize; }
.views { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.graphics { position: relative; flex: 1 1 auto; overflow: hidden; background: linear-gradient(to bottom, #6B8CDE 0%, #7F9AE1 20%, #A9BDEB 50%, #D3DEF5 75%, #FEFEFF 100%); }
.graphics canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.watermark { position: absolute; right: 3px; top: 20px; text-align: right; color: rgba(255,255,255,.96); pointer-events: none; }
.watermark .a1 { display: block; font-size: 40px; line-height: 38px; font-weight: 500; letter-spacing: 1px; }
.watermark .a2 { display: block; font-size: 16px; line-height: 18px; letter-spacing: .5px; margin-top: 3px; font-weight: 500; }

/* 左面板：停靠标题栏 / 过滤行 / 树 / 详细信息 */
.leftdock .dockhead { position: relative; flex: 0 0 22px; height: 22px; background: var(--dock-head);
  border-bottom: 1px solid #BDBDBD; display: flex; align-items: center; }
.graphics { background: linear-gradient(to bottom, #6B8CDE 0%, #7F9AE1 20%, #A9BDEB 50%, #D3DEF5 75%, #FEFEFF 100%); }
.leftdock .dockhead .name { margin-left: 6px; font-size: 12px; }
.leftdock .dockhead .dots { flex: 1 1 auto; height: 3px; margin: 0 4px;
  background-image: radial-gradient(circle, #9C9CA8 0.7px, transparent 0.9px); background-size: 4px 3px; background-repeat: repeat-x; }
.leftdock .dockhead .hbtns { display: flex; align-items: center; gap: 6px; padding-right: 5px; }
.leftdock .dockhead .hbtn { width: 13px; height: 13px; display: grid; place-items: center; color: #1B1B1B; }
.leftdock .dockhead .hbtn:hover { background: rgba(0,0,0,.12); }
.leftdock .dockhead .hbtn svg { display: block; }
.dockfilter { position: relative; flex: 0 0 27px; height: 27px; background: var(--bg); border-bottom: 1px solid #C6C6C6; }
.dockfilter .grip { position: absolute; left: 3px; top: 4px; width: 10px; height: 19px;
  background-image: radial-gradient(circle, #A0A0A8 0.8px, transparent 1px); background-size: 3px 3px; }
.dockfilter .namecombo { position: absolute; left: 19px; top: 3px; width: 89px; height: 21px; background: #fff;
  border: 1px solid #A6A6A6; display: flex; align-items: center; padding: 0 4px; font-size: 12px; }
.dockfilter .namecombo .caret { margin-left: auto; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #444; }
.dockfilter .search { position: absolute; left: 111px; top: 3px; width: 82px; height: 21px; background: #fff;
  border: 1px solid #A6A6A6; display: flex; align-items: center; padding: 0 4px; }
.dockfilter .search .ph { color: #9A9A9A; font-size: 12px; white-space: nowrap; }
.dockfilter .funnel { position: absolute; top: 5px; width: 16px; height: 16px; display: grid; place-items: center; color: #C8A020; font-size: 12px; }
.dockfilter .funnel:hover { background: #E5F1FB; }
.treebox { position: relative; flex: 1 1 auto; overflow: auto; background: #fff; min-height: 60px; }
.treebox .trow { position: relative; height: 17px; display: flex; align-items: center; white-space: nowrap; padding-left: 0; cursor: default; }
.treebox .trow:hover { background: #E5F1FB; }
.treebox .trow.sel { background: #0078D7; }
.treebox .trow.sel .lbl { color: #fff; }
.treebox .twist { width: 12px; height: 12px; display: grid; place-items: center; color: #333; font-size: 10px; flex: 0 0 12px; }
.treebox .twist .box { width: 9px; height: 9px; border: 1px solid #7A7A7A; background: #fff; position: relative; }
.treebox .twist .box.minus::after { content: ""; position: absolute; left: 1px; top: 3px; width: 5px; height: 1px; background: #333; }
.treebox .twist .box.plus::after { content: ""; position: absolute; left: 1px; top: 3px; width: 5px; height: 1px; background: #333; }
.treebox .twist .box.plus::before { content: ""; position: absolute; left: 3px; top: 1px; width: 1px; height: 5px; background: #333; }
.treebox .twist .tri { width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 5px solid #333; }
.treebox .ico { width: 16px; height: 16px; flex: 0 0 16px; }
.treebox .lbl { font-size: 12px; margin-left: 5px; color: #000; }
.treebox .trow.hdr .lbl { font-weight: 700; }
.treebox .trow.ghost { pointer-events: none; }
.treebox .indent { flex: 0 0 auto; }
.splitter-h { flex: 0 0 4px; height: 4px; background: var(--bg); border-top: 1px solid #fff; border-bottom: 1px solid #8A8A8A; cursor: row-resize; }
.details { position: relative; flex: 0 0 auto; height: 303px; background: #fff; overflow: auto; border-top: 1px solid #fff; }
.details .dtable { position: relative; width: 100%; }
.details .dsec { position: relative; height: 21px; display: flex; align-items: center; border-bottom: 1px solid #9E9E9E;
  border-top: 1px solid #E8E8E8; background: #FDFDFD; }
.details .dsec .exp { width: 12px; height: 12px; margin-left: 1px; border: 1px solid #8C8C8C; background: #fff; position: relative; flex: 0 0 12px; }
.details .dsec .exp::after { content: ""; position: absolute; left: 1px; top: 4px; width: 7px; height: 1px; background: #333; }
.details .dsec .lbl { margin-left: 5px; font-weight: 700; font-size: 12px; }
.details .drow { position: relative; height: 21px; display: flex; border-bottom: 1px solid #A8A8A8; background: #fff; }
.details .drow .k { width: 131px; flex: 0 0 131px; padding-left: 6px; display: flex; align-items: center; border-right: 1px solid #A8A8A8; font-size: 12px; }
.details .drow .v { flex: 1 1 auto; padding-left: 7px; display: flex; align-items: center; font-size: 12px; }
.details .drow .v.info { background: #EFEDE4; }
.details .drow .v.editable { background: #fff; }
.details .drow .v.yesno { background: #fff; }

/* ================= 状态栏 ================= */
.statusbar { position: relative; flex: 0 0 21px; height: 21px; background: var(--status); color: #fff; }
.statusbar .left { position: absolute; left: 8px; top: 0; height: 21px; display: flex; align-items: center; gap: 6px; font-size: 12px; }
.statusbar .widgets { position: absolute; right: 0; top: 0; height: 21px; display: flex; align-items: stretch; }
.statusbar .wid { display: flex; align-items: center; gap: 5px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
.statusbar .wid:hover { background: rgba(255,255,255,.18); }
.statusbar .wid img { width: 14px; height: 14px; }
.statusbar .wid .dot { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #9DF09D, #37B637 60%, #1B761B); }
.statusbar .sep { width: 1px; height: 13px; background: rgba(255,255,255,.35); align-self: center; }
.statusbar .wid .link { color: #fff; text-decoration: none; }

/* ================= 消息面板 ================= */
.logpanel { position: absolute; right: 16px; bottom: 26px; width: 720px; max-height: 420px; background: #FFFFFF;
  border: 1px solid #7A7A7A; box-shadow: 3px 3px 8px rgba(0,0,0,.3); z-index: 900; display: flex; flex-direction: column; }
.logpanel.hidden { display: none; }
.lphead { height: 24px; background: linear-gradient(to bottom, #F5F5F9, #D9D9E3); border-bottom: 1px solid #A8A8A8;
  display: flex; align-items: center; padding: 0 8px; font-weight: 700; }
.lphead .lpclose { margin-left: auto; cursor: default; padding: 0 4px; }
.lphead .lpclose:hover { background: #E5F1FB; }
.lpbody { padding: 6px 10px; font-family: "Consolas", "DejaVu Sans Mono", monospace; font-size: 12px; white-space: pre-wrap;
  overflow: auto; max-height: 390px; color: #16324F; }

/* ================= 数值面板（?numeric=1 / 求解按钮） ================= */
.num-panel { position: absolute; left: 320px; top: 60px; width: 1120px; max-height: 780px; background: #fff;
  border: 1px solid #4B6A8F; box-shadow: 4px 4px 12px rgba(0,0,0,.35); z-index: 950; display: flex; flex-direction: column; }
.num-panel .np-head { height: 26px; background: linear-gradient(to bottom, #0A5AA8, #08427C); color: #fff;
  display: flex; align-items: center; padding: 0 10px; font-size: 12px; font-weight: 700; }
.num-panel .np-head .x { margin-left: auto; cursor: default; padding: 0 4px; }
.num-panel .np-head .x:hover { background: rgba(255,255,255,.25); }
.num-panel .np-src { padding: 5px 10px; font-size: 11px; color: #4A5A70; border-bottom: 1px solid #D8DEE8; }
.num-panel .np-body { overflow: auto; padding: 6px 10px 10px; }
.num-panel table { border-collapse: collapse; width: 100%; font-size: 11px; }
.num-panel th, .num-panel td { border: 1px solid #D0D6DE; padding: 3px 5px; text-align: left; vertical-align: top; }
.num-panel th { background: #EDF1F7; font-weight: 700; }
.num-panel td.num { font-family: "Consolas", "DejaVu Sans Mono", monospace; white-space: nowrap; }
.num-panel tr.pass td.v { color: #0A7A20; font-weight: 700; }
.num-panel tr.fail td.v { color: #B00020; font-weight: 700; }
.num-panel .np-sum { margin-top: 7px; padding: 6px 8px; background: #0A5AA8; color: #fff; font-weight: 700; font-size: 12px; }
.num-panel .np-sum.fail { background: #B00020; }
.num-panel .np-cases { margin-top: 6px; font-size: 11px; color: #3A4A60; }
.num-panel .np-case { padding: 2px 0; }
.num-panel .np-case b { color: #0A5AA8; }

/* 求解结果图例 */
.legend { position: absolute; left: 316px; bottom: 26px; background: rgba(255,255,255,.92); border: 1px solid #8C9AB0;
  padding: 6px 8px; font-size: 11px; color: #1B2B44; z-index: 500; max-width: 460px; }
.legend.hidden { display: none; }
.legend .lg-title { font-weight: 700; margin-bottom: 3px; }
.legend .lg-row { display: flex; align-items: center; gap: 6px; }
.legend .swatch { width: 90px; height: 9px; }
.legend .lg-note { color: #5A6A80; margin-top: 2px; }