/* ==========================================================================
   DESIGN SYSTEM: Modern Industrial Precision
   Style Guidelines:
   - Typography: Plus Jakarta Sans (Headers), Inter (Body), JetBrains Mono (Data)
   - Palette: Deep Slate, High-Tech Blue, Cool Grays, Amber Accents
   - Layout: Structured asymmetric grids, high breathing room, micro-shadows
   - Interaction: Smooth transitions, responsive feedback, physical-feel active states
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* Color Palette */
    --primary: #1e40af;         /* High-Tech Blue (blue-800) */
    --primary-hover: #1d4ed8;   /* Bright Blue (blue-700) */
    --primary-light: #eff6ff;   /* Very Light Blue (blue-50) */
    --primary-border: #dbeafe;  /* Light Blue Border (blue-100) */
    --dark-bg: #0f172a;         /* Deep Slate (slate-900) */
    --dark-card: #1e293b;       /* Dark Gray Card (slate-800) */
    --text-main: #1e293b;       /* Slate 800 */
    --text-muted: #64748b;      /* Slate 500 */
    --text-light: #94a3b8;      /* Slate 400 */
    --bg-main: #f8fafc;         /* Slate 50 */
    --bg-card: #ffffff;         /* Pure White */
    --border-color: #e2e8f0;    /* Slate 200 */
    --accent: #d97706;          /* Amber Gold */
    --accent-light: #fef3c7;    /* Amber Light */
    
    /* Fonts */
    --font-header: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transition */
    --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);

    /* Aliases for header.css variable names */
    --color-primary:    #001a3a;
    --color-primary-2:  #64748b;
    --color-accent:     #1e40af;
    --color-text-main:  #1e293b;
    --color-text-muted: #64748b;
    --color-border:     #e2e8f0;
    --color-bg-light:   #eff6ff;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrollbar on mobile */
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 100%; /* Support ultra-wide, 2K, and 4K displays */
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 80px); /* More breathing room on ultra-wide screens */
}

/* Shared flex helpers */
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w-full { width: 100%; }

/* Shared Button Base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 32px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    transition: all 0.28s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    color: #ffffff;
    background: #001a3a;
    box-shadow: 0 10px 24px rgba(0, 26, 58, 0.16);
}

.btn-primary:hover {
    background: #06264f;
    box-shadow: 0 14px 32px rgba(0, 26, 58, 0.22);
}

/* ==========================================================================
   BREADCRUMB & HERO BANNER
   ========================================================================== */
.breadcrumb-section {
    background-color: transparent;
    padding: 16px 0 0 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: var(--text-muted);
}

/* Hero Banner */
.hero-banner {
    background-color: var(--dark-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 0 0 60px 0;
    position: relative;
    overflow: hidden;
}

/* 左侧深色渐变遮罩：覆盖约左60%区域，向右渐变为透明，使文字区域背景深色清晰 */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(10, 20, 50, 0.92) 0%,
        rgba(10, 20, 50, 0.85) 30%,
        rgba(10, 20, 50, 0.60) 50%,
        rgba(10, 20, 50, 0.20) 70%,
        rgba(10, 20, 50, 0.00) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-banner .breadcrumb-section,
.hero-banner > .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    background: none;
    padding: 32px 0 32px 0;
    margin-bottom: 8px;
}

.hero-title {
    font-family: var(--font-header);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-desc {
    font-size: 16px;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Features Grid */
    .features-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    backdrop-filter: blur(8px);
    transition: var(--transition-normal);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #60a5fa;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-info h3 {
    font-family: var(--font-header);
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.feature-info p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}

/* ==========================================================================
   MAIN CONTENT LAYOUT
   ========================================================================== */
.main-layout {
    padding: 48px 0 80px 0;
}

.layout-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr); /* minmax(0,1fr)限制右列不超出容器 */
    gap: 40px;
    align-items: start;
    overflow: hidden;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

