@import "../../var/style.less"; // 导入变量和混合定义

.bar-chart {
    width: 100%;
}

.bar-chart-item {
    display: flex;
    align-items: center;
    .px-to-vh(margin-bottom, 10);
    .px-to-vw(padding-left,20);
    .px-to-vw(padding-right,20);
}

.bar-chart-label {
    .px-to-vw(width, 350);
    text-align: left;
    .px-to-vw(height,27);
    .px-to-vw(line-height,27);
    .font-size-to-vw(24);
    color: #CCE6FF;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bar-chart-bar-wrapper {
    display: flex;
    flex-direction: row;
    justify-content:space-between;
    align-items: center;
    width: 100%;
    font-weight: 400;
    font-size: 24px;
    color: #CCE6FF;
}

.bar-chart-bar {
    .px-to-vh(height, 10);
    background: linear-gradient(90deg, #65CCFF 0%, #CBEEFF 100%);
    .px-to-vw(border-radius, 2);
    transition: width 1s ease-in-out; /* 添加动画效果 */
}

.bar-chart-value {
    text-align: right;
    font-weight: normal;
    .font-size-to-vw(24);
    color: #B3E6FF;
    white-space: nowrap;
}