/* --- 页面基础与标题 --- */
.bg-gray {
    background-color: #f8fafc;
}

.archive-header {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.custom-breadcrumb {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

.archive-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.archive-description {
    font-size: 15px;
    color: #64748b;
    max-width: 800px;
    line-height: 1.6;
}

/* --- 侧边栏与主区布局 --- */
.archive-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.archive-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.archive-main {
    flex: 1;
    min-width: 0;
}

/* --- 侧边栏筛选器样式 --- */
.filter-form {
    padding: 24px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}

.filter-header h3 {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.05em;
    margin: 0;
}

.clear-filters {
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group h4 {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

/* 自定义 Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 10px;
    cursor: pointer;
}

.custom-checkbox input {
    accent-color: #1664a7;
    width: 16px;
    height: 16px;
}

/* 范围输入框 */
.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-range {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}

.range-separator {
    width: 10px;
    height: 1px;
    background: #cbd5e1;
}

.custom-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
    background: #ffffff;
    outline: none;
}

.btn-apply-filters {
    width: 100%;
    padding: 12px;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-apply-filters:hover {
    background: #e2e8f0;
}

/* --- 顶部工具栏 --- */
.archive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.result-count {
    font-size: 14px;
    color: #0f172a;
}

.toolbar-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.sort-dropdown label {
    font-size: 13px;
    color: #64748b;
    margin-right: 8px;
}

.view-toggles {
    display: flex;
    gap: 4px;
}

.toggle-btn {
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    border-radius: 4px;
    cursor: pointer;
}

.toggle-btn.active {
    color: #1664a7;
    border-color: #1664a7;
    background: #eff6ff;
}

/* --- 产品卡片网格 --- */
.product-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.b2b-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
}

.b2b-product-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.badge-new {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 2px;
}

.card-content {
    padding: 20px;
    flex: 1;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.card-title a {
    color: #0f172a;
    text-decoration: none;
}

.card-sku {
    font-size: 12px;
    color: #64748b;
    font-family: monospace;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* 核心：4格技术参数 */
.card-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

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

.spec-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-size: 13px;
    color: #0f172a;
    font-family: monospace;
}

.card-actions {
    padding: 0 20px 20px 20px;
    display: flex;
    gap: 10px;
}

.btn-primary {
    flex: 1;
    background: #1664a7;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #12518a;
}

.btn-icon {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-icon:hover {
    border-color: #1664a7;
    color: #1664a7;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .archive-layout {
        flex-direction: column;
    }

    .archive-sidebar {
        width: 100%;
    }
}