.goods-block {
    padding: 18px;
    border-radius: 24px;
    background-color: var(--goods-block-bg-color);
    width: 600px;
    height: 353px;
    position: relative;
}

.icon-aircle-arrow {
    position: absolute;
    right: 12px;
    top: 24px;
    width: 40px;
    height: 40px;
    background-image: url('../imgs/icon-aircle-gray.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
}
/* .goods-block:hover {
    background-color: var(--goods-block-hover-bg-color);
} */
.icon-aircle-arrow:hover {
    background-image: url('../imgs/icon-aircle-pink.svg');
}
.goods-block-left {
    width: 100%;
}
.goods-block-left .active-img{
    width: 305px;
    height: 190px;
    margin: 21px auto;
}
.active-title {
    font-size: 21px;
    margin-bottom: 5px;
    line-height: 1;
    font-weight: 400;
}
.active-summary {
    font-size: 14px;
}
/* 整行模式 */
.goods-block.long {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    margin-bottom: 51px;
}
.goods-block.long .icon-aircle-arrow {
    left: 32px;
    right: unset;
    bottom: 20px;
    top: unset;
}
/* 商品模块 */
.goods-list {
    margin-top: 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.goods-block.long .goods-list {
    width: 720px;
    flex-shrink: 0;
}
.goods-item {
  width: 176px;
}
.goods-block.long .goods-item {
  width: 230px;
}
.goods-img {
  width: 176px;
  height: 174px;
  border-radius: 12px;

}
.goods-block.long .goods-img {
  width: 230px;
  height: 230px;
}
.goods-item .goods-name {
  font-size: 14px;
  font-weight: 500;
  line-height:20px;
  margin-top: 10px;
  height: 40px;
  color: #333;
  text-overflow: ellipsis;
  overflow: hidden;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.goods-item .price {
    margin-top: 10px;
}
.discount-price {
    font-size: 16px;
    font-weight: bold;
    line-height: 20px;
    color: var(--price-color);
}
.original-price {
    color: #8b8b8b;
    font-size: 14px;
    text-decoration-line: line-through;
    font-weight: 400;
    margin-left: 14px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.goods-item:hover .goods-name{
    color: var(--price-color);
}
.goods-item:hover img {
    opacity: 0.5;
}

.goods-img {
    object-fit: cover;
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.browse-category-title {
    font-size: 19px;
    margin-bottom: 25px;
}
.category-img-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.browse-category-item {
    margin-bottom: 20px;
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
}
.browse-category-img {
    width:144px;
    height:144px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}
.browse-category-name {
    font-size: 14px;
    font-weight: bold;
    line-height: 19px;
    margin-top: 12px;
    color: #000;
}
.browse-category-item:hover .browse-category-img{
    border-color: var(--price-color);
}
.browse-category-item:hover .browse-category-name {
    color: var(--price-color);
}
#goods-all-list {
    justify-content: unset;
    gap: 18.5px;
    flex-wrap: wrap;
}
#goods-all-list .goods-name {
    height: 60px;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
#goods-all-list .goods-item {
    width: 230px;
    height: 353px;
}
#goods-all-list .goods-img {
    width: 230px;
    height: 230px;
}
/* 平板端适配 */
@media (min-width: 769px) and (max-width: 1181px) {
    .goods-item {
    }
    
    /* 商品块自适应 */
    .goods-block {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    .goods-block.long {
        width: 100%;
        flex-direction: column;
        align-items: center;
        height: auto;
    }
    
    .goods-block.long .goods-list {
        width: 100%;
        max-width: 720px;
        margin: 20px auto 0;
    }
    .goods-block.long .goods-item {
        width: 30%;
    }
    
    /* 商品列表自适应 */
    #goods-all-list {
        justify-content: center;
    }
    
    #goods-all-list .goods-item {
        width: calc(50% - 10px);
        max-width: 230px;
    }
    
    /* 分类图片列表自适应 */
    .category-img-list {
        justify-content: center;
    }
}

/* Pad Mini特定宽度适配 (768px) */
@media (max-width: 768px) {
    .goods-block {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        background-color: unset;
    }
    .goods-block.long {
        width: 100%;
        flex-direction: column;
        align-items: center;
        height: auto;
    }
    .icon-aircle-arrow {
        top: 2vw;
    }
    /* 商品列表调整为两列布局 */
    .goods-list {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    #goods-all-list {
        gap: 8px;
        justify-content: space-between;
    }
    
    #goods-all-list .goods-item {
        width: calc(50% - 7.5px);
        max-width: none;
        height: auto;
    }
    
    #goods-all-list .goods-img {
        width: 100%;
        height: auto;
    }
    
    /* 分类图片列表调整 */
    .category-img-list {
        justify-content: space-between;
    }
    
    .browse-category-item {
        width: calc(25% - 7.5px);
        margin-bottom: 15px;
    }
    
    .browse-category-img {
        width: 100%;
        height: auto;
    }
}
@media (max-width: 768px) {
    .flex {
        gap: 0;
    }
    .active-title {
        font-size: 20px;
    }
    .browse-category-title {
        font-size: 18px;
    }
    .discount-price {
        font-size: 15px;
    }
    .original-price {
        font-size: 13px;
    }
    .browse-category-name {
        font-size: 13px;
        font-weight: 400;
        padding-bottom: 12px;
    }
    .goods-item .price {
        margin-top: 7.5px;
    }
    .goods-block {
        height: auto;
        padding-left: 0;
        padding-right: 0;
    }
    .goods-list {
        gap: 8px;
    }
    .active.goods-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }

    .active.goods-list::-webkit-scrollbar {
        display: none !important;
    }

    .active.goods-list .goods-item {
        flex: 0 0 130px !important;
        width: 130px !important;
    }
    .active.goods-list .goods-item img{
        width: 130px !important;
        height: 130px !important;
    }
    .category-img-list {
        width: 100%;
        overflow-x: auto !important;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 13px;
    }
    .category-img-list::-webkit-scrollbar {
        display: none !important;
    }
    .browse-category-item {
        border-radius: 8px;
        background-color: #F7F7F7;
        width: 90px;
        flex-shrink: 0;
        height: auto;
        margin: 0;
    }
    .browse-category-img {
        width: 90px;
        height: 90px;
        border-radius: 8px;
    }
    #goods-all-list {
        justify-content: center;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid: 6px;
    }
    #goods-all-list .goods-item {
        width: 100%;
        height: auto;
    }
    #goods-all-list .goods-name {
        height: 40px;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    #goods-all-list .goods-img {
        width: 100%;
        height: auto;
        border-radius: 9px;
    }
}