:root {
    --q-primary: #E54D42;
}

/* reset */
a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #1B9AF7;
}

.q-btn.s-text .block {
    font-size: 0.7rem;
}

/* kit */
.bdr {
    border: #eee solid 1px;
}

/* public */
q-layout[v-cloak] {
    opacity: 0.5;
}

q-layout[v-cloak]+.page-load {
    display: flex !important;
}

.page-load {
    position: fixed;
    top: 40%;
    left: 0;
    right: 0;
    display: none;
    z-index: 9999;
    max-width: 320px;
    margin: auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px #666;
    font-weight: bolder;
    align-items: center;
    justify-content: center;
}

.page-load::before {
    content: '';
    display: block;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    border: 3px solid #666;
    border-top-color: #fff;
    animation: rotate 0.8s infinite linear;
    margin-right: 5px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.page-load:after {
    content: '正在加载，请稍后...';
}

.wrapper {
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

.mobile-head .head-inner {
    box-shadow: 0 0 5px #20202067;
}

.q-footer {
    box-shadow: 0 0 5px #20202067;
}

/* Web Header */
.web-head .search-bar {
    width: 80%;
    max-width: 320px;
}

.web-head .hdr-btn {
    margin-top: 16px;
}

.web-head .hdr-btn .block {
    opacity: 0.6;
}

.nav-bar .nav-links {
    background-color: #ffebee83;
}

.nav-bar .sub-btn {
    line-height: 36px;
    padding: 0 10px;
    color: var(--q-primary);
}

.nav-bar .sub-btn:hover {
    color: rgb(156, 14, 14);
    /*background-color: rgba(190, 122, 122, 0.267);*/
    background-color: rgba(var(--q-primary), 0.3);
}

.nav-btn {
    width: 180px;
}

/* nav-menu */
.nav-menu {
    padding: 5px;
}

.nav-menu.mob-nav {
    width: 220px;
    margin-top: 5px;
}

.nav-menu.mob-nav .q-separator {
    height: 1px;
}

.nav-menu.mob-nav .q-item {
    width: 50%;
    align-items: center;
    justify-content: center;
}

.nav-menu .q-item {
    padding: 0 !important;
}

.nav-menu .q-item .link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.nav-menu .q-item .link .q-icon {
    margin-right: 5px;
}

/* mobile-head */
.mobile-head,
.head-inner {
    height: 50px;
    background-color: #fff;
}

.head-inner.fixed-top {
    box-shadow: 0 0 5px rgba(100, 100, 100, .3);
}

.footer .foot-nav {
    border: #eee solid;
    border-width: 1px 0;
}

.check-form {
    padding: 10px;
}

.lm-wrap.bordered {
    border: #ddd solid 1px;
    border-radius: 5px;
}

.lm-title {
    border-bottom: #000 solid 1px;
}

.lm-title .text {
    display: inline-block;
    padding: 0 10px;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    border-bottom: solid 1px #000;
}

@media only screen and (max-width: 640px) {
    .lm-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* 商品列表项样式 */
.goods-item {
    display: block;
}

.goods-item q-img .soutout {
    display: none;
}

.goods-item .soutout {
    width: 80%;
}

.goods-item .title {
    height: 2em;
    line-height: 1em;
}

.goods-item .price {
    line-height: 1.2em;
    padding: 3px 0;
}

/**
 * 产品详情页
*/
@media only screen and (max-width: 640px) {
    .px-lt-sm {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mx-lt-sm {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* buy-action-bar */
.buy-action-bar {
    z-index: 5999;
}

.buy-action-bar.fixed-bottom .ext-btn .block {
    font-size: smaller;
    line-height: 1.6em;
}

/* attr-picker-pop */
.attr-picker-pop {
    overflow: visible !important;
}

.attr-picker-pop .buy-action-bar {
    position: relative;
}

.attr-picker-pop .attr-options {
    padding-top: 5px;
}

.buy-action-kit .ext-btn {
    width: 74px;
}

.buy-action-kit .ext-btn .block {
    font-size: 0.7em;
    line-height: 1.4em;
}


/* 套餐选择器 */
.cart-animate {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ec4d03;
    transition: left .6s linear, top .6s cubic-bezier(0.5, 1.5, 1, 1);
}

.attr-list .attr-options {
    padding-top: 10px;
}

.attr-picker .title {
    transition: all .3s linear;
}

.attr-picker.error .title {
    color: red;
}

.attr-picker-head .row-attr {
    line-height: 1.2em;
}

.attr-picker-head .thumb-box {
    width: 100px;
    position: relative;
}

.attr-picker-head .thumb {
    position: absolute;
    left: 0;
    bottom: 0;
}

.attr-grid .attr-thumb {
    width: 100px;
    height: 100px;
}

.attr-grid .attr-name {
    width: 100px;
}

@media screen and (max-width: 640px) {}

/* 翻页 */
.pagination {
    display: inline-block;
    white-space: nowrap;
    color: #666;
    margin: 0;
    padding: 0
}

.pagination li {
    display: inline-block;
    cursor: default
}

.pagination li a,
.pagination li span {
    display: inline-block;
    line-height: 26px;
    padding: 0 5px;
    margin: 1px;
    min-width: 10px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 3px
}

.pagination .active span {
    background: #1B9AF7;
    color: #FFF
}

.pagination li span {
    background-color: #f4f4f4
}

@media only screen and (max-width: 640px) {
    .pagination li:not(.active):not(:first-child):not(:last-child) {
        display: none
    }

    .pagination li:first-child>a:after,
    .pagination li:first-child>span:after {
        content: '上一页';
        padding-left: 5px
    }

    .pagination li:last-child>a:before,
    .pagination li:last-child>span:before {
        content: '下一页';
        padding-right: 5px
    }
}

/**********
* 文章系统
**********/
.xw-nav {
    width: 100%;
}

.xw-nav .link {
    line-height: 32px;
}

.atc-content {
    margin: 0 10px;
}

.atc-content h1 {
    font-size: 2em;
}
.atc-content h2 {
    font-size: 1.8em;
}
.atc-content h3 {
    font-size: 1.6em;
}
.atc-content h4 {
    font-size: 1.4em;
}
.atc-content h5 {
    font-size: 1.2em;
}

.atc-content img {
    width: 100%;
    max-width: 730px;
}


/***********
 * AI导购
***********/
.chat-kit {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 999;
    bottom: 70px;
}

.chat-pop {
    height: 75vh;
}

.chat-form {
    height: 50px;
    padding: 5px;
}

.chat-form .q-input {
    margin-right: 5px;
}

.chat-msg-box {
    height: calc(100% - 50px);
}

@media screen and (max-width: 640px) {
    .chat-kit {}
}