.all-sort-list {
    position: relative;
    float: left;
    width: 228px;
    border-top: none;
    background: #f8f9fa;
    min-height: 300px;
    max-height: 450px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.all-sort-list .item {
    height: auto;
    min-height: 55px;
    border-top: 1px solid #e9ecef;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

/* 纯CSS hover显示二级分类 */
.all-sort-list .item:hover .item-list {
    display: block !important;
}

.all-sort-list .item:hover {
    background: #e3f2fd;
}

.all-sort-list .item.bo {
    border-top: none;
}

.all-sort-list .item h3 {
    height: auto;
    line-height: 55px;
    font-size: 15px;
    font-weight: normal;
    width: 199px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.all-sort-list .item span {
    padding: 0px 5px;
    color: #1baeae;
    font-family: "\5B8B\4F53";
}

.all-sort-list .item a {
    color: #1baeae;
    text-decoration: none;
}

.all-sort-list .item a:hover {
    font-weight: bold;
    color: #1baeae;
}

.all-sort-list .item-list {
    display: none;
    position: absolute;
    width: 950px; /* 增加宽度，铺满到红色框位置 */
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    background: #FFF;
    left: 228px;
    bottom: 0;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
    z-index: 1001;
    border-radius: 0 8px 8px 0;
    padding: 0;
}

.item-list .subitem {
    display: flex;
    flex-wrap: wrap;
    padding: 15px 20px;
    gap: 0 12px;
}

.item-list .subitem dl {
    flex: 0 0 auto;
    min-width: 70px;
    max-width: 130px;
    margin-bottom: 0;
    margin-right: 12px;
    position: relative;
}

/* 二级分类悬停效果 */
.item-list .subitem dl.second-level:hover dt {
    color: #e4393c;
}

.item-list .subitem dl.second-level:hover dt a {
    color: #e4393c;
}

/* 三级分类默认隐藏 */
.item-list .subitem dd.third-level {
    display: none;
    width: 100%;
    padding: 0;
    overflow: hidden;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #f0f0f0;
}

/* 悬停二级分类时显示三级分类 */
.item-list .subitem dl.second-level:hover dd.third-level {
    display: block;
}

.item-list .subitem .fore1 {
    border-top: none;
}

.item-list .subitem dt {
    width: 100%;
    line-height: 28px;
    text-align: left;
    padding: 0 0 8px 0;
    font-weight: bold;
    color: #1baeae;
    font-size: 14px;
    border-bottom: 2px solid #e3f2fd;
    margin-bottom: 8px;
}

.item-list .subitem dt a {
    color: #1baeae;
    text-decoration: underline;
}

.item-list .subitem dd {
    width: 100%;
    padding: 0;
    overflow: hidden;
}

/* 三级分类标签样式 */
.item-list .subitem dd.third-level em {
    display: inline-block;
    margin: 0 6px 6px 0;
    float: left;
    height: auto;
    line-height: 20px;
    padding: 0 6px;
    margin: 2px;
    border-left: none;
    background: #f8f9fa;
    border-radius: 3px;
    font-size: 12px;
    font-weight: normal;
}

.item-list .subitem dd em a, .item-list .cat-right dd a {
    color: #555;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.item-list .subitem dd em a:hover, .item-list .cat-right dd a:hover {
    color: #1baeae;
    background: #e3f2fd;
    text-decoration: none;
    border-radius: 4px;
}

#content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

#content #banner {
    display: flex;
    width: 1226px;
    flex-shrink: 0;
    height: auto;
    min-height: 400px;
}

#content #banner #cate_menu {
    width: 234px;
    height: 100%;
    background-color: #0c0c13;
    box-sizing: border-box;
    position: relative;
}

#content #banner #cate_menu > ul {
    position: relative;
    padding: 20px 0;
}

#content #banner #cate_menu > ul:hover li:last-of-type {
    display: block;
}

#content #banner #cate_menu > ul > li {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 30px;
    font-size: 14px;
}

#content #banner #cate_menu > ul > li:last-of-type {
    display: none;
    padding: 0;
    width: 800px;
    height: 461px;
    z-index: 2;
    position: absolute;
    left: 100%;
    top: 0;
}

#content #banner #cate_menu > ul > li:hover {
    background-color: #1baeae;
}

#content #banner #cate_menu > ul > li a {
    color: #fff;
    margin-left: 10px;
}

