* {
    margin: 0;
    padding: 0;
}

html,
body,
input,
text,
textarea {
    outline: none;
    font-family: 'Arial', 'Microsoft YaHei', '黑体', '宋体', sans-serif;
    font-size: 12px;
}

html,
body {
    background: #fff;
}

body {
    height: 100vh;
    margin: 0;
    background: url('https://api.qqsuu.cn/api/dm-bing');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media screen and (max-width: 768px) {
    body {
        height: 100vh;
        margin: 0;
        background-image: url('https://api.qqsuu.cn/api/dm-bing');
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.box {
    width: 650px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    margin-top: 50px;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer {
    width: 100%;
    color: #000;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrap {
    flex: 1;
    text-align: center;
    overflow: hidden;
}

.wrap .meta {
    opacity: 0;
    transform: translateY(-150px);
    transition: .5s all ease;
}

.on .wrap .meta {
    opacity: 1;
    transform: translateY(0);
}

.wrap .title {
    margin: 20px 0 0 0;
    opacity: 0;
    transform: translateY(-150px);
    transition: .5s all ease;
}

.on .wrap .title {
    opacity: 1;
    transform: translateY(0);
}

.wrap .short-url-container {
    opacity: 0;
    transition: .5s opacity ease;
}

.on .wrap .short-url-container {
    opacity: 1;
}

.wrap .qrcode-container {
    opacity: 0;
    transition: .5s opacity ease;
}

.on .wrap .qrcode-container {
    opacity: 1;
}

.wrap .meta .title {
    line-height: 1em;
    color: #ff4665;
    font-size: 42px;
    text-transform: uppercase;
}

.wrap .meta .description {
    margin: 10px 0 0 0;
    line-height: 1em;
    color: #7e7e7e;
    font-size: 16px;
    font-weight: normal;
}

.wrap .link-area {
    margin: 30px 0 0 0;
    opacity: 0;
    transition: .5s opacity ease;
}

.on .wrap .link-area {
    opacity: 1;
}

.wrap .link-area input {
    display: inline-block;
    vertical-align: middle;
}

.wrap .link-area #url {
    width: 320px;
    height: 32px;
    line-height: 32px;
    padding: 0 10px;
    margin: 10px;
    border: 3px solid #bdc3c7;
    border-radius: 5px;
    color: #333;
}

.wrap .link-area #url.focus,
.wrap .link-area #url:focus {
    border-color: #ff4665;
    transition: .2s border ease;
}

.wrap .link-area #submit {
    width: 90px;
    height: 38px;
    margin: 0 0 0 5px;
    background: #ff4665;
    border-radius: 5px;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: .2s opacity ease;
}

.wrap .link-area #submit:hover {
    opacity: .75;
}

.wrap .link-area #submit:active {
    opacity: .9;
}

@media only screen and (max-width: 720px) {
    .box {
        width: 89%;
        margin: 50px 10px 0px 10px;
    }
   .wrap .link-area #url {
        width: 280px;
    }
}

.wrap .footer {
    width: 100%;
    left: 0;
    position: absolute;
    color: #7e7e7e;
}

.wrap .footer a {
    color: #ff4665;
}

.qrcode-container {
    margin: 20px auto;
    width: 150px;
    height: 150px;
    border: 3px solid #bdc3c7;
    border-radius: 5px;
}

.short-url-container {
    margin-top: 10px;
    color: #333;
    font-size: 14px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #bdc3c7;
    border-radius: 5px;
    margin: 20px auto;
    width: 230px;
    height: 36px;
    font-weight: bold;
}

.qrcode-container img {
    width: 100%;
    height: 100%;
    -webkit-touch-callout: default; /* 启用iOS长按菜单 */
}