/* ===== 页面背景 ===== */
body.page-cate {
    background: #f9f9f9;
}

.box-height {
    min-height: calc(100vh - 540px);
    overflow: hidden;
    margin-bottom: 50px;
}

.header-area, .footer-area, .copy-right-area {
    background: #fff;
}

/* ===== 面包屑导航 ===== */
.goods-cate-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 10px;
    font-size: 13px;
    color: #888;
    position: relative;
    margin-bottom: 0;
}
.goods-cate-menu a {
    color: #666;
    text-decoration: none;
    transition: color .2s;
}
.goods-cate-menu a:hover {
    color: #e93323;
}
.goods-cate-menu .goods-cate-one {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 14px;
    background: #f5f5f5;
    transition: all .2s;
}
.goods-cate-menu .goods-cate-one:hover {
    background: #fef6f6;
    color: #e93323;
}
.goods-cate-menu .goods-cate-one i {
    font-size: 14px;
    transition: transform .25s;
}
.goods-cate-menu .goods-cate-sep {
    color: #ccc;
    font-size: 13px;
}

/* 一级分类下拉 */
ul.am-dropdown-content {
    position: absolute;
    top: calc(100% + 4px);
    left: 20px;
    z-index: 1020;
    display: none;
    min-width: 160px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    border: 1px solid #eee;
}
ul.am-dropdown-content > li > a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s;
}
ul.am-dropdown-content > li > a:hover {
    color: #e93323;
    background: #fef6f6;
}

/* ===== 筛选区域 ===== */
.goods_cate_detail {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 10px;
    padding: 0 20px;
    margin-top: 12px;
    overflow: hidden;
}

/* 分类筛选行 */
.sub_cate {
    display: flex;
    align-items: flex-start;
    min-height: 56px;
    border-bottom: 1px solid #f2f2f2;
}
.sub_cate_title {
    flex-shrink: 0;
    width: 72px;
    padding: 16px 0;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    line-height: 24px;
}
.sub_cate_content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 0;
    gap: 6px;
}

/* 排序行 */
.cate_sort {
    display: flex;
    align-items: flex-start;
    min-height: 56px;
}
.sort_menu {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 0;
    gap: 6px;
}

/* 筛选项按钮 */
.goods_cate_item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 16px;
    min-width: 52px;
    height: 32px;
    font-size: 13px;
    color: #666;
    background: #f7f7f7;
    border-radius: 16px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.goods_cate_item:hover {
    color: #e93323;
    background: #fef6f6;
}
.goods_cate_item a {
    color: inherit;
    text-decoration: none;
}
.item_active {
    color: #fff !important;
    background: #e93323 !important;
}
.item_active a {
    color: #fff !important;
}

/* 排序激活状态 */
.sort-active {
    color: #e93323 !important;
    background: #fef6f6 !important;
    font-weight: 500;
}
.sort-active i {
    color: #e93323 !important;
}
.goods_cate_item i.iconfont {
    font-size: 14px;
    color: #ccc;
    transition: color .2s;
}
.goods_cate_item:hover i.iconfont {
    color: #e93323;
}
.goods_cate_item.sort-active i.iconfont,
.goods_cate_item.sort-active:hover i.iconfont {
    color: #e93323 !important;
}

/* 分类标签徽章（商品卡片左上角） */
.goods_cate_content .item .cate-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 3px 10px;
    background: #e93323;
    color: #fff;
    font-size: 11px;
    border-radius: 10px;
    font-weight: 500;
    letter-spacing: .3px;
}
.goods_cate_item i {
    transition: transform .25s;
}

/* ===== 商品列表 ===== */
.goods_cate_content {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
    min-height: 300px;
    width: 100%;
    margin-left: 0;
    margin-top: 14px;
}

.goods_cate_content .item {
    background: #fff;
    border-radius: 12px;
    padding: 0 0 16px;
    width: calc((100% - 64px) / 5);
    height: auto;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #f0f0f0;
    transition: all .35s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.goods_cate_content .item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    transform: translateY(-5px);
    border-color: #fcd5d5;
}

/* 商品图片 */
.item .pictrue {
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 12px 12px 0 0;
    position: relative;
}
.item .pictrue img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .5s;
}
.item:hover .pictrue img {
    transform: scale(1.08);
}

/* 商品名称 */
.item .name {
    padding: 0 14px;
    margin-top: 12px;
    height: 40px;
    font-size: 13px;
    color: #424242;
    flex: 1;
}
.item .name a {
    color: #282828;
    text-decoration: none;
    transition: color .2s;
}
.item:hover .name a {
    color: #e93323;
}
.line2 {
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 价格 */
.item .money {
    padding: 6px 14px 0;
}
.item .money .font-color {
    font-weight: 700;
    font-size: 19px;
    color: #e93323 !important;
}
.item .money .y_money {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 8px;
}
.font-color {
    color: #e93323 !important;
}



/* ===== 分页器 ===== */
.pc-more-goods {
    width: 100%;
    text-align: center;
    margin-top: 36px;
    margin-bottom: 10px;
}
.pc-more-goods .pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.pc-more-goods .pagination li {
    display: inline-block;
}
.pc-more-goods .pagination li a,
.pc-more-goods .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
    color: #666;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
}
.pc-more-goods .pagination li a:hover {
    color: #e93323;
    border-color: #e93323;
    background: #fef6f6;
}
.pc-more-goods .pagination li.active span {
    background: #e93323;
    border-color: #e93323;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(233,51,35,.25);
}
.pc-more-goods .pagination li.disabled span {
    color: #ccc;
    background: #fafafa;
    border-color: #eee;
    cursor: not-allowed;
}
.pc-more-goods .pagination li a.prev,
.pc-more-goods .pagination li a.next {
    font-weight: 500;
}

/* ===== 空状态 ===== */
.goods_cate .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    width: 100%;
}
.goods_cate .empty-state img {
    width: 120px;
    opacity: .5;
    margin-bottom: 16px;
}
.goods_cate .empty-state p {
    font-size: 14px;
    color: #999;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .goods_cate_content .item {
        width: calc((100% - 48px) / 4);
    }
}
@media (max-width: 992px) {
    .goods_cate_content .item {
        width: calc((100% - 32px) / 3);
    }
    .goods_cate_detail {
        padding: 0 14px;
    }
    .sub_cate_title {
        width: 56px;
        font-size: 12px;
    }
}
@media (max-width: 768px) {
    .goods-cate-menu {
        padding: 12px 14px;
        font-size: 12px;
    }
    .goods_cate_content {
        gap: 12px;
    }
    .goods_cate_content .item {
        width: calc((100% - 24px) / 2);
    }
    .item .pictrue {
        height: 160px;
    }
    .item .money .font-color {
        font-size: 16px;
    }
    .item .name {
        font-size: 12px;
    }
    .sub_cate_content, .sort_menu {
        gap: 4px;
    }
    .goods_cate_item {
        padding: 4px 12px;
        height: 28px;
        font-size: 12px;
        border-radius: 14px;
    }
}
@media (max-width: 480px) {
    .goods_cate_content .item {
        width: 100%;
    }
    .goods_cate_detail {
        padding: 0 10px;
    }
    .goods-cate-menu {
        flex-wrap: wrap;
        gap: 4px;
    }
}
