/* Banner容器 */
.about-banner {
    background: url('../images/product-top-bg.png') no-repeat center;
}
@media screen and (max-width: 767px) {
    .about-banner {
        background: url('../images/product-top-right.jpg') no-repeat center;
    }
}

/*.about-banner-image{*/
/*    padding-bottom: 20px;*/
/*}*/
/* product */
.product-machine {
    display: flex;
    padding: 54px 85px;
    background: var(--white-color);
    border-radius: 24px;
    gap: 26px;
    margin-bottom: 64px;

}

/* 左侧菜单样式 */
.machine-menu {
    flex-shrink: 0;
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    padding: 28px 28px 20px 26px;
    /*max-width: 350px;*/
}

.menu-title {
    color: #333333;
    font-family: 'Basic', sans-serif;
    font-weight: 400;
    margin-bottom: 30px;
    max-width: 300px;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* 使用伪元素实现圆点和横线 */
.menu-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #999999;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* 激活状态的横线 */
.menu-item.active::before {
    content: '';
    width: 13px;
    height: 2px;
    background: #FCBF4A;
    border-radius: 1px;
}

/* 悬停效果 */
.menu-item:hover:not(.active)::before {
    background: #666666;
}

.menu-text {
    font-family: 'Basic', sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
}

.menu-item.active .menu-text {
    color: #FCBF4A;
}

.menu-item:not(.active) .menu-text {
    color: #999999;
}

/* 右侧产品展示样式 */
.machine-products {
    flex: 1;
}

.product-grid {
    display: flex;
    /*grid-template-columns: repeat(3, 1fr);*/
    flex-wrap: wrap;
    gap: 30px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-grid.fade-out {
    opacity: 0;
}
.product-grid a{
    width: calc(33.3% - 20px) ;
    min-width: 300px;
}

.product-card {
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    border-radius: 24px;
    transition: all 0.3s ease;
    background: #FFF;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.10);
    /*width: 33.3%;*/
}

/* 图片容器添加overflow:hidden以限制图片放大范围 */
.product-image {
    background: #fff;
    border-radius: 20px;
    margin: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* 图片hover效果 */
.product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 悬停时图片放大 */
.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* 悬停效果 - 移除上浮效果，保留其他效果 */
.product-card:hover {
    background: var(--yellow-color);
}

/* 悬停时文字颜色变化 */
.product-card:hover .product-name {
    color: var(--white-color);
}

.product-card:hover .product-spec {
    color: var(--white-color);
}

.product-card:hover .learn-more {
    color: var(--white-color);
    position: relative;
}
.product-card:hover .learn-more-view {
    border-color: rgba(255, 255, 255, 0.30);
}
.learn-more-view{
    border-top: 1px solid rgba(0, 0, 0, 0.10);
}
/* 修改Learn More按钮和箭头的样式 */
.learn-more {
    display: inline-block;
    padding: 10px 20px;
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Basic', sans-serif;
    position: relative;
    overflow: hidden;
}

/* 箭头基础样式 */
.learn-more::after {
    content: '';
    position: absolute;
    right: 9px;
    transform: translateY(100%);
    opacity: 0;
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    background: url("../images/machine-more.svg");
}

/* 悬停时箭头动画 */
.product-card:hover .learn-more::after {
    transform: translateY(0);
    opacity: 1;
}

/* 悬停时文字左移给箭头腾出空间 */
.product-card:hover .learn-more {
    padding-right: 40px;
}

.product-info {
    text-align: center;
}

.product-name {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-family: 'Basic', sans-serif;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 22px;
}

.product-spec {
    color: #666666;
    margin-bottom: 20px;
    font-family: 'Basic', sans-serif;
}

.learn-more:hover {
    color: var(--yellow-color);
}

/* 响应式设计 */
@media (max-width: 1680px) {
    .product-machine{
        padding: 54px 55px;
    }
    .machine-menu{
        padding: 28px 26px 0 26px;
        width: calc(25% - 20px);
    }
    .product-grid a{
        min-width: auto;
    }
}
@media (max-width:1366px) {
    .menu-title{
        font-size: 32px;
    }
    .menu-text{
        font-size: 16px;
    }
}
@media (max-width: 1200px) {
    .menu-title{
        font-size: 28px;
    }

}
@media (max-width: 1119px) {
    .menu-title{
        font-size: 28px;
    }

}
@media (max-width:991px) {
    .product-machine{
        padding: 10px;
        gap: 10px;
    }
    .product-grid{
        gap: 10px;
    }
    .product-grid a{
        width: calc(33.3% - 7px) ;
    }
    .menu-title{
        font-size: 22px;
    }
    .menu-text{
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .product-machine{
        padding: 10px;
    }
    .product-machine {
        flex-direction: column;
    }
    .menu-title{
        max-width: none;
    }

    .machine-menu {
        width: 100%;
        padding: 20px;
    }

    /* 移动端菜单水平滚动样式 */
    .menu-list {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px; /* 为滚动条留出空间 */
        -webkit-overflow-scrolling: touch; /* 提供更好的移动端滚动体验 */
        scrollbar-width: none; /* Firefox */
        gap: 16px;
    }

    /* 隐藏滚动条但保持功能 */
    .menu-list::-webkit-scrollbar {
        display: none;
    }

    /* 调整菜单项样式以适应水平布局 */
    .menu-item {
        padding: 8px 16px;
        background: #F5F5F5;
        border-radius: 20px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .menu-item.active {
        background: var(--yellow-color);
    }
    .menu-item.active .menu-text{
        color: var(--white-color);
    }
    .menu-item.active::before{
        background: var(--white-color)
    }

        /* 移动端下调整文字大小 */
    .menu-text {
        font-size: 14px;
    }

    /* 调整标题样式 */
    .menu-title {
        margin-bottom: 20px;
        font-size: 24px;
    }

    /* 调整产品网格 */
    .product-grid {
        margin-top: 20px;
    }
    .product-grid a{
        width: 100%;
    }
}

/* 添加隐藏类 */
.hidden {
    display: none;
}
