body {
    margin: 0px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.v3d-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.fullscreen-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: 100% 100%;
    display: none;
    z-index: 1;
}

.fullscreen-open {
    background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
    background-image: url('media/fullscreen_close.svg');
}

/* removes tap blinking on ios devices */
* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}


/* PIP view */

#cameras {
    z-index: 2;
    position: absolute;
    right: 0px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0);
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#cameras.cameras-enlarged-container {
    z-index: 100 !important;
}

#cameras.cameras-enlarged-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: transparent;
    pointer-events: auto;
    cursor: default;
}

.forceCollapse {
    display: none;
}

/* ... */

#cameras #cameraItems #camer-view canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
}


/* Enlarged state */
#cameras #cameraItems #camer-view.enlarged {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90vmin !important;
    height: auto !important;
    width: 90vmin !important;
    height: auto !important;
    z-index: 100 !important;
    box-shadow: 0 0 0 300vmax rgba(0, 0, 0, 0.8), 0 0 150px rgba(0, 0, 0, 0.9) inset;
    cursor: default;
}

#cameras #rightCollapse {
    position: relative;
    width: 35px;
    height: 22px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    fill: #015E5F;
    transition: transform 0.3s;
}

#cameras #rightCollapse #rightLeft {
    position: absolute;
    left: -1px;
    width: 34px;
    top: 0;
    fill: #FFFFFF;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#cameras #rightCollapse:hover #rightLeft {
    fill: #FFFFFF;
}

#cameras #rightCollapse #rightRight {
    position: absolute;
    left: -2px;
    width: 34px;
    top: 0;
    fill: #FFFFFF;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

#cameras.collapsed #rightCollapse #rightLeft {
    opacity: 0;
    pointer-events: none;
}

#cameras.collapsed #rightCollapse #rightRight {
    opacity: 1;
    pointer-events: auto;
}

#cameras.collapsed #rightCollapse:hover #rightRight {
    fill: #FFFFFF;
}

#cameras #cameraButton {
    display: none;
}

#cameras.collapsed #cameraButton {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 6px 0 0 6px;
    background-color: #015E5F;
    fill: #FFFFFF;
}

#cameras.collapsed #cameraButton:hover {
    cursor: pointer;
    fill: #FFFFFF;
}

#cameras #cameraItems {
    overflow: hidden;
    padding: 6px;
    /* Uniform 6px padding on all sides */
    border-radius: 6px 0 0 6px;
    background: #015E5F;
    width: fit-content;
    height: auto;
    display: inline-flex;
    box-sizing: content-box;
    transition: width 0.5s ease-in-out, opacity 0.5s, height 0.5s;
    position: relative;
    opacity: 1;
}

#cameras.collapsed #cameraItems {
    width: 0px;
    height: 0px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

#cameras #cameraItems #rendertarget {
    display: none;
}

/* Pure view style - Forced structure to prevent collapse while allowing dynamic sizing */
#cameras #cameraItems #camer-view {
    position: relative !important;
    display: block !important;
    /* min-width: 512px;
    min-height: 512px; */
    background: #000;
    box-shadow: 0 0 150px rgba(0, 0, 0, 0.9) inset;
    z-index: 3;
    pointer-events: auto;
    /* Changed to auto to allow clicking */
    cursor: pointer;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

#cameras #cameraItems #camer-view canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
}

#cameras #cameraItems #camer-view:hover {
    box-shadow: 0 0 10px #FFFFFF inset, 0 0 150px rgba(0, 0, 0, 0.9) inset;
}

/* Enlarged state */
#cameras #cameraItems #camer-view.enlarged {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90vmin !important;
    height: auto !important;
    z-index: 100 !important;
    box-shadow: 0 0 0 300vmax rgba(0, 0, 0, 0.8), 0 0 150px rgba(0, 0, 0, 0.9) inset;
    cursor: default;
}

#cameraClose {
    position: fixed;
    top: 5vh;
    right: 5vw;
    width: 30px;
    height: 30px;
    z-index: 101 !important;
    cursor: pointer;
    opacity: 0.8;
}

#cameraClose:hover {
    opacity: 1;
}

#cameraClose.hide {
    display: none;
}

/* --- 监控影像放大样式 (Image Monitor Enlarged) --- */
#image-monitor.enlarged {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 95vw !important;
    height: 95vh !important;
    max-height: 95vh !important;
    z-index: 1000 !important;
    box-shadow: 0 0 0 300vmax rgba(0, 0, 0, 0.95);
    background: #000 !important;
    border: none;
    cursor: default;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#image-monitor.enlarged #imageItems {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    /* 移除蓝底 */
}

#image-monitor.enlarged #monitor-image {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    box-shadow: none !important;
}