#content #banner #cate_menu > ul > li .pop {
    box-shadow: 2px 3px 5px #ccc;
    width: 800px;
    height: 461px;
    background-color: #fff;
    padding: 20px 0 0 20px;
    font-size: 12px;
    box-sizing: border-box;
}

#content #banner #cate_menu > ul > li .pop > li {
    margin-bottom: 10px;
    white-space: nowrap;
}

#content #banner #cate_menu > ul > li .pop > li .title {
    float: left;
    width: 70px;
    height: 20px;
    line-height: 20px;
    font-weight: bold;
}

#content #banner #cate_menu > ul > li .pop > li .title .iconfont {
    font-size: 12px;
}

#content #banner #cate_menu > ul > li .pop > li .list {
    float: left;
    max-width: 700px;
}

#content #banner #cate_menu > ul > li .pop > li .list li {
    float: left;
    margin-top: 2px;
    margin-bottom: 5px;
}

#content #banner #cate_menu > ul > li .pop > li .list li a {
    display: block;
    height: 16px;
    margin-left: 0;
    line-height: 16px;
    white-space: nowrap;
    padding: 0 10px;
    text-align: center;
    color: #666;
    border-left: 1px solid #e0e0e0;
}

#content #banner #cate_menu > ul > li .pop > li .list li a:hover {
    color: #1baeae;
}

#content #banner .swiper-container {
    flex: 1;
    min-width: 0;
    height: 100%;
}

/* 轮播图箭头按钮统一样式 - 三端通用 */
#content #banner .swiper-button-prev,
#content #banner .swiper-button-next,
#content .swiper-button-prev,
#content .swiper-button-next {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#content #banner .swiper-button-prev:hover,
#content #banner .swiper-button-next:hover,
#content .swiper-button-prev:hover,
#content .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 使用Unicode箭头符号替代Swiper默认图标字体 */
#content #banner .swiper-button-prev::after,
#content #banner .swiper-button-next::after,
#content .swiper-button-prev::after,
#content .swiper-button-next::after {
    content: '';
    font-size: 0;
}

#content #banner .swiper-button-prev::before,
#content .swiper-button-prev::before {
    content: '❮';
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

#content #banner .swiper-button-next::before,
#content .swiper-button-next::before {
    content: '❯';
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

#content #banner .swiper-button-prev {
    left: 10px;
    z-index: 10;
}

#content #banner .swiper-button-next {
    right: 10px;
    z-index: 10;
}

#content #banner .swiper-container .swiper-wrapper .swiper-slide img {
    width: 100%;
    height: 100%;
}

#content #sub_banner {
    display: block;
    width: 1226px;
    flex-shrink: 0;
    min-height: 380px;
    margin-top: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    padding: 0;
}

#content #sub_banner > h2 {
    height: 48px;
    line-height: 48px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding: 0 20px;
}

/* 热销商品Swiper轮播样式 */
#content #sub_banner .hot-goods-swiper {
    width: 100%;
    padding: 0 50px 20px 50px;
    overflow: hidden;
}

#content #sub_banner .hot-goods-swiper .swiper-wrapper {
    display: flex;
    flex-direction: row;
}

#content #sub_banner .hot-goods-swiper .swiper-slide {
    width: 234px;
    height: auto;
    flex-shrink: 0;
}

/* 热销商品Swiper箭头样式 */
#content #sub_banner .hot-goods-swiper .swiper-button-prev,
#content #sub_banner .hot-goods-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 102, 0, 0.8);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
}

#content #sub_banner .hot-goods-swiper .swiper-button-prev:hover,
#content #sub_banner .hot-goods-swiper .swiper-button-next:hover {
    background: rgba(255, 102, 0, 1);
}

#content #sub_banner .hot-goods-swiper .swiper-button-prev::after,
#content #sub_banner .hot-goods-swiper .swiper-button-next::after {
    content: '';
    font-size: 0;
}

#content #sub_banner .hot-goods-swiper .swiper-button-prev::before {
    content: '❮';
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

#content #sub_banner .hot-goods-swiper .swiper-button-next::before {
    content: '❯';
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

/* 热销商品横向滚动容器 */
.hot-goods-scroll {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 0 15px 0;
}

.hot-goods-track {
    display: grid;
    grid-template-rows: repeat(2, 310px);
    grid-auto-flow: column;
    grid-auto-columns: 234px;
    gap: 15px;
    width: max-content;
    cursor: grab;
    user-select: none;
    will-change: transform;
}

