* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 10px;
    color: #333;
}

.container {
    background-color: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 头部区域 */
.header-section {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.input-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 5px;
}

.input-group label {
    width: 70px;
    font-size: 13px;
    color: #333;
    text-align: right;
    margin-right: 5px;
}

.input-group input, 
.input-group select {
    width: 120px;
    height: 26px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0 5px;
    font-size: 13px;
}

.button-group {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.button-group button {
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 13px;
    min-width: 60px;
}

.btn-primary {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.btn-primary:hover {
    background-color: #40a9ff;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* 数据区域 */
.data-section {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.data-grid {
    display: grid;
    grid-template-rows: repeat(4, auto);
    gap: 5px;
}

.data-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.data-cell {
    display: flex;
    flex-direction: column;
}

.data-cell label {
    font-size: 13px;
    color: #333;
    margin-bottom: 3px;
}

.data-cell input,
.data-cell select {
    height: 26px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0 5px;
    font-size: 13px;
}

.select-with-value {
    display: flex;
    gap: 5px;
}

.select-with-value select {
    flex: 1;
}

.value-input {
    width: 60px;
}

/* CBR区域 */
.cbr-section {
    margin-top: 10px;
}

.cbr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.cbr-info {
    display: flex;
    flex-direction: column;
}

.cbr-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.cbr-subtitle {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

.auto-correct {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.auto-correct input[type="checkbox"] {
    margin-right: 5px;
}

.auto-correct label {
    font-size: 13px;
}

.cbr-values {
    display: flex;
    gap: 15px;
}

.cbr-value {
    display: flex;
    align-items: center;
}

.cbr-value label {
    font-size: 13px;
    margin-right: 5px;
    min-width: 65px;
}

.cbr-value input {
    width: 70px;
    height: 26px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0 5px;
    font-size: 13px;
    background-color: #f9f9f9;
}


/* 添加导出按钮的样式 */
.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

/* 表格和曲线图区域 */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.table-container {
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
    width: 60%;
    float: left;
}

.chart-container {
    width: 38%;
    height: 300px;
    float: right;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    background-color: #fff;
    position: relative;
}

.chart-title {
    text-align: center;
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f5f5f5;
}

#cbr-chart {
    width: 100%;
    height: calc(100% - 30px);
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th, td {
    border: 1px solid #e0e0e0;
    padding: 5px;
    text-align: center;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

th {
    background-color: #f5f5f5;
    font-weight: normal;
    position: sticky;
    top: 0;
    z-index: 10;
}

tr:nth-child(even) {
    background-color: #fafafa;
}

tr:hover {
    background-color: #f0f8ff;
}

.col-small {
    width: 12%;
}

.col-medium {
    width: 22%;
}

/* 新增特定列宽度类 */
.col-serial {
    width: 8%;
}

.col-reading {
    width: 20%;
}

.col-load {
    width: 14%;
}

.col-lr {
    width: 10%;
}

.col-avg {
    width: 10%;
}

.col-pressure {
    width: 18%;
}

.col-penetration {
    width: 14%;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 输入框禁用状态 */
input:disabled {
    background-color: #f5f5f5;
    color: #666;
}

/* 双输入框样式 */
.dual-input {
    display: flex;
    gap: 5px;
    width: 100%;
}

.dual-input input {
    flex: 1;
    min-width: 0;
    width: calc(50% - 2.5px);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .data-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .table-container, .chart-container {
        width: 100%;
        float: none;
        margin-bottom: 10px;
    }
    
    .chart-container {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .data-row {
        grid-template-columns: 1fr;
    }
    
    .input-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .button-group {
        margin-left: 0;
        margin-top: 10px;
    }
}