#image-monitor.enlarged #imageCollapse,
#image-monitor.enlarged #imageButton {
    display: none !important;
}

#imageClose {
    position: fixed !important;
    top: 5vh !important;
    right: 5vw !important;
    width: 36px !important;
    height: 36px !important;
    z-index: 2000 !important;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 6px;
    box-sizing: border-box;
    transition: background 0.2s;
}

#imageClose:hover {
    background: rgba(255, 60, 60, 0.8);
}

#imageClose.hide {
    display: none !important;
}



@media (max-width: 1024px) {
    #cameras #rightCollapse {
        width: 29.167px;
        height: 18.333px;
        margin: 0;
    }

    #cameras #rightCollapse #rightLeft {
        width: 28.333px;
    }

    #cameras.collapsed #rightCollapse #rightRight {
        width: 28.333px;
    }

    #cameras.collapsed #cameraButton {
        width: 50px;
        height: 50px;
    }

    #cameras #cameraItems {
        padding: 5px;
        /* Scaled padding */
        width: fit-content;
        height: auto;
    }

    #cameras #cameraItems #camer-view {
        position: relative;
        width: 426.666px;
        height: 426.666px;
    }
}

@media (max-width: 500px) {
    #cameras.collapsed #cameraButton {
        width: 40px;
        height: 40px;
    }

    #cameras #cameraItems {
        padding: 4px;
        /* Scaled padding */
        width: fit-content;
        height: auto;
    }

    #cameras #cameraItems #camer-view {
        position: relative;
        width: 333.333px;
        height: 333.333px;
    }
}

/* Left panel */

#leftPanel {
    z-index: 3;
    min-width: 60px;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
}

#leftCollapse {
    width: 35px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    fill: #015E5F;
}

#leftCollapse #leftLeft {
    position: absolute;
    left: -6px;
    width: 34px;
    height: 21px;
    top: 0;
    fill: #FFFFFF;
}

#leftCollapse #leftRight {
    display: none;
    position: absolute;
    left: -7px;
    width: 34px;
    height: 21px;
    top: 0;
    fill: #FFFFFF;
}

#leftCollapse:hover #leftLeft {
    fill: #FFFFFF;
}

#leftPanel.collapsed #leftCollapse #leftLeft {
    display: none;
}

#leftPanel.collapsed #leftCollapse #leftRight {
    display: block;
}

#leftPanel.collapsed #leftCollapse:hover #leftRight {
    fill: #FFFFFF;
}

#leftPanel>ul {
    list-style-type: none;
    padding-left: 0px;
    margin-top: 0;
    margin-bottom: 0;
    background: #015E5F;
    overflow: hidden;
    border-radius: 0 5px 5px 0;
}

#leftPanel.collapsed>ul {
    border-radius: 0 5px 5px 0;
}

#leftPanel>ul>li:not(.space) {
    margin-top: 0;
    margin-bottom: 0px;
    height: 60px;
    width: 61px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#leftPanel.collapsed>ul>li {
    width: 60px;
}

#leftPanel>ul>li.active {
    background: #015E5F;
}

#leftPanel>ul>li {
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#leftPanel>ul>li.space {
    display: none;
}

#leftPanel>ul>li:not(.space) {
    height: 60px;
    width: 61px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

#leftPanel.collapsed ul li:not(.space) {
    width: 60px;
}

/* 激活项视觉：仅隐藏右边框以接通面板，水平线保持常亮 */
#leftPanel>ul>li.active:not(.space) {
    border-right-color: transparent !important;
}

/* Tooltip 提示文字实现 */

#leftPanel>ul>li svg {
    width: 32px;
    height: 32px;
    transition: all 0.2s;
}

#leftPanel>ul>li:last-child {
    margin-bottom: 0px;
}

#leftPanel>ul>li:not(.active) svg,
#leftPanel>ul>li:not(.active) svg path {
    fill: #80afaf !important;
}

#leftPanel>ul>li.active svg,
#leftPanel>ul>li.active svg path {
    fill: #FFFFFF !important;
}

@media (max-width: 1024px) {
    #leftPanel {
        min-width: 50px;
    }

    #leftCollapse {
        width: 29.167px;
        height: 18.333px;
    }

    #leftCollapse #leftLeft {
        left: -5px;
        width: 28.333px;
        height: 18px;
    }

    #leftCollapse #leftRight {
        left: -5.833px;
        width: 28.333px;
        height: 18px;
    }

    #leftPanel ul li:not(.space) {
        height: 50px;
        width: 51px;
        margin-top: 1px;
    }

    #leftPanel.collapsed ul li {
        width: 50px;
    }

    #leftPanel ul li svg {
        width: 50px;
    }
}

