.top-bg {
    width: 100%;
    height: 29.7vw;
}

.category-nav {
    width: 100%;
    height: 4.9vw;
    line-height: 4.9vw;
    border-bottom: 1px solid #DFDFDF;
    color: #393939;
}

.nav-wrap {
    position: relative;
    height: 100%;
    width: 66.7vw;
    margin: 0 auto;
}

.catn-item {
    display: inline-block;
    font-size: 1.3vw;
    margin-right: 4.9vw;
    cursor: pointer;
}

.catn-item.current {
    color: #189C3E;
    border-bottom: 1px solid #189C3E;
}

.catn-item:hover {
    color: #189C3E;
    border-bottom: 1px solid #189C3E;
}

.goods-wrap {
    width: 66.7vw;
    margin: 3.6vw auto 0;
}

.goods-list {
    width: 70.6vw;
    margin-left: -3.8vw;
}

.goods-item {
    float: left;
    width: 31.5vw;
    height: 42.4vw;
    margin-left: 3.8vw;
    margin-bottom: 4.4vw;
}

.link-detail {
    display: block;
}

.link-detail:hover .goods-desc-title {
    color: #189C3E;
}

.goods-img-box {
    width: 100%;
    height: 29.1vw;
    text-align: center;
    font-size: 0;
    background-color: #F5F5F5;
    overflow: hidden;
}

.goods-img-box img {
    max-width: 100%;
    height: 26vw;
    margin-top: 1vw;
    -webkit-transition: all .6s;
    -o-transition: all .6s;
    -moz-transition: all .6s;
    transition: all .6s;
}

.link-detail:hover .goods-img-box img {
    -webkit-transform: scale(1.2);
       -moz-transform: scale(1.2);
        -ms-transform: scale(1.2);
         -o-transform: scale(1.2);
            transform: scale(1.2);
}

.goods-desc {
    width: 100%;
    height: 8.9vw;
    margin-top: 1.1vw;
    overflow: hidden;
    border-bottom: 1px solid #E1E1E1;
}

.goods-desc-title {
    margin-bottom: 0.8vw;
    font-size: 1.9vw;
    color: #393939;
    white-space: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
       text-overflow: ellipsis;
}

.goods-desc-content {
    font-size: .833vw;
    color: #B7B7B7;
}

.goods-item button {
    width: 6.979vw;
    height: 2.031vw;
    margin-top: 1.3vw;
    font-size: .833vw;
    line-height: 2.031vw;
    text-align: center;
    margin-top: 1.3vw;
    color: #fff;
    border: none;
    border-radius: 2px;
    background-color: #393939;
}

.goods-item button:hover {
    background-color: #189C3E;
}

/* 父容器 category-nav：不滚动，作为阴影的定位基准 */
.category-nav {
    width: 100%;
    height: 4.9vw;
    border-bottom: 1px solid #DFDFDF;
    color: #393939;
    box-sizing: border-box;
    position: relative; /* 阴影相对于此定位（不滚动） */
    overflow: visible;
}

/* nav-wrap：滚动容器，宽度固定 */
.nav-wrap {
    width: 66.7vw;
    height: 100%;
    margin: 0 auto; /* 居中显示 */
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    box-sizing: border-box;
    background-color: #fff; /* 纯白背景 */
}

.nav-wrap::-webkit-scrollbar {
    display: none;
}

/* 左侧阴影：固定在 nav-wrap 左侧边缘（不随滚动移动） */
.category-nav::before {
    content: '';
    position: absolute;
    /* 计算 left 位置：(父容器宽度 - nav-wrap宽度)/2 → 对齐 nav-wrap 左边缘 */
    left: calc(50% - 33.35vw); /* 66.7vw/2 = 33.35vw */
    top: 0;
    width: 4vw; /* 阴影宽度 */
    height: 100%;
    box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.08);
    z-index: 2; /* 覆盖 nav-wrap 内容 */
    opacity: var(--left-opacity, 0);
    transition: opacity 0.3s;
    pointer-events: none;
}

/* 右侧阴影：固定在 nav-wrap 右侧边缘（不随滚动移动） */
.category-nav::after {
    content: '';
    position: absolute;
    /* 计算 right 位置：与左侧对称 */
    right: calc(50% - 33.35vw);
    top: 0;
    width: 4vw;
    height: 100%;
    box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.08);
    z-index: 2;
    opacity: var(--right-opacity, 1);
    transition: opacity 0.3s;
    pointer-events: none;
}

/* 导航项层级低于阴影 */
.catn-item {
    position: relative;
    z-index: 1;
    /* 其他样式不变 */
    display: inline-block;
    font-size: 1.3vw;
    margin-right: 4.9vw;
    cursor: pointer;
    padding: 0 0.5vw;
    height: 100%;
    box-sizing: border-box;
}
