
/* 页面布局 */
.container-zhu {
    display: flex;
    height: 122vh; 
    background-color: #f9f9f9;
}

/* 缩略图区域样式（左侧） */

.thumbnail-container {
    width: 150px; /* 固定宽度 */
    min-width: 150px; /* 设置最小宽度，防止被压缩 */
    max-width: 200px; /* 可设置最大宽度，防止过度拉伸 */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto; /* 允许垂直滚动 */
    background-color: #f1f1f1;
    padding: 10px;
    border-right: 2px solid #ccc;
    box-sizing: border-box; /* 保证宽度计算包含内边距和边框 */
    flex-shrink: 0; /* 防止容器在缩放时缩小 */
    height: 120vh;
}
        
.thumbnail-item {
    display: inline-block;
    text-align: center;
    margin: 10px;
    position: relative;
}

.file-name {
    font-size: 12px;
    color: #333;
    margin-bottom: 5px; /* 文件名和图片之间的间距 */
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
/* 缩略图样式 */
.thumbnail {
    width: 100px;
    height: auto;
    margin: 10px 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s ease, transform 0.2s ease;
}

/* 缩略图选中状态 */
.thumbnail.active {
    border: 2px solid #007BFF;
    transform: scale(1.1);
}

/* 缩略图悬停效果 */
.thumbnail:hover {
    transform: scale(1.1);
}

.text-input {
    width: 150px; /* 让输入框占满父容器的宽度 */
    height: 30px;
    max-width: 400px; /* 最大宽度，避免太宽 */
    border: 1px solid #ccc; /* 边框颜色 */
    border-radius: 5px; /* 圆角 */
    font-size: 16px; /* 字体大小 */
    font-family: Arial, sans-serif; /* 字体样式 */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* 内阴影，增加深度感 */
    transition: border-color 0.3s ease-in-out; /* 边框颜色变化过渡效果 */
}

.hyperlink-text-input {
    width: 50px; /* 让输入框占满父容器的宽度 */
    height: 25px;
    max-width: 400px; /* 最大宽度，避免太宽 */
    border: 1px solid #ccc; /* 边框颜色 */
    border-radius: 5px; /* 圆角 */
    font-size: 13px; /* 字体大小 */
    font-family: Arial, sans-serif; /* 字体样式 */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* 内阴影，增加深度感 */
    transition: border-color 0.3s ease-in-out; /* 边框颜色变化过渡效果 */
}



.main-content {
    flex: 1;
    display: flex;
    flex-direction: row; /* 水平排列 */
}
.left-container{
    flex: 1;
    display: flex;
    flex-direction: column; /* 竖直排列 */
}
.right-container{
    flex: 1;
    display: flex;
    flex-direction: column; /* 竖直排列 */
}

/* 图像画布和文本画布均分宽度 */
/* 大图展示区域（右侧） */
.image-container, .test-container {
    flex: 1; /* 右侧占据剩余空间 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    position: relative;
    padding-bottom: 200px;
    padding-right: 200px;
    padding-left: 30px;
    min-width: 400px;
}


/* Canvas用于绘制检测框 */
.canvas-overlay  {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto; /* 确保可以接收鼠标事件 */
    z-index: 10; /* 确保它在大图之上 */
}

/* 可拖动的检测框 */
.draggable-box {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: blue;
    border-radius: 50%;
    border: 1px solid white;
    pointer-events: all; /* 允许鼠标事件 */
    z-index: 20;
}

.draw-controls {
    width: 1000px; /* 设置宽度 */
    height: 90px;
    display: flex;
    flex-wrap: wrap; /* 允许按钮换行 */
    gap: 10px ; /* 设置按钮之间的间距 */
    justify-content: flex-start; /* 按钮左对齐 */
    padding: 10px; /* 容器内边距 */
    margin-bottom: 10px;
}

.btn {
    /*width: 100px;*/
    height: 30px; /* 设置按钮高度 */
    gap: 10px ;
    padding: 5px 10px;
    cursor: pointer;
    margin: 0;
}

.mode-controls {
    width: 1100px; /* 设置宽度 */
    height: 30px;
    display: flex;
    flex-wrap: wrap; /* 允许按钮换行 */
    gap: 10px ; /* 设置按钮之间的间距 */
    justify-content: flex-start; /* 按钮左对齐 */
    padding: 10px; /* 容器内边距 */
    margin-bottom: 10px;
}

.other-controls {
    width: 1000px; /* 设置宽度 */
    height: 100px;
    display: flex;
    flex-wrap: wrap; /* 允许按钮换行 */
    gap: 10px ; /* 设置按钮之间的间距 */
    justify-content: flex-start; /* 按钮左对齐 */
    padding: 10px; /* 容器内边距 */
    margin-bottom: 10px;
}

.patch-info-controls {
    /*width: 1000px;  设置宽度 */
    height: 70px;
    display: flex;
    flex-wrap: wrap; /* 允许按钮换行 */
    gap: 10px ; /* 设置按钮之间的间距 */
    justify-content: flex-start; /* 按钮左对齐 */
    padding: 10px; /* 容器内边距 */
    margin-bottom: 60px;
    margin-top: 20px;
}

.mode-btn {
    width: 105px;
    height: 30px; /* 设置按钮高度 */
    gap: 10px ;
    padding: 5px 10px;
    cursor: pointer;
    margin: 0;
}

.custom-select {
    width: 60px; /* 设置宽度 */
    height: 25px; /* 设置高度 */
    font-size: 13px; /* 调整字体大小 */
    padding: 0px; /* 内边距 */
    border-radius: 5px; /* 圆角 */
    border: 1px solid #ccc; /* 边框样式 */
    cursor: pointer; /* 鼠标悬停时的指针样式 */
    margin: 0;
}

.bottom-layer-image {
    z-index: -1; /* This places the image at the bottom layer */
}

.title-container {
    flex: 1; /* 右侧占据剩余空间 */
    display: flex;
    flex-direction: column; /* 让内容从上到下排列 */
    align-items: flex-start; /* 让内容靠左对齐 */
    background-color: #fff;
    position: relative;
    padding-bottom: 200px;
    padding-right: 200px;
    /* margin-top: 20px;
    overflow-y: auto;
    height: 30%; */
}

.title-container ul {
    list-style-type: none;
    padding: 0;
}

.title-container li {
    margin: 5px 0;
    cursor: pointer;
}

.title-container li:hover {
    color: #007bff;
}

.active-line {
    background-color: #ffffcc;
    border-left: 3px solid #ffa500;
}

#pdPreCreatedPartialpdHtmlContainer {
    overflow: auto;
    max-width: 930px;
    max-height: 600px;
    white-space: nowrap;  /* 单行模式 */
    border: 1px solid #ddd;
    padding: 8px;
}

.canvas-overlay-2 {
    width: 100px;
}