/* Product Categories Accordion */
.category-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-fast);
    width: 100%;
    text-decoration: none;
}

.category-header:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-header-left svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-light);
}

.category-header:hover .category-header-left svg {
    stroke: var(--primary);
}

.category-header .arrow-icon {
    width: 14px;
    height: 14px;
    transition: var(--transition-normal);
}

.category-item.active .category-header {
    background-color: var(--primary-light);
    color: var(--primary);
}

.category-item.active .category-header-left svg {
    stroke: var(--primary);
}

.category-item.active .arrow-icon {
    transform: rotate(180deg);
}

.category-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    background-color: #fafafb;
    display: flex;
    flex-direction: column;
}

.category-item.active .category-sub {
    max-height: 500px; /* arbitrary high value for smooth auto transition */
}

.sub-link {
    display: block;
    padding: 10px 16px 10px 42px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border-left: 2px solid transparent;
}

.sub-link:hover {
    color: var(--primary);
    background-color: rgba(30, 64, 175, 0.02);
}

.sub-link.active {
    color: var(--primary);
    font-weight: 600;
    background-color: var(--primary-light);
    border-left-color: var(--primary);
}

/* Brand Center */
.brand-center-widget {
    padding: 24px 20px;
}

.brand-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    background-color: var(--bg-card);
    transition: var(--transition-normal);
    text-decoration: none;
    color: var(--text-main);
}

.brand-item:hover {
    border-color: var(--primary-border);
    background-color: var(--primary-light);
    transform: translateX(2px);
    box-shadow: var(--shadow-sm);
}

.brand-item.active {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.product-catalog-entry {
    border-color: #d7e3f7;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.045);
}

.product-catalog-entry:hover {
    border-color: var(--primary-border);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.08);
}

.brand-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.brand-logo-wrap {
    width: 72px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #fff;
    overflow: hidden;
    padding: 4px 6px;
}

.brand-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.product-catalog-icon-wrap {
    width: 72px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #f7fbff 0%, #edf4ff 100%);
    color: var(--primary);
    overflow: hidden;
}

.product-catalog-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.product-catalog-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.15;
}

.product-catalog-title {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0;
}

.product-catalog-subtitle {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.15;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-catalog-entry:hover .product-catalog-subtitle {
    color: var(--text-muted);
}

/* Placeholder when image src is empty */
.brand-logo-img[src=""] {
    background-color: #f1f5f9;
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

.brand-item-name {
    font-family: var(--font-header);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-item:hover .brand-item-name {
    color: var(--primary);
}

.brand-item.active .brand-item-name {
    color: var(--primary);
}

.brand-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: var(--primary);
    transition: var(--transition-fast);
}

.brand-item:hover .brand-arrow {
    transform: translateX(3px);
}

/* Legacy - keep for backward compat */
.brand-logo-small {
    display: none;
}

/* Hidden brand items (shown only after expand) */
.brand-item-hidden {
    display: none;
}

.brand-item-hidden.brand-item-visible {
    display: flex;
}

/* View All Brands toggle button */
.view-all-brands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 16px;
    padding: 12px 16px;
    border: none;
    border-top: 1px dashed var(--border-color);
    background: #f0f4ff;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.view-all-brands:hover {
    background: #e0e9ff;
    color: var(--primary-hover);
}

.view-all-brands-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.view-all-brands.expanded .view-all-brands-icon {
    transform: rotate(180deg);
}

/* Sidebar Help Banner */
.sidebar-help {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
    color: white;
    border: none;
}

.sidebar-help .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sidebar-help .widget-title::after {
    background-color: var(--primary-hover);
}

.help-desc {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: white;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 13px;
    padding: 12px;
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-contact:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-contact svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   RIGHT MAIN CONTENT
   ========================================================================== */
.right-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0; /* 关键：防止grid子元素超出1fr分配宽度 */
}

/* Brand Intro Banner */
.brand-banner {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    min-height: 100px;
    margin-bottom: 0;
}

/* Left: brand logo image area */
.brand-banner-logo {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 8px;
}

.brand-banner-logo img {
    max-width: 180px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Fallback text when no image is available */
.brand-banner-logo span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1.5px;
    line-height: 1;
    font-style: italic;
}

/* Vertical divider between logo and text */
.brand-banner-divider {
    width: 1px;
    height: 64px;
    background-color: var(--border-color);
    flex-shrink: 0;
    opacity: 0.7;
}

/* Right: brand description text area */
.brand-banner-info {
    flex: 1;
    min-width: 0;
}

.brand-banner-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.brand-banner-desc p {
    margin: 0 0 6px;
}

.brand-banner-desc p:last-child {
    margin-bottom: 0;
}

/* Product Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-bg);
}

.section-title span {
    color: var(--primary);
}

.product-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Table Section Category Title */
.table-section-title {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 28px;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.13);
}

