/* 整体布局：垂直排列 */
#content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #F6F6F6;
}

/* 顶部 Banner 区域：左右排列 */
#content #banner {
    width: 1226px;
    height: 460px;
    display: flex; /* 关键：启用 Flexbox */
    justify-content: space-between; /* 两端对齐 */
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* 左侧分类菜单 */
.all-sort-list {
    position: relative;
    width: 234px;
    height: 460px; /* 固定高度 */
    background: #fff;
    padding: 20px 0;
    box-sizing: border-box; /* 包含 padding */
}

.all-sort-list .item {
    height: 42px;
}

.all-sort-list .item:hover {
    background: #f7f8fa;
}

.all-sort-list .item h3 {
    height: 30px;
    line-height: 45px;
    font-size: 15px;
    font-weight: normal;
    width: 199px;
    overflow: hidden;
}

.all-sort-list .item span {
    padding: 0px 5px;
    color: #1baeae;
    font-family: "\5B8B\4F53";
}

.all-sort-list .item > a {
    position: relative;
    top: 12px;
    padding-left: 30px;
    color: #808080;
    text-decoration: none;
    display: block; /* 确保占满 */
}

.all-sort-list .item i {
    position: absolute;
    right: 20px;
    top: 0;
}

/* 分类子菜单 */
.all-sort-list .item-list {
    display: none;
    position: absolute;
    width: 992px;
    min-height: 460px;
    background: #FFF;
    left: 234px;
    box-shadow: 0px 0px 10px #DDDDDD;
    top: 0px;
    z-index: 100; /* 提高层级，防止被轮播图遮挡 */
}

.all-sort-list .item:hover .item-list {
    display: block;
}

.item-list .subitem {
    float: left;
    padding: 0px 4px 0px 35px;
}

.item-list .subitem dl {
    border-top: 1px solid #EEE;
    padding: 10px 0px;
    overflow: hidden;
}

.item-list .subitem .fore1 {
    border-top: none;
}

.item-list .subitem dt {
    float: left;
    line-height: 43px;
    text-align: left;
    padding: 10px 6px 0px 0px;
    font-weight: 700;
    color: #1baeae;
}

.item-list .subitem dt a {
    color: black;
}

.item-list .subitem dd {
    padding: 10px 0 0 55px;
    overflow: hidden;
}

.item-list .subitem dd em {
    float: left;
    height: 14px;
    line-height: 20px;
    padding: 8px 10px;
    margin-top: 5px;
    font-style: inherit;
}

.item-list .subitem a:hover {
    color: #00BCD4;
}

.item-list .subitem dd em a, .item-list .cat-right dd a {
    color: #666;
    text-decoration: none;
}

/* 右侧轮播图 */
#content #banner .swiper-container {
    width: 992px; /* 1226 - 234 = 992 */
    height: 460px;
}

#content #banner .swiper-container .swiper-wrapper .swiper-slide img {
    width: 100%;
    height: 100%;
}

/* 新品上线 */
#content #flash {
    width: 1226px;
    flex-shrink: 0;
    margin-top: 20px;
}

#content #flash > h2 {
    height: 58px;
    line-height: 58px;
    font-weight: 200;
}

#content #flash ul {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

#content #flash ul li {
    position: relative;
    width: 234px;
    height: 352px;
    background-color: #fff;
    margin-right: 14px;
    margin-bottom: 20px;
}

#content #flash ul li:nth-child(5n) {
    margin-right: 0;
}

#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:hover  {
    transition: all .2s linear;
    box-shadow: 0 15px 30px rgba(0,0,0,.1);
    transform: translate3d(0,-2px,0);
}

.grid-tips {
    position: absolute;
    top: 0px;
    text-align: left;
}

.grid-tips span{
    display: inline-block;
    padding: 0 12px;
    margin: 0 auto;
    height: 24px;
    line-height: 24px;
    color: #fff;
    border-radius: 0 8px 8px 8px;
    font-size: 14px;
    font-style: normal;
}

/* 广告横幅 */
.home-banner-box {
    width: 1226px;
    margin-top: 20px;
}

/* 为你推荐 */
#content #recommend {
    width: 1226px;
    position: relative;
    flex-shrink: 0;
    min-height: 300px;
    margin-top: 20px;
}

#content #recommend > h2 {
    height: 58px;
    line-height: 58px;
    font-weight: 200;
}

#content #recommend .more {
    position: absolute;
    top: 18px;
    right: 30px;
}

#content #recommend .more:hover {
    color: #1baeae;
}

#content #recommend ul {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

#content #recommend ul li {
    width: 234px;
    height: 314px;
    background-color: #fff;
    margin-bottom: 20px;
    margin-right: 14px;
}

#content #recommend ul li:nth-child(5n) {
    margin-right: 0;
}

#content #recommend ul li:hover {
    transition: all .2s linear;
    box-shadow: 0 15px 30px rgba(0,0,0,.1);
    transform: translate3d(0,-2px,0);
}

#content #recommend ul li:hover .comment {
    transform: translateY(0);
}

#content #recommend ul li a {
    display: block;
    font-size: 14px;
    text-align: center;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#content #recommend ul li a .info {
    width: 104px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    color: #fff;
    font-size: 10px;
    margin: auto;
}

#content #recommend ul li a .new {
    background-color: #83c44e;
}

#content #recommend ul li a .discount {
    background-color: #45aba1;
}

#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: 160px;
    height: 160px;
    margin: 10px 0 20px;
}

#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;
}
