.f-compare__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.f-compare__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: auto;
}

.f-compare-section .f-compare__table th,
.f-compare-section .f-compare__table td {
    padding: 20px 16px;
    vertical-align: middle;
    text-align: left; /* 默认左对齐（用于参数名列） */
    border: none;

}

.f-compare__table th:not(:first-child),
.f-compare__table td:not(:first-child) {
    text-align: center; /* 非第一列（即产品列）居中 */
}

/* 当没有参数列时，所有列都居中 */
.f-compare__table.no-param-col th,
.f-compare__table.no-param-col td {
    text-align: center;
}

/* 边框开启时的样式 */
.f-compare__table.with-borders th,
.f-compare__table.with-borders td {
    border-bottom: 1px solid rgb(var(--color-border));
}

.f-compare__table th:first-child,
.f-compare__table td:first-child {
    font-weight: 600;
    white-space: nowrap;
}

.f-compare-item-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.f-compare__scroll .f-compare__table thead tr th {
    border: none;
}

.f-compare-item-header .item-image {
    width: 100%;
    margin-top: 16px;
}

.f-compare-item-header .item-title {
    margin: 0;
    font-weight: 600;
}

.f-compare-item-header .item-subtitle {
    margin-top: 16px;
}

.f-compare-item-header .item-description {
    margin-top: 16px;
}

.f-compare-item-header .item-button {
    margin-top: 16px;
}

.f-compare-item-header .item-button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.param-value-cell {
    font-weight: 500;
}

/* 差异高亮 - 无预设颜色 */
.param-value-cell.different {
    /* 无样式，用户自定义 */
}

.param-value-cell.same {
    /* 无样式 */
}

.compare-header {
    text-align: var(--section-header-alignment);
    margin-bottom: 30px;
}

.compare-header .heading {
    margin: 0 0 8px;
}

.compare-header .subheading {
    margin: 0 0 4px;
}

.compare-header .description {
    margin: 0;
}

@media (max-width: 768px) {
    .f-compare__table th,
    .f-compare__table td {
        padding: 16px 10px;
    }


    /* 让剩余的所有列（产品列）居中对齐 */
    .f-compare__table th,
    .f-compare__table td {
        text-align: center;
    }
    .f-compare-item-header .item-button{
        padding: 10px;
    }
}