/* 产品页面主要内容区域样式 */

/* 主要内容区域 */
.main-content {
    display: flex;
    width: 1438px; /* 1088px + 280px + 70px = 1438px */
    max-width: calc(100% - 100px);
    margin: 0 auto;
    padding: 0 50px 40px 50px;
    gap: 70px;
    min-height: calc(100vh - 200px);
    box-sizing: border-box;
}

/* 侧边栏样式 */
.sidebar {
    width: 280px;
    padding: 30px 0px 30px 0;
    border-radius: 8px;
    height: fit-content;
    flex-shrink: 0;
}

.sidebar-title {
    width: 118px;
    height: 23px;
    font-size: 32px;
    color: #000;
    margin-bottom: 41px;
    margin-top: 0;
    position: relative;
	padding-left: 15px;
}

.product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    height: 44px;
    padding: 0 15px;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #000;
    transition: all 0.3s ease;
    border-radius: 100px;
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-item:hover {
    background-color: #dfdfdf;
    color: #000;
}

.category-item.active {
    background-color: #dfdfdf;
    color: #000;
    font-weight: 500;
}

/* 产品内容区域 */
.product-content {
    flex: 1;
    width: 1434px;
    max-width: 1434px;
}

.page-title {
    font-size: 24px;
    color: #000;
    margin-bottom: 30px;
    margin-top: 30px;
    text-align: right;
    width: 100%;
    max-width: 1088px; /* 3 * 350px + 2 * 19px = 1088px */
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 350px);
    column-gap: 19px;
    row-gap: 17px;
    justify-content: flex-start;
}

.product-card {
    position: relative;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    margin-bottom: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    width: 100%;
    max-width: 244px;
    height: auto;
    aspect-ratio: 244/230;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.05);
}

.product-image svg:hover {
    fill: #fff;
}

.product-badge {
    position: relative;
    top: -20px; /* 与product-title顶部对齐 */
	left:5px;
    width: 31px;
    height: 13px;
    font-size: 15px;
    font-weight: normal;
    line-height: 31px;
    letter-spacing: 0px;
    color: #0078ff;
    display: inline-block;
	font-family: 'MiSans-Regular' !important;

	
}

.product-title {
    height: 21px;
    font-size: 26px;
    line-height: 31px;
    letter-spacing: 0px;
    color: #000000;
    margin-top: 41px;
    margin-bottom: 15px;
	display: inline;
}



.product-subtitle {
    height: 16px;
    font-size: 15px;
    font-weight: normal;
    line-height: 31px;
    letter-spacing: 0px;
    color: #717171;
    margin-bottom: 20px;
}

.learn-more-btn {
    background: none;
    width: 130px;
    height: 37px;
    border-radius: 5px;
    border: solid 1px #00030a;
    color: #000;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    text-decoration: none; /* 移除链接下划线 */
}

.m-mobile-learn-btn:hover,.learn-more-btn:hover {
    background-color: #0078ff;
    color: #ffffff;
    border-color: #0078ff;
    text-decoration: none;
}

/* 响应式设计 */
/* 1920px及以上 - 保持固定尺寸，居中显示 */
@media (min-width: 1920px) {
    .main-content {
/*        width: 1820px; /* 1920px - 100px padding */ */
        margin: 0 auto;
        padding: 0 50px 40px 50px ;
        gap: 70px;
    }

    .product-content {
        width: 1434px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 350px);
        column-gap: 19px;
        row-gap: 17px;
        justify-content: flex-start;
    }
    
    .product-card {
        width: 350px;
        height: 500px;
    }
    
    .product-image img {
        width: 100%;
        max-width: 244px;
        height: auto;
        aspect-ratio: 244/230;
        object-fit: contain;
    }
    
    .sidebar {
        width: 280px;
    }
}

/* 1920px以下的响应式设计 */
@media (max-width: 1919px) {
    .main-content {
        width: calc(100% - 100px);
        margin: 0 auto;
        padding-left: 50px;
        padding-right: 50px;
        gap: 50px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .product-content {
        flex: 1;
        width: auto;
        max-width: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 320px);
        column-gap: 19px;
        row-gap: 17px;
        justify-content: flex-start;
    }
    
    .product-card {
        width: 320px;
        height: 450px;
    }
    
    .product-image img {
        width: 100%;
        max-width: 244px;
        height: auto;
        max-height: 230px;
        object-fit: contain;
    }
    
    .sidebar {
        width: 260px;
        flex-shrink: 0;
    }
    
    .sidebar-title {
        width: 6.146%; /* 118px/1920px = 6.146% */
        min-width: 118px;
        height: 1.198%; /* 23px/1920px = 1.198% */
        min-height: 23px;
    }
    
    .category-item {
        height: 2.292%; /* 44px/1920px = 2.292% */
        min-height: 44px;
        margin-bottom: 1.927%; /* 37px/1920px = 1.927% */
    }
}

@media (max-width: 1599px) and (min-width: 1366px) {
    .main-content {
        width: calc(100% - 80px);
        margin: 0 auto;
        padding-left: 40px;
        padding-right: 40px;
        gap: 40px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 300px);
        column-gap: 19px;
        row-gap: 17px;
        justify-content: flex-start;
    }
    
    .product-card {
        width: 300px;
        height: 420px;
    }
    
    .product-image img {
        width: 100%;
        max-width: 244px;
        height: auto;
        max-height: 230px;
        object-fit: contain;
    }
    
    .sidebar {
        width: 250px;
        flex-shrink: 0;
    }
}

@media (max-width: 1366px) {
    .main-content {
        width: calc(100% - 60px);
        margin: 0 auto;
        padding-left: 30px;
        padding-right: 30px;
        gap: 30px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .sidebar {
        width: 220px;
        flex-shrink: 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 280px);
        column-gap: 19px;
        row-gap: 17px;
        justify-content: flex-start;
    }
    
    .product-card {
        width: 280px;
        height: 380px;
    }
    
    .product-image img {
        width: 100%;
        max-width: 244px;
        height: auto;
        max-height: 230px;
        object-fit: contain;
    }
    
    .category-item {
        height: 40px;
        margin-bottom: 30px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        padding-left: 20px;
        padding-right: 20px;
        flex-direction: column;
        gap: 30px;
    }
    
    .sidebar {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .product-content {
        width: 100%;
        max-width: 100%;
    }
    
    .product-categories {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .product-card {
        width: 100%;
        height: 350px;
    }
    
    .page-title {
        text-align: right;
        font-size: 28px;
        width: 100%;
        max-width: 600px; /* 与products-grid的max-width保持一致 */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }
    
    .product-card {
        position: relative;
        height: 320px;
    }
    
    .product-badge {
        top: 56px; /* 调整为适应小屏幕的间距 */
        right: 24px;
		font-family: 'MiSans-Regular' !important;
    }
    
    .product-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 244/230;
        object-fit: contain;
    }
    
    .page-title {
        font-size: 24px;
        margin-bottom: 30px;
        text-align: right;
        width: 100%;
    }
    
    .category-item {
        height: 36px;
        margin-bottom: 25px;
        font-size: 13px;
    }
    
    .sidebar-title {
        font-size: 16px;
        margin-bottom: 30px;
    }
}
