@font-face {
    font-family: 'futurastd';
    src: url('./fonts/FuturaLT.woff') format('woff');
    font-display: auto;
}
@font-face {
    font-family: 'futurastd-light';
    src: url('./fonts/futurastd-light-webfont.woff') format('woff');
    font-display: auto;
}
@font-face {
    font-family: 'futurastd-bold';
    src: url('./fonts/futurastd-bold-webfont.woff') format('woff');
    font-display: auto;
}


:root{
	--bg-green:#31ffc5;
    --color-green:#31ffc5;
    --color-orange:#d7b813;
    --color-blue:#2d7df2;
}
html,body{width: 100%; height: 100%;}
body{ font-family: 'futurastd', Arial, sans-serif; letter-spacing: 1px;}

html,body,ol,ul,li,form,p,h1,h2,h3{ margin: 0; padding: 0; }
ul,li{ list-style: none;}
i,em{ font-style: normal;}
a{ text-decoration: none;}

.color-green{ color: var(--color-green);}
.color-orange{ color: var(--color-orange);}
.color-blue{ color: var(--color-blue);}

/* loading  */
.loading{ position: fixed; z-index: 10; left: 0; top: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background-color: #FFF;}
.loading::before{ content: ''; position: absolute; width: 100%;  height: 100%; left: 0; top: 0; background-color: var(--bg-green); transform: translateX(-100%);}
.loading.finish::before{
    animation-name:finishBefore;
    animation-duration:0.6s;
    animation-delay:0;
    animation-iteration-count:1;
    animation-timing-function:cubic-bezier(0.86, 0, 0.07, 1);
    animation-fill-mode:forwards

}
.loading.finish{
    animation-name:finishBox;
    animation-duration:0.6s;
    animation-delay:1s;
    animation-iteration-count:1;
    animation-timing-function:cubic-bezier(0.86, 0, 0.07, 1);
    animation-fill-mode:forwards
}
@keyframes finishBefore {
    0% { transform: translateX(-100%) }
    100% { transform: translateX(0) }
}
@keyframes finishBox {
    0% { transform: translateX(0) }
    100% { transform: translateX(100%) }
}

.loading i{ 
    display:flex; 
    padding: 0 20px;
    height: 40px;
    animation: 1s linear 0s infinite alternate waveText; /* 简写: 名字 时间 曲线 开始时间 次数 逆向还原 结束状态是否回去*/
    font-size: 22px;
    text-align: center;
    background-color: #EEE;
    align-items: center;
}

@keyframes waveText{
    0%{
       opacity: 0.5;
    }
    20%{
       opacity: 1;
    }
    80%{
        opacity: 1;
     }
    100%{
       opacity: 0.5;
    }
}
/* end loading  */

/* link start */

a.link {
    display: inline-block;
    position: relative;
    color: #000;
    padding-bottom: 3px;
    text-decoration: none;
}
a.link:before, a.link:after {
    display: block;
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    border-top: 2px solid #000;
    width: 100%;
}
a.link:before {
    -webkit-transition: transform 0.3s ease 0.3s;
    -moz-transition: transform 0.3s ease 0.3s;
    -ms-transition: transform 0.3s ease 0.3s;
    transition: transform 0.3s ease 0.3s;
    -webkit-transform: scaleX(1);
    -moz-transform: scaleX(1);
    transform: scaleX(1);
    transform-origin: 100% 100%;
}
a.link:after {
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    -webkit-transform: scaleX(0);
    -moz-transform: scaleX(0);
    transform: scaleX(0);
    transform-origin: 0 0;
}
a.link:hover:before {
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    -webkit-transform: scaleX(0);
    -moz-transform: scaleX(0);
    transform: scaleX(0);
}
a.link:hover:after {
    -webkit-transition: transform 0.3s ease 0.3s;
    -moz-transition: transform 0.3s ease 0.3s;
    -ms-transition: transform 0.3s ease 0.3s;
    transition: transform 0.3s ease 0.3s;
    -webkit-transform: scaleX(1);
    -moz-transform: scaleX(1);
    transform: scaleX(1);
}
 /* link end  */

.flat-logo{ width: 250px; position: fixed; right: 20px; bottom: 40px; z-index: 5;}
.flat-logo img{ width: 100%;}

/* memu  */
.menu-mask{ display: none; position: fixed; width: 100%; height: 100%; z-index: 8; left: 0; top: 0; background-color: rgba(0, 0, 0, 0.01);}
.menu.active ~ .menu-mask{ display: block;}
.menu-open{  position: fixed; top: 20px; right: 20px; z-index: 9;}
.menu-open a{ font-size: 32px;}
.menu{ transform: translateX(100%); transition: all 0.4s ease-in; width: 300px; height: 100%; position: fixed; top: 0; right: 0; background-color: rgba(0, 0, 0, 0); z-index: 10;}
.menu.active{ transform: translateX(0); background-color: rgba(0, 0, 0, 1);}
.menu li a{ display: block; color: #FFF; font-size: 32px; margin: 0 20px; text-align: right;}


.menu-link{ 
	display: inline-block; vertical-align: middle;  cursor: pointer;
	position: relative;
    overflow: hidden;
    padding-bottom: 1px;
}
.menu-link:after{
	content: "";
	position: absolute;
	bottom: 0px;
	height: 2px;
	transition: all 0.25s ease-out;
}
.menu-link::after{ background-color: #FFF; width: 0%; left: auto; right: 0; }
.menu-link:hover::after{width: 100%; left: 0; right: auto;}


.menu ol, .menu li{ width: 100%;}
.menu li{transform: translateX(100%); opacity: 0; transition: all 0.5s ease; margin-top: 20px;}
.menu li:nth-child(1){transition-delay: 0.1s;}
.menu li:nth-child(2){transition-delay: 0.2s;}
.menu li:nth-child(3){transition-delay: 0.3s;}
.menu li:nth-child(4){transition-delay: 0.4s;}
.menu.active li{ transform: translateX(0); opacity: 1;}

.btn-close-menu{ text-align: right; padding-top: 20px; padding-right: 20px;}
.btn-close-menu a{ display: inline-block; width: 25px; height: 25px; background-image: url(../images/close.png); background-size: cover; text-indent: 1000px; overflow: hidden;}


/* back  */
.back{ position: fixed; left: 100px; top: 20px; z-index: 9; }
.back .link{ font-size: 32px;}



/* marquee */
.marquee1{ z-index: 5; width: 80px; height: 100%; overflow: hidden; position: fixed; left: 0; top: 0; background-color: var(--bg-green);  transform: rotate(180deg);}
.marquee1 .marquee-content{ display: flex; position: absolute; left: 0; top: 0; writing-mode:vertical-lr; font-size: 32px; white-space: nowrap; font-family: "futurastd-bold";}
.marquee1 .marquee-content p{ display: flex; padding-left: 20px;}
.marquee1 .marquee-content p span{ display: inline-block; margin-top: 20px;}
.marquee2{ display: none;}

@media screen and (max-width: 640px) {
    body::before{ content: ''; position: fixed; width: 100%; height: 50px; background-color: #FFF; left: 0; top: 0; z-index: 4;}
    .flat-logo{ left: 15px; top: 10px; bottom: auto; right: auto; width: auto; height: auto;}
    .flat-logo img{ height: 30px; width: auto;} 
    .marquee1{ display: none;}
    .marquee2{ display: block; opacity: 0; position: relative; z-index: 5; width: 100%; height: 50px; overflow: hidden; background-color: var(--bg-green); }
    .marquee2 .marquee-content{ position: absolute; display: flex; left: 0; top: 10px;  font-size: 22px; white-space: nowrap; font-family: "futurastd";}
    .marquee2 .marquee-content p:last-child{ margin-left: 10px;}
    .marquee2 .marquee-content p span{ display: inline-block;}

    .menu-open {
        top: 10px;
        right: 20px;
        z-index: 9;
    }
    .menu-open a {
        font-size: 18px;
    }
    .menu {
        width: 100%;
        height: auto;
        padding-bottom: 40px;
    }
    .menu li {
        margin: 15px 0;
    }
    .menu li a {
        font-size: 28px;
        margin: 0 20px;
    }

    /* back  */
    .back{ left: 15px; top: 10px; }
    .back .link{ font-size: 18px;}

    
}

/* 横屏 */
@media screen and (max-width: 980px) and (orientation: landscape) {
    .back .link {
        font-size: 20px;
    }
    .menu-open a{ font-size: 20px;}
    .marquee1{ width: 40px;}
    .marquee1 .marquee-content{ font-size: 18px;}
    .marquee1 .marquee-content p{ padding-left: 10px;}
    .flat-logo {
        width: 140px;
        bottom: 10px;
    }
}
