@font-face {
    font-family: 'RobotoMedium';
    src: url("/fonts/Roboto-Medium-webfont.eot");
    src: url("/fonts/Roboto-Medium-webfont.eot?#iefix") format("embedded-opentype"), url("/fonts/Roboto-Medium-webfont.woff") format("woff"), url("/fonts/Roboto-Medium-webfont.ttf") format("truetype"), url("/fonts/Roboto-Medium-webfont.svg#RobotoMedium") format("svg");
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #fff;
    background-image: url("../images/background.jpg");
    background-size: cover;
    font-family: 'RobotoMedium';
    margin: 0;
    padding: 0;
}

input {
    width: 85%;
    margin-right: 1%;
    height: 2em;
    font-size: 1.6em;
    float: left;
}

h1 {
    text-transform: uppercase;
    text-align: center;
}

h2 {
    margin: 1em;
}

h3 {
    margin: 1em 2em;
}

p {
    line-height: 1.6;
    margin: 1em 2em;
}

p.intro {
    clear: both;
}

a {
    color: #101010;
    text-decoration: none;
    transition: all 1s ease-in-out;
}

a:hover {
    color: #cc4e46;
    background-color: #ede6dc;
}

.button {
    background-color: #ede6dc;
    color: #cc4e46;
    width: 8%;
    line-height: 2em;
    height: 2em;
    margin: 0;
    font-size: 1.6em;
    text-align: center;
    float: left;
    border: solid 1px #8e352e;
    box-shadow: 0 0 3px #333;
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;
}

.button:hover {
    background-color: #cc4e46;
    color: #ede6dc;
}

.button1 {
    background-color: #ede6dc;
    border: 1px solid #8e352e;
    box-shadow: 0 0 3px #333;
    color: #cc4e46;
    float: left;
    font-size: 1.6em;
    line-height: 2em;
    height: 2em;
    margin: 0;
    text-align: center;
    width: 80%;
    padding: 0 0.5em;
    box-sizing: border-box;
}

.wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.display {
    position: relative;
    left: 0;
    height: 600px;
}

.url {
    float: left;
    width: 100%;
    margin: 0 auto;
}

form {
    width: 85%;
    margin: 1em auto;
    overflow: hidden;
}

div {
    background-repeat: no-repeat;
    background-size: 100%;
    overflow: hidden;
}

iframe {
    transform: scale(0.219);
    transform-origin: top left;
    margin: 0;
    padding: 0;
    position: relative;
    background-color: #fff;
    border-color: #000;
}

.mobile {
    background-image: url("../images/iphone-optimised.png");
    position: absolute;
    width: 95px;
    height: 196px;
    top: 375px;
    left: 300px;
    z-index: 5;
}

.mobile iframe {
    width: 320px;
    height: 480px;
    top: 32px;
    left: 11px;
    overflow-y: hidden;
}

.tablet {
    background-image: url("../images/ipad-optimised.png");
    width: 246px;
    height: 400px;
    z-index: 3;
    position: absolute;
    left: 120px;
    top: 230px;
}

.tablet iframe {
    width: 768px;
    height: 1024px;
    top: 35px;
    left: 38px;
    overflow-y: hidden;
}

.laptop {
    background-image: url("../images/laptop-screen-optimised.png");
    width: 477px;
    height: 307px;
    top: 264px;
    left: 560px;
    position: absolute;
    z-index: 2;
}

.laptop iframe {
    width: 1280px;
    height: 802px;
    top: 26px;
    left: 60px;
    transform: scale(0.277);
    transform-origin: top left;
}

.desktop {
    position: absolute;
    width: 566px;
    height: 538px;
    background-image: url("../images/large-screen-optimised.png");
    top: 0;
    left: 220px;
    z-index: 1;
}

.desktop iframe {
    left: 28px;
    top: 38px;
    width: 1600px;
    height: 992px;
    transform: scale(0.3181);
    transform-origin: top left;
}

/* ===================== 响应式断点 ===================== */

@media (max-width: 1160px) {
    .display {
        width: 95%;
        height: 550px;
        transform: scale(0.81);
    }
    .desktop { left: 180px; }
    .laptop { left: 520px; }
    .tablet { left: 80px; }
    .mobile { left: 260px; }
    input { width: 88%; }
}