@media (max-width: 500px) {
    #leftPanel {
        min-width: 40px;
    }

    #leftPanel ul li:not(.space) {
        height: 40px;
        width: 41px;
        margin-top: 1px;
    }

    #leftPanel.collapsed ul li {
        width: 40px;
    }

    #leftPanel ul li svg {
        width: 40px;
    }
}

/* Left flyout */

#leftFlyout {
    z-index: 2;
    position: fixed;
    top: 50%;
    /* Align perfectly with the 4 menu items by accounting for the collapse button */
    --flyout-y-offset: 11px;
    --flyout-x: 0px;
    transform: translateY(calc(-50% + var(--flyout-y-offset))) translateX(var(--flyout-x));
    -webkit-transform: translateY(calc(-50% + var(--flyout-y-offset))) translateX(var(--flyout-x));
    left: 61px;
    background: #cae7e2;
    width: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-height: calc(60px * 4);
    max-height: 80vh;
    border-radius: 0 5px 5px 0;
    color: #004b4d;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* 自定义滚动条样式 */
#leftFlyout::-webkit-scrollbar {
    width: 6px;
}

#leftFlyout::-webkit-scrollbar-track {
    background: transparent;
}

#leftFlyout::-webkit-scrollbar-thumb {
    background: #80afaf;
    border-radius: 3px;
}

#leftFlyout::-webkit-scrollbar-thumb:hover {
    background: #6a9696;
}


/* 1. collapsed 时隐藏菜单按钮 */
#leftPanel.collapsed ul {
    display: none;
}


/* 3. 箭头切换逻辑 */

#leftPanel:not(.collapsed) #leftLeft {
    display: block;
}

#leftPanel:not(.collapsed) #leftRight {
    display: none;
}

/* 折叠(collapsed): 隐藏左箭头(<<), 显示右箭头(>>) */
#leftPanel.collapsed #leftLeft {
    display: none;
}

#leftPanel.collapsed #leftRight {
    display: block;
}

/* 确保箭头 SVG 基础布局 */
#leftCollapse svg {
    display: block;
}

#leftFlyout div.panel {
    display: none;
}

#leftFlyout div.panel.active {
    display: block;
}

#replayThumb,
#highlightThumb {
    width: calc(100% - 20px);
    height: auto;
    cursor: pointer;
}

@media (max-width: 1024px) {
    #leftFlyout {
        --flyout-y-offset: 9.16px;
        left: 51px;
        width: 235px;
        min-height: calc(50px * 4 + 3px);
    }

    #leftFlyout>div.panel {
        margin-left: 16px;
    }

    #leftFlyout div .curo-title {
        font-size: 16px;
    }

    #leftFlyout div {
        font-size: 10px;
    }

    .name {
        font-size: 14px;
    }

    .normal {
        font-size: 12px;
    }
}

@media (max-width: 500px) {
    #leftFlyout {
        --flyout-y-offset: 9px;
        left: 41px;
        width: 180px;
        min-height: calc(40px * 4 + 3px);
    }

    #leftFlyout>div.panel {
        margin-left: 12px;
    }

    #leftFlyout div .curo-title {
        font-size: 12.5px;
    }

    #leftFlyout div {
        font-size: 4px;
    }

    .name {
        font-size: 12px;
    }

    .normal {
        font-size: 10.5px;
    }
}

/* Common Classes */

.panel {
    margin: 15px;
}

.curo-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #004b4d;
    width: 100%;
}

/* 底部故障条网格 */
#planning-bar .fault-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 12px 15px;
    background: rgba(202, 231, 226, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

#planning-bar .fault-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 70px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

#planning-bar .fault-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#planning-bar .fault-item.active {
    background: #ffffff;
    border-color: #004b4d;
    box-shadow: inset 0 0 0 1px #004b4d, 0 4px 12px rgba(0, 75, 77, 0.2);
}

#planning-bar .fault-icon-wrap {
    width: 38px;
    height: 38px;
    margin-bottom: 6px;
    pointer-events: none;
}


#planning-bar .fault-label {
    font-size: 11px;
    color: #004b4d;
    text-align: center;
    line-height: 1.2;
    padding: 0 4px;
    font-weight: 500;
    pointer-events: none;
}

#planning-bar .fault-size {
    font-size: 10px;
    color: #015e5f;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 3px;
    font-weight: bold;
    min-height: 12px;
    pointer-events: none;
}

/* 底部方案规划栏 */
#planning-bar-hidden-temp {
    padding: 15px 30px;
    background: rgba(202, 231, 226, 0.9);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

