* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
}

@media only screen and (min-device-width: 800px) {
    html {
        overflow: hidden;
    }
}

/* css3 - animation */
@-webkit-keyframes anim {
    from {
        -webkit-transform: rotateZ(0deg);
    }
    50% {
        -webkit-transform: rotateZ(180deg);
    }
    to {
        -webkit-transform: rotateZ(360deg);
    }
}

@-moz-keyframes anim {
    from {
        -moz-transform: rotateZ(0deg);
    }
    50% {
        -moz-transform: rotateZ(180deg);
    }
    to {
        -moz-transform: rotateZ(360deg);
    }
}

@-ms-keyframes anim {
    from {
        -ms-transform: rotateZ(0deg);
    }
    50% {
        -ms-transform: rotateZ(180deg);
    }
    to {
        -ms-transform: rotateZ(360deg);
    }
}

@-o-keyframes anim {
    from {
        -o-transform: rotateZ(0deg);
    }
    50% {
        -o-transform: rotateZ(180deg);
    }
    to {
        -o-transform: rotateZ(360deg);
    }
}

@keyframes anim {
    from {
        transform: rotateZ(0deg);
    }
    50% {
        transform: rotateZ(180deg);
    }
    to {
        transform: rotateZ(360deg);
    }
}

@-webkit-keyframes showbar {
    from {
        -webkit-transform: translateY(0px);
    }
    50% {
        -webkit-transform: translateY(-10px);
    }
    to {
        -webkit-transform: translateY(0px);
    }
}

@keyframes showbar {
    from {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    to {
        transform: translateY(0px);
    }
}

html {
    height: 100%;
}

body {
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    background-color: #000000;
}

/* pano */
#pano {
    width: 100%;
    height: 100%;
}

/* launch */
#launch {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    /* 	background: #F18B13 no-repeat center center; */
    background: url('img/yfskin_launch_bg.jpg?v=201906041108') no-repeat center center;
    background-size: 100% 100%;
	/*background-color: #132e5b;*/
}

@media screen and (orientation:portrait) {
    #launch {
        background: url('img/yfskin_launch_bg.jpg?v=201906041108') no-repeat center center;
        background-size: 100% 100%;
    }
}
@media screen and (orientation:landscape) {
    #launch {
        background: grey url('img/yfskin_launch_bg_desktop.jpg?v=201906041108') no-repeat center center;
        background-size: 100% 100%;
    }
}

#launch .launch-header {
    /*background: url('img/yfskin_launch_header_bg.png') no-repeat top center;*/
    background-size: 100% auto;
    position: relative;
    max-width: 400px;
    width: 80%;
    height: 98vw; /* 100vw*80%*645/526 */
    max-height: 490.5px; /* 400px*645/526 */
    margin: 0 auto 30px auto;
    top: 53%;
}

#launch .launch-logo {
    /*background: url('img/yfskin_launch_logo.png') no-repeat center bottom;*/
    background-size: 100% auto;
    width: 45%;
    height: 36vw; /* 100vw*80%*45% */
    max-height: 180px; /* 400px*45% */
    margin: 0 auto;
    padding-top: 30%;
}

#launch .launch-loading {
    /*background: url('img/yfskin_launch_loading.png') no-repeat center center;*/
    background-size: 30% 30%;
    width: 45%;
    height: 36vw; /* 100vw*80%*45% */
    max-height: 180px; /* 400px*45% */
    margin: -45% auto 0 auto;
    -webkit-animation: anim 2s linear infinite;
    -moz-animation: anim 2s linear infinite;
    -ms-animation: anim 2s linear infinite;
    -o-animation: anim 2s linear infinite;
    animation: anim 2s linear infinite;
}

#launch .launch-footer {
    top: 10%;
    width: 100%;
    max-width: 400px;
    position: relative;
    margin: 0 auto;
}

#launch .launch-footer .launch-text {
    width: 50%;
    height: 4vw; /* 100vw*50%*24/293 */
    max-height: 16px; /* 400px*50%*24/293 */
    margin: 0 auto;
    /*background: url('img/yfskin_launch_text.png?v=201805171506') no-repeat center center;*/
    background-size: 100% 100%;
}

/* container */

/* widget */
#widget > div {
    z-index: 1000;
}

#widget-logo {
	display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 30px;
    background: url('img/yfskin_widget_logo.png') no-repeat left top;
    background-size: 100% 100%;
}

