.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 创建2列 */
    width: 100%;
}

h1 {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    background-color: #2b579a; /* 背景颜色 */
    color: white; /* 文字颜色 */
    padding: 10px 20px; /* 内边距 */
    margin: 10px 10px; /* 移除默认的外边距 */
    font-size: 22px; /* 图标大小 */
}

h1:before {
    content: "☰"; /* 使用:before伪元素插入图标 */
    font-size: 18px; /* 图标大小 */
    margin-right: 10px; /* 图标与文字之间的间距 */
}

.item_head {
    /* 设置元素内部内容与边框之间的间距 */
    padding: 10px;
    /* 设置元素的背景颜色 */
    background-color: #f8f9fa;
    /* 设置元素的边框 */
    border: 1px solid #ddd;
    /* 设置圆角 */
    border-radius: 5px;
    /* 确保有足够的空间让子元素可以垂直居中 */
    min-height: 200px; /* 根据实际情况调整 */
    /* 使用Flexbox布局 */
    display: flex;
    /* 让子元素在交叉轴（垂直方向）居中 */
    align-items: center;
    /* 让子元素在主轴（水平方向）居中 */
    justify-content: center;
    /* 设置外边距 */
    margin: 10px;
}

.sample-table {
    /* 表格自身也需要设置一些样式以适应居中 */
    margin: auto; /* 这个属性在这里可能不是必需的了，因为我们已经在父级使用了Flexbox */
    border-collapse: collapse;
    width: auto; /* 或者指定一个具体的宽度，如 '100%'、'80%' 等 */
}

.sample-table td {
    padding: 8px;
    border: none;
}

/* 悬停效果 */
.sample-table tr:hover {
    background-color: #f5f5f5; /* 微微高亮的颜色 */
}

.chart-group {
    display: flex;
    flex-wrap: wrap; /* 允许换行，防止溢出 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */

}

.qc_picture {
    width: 30%; /* 根据需要调整宽度 */
    aspect-ratio: 1 / 1; /* 强制保持1:1比例 */
    align-items: center; /* 垂直居中 */
}

.scissor_stat {
    display: flex;
    justify-content: center;

}

.button-container {
    display: flex;
    justify-content: center; /* 居中对齐 */
    gap: 30px;
    padding: 20px;
    padding-left: 10px;
}

button.btn-primary {
    /* 移除了flex-grow和width: 100%以允许按钮根据内容自适应 */
    flex-basis: auto; /* 根据内容自动调整大小 */
    box-sizing: border-box; /* 确保padding和border包含在元素的width和height内 */
    background-color: #FFFFFF; /* 自定义颜色 */
    border-radius: 6px; /* 圆润的边框 */
    padding: 10px 40px; /* 内边距 */
    font-size: 18px;
    cursor: pointer; /* 鼠标的样式 */
    color: #000000;
    white-space: nowrap; /* 防止文本换行 */
    border: 2px solid #2b579a; /* 加边框以便于观察 */
}

button.btn-secondary {
    /* 移除了flex-grow和width: 100%以允许按钮根据内容自适应 */
    flex-basis: auto; /* 根据内容自动调整大小 */
    box-sizing: border-box; /* 确保padding和border包含在元素的width和height内 */
    background-color: #FFFFFF; /* 自定义颜色 */
    border-radius: 6px; /* 圆润的边框 */
    padding: 10px 10px; /* 内边距 */
    font-size: 18px;
    cursor: pointer; /* 鼠标的样式 */
    color: #000000;
    white-space: nowrap; /* 防止文本换行 */
    border: 2px solid #2b579a; /* 加边框以便于观察 */
}

button.btn-primary:hover,
button.btn-secondary:hover {
    background-color: #2b579a;
}

button.btn-primary:active,
button.btn-primary:focus,
button.btn-secondary:active,
button.btn-secondary:focus {
    background-color: #2b579a; /* 高亮背景颜色 */
    color: #fff;
}

.annotation_chart {
    display: flex;
    flex-direction: column; /* 改为垂直排列 */
    align-items: center; /* 水平居中对齐 */
    gap: 10px;
}

/* 定义下拉菜单容器的基本样式 */
.dropdown {
    position: relative; /* 设置为相对定位，方便内部绝对定位元素（如菜单）定位 */
    display: inline-block; /* 让整个组件像内联块一样显示，适合放在行内 */
}

.annotation_plt {
    width: 80%;
    aspect-ratio: 1 / 1; /* 强制1:1比例 */
}


.down_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 创建两列 */
    gap: 10px; /* 网格项之间的间距 */
    width: 100%;
    margin: 20px 0;
    padding: 0 10px;
}

.pic_plt {
    position: relative;
    aspect-ratio: 1 / 0.8;
    font-weight: bold;
    border: 1px solid #ccc; /* 加边框以便于观察 */
    display: flex; /* 使用Flexbox来居中内容 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

.pic_plt canvas {
    width: 100%; /* 让 canvas 占满 .pic_plt 的宽度 */
    height: auto; /* 自动调整高度以保持宽高比 */
}

.down_item {
    border: 1px solid #ccc; /* 加边框以便于观察 */
    text-align: center;
}

.cc_container {
    display: flex;
    flex-direction: column;
    padding: 30px;

}

.cc-chart-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.cc-chart-wrapper {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
    margin: 0 15px;
    padding: 0 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.diff_container {
    margin: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 两列，各占一半宽度 */
    gap: 20px; /* 可选：两个区块之间的间距 */
    overflow-x: auto; /* 如果内容太多，允许水平滚动 */
}


.dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin: 0 8px;
    vertical-align: middle;
}

.pink-dot {
    background-color: #FF6384;
}

.blue-dot {
    background-color: #36A2EB;
}

.grey-dot {
    background-color: #959DA5;
}