.table-section-title .tst-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
}

.table-section-title .tst-icon svg {
    width: 24px;
    height: 24px;
}

.table-section-title .tst-text {
    flex: 1;
    padding: 10px 20px;
    min-height: 52px;
    display: flex;
    align-items: center;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%);
    font-family: var(--font-header);
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-bg);
    letter-spacing: 0.2px;
    border-left: 3px solid #1e40af;
}

/* Product Table Wrapper */
.table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: visible; /* 让table-responsive内部处理滚动 */
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    /* 外层浅灰蓝边框，跟随圆角 */
    border: 1px solid #d7e1ee;
}

/* Table Design */
.product-table {
    width: 100%;
    min-width: 900px; /* 默认3-4列表格最小宽度 */
    table-layout: auto;
    /* 使用 separate + spacing=0 以支持圆角与完整边框线 */
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 13.5px;
    word-break: normal;
    overflow-wrap: normal;
    white-space: normal;
}

/* 5列以上宽表格 */
.product-table.wide-table {
    min-width: 1200px;
}

/* 8列以上超宽表格 */
.product-table.extra-wide-table {
    min-width: 1500px;
}

.product-table th {
    background-color: #0f172a;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-header);
    font-weight: 700;
    padding: 14px 18px;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    /* 表头底部分隔线保持深色 */
    border-bottom: 1px solid #1e293b;
    /* 表头列间竖向分隔线：半透明白色，与深蓝背景协调 */
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.4;
    vertical-align: middle;
}

/* 产品型号列 */
.product-table th:first-child,
.product-table td:first-child {
    min-width: 160px;
    max-width: 240px;
    font-weight: 700;
}

/* 长文本列（最后一列）给足宽度，且不显示右侧分隔线 */
.product-table th:last-child {
    min-width: 260px;
    white-space: normal;
    border-right: none;
}
.product-table td:last-child {
    min-width: 260px;
    border-right: none;
}

/* 宽表格的倒数第二列（特点列）也给足宽度 */
.product-table.wide-table th:nth-last-child(2),
.product-table.wide-table td:nth-last-child(2),
.product-table.extra-wide-table th:nth-last-child(2),
.product-table.extra-wide-table td:nth-last-child(2) {
    min-width: 240px;
}

/* 短字段（数字类）居中显示 */
.product-table td.col-num,
.product-table th.col-num {
    text-align: center;
    min-width: 80px;
    max-width: 140px;
    white-space: nowrap;
}

.product-table td {
    padding: 18px 18px;
    /* 行间横向分隔线：浅灰蓝色，轻细干净 */
    border-bottom: 1px solid #dbe4ef;
    /* 列间竖向分隔线：浅灰蓝色 */
    border-right: 1px solid #dbe4ef;
    color: var(--text-main);
    vertical-align: middle;
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
    font-size: 13.5px;
}

/* 数据单元格最后一列不需要右侧分隔线 */
.product-table td:last-child {
    border-right: none;
}