/* 底部图谱库影像条 */
/* 底部控制条通用样式 (图谱/故障/标准定位) */
#GraphLibrary-bar,
#Fault-bar,
#Standardpos-bar {
    display: flex;
    justify-content: center;
    background: rgba(202, 231, 226, 0.95);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    max-width: 98vw;
    /* margin-bottom: 5px; */
}

.atlas-scroll-viewport {
    width: 1008px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 0 8px 0;
    cursor: grab;
}

.atlas-scroll-viewport:active {
    cursor: grabbing;
}

/* 滚动条美化 */
.atlas-scroll-viewport::-webkit-scrollbar {
    height: 6px;
}

.atlas-scroll-viewport::-webkit-scrollbar-track {
    background: rgba(0, 75, 77, 0.05);
    border-radius: 3px;
}

.atlas-scroll-viewport::-webkit-scrollbar-thumb {
    background: rgba(0, 75, 77, 0.3);
    border-radius: 3px;
}

.atlas-scroll-viewport::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 75, 77, 0.5);
}

/* 通用内部结构样式 */
#GraphLibrary-bar .atlas-grid,
#Fault-bar .atlas-grid,
#Standardpos-bar .atlas-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: max-content;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    padding-left: 2px;
    padding-right: 2px;
}

/* 影像卡片通用样式 */
#GraphLibrary-bar .atlas-item,
#Fault-bar .atlas-item,
#Standardpos-bar .atlas-item {
    flex: 0 0 auto;
    width: 190px;
    height: 135px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

#GraphLibrary-bar .atlas-item:hover,
#Fault-bar .atlas-item:hover,
#Standardpos-bar .atlas-item:hover {
    border-color: rgba(1, 94, 95, 0.5);
    transform: translateY(-2px);
}

#GraphLibrary-bar .atlas-item.active,
#Fault-bar .atlas-item.active,
#Standardpos-bar .atlas-item.active {
    border: 2px solid #015E5F;
    box-shadow: 0 4px 12px rgba(1, 94, 95, 0.4);
    transform: scale(1.02);
}

/* 缩略图容器通用样式 */
#GraphLibrary-bar .atlas-thumb-wrap,
#Fault-bar .atlas-thumb-wrap,
#Standardpos-bar .atlas-thumb-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#GraphLibrary-bar .atlas-thumb-wrap img,
#Fault-bar .atlas-thumb-wrap img,
#Standardpos-bar .atlas-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.atlas-tree {
    list-style: none;
    padding-left: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* 目录树使用与面板一致的滚动条样式 */
.atlas-tree::-webkit-scrollbar {
    width: 6px;
}

.atlas-tree::-webkit-scrollbar-track {
    background: transparent;
}

.atlas-tree::-webkit-scrollbar-thumb {
    background: #80afaf;
    border-radius: 3px;
}

.normal {
    font-size: 14px;
    color: rgb(172, 155, 145);
    margin-bottom: 0;
    margin-top: 1em;
    margin-right: 20px;
    cursor: default;
}

.hide {
    display: none;
}

/* Ensure bars are hidden by class */
.hide {
    display: none;
}

.name {
    font-size: 16px;
    color: #FFFFFF;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 20px;
    cursor: default;
}

.scroll {
    position: relative;
    margin: 0px auto;
    padding: 0px;
    max-height: 330px;
}

.leftButtons {
    color: #FFFFFF;
    fill: currentColor;
    cursor: pointer;
    background-origin: border-box;
    background-repeat: no-repeat;
    background-position: left center;
}

.leftButtons:hover {
    color: rgb(172, 155, 145);
}

/* Image Monitor Styles */
.dg.ac,
.dg.main {
    z-index: 10 !important;
}

#image-monitor {
    z-index: 0;
    position: absolute;
    right: 0px;
    top: 20px;
    background: rgba(0, 0, 0, 0);
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#image-monitor #imageCollapse {
    position: relative;
    width: 35px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    fill: #015E5F;
}

#image-monitor #imageCollapse #imageArrowLeft {
    position: absolute;
    left: -1px;
    width: 34px;
    top: 0;
    fill: #FFFFFF;
}

#image-monitor #imageCollapse:hover #imageArrowLeft {
    fill: #DDDDDD;
}

#image-monitor.collapsed #imageCollapse #imageArrowLeft {
    display: none;
}

#image-monitor.collapsed #imageCollapse #imageArrowRight {
    display: block;
    position: absolute;
    left: -2px;
    width: 34px;
    top: 0;
    fill: #FFFFFF;
}

#image-monitor #imageArrowRight {
    display: none;
}

#image-monitor.collapsed #imageCollapse:hover #imageArrowRight {
    fill: #DDDDDD;
}

#image-monitor #imageButton {
    display: none;
}