.hot-goods-track:active {
    cursor: grabbing;
    transition: none;
}

.hot-goods-track.dragging {
    animation-play-state: paused !important;
}

.hot-goods-item {
    width: 234px;
    height: 310px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.hot-goods-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.hot-goods-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.hot-goods-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.hot-goods-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hot-goods-item:hover .hot-goods-image img {
    transform: scale(1.05);
}

.hot-goods-info {
    padding: 10px 12px;
}

.hot-goods-name {
    font-size: 13px;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hot-goods-price {
    margin: 0 0 6px 0;
    color: #ff4400;
    font-size: 18px;
    font-weight: bold;
}

.hot-goods-price .price-symbol {
    font-size: 12px;
}

.hot-goods-shop {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.hot-goods-shop i {
    font-size: 12px;
}

/* 新品上线样式 */
.new-goods-scroll {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 0 15px 0;
}

.new-goods-track {
    display: grid;
    grid-template-rows: repeat(2, 310px);
    grid-auto-flow: column;
    grid-auto-columns: 234px;
    gap: 15px;
    width: max-content;
    cursor: grab;
    user-select: none;
    will-change: transform;
}

.new-goods-track:active {
    cursor: grabbing;
    transition: none;
}

.new-goods-track.dragging {
    animation-play-state: paused !important;
}

.new-goods-item {
    width: 234px;
    height: 310px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.new-goods-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.new-goods-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.new-goods-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.new-goods-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.new-goods-item:hover .new-goods-image img {
    transform: scale(1.05);
}

.new-goods-info {
    padding: 10px 12px;
}

.new-goods-name {
    font-size: 13px;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.new-goods-desc {
    font-size: 12px;
    color: #999;
    margin: 0 0 6px 0;
    line-height: 1.4;
    height: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.new-goods-price {
    margin: 0 0 6px 0;
    color: #ff4400;
    font-size: 18px;
    font-weight: bold;
}

.new-goods-price .price-symbol {
    font-size: 12px;
}

.new-goods-shop {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.new-goods-shop i {
    font-size: 12px;
}

/* 商品标签样式 */
.goods-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}

.badge-clearance {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.badge-limited {
    background: linear-gradient(135deg, #ffa726, #ff9800);
}

/* 库存徽章样式 */
.goods-stock-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.goods-stock-badge i {
    font-size: 12px;
}

/* 销量徽章样式（用于为你推荐板块） */
.goods-sales-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.goods-sales-badge i {
    font-size: 12px;
}

/* 热销商品轮播样式 */
#content #sub_banner .goods-swiper {
    width: 100%;
    overflow: hidden;
    padding: 0 40px; /* 为导航按钮留出空间 */
}

#content #sub_banner .goods-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

#content #sub_banner .goods-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

#content #sub_banner .goods-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

#content #sub_banner .goods-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

#content #sub_banner .goods-card:hover .goods-image img {
    transform: scale(1.05);
}

#content #sub_banner .goods-info {
    padding: 12px;
}

#content #sub_banner .goods-name {
    font-size: 14px;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#content #sub_banner .goods-price {
    margin: 0 0 8px 0;
    color: #ff6600;
    font-size: 18px;
    font-weight: bold;
}

#content #sub_banner .goods-price .price-symbol {
    font-size: 14px;
}

#content #sub_banner .shop-info {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

#content #sub_banner .shop-info i {
    font-size: 12px;
}

#content #sub_banner .selector {
    width: 234px;
    height: 100%;
}

#content #sub_banner .selector .sidebar {
    float: left;
    display: block;
    width: 78px;
    height: 85px;
}

#content #sub_banner .selector .sidebar img {
    opacity: 0.8;
}

#content #sub_banner .selector .sidebar img:hover {
    opacity: 1;
}

#content #sub_banner .hot-image {
    width: 295px;
    height: 295px;
}

#content #sub_banner .hot-image a {
    display: block;
    width: 100%;
    height: 100%;
}

#content #sub_banner .hot-image a img {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

#content #sub_banner .hot-image a img:hover {
    opacity: 1;
}

#content #flash {
    width: 1226px;
    flex-shrink: 0;
    height: auto;
    min-height: 340px;
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
    padding: 0;
}

#content #flash > h2 {
    height: 58px;
    line-height: 58px;
}

/* 新品轮播器样式 */
#content #flash .swiper-container {
    width: 100%;
    padding-bottom: 20px;
}

