/* 首页样式文件 */

/* header css start */
.header {
    height: 44px;
    background-color: #0EB6FF;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 9;
}

.header .position {
    /* border: 1px solid red; */
    margin: 0 16px 0 15px;
}

.header .position .icon-dingwei {
    font-size: 22px;
    color: #fff;
}

.header .search {
    /* border: 1px solid red; */
    flex: 1;
    /*占满所有的剩余空间*/
    position: relative;
}

.header .search .input-search {
    border: none;
    height: 30px;
    width: 100%;
    border-radius: 15px;
    background-color: #fff;
    padding-left: 35px;
}

.header .search .icon-fangdajing {
    position: absolute;
    font-size: 13px;
    left: 12px;
    top: 6px;
    font-size: 19px;
    color: #9D9E9E;
}

.header .chat {
    /* border: 1px solid red; */
    margin: 0 11px 0 12px;
}

.header .chat .icon-chat {
    font-size: 19px;
    color: #fff;
}

/* header css end */


/* nav css start */
.menu {
    /* min-height: 300px; */
    /* background-color: red; */
}

.menu ul {
    display: grid;
    /* 不要去设置行和高 */
    grid-template-columns: repeat(5, 1fr);
    column-gap: 18px;
    /* border: 1px solid red; */
    margin: 16px 8px 1px;

}

.menu ul li {
    min-height: 100px;
}

.menu ul li .bl1-1 {
    padding-top: 100%;
    border-radius: 50%;
    position: relative;
    /* background-color: #fff; */
}

.bg1 {
    background-color: #bee570;
}

.bg2 {
    background-color: #f8ceb4;
}

.bg3 {
    background-color: #b4ddff;
}

.bg4 {
    background-color: #9dbae1;
}

.bg5 {
    background-color: #ffe38f;
}

.bg6 {
    background-color: #7ad9e8;
}

.bg7 {
    background-color: #c2c1fd;
}

.bg8 {
    background-color: #fecd9a;
}

.bg9 {
    background-color: #98e8c1;
}

.bg10 {
    background-color: #84d1e8;
}