#image-monitor.collapsed #imageButton {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 6px 0 0 6px;
    background-color: #015E5F;
    fill: #FFFFFF;
    cursor: default;
    /* Simply an icon */
}

#image-monitor #imageItems {
    overflow: hidden;
    padding: 6px;
    border-radius: 6px 0 0 6px;
    background: #015E5F;
    width: fit-content;
    height: auto;
    display: block;
    position: relative;
    opacity: 1;
    transition: opacity 0.5s;
}

#image-monitor.collapsed #imageItems {
    display: none;
    opacity: 0;
}

#image-monitor #imageItems #monitor-image {
    display: block;
    width: 300px;
    height: 300px;
    object-fit: contain;
    background-color: #000000;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}


/* Process Parameters Panel Styles */
.process-params-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(calc(45vmin + 250px), -50%);
    background: #00000056;
    border: 2px solid #56bfc2;
    border-radius: 8px;
    padding: 0;
    width: 260px;
    box-shadow: 0 4px 15px rgba(86, 191, 194, 0.3);
    z-index: 101;
    display: none;
    font-size: 14px;
    color: #333;
}

/* Header Style */
.process-params-panel .header {
    background: transparent;
    border-bottom: 2px solid #56bfc2;
    padding: 10px 15px;
    font-weight: bold;
    color: #56bfc2;
    font-size: 16px;
}

/* Row Style */
.process-params-panel .row {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    border-bottom: 1px solid #56bfc2;
}

.process-params-panel .row:last-child {
    border-bottom: none;
}

.process-params-panel .label {
    color: #56bfc2;
    font-weight: normal;
}

.process-params-panel .value {
    color: #56bfc2;
    font-weight: normal;
}

/* Show only when parent #image-monitor is enlarged */
#image-monitor.enlarged .process-params-panel {
    display: block !important;
}

/* Hide specifically via class if needed, overriding block display */
.process-params-panel.hide {
    display: none !important;
}

/* Responsive: When screen is too narrow to fit panel next to image (approx constraint), 
   force it to doc to the right edge, overlapping the image.
   Condition: (100vw - 90vmin)/2 < 280px */
@media (max-width: 1400px),
(max-aspect-ratio: 16/9) {
    #image-monitor.enlarged .process-params-panel {
        left: auto;
        right: 20px;
        transform: translateY(-50%);
        /* Move inside standard view, overlapping image */
        background: rgba(0, 0, 0, 0.7);
        /* Darker background for legibility over image */
        backdrop-filter: blur(5px);
    }

    #image-monitor.enlarged .process-params-panel .row {
        border-color: rgba(86, 191, 194, 0.3);
    }
}

/* to be above the GUI (Index 10). */
.container-promoted {
    z-index: 20 !important;
}

/* 定位点列表卡片样式 */
.pos-intro {
    font-size: 14px;
    line-height: 1.6;
    color: #004b4d;
    margin-bottom: 15px;
    padding-left: 5px;
}

.pos-intro-content {
    text-indent: 2em;
}

.pos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
    padding-right: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.plan-controls {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 25px;
}

.primary-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #015E5F;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
    background-color: #004b4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 动态生成检测点标签样式 */
#learnItems>div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-point-item {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 12px 15px;
    position: relative;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.plan-point-item:hover {
    background: rgba(255, 255, 255, 0.6);
    border-left: 4px solid #015E5F;
}

.plan-point-item.active {
    background: rgba(255, 255, 255, 0.9);
    border-left: 4px solid #015E5F;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.point-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.point-title {
    font-weight: bold;
    font-size: 15px;
    color: #004b4d;
    cursor: text;
    padding: 2px 6px;
    margin-left: -6px;
    /* 补偿内边距，保持视觉对齐 */
    border-radius: 4px;
    transition: all 0.2s;
    border: 1px solid transparent;
    outline: none;
    background: transparent;
    width: 60px;
    font-family: inherit;

    /* 核心修复：允许在全局 user-select:none 环境下进行文字选择与输入 */
    user-select: text !important;
    -webkit-user-select: text !important;
    pointer-events: auto !important;
}

.point-title:hover {
    background: rgba(0, 75, 77, 0.05);
}

.point-title:focus {
    background: #ffffff;
    border-color: #015E5F;
    box-shadow: 0 0 0 1px #015E5F;
}

.point-delete {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #004b4d;
    opacity: 0.5;
    transition: opacity 0.2s;
    user-select: none;
}

.point-delete:hover {
    opacity: 1;
    color: #ff4d4d;
}

.point-coords {
    font-size: 11px;
    color: #015E5F;
    font-family: 'Courier New', Courier, monospace;
    opacity: 0.8;
}

