/* Ansys Discovery 2022 R1 web clone — dark theme, 1920x1010 client area.
 * 布局来源：/data/dev/ansys2202r1-work/shots/discovery-main.png（逐项转录）。
 * 模态「Ans 产品改进计划」对话框不复刻；参考图整体被模态遮罩压暗，本页按正常亮度还原。
 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 1920px; height: 1010px; overflow: hidden; background: #000; }
body { font-family: "Liberation Sans", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
       font-size: 12px; color: #d6d6d6; -webkit-font-smoothing: antialiased; user-select: none; cursor: default; }
img { -webkit-user-drag: none; }
.win { position: relative; width: 1920px; height: 1010px; background: #1f1f1f; }

/* ============ 标题栏 ============ */
.titlebar { position: relative; height: 28px; display: flex; align-items: center;
  background: linear-gradient(#24409e, #1b2f8a 55%, #16266f); color: #f0f0f0; }
.titlebar .left { display: flex; align-items: center; gap: 7px; padding-left: 3px; }
.titlebar .left .tbtn { width: 23px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 2px; }
.titlebar .left .tbtn:hover { background: rgba(255,255,255,.14); }
.titlebar .left .tbtn img { width: 20px; height: 20px; }
.titlebar .left .logo { width: 28px; height: 26px; }
.titlebar .left .logo img { width: 28px; height: 28px; }
.titlebar .left .tbtn.small img { width: 16px; height: 16px; }
.titlebar .title { position: absolute; left: 0; right: 0; text-align: center; font-weight: 700; font-size: 14px;
  letter-spacing: .2px; color: #ededed; pointer-events: none; }
.titlebar .right { position: absolute; right: 6px; top: 0; height: 28px; display: flex; align-items: center; gap: 7px; }
.titlebar .release { font-style: italic; font-weight: 600; font-size: 14px; padding-right: 2px;
  background: linear-gradient(90deg, #7cc6ff, #a9e8ff 40%, #8fe2c4 70%, #e6f6ff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.titlebar .swirl img { width: 17px; height: 17px; opacity: .92; display: block; }
.titlebar .wbtn { width: 34px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 1px; }
.titlebar .wbtn img { width: 15px; height: 15px; opacity: .95; }
.titlebar .wbtn:hover { background: rgba(255,255,255,.18); }
.titlebar .wbtn.close:hover { background: #c42b1c; }

/* ============ Ribbon 页签行 ============ */
.tabrow { position: relative; height: 28px; background: #1f243b; display: flex; align-items: stretch; }
.tabrow .hamb { width: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tabrow .hamb img { width: 20px; height: 20px; opacity: .9; }
.tabrow .hamb:hover { background: #3a4466; }
.tabrow .tabs { display: flex; align-items: stretch; height: 28px; padding-left: 2px; }
.tab { position: relative; min-width: 74px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 5px;
  background: #232b4e; color: #c3cce6; font-size: 13px; cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); margin-right: 4px; }
.tab img { width: 17px; height: 17px; opacity: .95; }
.tab:hover { background: #2b3556; }
.tab.active { background: #1b1b1b; color: #f2f2f2; font-weight: 600; }
.tab.active img { opacity: 1; }
.tabrow .collapse { position: absolute; right: 8px; top: 0; height: 28px; width: 24px; display: flex; align-items: center; justify-content: center; }
.tabrow .collapse img { width: 13px; height: 13px; opacity: .75; }

/* ============ Ribbon ============ */
.ribbon { position: relative; height: 107px; background: #1f1f1f; display: flex; align-items: stretch; overflow: hidden; }
.rgroup { position: relative; height: 107px; display: flex; align-items: flex-start; padding: 3px 4px 0; border-right: 1px solid #3a3a3a; flex: 0 0 auto; }
.rgroup:last-child { border-right: 0; }
.rgroup .glabel { position: absolute; left: 0; right: 0; bottom: 2px; height: 15px; line-height: 15px; text-align: center;
  font-size: 12px; color: #bdbdbd; pointer-events: none; }
.rblock { display: flex; align-items: flex-start; }
.bigbtn { position: relative; width: 44px; height: 82px; display: flex; flex-direction: column; align-items: center;
  padding-top: 5px; border-radius: 2px; cursor: pointer; }
.bigbtn img { width: 32px; height: 32px; pointer-events: none; }
.bigbtn .lbl { margin-top: 13px; font-size: 12px; color: #d2d2d2; line-height: 14px; white-space: nowrap; }
.bigbtn .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid #a8a8a8; margin-top: 5px; }
.bigbtn:hover { background: #333; }
.bigbtn.selected { background: #3d7ea6; box-shadow: inset 0 0 0 1px #79c9e6; }
.bigbtn.selected .lbl { color: #fff; }
.bigbtn.selected .caret { border-top-color: #fff; }
.bigbtn.wide { width: 52px; }
.colstack { display: flex; flex-direction: column; padding-top: 3px; }
.smallbtn { display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 2px; border-radius: 2px; cursor: pointer; }
.smallbtn img { width: 20px; height: 20px; pointer-events: none; }
.smallbtn .lbl { font-size: 12px; color: #c8c8c8; white-space: nowrap; line-height: 20px; }
.smallbtn:hover { background: #343434; }
.smallbtn.selected { background: #3d7ea6; box-shadow: inset 0 0 0 1px #79c9e6; }
.smallbtn.selected .lbl { color: #fff; }
.iconbtn { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 2px; cursor: pointer; }
.iconbtn img { width: 20px; height: 20px; pointer-events: none; }
.iconbtn:hover { background: #343434; }
.iconbtn.selected { background: #3d7ea6; box-shadow: inset 0 0 0 1px #79c9e6; }
.grid { display: grid; }
.gridbtn { display: flex; align-items: center; justify-content: center; width: 28px; height: 27px; border-radius: 2px; cursor: pointer; }
.gridbtn img { width: 21px; height: 21px; pointer-events: none; }
.gridbtn:hover { background: #343434; }
.gridbtn.selected { background: #3d7ea6; }
.gridrow { display: flex; }
.rgroup.inferred .glabel { color: #8d9ab5; }

/* ============ 主体/图形区 ============ */
.body { position: relative; width: 1920px; height: 817px; background: #000; }
.gfx { position: absolute; left: 0; top: 0; width: 1920px; height: 817px; overflow: hidden; background: #0b0b0b; }
.gfx canvas { position: absolute; left: 0; top: 0; width: 1920px; height: 817px; display: block; }
.watermark { display: none; }

/* 左侧结构树（浮于图形区之上，无硬边界，与背景融合） */
.leftdock { position: absolute; left: 0; top: 0; width: 222px; height: 817px;
  background: linear-gradient(90deg, rgba(28,28,28,.88) 0%, rgba(26,26,26,.72) 78%, rgba(24,24,24,0) 100%); }
.scenerow { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 16px; }
.scenerow .eye { width: 20px; height: 20px; opacity: .8; cursor: pointer; }
.scenerow .eye img { width: 20px; height: 20px; }
.scenerow .doc { width: 20px; height: 20px; margin-left: 22px; }
.scenerow .doc img { width: 20px; height: 20px; }
.scenerow .scene-name { color: #d9982f; font-size: 14px; font-weight: 600; }
.scenerow .sync { width: 20px; height: 20px; margin-left: 8px; opacity: .6; }
.scenerow .sync img { width: 19px; height: 19px; }
.treebox { padding-top: 2px; }
.trow { position: relative; height: 22px; display: flex; align-items: center; gap: 6px; padding-left: 8px; cursor: pointer; white-space: nowrap; }
.trow:hover { background: rgba(255,255,255,.05); }
.trow.sel { background: rgba(61,126,166,.45); }
.trow .twisty { width: 12px; height: 12px; display: flex; align-items: center; justify-content: center; }
.trow .twisty .tri { width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 5px solid #9aa7c0; }
.trow.collapsed .twisty .tri { border-left: 0; border-right: 5px solid #9aa7c0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.trow img.ico { width: 19px; height: 19px; }
.trow .tlabel { font-size: 13px; color: #d9d9d9; }
.trow.material .tlabel { color: #cfcfcf; }
.trow .connector { position: absolute; left: 20px; top: -22px; width: 1px; height: 33px; background: #4a4a4a; }
.trow .connector.h { left: 20px; top: 11px; width: 12px; height: 1px; }

/* 图形区右上小图标 */
.topicons { position: absolute; right: 8px; top: 2px; display: flex; align-items: center; gap: 6px; }
.topicons .ib { width: 26px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 2px; }
.topicons .ib img { width: 21px; height: 21px; opacity: .9; }
.topicons .ib:hover { background: rgba(255,255,255,.1); }
.collapsebtn { position: absolute; right: 74px; top: 6px; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.collapsebtn img { width: 15px; height: 15px; opacity: .7; }

/* 左下导航罗盘 */
.wheel { position: absolute; pointer-events: none; }
.wheel.left { left: 0; bottom: -14px; width: 210px; height: 210px; }
.wheel.left .ring { position: absolute; left: 0; bottom: 4px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle at 48% 45%, #2e2e2e 0%, #1e1e1e 64%, rgba(20,20,20,.06) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035); }
.wheel.left .inner { left: 2px; bottom: 13px; width: 108px; height: 108px; position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #343434 0%, #1b1b1b 82%); }
.wheel.left .ic { position: absolute; width: 26px; height: 26px; }
.wheel.left .ic img { width: 26px; height: 26px; }
.wheel.left .undo-redo { position: absolute; left: 12px; bottom: 2px; display: flex; gap: 12px; }
.wheel.left .undo-redo img { width: 21px; height: 21px; opacity: .75; }

/* 右下导航轮 */
.wheel.right { right: -63px; bottom: -53px; width: 250px; height: 240px; }
.wheel.right .ring { position: absolute; left: 0; bottom: 0; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle at 44% 45%, rgba(44,44,44,.92) 0%, rgba(30,30,30,.5) 58%, rgba(20,20,20,0) 80%); }
.wheel.right .inner { position: absolute; left: 66px; bottom: 66px; width: 108px; height: 108px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06); }
.wheel.right .power { position: absolute; left: 90px; bottom: 90px; width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a3a3a, #1c1c1c); box-shadow: 0 0 0 1px rgba(255,255,255,.05); }
.wheel.right .power img { width: 44px; height: 44px; margin: 8px; opacity: .7; }
.wheel.right .ic { position: absolute; width: 26px; height: 26px; opacity: .8; }
.wheel.right .ic img { width: 26px; height: 26px; }

/* 底部控制行 + 高级选取 + 探索条 */
.ctrlrow { position: absolute; right: 150px; bottom: 6px; display: flex; align-items: center; gap: 14px; }
.ctrlrow .cb { width: 23px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 2px; }
.ctrlrow .cb img { width: 20px; height: 20px; opacity: .85; }
.ctrlrow .cb:hover { background: rgba(255,255,255,.1); }
.advanced { position: absolute; right: 343px; bottom: 6px; display: flex; align-items: center; gap: 6px; color: #a9a9a9; font-size: 13px; cursor: pointer; }
.advanced img { width: 12px; height: 12px; opacity: .8; }
.advanced:hover { color: #d8d8d8; }
.explore { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; height: 30px; width: 214px;
  display: flex; align-items: center; justify-content: center; pointer-events: auto; cursor: pointer; }
.explore .wrap { position: relative; width: 168px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(#936e30, #7a5a24); clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 100%, 0 100%); }
.explore .wrap:before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 6px solid #141414; }
.explore .lbl { font-size: 14px; color: #2b2113; font-weight: 700; letter-spacing: 2px; }
.explore .chev { width: 23px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: #262626; clip-path: polygon(0 0, 100% 50%, 0 100%, 11px 50%); }
.explore .chev img { width: 9px; height: 12px; opacity: .8; }
.explore .chev.r { clip-path: polygon(100% 0, 0 50%, 100% 100%, calc(100% - 11px) 50%); }
.explore:hover .wrap { filter: brightness(1.12); }
.modeltip { position: absolute; left: 250px; bottom: 44px; max-width: 520px; padding: 4px 8px; background: rgba(0,0,0,.65);
  border: 1px solid #3d3d3d; border-radius: 2px; color: #cfcfcf; font-size: 12px; display: none; }
.modeltip.show { display: block; }

/* ============ 状态栏 ============ */
.statusbar { position: absolute; left: 0; bottom: 0; width: 1920px; height: 30px; background: #1f243b;
  display: flex; align-items: center; padding: 0 12px; color: #9aa6c8; font-size: 12px; }
.statusbar .msg { flex: 1; }
.statusbar .right { display: flex; align-items: center; gap: 10px; }
.statusbar .grip { width: 18px; height: 18px; }
.statusbar .grip img { width: 18px; height: 18px; opacity: .9; }

/* ============ 下拉菜单 ============ */
.menulayer { position: absolute; inset: 0; pointer-events: none; z-index: 60; }
.menu { position: absolute; min-width: 150px; background: #2a2a2a; border: 1px solid #4a4a4a; border-radius: 3px;
  box-shadow: 0 6px 18px rgba(0,0,0,.55); padding: 4px 0; pointer-events: auto; }
.menu .mi { position: relative; height: 24px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 12px;
  color: #d8d8d8; font-size: 12px; white-space: nowrap; cursor: pointer; }
.menu .mi:hover { background: #3d7ea6; color: #fff; }
.menu .mi .badge { margin-left: auto; padding-left: 12px; color: #c99a4b; font-size: 11px; }
.menu .mi:hover .badge { color: #ffe2b0; }
.menu .sep { height: 1px; background: #3f3f3f; margin: 4px 8px; }
.menu .mhead { padding: 5px 12px 4px; color: #8fa0c8; font-size: 11px; letter-spacing: .5px; }

/* ============ 数值验证面板 ============ */
.numpanel { position: absolute; right: 22px; top: 178px; width: 820px; max-height: 640px; z-index: 80;
  background: rgba(18,18,18,.97); border: 1px solid #4e5a7c; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.65);
  display: flex; flex-direction: column; }
.numpanel.hidden { display: none; }
.numpanel .nh { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #39405a;
  background: #232b45; border-radius: 4px 4px 0 0; }
.numpanel .nh .t { font-size: 14px; font-weight: 700; color: #e8edf8; }
.numpanel .nh .sub { color: #8fa0c8; font-size: 11px; }
.numpanel .nh .x { margin-left: auto; color: #aab; cursor: pointer; padding: 0 4px; }
.numpanel .nh .x:hover { color: #fff; }
.numpanel .nb { padding: 8px 12px; overflow: auto; }
.numpanel table { border-collapse: collapse; width: 100%; font-size: 11px; }
.numpanel th { color: #9fb0d8; font-weight: 600; text-align: left; padding: 3px 6px; border-bottom: 1px solid #3a4260; }
.numpanel td { padding: 4px 6px; border-bottom: 1px solid #262b3c; color: #d0d0d0; vertical-align: top; }
.numpanel td.id { color: #cfe3ff; font-family: "DejaVu Sans Mono", monospace; font-size: 11px; white-space: nowrap; }
.numpanel td.num { font-family: "DejaVu Sans Mono", monospace; font-size: 10.5px; word-break: break-all; }
.numpanel th:nth-child(1) { width: 148px; } .numpanel th:nth-child(2) { width: 210px; }
.numpanel th:nth-child(3) { width: 170px; } .numpanel th:nth-child(4) { width: 170px; }
.numpanel th:nth-child(5) { width: 84px; } .numpanel th:nth-child(6) { width: 54px; } .numpanel th:nth-child(7) { width: 46px; }
.numpanel .pass { color: #7fd18a; font-weight: 700; }
.numpanel .fail { color: #ff7b6b; font-weight: 700; }
.numpanel .sum { margin: 8px 0 2px; font-size: 13px; color: #e0e6f5; }
.numpanel .sum b.pass { color: #7fd18a; }
.numpanel .sum b.fail { color: #ff7b6b; }
.numpanel .note { color: #93a0b8; font-size: 11px; margin-top: 6px; line-height: 16px; }
.numpanel .runbtn { margin-left: 12px; font-size: 11px; padding: 2px 10px; border: 1px solid #5b6a92; border-radius: 3px; color: #dbe4ff; cursor: pointer; }
.numpanel .runbtn:hover { background: #3d7ea6; }
