* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* 顶部横幅 */
.banner-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.protect_carousel-content {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.protect_carousel-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
/* 主要内容区域 */
.main-content {
    max-width: 1400px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    padding: 0 20px;
}

/* 左侧导航 */
.sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.category-header {
    background:url('/static/public/images/图层 744.png') center/cover;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    position: relative;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.8rem, 1.6vw, 2rem);
    letter-spacing: 10px;
}

/*.category-header::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    bottom: 0;*/
/*    background: rgba(26, 79, 162, 0.8);*/
/*    z-index: 1;*/
/*}*/

.category-header span {
    position: relative;
    z-index: 2;
}

.box {
    padding: 0;
}

.ulList {
    list-style: none;
    margin: 0;
    padding: 0;
}

.liList {
    border-bottom: 1px solid #f0f0f0;
}

.liList:last-child {
    border-bottom: none;
}

.nav-button {
    width: 100%;
    background: white;
    border: none;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-button:hover {
    background-color: #f8f9fa;
    color: #1A4FA2;
}

.nav-button.active {
    background-color: #e3f2fd;
    color: #1A4FA2;
    font-weight: 600;
}

.nav-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #999;
}

.nav-button.active .nav-arrow {
    transform: rotate(90deg);
    color: #1A4FA2;
}

.nav-button:hover .nav-arrow {
    color: #1A4FA2;
}

.childUl {
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.childUl.active {
    max-height: 200px;
}

.childUl li {
    border-bottom: 1px solid #e9ecef;
}

.childUl li:last-child {
    border-bottom: none;
}

.childUl button {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 30px;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.3s ease;
}

.childUl button:hover {
    background-color: #e3f2fd;
    color: #1A4FA2;
    padding-left: 35px;
}

/* 产品区域 */
.product-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
}

.product-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-content2 {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-content2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-content2 img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-content2:hover img {
    transform: scale(1.05);
}

.product-content-title {
    padding: 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    background: #f8f9fa;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    min-width: 40px;
}

.pagination button:hover:not(:disabled) {
    background-color: #1A4FA2;
    color: white;
    border-color: #1A4FA2;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background-color: #1A4FA2;
    color: white;
    border-color: #1A4FA2;
}

#page-numbers {
    display: flex;
    gap: 5px;
}

#page-numbers span {
    padding: 8px 4px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .sidebar {
        position: static;
        order: -1;
    }

    .product-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .protect_carousel-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .protect_carousel-content h2 {
        font-size: 1.5rem;
    }

    .banner-img {
        height: 200px;
    }

    .sub-nav {
        flex-wrap: wrap;
        padding: 10px;
        gap: 10px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination button {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
    }
}

/* 移动端菜单 */
.mobile-menu-toggle-product {
    display: none;
    width: 100%;
    background: #1A4FA2;
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
}

@media (max-width: 968px) {
    .mobile-menu-toggle-product {
        display: block;
    }

    .sidebar-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .sidebar-content.open {
        max-height: 800px;
    }
}

/* 加载状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    color: #666;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #1A4FA2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 50px;
    color: #999;
    grid-column: 1 / -1;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #666;
}