#learnItems {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    scrollbar-gutter: stable;
}

#learnItems::-webkit-scrollbar {
    width: 6px;
}

#learnItems::-webkit-scrollbar-track {
    background: transparent;
}

#learnItems::-webkit-scrollbar-thumb {
    background: #80afaf;
    border-radius: 3px;
}

.pos-list::-webkit-scrollbar {
    width: 6px;
}

.pos-list::-webkit-scrollbar-track {
    background: transparent;
}

.pos-list::-webkit-scrollbar-thumb {
    background: #80afaf;
    border-radius: 3px;
}

.pos-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pos-card:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(5px);
}

.pos-card.active {
    background: rgba(255, 255, 255, 0.9);
    border-left: 4px solid #004b4d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.pos-card .pos-icon svg {
    width: 60px !important;
    height: 60px !important;
    fill: #004b4d;
    margin-right: 15px;
}

.pos-card .pos-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pos-card .pos-name {
    font-weight: bold;
    font-size: 16px;
    color: #004b4d;
    line-height: 1.25;
}

.pos-card .pos-coords {
    font-size: 11px;
    color: #015E5F;
    margin-top: 4px;
    font-family: 'Courier New', Courier, monospace;
    opacity: 0.8;
}

/* 故障分析面板样式 */
.highlights-intro {
    font-size: 14px;
    line-height: 1.6;
    color: #004b4d;
    margin-bottom: 20px;
    padding-left: 5px;
}

.highlights-intro-content {
    text-indent: 2em;
}

.fault-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px 10px 15px 5px;
}

.fault-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fault-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fault-item.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: #015E5F;
    box-shadow: 0 6px 15px rgba(0, 75, 77, 0.15);
    transform: translateY(-3px);
}

.fault-icon-wrap {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: all 0.2s;
}

.fault-item.active .fault-icon-wrap {
    background: rgba(1, 94, 95, 0.1);
}

.fault-icon {
    width: 32px;
    height: 32px;
}

.fault-label {
    font-size: 14px;
    font-weight: bold;
    color: #004b4d;
    text-align: center;
}

.fault-item.active .fault-label {
    color: #015E5F;
}

/* 统一滚动条样式 */
.fault-grid::-webkit-scrollbar {
    width: 6px;
}

.fault-grid::-webkit-scrollbar-track {
    background: transparent;
}

.fault-grid::-webkit-scrollbar-thumb {
    background: #80afaf;
    border-radius: 3px;
}

/* 兼容原有描述面板的滚动 */
#highlightScroll {
    max-height: 300px;
}

/* 模型标签 UI */
#model-label-container {
    z-index: 10;
    position: absolute;
    pointer-events: none;
    display: none;
}

.model-label {
    position: absolute;
    left: 0;
    top: 0;
    background: #ffffff;
    border: 2px solid #cae7e2;
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    pointer-events: auto;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translate(-50%, calc(-100% - 8px));
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.model-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #cae7e2;
}

/* 注释圈 */
.v3d-annotation {
    border-radius: 0em;
    background: #004b4d;
    padding: 0px 5px;
}

.v3d-annotation-dialog {
    background-color: white;
    width: max-content;
    font-size: 16px;
    font-weight: bold;
    color: black;
    padding: 8px 12px;
    min-width: 0px;
    margin-left: 8px;
    margin-top: 8px;
    white-space: nowrap;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


.v3d-annotation-transparent {
    opacity: 0.5;
    background-color: #1f8d99;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    #image-monitor #imageCollapse {
        width: 29.167px;
        height: 18.333px;
    }

    #image-monitor #imageCollapse #imageArrowLeft,
    #image-monitor.collapsed #imageCollapse #imageArrowRight {
        width: 28.333px;
    }

    #image-monitor.collapsed #imageButton {
        width: 50px;
        height: 50px;
    }

    #image-monitor #imageItems {
        padding: 5px;
    }

    #image-monitor #imageItems #monitor-image {
        width: 200px;
        height: 200px;
    }
}

#top-breaker-container {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

#breaker-btn {
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}


#breaker-btn svg {
    display: block;
    width: 80px;
    height: auto;
}

/* --- Bottom Slider Styles --- */

/* 基础滑块轨道样式 */
#bottom-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 0 0 1px #015e5f, 0 0 10px rgba(0, 0, 0, 0.4);
    border: none !important;

}

/* 针对 Webkit 轨道的额外重置 */
#bottom-range-slider::-webkit-slider-runnable-track {
    background: transparent;
    border: none;
}

/* 针对 Firefox 轨道的额外重置 */
#bottom-range-slider::-moz-range-track {
    background: transparent;
    border: none;
}