#content #flash .swiper-wrapper {
    display: flex;
}

#content #flash .swiper-slide {
    width: 234px;
    height: 352px;
    background-color: #fafafa;
    border-top: 1px solid #ffa500;
    flex-shrink: 0;
}

#content #flash .swiper-slide:nth-child(1) {
    border-color: #ffa500;
}

#content #flash .swiper-slide:nth-child(2) {
    border-color: #008000;
}

#content #flash .swiper-slide:nth-child(3) {
    border-color: #00f;
}

#content #flash .swiper-slide:nth-child(4) {
    border-color: #f00;
}

#content #flash .swiper-slide:nth-child(5) {
    border-color: #008080;
}

#content #flash .swiper-slide a {
    display: block;
    font-size: 14px;
    text-align: center;
}

#content #flash .swiper-slide a img {
    width: 160px;
    height: 160px;
    opacity: 0.8;
    margin: 37px;
}

#content #flash .swiper-slide a .discount {
    font-size: 12px;
    color: #b0b0b0;
    margin: 15px 0;
}

#content #flash .swiper-slide a .item_price {
    color: #1baeae;
}

#content #flash .swiper-slide a:hover img {
    opacity: 1;
}

#content #flash .swiper-button-prev,
#content #flash .swiper-button-next {
    color: #999;
}

#content #flash .swiper-button-prev {
    left: -10px;
}

#content #flash .swiper-button-next {
    right: -10px;
}

/* 新品轮播器样式 */
#content #flash .swiper-container {
    width: 100%;
    padding-bottom: 20px;
    overflow: hidden;
}

#content #flash .swiper-wrapper {
    display: flex;
}

#content #flash .swiper-slide {
    width: 234px;
    height: 352px;
    background-color: #fafafa;
    border-top: 1px solid #ffa500;
    flex-shrink: 0;
}

#content #flash .swiper-slide a {
    display: block;
    font-size: 14px;
    text-align: center;
}

#content #flash .swiper-slide a img {
    width: 160px;
    height: 160px;
    opacity: 0.8;
    margin: 37px;
}

#content #flash .swiper-slide a .discount {
    font-size: 12px;
    color: #b0b0b0;
    margin: 15px 0;
}

#content #flash .swiper-slide a .item_price {
    color: #1baeae;
}

#content #flash .swiper-slide a:hover img {
    opacity: 1;
}

#content #flash .swiper-button-prev,
#content #flash .swiper-button-next {
    color: #999;
}

#content #flash ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 40px;
    box-sizing: border-box;
}

#content #flash ul li {
    width: 234px;
    height: 352px;
    background-color: #fafafa;
    border-top: 1px solid #ffa500;
    margin-bottom: 15px;
}

#content #flash ul li:nth-child(2) {
    border-color: #008000;
}

#content #flash ul li:nth-child(3) {
    border-color: #00f;
}

#content #flash ul li:nth-child(4) {
    border-color: #f00;
}

#content #flash ul li:nth-child(5) {
    border-color: #008080;
}

#content #flash ul li a {
    display: block;
    font-size: 14px;
    text-align: center;
}

#content #flash ul li a img {
    width: 160px;
    height: 160px;
    opacity: 0.8;
    margin: 37px;
}

#content #flash ul li a .discount {
    font-size: 12px;
    color: #b0b0b0;
    margin: 15px 0;
}

#content #flash ul li a .item_price {
    color: #1baeae;
}

#content #flash ul li a:hover img {
    opacity: 1;
}

#content #flash .time {
    background-color: #f1eded;
}

#content #flash .time .name {
    margin-top: 53px;
    font-size: 21px;
    color: #ef3a3b;
}

#content #flash .time img {
    width: 34px;
    height: 53px;
}

#content #flash .time .text {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.54);
}

#content #flash .time .flashTime {
    margin: 28px 33px 0;
    color: #fff;
    font-size: 24px;
    line-height: 46px;
    display: flex;
    justify-content: center;
}

#content #flash .time .flashTime .box {
    width: 46px;
    height: 46px;
    background-color: #605751;
}

#content #flash .time .flashTime .dosh {
    height: 46px;
    font-size: 28px;
    color: #605751;
}

/* 推荐区域 - 横向逐个滚动 */
#content #recommend {
    width: 1226px;
    position: relative;
    flex-shrink: 0;
    height: auto;
    min-height: 400px;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    padding: 0;
}