.menu ul li .bl1-1 .iconfont {
    /* border: 1px solid #fff; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 35px;
    color: #fff;
}

.menu ul li .title {
    text-align: center;
    margin: 13px 0 16px;
    color: #101010;
}

/* 当前是屏幕设备，宽度小于等于360px */
@media screen and (max-width: 360px) {
    .menu ul li .bl1-1 .iconfont {
        font-size: 30px;
    }

    .menu ul {
        column-gap: 8px;
    }
}

@media screen and (max-width: 360px) {
    .menu ul li .title {
        white-space: nowrap;
        font-size: 10px;
    }
}

/* nav css end */


/* cheap css start */
.cheap {
    /* min-height: 100px; */
    background-color: #fff;
    border-radius: 5px;
    padding: 15px 10px 12px 10px;
}

.cheap .cheap-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cheap .cheap-title span {
    font-size: 14px;
    font-weight: bold;
}

.cheap .cheap-title a {
    font-size: 12px;
    color: #101010;
}

.cheap .cheap-title .more {
    color: #101010;
}

.cheap .cheap-content {
    /* background-color: blue; */
    /* min-height: 200px; */
    overflow: hidden;
}

.cheap .cheap-content ul {
    width: calc(100% + 26px);
    /* background-color: red; */
    display: flex;
    margin-top: 13px;
}

.cheap .cheap-content ul li {
    width: 33.333%;
    /* border: 1px solid #fff; */
    /* min-height: 100px; */
    padding-right: 26px;
}

.cheap .cheap-content .item-content {
    /* background-color: yellow; */
    /* min-height: 150px; */
}

.bl94-81 {
    padding-top: calc(81/94 * 100%);
    /* background-color: green; */
    position: relative;
    /* border: 1px dotted #adadad; */
}

.bl94-81 img {
    position: absolute;
    left: 0;
    top: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.cheap .cheap-content .item-content .title {
    margin: 10px 0 12px 0;
    font-size: 12px;
    text-align: center;
}

.cheap .cheap-content .item-content .title .txt {
    color: #101010;
}

.cheap .cheap-content .item-content .info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cheap .cheap-content .item-content .price {
    font-size: 12px;
    color: #ce5f41;
}

.cheap .cheap-content .item-content .price i {
    color: #101010;
    font-style: normal;
}

.cheap .cheap-content .item-content .cart {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #0eb6ff;

    text-align: center;
    line-height: 22px;
}

.cheap .cheap-content .item-content .cart .iconfont {
    font-size: 12px;
    color: #fff;
}

/* cheap css end */



/* recommend-product css start */
.recommend-product {
    /* min-height: 200px; */
    /* background-color: khaki; */
    margin-top: 10px;
    display: flex;
    column-gap: 9px;
}

.recommend-product .product-item {
    flex: 1;
    /* min-height: 100px; */
    background-color: #fff;
    border-radius: 5px;
    /* border: 1px solid #000; */
    padding: 15px 0 12px 0;
    min-width: 0;
    /*非常重要代码*/
}

.recommend-product .product-item .title {
    font-size: 14px;
    font-weight: bold;
    margin-left: 13px;
}

.recommend-product .product-item .desc {
    font-size: 12px;
    color: #9d9e9d;
    margin: 12px 0 7px 12px;
}

.product-item .product-list ul {
    display: flex;
    column-gap: 10px;
    padding: 0 15px;
}

.product-item .product-list ul li {
    /* border: 1px solid #000; */
    flex: 1;
    /* min-height: 100px; */
}

.product-item .bl1-1 {
    padding-top: 100%;
    /* background-color: #ccc; */
    position: relative;
}

.product-item .bl1-1 img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* recommend-product css end */


/* product-category CSS start */
.product-category {
    padding-bottom: 80px;
}

.product-category .tab-header {
    /* min-height: 100px; */
    background-color: #F5F5F5;
    padding: 23px 0 12px;
    position: sticky;
    top: 44px;
    z-index: 9;
}

.product-category .tab-header .swiper-wrapper {
    display: flex;
    justify-content: space-between;
}

.product-category .tab-header .swiper-slide {
    width: auto;
    /* border: 1px solid red; */
}

.product-category .tab-header .swiper-slide.swiper-slide-thumb-active p {
    color: #0eb6ff;
}

.product-category .tab-header .swiper-slide.swiper-slide-thumb-active span {
    background-color: #0eb6ff;
    color: #fff;
}

.product-category .tab-header .swiper-slide p {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.product-category .tab-header .swiper-slide span {
    display: block;
    width: 63px;
    height: 17px;
    /* background-color: skyblue; */
    border-radius: 9px;
    text-align: center;
    line-height: 17px;
    color: #9d939d;
}

.product-category .tab-content {
    /* min-height: 100px; */

}

.product-category .tab-content .swiper-slide {
    /* min-height: 400px; */
    /* background-color: skyblue; */
}

.product-category .tab-content .tab-content-item {
    /* min-height: 200px; */
    background-color: #fff;
    border-radius: 5px;
    display: flex;
}

.product-category .tab-content li {
    margin-bottom: 10px;
}

.product-category .tab-content .tab-content-item .img {
    width: calc(103 / 353 * 100%);
    /* min-height: 100px; */
    /* background-color: khaki; */
    padding: 23px 0 0 9px;
}

.product-category .tab-content .tab-content-item .info {
    width: calc(250 / 353 * 100%);
    min-height: 100px;
    padding-left: 13px;
    /* background-color: #ccc; */
}

.product-category .tab-content .tab-content-item .info .title {
    font-size: 14px;
    color: #101010;
    padding: 15px 10px 0 0px;
    height: calc(14px + 23px + 15px);
    /* line-height: 1.2; */
}

.product-category .tab-content-item .info .marks {
    display: flex;
    align-items: center;
    /* padding-left: 9px; */
}

.product-category .tab-content-item .info .mark {
    color: #9d9e9d;
    border: 1px solid #9d9e9d;
    padding: 3px 6px;
    margin-right: 5px;
    border-radius: 4px;
}

.product-category .tab-content-item .info .mark.active {
    border-color: #ce5f41;
    color: #ce5f41;
}

.product-category .tab-content-item .price-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 9px; */
    margin-top: 4px;
}

.product-category .tab-content-item .price {
    color: #ce5f41;
    font-family: Arial;
    font-weight: 400;
}

.product-category .tab-content-item .price i {
    color: #101010;
    font-style: normal;
}

.product-category .tab-content-item .cart {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #0eb6ff;
    color: #fff;
    font-size: 12px;

    text-align: center;
    line-height: 22px;
    margin-right: 14px;
}

.product-category .tab-content-item .count {
    color: #9d9e9d;
    margin-top: 7px;
    margin-bottom: 15px;
    /* padding-left: 9px; */
}

/* product-category CSS end */


/* tabbar CSS start*/
.tabbar {
    height: 60px;
    width: 100%;
    background-color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;
    /* padding-bottom: 10px; */
    /* 兼容 IOS<11.2 */
    padding-bottom: const(safe-area-inset-bottom);
    /*  兼容 IOS>11.2*/
    padding-bottom: env(safe-area-inset-bottom);
    /* 适配iPhone底部安全区域 */
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
}

.tabbar ul {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 35px;
    width: 100%;
    height: 100%;
}

.tabbar ul .tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* border: 1px solid red; */
    text-align: center;
}

.tabbar ul .tabbar-item .txt {
    margin-top: 5px;
    color: #9d9e9d;
}

.tabbar ul .tabbar-item.active .iconfont {
    color: #0eb6ff;
}

.tabbar ul .tabbar-item.active .txt {
    color: #0eb6ff;

}

.tabbar ul .tabbar-item .iconfont {
    font-size: 20px;
    color: #404040;
}

/* tabbar CSS end */