#widget-popularity {
	display: none;
    position: absolute;
    top: 43px;
    left: 10px;
    width: 150px;
    height: 20px;
    font-size: 12px;
    opacity: 0.6;
}

#widget-qrcode {
	display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: url('img/yfskin_widget_qrcode.png') no-repeat center center;
    background-size: 100% 100%;
}

#widget-qrcode #widget-qrcode-img {
    position: fixed;
    top: 25%;
    width: 200px;
    height: 200px;
    left: calc((100vw - 200px) / 2);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    display: none;
    z-index: 1000;
}

#widget-qrcode #widget-qrcode-img canvas {
    margin: 10px;
    width: 180px;
    height: 180px;
}

#widget-bgm {
	display: none;
    position: absolute;
    top: 70px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: url('img/yfskin_widget_bgm_close.png') no-repeat center center;
    background-size: 100% 100%;
}

#widget-bgm.active {
    background-image: url('img/yfskin_widget_bgm_open.png');
}

#widget-thumbs {
	display: none;
    position: absolute;
    top: 130px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: url('img/yfskin_widget_thumbs.png') no-repeat center center;
    background-size: 100% 100%;
}

#widget-webvr {
	display: none;
    position: absolute;
    top: 190px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: url('img/yfskin_widget_webvr.png') no-repeat center center;
    background-size: 100% 100%;
}

#widget-sharescreen {
    position: fixed;
    top: 25%;
    width: 300px;
    height: 200px;
    left: calc((100vw - 300px) / 2);
    background-color: #fff;
    color: #000;
    border-radius: 20px;
    text-align: center;
    display: none;
}

#widget-sharescreen .ss-header {
    font-size: 26px;
    padding: 10px 0;
    color: #fff;
    background-color: #F18B13;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

#widget-sharescreen .ss-body .ss-id {
    font-size: 24px;
    padding: 8px 0;
    color: #EE9319;
}


/*-------------------------*/
#widget-vrmachine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5) no-repeat 10px center;
    z-index: 10000;
    display: none;
}

#widget-vrmachine .vm-body {
    position: relative;
    top: 10%;
    width: 300px;
    height: 500px;
    margin: 0 auto;
}

#widget-vrmachine .vm-body .vm-image {
    width: 250px;
    height: 160px;
    background: url('img/yfskin_widget_vrmachine.png') no-repeat center;
    background-position: 0 0;
    background-size: 100%;
    margin: 0 auto;
}

#widget-vrmachine .vm-body .vm-input {
    font-size: 22px;
    margin-top: 20px;
}

#widget-vrmachine .vm-body .vm-input div {
    float: left;
}

#widget-vrmachine .vm-body .vm-input input {
    float: right;
    width: 130px;
    height: 25px;
    border-radius: 5px;
    border: 2px solid #fff;
    background-color: transparent;
    color: #fff;
    padding-left: 10px;
    padding-right: 10px;
}

#widget-vrmachine .vm-body button {
    margin-top: 20px;
    width: 100%;
    height: 35px;
    color: #fff;
    background-color: #F18B13;
    border-radius: 5px;
    border: none;
    color: #fff;
    font-size: 20px;
}

#widget-about {
    position: fixed;
    top: 25%;
    width: 300px;
    height: 254px;
    left: calc((100vw - 300px) / 2);
    background: url('img/yfskin_widget_about.png') no-repeat center center;
    background-size: 100% 100%;
    display: none;
    z-index: 1000;
}

/* radar */
#radars {
    position: fixed;
    width: 320px;
    height: 320px;
    top: 10%;
    left: calc((100vw - 320px) / 2);
    background-size: 100%;
    background-repeat: no-repeat;
    z-index: 1000;
    display: none;
}

#radars .radar {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('img/yfskin_radar.png');
    background-size: 100%;
    background-repeat: no-repeat;
}

#radars .radar .pointer {

}

#radars .radar.active {
    background-image: url('img/yfskin_radar_active.png');
}

#radars .radar.active .pointer {
    position: absolute;
    z-index: 1024;
    left: -20%;
    right: -20%;
    top: -20%;
    bottom: 50%;
    will-change: transform;
    transform-origin: 50% 100%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background-image: linear-gradient(135deg,
    rgba(5, 162, 185, 0.8) 0%,
    rgba(0, 0, 0, 0.02) 70%,
    rgba(0, 0, 0, 0) 100%
    );
    clip-path: polygon(100% 0,
    100% 10%,
    50% 100%,
    0 100%,
    0 0);

    animation: rotate360 20s infinite linear;
}