/* 最后一行不需要底部分隔线（避免与外层边框重叠） */
.product-table tbody tr:last-child td {
    border-bottom: none;
}

.product-table tbody tr {
    transition: var(--transition-fast);
}

/* 奇数行：极浅蓝灰色背景 */
.product-table tbody tr:nth-child(odd) {
    background-color: #f4f7fb;
}

/* 偶数行：白色或接近白色 */
.product-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.product-table tbody tr:hover {
    background-color: var(--primary-light);
}

/* Table Specific Cell Styles */
.prod-name {
    font-weight: 700;
    color: var(--dark-bg);
    white-space: normal;
    word-break: break-word;
}

.prod-type {
    font-weight: 500;
    color: var(--text-muted);
}

.prod-solid {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

.product-table th.col-solid {
    text-align: center;
}

.prod-solvent {
    font-weight: 500;
    color: var(--text-muted);
}

.prod-appearance {
    color: var(--text-muted);
}

.prod-features {
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.6;
}

.prod-apps {
    font-weight: 500;
    color: var(--primary);
}

.prod-action {
    white-space: nowrap !important;
    vertical-align: middle !important;
    text-align: center;
    width: 90px;
    min-width: 90px;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: var(--primary);
    font-size: 11px;
    white-space: nowrap;
}

.btn-detail:hover {
    color: var(--primary-hover);
}

.btn-detail svg {
    width: 14px;
    height: 14px;
    transition: var(--transition-fast);
}

.product-table tbody tr:hover .btn-detail svg {
    transform: translateX(4px);
}
/* Subgroup header rows with colspan should always wrap normally */
.product-table tbody tr td[colspan] {
    white-space: normal;
    word-break: break-word;
}


/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
}

.page-btn {
    width: auto;
    height: 36px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    background-color: var(--bg-card);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.page-btn:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}

.page-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-btn svg {
    width: 16px;
    height: 16px;
}

.page-info {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 8px;
    white-space: nowrap;
}

/* ==========================================================================
   BOTTOM RESOURCE LINKS (FOUR CARDS)
   ========================================================================== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.resource-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-normal);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-border);
}

.resource-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.resource-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.resource-card h3 {
    font-family: var(--font-header);
    font-size: 15px;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 8px;
}

.resource-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.resource-link:hover {
    color: var(--primary-hover);
}

.resource-link svg {
    width: 14px;
    height: 14px;
    transition: var(--transition-fast);
}

.resource-card:hover .resource-link svg {
    transform: translateX(4px);
}


/* ==========================================================================
   MOBILE CARD VIEW STYLES
   ========================================================================== */
.product-cards-container {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.product-mobile-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.product-mobile-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
    gap: 12px;
}

.mobile-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
}

.mobile-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.mobile-card-btn:hover {
    background-color: var(--primary-hover);
    transform: translateX(2px);
}

.mobile-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-grid-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.grid-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.grid-label svg {
    width: 13px;
    height: 13px;
    stroke: var(--primary);
}

.grid-val {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-dark);
}

.mobile-card-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px dashed var(--border-color);
    padding-top: 14px;
}

.mobile-detail-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.detail-section-label svg {
    width: 14px;
    height: 14px;
    stroke: var(--primary);
}