/* 滑块手柄 (Thumb) - Webkit */
#bottom-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 48px;
    height: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-165 35 130 100'%3E%3Cstyle%3E.st0%7Bfill:%23fff%7D.st1%7Bfill:%23015e5f%7D%3C/style%3E%3Cpath class='st1' d='M-44.3,79c-6.5-3.1-11.7-2.1-17.1-10.1-7.8-18.8-29.5-32.3-54.8-32.3-26.3,0-47.6,21.4-47.5,47.7s21.4,47.6,47.7,47.5c23.8,0,44.2-11.8,53-28.8,6.4-10.3,7.3-15.6,16.7-13.6,3.2.7,4.9-9.1,2-10.5Z'/%3E%3Cpath class='st0' d='M-160.7,84.2c0,24.6,19.9,44.5,44.5,44.5,24.6,0,44.5-19.9,44.5-44.5h0c0-24.6-19.9-44.5-44.5-44.5-24.6,0-44.5,19.9-44.5,44.5,0,0,0,0,0,0Z'/%3E%3Cpath class='st1' d='M-116.3,124.6c-22.3,0-40.3-18.1-40.2-40.3,0-22.3,18.1-40.3,40.3-40.2,22.2,0,40.2,18,40.2,40.2,0,22.3-18.1,40.3-40.3,40.3h0Z'/%3E%3Cpath class='st0' d='M-152.4,84.2c0,20,16.2,36.2,36.1,36.2,20,0,36.2-16.2,36.2-36.1h0c0-20-16.2-36.2-36.2-36.2s-36.2,16.2-36.2,36.2Z'/%3E%3Cpath class='st1' d='M-148.2,84.2c0,17.7,14.3,32,32,32,17.7,0,32-14.3,32-32h0c0-17.7-14.3-32-32-32s-32,14.3-32,32Z'/%3E%3Cpath class='st0' d='M-144.1,84.2c0,15.4,12.4,27.8,27.8,27.8s27.8-12.4,27.8-27.8-12.4-27.8-27.8-27.8-27.8,12.4-27.8,27.8Z'/%3E%3Cpath class='st1' d='M-139.9,84.2c0,13,10.6,23.6,23.6,23.6s23.6-10.6,23.6-23.6-10.6-23.6-23.6-23.6-23.6,10.6-23.6,23.6Z'/%3E%3Cpath class='st0' d='M-135.7,84.2c0,10.7,8.7,19.4,19.4,19.4s19.4-8.7,19.4-19.4c0-10.7-8.7-19.4-19.4-19.4-10.7,0-19.4,8.7-19.4,19.4,0,0,0,0,0,0Z'/%3E%3Cpath class='st1' d='M-131.6,84.2c0,8.5,6.9,15.3,15.3,15.3s15.3-6.9,15.3-15.3-6.9-15.3-15.3-15.3-15.3,6.9-15.3,15.3Z'/%3E%3Cpath class='st0' d='M-127.4,84.2c0,6.1,5,11.1,11.1,11.1,6.1,0,11.1-5,11.1-11.1h0c0-6.2-5-11.1-11.1-11.1s-11.1,5-11.1,11.1Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
    transition: none;
    margin-top: -11px;
    transform: rotate(-8deg);
}

#bottom-range-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
}

#bottom-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1) rotate(-8deg);
}

