﻿
html, body {
    /*font-size: 10px;*/
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei';
    -webkit-touch-callout: none;
}

*, a {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    color: inherit;
}

h1, h2, h3, h4, h5, h6, strong, i, em, address, caption, cite, code, dfn, th, var {
    font-weight: normal;
    font-style: normal;
    margin: auto;
    padding: 0;
}

fieldset, img {
    border: none;
    display: block;
}

input[type="submit"], input[type="reset"], input[type="button"], button, select {
    -webkit-appearance: none;
}

a, button, input, select, img, label {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
    outline: medium none;
}

ul, li {
    list-style: none;
    padding: 0;
    margin: 0;
}
/*Android：
  主流机型主要为 480x800, 480x854, 540x960, 720x1280, 800x1280 这五种。
  （非主流机型还包括：240x320, 320x480, 640x960 这三种，其中两种都与 iPhone 一致。）
iOS: 主流机型主要为 320x480, 640x960, 640x1136, 1024x768, 2048x1536, 这五种。

       //alert(window.devicePixelRatio );
  //  alert(window.screen.width );
*/
@media screen and (min-width: 240) and (max-width: 320px) {
    html {
        font-size: 8px !important;
    }
}

@media screen and (min-width: 320px) and (max-width: 375px) {
    html {
        font-size: 10px !important;
    }
}

@media only screen and (min-width: 375px) and (max-width: 480px) {
    html {
        font-size: 12px !important;
    }
}

@media only screen (min-width: 480px) {
    html {
        font-size: 10px !important;
    }
}

.img-box {
    width: 100%;
}

    .img-box img {
        width: 100%;
        /*width: 45vw;
        height: 45vw;*/
    }

.flex {
    display: box;
    display: -ms-box;
    display: -webkit-box;
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
}

a {
    text-decoration: none;
}

.flex4 {
    flex: 4;
}

.flex2 {
    flex: 2;
}

.flex1 {
    flex: 1;
}

.flex3 {
    flex: 3;
}

.padding {
    padding: .5rem 1rem;
}

address {
    font-size: 1.2rem;
    color: #777;
}

.padding2 {
    padding: 1rem;
}

.margin {
    margin: 1rem;
}


.one-txt-cut {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.smaller {
    font-size: 1rem;
    color: #666;
}

.small {
    font-size: 1.2rem;
}

.large {
    font-size: 1.6rem;
}

.larger {
    font-size: 2rem;
}

.one-txt-cut {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.txt-cut {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.center {
    text-align: center;
    align-content: center;
    align-items: center;
}

.border-bottom {
    border-bottom: 1px solid #e8e8e8;
}

.border {
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.comment {
    text-align: right;
}

    .comment i {
        color: #0F59A4;
        /*vertical-align: bottom;*/
    }

.color {
    color: #0F59A4;
}

.color-grey {
    color: #666;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.db {
    height: 1rem;
    background-color: #f1f1f1;
}

.right-btn {
    display: inline-block;
    margin: 0;
    text-align: right;
    border-radius: 5px;
    color: #fff;
    border: 0;
    background-color: #0F59A4;
    font-size: 1.2rem;
    vertical-align: middle;
    line-height: 2.5rem;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-user-select: none;
}

.coupon {
    /*width: 85%;*/
    text-align: center;
    flex: 1;
    margin-left: .3rem;
    margin-right: .3rem;
    height: 100%;
    /*padding: 0 .5rem;*/
    position: relative;
    overflow: hidden;
    /*background-color: #F4F4F4;*/
    background-color: #ff7475;
    /*background: radial-gradient(rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 5px, #F39B00 5px);*/
    color: #fff;
    border-radius: .2rem;
    border-left: 1px dashed #F4F4F4;
    border-right: 1px dashed #F4F4F4;
}


    .coupon p {
        margin: 0;
        padding: 0;
    }

    .coupon a {
        display: block;
        background-color: #FF6634;
        border: 0;
        color: white;
        width: 105%;
        position: relative;
        font-size: 1rem;
    }

.tabs a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #555;
    padding: 1rem;
    font-size: 1.4rem;
}

    .tabs a.active {
        border-bottom: 2px solid #0F59A4;
    }

.goods {
    background-color: #F4F4F4;
    padding: 1%;
}

    .goods li {
        flex-basis: 48%;
        margin: 1%;
        background-color: #fff;

    }

.content {
    padding: 1rem;
}

    .content * {
        max-width: 100%;
    }

.fl-cart {
    background-color: rgb(255, 123, 78);
    width: 5rem;
    height: 5rem;
    border-radius: 5rem;
    color: #13D1BE;
    position: fixed;
    left: .5rem;
    bottom: 2rem;
    text-align: center;
    line-height: 5rem;
    z-index: 1;
    display: none;
    color: #fff;
    border: 1px solid #fe5921;
}

#coupon_swiper {
    width: 100%;
    height: 100%;
}

    #coupon_swiper .swiper-slide {
        text-align: center;
        font-size: 18px;
        /*background: #fff;*/
        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
    }

.no-data {
    text-align: center;
    font-size: 1.3rem;
    color: #d2d2d2;
    margin: 10vh auto;
    width: 50vw;
    position: relative;
}
    /*CSS伪类用法*/
    .no-data:after {
        background: #d2d2d2;
        content: "";
        height: 1px;
        position: absolute;
        top: 50%;
        width: 20%;
        right: 1%;
    }

    .no-data:before {
        background: #d2d2d2;
        content: "";
        height: 1px;
        position: absolute;
        top: 50%;
        width: 20%;
        left: 1%;
    }

.cartNumber {
    background-color: #fe5921;
    padding: .3rem;
    border-radius: 100%;
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    top: -1em;
    right: -1.5rem;
    vertical-align: middle;
    line-height: 1;
}

.cart-big {
    animation: bigcart 1s;
    -webkit-animation: bigcart 1s; /* Safari and Chrome */
}

.wave {
    /*animation: cart 1s;
    -webkit-animation: cart 1s; /* Safari and Chrome */ */
}

@keyframes cart {
    from {
        transform: scale(0);
        font-size: 1.5rem;
    }

    to {
        transform: scale(1);
        font-size: 2rem;
    }
}

@keyframes bigcart {
    from {
        transform: scale(0);
        width: 4rem;
        height: 4rem;
    }

    to {
        transform: scale(1);
        width: 5rem;
        height: 5rem;
    }
}
