/**
 * Naxel 产品规格参数样式
 * 根据设计图样式定制
 */

.naxel-product-specification {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.spec-table {
    width: 100%;
    background: #F8F8F8;
}

.spec-row {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    border-bottom: 1px solid #D8D8D8;
    background: #F8F8F8;
    min-height: 60px;
}

/* 第一行行高为48px */
.spec-row:first-child {
    min-height: 48px;
}

/* 最后一行不显示下划线 */
.spec-row.last-row {
    border-bottom: none;
}

.spec-key {
    padding: 20px 20px 20px 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 100%;
    text-transform: capitalize;
    letter-spacing: 0em;
    font-variation-settings: "opsz" auto;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.spec-value {
    padding: 20px 20px 20px 40px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 100%;
    letter-spacing: 0em;
    font-variation-settings: "opsz" auto;
    color: #424242;
    display: flex;
    align-items: center;
}

/* 第一个值列居中对齐 */
.spec-value:nth-child(2) {
    justify-content: center;
}

/* 第二个值列靠右对齐 */
.spec-value:nth-child(3) {
    justify-content: flex-end;
    padding-right: 40px;
}

/* 空值列也保持占位 */
.spec-value:empty {
    min-height: 1px;
}

/* 无数据提示样式 */
.spec-row.no-data {
    grid-template-columns: 1fr;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
}

.spec-no-data {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: normal;
    color: #999999;
    text-align: center;
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
    .spec-row {
        grid-template-columns: 140px 1fr 1fr;
        min-height: 50px;
    }
    
    .spec-row:first-child {
        min-height: 50px;
    }
    
    .spec-key {
        padding: 15px 10px 15px 0;
        font-size: 14px;
    }
    
    .spec-value {
        padding: 15px 10px 15px 20px;
        font-size: 14px;
    }
    
    .spec-value:nth-child(2) {
        justify-content: center;
    }
    
    .spec-value:nth-child(3) {
        justify-content: flex-end;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .spec-row {
        grid-template-columns: 100px 1fr 1fr;
        min-height: 45px;
    }
    
    .spec-row:first-child {
        min-height: 45px;
    }
    
    .spec-key {
        padding: 12px 8px 12px 0;
        font-size: 12px;
    }
    
    .spec-value {
        padding: 12px 8px 12px 15px;
        font-size: 12px;
    }
    
    .spec-value:nth-child(3) {
        padding-right: 15px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 375px) {
    .spec-row {
        grid-template-columns: 90px 1fr 1fr;
    }
    
    .spec-key {
        font-size: 11px;
    }
    
    .spec-value {
        font-size: 11px;
        padding: 12px 5px 12px 10px;
    }
    
    .spec-value:nth-child(3) {
        padding-right: 10px;
    }
}