/*Firefox 样式*/
#bottom-range-slider::-moz-range-thumb {
    width: 48px;
    height: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-165 35 130 100'%3E%3Cstyle%3E.st0%7Bfill:%23fff%7D.st1%7Bfill:%23015e5f%7D%3C/style%3E%3Cpath class='st1' d='M-44.3,79c-6.5-3.1-11.7-2.1-17.1-10.1-7.8-18.8-29.5-32.3-54.8-32.3-26.3,0-47.6,21.4-47.5,47.7s21.4,47.6,47.7,47.5c23.8,0,44.2-11.8,53-28.8,6.4-10.3,7.3-15.6,16.7-13.6,3.2.7,4.9-9.1,2-10.5Z'/%3E%3Cpath class='st0' d='M-160.7,84.2c0,24.6,19.9,44.5,44.5,44.5,24.6,0,44.5-19.9,44.5-44.5h0c0-24.6-19.9-44.5-44.5-44.5-24.6,0-44.5,19.9-44.5,44.5,0,0,0,0,0,0Z'/%3E%3Cpath class='st1' d='M-116.3,124.6c-22.3,0-40.3-18.1-40.2-40.3,0-22.3,18.1-40.3,40.3-40.2,22.2,0,40.2,18,40.2,40.2,0,22.3-18.1,40.3-40.3,40.3h0Z'/%3E%3Cpath class='st0' d='M-152.4,84.2c0,20,16.2,36.2,36.1,36.2,20,0,36.2-16.2,36.2-36.1h0c0-20-16.2-36.2-36.2-36.2s-36.2,16.2-36.2,36.2Z'/%3E%3Cpath class='st1' d='M-148.2,84.2c0,17.7,14.3,32,32,32,17.7,0,32-14.3,32-32h0c0-17.7-14.3-32-32-32s-32,14.3-32,32Z'/%3E%3Cpath class='st0' d='M-144.1,84.2c0,15.4,12.4,27.8,27.8,27.8s27.8-12.4,27.8-27.8-12.4-27.8-27.8-27.8-27.8,12.4-27.8,27.8Z'/%3E%3Cpath class='st1' d='M-139.9,84.2c0,13,10.6,23.6,23.6,23.6s23.6-10.6,23.6-23.6-10.6-23.6-23.6-23.6-23.6,10.6-23.6,23.6Z'/%3E%3Cpath class='st0' d='M-135.7,84.2c0,10.7,8.7,19.4,19.4,19.4s19.4-8.7,19.4-19.4c0-10.7-8.7-19.4-19.4-19.4-10.7,0-19.4,8.7-19.4,19.4,0,0,0,0,0,0Z'/%3E%3Cpath class='st1' d='M-131.6,84.2c0,8.5,6.9,15.3,15.3,15.3s15.3-6.9,15.3-15.3-6.9-15.3-15.3-15.3-15.3,6.9-15.3,15.3Z'/%3E%3Cpath class='st0' d='M-127.4,84.2c0,6.1,5,11.1,11.1,11.1,6.1,0,11.1-5,11.1-11.1h0c0-6.2-5-11.1-11.1-11.1s-11.1,5-11.1,11.1Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transform: rotate(-8deg);
}

#bottom-range-slider::-moz-range-progress {
    background-color: #80afaf;
    height: 100%;
    border-radius: 5px;
}

/* Left Panel Menu Animation */
#leftPanel {
    overflow: visible !important;
    /* Allow collapse button to stick out */
}

#leftPanel ul {
    /* Enable GPU acceleration for smooth sliding */
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;

    /* Ensure it has a solid background to cover things when open */
    background: #015E5F;
    z-index: 10;
}

#leftPanel.collapsed ul {
    display: block !important;
    transform: translateX(-100%);
    pointer-events: none;
}

/* --- Graph & Fault-Locat Label Styles --- */
.Graph-label,
.Fault-Locat-label {
    position: absolute;
    width: 28px;
    height: 28px;
    cursor: pointer;
    background-color: #015E5F;
    border: 3px solid #ffffff;
    border-radius: 50%;

    color: #ffffff;
    text-align: center;
    line-height: 28px;

    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 18px;
    z-index: 10;
    display: none;
}

.Graph-label.visible,
.Fault-Locat-label.visible {
    display: block;
}

.Graph-label:hover,
.Fault-Locat-label:hover {
    transform: scale(1.1);
}

/* Override previous display:none for collapsed state */
#leftPanel.collapsed ul {
    display: block !important;
    transform: translateX(-100%);
    /* Slide completely to left */
    pointer-events: none;
    /* Prevent clicking on hidden menu */
}

/* Force clicks to pass through images so parent catches them */
.atlas-item * {
    pointer-events: none;
}

/* 备案号样式 */
.beian {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #666666;
    font-size: 12px;
    z-index: 5;
}

.beian a {
    text-decoration: none;
    font-style: none;
    color: #ffffff;
    font-size: 12px;
}

.beian img {
    width: 12px;
    vertical-align: middle;
    margin: 0 3px;
}

/* Logo 样式 */
.app-logo {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 10;
    pointer-events: none;
}

.app-logo img {
    height: 40px;
    width: auto;
}

/* 相别切换按钮样式 */
.phase-buttons {
    position: absolute;
    top: 16px;
    left: 20px;
    display: none;
    z-index: 10;
}

.phase-btn:not(:last-child) {
    margin-right: 5px;
}

.phase-btn {
    padding: 6px 15px;
    border-radius: 20px;
    background: rgba(0, 75, 77, 0.6);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.phase-btn:hover {
    background: rgba(0, 75, 77, 0.8);
    color: #fff;
}

.phase-btn.active {
    background: #019999;
    color: #ffffff;
    border-color: #01ffff;
    box-shadow: 0 0 10px rgba(1, 255, 255, 0.3);
}

/* 帮助弹出层和按钮样式 */
.info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 9;
}

.info img {
    width: 100%;
    height: 100%;
}

.question {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 2999;
}

.image-question {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 3000;
    cursor: pointer;
}