@charset "utf-8";

:root {
    --main-color: #3579ff;
    --main-color2: #589afa;
    --main-width: 1280px;

    --font-color-gary: #999;
    --font-color-black: #333;
    --font-size-small: 14px;
    --font-size-base: 18px;
    --font-size-big: 52px;
}

* {box-sizing: border-box; font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica,  "Hiragino Sans GB", Arial, sans-serif;}
html,body,div,ul,li,ol,h1,h2,h3,h4,h5,h6,input,textarea,select,p,dl,dt,dd,a,img,button,form,table,th,tr,td,tbody,article,
aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {margin: 0; padding: 0; border: none; outline: none; font-family: 'AvenirNext-Bold', 'Microsoft YaHei'; font-weight: normal;}
a {text-underline: none; text-decoration: none; color: var(--font-color-black); transition: color 0.3s;}
a:hover {color: var(--main-color2);}
ul,li,ol,dl,dd {list-style-type: none;}

i, em {font-style: normal;}

/* 超过隐藏 */
.ellipsis {overflow: hidden; word-break: keep-all; white-space: nowrap; text-overflow: ellipsis;}

/* webkit 内核 scrollbar 样式 */
*::-webkit-scrollbar-track {-webkit-box-shadow: inset 0 0 4px rgba(0,0,0,0.2); background-color: #ccc;}
*::-webkit-scrollbar {width: 8px; height: 8px; background-color: rgba(0,0,0,0.5);}
*::-webkit-scrollbar-thumb {
    background-image: -webkit-gradient(linear, left bottom, left top,
    color-stop(0, rgb(150,150,150)), color-stop(0.5, rgb(150,150,150)), color-stop(1, rgb(150,150,150)));
}
/* webkit 内核 scrollbar 样式 */

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {-webkit-appearance: none;}

/* clear */
.clearFix {zoom: 1;}
.clearFix::after {visibility: hidden; display: block; font-size: 0; content: ""; clear: both; height: 0;}

.noSelect {user-select: none; pointer-events: none;}
._app_show {display: none;}

h1 {font-size: var(--font-size-big);}
h1.full {width: 100%; text-align: center; line-height: 100px;}
h3 {font-size: 36px; font-weight: bold;}
h4 {font-size: 24px;}
.flexCenter {display: flex; justify-content: center; align-items: center; flex-wrap: wrap;}

.layout {width: 100%; overflow: hidden; position: relative;}

nav {
    width: 100%; height: 80px; background: #fff; padding: 0 calc((100% - var(--main-width)) / 2);
    display: flex; justify-content: space-between; align-items: center;
}
nav svg {height: 44px;}
nav svg:nth-of-type(2) {height: 38px; margin-left: 10px;}
nav a {
    width: 196px; height: 44px; line-height: 44px; font-size: var(--font-size-base); color: #fff; text-align: center;
    border-radius: 22px; background-image: linear-gradient(90deg, #9194fd 0%, #589afa 100%); transition: all 0.3s;
}
nav a:hover {color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.7);}
header {
    width: 100%; height: 100vh; max-height: 1000px; position: relative; overflow: hidden;
    background-image: linear-gradient(145deg, var(--main-color2) 0%, var(--main-color) 100%);
}
header .ocean {width: 100%; height: 400px; position: absolute; bottom: -110px; left: 0;}
header .ocean .wave {
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAwIiBoZWlnaHQ9IjMwMCI+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSI1MCUiIHgyPSI1MCUiIHkxPSItMTAuOTU5JSIgeTI9IjEwMCUiPgogICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjEiIG9mZnNldD0iMCUiLz4KICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI2ZmZiIgb2Zmc2V0PSIxMDAlIi8+CiAgICA8L2xpbmVhckdyYWRpZW50PgogIDwvZGVmcz4KICA8cGF0aCBmaWxsPSJ1cmwoI2EpIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0uMDA1IDEyMUMzMTEgMTIxIDQwOS44OTgtLjI1IDgxMSAwYzQwMCAwIDUwMCAxMjEgNzg5IDEyMXY3N0gwcy4wMDUtNDggLjAwNS03N3oiIHRyYW5zZm9ybT0ibWF0cml4KC0xIDAgMCAxIDE2MDAgMCkiLz4KPC9zdmc+Cg==') repeat-x;
    width: 300vw; height: 300px; position: absolute; top: 24px; background-size: 100vw 560px; opacity: 1;
    animation: wave 10s linear infinite, low 8s ease infinite;
    transform: translate3d(0, 0, 0);
}
header .ocean .wave:nth-of-type(2) {
    top: 36px; opacity: 0.5;
    animation: wave 13s cubic-bezier(.36,.45,.63,.53) -3s infinite, swell 12s cubic-bezier(.36,.45,.63,.53) -3s infinite;
}
header .ocean .wave:nth-of-type(3) {
    top: 4px; opacity: 0.2;
    animation: wave 16s linear -6s infinite, swell 16s linear -6s infinite;
}
header .app {
    width: 100vw; max-width: 1200px; position: absolute; bottom: 100vh; left: 100vw; z-index: 1;
    opacity: 0; pointer-events: none; animation: app 1s 1s ease-in-out forwards; /*transform: rotate(30deg);*/
}
header figure {width: var(--main-width); padding: 105px 0 0; margin: 0 auto;}
header .logo-zhiyu {width: 120px; height: 120px; padding: 20px; background: #fff; border-radius: 10px;}
header .text-zhiyu {margin: 66px 0 26px;}
header figure p {color: #fff; margin-top: 34px; letter-spacing: 2px; font-size: var(--font-size-base);}

header ul {margin-top: 105px; position: relative; z-index: 2;}
header ul li {width: 140px; font-size: var(--font-size-base); margin-right: 32px; float: left;}
header ul li img {width: 100%; padding: 10px; background: #fff;}
header ul li::after {
    width: 100%; line-height: 50px; text-align: center; color: #fff; display: block;
    text-shadow: -2px 2px 4px var(--main-color), 2px 2px 4px var(--main-color2);
}
header ul li:nth-of-type(1)::after {content: "苹果下载";}
header ul li:nth-of-type(2)::after {content: "安卓下载";}
header ul li:nth-of-type(3)::after {content: "知寓小程序";}

.global {height: 900px;}
.global figure {width: var(--main-width); position: relative;}
.global figcaption {font-size: var(--font-size-big);}
.global dl dt {line-height: 36px; margin: 50px 0;}
.global dl dd {font-size: 24px; display: flex; align-items: center; font-weight: lighter;}
.global dl dd span {width: 38px; display: flex; justify-content: center; align-items: center; margin-right: 20px;}

.smartApartment {background: #fff;}
.smartApartment::before, .smartApartment::after {
    content: ""; width: 752px; height: 752px; pointer-events: none; position: absolute; z-index: 1;
    background: url("../images/oval.png") no-repeat; opacity: 0;
    transition: opacity 0.3s 1s; animation: low 5s ease-in-out infinite;
}
.smartApartment::before {left: -376px; bottom: -376px;}
.smartApartment::after {zoom: 0.6; right: -50px; top: 50px; animation-delay: 2s;}
.smartApartment.start::before, .smartApartment.start::after {opacity: 1;}
.smartApartment figcaption, .smartApartment dl {width: 430px; color: var(--font-color-black); position: relative; z-index: 2;}
.smartApartment dl dt {color: var(--font-color-gary);}
.smartApartment dl dd {width: 100%; margin-bottom: 50px;}
.smartApartment .lock {position: absolute; right: -20px; bottom: -500px; z-index: 2; opacity: 0; transition: all 0.5s;}
.smartApartment.start .lock {bottom: -350px; opacity: 1;}

.application {color: #fff; background: var(--main-color2) url("../images/part-3-bg.jpg") no-repeat; background-size: cover;}
.application figcaption, .application dl {width: 430px;}
.application dl dd {width: 50%; height: 66px; float: left;}
.application .app {position: absolute; top: calc(50% - 375px); right: 0; z-index: 1;}
.application .app img {opacity: 0; transform: translateX(100px); transition: all 0.5s;}
.application .app img:nth-of-type(2) {transition-delay: 0.5s;}
.application.start .app img {opacity: 1; transform: translateX(0);}

.policy {width: var(--main-width);}

footer {padding: 20px 0; background: #fff; overflow: hidden; font-weight: lighter;}
footer p {width: 100%; height: 32px; line-height: 32px; text-align: center;}
footer a {margin-left: 30px; position: relative;}
footer a::before {
    content: ""; width: 1px; height: 14px; background: var(--font-color-gary);
    position: absolute; left: -16px; top: 5px;
}

@media screen and (max-width: 1580px) { }

@media screen and (max-width: 1280px) { }

@media screen and (max-width: 1080px) { }

@media screen and (max-width: 760px) {
    :root {
        --main-width: 100%;
        --font-size-big: 32px;
    }

    ._app_show {display: inline-block;}
    
    h3 {font-size: var(--font-size-base);}
    h4 {font-size: var(--font-size-small);}

    nav {display: none;}
    header {height: 1400px; max-height: none;}
    header .ocean {width: 900px;}
    header .ocean .wave {
        width: 900vw; background-size: 300vw 560px;
        animation: waveMobile 10s linear infinite, low 8s ease infinite;
    }
    header .ocean .wave:nth-of-type(2) {
        animation: waveMobile 13s cubic-bezier(.36,.45,.63,.53) -3s infinite, swell 12s cubic-bezier(.36,.45,.63,.53) -3s infinite;
    }
    header .ocean .wave:nth-of-type(3) {
        animation: waveMobile 16s linear -6s infinite, swell 16s linear -6s infinite;
    }
    header .app {
        width: 800px; top: 500px; bottom: auto; left: 100vw;
        animation: appMobile 1s 1s ease-in-out forwards;
    }
    header figure {width: 100%; padding-top: 50px; text-align: center;}
    header .logo-zhiyu {width: 100px; height: 100px; padding: 10px; border-radius: 10px;}
    header .text-zhiyu {margin: 26px 0;}
    header figure p {color: #fff; margin-top: 34px; letter-spacing: 2px; font-size: var(--font-size-base);}

    header ul {display: none;}
    header button._app_show {
        padding: 10px 20px; margin: 40px auto; display: flex; justify-content: center; align-items: center;
        background: rgba(255,255,255,0.2); border-radius: 10px;
    }
    header button img {width: 24px; margin-right: 10px;}
    header button span {font-size: 12px; color: #fff;}
    header button i {font-size: var(--font-size-base);}

    .global figure {text-align: center; z-index: 9; margin-bottom: 200px;}
    .global dl dt {margin: 20px 0;}
    .global dl dd {font-size: var(--font-size-small);}
    .global dl dd span {width: 16px; margin-right: 10px;}
    .global dl dd span img {width: 100%;}

    .smartApartment {height: 500px;}
    .smartApartment::before {zoom: 0.5; left: -376px; bottom: -376px;}
    .smartApartment::after {zoom: 0.4; right: -376px; top: 50px;}
    .smartApartment figcaption, .smartApartment dl {width: 100%;}
    .smartApartment dl {display: flex; justify-content: space-evenly; align-items: center; flex-wrap: wrap;}
    .smartApartment dt {width: 100%;}
    .smartApartment dl dd {width: auto;}
    .smartApartment .lock {width: 90%; right: 5%;}

    .application {height: 750px; padding-bottom: 100px;}
    .application figcaption, .application dl {width: 100%;}
    .application figcaption {line-height: calc(var(--font-size-big) * 1.5);}
    .application dt {padding: 0 20px;}
    .application dl dd {height: 40px; justify-content: center;}
    .application .app {
        width: var(--main-width); top: 400px;
        display: flex; justify-content: center; align-items: center;
    }
    .application .app img {width: 40%;}

    .policy {padding: 0 15px;}

    footer p {height: auto;}
    footer a {display: block; margin-left: 0;}
    footer a::before {content: none;}

    @keyframes waveMobile {
        0% {margin-left: 0} 100% {margin-left: -600vw}
    }
    @keyframes appMobile {
        0% {left: 100vw; opacity: 0;} 100% {left: -10vw; opacity: 1;}
    }
}


@keyframes wave {
    0% {margin-left: 0} 100% {margin-left: -200vw}
}
@keyframes swell {
    0%,100% {transform: translate3d(0,-30px,0)}
    50% {transform: translate3d(0,10px,0)}
}
@keyframes low {
    0%,100% {transform: translate3d(0,30px,0)}
    50% {transform: translate3d(0,0,0)}
}
@keyframes app {
    0% {bottom: 100vh; left: 100vw; opacity: 0;} 100% {bottom: 0; left: calc(50% - 1200px / 6); opacity: 1;}
}