.detail-section-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-normal);
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .sidebar-widget.sidebar-help {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    /* Table / Card toggle for mobile layout */
    .table-container {
        display: none; /* Hide standard table view on mobile */
    }
    
    .product-cards-container {
        display: flex; /* Show card view on mobile */
    }

    /* Top Bar Mobile Optimization — handled by header.css */
    
    /* Breadcrumbs mobile scroll */
    .breadcrumbs {
        white-space: nowrap;
        overflow-x: auto;
        padding: 12px 16px;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .breadcrumbs::-webkit-scrollbar {
        display: none; /* Clean look without scrollbar */
    }
    .breadcrumbs {
        scrollbar-width: none; /* Firefox */
    }

    /* Hero adjustments */
    .hero {
        padding: 40px 0;
    }
    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }
    .hero-desc {
        font-size: 14px;
        line-height: 1.5;
    }
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .feature-card {
        min-height: 92px;
        padding: 12px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        text-align: center;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: none;
    }
    .feature-icon {
        margin-bottom: 0;
        width: 28px;
        height: 28px;
        flex-shrink: 0;
        border-radius: 0;
        background: transparent;
        border: 0;
        color: rgba(255, 255, 255, 0.92);
    }
    .feature-icon svg {
        width: 24px;
        height: 24px;
    }
    .feature-info h3 {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 0;
    }
    .feature-info p {
        display: none;
    }

    /* Main Layout Spacing on Mobile */
    .main-layout {
        padding: 24px 0 48px 0;
    }
    
    .container {
        padding: 0 clamp(20px, 4vw, 80px); /* Narrower padding for mobile screen efficiency */
    }

    .sidebar {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .sidebar-widget.sidebar-help {
        grid-column: span 1;
    }
    .brand-banner {
        display: block;
        padding: 18px 16px;
    }
    .brand-banner::after {
        content: "";
        display: block;
        clear: both;
    }
    .brand-banner-divider {
        display: none;
    }
    .brand-banner-logo {
        float: left;
        width: 160px;
        margin: 2px 14px 8px 0;
        flex-shrink: unset;
        display: block;
        padding-right: 0;
    }
    .brand-banner-logo img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
        display: block;
        object-fit: contain;
    }
    .brand-banner-logo span {
        font-size: 24px;
    }
    .brand-banner-info {
        display: block;
        flex: unset;
        min-width: unset;
        overflow: visible;
    }
    .brand-banner-desc {
        display: block;
        font-size: 13px;
        line-height: 1.7;
        color: #334155;
        overflow: visible;
    }
    
    /* Search Box & Table responsive container */
    .search-container {
        margin-bottom: 20px;
    }
    
    .table-responsive {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        /* 移动端保持与桌面端一致的浅灰蓝边框 */
        border: 1px solid #d7e1ee;
        scrollbar-width: thin;
        box-sizing: border-box;
    }
    .table-responsive::-webkit-scrollbar {
        height: 4px;
    }
    .table-responsive::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }
    /* 移动端表格最小宽度 */
    .product-table {
        min-width: 700px;
    }
    .product-table.wide-table {
        min-width: 1000px;
    }
    .product-table.extra-wide-table {
        min-width: 1200px;
    }
    
    /* Resource Docs mobile spacing */
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .resource-card {
        padding: 16px;
    }

}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    .brand-banner {
        padding: 16px;
    }
    .brand-banner-logo {
        width: 140px;
        margin: 2px 12px 8px 0;
    }
    .brand-banner-desc {
        font-size: 12.5px;
    }
}

/* ==========================================================================
   MOBILE PRODUCT SPECIFICATIONS FIX
   ========================================================================== */
.product-spec-mobile-cards {
    display: none;
}

.mobile-spec-page {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.mobile-spec-page.active {
    display: flex;
}

/* Empty-state block shown on mobile when a category has no products yet.
   Mirrors the desktop layout: centered SVG + heading + description text. */
.mobile-spec-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    width: 100%;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
}

.mobile-spec-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-spec-group-label {
    margin: 4px 0 0;
    padding: 10px 14px;
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%);
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--dark-bg);
}

.product-mobile-card.mobile-spec-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    transform: none;
}

.product-mobile-card.mobile-spec-card:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

.mobile-spec-card .mobile-card-header {
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.mobile-spec-card .mobile-card-title {
    font-family: var(--font-header);
    font-size: 18px;
    font-weight: 800;
    color: var(--dark-bg);
    line-height: 1.35;
}

.mobile-spec-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-spec-field {
    display: grid;
    grid-template-columns: minmax(108px, 38%) minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
    align-items: start;
}

.mobile-spec-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mobile-spec-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-muted);
}

