html,
body {
margin: 0px;
padding: 0px;
width: 100vw;
height: 100%;
overflow-x: hidden;
overflow-y: auto;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
* {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: transparent;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none !important;
}
input {
-webkit-appearance: none !important;
border: none;
outline: none;
border-radius: 0;
}
h3,
p,
ul,
li {
padding: 0;
margin: 0;
}
*,
:before,
:after {
box-sizing: border-box;
}
:root {
--margin: 5px;
}
.body{
width: 100%;
height: 100%;
}
#app {
font: 16px "Microsoft YaHei", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
width: 100vw;
height: 100%;
color: #fff;
/* linear-gradient(180deg, #D8585E 0%, #630005 100%) */
background: url('../images/bg@2x.png') no-repeat;
background-size:100% 100%;
overflow: hidden;
}
.loading-mask {
position: absolute;
bottom: 0px;
left: 0px;
background: rgba(0, 0, 0, 0.4);
width: 100%;
height: 100%;
z-index: 99;
display: none;
}
.ai_top{
width: 100%;
height: 76vh;
text-align: center;
display: block;
}
.ai_title{
margin: 6% auto;
width: 100%;
}
.ai_pic{
display: inline-block;
width: calc(100% - calc(var(--margin) * 2) * 2);
}
.ai_pic >li{
display: inline-block;
list-style: none;
width: calc((100% - var(--margin) * 2) / 3);
margin-bottom: calc(var(--margin) * 2);
}
.ai_pic > .active{
border-radius: 7px;
background: linear-gradient(180deg, #FFE5A5 0%, #DFA827 93%, #F3C24A 100%);
box-shadow: 0px 5px 10px rgba(74, 11, 11, 0.48);
}
.ai_pic >li>img{
width: calc(100% - var(--margin) * 2);
border-radius: 5px;
}
.ai_pic >li> span{
display: inline-block;
margin-bottom: calc(var(--margin) * 2);
}
.ai_pic > .active > span{
color: #962C30;
}
.ai_bottom{
width: 100%;
display: inline-block;
text-align: center;
position: fixed;
bottom: 10px;
}
.ai_bottom > img{
width: 24%;
margin: 0 auto;
display: inline-block;
}
.back{
position: fixed;
left: 20px;
top: 20px;
z-index: 999;
width: 26px;
}
#work,#myPhoto{
width: 100vw;
height: 100%;
position: fixed;
top: 0;
left: 0;
background: #000;
z-index: 99;
display: none;
}
#work .demo,#myPhoto .myImg{
width: 100%;
max-height: 100%;
position: absolute;
transform: translate(-50%,-50%);
top: 50%;
left: 50%;
z-index: -1;
}
#work .mask{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.7);
text-align: center;
z-index: -1;
}
#work .mask > span{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
display: inline-block;
width: 100%;
color: #fff;
letter-spacing: 1px;
font-size: 18px;
font-weight: bold;
}
#work .btn-cls{
position: absolute;
bottom: 30px;
display: flex;
justify-content: space-around;
align-items: center;
width: 100%;
z-index: 999;
}
#work .btn-cls > img{
width: 10%;
}
#work .btn-cls .takePhoto{
position: relative;
width: 40%;
max-width: 180px;
text-align: center;
color: #fff;
}
#work .takePhoto img{
position: absolute;
z-index: -1;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 100%;
}
#work .takePhoto span{
line-height: 100%;
}
#work .after_btn{
visibility: hidden;
justify-content: center;
}
#work .after_btn .takePhoto{
width: 30%;
}
#work .after_btn > img{
width: 14%;
margin: 0 30px;
}
#myPhoto .share{
position: absolute;
bottom: 0;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 0 20px;
z-index: 999;
height: 80px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, #FFFFFF 100%);
}
#myPhoto .share > div{
background: #FFFFFF;
border-radius: 10px;
font-size: 0;
padding: 12px;
}
#myPhoto .share > .quan{
width: auto;
display: flex;
align-items: center;
padding: 12px 36px;
}
#myPhoto .share > .quan > span{
display: inline-block;
font-size: 16px;
margin-left: 10px;
}
#myPhoto .share > div >img{
width: 32px;
height: 32px;
}
@media screen and (max-width: 350px) {
#myPhoto .share > div{
padding: 10px;
}
#myPhoto .share > .quan{
padding: 10px 14px;
}
#myPhoto .share > .quan > span{
font-size: 14px;
}
#myPhoto .share > div >img{
width: 28px;
height: 28px;
}
}