/* 产品页独立样式 */

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.thumb-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: #e74c3c;
}

.breadcrumb-item i {
    font-size: 12px;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
}

/* 页面布局 */
.page-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 左侧导航栏 */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* padding: 20px 0; */
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    background: #e74c3c;
    color: #fff;
    padding: 12px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.sidebar-title:hover {
    background: #c0392b;
}

.sidebar-title .toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.sidebar-title:hover .toggle-icon {
    opacity: 1;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: 20px;
}

.menu-item {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item.active {
    background: transparent;
}

.menu-item.active .menu-link {
    color: #333;
    font-weight: 600;
}

/* 栏目缩略图样式 */
/* .category-thumb {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    margin-right: 10px;
    object-fit: cover;
    vertical-align: middle;
} */

.product-thumb {
    width: 25px;
    height: 25px;
    border-radius: 3px;
    margin-right: 8px;
    object-fit: cover;
    vertical-align: middle;
}

/* 菜单链接样式调整 */
.menu-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.menu-link:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 6px 15px 6px 25px;
    color: #666;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.submenu-link:hover {
    background-color: #f0f0f0;
    color: #e74c3c;
}

/* 激活状态样式 */
.menu-link.active {
    color: #020202;
    background: #f8f9fa;
    font-weight: 600;
}

.submenu-link.active {
    color: #020202;
    background: #f8f9fa;
    font-weight: 600;
}

.menu-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.menu-link:hover {
    color: #e74c3c;
    background: #f8f9fa;
}

.menu-item.active .menu-link:hover {
    color: #e74c3c;
}

.submenu-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* 子菜单样式 */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: #f8f9fa;
}

.submenu.show {
    display: block;
}

.submenu-item {
    border-bottom: 1px solid #e9ecef;
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-link {
    display: block;
    padding: 10px 20px 10px 40px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.submenu-link:hover {
    color: #e74c3c;
    background: #e9ecef;
}

/* 三级菜单样式 */
.submenu .submenu {
    background: #e9ecef;
}

.submenu .submenu .submenu-link {
    padding-left: 60px;
    font-size: 13px;
}

.submenu .submenu .submenu-item {
    border-bottom: 1px solid #dee2e6;
}

/* 右侧内容区域 */
.content-area {
    flex: 1;
    min-width: 0;
}

/* 分类标题 */
.category-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.category-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* 产品卡片 */
.product-card {
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.product-date,
.product-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 分页包装器 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* 自定义分页样式 */
.pagination-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-custom a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    background: transparent;
    transition: all 0.3s ease;
}

.pagination-custom a:hover {
    color: #333;
    background: #f5f5f5;
}

.pagination-custom a.current {
    color: #fff;
    background: #555;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .page-layout {
        gap: 30px;
    }

    .sidebar {
        width: 220px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar {
        width: 100%;
        order: 2;
    }

    .content-area {
        order: 1;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .main-content {
        padding: 0px 0 60px 0;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-image {
        height: 180px;
    }

    .product-title {
        font-size: 13px;
    }

    .sidebar-title {
        font-size: 14px;
        padding: 10px 15px;
    }

    .menu-link {
        padding: 10px 15px;
        font-size: 13px;
    }
}