/* ========== 产品汇总页完整样式 ========== */
:root {
    /* 页面级覆盖（勿删）：页眉边框在本页依赖此值 */
    --border-color: #e0e0e0;
}
.page-header {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 30px 20px 40px;
}
.page-header h1 {
    font-size: 32px;
    color: #111;
    margin-bottom: 12px;
}
.page-header p {
    font-size: 16px;
    color: #555;
    max-width: 900px;
}
.category-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: flex-start;
}
.sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    align-self: start;
}
.sidebar-block {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.sidebar-title {
    background: #fafafa;
    color: #222;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-left: 4px solid var(--main-color);
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
}
.accordion-arrow {
    display: none;
    font-size: 14px;
    transition: transform 0.3s;
}
.sidebar-body {
    padding: 14px 20px;
    max-height: 2000px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.category-list {
    list-style: none;
}
.category-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.category-list li:last-child {
    border-bottom: none;
}
.category-list a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-list a:hover {
    color: var(--main-color);
    padding-left: 4px;
}
/* 二级分类子列表：缩进嵌套，不与一级平级 */
.category-sub-list {
    list-style: none;
    padding-left: 16px;
}
.category-sub-list li {
    padding: 8px 0;
}
.category-sub-list a {
    font-size: 13px;
}
/* 分页按钮触摸目标 ≥44px（无障碍） */
.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}
.hot-product-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}
.hot-product-item:last-child {
    border-bottom: none;
}
.hot-product-item:hover {
    color: var(--main-color);
}
.hot-product-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}
.hot-product-name {
    font-size: 13px;
    line-height: 1.4;
}
.contact-info p {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
}
.contact-info p:last-child {
    margin-bottom: 0;
}
.contact-info a {
    color: var(--main-color);
    text-decoration: none;
}
.contact-info a:hover {
    text-decoration: underline;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #e8e8e8;
}
.product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.product-card img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
}
.product-info {
    padding: 18px;
}
.product-info a {
    text-decoration: none;
    color: #222;
}
.product-name {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 10px;
    transition: color 0.25s;
}
.product-card:hover .product-name {
    color: var(--main-color);
}
.product-specs {
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.7;
}
.product-specs span {
    display: block;
}
.card-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.view-detail-btn,
.compare-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    border-radius: var(--btn-radius);
    font-size: 14px;
    transition: 0.25s;
    text-decoration: none;
    text-align: center;
}
.view-detail-btn {
    background: var(--main-color);
    color: #fff;
}
.view-detail-btn:hover {
    background: var(--main-dark);
}
.compare-btn {
    border: 1px solid var(--main-color);
    color: var(--main-color);
    background: #fff;
}
.compare-btn:hover {
    background: var(--main-color);
    color: #fff;
}
.pagination-wrap {
    margin-top: 50px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: var(--btn-radius);
    cursor: pointer;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}
.page-btn.active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}
.page-btn:hover:not(.active) {
    border-color: var(--main-color);
    color: var(--main-color);
}
.section-wrap {
    padding: 50px 0;
    scroll-margin-top: 70px;
}
.section-wrap h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #111;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}
.section-wrap h2::after {
    content: "";
    width: 50px;
    height: 3px;
    background: var(--main-color);
    position: absolute;
    left: 0;
    bottom: 0;
}
.section-bg-gray {
    background: #f8f8f8;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}
.inquiry-form {
    max-width: 750px;
    background: #fff;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin: 0 auto;
    border: 1px solid #eee;
}

@media (max-width: 1024px) {
    .page-header {
        padding: 20px 15px 30px;
    }
    .page-header h1 {
        font-size: 26px;
    }
    .category-container {
        padding: 0 15px 60px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sidebar {
        position: static;
        margin-bottom: 20px;
    }
    .sidebar-block {
        margin-bottom: 10px;
    }
    .sidebar-title {
        cursor: pointer;
    }
    .accordion-arrow {
        display: inline-block;
    }
    .sidebar-title.collapsed .accordion-arrow {
        transform: rotate(-90deg);
    }
    .sidebar-body {
        max-height: 0;
        padding: 0 18px;
    }
    .sidebar-block.open .sidebar-body {
        max-height: 2000px;
        padding: 14px 18px;
    }
    .hide-mobile {
        display: none;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .section-wrap {
        padding: 30px 0;
    }
}
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-name {
        font-size: 16px;
    }
    .inquiry-form {
        padding: 20px;
    }
}