/* ==========================================================================
   Indexfox 全站通用样式表 v3（2026-09-24 CSS 全量收编与修复）
   ========================================================================== */

:root {
    --if-primary: #1a365d; /* 权威深邃蓝 */
    --if-primary-dark: #122643;
    --if-accent: #d97706;  /* 尊贵暗金色 */
    --if-accent-hover: #b45f06;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body { font-family: 'Montserrat', sans-serif; color: var(--text-main); background-color: var(--bg-light); }
a { color: var(--if-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--if-accent); }

/* ----- 辅助辅助类（替换 HTML 行内 style） ----- */
.text-accent { color: var(--if-accent) !important; }
.trust-bar-icon { color: var(--if-accent); }
.product-aspect-ratio { aspect-ratio: 4/3 !important; object-fit: cover; }
.supplier-cover-img { height: 160px; object-fit: cover; }
.verified-factory-overlay { background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.sponsored-suppliers-box { z-index: 2; }
.supplier-label-sm { font-size: 0.75rem; }

/* ----- 导航栏 ----- */
.navbar { background-color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.navbar-brand { font-weight: 800; color: var(--if-primary) !important; font-size: 1.5rem; letter-spacing: -0.5px; }
.nav-link { font-weight: 600; color: var(--text-main) !important; display: flex; align-items: center; gap: 6px; }
.nav-link:hover { color: var(--if-primary) !important; }
.btn-accent { background-color: var(--if-accent); color: white; font-weight: 700; transition: transform 0.2s; border: none; }
.btn-accent:hover { background-color: var(--if-accent-hover); color: white; transform: translateY(-1px); }

/* ----- 首页 Hero 搜索区 ----- */
.hero-section {
    /* 1. 底色与微光渐变 */
    background-color: var(--if-primary-dark);
    background-image: 
        /* 2. 模拟微光的径向渐变 */
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.25) 0%, transparent 60%),
        
        /* 3. 极简工业网格底纹 (替代传统图片) */
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    
    /* 网格的尺寸，30px 一个格子 */
    background-size: 100% 100%, 30px 30px, 30px 30px;
    background-position: center top;
    
    padding: 100px 0 160px;
    color: #fff;
    text-align: center;
}
.hero-tag { font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; color: var(--if-accent); text-transform: uppercase; margin-bottom: 1rem; display: inline-block; }
.hero-title { font-weight: 800; font-size: 3rem; letter-spacing: -0.02em; max-width: 900px; margin-left: auto; margin-right: auto; margin-bottom: 1rem; }
.hero-desc { font-size: 1.15rem; color: #cbd5e1; margin-bottom: 3rem; font-weight: 400; max-width: 800px; margin-left: auto; margin-right: auto; }

.search-panel {
    background: #fff; padding: 6px; border-radius: 8px; max-width: 850px;
    margin: 0 auto; display: flex; align-items: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}
.search-panel select { width: 140px; border: none; border-right: 1px solid var(--border-color); font-weight: 600; color: var(--text-muted); cursor: pointer; }
.search-panel select:focus { outline: none; box-shadow: none; }
.search-panel input { border: none; box-shadow: none; font-size: 1.05rem; padding: 14px 20px; font-weight: 500; flex-grow: 1; }
.search-panel input:focus { outline: none; box-shadow: none; }
.btn-search { background-color: var(--if-accent); color: #fff; border-radius: 6px; padding: 12px 35px; font-weight: 700; font-size: 1.1rem; border: none; }
.btn-search:hover { background-color: var(--if-accent-hover); color: white; }

/* 首页 Hero 区信任胶囊 */
.hero-trust-badges { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-badge { 
    font-size: 0.9rem; color: #f8fafc; display: flex; align-items: center; gap: 8px; font-weight: 600; 
    background: rgba(255,255,255,0.1); padding: 8px 18px; border-radius: 50px; backdrop-filter: blur(4px); 
    border: 1px solid rgba(255,255,255,0.2); transition: all 0.3s ease;
}
.hero-badge:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ----- 数据趋势区 (悬浮效果) ----- */
.trend-section { margin-top: -80px; position: relative; z-index: 10; }
.trending-now-label { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 15px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.pulsing-dot { width: 10px; height: 10px; background-color: #ef4444; border-radius: 50%; box-shadow: 0 0 0 rgba(239, 68, 68, 0.7); animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.badge-trend { background-color: #d1fae5; color: #047857; font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; }

/* ----- 信任数据条 ----- */
.trust-bar { background-color: #fff; border-bottom: 1px solid var(--border-color); padding: 25px 0; font-weight: 700; font-size: 1.1rem; color: var(--if-primary); }

/* ----- 通用排版 ----- */
.section-title { font-weight: 800; font-size: 1.25rem; color: var(--if-primary); margin-bottom: 1.5rem; border-bottom: 2px solid var(--bg-light); padding-bottom: 10px; }
.section-title-lg { font-size: 1.5rem; color: var(--if-primary-dark); padding-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }

.if-card { background: #fff; border-radius: 12px; border: 1px solid var(--border-color); transition: all 0.3s ease; }
.if-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }

/* 面包屑 */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 0; font-size: 0.9rem; font-weight: 500; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item { display: inline-flex; align-items: center; white-space: normal; max-width: none; overflow: visible; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; padding-left: 0.5rem; padding-right: 0.5rem; color: var(--text-muted); }

.sidebar-sticky { position: sticky; top: 100px; z-index: 10; }
.sidebar-sticky-tight { top: 30px; }
.sidebar-widget { background: #f8fafc; border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; margin-bottom: 1.5rem; position: sticky; top: 100px; }

/* ----- 首页类目网格 (修复：对齐与间距) ----- */
.category-card { padding: 2rem 1.5rem; height: 100%; display: block; }
.category-icon { 
    color: var(--if-primary); 
    margin-bottom: 0; /* 清除底部外边距，确保与标题水平对齐 */
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: transform 0.3s; 
    flex-shrink: 0;
}
.category-icon svg { width: 24px; height: 24px; flex-shrink: 0; display: block; }
.category-card:hover .category-icon { transform: scale(1.1); color: var(--if-accent); }
.category-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.4; font-weight: 400; }

/* ----- 首页产业带探索区 ----- */
.cluster-card { display: block; border-radius: 12px; overflow: hidden; position: relative; height: 280px; }
.cluster-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.cluster-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(26,54,93,0.05) 0%, rgba(26,54,93,0.95) 100%); }
.cluster-card:hover .cluster-bg { transform: scale(1.05); }
.cluster-content { position: absolute; bottom: 0; left: 0; padding: 24px; color: #fff; width: 100%; }
.factory-tag { background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }

/* ----- WHO/WHAT/WHY (修复：背景装饰与网格效果) ----- */
.www-section { 
    background-color: var(--if-primary); 
    background-image: 
        radial-gradient(circle at 85% 15%, rgba(217, 119, 6, 0.15) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    color: white; 
    padding: 3.5rem 0; 
    position: relative;
}
.www-box { padding: 0 1.5rem; }
.www-title { font-weight: 800; font-size: 1.1rem; letter-spacing: 1px; color: var(--if-accent); margin-bottom: 0.75rem; }
.www-text { font-size: 0.95rem; color: #cbd5e1; line-height: 1.6; }

/* ----- 文章调用区 ----- */
.insight-item { border-left: 3px solid transparent; transition: all 0.2s; padding-left: 1rem; }
.insight-item:hover { border-left-color: var(--if-accent); background: #f1f5f9; }

/* 尾部社交图标特效 */
.social-icon-link { color: rgba(255,255,255,0.5); transition: color 0.2s; display: inline-block; }
.social-icon-link:hover { color: #fff; }

/* =========================================
   Clusters 产业带页面
========================================= */
.page-hero { background: linear-gradient(135deg, var(--if-primary) 0%, #122643 100%); padding: 70px 0; color: white; text-align: center; }
.page-hero h1 { font-weight: 800; margin-bottom: 1rem; font-size: 2.8rem; letter-spacing: -0.5px; }

.concept-section { background-color: #fff; border-bottom: 1px solid #e2e8f0; padding: 3rem 0; }
.concept-icon { color: var(--if-accent); margin-bottom: 1rem; }
.concept-title { font-weight: 700; color: var(--if-primary); font-size: 1.1rem; }

.cluster-card-vertical {
    position: relative; background: #fff; border-radius: 12px; border: 1px solid #e2e8f0;
    overflow: hidden; transition: all 0.3s; height: 100%; display: flex; flex-direction: column;
}
.cluster-card-vertical:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.cluster-img-top { height: 220px; background-size: cover; background-position: center; position: relative; }

.product-tag-link { display: inline-block; background: #f1f5f9; color: var(--if-primary); font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 4px; margin: 0 6px 8px 0; border: 1px solid #e2e8f0; transition: all 0.2s; }
.product-tag-link:hover { background: var(--if-primary); color: #fff; }

.rep-factory-box { background: #f8fafc; border-top: 1px solid #e2e8f0; padding: 16px 24px; font-size: 0.85rem; margin-top: auto; }
.factory-item { color: var(--text-muted); font-weight: 500; display: block; margin-bottom: 6px; }
.factory-item:hover { color: var(--if-accent); }
.factory-item:last-child { margin-bottom: 0; }

.niche-hub-section { background-color: #fff; border-top: 1px solid #e2e8f0; padding: 4rem 0 5rem; }
.niche-item { border-left: 2px solid #e2e8f0; padding-left: 1rem; margin-bottom: 1.5rem; transition: border-color 0.2s; }
.niche-item:hover { border-left-color: var(--if-accent); }

.detail-hero { 
    background: linear-gradient(rgba(26,54,93,0.85), rgba(18,38,67,0.95)), 
        url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: cover, auto; background-position: center; padding: 3rem 0; color: white; 
}
.stat-divider { border-right: 1px solid rgba(255,255,255,0.15); }
.content-box { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 2.5rem; margin-bottom: 2.5rem; }

.supplier-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.5rem; transition: all 0.3s; margin-bottom: 1.5rem; display: block; }
.supplier-card:hover { border-color: #cbd5e1; box-shadow: 0 12px 24px rgba(0,0,0,0.06); transform: translateY(-3px); }
.supplier-header { border-bottom: 1px dashed #e2e8f0; padding-bottom: 1rem; margin-bottom: 1rem; }

.factory-name { font-weight: 800; font-size: 1.25rem; color: var(--if-primary); margin-bottom: 0.5rem; }
.factory-name a { color: var(--if-primary); }
.factory-name a:hover { color: var(--if-accent); text-decoration: underline; }

.tag-verify { background: #eef2ff; color: #4338ca; font-size: 0.8rem; padding: 4px 12px; border-radius: 6px; font-weight: 700; border: 1px solid #c7d2fe; display: inline-flex; align-items: center; gap: 4px; }
.tag-year { display: inline-block; background: #fef3c7; color: #d97706; font-size: 0.75rem; font-weight: 800; padding: 4px 8px; border-radius: 4px; border: 1px solid #fde68a; }

.product-img-box { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 0.5rem; }
.sidebar-wrapper { position: sticky; top: 100px; z-index: 10; }

.cluster-search-box { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; padding: 1.5rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.cluster-search-box input { border-radius: 6px 0 0 6px; border: 1px solid #cbd5e1; box-shadow: none !important; font-size: 0.9rem; }
.cluster-search-box button { border-radius: 0 6px 6px 0; background: var(--if-primary); color: #fff; border: none; font-weight: 700; padding: 0 1rem; }
.cluster-search-box button:hover { background: var(--if-primary-dark); }

.rfq-promo-box {
    background: linear-gradient(135deg, var(--if-primary) 0%, var(--if-primary-dark) 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L0 20M-5 5L5 -5M15 25L25 15' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.05'/%3E%3C/svg%3E"), linear-gradient(135deg, var(--if-primary) 0%, var(--if-primary-dark) 100%);
    border-radius: 12px; padding: 2rem 1.5rem; text-align: center; color: #fff;
    box-shadow: 0 10px 25px rgba(26,54,93,0.15); border: 1px solid #334155;
}
.rfq-promo-box .btn-accent { font-size: 1.05rem; padding: 0.75rem; border-radius: 8px; }

/* =========================================
   Suppliers 频道页
========================================= */
.channel-hero { background: linear-gradient(135deg, var(--if-primary-dark), var(--if-primary)); color: white; padding: 4rem 0; text-align: center; }
.channel-search-box { background: white; padding: 8px; border-radius: 50px; display: flex; max-width: 600px; margin: 0 auto; }
.channel-search-box input { border: none; outline: none; padding: 10px 20px; flex-grow: 1; border-radius: 50px 0 0 50px; }
.channel-search-box button { background: var(--if-accent); color: white; border: none; padding: 10px 25px; border-radius: 50px; font-weight: bold; transition: opacity 0.2s; }
.channel-search-box button:hover { opacity: 0.9; }

.industry-card { background: #fff; border: 1px solid var(--border-color); border-top: 4px solid var(--if-primary); border-radius: 8px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.industry-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-top-color: var(--if-accent); }
.industry-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.industry-title { font-size: 1.2rem; font-weight: 800; color: var(--if-primary-dark); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 8px; line-height: 1.3;}
.industry-title svg { color: var(--if-accent); flex-shrink: 0; }

.capability-list { list-style: none; padding-left: 0; margin-bottom: 1.2rem; }
.capability-list li { margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.85rem; display: flex; align-items: flex-start; gap: 6px; line-height: 1.4; }
.capability-list li svg { width: 14px; height: 14px; color: var(--if-accent); flex-shrink: 0; margin-top: 2px; }

.cat-supplier-link { display: block; font-size: 0.85rem; color: var(--text-main); text-decoration: none; padding: 6px 0; border-bottom: 1px dashed var(--border-color); overflow: hidden; transition: color 0.2s; }
.cat-supplier-link:last-child { border-bottom: none; }
.cat-supplier-link:hover { color: var(--if-primary); }
.cat-supplier-link svg { width: 14px; height: 14px; color: var(--text-muted); margin-right: 4px; vertical-align: text-bottom; }
.cat-supplier-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-supplier-meta { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.prov-box { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; height: 100%; transition: box-shadow 0.2s; }
.prov-box:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.prov-title { font-size: 1.1rem; font-weight: 800; color: var(--if-primary-dark); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 12px; }
.city-tag { display: inline-block; background: var(--bg-light); color: var(--text-main); text-decoration: none; font-size: 0.85rem; padding: 6px 12px; border-radius: 6px; margin: 0 8px 8px 0; border: 1px solid var(--border-color); transition: all 0.2s; }
.city-tag:hover { background: var(--if-primary); color: white; border-color: var(--if-primary); }

.join-cta-section { background: linear-gradient(to right, var(--if-primary-dark), var(--if-primary)); color: white; border-radius: 16px; padding: 3rem; overflow: hidden; }
.priority-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); padding: 6px 12px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.2); }

/* =========================================
   供应商列表页
========================================= */
.page-header { background: #fff; padding: 2.5rem 0; }
.page-title { font-weight: 800; color: var(--if-primary-dark); font-size: 2.2rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }

.filter-sidebar { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; position: sticky; top: 90px; }
.filter-group { border-bottom: 1px solid var(--border-color); padding: 1.25rem 0; }
.filter-group:last-child { border-bottom: none; }
.filter-group:first-child { padding-top: 0; }
.filter-title { font-weight: 700; font-size: 1.05rem; color: var(--if-primary-dark); margin-bottom: 1rem; display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.filter-title svg { flex-shrink: 0; color: var(--if-primary); }

.filter-item { display: flex; align-items: center; margin-bottom: 0.75rem; }
.filter-item input[type="checkbox"] { flex-shrink: 0; margin: 0 10px 0 0; width: 16px; height: 16px; cursor: pointer; }
.filter-item label { display: flex; justify-content: space-between; align-items: center; flex-grow: 1; margin: 0; font-size: 0.9rem; color: var(--text-main); cursor: pointer; line-height: 1.2; }
.filter-item label:hover { color: var(--if-primary); }
.filter-count { color: var(--text-muted); font-size: 0.8rem; font-weight: normal; margin-left: 4px; }

.recent-supplier-item { padding: 10px 0; border-bottom: 1px dashed var(--border-color); }
.recent-supplier-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-supplier-title { font-size: 0.85rem; font-weight: 700; color: var(--text-main); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; transition: color 0.2s; }
.recent-supplier-title:hover { color: var(--if-primary); }
.recent-supplier-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.list-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.result-count { font-weight: 700; color: var(--if-primary-dark); font-size: 1.1rem; }

.supplier-list-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 1.5rem; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.supplier-list-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); border-color: #cbd5e1; }
@media (min-width: 992px) {
    .supplier-list-card { flex-direction: row; }
    .supplier-info-col { flex: 0 0 60%; padding: 2rem; border-right: 1px dashed var(--border-color); }
    .supplier-products-col { flex: 0 0 40%; padding: 2rem; background: #f8fafc; }
}
@media (max-width: 991px) {
    .supplier-info-col { padding: 1.5rem; border-bottom: 1px dashed var(--border-color); }
    .supplier-products-col { padding: 1.5rem; background: #f8fafc; }
}

.supplier-list-card .factory-name { font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.supplier-list-card .factory-name a { color: var(--if-primary-dark); transition: color 0.2s; }
.supplier-list-card .factory-name a:hover { color: var(--if-primary); }
.supplier-list-card .tag-verify { background: #eff6ff; color: #2563eb; font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; border-color: #bfdbfe; }

.meta-list { list-style: none; padding-left: 0; margin-top: 1.5rem; margin-bottom: 0; }
.meta-list li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-main); margin-bottom: 0.5rem; }
.meta-list li svg { color: var(--text-muted); flex-shrink: 0; }

.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.product-item { display: block; text-decoration: none; border: 1px solid transparent; border-radius: 8px; transition: all 0.2s; }
.product-item:hover { border-color: var(--border-color); background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.product-item img { width: 100%; height: 130px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-color); margin-bottom: 0.5rem; }
.product-name { font-size: 0.8rem; font-weight: 600; color: var(--text-main); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.product-item:hover .product-name { color: var(--if-primary); }

.pagination .page-link { color: var(--text-main); font-weight: 600; border-color: var(--border-color); }
.pagination .page-item.active .page-link { background-color: var(--if-primary); border-color: var(--if-primary); color: #fff; }

/* =========================================
   供应商详情页
========================================= */
.supplier-hero {
    background: linear-gradient(rgba(26, 54, 93, 0.9), rgba(18, 38, 67, 0.97));
    background-size: cover; background-position: center; position: relative; padding: 3rem 0 3rem; color: #fff;
}
.supplier-hero .tag-verify { background: rgba(37, 99, 235, 0.2); color: #60a5fa; border-color: rgba(59, 130, 246, 0.4); font-size: 0.8rem; padding: 6px 12px; border-radius: 4px; }
.supplier-hero .tag-year { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border-color: rgba(245, 158, 11, 0.4); font-size: 0.8rem; font-weight: 700; padding: 6px 12px; }

.hero-metrics { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 2rem 1.5rem 1.5rem; margin-top: 2.5rem; }
.metric-item { text-align: center; padding: 0 1rem; border-right: 1px solid rgba(255,255,255,0.1); }
.metric-item:last-child { border-right: none; }
.metric-val { font-size: 1.25rem; font-weight: 800; color: #fcd34d; margin-bottom: 4px; }
.metric-lbl { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; }

.identity-box { background-color: #f8fafc; border: 1px solid #e2e8f0; }
.font-monospace { font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.cert-badge-card { display: flex; align-items: flex-start; gap: 15px; padding: 1.25rem; border: 1px solid var(--border-color); border-radius: 8px; background: #fafafa; }
.cert-badge-card svg { flex-shrink: 0; margin-top: 2px; }
.cert-title { font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }

.product-hover-card { transition: transform 0.2s, box-shadow 0.2s; }
.product-hover-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important; border-color: var(--if-primary) !important; }

.contact-field { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border-color); font-size: 0.95rem; }
.contact-field:last-child { border-bottom: none; }
.contact-label { color: var(--text-muted); font-weight: 600; }

.claim-alert-box { background-color: #fef3c7; color: #92400e; border: 1px solid #fde68a; padding: 1rem; border-radius: 8px; font-size: 0.95rem; font-weight: 500; line-height: 1.5; margin-top: 1rem; margin-bottom: 1rem; }
.btn-claim-listing { background-color: #d97706; color: white; border: none; padding: 12px 20px; border-radius: 6px; font-weight: 700; font-size: 1.05rem; width: 100%; transition: background-color 0.2s; display: block; text-align: center; text-decoration: none; }
.btn-claim-listing:hover { background-color: #b45309; color: white; text-decoration: none; }

/* =========================================
   产品详情页
========================================= */
.product-hero-section { background: #fff; padding: 3rem 0; border-bottom: 1px solid var(--border-color); }
.main-img-box { border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-light); margin-bottom: 12px; }
.main-img-box img { width: 100%; height: 100%; object-fit: cover; }

.thumbnail-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbnail-row::-webkit-scrollbar { height: 4px; }
.thumbnail-row::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.thumb-box { width: 80px; height: 80px; border: 1px solid var(--border-color); border-radius: 8px; flex-shrink: 0; cursor: pointer; transition: border-color 0.2s; overflow: hidden; }
.thumb-box:hover, .thumb-box.active { border-color: var(--if-primary); border-width: 2px; }
.thumb-box img { width: 100%; height: 100%; object-fit: cover; }

.product-title { 
    font-weight: 800; font-size: 1.75rem; color: var(--text-main); line-height: 1.4; 
    margin-bottom: 1.25rem; text-align: left !important; white-space: normal !important; 
    word-wrap: break-word; overflow-wrap: break-word;
}

.mfg-specs-box { background: var(--bg-light); border-radius: 8px; padding: 1.5rem; border: 1px solid var(--border-color); }
.spec-row { display: flex; align-items: flex-start; margin-bottom: 0.85rem; font-size: 0.95rem; }
.spec-row:last-child { margin-bottom: 0; }
.spec-label { color: var(--text-muted); font-weight: 600; width: 160px; flex-shrink: 0; }
.spec-value { color: var(--text-main); font-weight: 700; }

.detail-section { padding: 4rem 0; }
.technical-table th { background: var(--bg-light); width: 30%; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.technical-table td { font-size: 0.95rem; font-weight: 500; color: var(--text-main); }

.factory-list-item { border: 1px solid var(--border-color); border-radius: 8px; padding: 1.25rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; transition: border-color 0.2s; }
.factory-list-item:hover { border-color: var(--if-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.factory-info h4 { font-weight: 800; font-size: 1.05rem; color: var(--if-primary); margin-bottom: 6px; }
.factory-tags { display: flex; gap: 8px; align-items: center; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }
.f-cluster { color: var(--if-accent); }
.btn-view-factory { font-size: 0.85rem; font-weight: 700; border: 1px solid var(--border-color); background: #fff; color: var(--text-main); padding: 8px 16px; border-radius: 6px; transition: all 0.2s; }
.btn-view-factory:hover { border-color: var(--if-primary); color: var(--if-primary); background: var(--bg-light); }

.rfq-sidebar { position: sticky; top: 100px; }
.rfq-form-box { background: linear-gradient(135deg, var(--if-primary) 0%, var(--if-primary-dark) 100%); border-radius: 12px; padding: 2rem; color: #fff; box-shadow: 0 15px 30px rgba(26,54,93,0.15); border: 1px solid #334155; }
.rfq-header { margin-bottom: 1.5rem; text-align: center; }
.rfq-header h4 { font-weight: 800; font-size: 1.35rem; margin-bottom: 0.5rem; }
.rfq-header p { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 0; }

.btn-submit-rfq { background-color: var(--if-accent); color: #fff; font-weight: 800; border: none; width: 100%; padding: 16px; border-radius: 8px; font-size: 1.1rem; margin-top: 1rem; transition: background 0.2s; text-align: center; display: block; text-decoration: none !important; }
.btn-submit-rfq:hover { background-color: var(--if-accent-hover); color: #fff; }

.trust-badges { margin-top: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 1rem; border-top: 1px dashed rgba(255,255,255,0.15); padding-top: 1.5rem; }
.t-badge { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-size: 0.7rem; 
    font-weight: 600; 
    color: rgba(255,255,255,0.6); 
    text-transform: uppercase; 
}
.t-badge svg { color: #cbd5e1; }

/* =========================================
   产品目录页 /products/
========================================= */
.directory-card { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.directory-card:hover { border-color: var(--if-primary); box-shadow: 0 8px 16px rgba(0,0,0,0.06); transform: translateY(-2px); }
.directory-title { font-size: 1.1rem; font-weight: 800; color: var(--if-primary-dark); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--bg-light); display: flex; align-items: center; gap: 8px; }
.directory-title svg { color: var(--if-accent); width: 18px; height: 18px; flex-shrink: 0; }
/* ---------------- 替换为以下新代码 ---------------- */
.subcategory-list { 
    list-style: none; 
    padding-left: 0; 
    margin-bottom: 0; 
    display: flex;         /* 启用弹性盒子 */
    flex-wrap: wrap;       /* 允许自动换行 */
    gap: 8px 16px;         /* 上下间距 8px，左右间距 16px */
}
.subcategory-list li { 
    margin-bottom: 0;      /* 移除旧的下边距，由 gap 接管 */
}
.subcategory-link { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 500; 
    display: inline-flex;  /* 改为 inline-flex 使文本宽度自适应 */
    align-items: center; 
    gap: 4px; 
    transition: color 0.2s; 
}
/* -------------------------------------------------- */
.subcategory-link:hover { color: var(--if-primary); }
.subcategory-link svg { width: 14px; height: 14px; opacity: 0.5; }

.product-card { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: all 0.2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); border-color: #cbd5e1; }
.pd-img-wrap { position: relative; aspect-ratio: 4/3; background: #f1f5f9; overflow: hidden; border-bottom: 1px solid var(--border-color); }
.pd-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.pd-body { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.pd-title { font-size: 0.95rem; font-weight: 500; line-height: 1.4; }
.pd-title a { color: var(--text-main); text-decoration: none; transition: color 0.2s; }
.pd-title a:hover { color: var(--if-primary); }

.pd-supplier-meta { background: #f8fafc; border-radius: 6px; padding: 12px 14px; margin-top: auto; border: 1px solid var(--border-color); }
.pd-supplier-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 8px; border-bottom: 1px solid var(--border-color); padding-bottom: 6px; }
.supplier-list-item { padding: 8px 0; border-bottom: 1px dashed var(--border-color); }
.supplier-list-item:last-child { padding-bottom: 0; border-bottom: none; }
.supplier-name-link { font-size: 0.85rem; font-weight: 700; color: var(--if-primary); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; text-decoration: none; }
.supplier-name-link:hover { text-decoration: underline; }
.pd-icon-line { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; }
.pd-icon-line.cluster-line { color: var(--text-muted); }
.pd-icon-line.cluster-line svg { color: var(--if-accent); }
.pd-icon-line.audit-line { color: #4338ca; font-weight: 600; margin-left: 8px; }
.badge-vip { color: var(--if-accent); font-size: 0.7rem; font-weight: 700; margin-left: 4px; display: inline-flex; align-items: center; gap: 2px; }

.products-directory .sidebar-widget { position: static; background: #fff; border-radius: 10px; padding: 1.5rem; }
.widget-title { font-weight: 800; font-size: 1.05rem; color: var(--if-primary); margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.category-search-box .form-control { border-color: var(--border-color); font-size: 0.95rem; padding: 12px 15px; box-shadow: none; background: var(--bg-light); border-radius: 6px; }
.category-search-box .form-control:focus { border-color: var(--if-primary); background: #fff; }
.products-directory .btn-search { background-color: var(--if-primary); color: #fff; font-weight: 600; border-radius: 6px; padding: 10px 0; width: 100%; border: none; margin-top: 10px; }
.rfq-box { background: #fff; border: 2px solid var(--if-primary); text-align: center; padding: 2rem 1.5rem; }
.rfq-box h5 { font-weight: 800; color: var(--if-primary); font-size: 1.15rem; margin-bottom: 0.8rem; }
.btn-rfq { background-color: var(--if-accent); color: #fff; font-weight: 700; border-radius: 6px; padding: 10px 0; width: 100%; border: none; }

/* =========================================
   Insights 栏目
========================================= */
.insights-header { background: #f8fafc; padding: 4rem 0 3rem; border-bottom: 1px solid var(--border-color); }
.insights-title { font-weight: 800; color: var(--if-primary-dark); font-size: 2.5rem; letter-spacing: -0.02em; }
.category-nav { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.category-pill { padding: 8px 20px; border-radius: 50px; font-size: 0.95rem; font-weight: 600; color: var(--text-muted); text-decoration: none; background: white; border: 1px solid var(--border-color); white-space: nowrap; transition: all 0.2s; }
.category-pill:hover, .category-pill.active { background: var(--if-primary); color: white; border-color: var(--if-primary); }

.article-card { background: white; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; height: 100%; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); }
.article-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--border-color); }
.article-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-img-wrap img { transform: scale(1.05); }
.article-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.article-meta .category-tag { color: var(--if-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.article-title { font-size: 1.25rem; font-weight: 800; line-height: 1.4; margin-bottom: 1rem; }
.article-title a { color: var(--if-primary-dark); text-decoration: none; transition: color 0.2s; }
.article-title a:hover { color: var(--if-primary); }
.article-summary { color: var(--text-main); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 1rem; }
.read-more { font-size: 0.9rem; font-weight: 700; color: var(--if-primary); text-decoration: none; }
.read-more:hover { text-decoration: underline; }

.article-header { padding: 4rem 0 3rem; background: #fff; border-bottom: 1px solid var(--border-color); }
.article-meta-top { display: flex; align-items: center; justify-content: center; gap: 15px; font-size: 0.9rem; color: var(--text-muted); font-weight: 600; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.article-meta-top .cat-link { color: var(--if-accent); text-decoration: none; }
.article-meta-top .cat-link:hover { text-decoration: underline; }
.article-h1 { font-size: 2.5rem; font-weight: 800; color: var(--if-primary-dark); line-height: 1.3; margin-bottom: 2rem; max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.article-author-bar { display: flex; align-items: center; justify-content: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; background: var(--if-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.article-hero-img { width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); margin-top: -3rem; position: relative; z-index: 10; margin-bottom: 4rem; }

.article-content { font-size: 1.1rem; line-height: 1.8; color: #334155; }
.article-content h2, .article-content h3 { color: var(--if-primary-dark); font-weight: 700;margin-bottom: 1rem; }
.article-content p { margin-bottom: 1.5rem; }
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }

/* =========================================
   首页专属：采购优势模块 (设计与间距修复)
========================================= */
.procurement-section {
    background-color: #f8fafc;
    background-image: 
        linear-gradient(rgba(203, 213, 225, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(203, 213, 225, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 2.5rem 0;  /* 缩小上下边距 */
    margin: 2.5rem 0;
}
.procurement-header {
    border-bottom: 1px solid rgba(203, 213, 225, 0.5);
    padding-bottom: 0.5rem; /* 缩小标题下方边距 */
    margin-bottom: 1.25rem; /* 缩小与下侧卡片的距离 */
}
.procurement-header h2 {
    font-weight: 800;
    color: var(--if-primary-dark);
    font-size: 1.5rem; /* 微调标题字号与整体协调 */
}
.procurement-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 1.5rem 1.5rem; /* 缩小卡片内边距 */
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.procurement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
    background: #ffffff;
}
.procurement-card h5 {
    color: var(--if-primary-dark);
    letter-spacing: -0.2px;
}
.hover-text-primary:hover { color: var(--if-primary) !important; }
/* ----- 关键词内链（2026-09-26 内链库注入样式） ----- */
.inline-kw-link {
    color: var(--if-primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--if-primary);
    padding-bottom: 1px;
    transition: opacity 0.2s;
}
.inline-kw-link:hover { opacity: 0.7; }
.inline-kw-link svg { margin-left: 2px; opacity: 0.65; }

/* ----- 面包屑强制一行 + 末端自动截断（2026-09-27） -----
   适用全站所有 .breadcrumb：中间层级（Home / Clusters 等）保持完整不收缩，
   仅当前页（.active）在空间不足时收缩并以省略号截断，不再换行错位 */
.breadcrumb {
    flex-wrap: nowrap;
    max-width: 100%;
}
.breadcrumb-item {
    white-space: nowrap;
    flex-shrink: 0; /* 中间层级不收缩，分隔符不被挤压 */
}
.breadcrumb-item.active {
    flex-shrink: 1;
    min-width: 0;
    display: block; /* 覆盖 Bootstrap 默认 flex，使 text-overflow 生效 */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ----- 供应商 hero 指标区：窄屏一行一个（2026-09-27） -----
   桌面 ≥768px 保持 4 列均分不变；窄屏纵向堆叠，分隔线从右侧改为底部 */
@media (max-width: 767.98px) {
    .hero-metrics { padding: 0.5rem 1rem; margin-top: 1.75rem; }
    .metric-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 0.85rem 0;
    }
    .metric-item:last-child { border-bottom: none; }
}

/* ================= 2026-10-06 供应商列表 TABS（仅 /primary_category/ 列表页使用） ================= */
.supplier-sort-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.supplier-sort-tabs .sort-tab {
    flex: 0 0 auto;
    border: 1px solid var(--border-color, #e5e7eb);
    background: #fff;
    color: var(--text-main, #1f2937);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}
.supplier-sort-tabs .sort-tab:hover {
    border-color: var(--if-primary);
    color: var(--if-primary);
}
.supplier-sort-tabs .sort-tab.active {
    background: var(--if-primary);
    border-color: var(--if-primary);
    color: #fff;
}
.tab-note {
    font-size: 0.8rem;
    color: #6b7280;
}
