/* =========================================
   【产品列表页】专属 CSS (Product Catalog)
   维护记录：已彻底剥离所有全局冗余代码，清空内联样式，深度适配移动端
========================================= */

/* --- 1. 顶部 Banner 与面包屑 --- */
.page-banner { background-color: var(--auth-blue-dark, #172554); padding: 60px 0 40px; color: var(--white, #ffffff); border-bottom: 4px solid var(--warn-yellow, #f59e0b); }
.page-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; }
.page-desc { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 25px; max-width: 800px; line-height: 1.6; }
.breadcrumbs { font-size: 0.9rem; color: #94a3b8; }
.breadcrumbs a { color: #cbd5e1; transition: var(--transition, all 0.3s ease); text-decoration: none; }
.breadcrumbs a:hover { color: var(--warn-yellow, #f59e0b); }
.breadcrumbs span { color: var(--warn-yellow, #f59e0b); font-weight: 700; }

/* --- 2. 主体布局 --- */
.catalog-layout { 
    display: grid; 
    grid-template-columns: 280px 1fr; 
    gap: 40px; 
    align-items: start; 
    
    /* 核心修复：拆分 padding，绝对不破坏 .container 的左右安全保护带 */
    padding-top: 60px; 
    padding-bottom: 100px; 
}

/* 依然保留这个防撑破的安全带，确保万无一失 */
.catalog-content {
    min-width: 0; 
}
/* --- 3. 左侧边栏 (吸顶导航 & 转化卡片) --- */
.sidebar { display: flex; flex-direction: column; gap: 30px; position: sticky; top: 110px; z-index: 99; }
.sidebar-title { background-color: var(--auth-blue, #1e3a8a); color: var(--white, #ffffff); padding: 18px 20px; font-size: 1.15rem; font-weight: 900; border-radius: 8px 8px 0 0; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; margin: 0; }
.sidebar-menu { list-style: none; margin: 0; padding: 0; background-color: var(--white, #ffffff); border: 1px solid var(--border-color, #e2e8f0); border-top: none; border-radius: 0 0 8px 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.02); overflow: hidden; }
.sidebar-menu a { display: block; padding: 16px 20px; color: var(--text-main, #1e293b); font-weight: 500; font-size: 0.95rem; border-bottom: 1px solid var(--bg-gray, #f1f5f9); transition: var(--transition, all 0.3s ease); position: relative; text-decoration: none; }
.sidebar-menu a:last-child { border-bottom: none; }
.sidebar-menu a:hover, .sidebar-menu a.active { background-color: var(--bg-light, #f8fafc); color: var(--auth-blue, #1e3a8a); padding-left: 26px; font-weight: 700; }
.sidebar-menu a.active { font-weight: 800; background-color: rgba(30, 58, 138, 0.03); }
.sidebar-menu a.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background-color: var(--warn-yellow, #f59e0b); box-shadow: 2px 0 8px rgba(245, 158, 11, 0.4); }

.sidebar-widget { background-color: var(--white, #ffffff); border: 1px solid var(--border-color, #e2e8f0); border-top: 4px solid var(--auth-blue, #1e3a8a); border-radius: 8px; padding: 35px 25px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: var(--transition, all 0.3s ease); }
.sidebar-widget:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(30, 58, 138, 0.08); border-color: rgba(30, 58, 138, 0.1); }
.sidebar-widget i.headset-icon { font-size: 2.2rem; color: var(--warn-yellow, #f59e0b); display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; margin: 0 auto 20px; background-color: rgba(245, 158, 11, 0.1); border-radius: 50%; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.sidebar-widget:hover i.headset-icon { transform: scale(1.1) rotate(-5deg); }
.sidebar-widget h4 { color: var(--auth-blue, #1e3a8a); font-weight: 900; font-size: 1.25rem; margin-bottom: 8px; margin-top: 0; letter-spacing: 0.5px; }
.sidebar-widget p { color: var(--text-light, #64748b); font-size: 0.9rem; margin-bottom: 20px; }
.sidebar-widget strong { font-size: 1.67rem; color: var(--auth-blue, #1e3a8a); font-weight: 900; letter-spacing: 1px; display: block; margin-bottom: 25px; font-family: Arial, Helvetica, sans-serif; }
.sidebar-widget .btn-cta { display: flex; justify-content: center; align-items: center; width: 100%; background-image: linear-gradient(135deg, #fbbf24 0%, var(--warn-yellow-hover, #d97706) 100%); color: var(--white, #ffffff); padding: 14px 0; border-radius: 6px; font-size: 1.05rem; font-weight: 800; text-decoration: none; border: none; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25); transition: var(--transition, all 0.3s ease); cursor: pointer; }
.sidebar-widget .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4); }

/* --- 4. 大厂级信任背书条 (替换原有的灯泡区块) --- */
.b2b-trust-bar { display: flex; align-items: center; justify-content: space-between; background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; padding: 25px 35px; margin-top: 0; margin-bottom: 35px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.trust-item { display: flex; align-items: center; gap: 18px; }
.trust-item i { font-size: 2.2rem; color: var(--warn-yellow, #f59e0b); }
.trust-text strong { display: block; font-size: 1.1rem; color: var(--auth-blue, #1e3a8a); margin-bottom: 5px; font-weight: 900; letter-spacing: 0.5px; }
.trust-text span { font-size: 0.85rem; color: var(--text-light, #64748b); }
.trust-divider { width: 1px; height: 45px; background-color: #cbd5e1; }

@media (max-width: 768px) {
    .b2b-trust-bar { flex-direction: column; gap: 20px; align-items: flex-start; padding: 20px; }
    .trust-divider { width: 100%; height: 1px; }
}

/* --- 5. 细分胶囊筛选条 --- */
.sub-category-filter { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px dashed var(--border-color, #e2e8f0); }
.filter-label { flex-shrink: 0; color: var(--text-main, #1e293b); font-weight: 800; font-size: 0.95rem; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.filter-pill { padding: 6px 20px; background-color: var(--white, #ffffff); border: 1px solid var(--border-color-dark, #cbd5e1); border-radius: 2px; font-size: 0.95rem; color: var(--text-light, #64748b); font-weight: 500; transition: var(--transition, all 0.3s ease); text-decoration: none; }
.filter-pill:hover { border-color: var(--auth-blue-dark, #172554); color: var(--auth-blue-dark, #172554); background-color: rgba(23, 37, 84, 0.03); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(23, 37, 84, 0.08); }
.filter-pill.active { background-color: var(--auth-blue-dark, #172554); color: var(--white, #ffffff); border-color: var(--auth-blue-dark, #172554); box-shadow: 0 4px 12px rgba(23, 37, 84, 0.25); pointer-events: none; font-weight: 700; }

/* --- 6. 产品卡片网格列表 --- */
.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* 缺省防破版样式 */
.empty-data-tips { grid-column: 1/-1; text-align: center; padding: 60px; color: #94a3b8; font-weight: bold; background: var(--white, #ffffff); border: 1px dashed var(--border-color, #e2e8f0); border-radius: 8px; font-size: 1.1rem;}
.empty-data-tips i { font-size: 3rem; margin-bottom: 15px; color: #cbd5e1; display: block; }

.list-card { background: var(--white, #ffffff); border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color, #e2e8f0); box-shadow: 0 5px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column; transition: var(--transition, all 0.3s ease); }
.list-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(30,58,138,0.1); border-color: rgba(30,58,138,0.2); }
.list-card-img { display: block; position: relative; height: 260px; background-color: #f1f5f9; overflow: hidden; }
.list-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.5s ease; display: block; border: none; }
.list-card:hover .list-card-img img { transform: scale(1.05); }

.list-card-info { padding: 25px; display: flex; flex-direction: column; flex: 1; }
.list-card-info h3 { font-size: 1.2rem; font-weight: 800; margin-top: 0; margin-bottom: 15px; line-height: 1.4; }
.list-card-info h3 a { color: var(--text-main, #1e293b); transition: color 0.3s; text-decoration: none; }
.list-card-info h3 a:hover { color: var(--auth-blue, #1e3a8a); }

.specs-list { list-style: none; margin: 0 0 25px 0; padding: 0; flex: 1; }
.specs-list li { font-size: 0.9rem; color: var(--text-light, #64748b); margin-bottom: 8px; line-height: 1.6; }
.specs-list li span { font-weight: 700; color: var(--text-main, #1e293b); }
.intro-text-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-overflow: ellipsis; white-space: normal; }

.list-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: auto; }
.list-actions .btn { padding: 10px 0; font-size: 0.95rem; border-radius: 4px; display: flex; justify-content: center; align-items: center; gap: 5px; }
.btn-outline { background: transparent; border: 1px solid var(--auth-blue, #1e3a8a); color: var(--auth-blue, #1e3a8a); }
.btn-outline:hover { background: var(--auth-blue, #1e3a8a); color: var(--white, #ffffff); }
/* --- 大厂级核心参数面板 (方案B) --- */
.product-hard-specs { 
    background-color: var(--bg-light, #f8fafc); 
    border: 1px solid var(--border-color, #e2e8f0); 
    border-radius: 4px; 
    padding: 15px; 
    margin-bottom: 25px; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    flex: 1; /* 撑开卡片高度对齐 */
}
.spec-item { 
    font-size: 0.95rem; 
    color: var(--text-main, #1e293b); 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    line-height: 1.5; 
}
.spec-item i { 
    color: var(--warn-yellow, #f59e0b); 
    font-size: 1rem; 
    margin-top: 3px; 
    flex-shrink: 0;
}
.spec-item span { 
    font-weight: 700; /* 让参数文字加粗，增强工业力量感 */
}
/* --- 7. 引导横幅与保障区块 --- */
.infeed-cta { background-image: linear-gradient(135deg, var(--auth-blue-dark, #172554) 0%, var(--auth-blue, #1e3a8a) 100%); border-radius: 8px; padding: 40px; color: var(--white, #ffffff); display: flex; justify-content: space-between; align-items: center; box-shadow: 0 10px 30px rgba(30, 58, 138, 0.15); margin-top: 40px; margin-bottom: 20px; }
.infeed-text h3 { font-size: 1.5rem; font-weight: 900; margin-top: 0; margin-bottom: 10px; color: var(--white, #ffffff); }
.infeed-text p { color: #cbd5e1; font-size: 0.95rem; max-width: 500px; line-height: 1.6; margin: 0; }

.bidding-support-block { margin-top: 50px; background: var(--white, #ffffff); border: 1px solid var(--border-color, #e2e8f0); border-radius: 8px; padding: 40px; box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
.bidding-header { text-align: center; margin-bottom: 40px; }
.bidding-header h3 { font-size: 1.6rem; color: var(--auth-blue, #1e3a8a); font-weight: 900; margin-top: 0; margin-bottom: 10px; }
.bidding-header h3 i { color: var(--warn-yellow, #f59e0b); margin-right: 10px; }
.bidding-header p { color: var(--text-light, #64748b); font-size: 1.05rem; margin: 0; }

.bidding-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.bidding-item { display: flex; gap: 20px; align-items: flex-start; }
.bidding-item i { font-size: 2.5rem; color: var(--warn-yellow, #f59e0b); margin-top: 5px; flex-shrink: 0; }
.b-text strong { display: block; font-size: 1.15rem; color: var(--text-main, #1e293b); font-weight: 800; margin-bottom: 5px; }
.b-text span { font-size: 0.95rem; color: var(--text-light, #64748b); line-height: 1.6; display: block; }

/* SDCMS 分页自适应兼容 */
.pagination { margin-top: 50px; }
.pagination ul { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.pagination li { display: block; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 15px; background: var(--white, #ffffff); border: 1px solid var(--border-color, #e2e8f0); border-radius: 4px; color: var(--text-main, #1e293b); font-weight: 700; transition: var(--transition, all 0.3s ease); text-decoration: none; }
.pagination a:hover { background: #f8fafc; color: var(--auth-blue, #1e3a8a); border-color: var(--auth-blue, #1e3a8a); }
.pagination .active, .pagination .active a, .pagination .current, .pagination .current a { background: var(--auth-blue, #1e3a8a) !important; color: var(--white, #ffffff) !important; border-color: var(--auth-blue, #1e3a8a) !important; }
.pagination .disabled, .pagination .disabled a { color: #cbd5e1 !important; pointer-events: none; background: #f8fafc !important; }

/* =========================================
   8. 移动端响应式适配 (Mobile Responsiveness)
========================================= */
@media (max-width: 1024px) {
    .catalog-layout { grid-template-columns: 1fr; padding-top: 40px; gap: 30px; }
    .sidebar { position: static; flex-direction: row; gap: 20px; }
    .sidebar > div { flex: 1; }
    .list-grid { grid-template-columns: repeat(2, 1fr); }
    .infeed-cta { flex-direction: column; text-align: center; gap: 25px; padding: 30px; }
    .bidding-features { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
    .catalog-layout { padding: 40px 15px; }
    .sidebar { flex-direction: column; gap: 20px; }
    
    .category-solution-intro { flex-direction: column; gap: 15px; padding: 20px; }
    .category-solution-intro i.fa-lightbulb { font-size: 2rem; }
    .category-solution-intro .intro-content h2 { font-size: 1.4rem; }

    .sub-category-filter { flex-direction: column; gap: 10px; padding-bottom: 15px; }
    .filter-label { margin-top: 0; }

    .list-grid { grid-template-columns: 1fr; }
    .list-card-img { height: 220px; }
    
    .bidding-support-block { padding: 25px 20px; }
    .bidding-header h3 { font-size: 1.3rem; }
    .bidding-item { flex-direction: column; gap: 10px; align-items: center; text-align: center; }
    .bidding-item i { font-size: 2rem; }
}
.tag-hot { position: absolute; top: 15px; left: 15px; background-color: #ef4444; color: white; padding: 4px 12px; font-size: 0.8rem; font-weight: 700; border-radius: 4px; }
