/* 产品信息表格基础样式 */
.aigather-product-info-table {
    margin: 20px 0;
    overflow-x: auto;
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-specs-table th,
.product-specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e7e6e6;
}

.product-specs-table th.category-header {
    background: #e5e5e5;
    font-size: 19px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.product-specs-table td.param-name {
    width: 170px;
    font-weight: 500;
    color: #555;
    background: #f9f9f9;
}

.product-specs-table td.param-value {
    color: #333;
    line-height: 1.5;
}

/* 默认样式 */
.aigather-product-info-table.style-default .product-specs-table {
    border: 1px solid #ddd;
}

.aigather-product-info-table.style-default .category-header {
    background: #e5e5e5;
    color: #333;
}

/* 现代样式 */
.aigather-product-info-table.style-modern .product-specs-table {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.aigather-product-info-table.style-modern .category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.aigather-product-info-table.style-modern td.param-name {
    background: #f8f9fa;
    border-right: 3px solid #667eea;
}

/* 经典样式 */
.aigather-product-info-table.style-classic .product-specs-table {
    border: 2px solid #333;
}

.aigather-product-info-table.style-classic .category-header {
    background: #333;
    color: #fff;
}

.aigather-product-info-table.style-classic td.param-name {
    background: #f5f5f5;
    font-weight: bold;
}

.aigather-product-info-table.style-classic th,
.aigather-product-info-table.style-classic td {
    border: 1px solid #333;
}

/* 通用样式 - 列表式布局 */
.aigather-product-info-table.style-universal {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 分类标题样式 */
.style-universal .category-title {
    font-size: 19px;
    font-weight: bold;
    color: #333333;
    background-color: #F5F5F5;
    padding: 8px 0;
    margin: 16px 0 8px 0;
    text-align: left;
    border-bottom: 2px solid #E5E5E5;
}

/* 参数行样式 */
.style-universal .param-row {
    font-size: 13px;
    font-weight: normal;
    color: #666666;
    line-height: 1.6;
    padding: 6px 0;
    text-align: left;
    border-bottom: 1px solid #E5E5E5;
    display: flex;
    align-items: baseline;
}

/* 参数名称样式 */
.style-universal .param-name {
    font-weight: 500;
    color: #333333;
    min-width: 120px;
    margin-right: 8px;
}

/* 参数值样式 */
.style-universal .param-value {
    flex: 1;
    color: #666666;
}

/* 第一个分类标题的上边距调整 */
.style-universal .category-title:first-child {
    margin-top: 0;
}

/* 最后一个参数行的下边框移除 */
.style-universal .param-row:last-child {
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .aigather-product-info-table {
        font-size: 14px;
    }
    
    .product-specs-table th,
    .product-specs-table td {
        padding: 8px 10px;
    }
    
    .product-specs-table th.category-header {
        font-size: 16px;
    }
    
    .product-specs-table td.param-name {
        width: auto;
        min-width: 120px;
    }
    
    /* 通用样式响应式 */
    .style-universal .category-title {
        font-size: 17px;
        padding: 6px 0;
    }
    
    .style-universal .param-row {
        font-size: 12px;
        padding: 5px 0;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .style-universal .param-name {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 2px;
    }
}

@media (max-width: 480px) {
    .product-specs-table {
        font-size: 12px;
    }
    
    .product-specs-table th,
    .product-specs-table td {
        padding: 6px 8px;
    }
    
    .product-specs-table th.category-header {
        font-size: 14px;
    }
    
    /* 通用样式小屏幕优化 */
    .style-universal .category-title {
        font-size: 16px;
        padding: 5px 0;
    }
    
    .style-universal .param-row {
        font-size: 11px;
        padding: 4px 0;
    }
}

/* 打印样式 */
@media print {
    .aigather-product-info-table {
        box-shadow: none;
    }
    
    .product-specs-table {
        border: 1px solid #000;
    }
    
    .product-specs-table th,
    .product-specs-table td {
        border: 1px solid #000;
    }
    
    .category-header {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    /* 通用样式打印优化 */
    .style-universal .category-title {
        background-color: #f0f0f0 !important;
        color: #000 !important;
        border-bottom: 1px solid #000;
    }
    
    .style-universal .param-row {
        border-bottom: 1px solid #ccc;
        color: #000 !important;
    }
    
    .style-universal .param-name,
    .style-universal .param-value {
        color: #000 !important;
    }
}

/* 复制按钮样式 */
.table-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.table-copy-btn:hover {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aigather-product-info-table {
    position: relative;
}

/* 复制成功提示 */
.copy-success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}