@charset "utf-8";

html,
body {
    background-color: #f2f2f2;
}

img {
    width: 100%;
}

.head-wrapper {
    position: fixed;
    left: 0;
    right: 0;
    background-color: #fff;
    overflow: hidden;
    z-index: 999;
}

.top-title {
    position: relative;
    height: 1.5rem;
}

.content-wrapper {
    padding-top: 1.5rem;
}

.top-search {
    position: relative;
    overflow: hidden;
}

.top-search>span {
    font-weight: bold;
}

.list-wrapper {
    position: relative;
    overflow: hidden;
}

.list-wrapper .item-title {
    line-height: 1.2rem;
    font-size: 0.5rem;
    font-weight: bold;
    padding-left: 0.5rem;
    position: relative;
}

.item-title:before {
    position: absolute;
    display: block;
    content: '';
    left: 0;
    top: 0.3rem;
    bottom: 0.3rem;
    width: 0.2rem;
    background-color: #e53c42;
}

.list-cell {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.list-cell.goods-list {
    justify-content: flex-start;
}

.list-cell,
.list-cell>li {
    position: relative;
    overflow: hidden;
}

.list-cell>li.cell-link {
    border-radius: 0.2rem;
    box-shadow: 0 0 5px #ccc;
    margin-bottom: 2%;
}

.list-wrapper:not(.activity) .cell-link {
    border-radius: 0.2rem;
    box-shadow: 0 0 5px #aaa;
}

.list-wrapper .cell-link:nth-child(even) {
    float: right;
}

.list-wrapper:not(.activity) .cell-link img {
    width: 100%;
}

.list-banner {
    position: relative;
    background-image: url(../../images/unicom_package/channel_banner_bg.png);
    width: 100%;
    height: 2rem;
    margin: 0.25rem 0;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.list-banner .left-cell {
    position: absolute;
    height: 1.5rem;
    left: 1rem;
    top: 50%;
    transform: translate(0, -50%);
    width: auto;
}

.list-banner .right-cell {
    position: absolute;
    height: 1.8rem;
    right: 1rem;
    top: 50%;
    transform: translate(0, -50%);
    width: auto;
}

.swiper-wrapper {
    height: auto !important;
    max-height: 100% !important;
}


.footer-wrapper {
    background-color: #d61518;
    text-align: center;
    padding: 0.4rem 0;
}

.footer-wrapper .link,
.footer-wrapper .link a {
    line-height: 0.75rem;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.3rem;
}

.footer-wrapper .link a {
    cursor: pointer;
}

.goods-box {
    position: relative;
    padding: 0.3rem;
    overflow: hidden;
}

.cell-link>a {
    text-decoration: none !important;
    cursor: pointer;
}

.goods-box {
    background-color: #fff !important;
}

.goods-box img {
    border-radius: 0.2rem;
}

.goods-box .goods-title {
    font-size: 0.4rem;
    font-weight: bold;
    line-height: 0.8rem;
    color: #333;
}

.goods-box .goods-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.27rem;
    line-height: 0.45rem;
    min-height: 0.9rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.goods-box .goods-bottom {
    position: relative;
    overflow: hidden;
}

.goods-box .buy-btn {
    overflow: hidden;
    height: 0.75rem;
    float: right;
    vertical-align: bottom;
    width: 2rem;
    margin-left: 0.2rem;
}

.goods-box .buy-btn>img {
    height: 100%;
}

.goods-box .goods-price {
    font-size: 0.75rem;
    color: #e53c42;
    font-weight: bold;
    float: right;
    line-height: 0.75rem;
}

@media screen and (max-width:768px) {
    .head-wrapper {
        padding: 0;
    }

    img.top-logo {
        display: none;
    }

    .content-wrapper {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }

    .top-search {
        width: 100%;
    }

    .top-search>span {
        font-size: 0.5rem;
        font-weight: bold;
        line-height: 1.5rem;
        display: inline-block;
        width: 25%;
        padding-left: 0.25rem;
        text-align: center;
    }

    .top-search .search-box {
        display: inline-block;
        width: 55%;
        height: 1rem;
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translate(0, -50%);
        padding-left: 1rem;
        background-color: #f2f2f2;
        border-radius: 2rem;
        overflow: hidden;
    }

    .search-box:before {
        position: absolute;
        display: block;
        content: '';
        background-image: url(../../images/unicom_package/search_icon.png);
        width: 0.5rem;
        height: 0.5rem;
        left: 0.2rem;
        top: 50%;
        transform: translate(0, -50%);
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .search-box>input {
        display: block;
        height: 100%;
        width: 100%;
        padding: 0;
        border: none;
        background-color: #f2f2f2;
        float: right;
        font-size: 0.3rem;
    }

    .cell-link {
        overflow: hidden;
        position: relative;
        width: 100%;
        float: left;
        margin-bottom: 0.3rem;
    }

    .cell-link:last-child {
        margin-bottom: 0;
    }

    .cell-link img {
        width: 50%;
        float: left;
    }

    .list-wrapper:not(.activity) .cell-link {
        width: 49%;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }

    .footer-wrapper .link .c-link {
        display: block;
        text-align: center;
    }

    .goods-box .buy-btn {
        overflow: hidden;
        height: 0.5rem;
        float: right;
        vertical-align: bottom;
        width: 1.25rem;
        margin-left: 0.2rem;
    }

    .goods-box .goods-price {
        font-size: 0.5rem;
        color: #e53c42;
        font-weight: bold;
        float: right;
        line-height: 0.5rem;
    }

    .list-cell>li.cell-link {
        margin-bottom: 3%;
    }
	
    .list-wrapper .goods-list{
        display: flex;
        justify-content: space-between;
    }
}

@media screen and (min-width: 768px) {
    img.top-logo {
        width: 4rem;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translate(0, -50%);
    }

    .head-wrapper {
        padding: 0 4rem;
    }

    .list-wrapper {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .top-search {
        width: 50%;
        float: right;
    }

    .top-search .search-box {
        display: inline-block;
        height: 1rem;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translate(0, -50%);
        padding-left: 1rem;
        background-color: #f2f2f2;
        border-radius: 2rem;
        overflow: hidden;
    }

    .search-box:before {
        position: absolute;
        display: block;
        content: '';
        background-image: url(../../images/unicom_package/search_icon.png);
        width: 0.5rem;
        height: 0.5rem;
        left: 0.2rem;
        top: 50%;
        transform: translate(0, -50%);
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .search-box>input {
        display: block;
        height: 100%;
        width: 100%;
        padding: 0;
        border: none;
        background-color: #f2f2f2;
        float: right;
        font-size: 0.3rem;
    }

    .cell-link {
        overflow: hidden;
        position: relative;
        width: 48.5%;
        float: left;
        margin-bottom: 0.3rem;
    }

    .cell-link:last-child {
        float: right;
    }

    .cell-link img {
        width: 100%;
        float: left;
    }

    .number .list-cell .cell-link {
        width: 23.5%;
        margin-right: 2%;
        float: left !important;
    }

    .number .list-cell .cell-link:nth-child(4n) {
        margin-right: 0;
    }

    .package .list-cell .cell-link {
        width: 32%;
        /* margin-right: 2%;
        float: left !important; */
    }

    .list-cell.goods-list .cell-link:not(:nth-child(3n + 3)) {
        margin-right: 1.8%;
    }

    /* .package .list-cell .cell-link:nth-child(3n) {
        margin-right: 0;
    } */

    .footer-wrapper {
        padding-right: 50%;
        position: relative;
    }

    .footer-wrapper .logo-pic {
        position: absolute;
        width: 50%;
        padding-top: 10%;
        right: 5%;
        top: 50%;
        transform: translate(0, -50%);
        overflow: hidden;
    }

    .logo-pic img {
        position: absolute;
        right: 5%;
        left: 0;
        top: 50%;
        transform: translate(0, -50%);
        max-width: 695px !important;
        max-height: 140px !important;
        width: 100%;
        height: 100%;

    }
}
