/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

body {
    margin: 0px;
    overflow: hidden;
}

.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);
}

/* --- Migrated Styles from Curiosity --- */

@font-face {
    font-family: roboto_regular;
    src: url(../curiosity/font/roboto_regular.woff);
}

@font-face {
    font-family: roboto_bold;
    font-weight: bold;
    src: url(../curiosity/font/roboto_bold.woff);
}

/* 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;
}

/* Cleaned up: Removed camera control button styles */

@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;
}

#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:not(.inactive) {
    background: #015E5F;
}

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

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

#leftPanel>ul>li.mainMode {
    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>ul>li.mainMode:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

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

/* 激活项视觉：仅隐藏右边框以接通面板，水平线保持常亮 */
#leftPanel>ul>li.mainMode:not(.inactive) {
    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.inactive svg,
#leftPanel>ul>li.inactive svg path {
    fill: #80afaf !important;
}

#leftPanel>ul>li:not(.inactive) svg,
#leftPanel>ul>li:not(.inactive) 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 {
    position: absolute;
    float: right;
    left: 61px;
    background: #cae7e2;
    width: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: calc(60px * 4 + 3px);
    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;
}

#leftPanel.collapsed #leftFlyout {
    display: none;
}

#leftFlyout div.inactive {
    display: none;
}

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

@media (max-width: 1024px) {
    #leftFlyout {
        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 {
        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: 20px;
}

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

/* 图谱库专用组件样式 */
.atlas-tags {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.atlas-tag {
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 13px;
    border: 1.5px solid #004b4d;
    background: #ffffff;
    color: #004b4d;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 38px;
    text-align: center;
}

.atlas-tag.active {
    background: #004b4d;
    color: #ffffff;
}

.atlas-intro {
    font-size: 14px;
    line-height: 1.6;
    color: #004b4d;
    margin-bottom: 5px;
    padding-left: 5px;
}

.atlas-intro-label {
    font-weight: bold;
}

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

.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;
}

.tree-node {
    margin: 8px 0;
}

.tree-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    padding: 4px 0;
}

.tree-header::before {
    content: '▶';
    display: inline-block;
    font-size: 10px;
    margin-right: 8px;
    transition: transform 0.2s;
    color: #004b4d;
}

.tree-node.expanded>.tree-header::before {
    transform: rotate(90deg);
}

.tree-children {
    list-style: none;
    padding-left: 20px;
    display: none;
}

.tree-node.expanded>.tree-children {
    display: block;
}

.tree-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
    color: #004b4d;
}

.tree-item-label {
    flex: 0 0 auto;
    margin-right: 15px;
}

.tree-item-icons {
    display: flex;
    gap: 8px;
    padding-right: 10px;
}

.tree-item-icons svg {
    width: 20px !important;
    height: 20px !important;
    fill: #80afaf;
    cursor: pointer;
    transition: fill 0.2s;
}

.tree-item-icons svg:hover {
    fill: #004b4d;
}

.tree-item-icons svg.active {
    fill: #004b4d;
}

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

.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);
}

#image-monitor #imageItems #monitor-image:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Enlarged State */
#image-monitor.enlarged #imageItems #monitor-image {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: 90vmin !important;
    /* Maximize height */
    max-width: 90vmin !important;
    z-index: 100 !important;
    box-shadow: 0 0 0 300vmax rgba(0, 0, 0, 0.8);
    cursor: default;
    object-fit: contain;
}

/* Ensure container has high Z when enlarged */
#image-monitor.image-enlarged-container {
    z-index: 100 !important;
}

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

/* Close button for Image Monitor */
#imageClose {
    position: fixed;
    top: 5vh;
    right: 5vw;
    width: 30px;
    height: 30px;
    z-index: 101 !important;
    cursor: pointer;
    opacity: 0.8;
}

#imageClose:hover {
    opacity: 1;
}

#imageClose.hide {
    display: none;
}

/* Strategy: Container Promotion */
/* When a view is enlarged, we promote the entire v3d-container (which holds the views) */
/* 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-intro {
    font-size: 14px;
    line-height: 1.6;
    color: #004b4d;
    margin-bottom: 20px;
    padding-left: 5px;
}

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

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

.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;
    /* 移除冗余 padding-right，由父容器统一控制 */
}

.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;
}

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

.point-title {
    font-weight: bold;
    font-size: 15px;
    color: #004b4d;
}

.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: 280px;
    /* 稍微压缩一点以适应面板空间 */
    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 {
    z-index: 1000;
    position: absolute;
    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%, -100%);
    /* 中心点在底部中央 */
    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 {
    width: 30px;
    height: 30px;
    min-width: 0px;
    padding: 0px;
    font-size: 0px;
    border: none;
    background-image: url(./media/info.svg);
    border-radius: 18px;
    background-color: #09e4fd;
}

/* 注释文字 */
.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;
    }
}