#content #recommend > h2 {
    height: 48px;
    line-height: 48px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding: 0 20px;
}

/* 为你推荐Swiper轮播样式 */
#content #recommend .recommend-goods-swiper {
    width: 100%;
    padding: 0 50px 20px 50px;
    overflow: hidden;
}

#content #recommend .recommend-goods-swiper .swiper-wrapper {
    display: flex;
    flex-direction: row;
}

#content #recommend .recommend-goods-swiper .swiper-slide {
    width: 234px;
    height: auto;
    flex-shrink: 0;
}

/* 为你推荐Swiper箭头样式 */
#content #recommend .recommend-goods-swiper .swiper-button-prev,
#content #recommend .recommend-goods-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 102, 0, 0.8);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
}

#content #recommend .recommend-goods-swiper .swiper-button-prev:hover,
#content #recommend .recommend-goods-swiper .swiper-button-next:hover {
    background: rgba(255, 102, 0, 1);
}

#content #recommend .recommend-goods-swiper .swiper-button-prev::after,
#content #recommend .recommend-goods-swiper .swiper-button-next::after {
    content: '';
    font-size: 0;
}

#content #recommend .recommend-goods-swiper .swiper-button-prev::before {
    content: '❮';
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

#content #recommend .recommend-goods-swiper .swiper-button-next::before {
    content: '❯';
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

/* 推荐商品横向滚动容器 */
.recommend-goods-scroll {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 0 20px 0;
}

.recommend-goods-track {
    display: grid;
    grid-template-rows: repeat(2, 310px);
    grid-auto-flow: column;
    grid-auto-columns: 234px;
    gap: 15px;
    width: max-content;
    cursor: grab;
    user-select: none;
    will-change: transform;
}

.recommend-goods-track:active {
    cursor: grabbing;
    transition: none;
}

.recommend-goods-track.dragging {
    animation-play-state: paused !important;
}

.recommend-goods-item {
    width: 234px;
    height: 310px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.recommend-goods-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.recommend-goods-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.recommend-goods-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative; /* 为销量徽章提供定位上下文 */
}

.recommend-goods-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.recommend-goods-item:hover .recommend-goods-image img {
    transform: scale(1.05);
}

.recommend-goods-info {
    padding: 10px 12px;
    position: relative;
}

.goods-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    background: #4caf50;
    margin-bottom: 6px;
}

.goods-tag.hot {
    background: #f44336;
}

.goods-tag.discount {
    background: #ff9800;
}

/* 热卖标签定位到右下角 */
.recommend-goods-info .goods-tag {
    position: absolute;
    bottom: 10px;
    right: 12px;
    margin-bottom: 0;
    z-index: 10;
}

.recommend-goods-name {
    font-size: 13px;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recommend-goods-price {
    margin: 0 0 6px 0;
    color: #ff4400;
    font-size: 18px;
    font-weight: bold;
}

.recommend-goods-price .price-symbol {
    font-size: 12px;
}

.recommend-goods-shop {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-goods-shop i {
    font-size: 12px;
    flex-shrink: 0;
}

.recommend-goods-desc {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* ===== 移动端/平板分类宫格图标样式 ===== */
.mobile-category-icons {
    display: none; /* PC端默认隐藏 */
    padding: 15px 10px;
    background: #fff;
    width: 100%;
}

.category-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px 10px;
    padding: 0 5px;
}

.category-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 5px 0;
}

.category-grid-item .icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.category-grid-item .icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-grid-item:active .icon-circle {
    transform: scale(0.92);
}

.category-grid-item .icon-circle i {
    font-size: 22px;
    color: #fff;
}

.category-grid-item .icon-text {
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 64px;
    text-align: center;
}

/* ===== 平板端适配 (769px - 1023px) ===== */
@media (min-width: 769px) and (max-width: 1023px) {
    /* Banner: 分类栏+轮播图并排 flex布局 */
    #content #banner {
        width: 100% !important;
        padding: 0 15px;
    }

    #content #banner .all-sort-list {
        width: 200px;
        flex-shrink: 0;
    }

    #content #banner .all-sort-list .item h3 {
        width: 170px;
        font-size: 14px;
    }

    #content #banner .all-sort-list .item-list {
        left: 200px;
        width: 500px;
    }

    #content #banner .swiper-container {
        flex: 1;
        min-width: 0;
        width: auto;
        height: 350px;
    }

    /* 各板块宽度自适应 */
    #content #sub_banner,
    #content #flash,
    #content #recommend {
        width: 100% !important;
        padding: 0 15px;
    }

    /* 商品 grid 自适应 */
    .hot-goods-track,
    .new-goods-track,
    .recommend-goods-track {
        grid-auto-columns: 180px;
    }

    .hot-goods-item,
    .new-goods-item,
    .recommend-goods-item {
        width: 180px !important;
    }

    .hot-goods-image,
    .new-goods-image,
    .recommend-goods-image {
        height: 180px !important;
    }

    /* 标题字体 */
    #content #sub_banner > h2,
    #content #flash > h2,
    #content #recommend > h2 {
        font-size: 18px;
    }

    /* 导航栏 */
    #nav .banner_x {
        width: 100% !important;
        padding: 0 15px;
    }

    #nav .list li {
        margin-left: 15px;
    }

    #nav .search {
        width: 40% !important;
    }

    /* 显示移动端分类宫格图标 */
    .mobile-category-icons {
        display: block !important;
    }
}