#radars .radar.active .pointer:after {
    content: "";
    position: absolute;
    width: 50%;
    bottom: -1px;
    border-top: 2px solid rgba(0, 231, 244, 0.8);
    box-shadow: 0 0 3px rgba(0, 231, 244, 0.6);
    border-radius: 9px;
}

@keyframes rotate360 {
    0% {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

/* scenes / products */
#scenes, #products {
    position: fixed;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100vw;
    /*height: 0px;*/
    overflow: hidden;
    z-index: 1000;
}

#products .product {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
#scenes .swiper-wrapper,
#products .swiper-wrapper{
    width: 200vh;
}
#scenes .swiper-slide,
#products .swiper-slide {
    /*width: 150px;*/
    display: inline-block;
}

#scenes .swiper-slide .scene, #products .swiper-slide .scene {
    position: relative;
    width: 150px;
    height: 130px;
    cursor: pointer;
    margin-top: 10px;
    pointer-events: auto;
    background-position: 0px -20px;
    background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff !important;
}

#scenes .swiper-slide .scene.active, #products .swiper-slide .scene.active {
    border-style: solid;
    border-color: white;
    border-width: 2px;
    border-radius: 0px;
    margin-top: 8px;
}

#scenes .swiper-slide .scene .scene-title, #products .swiper-slide .scene .scene-title {
    position: absolute;
    width: 100%;
    height: 30px;
    line-height: 30px;
    bottom: 0;
    font-size:15px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
}

/* footer */
#footer {	
    position: fixed;
    left: 0px;
    bottom: -50px;
    width: 200%;
    height: 50px;
    display: none;/*display: flex;*/
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

#footer .footer-showbar {
    position: fixed;
    left: calc((100vw - 35px) / 2);
    bottom: 0px;
    width: 35px;
    height: 25px;
    background-image: url(img/yfskin_button_footer.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    -webkit-animation: showbar 1.5s linear infinite;
    animation: showbar 1.5s linear infinite;
}

#footer .footer-leftbar, #footer .footer-rightbar {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow: hidden;
}

#footer .footer-leftbar .footer-author-avatar {
    margin-top: 5px;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    float: left;
    overflow: hidden;
    margin-left: 2%;
}

#footer .footer-leftbar .footer-author-avatar a {
    display: block;
}

#footer .footer-leftbar .footer-author-avatar a img {
    width: 100%;
    border-radius: 5px;
}

#footer .footer-leftbar .footer-author-display {
    float: left;
    color: #fff;
    margin-left: 2%;
    margin-top: 5px;
    line-height: 20px;
    width: calc(100vw - 6% - 148.5px);
}

#footer .footer-leftbar .footer-author-display .footer-author-name {
    font-size: 14px;
    margin-bottom: 5px;
}

#footer .footer-leftbar .footer-author-display .footer-author-intro {
    font-size: 12px;
    line-height: 14px;
    max-height: 28px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#footer .footer-leftbar .footer-author-appointment {
    right: 28px;
    font-size: 0;
    float: right;
}

#footer .footer-leftbar .footer-author-appointment a {
    display: block;
}

#footer .footer-leftbar .footer-author-appointment a img {
    /*width: 100%;*/
    height: 50px;
}

#footer .footer-leftbar #footer-to-rightbar {
    background: url('img/yfskin_bar_trans.png') no-repeat;
    background-position: left top;
    background-size: 56px 100%;
    width: 28px;
    height: 50px;
    float: right;
}

#footer .footer-rightbar {
    display: flex;
}

#footer .footer-rightbar #footer-to-leftbar {
    background: url('img/yfskin_bar_trans.png') no-repeat;
    background-position: right 0px top 0px;
    background-size: 56px 100%;
    width: 28px;
    height: 50px;
    border-right: 1px solid rgba(178, 178, 178, 0.5);
}

#footer .footer-rightbar .footer-buttons {
    width: calc(100% - 28px);
    height: 50px;
    display: flex;
}

#footer .footer-rightbar .footer-buttons .footer-button {
    width: 16.6667%; /* 100/6 */
    height: 100%;
    background-position: center center;
    background-size: auto 35px;
    background-repeat: no-repeat;
}

#footer .footer-rightbar .footer-buttons #btn-floorplan {
    background-image: url('img/yfskin_bar_btn_floorplan.png');
}

#footer .footer-rightbar .footer-buttons #btn-gyro720 {
    background-image: url('img/yfskin_bar_btn_gyro720.png');
}

