.all-sort-list {
    flex-wrap: nowrap;
    background: #ffffff;
    margin: 0;
    list-style: none;
    position: relative;
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

.all-sort-list .item {
    position: relative;
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
    width: calc(80% / 5);
    max-width: calc(100% / 5);
}

.all-sort-list .item h3 {
    font-size: 18px;
    line-height: 50px;
    margin: 0;
}

/* 先隐藏弹框 */
.item-list {
    display: none;
    position: fixed; /* 用fixed跳脱掉父级限制 */
    background: #ffffffb0;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    padding: 10px;
    z-index: 9999;

    width: calc(65% / 5);
    max-width: calc(65% / 5);
    border-radius: 10px;
    border-radius: 0 0 20px 20px;
}






.all-sort-list li {
    display: inline-block;
}

.all-sort-list .item.bo {
    border-top: none;
}



.all-sort-list .item span {
    padding: 0px 5px;
    color: #1baeae;
    font-family: "\5B8B\4F53";
}

.all-sort-list .item a {
    color: #000000;
    text-decoration: none;
}

.all-sort-list .item a:hover {
    font-weight: bold;
    color: #1baeae;
}



/* 鼠标悬停在.item 上时显示.item-list */
.all-sort-list .item:hover .item-list {
    display: block;
}







#content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

#content #banner {
    width: 100%;
    flex-shrink: 0;
}

#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 {
    width: 100%;
    height: 100%;
}

#content #banner .swiper-container .swiper-wrapper .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

#content #sub_banner {
    display: flex;
    width: 1226px;
    flex-shrink: 0;
    justify-content: space-between;
    height: 295px;
    margin-top: 15px;
}

#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: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%;

}

#content #sub_banner .hot-image a img:hover {
    opacity: 1;
}

#content #flash {
    width: 1226px;
    flex-shrink: 0;
    height: 398px;
    margin-top: 20px;
}

#content #flash > h2 {
    height: 58px;
    line-height: 58px;
}

#content #flash ul {
    display: flex;
    justify-content: space-between;
}

#content #flash ul li {
    width: 234px;
    height: 352px;
    background-color: #fafafa;
    border-top: 1px solid #ffa500;
}

#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: 200px;
    height: 200px;
    margin: 35px 15px;
}

#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 #flash1 {
    width: 1226px;
    flex-shrink: 0;
    height: 398px;
    margin-top: 50px;
}

#content #flash1 > h2 {
    height: 58px;
    line-height: 58px;
}

#content #flash1 ul {
    display: flex;
    justify-content: space-between;
}

#content #flash1 ul li {
    width: 300px;
    height: 352px;
    background-color: #fafafa;
    border-top: 1px solid #ffa500;
}

#content #flash1 ul li:nth-child(2) {
    border-color: #008000;
}

#content #flash1 ul li:nth-child(3) {
    border-color: #00f;
}

#content #flash1 ul li:nth-child(4) {
    border-color: #f00;
}

#content #flash1 ul li:nth-child(5) {
    border-color: #008080;
}

#content #flash1 ul li a {
    display: block;
    font-size: 14px;
    text-align: center;
}

#content #flash1 ul li a img {
    width: 240px;
    height: 240px;
    margin: 20px auto;
    object-fit: contain;
    border-radius:5px;
}

#content #flash1 ul li a .discount {
    font-size: 12px;
    color: #b0b0b0;
    margin: 15px 0;
}

#content #flash1 ul li a .item_price {
    color: #1baeae;
}

#content #flash1 ul li a:hover img {
    opacity: 1;
}

#content #flash1 .time {
    background-color: #f1eded;
}

#content #flash1 .time .name {
    margin-top: 53px;
    font-size: 21px;
    color: #ef3a3b;
}

#content #flash1 .time img {
    width: 34px;
    height: 53px;
}

#content #flash1 .time .text {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.54);
}

#content #flash1 .time .flashTime {
    margin: 28px 33px 0;
    color: #fff;
    font-size: 24px;
    line-height: 46px;
    display: flex;
    justify-content: center;
}

#content #flash1 .time .flashTime .box {
    width: 46px;
    height: 46px;
    background-color: #605751;
}

#content #flash1 .time .flashTime .dosh {
    height: 46px;
    font-size: 28px;
    color: #605751;
}

#content #recommend {
    width: 1226px;
    position: relative;
    flex-shrink: 0;
    height: 730px;
    margin: 30px 0px;

}

#content #recommend > h2 {
    height: 58px;
    line-height: 58px;
}

#content #recommend .more {
    position: absolute;
    top: 18px;
    right: 30px;
}

#content #recommend .more:hover {
    color: #1baeae;
}

#content #recommend ul {
    display: flex;
    height: 614px;
    justify-content: space-between;
    align-content: space-between;
    flex-wrap: wrap;
}

#content #recommend ul li {
    width: 234px;
    height: 324px;
    background-color: #fafafa;
    margin-bottom: 20px;
    margin-left: 4px;
    margin-right: 6px;
}

#content #recommend ul li:nth-child(1) .hot-image,
#content #recommend ul li:nth-child(6) .hot-image {
    width: 100%;
    height: 100%;
    margin: 0;
}

#content #recommend ul li:hover {
    box-shadow: 0px 0px 30px #ccc;
}

#content #recommend ul li:hover .comment {
    transform: translateY(0);
}

#content #recommend ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    text-align: center;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#content #recommend ul li a .info {
    width: 80%;
    height: 20px;
    text-align: center;
    line-height: 20px;
    color: #fff;
    font-size: 14px;
    border-radius: 2px;
}

#content #recommend ul li a .new {
    background-color: #83c44e;
}

#content #recommend ul li a .discount {
    background-color: #5dc1c1;
    margin-top: 8px;
}

#content #recommend ul li a > p {
    height: 25px;
    line-height: 25px;
    font-size: 14px;
}

#content #recommend ul li a .item_price {
    color: #1baeae;
}

#content #recommend ul li a .counter {
    height: 15px;
    line-height: 15px;
    color: #aaa;
    font-size: 12px;
}

#content #recommend ul li a img {
    width: 200px;
    height: 200px;
    margin: 10px 0 10px;
    object-fit: contain;
}

#content #recommend ul li a .comment {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(101%);
    transition: transform 0.4s;
    box-sizing: border-box;
    height: 70px;
    padding: 10px 0 0 30px;
    background-color: #1baeae;
    color: #fff;
    text-align: left;
}

#content #recommend ul li a .comment p {
    font-size: 12px;
    margin-top: 5px;
}








/* 标准清浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 修复 all-sort-list 高度问题 */
.all-sort-list {
    overflow: hidden; /* 让它自动包住子元素，不塌陷 */
    /* height: xxx;   注意：如果原来这里写了height，最好删掉，让高度自适应 */
}

/* item-list 内部结构样式优化 */
.item-list {
    padding: 10px 0; /* 适当留点间距，看起来不会太挤 */
}

.subitem {
    overflow: hidden; /* 子项也防止塌陷 */
    text-align: center;
}

/* 可选：每一个商品小分类，稍微排版一下 */
.subitem dl {
    margin: 0 10px 10px 0;
}

.subitem dt {
    font-weight: bold;
    margin-bottom: 5px;
}

.subitem dd em {
    margin-right: 5px;
}
.item-list .subitem dl.fore1 dd em {
    display: block; /* 让em元素换行显示 */
    font-style: normal; /* 取消字体倾斜 */
    margin-top: 10px;
}