/* 基础重置样式 */
html {
    font-size: 14px;
    box-sizing: border-box;
    height: 100%;
}

html,
body {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    height: 100%;
    text-align: center;
}

body {
    position: relative;
    width: 100%;
    background: #fff;
    font: 14px, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 清除默认边距和内边距 */
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
dl,
dd,
ul,
ol,
th,
td,
button,
figure,
input,
textarea,
form,
pre,
blockquote,
figure {
    margin: 0;
    padding: 0;
}

/* 链接样式 */
a {
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 列表样式重置 */
ol,
ul {
    list-style: none;
}

/* 继承父元素样式并清除外轮廓 */
a,
h1,
h2,
h3,
h4,
h5,
h6,
input,
select,
button,
textarea {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    line-height: inherit;
    color: inherit;
    outline: none;
}

/* 按钮和可点击元素样式 */
button,
input[type="submit"],
input[type="button"] {
    cursor: pointer;
}

/* 数字输入框样式重置 */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

/* 按钮内边距重置 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/* 隐藏元素样式 */
[hidden], template {
    display: none;
}

/* 头像样式 */
.m-avatar {
    margin: auto;
    width: 6rem;
    height: 6rem;
    overflow: hidden;
    border-radius: 3.125rem;
    border: .0625rem solid rgb(232, 233, 237);
}

.m-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 文本样式 */
.m-text h5 {
    margin-top: .625rem;
    text-align: center;
    font-size: 1rem;
    color: rgb(111, 45, 0);
    font-weight: 500;
}

.m-text p {
    margin-top: .5rem;
    line-height: 1.25rem;
    text-align: center;
    font-size: .875rem;
    color: rgb(111, 45, 0);
}

/* 按钮容器样式 */
.m-btns {
    width: 90%;
    margin: 1.25rem auto 0;
}

/* 通用按钮样式 */
.btn {
    position: relative;
    margin-bottom: 1.25rem;
    border: .125rem solid #6f2d00;
    border-radius: 1.875rem;
    min-height: 1.875rem;
    padding: .75rem .875rem;
    font-size: 1rem;
    font-weight: bold;
    flex-grow: 1;
    overflow-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 1.125rem;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn::after {
    content: "";
    display: inline-block;
    width: .5rem;
    height: .5rem;
    border-top: 2px solid #3d3d3d;
    border-right: 2px solid #3d3d3d;
    transform: rotate(45deg) translateY(-50%);
    -webkit-transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: 1rem;
}

/* 按钮抖动动画 */
.btn.shake_button {
    animation: shake_button 3s linear 0s infinite normal none running;
}

/* 按钮内图片样式 */
.btn img {
    display: inline-block;
    width: 2.625rem;
    height: 2.625rem;
    border-radius: 50%;
    margin-right: .625rem
}

/* 二维码样式 */
.m-qr {
}

.m-qr p {
    font-weight: 500;
    text-align: center;
    font-size: 1rem;
    color: rgb(111, 45, 0);
}

.m-qr img {
    display: block;
    margin: 1.25rem auto;
    width: 90%;
    background: #ddd;
}

/* 按钮抖动动画定义 */
@keyframes shake_button {
    0% {
        transform: translateX(3px) rotate(1deg);
    }
    2.5% {
        transform: translateX(-3px) rotate(-1deg);
    }
    5% {
        transform: translateX(3px) rotate(1deg);
    }
    7.5% {
        transform: translateX(-3px) rotate(-1deg);
    }
    10% {
        transform: translateX(2px) rotate(1deg);
    }
    12.5% {
        transform: translateX(-2px) rotate(-1deg);
    }
    15% {
        transform: translateX(2px) rotate(1deg);
    }
    17.5% {
        transform: translateX(-2px) rotate(-1deg);
    }
    20% {
        transform: translateX(1px) rotate(1deg);
    }
    22.5% {
        transform: translateX(-1px) rotate(-1deg);
    }
    25% {
        transform: translateX(0) rotate(0deg);
    }
}

/* 容器样式 */
.g-box{
    padding-top: 2.5em;
}

/* 联系信息样式 */
.m-contact {
    text-align: center;
    color: #1989fa;
}

/* 弹窗样式 */
.m-dialog {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 999;
}

.m-dialog .dialog-mask {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5)
}

.m-dialog .dialog-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 21.875rem;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 1.875rem;
}

.m-dialog .dialog-close {
    position: absolute;
    right: 0.625rem;
    width: 2rem;
    height: 1.875rem;
    cursor: pointer;
}

.m-dialog .dialog-header {
    height: 2.5rem
}

.m-dialog .dialog-main img {
    display: block;
    width: 100%;
    min-height: 100px;
    background: #ddd;
}

.m-dialog .dialog-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 1rem;
    color: rgb(150, 151, 153);
}

/* 从左向右滚动动画 */
@keyframes scrollRightToLeft {
    0% {
        transform: translateX(calc(100vw + 100%));
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Webkit内核滚动动画兼容 */
@-webkit-keyframes scrollRightToLeft {
    0% {
        -webkit-transform: translateX(calc(100vw + 100%));
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        -webkit-transform: translateX(-100%);
        opacity: 0;
    }
}

/* 页面切换样式 */
.page{
    display: none;
}
.page.show{
    display: block;
}
.page.none{
    display: none;
}

/* 二维码容器样式 */
.qr-container {
    width: 300px;
    height: 300px;
    position: absolute;
    top: 15vh;
    left: 50%;
    transform: translate(-50%,0);
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
}

/* 遮罩层样式 */
.mask{
    width: 100%;
    position: absolute;
    z-index: 10;
    height: 100%;
    left: 0;
    top: 0;
    cursor: pointer;
}
.mask:active {
    opacity: 0.9;
}
.maskimg{
    width: 100%;
    position: absolute;
    z-index: 10;
    height: 100%;
    left: 0;
    top: 0;
}
.masktest{
    padding: 94px 22px 126px 22px;
    line-height: 30px;
    height: 80px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 100;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.masktest .text{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 自定义二维码样式 */
#customQrCode {
    width: 100%;
    height: auto;
}

/* 全屏页面样式 */
.fullpage{
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: #fff;
    top: 0;
    right: 0;
    overflow-y: auto;
    z-index: 100;
}
.fullpage .back{
    width: 100px;
    height: 100px;
    position: fixed;
    z-index: 10;
    bottom: 100px;
    right: 20px;
}
.fullpage .pagebg{
    width: 100%;
}
.fullpage .qr{
    width: 80%;
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translate(0,-50%);
}

/* 背景轮播容器样式 */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}
.bg-image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.bg-image-item.active {
    opacity: 1;
}


.applyrefund{
    position: fixed;
    bottom: 50%;
    right: 20px;
    cursor: pointer
}
.applyrefund  img{
    width: 50px;
}
