/* 全局样式 */
body { 
    background-color: white; /* 背景改为白色 */
    margin: 0; 
    padding: 0;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    color: white;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* 主要容器 */
#visualization-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
}

/* 主画布样式 */


#canvasContainer {
    width: 100%;
    height: 70vh;
    position: relative;
    background-color: black;
    /* margin-top: 40px; 往下移动约40像素 */
}


#mainCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* 标签样式 */
.main-label {
    position: absolute;
    top: 10px;
    right: 20px;
    padding: 6px 10px;
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
}

.BEC-label {
    position: absolute; //absolute 定位 ,反之是相对定位叫做relative
    top: 10px;
    left: 20px;
    padding: 6px 10px;
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
}

/* 缩略图容器样式 - 白色背景 */
.thumbnail-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 25vh;
    background-color: white;
    padding: 5px 0;
    box-sizing: border-box;
}

.thumbnail-wrapper {
    position: relative;
    width: 24%;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid #333;
    background-color: black;  /* 缩略图内部背景为黑色 */
    overflow: hidden;
}

.thumbnail {
    width: 100%;
    height: 100%;
    display: block;
}

.label {
    position: absolute;
    top: 5px;
    left: 10px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 3px;
    pointer-events: none;
    z-index: 5;
}

/* 颜色图例样式 */
.color-legend {
    position: absolute;
    z-index: 10;
}

/* 控制面板样式 */
.control-panel {
    position: fixed;
    top: 450px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
    color: white;
}

.hidden {
    display: none;
}

#status {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 3px;
    color: white;
    z-index: 100;
}

/* 按钮和表单元素样式 */
button {
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #444;
    padding: 5px 10px;
    margin: 5px 0;
    border-radius: 3px;
    cursor: pointer;
}

button:hover {
    background-color: #3a3a3a;
}

select {
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #444;
    padding: 5px;
    margin: 5px 0;
    border-radius: 3px;
}

/* 控制面板样式修改 - 缩小字体 */
.control-panel {
    position: fixed;
    top: 450px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px;
    border-radius: 5px;
    z-index: 100;
    color: white;
    font-size: 12px; /* 缩小整体字体大小 */
}

/* 数据集和倒计时信息样式 */
.control-panel div {
    font-size: 11px;
    margin: 3px 0;
}

/* 下拉菜单样式 */
.control-panel select {
    font-size: 11px;
    padding: 2px;
    margin: 2px 0;
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #444;
    border-radius: 3px;
}

/* 按钮样式 */
.control-panel button {
    font-size: 11px;
    padding: 3px 6px;
    margin: 3px 0;
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #444;
    border-radius: 3px;
    cursor: pointer;
}

/* 标签样式 */
.control-panel label {
    font-size: 11px;
    margin-right: 5px;
}

/* 控制选项间距 */
.control-option {
    margin: 4px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 提示文字 */
.control-panel small {
    font-size: 10px;
    display: block;
    margin-top: 4px;
    opacity: 0.8;
}


/* 旋转标签容器样式 */
.rotated-label {
    position: absolute;
    padding: 5px 10px;
    font-size: 13px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
    /* 文本本身不倾斜 */
    font-style: normal;
    /* 添加一些边框使效果更明显 */
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    /* 文本对齐 */
    text-align: center;
}

/* 左侧BEC标签 - 逆时针旋转5度 */
.left-bec-box {
    left: 25vh;
    bottom: 22vh;
    transform: rotate(-8deg);
    transform-origin: left center;
}


/* 右侧标签从右到左读的样式 */
.right-direction {
    direction: rtl; /* 从右到左的文本方向 */
    unicode-bidi: bidi-override; /* 确保正确处理双向文本 */
    text-align: right; /* 文本右对齐 */
}

/* 右侧BEC标签 - 顺时针旋转5度 */
.right-bec-box {
    right: 25vh;
    bottom: 22vh;
    transform: rotate(8deg);
    transform-origin: right center;
    direction: rtl; /* 从右到左的文本方向 */
}
/* 中心标签 - 微微旋转2度 */
.center-box {
    left: 48%;
    transform: translateX(-50%) rotate(0deg);
    bottom: 25px;
    max-width: 300px;
}

/* 强调部分 */
/* .highlight {
    font-weight: bold;
    text-transform: uppercase;
} */

/* 描述性标签样式 */
/* .description-label {
    position: absolute;
    padding: 5px 8px;
    font-size: 13px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
    font-weight: normal;
    text-align: center;
} */



/* .center-description {
    left: 50%;
    transform: translateX(-50%);
    bottom: 15px;
    max-width: 300px;
} */