.mobile-spec-value {
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--text-main);
    overflow-wrap: anywhere;
}

.mobile-spec-value.is-collapsible {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-spec-value.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.mobile-spec-more {
    display: inline-flex;
    width: fit-content;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-spec-note {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .product-spec-mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 16px;
    }

    .table-container {
        display: none;
    }

    /* ── Pagination: both .pagination and .product-pagination selectors ──
       The HTML uses class="product-pagination" id="product-pagination".
       We must target both class names so the pagination is always visible
       on mobile and supports horizontal scrolling for many page buttons.
       IMPORTANT: .product-pagination must NOT be hidden by the
       .table-container { display:none } rule because in the fixed JS the
       pagination is moved OUTSIDE .table-container.  The visibility rule
       below is a belt-and-suspenders guard.                               */
    .pagination,
    .product-pagination {
        display: flex !important;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 18px 4px 20px;
        gap: 8px;
        border-top: 0;
        background: transparent;
        visibility: visible !important;
    }

    .pagination .page-btn,
    .product-pagination .page-btn {
        flex: 0 0 auto;
        min-width: 42px;
        height: 36px;
        padding: 0 14px;
    }

    /* Disabled button state — use both class and :disabled attribute */
    .product-pagination .page-btn:disabled,
    .product-pagination .page-btn.disabled {
        opacity: 0.4;
        cursor: not-allowed;
        pointer-events: none;
    }

    .section-header {
        align-items: flex-start;
        gap: 10px;
    }

    .product-count {
        white-space: nowrap;
        padding-top: 3px;
    }
}

@media (max-width: 480px) {
    .mobile-spec-field {
        grid-template-columns: minmax(92px, 36%) minmax(0, 1fr);
        gap: 10px;
    }

    .product-mobile-card.mobile-spec-card {
        padding: 14px;
    }

    .mobile-spec-card .mobile-card-title {
        font-size: 16px;
    }
}


/* ==========================================================================
   MOBILE SIDEBAR SECTION COLLAPSE (Каталог продукции & Бренд-центр)
   仅在移动端（≤768px）生效，不影响桌面端布局
   ========================================================================== */

@media (max-width: 768px) {

    /* 为可折叠的 sidebar-widget 添加折叠状态支持 */
    .sidebar-widget.mobile-collapsible {
        overflow: hidden;
        /* widget 整体不加 transition，避免与内部动画冲突 */
        transition: none;
    }

    /* 折叠标题栏：使 widget-title 变为可点击的折叠触发器 */
    .sidebar-widget.mobile-collapsible .mobile-collapse-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        /* 确保点击区域足够大（≥40px） */
        min-height: 44px;
        padding: 0;
        margin: 0;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* 折叠箭头图标 */
    .mobile-collapse-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        color: var(--text-muted, #64748b);
        /* 箭头旋转：使用 spring 感缓动，比 ease 更有弹性 */
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
        will-change: transform;
    }

    .mobile-collapse-arrow svg {
        width: 16px;
        height: 16px;
        stroke: var(--text-muted, #64748b);
        display: block;
    }

    /* 展开状态：箭头向下 */
    .sidebar-widget.mobile-collapsible:not(.mobile-collapsed) .mobile-collapse-arrow {
        transform: rotate(0deg);
    }

    /* 折叠状态：箭头向右 */
    .sidebar-widget.mobile-collapsible.mobile-collapsed .mobile-collapse-arrow {
        transform: rotate(-90deg);
    }

    /* 折叠内容区域
       核心动画策略：
       - max-height 用 JS 精确设置实际高度，避免 "大数值" 导致的加速感
       - opacity 稍早淡出/稍晚淡入，与高度错开，层次更丰富
       - padding-top/bottom 同步收缩，让边距随内容一起消失
    */
    .mobile-collapse-body {
        overflow: hidden;
        /* max-height: JS 动态控制，CSS 只提供过渡时长和曲线 */
        transition:
            max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
            opacity    0.28s cubic-bezier(0.4, 0, 0.2, 1),
            padding-top    0.32s cubic-bezier(0.4, 0, 0.2, 1),
            padding-bottom 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: max-height, opacity;
        opacity: 1;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* 折叠状态：内容区域收起（max-height 由 JS 精确控制，此处兜底） */
    .sidebar-widget.mobile-collapsible.mobile-collapsed .mobile-collapse-body {
        max-height: 0 !important;
        opacity: 0;
    }

    /* widget-title 下边框和蓝色装饰线的过渡 */
    .sidebar-widget.mobile-collapsible .mobile-collapse-header .widget-title {
        transition:
            margin-bottom  0.32s cubic-bezier(0.4, 0, 0.2, 1),
            padding-bottom 0.32s cubic-bezier(0.4, 0, 0.2, 1),
            border-bottom-color 0.28s ease;
    }

    .sidebar-widget.mobile-collapsible .mobile-collapse-header .widget-title::after {
        transition: opacity 0.28s ease;
    }

    /* 折叠状态下 widget-title 的下边距收起 */
    .sidebar-widget.mobile-collapsible.mobile-collapsed .mobile-collapse-header .widget-title {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom-color: transparent;
    }

    .sidebar-widget.mobile-collapsible.mobile-collapsed .mobile-collapse-header .widget-title::after {
        opacity: 0;
    }

    /* 展开时恢复 widget-title 的样式 */
    .sidebar-widget.mobile-collapsible:not(.mobile-collapsed) .mobile-collapse-header .widget-title {
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom-color: var(--border-color, #e2e8f0);
    }

    .sidebar-widget.mobile-collapsible:not(.mobile-collapsed) .mobile-collapse-header .widget-title::after {
        opacity: 1;
    }

}

/* 桌面端：完全隐藏折叠箭头，不影响布局 */
@media (min-width: 769px) {
    .mobile-collapse-arrow {
        display: none !important;
    }
    /* 桌面端 mobile-collapse-body 始终展开，无动画 */
    .mobile-collapse-body {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
        transition: none !important;
    }
    /* 桌面端 widget-title 保持原有样式，无动画 */
    .sidebar-widget.mobile-collapsible .mobile-collapse-header .widget-title {
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom-color: var(--border-color, #e2e8f0);
        transition: none;
    }
    .sidebar-widget.mobile-collapsible .mobile-collapse-header .widget-title::after {
        opacity: 1;
        transition: none;
    }
}


/* ==========================================================================
   Search Brand — hide original pagination while search is active
   Overrides the !important rule in the mobile breakpoint above
   ========================================================================== */
[data-search-active] #product-pagination,
[data-search-active] .pagination {
    display: none !important;
    visibility: hidden !important;
}

/* ==========================================================================
   Search Brand — Summary Bar, Results Container, Group Headings
   (used by search_brand.js)
   ========================================================================== */

/* ── Summary bar ─────────────────────────────────────────────────────────── */
.search-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md, 8px);
    font-size: 13.5px;
    flex-wrap: wrap;
}

.search-summary-info {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.search-summary-label {
    color: var(--text-secondary, #64748b);
}

.search-summary-query {
    font-weight: 600;
    color: var(--primary, #2563eb);
}

.search-summary-count {
    color: var(--text-secondary, #64748b);
}

.search-clear-btn {
    flex-shrink: 0;
    padding: 5px 14px;
    background: var(--primary, #2563eb);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm, 6px);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.search-clear-btn:hover {
    background: #1d4ed8;
}

/* ── Results container ───────────────────────────────────────────────────── */
.search-results-desktop {
    margin-top: 4px;
}

/* ── Group heading (sub-category label above each result table) ──────────── */
.search-result-group-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 20px 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary, #2563eb);
}

.search-result-subcat {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary, #2563eb);
    display: inline-block;
    padding-bottom: 2px;
}

.search-result-category {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
}

.search-result-sep {
    color: var(--text-secondary, #64748b);
    font-size: 13px;
}

/* ── Table wrapper inside results ────────────────────────────────────────── */
.search-result-table-wrapper {
    margin-bottom: 24px;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.search-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-lg, 12px);
    margin-top: 8px;
}

.search-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.search-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 0 0 8px;
}

.search-empty-desc {
    font-size: 14px;
    color: var(--text-secondary, #64748b);
    margin: 0 0 20px;
    max-width: 360px;
}

.search-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--primary, #2563eb);
    color: #fff;
    border-radius: var(--radius-md, 8px);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease;
}

.search-contact-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

/* ── Keyword highlight inside table cells ────────────────────────────────── */
.search-highlight {
    background: #2563eb22;
    color: #2563eb;
    font-weight: 600;
    border-radius: 2px;
    padding: 0 1px;
}

/* ==========================================================================
   Moved from ru/products/categories/index.html inline <style>
   (kept at the end to preserve the original cascade order — these rules
   intentionally override the duplicates defined above in this same file)
   ========================================================================== */

/* sidebar-help 移动端响应式：桌面显示原始位置，移动端显示表格底部副本 */
#sidebar-help-mobile {
    display: none;
}
/* 搜索框移动端副本：默认隐藏，移动端显示在表格正上方 */
#search-widget-mobile {
    display: none;
}
@media (max-width: 768px) {
    #sidebar-help-original {
        display: none;
    }
    #sidebar-help-mobile {
        display: block;
        margin-top: 24px;
    }
    /* 移动端：隐藏 sidebar 内的搜索框，显示表格上方的副本 */
    #search-widget-sidebar {
        display: none;
    }
    #search-widget-mobile {
        display: block;
        margin-bottom: 16px;
    }
}

