* {
    margin: 0px;
    padding: 0px;
}
a {
    text-decoration: none;
}
ul, ol, li {
    list-style: none;
}
body {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #333333;
    line-height: 1.2;
}

@font-face {
    font-family: '宋体';
    /*font-family: 'SIMKAI';*/
    /*src: url('https://cdn.qqbaidu.xyz/htf/SIMKAI.TTF');*/
}

.icon {
    display: block;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.btn {
    position: relative;
    display: flex;
    -webkit-display: flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    font-weight: 400;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* 卡片  */
.card {
    position: relative;
    width: 6.95rem;
    margin: 0px auto;
    background-color: transparent;
    border-radius: 0.08rem;
    overflow: hidden;
}
.card-header {
    display: flex;
    -webkit-display: flex;
    align-items: center;
    -webkit-align-items: center;
}
.card-header > h1 {
    color: #e01c1c;
    font-size: 0.3rem;
    font-weight: 400;
}
.card-header > small {
    color: #777777;
    font-size: 0.24rem;
}
.icon-star {
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 0.125rem;
    background-size: 0.17rem 0.16rem;
    background-position: center center;
    background-image: url('../images/icon-star.png');
    background-color: #e01c1c;
    background-repeat: no-repeat;
}
.card-header > .icon-star {
    flex-shrink: 0;
    margin-right: 0.1rem;
}
.card-body > .card.text {
    width: 6.75rem;
    margin: 0px auto;
    padding-right: 0.12rem;
    border-top: #e01c1c dashed 0.01rem;
}
.card-body > .card.text > .card-header {
    padding-left: 0.12rem;
}
.icon-list_item_red {
    display: flex;
    -webkit-display: flex;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 0.19rem;
    background-color: #e01c1c;
    color: #ffffff;
    font-size: 0.3rem;
    font-style: normal;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    margin-right: 0.17rem;
}
/* 模板 */
.card.template > .card-header {
    padding-top: 0.09rem;
    height: 0.64rem;
    background-color: #fff6e5;
    padding-left: 0.21rem;
    box-sizing: border-box;
    background-image: linear-gradient(to right, #fff6e6, #ffedcd);
}
.card.template::after {
    content: '';
    display: block;
    position: absolute;
    left: 0px;
    top: 0.64rem;
    width: 100%;
    height: 0.18rem;
    background-size: 100% 100%;
    background-image: url('../images/card_line.png');
    z-index: 2;
} 
.card.template > .card-body {
    margin-top: 0.18rem;
    background-color: #ffffff;
}
/* 文本 */
.card.text {
    display: flex;
    -webkit-display: flex;
    align-items: center;
    -webkit-align-items: center;
    background-color: white;
    border-radius: 0.08rem;
    padding: 0.22rem 0.24rem 0.22rem 0px;
    box-sizing: border-box;
}
.card.text > .card-header {
    flex-shrink: 0;
    -webkit-flex-shrink: 0;
    padding-left: 0.21rem;
    padding-right: 0.23rem;
}
.card.text > .card-body {
    flex-grow: 1;
    height: 0.7rem;
    background-color: #e9e9e9;
    border-radius: 0.08rem;
}
.card.text .card-input {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    color: #555555;
    background-color: transparent;
    font-size: 0.3rem;
    padding: 0px 0.31rem;
    box-sizing: border-box;
}
.card.text .card-input::placeholder {
    color: #bcbcbc;
}
.icon-edit {
    width: 0.34rem;
    height: 0.33rem;
    background-image: url('../images/icon-edit.png');
}
.btn-edit {
    width: 100%;
    height: 100%;
    color: #555555;
    font-size: 0.3rem;
    justify-content: left;
    padding-left: 0.35rem;
    line-height: 0.30rem;
    box-sizing: border-box;
}
.btn-edit > .icon-edit {
    margin-right: 0.12rem;
}

/* 模板选择器 */
.template_selector {
    position: relative;
    height: 3.69rem;
}
.template_selector > .van-swipe {
    height: 100%;
}
.template_selector .van-swipe-item {
    display: flex;
    -webkit-display: flex;
    padding: 0px 0.22rem;
    box-sizing: border-box;
}
.template_selector-item {
    position: relative;
    display: flex;
    -webkit-display: flex;
    width: 1.94rem;
    flex-direction: column;
    -webkit-flex-direction: column;
    align-items: center;
    -webkit-align-items: center;
    box-sizing: border-box;
    margin-top: 0.17rem;
}
.template_selector-item:not(:last-child) {
    margin-right: 0.33rem;
}
.template_selector-item > .van-image {
    background-color: #e9e9e9;
    box-sizing: border-box;
    border: 0.02rem solid #aaaaaa;
    border-radius: 0.08rem;
    overflow: hidden;
}
.template_selector-item > figcaption {
    color: #555555;
    font-size: 0.24rem;
    margin-top: 0.17rem;
}
.template_selector-item.is_active > .van-image {
    border: 0.02rem solid #e01c1c;
}
.icon-preview {
    position: absolute;
    top: 0.05rem;
    left: 0.05rem;
    width: 0.36rem;
    height: 0.36rem;
    background-image: url('../images/icon-preview.png');
    z-index: 1;
}
.icon-full {
    width: 0.44rem;
    height: 0.44rem;
    background-image: url('../images/icon-full.png');
}
.template_selector-preview {
    display: flex;
    -webkit-display: flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    justify-content: center;
    -webkit-justify-content: center;
    align-items: center;
    -webkit-align-items: center;
    position: absolute;
    left: 0.21rem;
    top: 0.72rem;
    width: 1.50rem;
    height: 1.50rem;
    border-radius: 0.10rem;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
    color: #ffffff;
    font-size: 0.18rem;
}
.template_selector-preview > .icon-full {
    margin-bottom: 0.13rem;
}
  
.icon-template_selected {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 0.34rem;
    height: 0.34rem;
    background-size: 0.2rem 0.15rem;
    background-image: url('../images/icon-check.png');
    background-position: center center;
    background-color: #ababab;
    z-index: 1;
    background-repeat: no-repeat;
    border-top-right-radius: 0.08rem;
    border-bottom-left-radius: 0.08rem;
}
.template_selector-item.is_active > .icon-template_selected {
    background-color: #e01c1c;
}
.icon-slide {
    width: 0.64rem;
    height: 0.64rem;
    background-color: rgb(224, 28, 28, 0.18);
    background-size: 0.24rem 0.34rem;
    background-image: url('../images/icon-slide.png');
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 0.32rem;
}
.template_selector-slide_left {
    position: absolute;
    top: calc(50% - 0.25rem);
    left: 0px;
    z-index: 1;
}
.template_selector-slide_right {
    position: absolute;
    top: calc(50% - 0.25rem);
    right: 0px;
    z-index: 1;
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
}

/* 提交按键 */
.btn-submit {
    width: 6rem;
    height: 0.9rem;
    background-image: -moz-linear-gradient( 90deg, rgb(255,206,121) 0%, rgb(255,244,223) 100%);
    background-image: -webkit-linear-gradient( 90deg, rgb(255,206,121) 0%, rgb(255,244,223) 100%);
    background-image: -ms-linear-gradient( 90deg, rgb(255,206,121) 0%, rgb(255,244,223) 100%);
    border-radius: 0.45rem;
    margin: 1.24rem auto 0.94rem auto;
    color: rgb(224, 28, 28);
    font-size: 0.36rem;
}
.prompt_line_white {
    position: absolute;
    top: -0.66rem;
    left: 2.3rem;
    display: block;
    width: 4.29rem;
    height: 0.63rem;
    background-size: 100% 100%;
    background-image: url('../images/prompt_line_white.png');
    color: #fffefe;
    font-size: 0.2rem;
    line-height: 0.5rem;
    text-align: center;
}

/* 自定义内容弹窗 */
.custom_content_dialog {
    width: 6.60rem;
    height: 100%;
    border-radius: 0.10rem;
    background-color: rgb(255, 255, 255);
    padding: 0.24rem 0.2rem;
    box-sizing: border-box;
    overflow-y: auto;
}
.custom_content_dialog-overlay + .van-popup--center {
    height: 100%;
    max-height: 11.26rem;
    background-color: transparent;
}
.icon-back {
    width: 0.38rem;
    height: 0.3rem;
    background-image: url('../images/icon-back.png');
}
.custom_content_dialog .btn-back {
    color: #464646;
    font-size: 0.34rem;
    width: 1.29rem;
    height: 0.42rem;
    border-bottom: 0.01rem solid #7d7d7d;
    margin: 0.51rem auto 0px auto;
}
.btn-back > .icon-back {
    margin-right: 0.07rem;
}

/* 文本输入框 */
.textarea {
    position: relative;
    height: 8.37rem;
    padding: 0.5rem 0px;
    background-color: #e3e3e3;
    box-sizing: border-box;
}
.textarea > textarea {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0px 0.32rem;
    background-color: transparent;
    box-sizing: border-box;
    resize: none;
    font-size: 0.32rem;
    line-height: 0.38rem;
    color: #464646;
}
.textarea > textarea::placeholder {
    color: #bcbcbc;
}
.textarea-status {
    position: absolute;
    bottom: 0.15rem;
    right: 0.28rem;
    color: #777777;
    font-size: 0.2rem;
}
.textarea-status > span {
    margin-left: 0.27rem;
}

.btn-custom_content_submit {
    background-image: -moz-linear-gradient( 90deg, rgb(233,0,0) 0%, rgb(255,71,71) 100%);
    background-image: -webkit-linear-gradient( 90deg, rgb(233,0,0) 0%, rgb(255,71,71) 100%);
    background-image: -ms-linear-gradient( 90deg, rgb(233,0,0) 0%, rgb(255,71,71) 100%);
    width: 4.00rem;
    height: 0.80rem;
    border-radius: 0.4rem;
    margin: 0.45rem auto 0px auto;
    color: #ffffff;
    font-size: 0.34rem;
}
.icon-broken_heart {
    width: 0.33rem;
    height: 0.29rem;
    background-image: url('../images/icon-broken_heart.png');
}
.prompt_line_red {
    display: flex;
    -webkit-display: flex;
    position: absolute;
    top: -0.66rem;
    left: 0.62rem;
    width: 4.51rem;
    height: 0.66rem;
    background-size: 100% 100%;
    background-image: url('../images/prompt_line_red.png');
    color: #fffefe;
    font-size: 0.27rem;
    line-height: 0.27rem;
    align-items: center;
    -webkit-align-items: center;
    padding-bottom: 0.13rem;
    box-sizing: border-box;
    justify-content: center;
    -webkit-justify-content: center;
}
.prompt_line_red > .icon-broken_heart {
    margin-right: 0.1rem;
}
.van-image-preview__overlay {
    background-color: white!important;
}