/* ===== 小平板竖屏 (max-width: 900px) ===== */
@media (max-width: 900px) {
    #content #banner .all-sort-list {
        width: 160px !important;
    }

    #content #banner .all-sort-list .item h3 {
        width: 130px !important;
    }

    #content #banner .swiper-container {
        height: 280px !important;
    }
}

/* ===== 手机端分类导航（仅手机端显示，PC/平板隐藏）===== */
.pdd-category-nav {
    display: none;
    background: #fff;
    padding-bottom: 4px;
}

/* 一级分类：一行横向可滑动标签条，手指在条上滑动仅条自身滚动，不影响页面 */
.pdd-cat-tabs {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain; /* 防止滑动到边界时带动页面横向滚动 */
    touch-action: pan-x; /* 只允许水平方向触摸滚动 */
    white-space: nowrap;
    padding: 10px 6px 2px;
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
}

.pdd-cat-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari 隐藏滚动条 */
}

.pdd-cat-tab {
    flex-shrink: 0;
    padding: 6px 13px 8px;
    font-size: 14px;
    color: #333;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.pdd-cat-tab:active {
    color: #e02e24;
    font-weight: bold;
}

/* ===== 移动端适配 (≤768px) ===== */
@media (max-width: 768px) {
    /* 禁止页面整体横向滚动，确保只有分类条自身可滑动 */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    /* 手机端隐藏旧的分类宫格，改用拼多多风格分类导航 */
    .mobile-category-icons {
        display: none !important;
    }

    .pdd-category-nav {
        display: block;
    }

    /* 手机端隐藏整个 Banner 区（分类侧边栏+轮播图），轮播图仅PC/平板保留 */
    #content #banner {
        display: none !important;
    }

    /* 各板块自适应 */
    #content #sub_banner,
    #content #flash,
    #content #recommend {
        width: 100% !important;
        padding: 0 10px;
        overflow: hidden; /* 防止轮播轨道克隆内容导致横向溢出 */
    }

    #sub_banner h2 {
        font-size: 18px;
    }

    /* 商品 grid 适配：两行横向持续循环轮播 */
    .hot-goods-track,
    .new-goods-track,
    .recommend-goods-track {
        grid-template-rows: repeat(2, auto) !important;
        grid-auto-columns: calc(50vw - 25px) !important;
        gap: 10px !important;
    }

    .hot-goods-item,
    .new-goods-item,
    .recommend-goods-item {
        width: calc(50vw - 25px) !important;
        height: auto !important;
        min-height: 220px;
    }

    .hot-goods-image,
    .new-goods-image,
    .recommend-goods-image {
        height: 150px !important;
    }

    .hot-goods-image img,
    .new-goods-image img,
    .recommend-goods-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .hot-goods-name,
    .new-goods-name,
    .recommend-goods-name {
        font-size: 12px !important;
        line-height: 1.3 !important;
        height: 32px !important;
    }

    .hot-goods-price,
    .new-goods-price,
    .recommend-goods-price {
        font-size: 14px !important;
    }

    .hot-goods-shop,
    .new-goods-shop,
    .recommend-goods-shop {
        font-size: 11px !important;
    }

    /* 导航栏 */
    #nav .banner_x {
        width: 100% !important;
        padding: 0 10px;
    }

    #nav .list {
        display: none !important;
    }

    #nav .search {
        width: 60% !important;
    }
}