/* ================================================================
   Search Results Styles
   ================================================================ */

/* Summary bar */
.search-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}
.search-summary-label { color: #64748b; }
.search-summary-query { font-weight: 700; color: #1e40af; }
.search-summary-count { color: #475569; }
.search-clear-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.search-clear-btn:hover { background: #1d4ed8; }

/* Group heading */
.search-result-group-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%);
    border-left: 3px solid #1e40af;
    border-radius: 0 6px 6px 0;
    margin: 20px 0 8px;
    font-family: var(--font-header, sans-serif);
    font-weight: 700;
    font-size: 14px;
    color: var(--dark-bg, #1e293b);
}
.search-result-category { color: #1e40af; }
.search-result-sep { color: #94a3b8; }
.search-result-subcat { color: #334155; }

/* Desktop result table */
.search-result-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}
.search-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.search-result-table thead th {
    background: #f8fafc;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
.search-result-table tbody tr:hover { background: #f1f5f9; }
.search-result-table tbody td {
    padding: 9px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    color: #334155;
}
.search-result-table tbody tr:last-child td { border-bottom: none; }

/* Empty state */
.search-empty-state {
    text-align: center;
    padding: 60px 20px;
}
.search-empty-icon { font-size: 48px; margin-bottom: 12px; }
.search-empty-title { font-size: 20px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.search-empty-desc { color: #64748b; margin-bottom: 20px; }
.search-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.search-contact-btn:hover { background: #1d4ed8; }

/* Mobile search result cards */
.search-result-mobile-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
.search-card-path {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
}

/* 搜索结果响应式显示：桌面端显示表格，移动端显示卡片 */
/* 默认：移动端卡片容器隐藏；显隐完全由 search.js 通过 inline style 控制 */
#search-results-mobile {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}
@media (max-width: 768px) {
    /* 移动端：隐藏表格式结果 */
    #search-results-desktop {
        display: none !important;
    }
    /* #search-results-mobile 的显隐不在此处用 !important 强制，
       避免覆盖 search.js 的 hideSearchResults() 设置的 display:none */
}
