/* 产品页面样式 */

/* Banner区域 */
.products-banner {
    width: 100%;
    height: 100vh;
   
    background-size: cover;
    background-position: center;
}

/* 产品内容区域 */
.products-content-section {
    padding: 60px 0 80px;
    background-color: #f5f6f8;
}

.products-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 左侧边栏 */
.products-sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: visible;
}

.sidebar-section {
    border-bottom: 1px solid #e8e9eb;
    padding: 0 12px;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    color: #132a87;
    padding: 20px 12px;
    background-color: transparent;
    margin: 0;
    text-align: center;
    border-bottom: 1px solid #e8e9eb;
}

.sidebar-menu {
    list-style: none;
    padding: 0 0 12px 0;
    margin: 0;
}

.sidebar-menu-item {
    margin-bottom: 8px;
}

.sidebar-menu-item:last-child {
    margin-bottom: 0;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 15px;
    color: #333333;
    background-color: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar-menu-link:hover {
    background-color: #f8f9fa;
    color: #132a87;
}

.sidebar-menu-item.active > .sidebar-menu-link {
    background-color: #132a87;
    color: #ffffff;
}

.sidebar-menu-link svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sidebar-menu-link svg path {
    stroke: #666666;
}

.sidebar-menu-item.active > .sidebar-menu-link svg path {
    stroke: #ffffff;
}

/* 展开状态：箭头向上旋转 */
.sidebar-menu-item.expanded > .sidebar-menu-link svg {
    transform: rotate(-90deg);
}

.sidebar-submenu {
    list-style: none;
    padding: 8px 0 0 0;
    margin: 0 0 0 16px;
    background-color: transparent;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-menu-item.expanded > .sidebar-submenu {
    display: block;
    max-height: 1000px;
}

.sidebar-submenu > li {
    margin-bottom: 16px;
}

.sidebar-submenu > li:last-child {
    /* margin-bottom: 0; */
}

.sidebar-submenu > li > a {
    padding: 10px 16px;
    font-size: 14px;
    color: #666666;
    background-color: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-submenu > li > a:hover {
    background-color: #f8f9fa;
    color: #132a87;
}

.sidebar-submenu > li.active > a {
    background-color: #132a87;
    color: #ffffff;
}

/* 二级菜单项（带子菜单） */
.sidebar-submenu .sidebar-menu-item {
    margin-bottom: 6px;
}

.sidebar-submenu .sidebar-menu-item > .sidebar-menu-link {
    padding: 10px 16px;
    font-size: 14px;
    background-color: transparent;
    color: #333333;
}

.sidebar-submenu .sidebar-menu-item > .sidebar-menu-link:hover {
    background-color: #f8f9fa;
    color: #132a87;
}

.sidebar-submenu .sidebar-menu-item > .sidebar-menu-link svg path {
    stroke: #666666;
}

.sidebar-submenu .sidebar-menu-item.expanded > .sidebar-menu-link svg path {
    stroke: #132a87;
}

.sidebar-submenu .sidebar-menu-item.active > .sidebar-menu-link {
    background-color: #132a87;
    color: #ffffff;
}

.sidebar-submenu .sidebar-menu-item.active > .sidebar-menu-link svg path {
    stroke: #ffffff;
}

/* 二级子菜单 */
.sidebar-submenu .sidebar-submenu {
    background-color: transparent;
    padding: 6px 0 0 0;
    margin-left: 16px;
}

.sidebar-submenu .sidebar-submenu > li > a {
    padding: 8px 16px;
    font-size: 13px;
    background-color: transparent;
}

.sidebar-submenu .sidebar-submenu > li > a:hover {
    background-color: #f8f9fa;
}

.sidebar-submenu .sidebar-submenu > li.active > a {
    background-color: #132a87;
    color: #ffffff;
}

/* 三级子菜单 */
.sidebar-submenu .sidebar-submenu .sidebar-submenu {
    padding-left: 0;
    margin-left: 16px;
}

.sidebar-submenu .sidebar-submenu .sidebar-submenu > li > a {
    padding: 8px 16px;
    font-size: 12px;
}

/* 右侧产品列表 */
.products-main {
    flex: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* 产品卡片 */
.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 10px;
}

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

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

.product-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-model {
    font-size: 24px;
    font-weight: 600;
    color: #132a87;
    margin-bottom: 12px;
}

.product-card-subtitle {
    font-size: 16px;
    color: #333333;
    margin-bottom: 16px;
    font-weight: 400;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.product-card-desc {
    font-size: 14px;
    color: #999999;
    line-height: 1.8;
    margin-bottom: 24px;
    height: 75px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
}

.product-card-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: transparent;
    color: #132a87;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid #132a87;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.product-card-btn:hover {
    background-color: #132a87;
    color: #ffffff;
    transform: translateY(-2px);
}

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

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not([disabled]) {
    background-color: #f8f9fa;
    border-color: #132a87;
}

.pagination-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn svg path {
    stroke: #666666;
    transition: stroke 0.3s ease;
}

.pagination-btn:hover:not([disabled]) svg path {
    stroke: #132a87;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background-color: #f8f9fa;
    border-color: #132a87;
    color: #132a87;
}

.pagination-number.active {
    background-color: #132a87;
    border-color: #132a87;
    color: #ffffff;
}
