﻿/*-————————————————————————————*/
/* 预览小程序模板页面             */
/*-————————————————————————————*/
#wrapper {
    padding-bottom: 0 !important;
}

.preview-container {
    margin: 50px auto;
}

#template_component {
    position: relative;
    display: inline-block;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    overflow: hidden;
    vertical-align: top;
    float: left;
    width: 375px;
    height: 740px;
    padding: 11px 12px 11px 11px;
    background-image: url("../image/mobile_wrapper.png");
    margin-right: 35px;
}

#template_component .template-iframe {
    border:0;
    height:100%;
    width:100%;
    overflow:hidden;
    border-radius: 18px;
}

#template_component .ap-banner-top {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 90px;
    height: 30px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #E5E5E5;
    border-radius: 25px;
    padding: 7px 5px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* 左侧点点 */
.ap-banner-top .wx-circle{
    border-right: 1px solid #E5E5E5;
    width: 45px;
    height: 100%;
    display: flex;
    align-items: center;
}

.ap-banner-top .wx-circle .circle-inner {
    margin: auto;
    width: 23px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.wx-circle .circle-inner .sm-item {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #111111;
}

.wx-circle .circle-inner .md-item {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #111111;
}

/* 右侧圈圈 */
.ap-banner-top .wx-close{
    width: 45px;
    height: 100%;
    display: flex;
    align-items: center;
}

.ap-banner-top .wx-close .close-inner {
    margin: auto;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.wx-close .close-inner .md-item {
    width: 15px;
    height: 15px;
    border: 2px solid #111111;
    border-radius: 50%;
    display: flex;
}

.wx-close .close-inner .sm-item {
    margin: auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #111111;
}


#template_preview {
    top: 100px;
    left: 395px;
    height: 700px;
    width: calc(100% - 411px);
    background: #fff;
    border-radius: 2px;
    vertical-align: top;
    float: left;
    display: flex;
    align-items: start;
    flex-direction: column;
    text-align: center;
}

.preview-code-wrapper {
    width: 360px;
    height: calc(100% - 110px);
    display: flex;
    margin: 0 auto;
    padding-top: 40px;
    align-items: center;
    flex-direction: column;
}

.preview-code-wrapper .preview-code-title {
    width: 100px;
    height: 32px;
    line-height: 30px;
    border: 1px solid #1E6AF2;
    text-align: center;
    color: #1E6AF2;
    font-size: 12px;
    margin-bottom: 40px;
}

.preview-code-wrapper .template-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.preview-code-wrapper .template-desc {
    font-size: 12px;
    font-weight: 400;
    color: #777777;
}

.preview-code-wrapper .preview-code-tip {
    margin-top: 35px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 14px;
}

.preview-code-wrapper .preview-code {

    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #ff4e00;
    border-radius: 8px;
    overflow: hidden;
    padding: 3px;
}

.preview-code-wrapper .preview-tips {
    font-size: 14px;
    font-weight: bold;
    color: #ff4e00;
}

.preview-code-wrapper .preview-intro {
    margin-top: 10px;
    text-align: left;
    font-size: 12px;
    color: #777777;
    line-height: 22px;
    padding: 0 10px;
}

.preview-action {
    align-items: center;
    border-top: 1px solid #ebebeb;
    height: 110px;
    display: block;
    width: 100%;
    padding: 30px 0;
}

.preview-action .btn-purchase{
    width: 150px;
    height: 40px;
    line-height: 40px;
    opacity: 1;
    background: #1E6AF2;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    margin: 0 20px;
    border-radius: 4px;
}
.preview-action .btn-purchase:hover{
    background: #1a59cd;
}

.preview-action .btn-trial{
    background-color: #7bbdb6;
}
.preview-action .btn-trial:hover{
    background: #5da59d;
}
.preview-code-wrapper .preview-help {
    text-align: left;
    margin-top: 20px;
    width: 100%;
    padding-left: 28px;
}
.preview-code-wrapper .preview-help a{
    font-size: 14px;
}
.preview-code-wrapper .preview-help a i{
    padding-right: 3px;
}
/*-————————————————————————————*/
/* 购买小程序模板页面             */
/*-————————————————————————————*/
.purchase-template-wrapper {
    margin-top: 30px;
    background-color: #ffffff;
    padding: 30px 25px 50px;
    box-shadow: 0 3px 7px 2px rgba(0,0,0,0.05);
}

/* 左侧 */
.purchase-template-wrapper .purchase-left {
    width: 170px;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 10px;
    padding-bottom:  20px;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.purchase-left .template-image {
    width: 170px;
}

/* 中间 */
.purchase-template-wrapper .purchase-mid {
    width: calc(80% - 180px);
    padding: 0 25px;
    display: inline-block;
    vertical-align: top;
}

.template-description {
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 30px;
}

.template-description .template-name {
    font-size: 24px;
    margin-bottom: 10px;
}

.template-description .template-desc {
    font-size: 14px;
    color: #969799;
    line-height: 20px;
    margin-bottom: 13px;
}

.template-description .template-func {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.template-description .template-func .template-func-title {
    margin-right: 25px;
    font-size: 15px;
}

.template-description .template-func-item {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.template-description .template-func-item .func-icon{
    margin-right: 5px;

}

.template-package-select {
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 30px;
}

.template-package-select .select-item {
    margin-bottom: 5px;
}

.template-package-select .select-item .package-title {
    margin: 0 25px 10px 0;
    font-family: PingFangSC-Regular, serif;
    font-size: 15px;
    color: #7d7e80;
    line-height: 24px;
}

.template-package-select .select-item .package-list {
    display: flex;
    align-items: center;
}

.select-item .package-list .package-item {
    min-width: 60px;
    margin: 0 25px 10px 0;
    padding: 2px 8px;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    text-align: center;
    cursor: pointer;
}

.select-item .package-list .package-item.active {
    color: #1E6AF2 ;
    border: 1px solid #1E6AF2;
}

.purchase-mid .template-actions {
    min-height: 50px;
}

.template-actions .action-item {
    padding: 10px 20px;
    border: 1px solid #505458;
    text-align: center;
    color: #505458;
    margin-right: 20px;
    border-radius: 2px;
}

.template-actions .action-item:hover {
    border: 1px solid #1E6AF2;
    color: #1E6AF2;
}

/* 右侧 */
.purchase-template-wrapper .purchase-right {
    width: 20%;
    height: 280px;
    padding: 0 10px 0 15px;
    background: #fbfbfb;
    display: inline-block;
    vertical-align: top;
}

.purchase-right .purchase-params-content{
    padding: 8px;
    min-height: 100px;
    display: inline-block;
    vertical-align: top;
    background: #fbfbfb;
    width: 100%;
}

.purchase-params-content .checkout-title {
    font-size: 16px;
    font-weight: bold;
    position: relative;
}

.purchase-params-content .checkout-title::after {
    content: '';
    width: 4px;
    height: 23px;
    left: -15px;
    top: 0;
    position: absolute;
    background-color: #1E6AF2;
}

.purchase-params-content .params-list {
    padding: 10px;
}

.params-list .params-item {
    font-size: 14px;
    line-height: 35px;
}

.params-item .param-item-name {
    color: #666666;
    display: inline-block;
}

.params-item .param-item-value {
    color: #333333;
    display: inline-block;
}

.purchase-actions .action-item button {
    width: 100%;
    margin-bottom: 10px;
}

.template-notice{
    border: 1px solid #ff4e00;
    padding: 10px;
    color: #ff4e00;
    text-align: left;
    font-size: 12px;
    margin: 0px 0 20px 0;
    position: relative;
}
.template-notice span{
    display: inline-block;
}
.template-notice .time {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
}
.template-notice .close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: normal;
}
/*相关推荐*/
.related-wrapper {
    position: relative;
    border-top: 20px solid #eee;
    display: none;
}
.related-wrapper .container{
    position: relative;
}
.related-wrapper .container:after{

}
.related-wrapper .section-header{
    margin-top: 30px;
}
.related-wrapper .section-title{
    font-size: 20px;
    display: inline-block;
    position: relative;
}
.related-wrapper .section-title:after{
    content: ' ';
    display: block;
    clear: both;
    width: 100%;
    height: 4px;
    background: #1E6AF2;
    position: absolute;
    transition: transform .5s ease;
    border-radius: 4px;
}
.related-wrapper .template-list-wrapper{
    width:100%;
    margin: 0 0 40px 0;
}
.related-wrapper .template-list-content{
    padding: 0;
}
.related-wrapper .template-list-content .template-item{
    opacity: 1;
    width: 100%;
    transform: translateY(0px);
}
.related-wrapper .template-list-content .template-item .template-image-content{
    height: 420px;
}
.related-wrapper .prev-page{
    left: -20px;
}
.related-wrapper .next-page{
    right: -20px;
}
/*pc预览*/
.pc-images-wrapper {
    padding: 20px ;
}
.pc-images-wrapper .pc-desc{
    font-size: 15px;
}
.pc-images-wrapper .pc-images-list {
    display: flex;
    margin: 20px 0;
}
.pc-images-wrapper .pc-images-list .img-wrapper{
    width: 20%;
    max-width: 300px;
    height: 400px;
    border: 1px solid #ebebeb;
    text-align: center;
    margin-right: 15px;
}

.pc-images-wrapper .pc-images-list .img-wrapper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media screen and (max-width: 991px) {
    /* 左侧 */
    .purchase-template-wrapper .purchase-left {
        width: 100%;
        display: block;
    }

    /* 中间 */
    .purchase-template-wrapper .purchase-mid {
        width: 100%;
        display: block;
    }


    /* 右侧 */
    .purchase-template-wrapper .purchase-right {
        width: 100%;
        height: 280px;
        display: block;
    }

    .template-notice .time {
        transform: none;
        top: 7px;
        right: 35px;
    }
    .template-notice .close {
        transform: none;
        top: 10px;
    }
}
@media screen and (max-width: 768px) {
    #template_component{
        width: 325px;
    }
    #template_preview{
        width: calc(100% - 371px);
    }
}
@media screen and (max-width: 500px) {
    .preview-container{
        display: grid;
    }
    #template_component{
        width: 100%;
        order: 2;
    }
    #template_preview{
        width: 100%;
        order: 1;
        height: 640px;
    }
    .preview-code-wrapper{
        padding-top: 0;
    }
    .related-wrapper .section-title{
        font-size: 18px !important;
    }
    .related-wrapper .prev-page{
        left: 10px;
    }
    .related-wrapper .next-page{
        right: 10px;
    }
    .related-wrapper .template-list-content .template-item .template-image-content {
        height: 360px;
    }
}