/* 搜索结果特征表格样式 */
/* 版本: 1.0.0 */
/* 只在搜索页面生效 */

/* 表格容器 - 限定在搜索页面 */
body.search .search-features-table-wrapper {
    margin: 10px 0 15px 0;
    width: 100%;
}

/* 表格整体样式 - 限定在搜索页面 */
body.search .search-features-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

/* 表格行样式 - 限定在搜索页面 */
body.search .search-features-table tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

body.search .search-features-table tr:last-child {
    border-bottom: none;
}

body.search .search-features-table tr:hover {
    background-color: #f9fafb;
}

/* 单元格基础样式 - 限定在搜索页面 */
body.search .search-features-table td {
    padding: 10px 12px;
    vertical-align: middle;
    line-height: 1.5;
    color: #374151;
}

/* 序号列样式 - 限定在搜索页面 */
body.search .search-features-table .feature-serial {
    width: 40px;
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    background-color: #f9fafb;
    font-size: 13px;
}

/* 特征名称列样式（如果存在key） - 限定在搜索页面 */
body.search .search-features-table .feature-key {
    width: 100px;
    font-weight: 500;
    color: #1f2937;
    background-color: #f9fafb;
}

/* 特征值列样式 - 限定在搜索页面 */
body.search .search-features-table .feature-value {
    color: #111827;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    body.search .search-features-table {
        font-size: 13px;
    }
    
    body.search .search-features-table td {
        padding: 8px 10px;
    }
    
    body.search .search-features-table .feature-serial {
        width: 35px;
        font-size: 12px;
    }
    
    body.search .search-features-table .feature-key {
        width: 80px;
        font-size: 13px;
    }
    
    body.search .search-features-table .feature-value {
        font-size: 13px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
    body.search .search-features-table-wrapper {
        margin: 8px 0 12px 0;
    }
    
    body.search .search-features-table {
        font-size: 12px;
        border-radius: 6px;
    }
    
    body.search .search-features-table td {
        padding: 6px 8px;
    }
    
    body.search .search-features-table .feature-serial {
        width: 30px;
        font-size: 11px;
    }
    
    body.search .search-features-table .feature-key {
        width: 70px;
        font-size: 12px;
    }
    
    body.search .search-features-table .feature-value {
        font-size: 12px;
    }
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
    body.search .search-features-table {
        background: #1f2937;
        border-color: #374151;
    }
    
    body.search .search-features-table tr {
        border-bottom-color: #374151;
    }
    
    body.search .search-features-table tr:hover {
        background-color: #111827;
    }
    
    body.search .search-features-table td {
        color: #d1d5db;
    }
    
    body.search .search-features-table .feature-serial {
        background-color: #111827;
        color: #9ca3af;
    }
    
    body.search .search-features-table .feature-key {
        background-color: #111827;
        color: #e5e7eb;
    }
    
    body.search .search-features-table .feature-value {
        color: #f3f4f6;
    }
}

/* 打印样式优化 */
@media print {
    body.search .search-features-table {
        border: 1px solid #000;
    }
    
    body.search .search-features-table tr {
        border-bottom: 1px solid #ccc;
    }
    
    body.search .search-features-table tr:hover {
        background-color: transparent;
    }
}
