/* Vendor Detail Page Styles - 与产品详情页面保持一致 */

/* 页面整体布局 */
.vendor-detail-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 面包屑导航 */
.vendor-breadcrumb {
    background: #f8f9fa;
    padding: 15px 0 15px 60px;
    border-radius: 0;
    margin-bottom: 0;
    font-size: 14px;
    color: #6c757d;
    max-width: 100%;
}

.vendor-breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.vendor-breadcrumb a:hover {
    color: #0056b3;
}

/* 供应商标题区域 */
.vendor-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0 40px 60px;
    border-radius: 0;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.vendor-category {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.vendor-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.vendor-company {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
}

/* 导航标签 */
.vendor-nav-tabs {
    padding: 0 60px;
    margin: 20px 0 30px 0;
    border-bottom: 2px solid #e9ecef;
    max-width: 100%;
}

.vendor-nav-tabs a {
    display: inline-block;
    padding: 12px 24px;
    margin-right: 8px;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.vendor-nav-tabs a:hover {
    color: #007bff;
}

.vendor-nav-tabs a.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

/* 主要内容区域 */
.vendor-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 60px;
    margin-bottom: 30px;
    max-width: 100%;
}

.vendor-info-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
}

.vendor-info-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.vendor-info-table {
    width: 100%;
    border-collapse: collapse;
}

.vendor-info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.vendor-info-table tr:last-child {
    border-bottom: none;
}

.vendor-info-table th {
    text-align: left;
    padding: 12px 0;
    font-weight: 600;
    color: #333;
    width: 40%;
}

.vendor-info-table td {
    text-align: left;
    padding: 12px 0;
    color: #666;
}

.vendor-chart-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
}

.vendor-chart-container h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.vendor-chart-iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 4px;
}

.vendor-secondary-content {
    padding: 0 60px;
    margin-bottom: 30px;
    max-width: 100%;
}

.related-products-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
}

.related-products-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.related-products-table {
    width: 100%;
    border-collapse: collapse;
}

.related-products-table th {
    text-align: left;
    padding: 12px 8px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
}

.related-products-table td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.related-products-table tr:hover {
    background-color: #f8f9fa;
}

.product-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.product-link:hover {
    text-decoration: underline;
}

.change-positive {
    color: #28a745;
    font-weight: 500;
}

.change-negative {
    color: #dc3545;
    font-weight: 500;
}

/* 表格中iframe图表的样式 */
.related-products-table td iframe {
    width: 100%;
    height: 100px;
    border: none;
    border-radius: 4px;
    background: #f8f9fa;
}

/* 分页样式 - 与产品详情页面保持一致 */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px 60px;
    border-top: 1px solid #f1f3f4;
    max-width: 100%;
}

.page-info {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.page-info a {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    margin: 0 5px;
}

.page-info a:hover {
    background: #0056b3;
}

.page-info a.omm {
    background: #0056b3;
}

.page-info a.disable {
    background: #6c757d;
    cursor: not-allowed;
}

.page-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    text-align: center;
}

.page-button {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.page-button:hover {
    background: #0056b3;
}

@media (max-width: 1024px) {
    .vendor-main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vendor-breadcrumb,
    .vendor-header,
    .vendor-nav-tabs,
    .vendor-main-content,
    .vendor-secondary-content,
    .pagination-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    .vendor-detail-container {
        padding: 0;
    }
    
    .vendor-breadcrumb {
        padding: 15px 0 15px 20px;
    }
    
    .vendor-header {
        padding: 30px 0 30px 20px;
    }
    
    .vendor-main-content,
    .vendor-secondary-content,
    .pagination-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .vendor-name {
        font-size: 24px;
    }
    
    .vendor-company {
        font-size: 16px;
    }
    
    .vendor-nav-tabs a {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .vendor-info-card,
    .vendor-chart-container,
    .related-products-card {
        padding: 20px;
    }
    
    .related-products-table {
        font-size: 14px;
    }
    
    .related-products-table th,
    .related-products-table td {
        padding: 8px 4px;
    }
    
    .related-products-table td iframe {
        height: 80px;
    }
    
    .pagination-container {
        padding: 15px 20px;
    }
}
