@charset "utf-8";
/* 商城首页与分类页（淘宝闪购风格） */

body.mt-body {
    background: #f4f5f7;
    color: #1f2329;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;
    padding-bottom: 64px;
}

.mt-page {
    max-width: 640px;
    margin: 0 auto;
    background: #f4f5f7;
    min-height: 100vh;
    box-sizing: border-box;
}

.mt-page a {
    color: #1f2329;
}

/* 顶部 */
.mt-top {
    background: #ce000c;
    padding: 10px 12px 14px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(206, 0, 12, .22);
}

/* 分类页头部：返回图标与搜索框同一行 */
.mt-top-sort {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.mt-top-sort .mt-back {
    -webkit-box-flex: 0;
    -webkit-flex: none;
    flex: none;
    margin-right: 8px;
}

.mt-top-sort .mt-search {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    margin-top: 0;
    height: 34px;
    border-radius: 17px;
}

.mt-back {
    display: block;
    width: 26px;
    height: 26px;
    margin-right: 8px;
    position: relative;
}

.mt-back:before,
.mt-back:after {
    content: "";
    position: absolute;
    left: 10px;
    width: 11px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.mt-back:before {
    top: 8px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.mt-back:after {
    top: 15px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.mt-search {
    margin-top: 10px;
    height: 38px;
    background: #fff;
    border-radius: 19px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 0 4px 0 14px;
    box-sizing: border-box;
}

.mt-search-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    position: relative;
    border: 2px solid #b6bcc4;
    border-radius: 50%;
    box-sizing: border-box;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.mt-search-icon:after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    background: #b6bcc4;
    border-radius: 2px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.mt-search input {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    height: 30px;
    line-height: 30px;
    padding: 0;
    color: #1f2329;
    background: transparent;
    min-width: 0;
}

.mt-search input::-webkit-input-placeholder {
    color: #b6bcc4;
}

.mt-search button {
    border: none;
    width: 62px;
    height: 30px;
    border-radius: 15px;
    background: #ce000c;
    color: #fff;
    font-size: 13px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

/* 轮播 */
.mt-banner {
    margin: 10px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.mt-banner .swiper-container {
    width: 100%;
    height: 150px;
}

.mt-banner .swiper-slide {
    display: block;
    font-size: 0;
}

.mt-banner .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.mt-banner .swiper-slide img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.mt-banner .swiper-pagination {
    bottom: 6px !important;
}

.mt-banner .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #fff;
    opacity: .55;
}

.mt-banner .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
    width: 14px;
    border-radius: 3px;
}

/* 功能入口 */
.mt-quick {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    background: #fff;
    margin: 0 10px;
    border-radius: 12px;
    padding: 14px 0;
}

.mt-quick li {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    text-align: center;
}

.mt-quick li a {
    display: block;
}

.mt-quick li img {
    width: 36px;
    height: 36px;
    display: block;
    margin: 0 auto 6px;
    border-radius: 50%;
}

.mt-quick li span {
    font-size: 12px;
    color: #4e5661;
}

/* 商品瀑布流 */
.mt-feed {
    margin: 0 10px 10px;
}

.mt-feed-hd {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 12px 0 8px;
}

.mt-feed-hd h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2329;
    position: relative;
    padding: 0 12px;
}

.mt-feed-hd h3:before,
.mt-feed-hd h3:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 1px;
    background: #f0a6a6;
}

.mt-feed-hd h3:before {
    left: 0;
}

.mt-feed-hd h3:after {
    right: 0;
}

.mt-goods {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

.mt-goods-item {
    width: 48.8%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
    box-shadow: 0 1px 4px rgba(31, 35, 41, .05);
}

.mt-goods-link {
    display: block;
}

.mt-goods-pic {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    background: #f2f3f5;
    overflow: hidden;
}

.mt-goods-pic img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mt-goods-pic span {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    margin-top: -8px;
    text-align: center;
    font-size: 12px;
    color: #b6bcc4;
}

.mt-goods-title {
    font-size: 13px;
    line-height: 18px;
    color: #1f2329;
    height: 36px;
    overflow: hidden;
    margin: 8px 8px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mt-goods-meta {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    align-items: flex-end;
    padding: 6px 8px 0;
}

.mt-price {
    color: #ce000c;
    font-size: 17px;
    font-weight: 700;
    line-height: 20px;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mt-price i {
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    margin-right: 1px;
}

.mt-sales {
    font-size: 11px;
    color: #9aa1aa;
    line-height: 18px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    margin-left: 4px;
}

.mt-buy {
    display: block;
    margin: 8px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 14px;
    font-size: 12px;
    color: #ce000c !important;
    border: 1px solid #efb4b4;
    background: #fff5f5;
}

.mt-empty {
    background: #fff;
    border-radius: 12px;
    padding: 48px 0;
    text-align: center;
    font-size: 13px;
    color: #9aa1aa;
}

.mt-copy {
    text-align: center;
    font-size: 11px;
    color: #a8afb8;
    line-height: 18px;
    padding: 10px 12px 16px;
}

.mt-copy a {
    color: #a8afb8;
}

/* 分类页 */
.mt-main {
    padding: 0 8px 8px;
    box-sizing: border-box;
}

/* 排序栏 */
.mt-sortbar {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    background: #fff;
    border-radius: 0;
    height: 40px;
    position: sticky;
    top: 58px;
    z-index: 30;
}

.mt-sortbar a {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #4e5661;
    position: relative;
    height: 40px;
    line-height: 40px;
}

.mt-sortbar a.active {
    color: #ce000c;
    font-weight: 700;
}

.mt-price-sort i {
    display: inline-block;
    width: 8px;
    height: 12px;
    margin-left: 2px;
    vertical-align: -1px;
    position: relative;
}

.mt-price-sort i:before,
.mt-price-sort i:after {
    content: "";
    position: absolute;
    left: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.mt-price-sort i:before {
    top: 0;
    border-bottom: 5px solid #c2c7cd;
}

.mt-price-sort i:after {
    bottom: 0;
    border-top: 5px solid #c2c7cd;
}

.mt-price-sort.asc i:before {
    border-bottom-color: #ce000c;
}

.mt-price-sort.desc i:after {
    border-top-color: #ce000c;
}

.mt-filter-btn i {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 3px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #c2c7cd;
    vertical-align: 2px;
}

.mt-filter-btn.on {
    color: #ce000c;
    font-weight: 700;
}

.mt-filter-btn.on i {
    border-top-color: #ce000c;
}

.mt-count {
    padding: 0 2px 6px;
    font-size: 11px;
    color: #9aa1aa;
}

/* 滚动加载提示 */
.mt-loading,
.mt-nomore {
    padding: 14px 0;
    text-align: center;
    font-size: 12px;
    color: #9aa1aa;
}

/* 筛选弹层 */
.mt-sheet {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: none;
}

.mt-sheet.show {
    display: block;
}

.mt-sheet-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .45);
}

.mt-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 14px 14px 0 0;
    padding: 14px 14px 20px;
    max-width: 640px;
    max-height: 80%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto;
    box-sizing: border-box;
}

.mt-sheet-panel h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2329;
    text-align: center;
    margin-bottom: 14px;
}

.mt-filter-group {
    margin-bottom: 16px;
}

.mt-filter-label {
    display: block;
    font-size: 13px;
    color: #1f2329;
    font-weight: 700;
    margin-bottom: 10px;
}

.mt-filter-opts {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.mt-filter-opts a {
    display: block;
    width: 30%;
    margin: 0 5% 8px 0;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #f6f7f9;
    border-radius: 16px;
    font-size: 12px;
    color: #4e5661;
    box-sizing: border-box;
    border: 1px solid transparent;
}

.mt-filter-opts a:nth-child(3n) {
    margin-right: 0;
}

.mt-filter-opts a.on {
    color: #ce000c;
    border-color: #e58d8d;
    background: #fff5f5;
}

.mt-filter-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

.mt-switch {
    display: block;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #dfe3e8;
    position: relative;
    -webkit-transition: background .2s;
    transition: background .2s;
}

.mt-switch i {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    -webkit-transition: left .2s;
    transition: left .2s;
}

.mt-switch.on {
    background: #ce000c;
}

.mt-switch.on i {
    left: 22px;
}

.mt-sheet-btns {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    margin-top: 8px;
}

.mt-sheet-btns a {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 20px;
    font-size: 14px;
    margin: 0 6px;
}

#filterReset {
    background: #f2f3f5;
    color: #4e5661;
}

#filterApply {
    background: #ce000c;
    color: #fff;
    font-weight: 700;
}

/* 活动弹窗 */
.mt-act-bg {
    background: rgba(0, 0, 0, .5);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
}

.mt-act {
    width: 80%;
    position: fixed;
    top: 28%;
    left: 10%;
    z-index: 100;
    text-align: center;
}

.mt-act img {
    width: 100%;
    border-radius: 12px;
}

.mt-act-close {
    display: block;
    width: 30px;
    height: 30px;
    margin: 12px auto 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .8);
    position: relative;
}

.mt-act-close:before,
.mt-act-close:after {
    content: "";
    position: absolute;
    left: 7px;
    top: 14px;
    width: 16px;
    height: 1px;
    background: #fff;
}

.mt-act-close:before {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.mt-act-close:after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
