
/* 卡片样式 */
.result-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    padding: 24px 30px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}
.deviation-value {
    background: #f8f9fc;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    font-size: 26px;
    font-weight: 500;
    color: #2F4056;
}
.deviation-value span {
    font-size: 16px;
    /* color: #8a8f9c; */
    font-weight: normal;
}
.deviation-value svg {
    vertical-align: middle;
}
.unit-tip {
    color: #9aa3b5;
    font-size: 13px;
    margin-top: 12px;
}
.layui-btn-primary {
    border-color: #d2d2d2;
}

/* 自定义组合框样式 */
.combobox {
    position: relative;
}
.combobox .layui-input {
    padding-right: 30px;
    cursor: pointer;
}
.combobox .dropdown-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #8a8f9c;
    font-size: 14px;
}
.combobox-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e6e9ed;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1200;
    display: none;
    margin-top: 4px;
}
.combobox-dropdown ul {
    margin: 0;
    padding: 5px 0;
    list-style: none;
}
.combobox-dropdown li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.combobox-dropdown li:hover {
    background-color: #f5f7fa;
    color: #1E9FFF;
}
/* 调整 label 和 input-block 的宽度，使文字完整显示 */
.layui-form-label {
    width: 140px !important;
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.4;
    padding-top: 9px;
    padding-bottom: 9px;
}
.layui-input-block {
    margin-left: 155px !important;
}
.layui-form-item .param-hint {
    margin-left: 155px;
}
/* 响应式: 手机样式 */
@media screen and (max-width: 768px) {
    .deviation-value {
        font-size: 20px;
    }
    .layui-form-label {
        width: 110px !important;
        font-size: 13px;
        white-space: normal !important;
        word-break: break-word;
        padding-top: 8px;
    }
    .layui-input-block {
        margin-left: 125px !important;
    }
}
@media screen and (max-width: 520px) {
    .layui-form-label {
        width: 100px !important;
        font-size: 12px;
    }
    .layui-input-block {
        margin-left: 115px !important;
    }
    .layui-form-item .param-hint {
        margin-left: 115px;
    }
}
.param-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}


/* 公差选取 */
.tolerance-select {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin-bottom: 10px;
    background: #f7f7f7;
}
.tolerance-select th, td {
    border: 1px solid #ddd;
    padding: 1px;
}
.tolerance-select button{
    width: 30px;
}
.tolerance-select thead tr {
    background: #efefef;
}
.bg-grade {
    background: #efefef;
}
.layui-badge {
    width: 15px;
    height: 15px;
    margin: 0 5px 0 20px;
    vertical-align: middle;
}