#footer .footer-rightbar .footer-buttons #btn-vrmachine {
    background-image: url('img/yfskin_bar_btn_vrmachine.png');
}

#footer .footer-rightbar .footer-buttons #btn-sharescreen {
    background-image: url('img/yfskin_bar_btn_sharescreen.png');
}

#footer .footer-rightbar .footer-buttons #btn-products {
    background-image: url('img/yfskin_bar_btn_products.png');
}

#footer .footer-rightbar .footer-buttons #btn-about {
    background-image: url('img/yfskin_bar_btn_about.png?v=201803271636');
}

/* hotspot editor */
#hotspoteditor {
    position: fixed;
    top: 0px;
    left: 0px;
}

#hotspoteditor .he-button, #hotspoteditor .he-button-generate {
    margin: 3px 3px;
    width: 100px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #fff;
    background: #B5B5B5;
    cursor: pointer;
}

#hotspoteditor .he-button.active {
    background: #288ADD;
}

#hotspotform {
    position: fixed;
    width: 350px;
    top: 20px;
    left: 170px;
    color: #fff;
    background-size: 100%;
    background-repeat: no-repeat;
    background-color: #30302E;
    z-index: 1000;
    display: none;
}

#hotspotform #hotspot-header {
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    border-bottom: 2px solid white;
    margin: 0 10px 0 10px;
}

#hotspotform #hotspot-header span {
    float: right;
    cursor: pointer;
    width: 20px;
    text-align: center;
}

#hotspotform #hotspot-body {
    margin: 10px;
    display: flex;
    flex-wrap: wrap;
}

#hotspotform #hotspot-body .hotspot-item {
    width: 100px;
    height: 100px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: 1px solid grey;
    margin: 0 5px 10px 0;
    cursor: pointer;
}

#hotspotform #hotspot-body .hotspot-item.active {
    border-color: dodgerblue;
}

#hotspotform #hotspot-body .hotspot-item.hotspot-item-default {
    background-image: url('img/yfskin_hotspot_arrow.png');
}

#hotspotform #hotspot-body .hotspot-item.hotspot-item-left {
    background-image: url('img/yfskin_hotspot_arrow_left.png');
}

#hotspotform #hotspot-body .hotspot-item.hotspot-item-right {
    background-image: url('img/yfskin_hotspot_arrow_right.png');
}

#hotspotform #hotspot-body .hotspot-item.hotspot-item-up {
    background-image: url('img/yfskin_hotspot_arrow_up.png');
}

#hotspotform #hotspot-body .hotspot-item.hotspot-item-down {
    background-image: url('img/yfskin_hotspot_arrow_down.png');
}

#hotspotform #hotspot-footer {
    margin: 10px;
}

#hotspotform #hotspot-footer button {
    width: 100%;
    font-size: 20px;
    background-color: #6DA7F6;
    border: none;
    color: #fff;
    height: 40px;
}

/* ware editor */
#wareeditor {
    position: fixed;
    top: 0px;
    left: 0px;
}

#wareeditor .wr-button, #wareeditor .wr-button-generate {
    margin: 3px 3px;
    width: 100px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #fff;
    background: #B5B5B5;
    cursor: pointer;
}

#wareeditor .wr-button.active {
    background: #288ADD;
}

#wareform {
    position: fixed;
    width: 350px;
    top: 30%;
    left: calc((100vw - 350px) / 2);
    color: #fff;
    background-size: 100%;
    background-repeat: no-repeat;
    background-color: #30302E;
    z-index: 1000;
    display: none;
}

#wareform #ware-header {
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    border-bottom: 2px solid white;
    margin: 0 20px 0 20px;
}

#wareform #ware-header span {
    float: right;
    cursor: pointer;
    width: 20px;
    text-align: center;
}

#wareform #ware-body {
    margin: 10px 20px 10px 20px;
}

#wareform #ware-body .ware-item {
    margin: 10px 0 10px 0;
    height: 30px;
    line-height: 30px;
}

#wareform #ware-body .ware-item span:nth-child(1) {
    width: 20%;
}

#wareform #ware-body .ware-item span:nth-child(2) * {
    height: 23px;
    float: right;
    width: 75%;
    background: transparent;
    border: 1px solid #909090;
    color: #fff;
}

#wareform #ware-footer {
    margin: 20px;
}

#wareform #ware-footer button {
    width: 100%;
    font-size: 20px;
    background-color: #6DA7F6;
    border: none;
    color: #fff;
    height: 40px;
}