@media (max-width: 1070px) {
    .display { left: -50px; }
}

@media (max-width: 1000px) {
    .display {
        height: 500px;
        transform: scale(0.71);
        top: -40px;
    }
    .desktop { left: 140px; }
    .laptop { left: 480px; }
    .tablet { left: 40px; }
    .mobile { left: 220px; }
}

@media (max-width: 850px) {
    .display {
        height: 500px;
        transform: scale(0.65);
    }
    .desktop { left: 100px; }
    .laptop { left: 440px; }
    .tablet { left: 0; }
    .mobile { left: 180px; }
}

@media (max-width: 768px) {
    .display {
        height: 450px;
        transform: scale(0.55);
    }
    .button, .button1 {
        font-size: 1.4em;
        line-height: 2em;
        height: 2em;
    }
    .button {
        margin-top: 0.5em;
        width: 100%;
    }
    .button1 {
        width: 100%;
    }
    input {
        height: 2em;
        width: 100%;
    }
    form {
        width: 95%;
    }
    .tips {
        width: 95%;
        margin: 0 auto 10px;
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 670px) {
    .display {
        height: 400px;
        left: -70px;
        transform: scale(0.45);
    }
}

@media (max-width: 580px) {
    input {
        font-size: 1.4em;
        height: 2em;
        width: 100%;
    }
    .button, .button1 {
        width: 100%;
        float: left;
        font-size: 1.4em;
        line-height: 2em;
        height: 2em;
    }
    .button {
        margin-top: 0.5em;
    }
}

@media (max-width: 560px) {
    .display {
        height: 270px;
        top: -65px;
        transform: scale(0.37);
    }
}

/* ===================== 手机端核心修复 ===================== */

@media (max-width: 480px) {
    body {
        margin-top: 10px;
    }

    .wrapper {
        width: 100%;
        overflow-x: hidden;
    }

    .display {
        width: 100%;
        height: 560px;
        left: 0;
        top: 0;
        transform: none;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        text-align: left;
        padding: 20px 10px;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .mobile, .tablet, .laptop, .desktop {
        position: relative;
        display: inline-block;
        vertical-align: top;
        top: auto;
        left: auto;
        margin: 0 15px 0 0;
        transform: none;
        overflow: visible;
    }

    .mobile {
        width: 95px;
        height: 196px;
        z-index: 5;
    }

    .mobile iframe {
        transform: scale(0.219);
    }

    .tablet {
        width: 246px;
        height: 400px;
        z-index: 3;
    }

    .tablet iframe {
        transform: scale(0.234);
    }

    .laptop {
        width: 477px;
        height: 307px;
        z-index: 2;
    }

    .laptop iframe {
        transform: scale(0.277);
    }

    .desktop {
        width: 566px;
        height: 538px;
        z-index: 1;
    }

    .desktop iframe {
        transform: scale(0.3181);
    }

    h1 {
        font-size: 1.2em;
    }

    p {
        margin: 0.5em 1em;
    }

    .url {
        padding: 0 10px;
        box-sizing: border-box;
    }

    form {
        width: 100%;
        margin: 0.5em 0;
        overflow: visible;
    }

    .button1, .button {
        width: 100%;
        float: none;
        font-size: 1.2em;
        line-height: 2.2em;
        height: 2.2em;
        margin: 0 0 8px 0;
        box-sizing: border-box;
        display: block;
    }

    .button {
        margin-top: 0;
    }

    .tips {
        width: 100%;
        margin: 0 0 10px 0;
        padding: 10px 12px;
        font-size: 12px;
        line-height: 1.6;
        box-sizing: border-box;
    }

    .tips p {
        margin: 0;
    }
}

@media (max-width: 320px) {
    .display {
        height: 520px;
        padding: 15px 10px;
    }

    .mobile, .tablet, .laptop, .desktop {
        margin: 0 10px 0 0;
    }

    .button1, .button {
        font-size: 1.1em;
        line-height: 2.2em;
        height: 2.2em;
    }

    .tips {
        font-size: 11px;
        padding: 8px;
    }
}