_common.scss 6.71 KB
$remNum: 20;

html {
    font-size: 20px;
}

@media only screen and (min-width: 360px) {
    html {
        font-size: 22.5px !important;
    }
}

@media only screen and (min-width: 375px) {
    html {
        font-size: 23.43px !important;
    }
}

@media only screen and (min-width: 401px) {
    html {
        font-size: 25px !important;
    }
}

@media only screen and (min-width: 428px) {
    html {
        font-size: 26.75px !important;
    }
}

@media only screen and (min-width: 480px) {
    html {
        font-size: 30px !important;
    }
}

@media only screen and (min-width: 569px) {
    html {
        font-size: 35px !important;
    }
}

@media only screen and (min-width: 640px) {
    html {
        font-size: 40px !important;
    }
}

/*header*/
.header-download-wrap {
    height: 44rem / $remNum;
    &.show {
        border-top: 1px solid transparent;
        border-bottom: 1px solid transparent;
    }
}

.header-download {
    position: relative;
    height: 44rem / $remNum;
    border-top: 1px solid #bcbcbe;
    border-bottom: 1px solid #000;
    background: #fff;
    &.fix {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 20;
    }
    .tip-pic {
        position: absolute;
        top: 50%;
        left: 20rem / $remNum;
        width: 36rem / $remNum;
        height: 36rem / $remNum;
        margin: (-18rem / $remNum) 0 0 0;
        background: image-url("app-icon.png");
        background-size: 100% 100%;
    }
    .tip-info {
        position: relative;
        margin: 0 0 0 (62rem / $remNum);
        h2 {
            font-size: 12rem / $remNum;
            line-height: 14rem / $remNum;
            margin-top: 8rem / $remNum;
        }
        p {
            color: #959192;
            font-size: 10rem / $remNum;
            line-height: 14rem / $remNum;
        }
        .yohoboy-download-app {
            position: absolute;
            width: 53rem / $remNum;
            height: 21rem / $remNum;
            top: 2rem / $remNum;
            right: 30rem / $remNum;
            border: 1px solid #000;
            line-height: 21rem / $remNum;
            border-radius: 2px;
            text-align: center;
            font-size: 10rem / $remNum;
            color: #000;
        }
    }
    .tip-close {
        position: absolute;
        width: 20rem / $remNum;
        height: 20rem / $remNum;
        top: 0;
        right: 0;
        background: image-url("tip-c.png");
        background-size: 100% 100%;
    }
}

.logo {
    position: relative;
    height: 43rem / $remNum;
    line-height: 43rem / $remNum;
    text-align: center;
    font-size: 24rem / $remNum;
    border-bottom: 1px solid #000;
    .back-btn {
        position: absolute;
        left: 10rem / $remNum;
        font-size: 22rem / $remNum;
        color: #000;
    }
}

.bd {
    padding-bottom: 20rem / $remNum;
}

.slide-main {
    position: relative;
}

.slide-box {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 155rem / $remNum;
    .slide-wrap {
        width: 100%;
        overflow: hidden;
        position: relative;
        .box {
            float: left;
            width: 100%;
            position: relative;
            img {
                display: block;
                width: 100%;
                height: 155rem / $remNum;
            }
        }
    }
}

.slide-navigator {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    text-align: center;
    .dib {
        display: inline-block;
        a {
            float: left;
            width: 6rem / $remNum;
            height: 6rem / $remNum;
            margin-left: 3rem / $remNum;
            background: #d0cfcb;
            border-radius: 50%;
        }
        a:first-child {
            margin-left: 0;
        }
        .swiper-active-switch, .on {
            background: #989795;
        }
    }
}

.layout-item {
    margin: 0 0 (45rem / $remNum) 0;
    .image-box {
        position: relative;
        overflow: hidden;
        img {
            display: block;
            margin: 0 auto;
            width: 100%;
        }
        .item-tag {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 25rem / $remNum;
            padding: 0 (10rem / $remNum);
            line-height: 25rem / $remNum;
            background: #000;
            color: #fff;
            font-size: 14rem / $remNum;
        }
        .play-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 46rem / $remNum;
            height: 40rem / $remNum;
            margin: (-20rem / $remNum) 0 0 (-23rem / $remNum);
            background: image-url("play.png");
            background-size: 100% 100%;
        }
    }
    .content {
        margin: (10rem / $remNum) 0 0 0;
        padding: 0 (16rem / $remNum);
        h2 {
            a {
                line-height: 25rem / $remNum;
                color: #000;
                font-size: 20rem / $remNum;
            }
        }
        p {
            margin: (10rem / $remNum) 0 0 0;
            font-size: 14rem / $remNum;
            line-height: 20rem / $remNum;
        }
        .time {
            margin: 0;
            color: #aaa;
            font-size: 12rem / $remNum;
            background: #fff;
        }
    }
}

.pagination-inner {
    padding: 0 (15rem / $remNum);
    a {
        float: left;
        font-size: 18rem / $remNum;
        color: #000;
        span {
            font-size: 14rem / $remNum;
            vertical-align: 8%;
        }
    }
    a.next {
        float: right;
    }
}

.cooperation-list {
    width: 300rem / $remNum;
    margin: (12rem / $remNum) auto 0;
    li {
        float: left;
        margin: 0 (5rem / $remNum) (9rem / $remNum);
        .img-box {
            width: 138rem / $remNum;
            height: 93rem / $remNum;
            line-height: 93rem / $remNum;
            overflow: hidden;
            border: 1px solid #e0e0e0;
            text-align: center;
            &.current {
                border: 1px solid #000;
            }
            img {
                vertical-align: middle;
                max-width: 100%;
                max-height: 100%;
                width: auto;
                background: #fff;
            }
        }
        p {
            margin: (6rem / $remNum) 0;
            font-size: 12rem / $remNum;
            line-height: 14rem / $remNum;
            text-align: center;
            color: #000;
        }
    }
    li:hover {
        .img-box {
            border: 1px solid #000;
        }
    }
}

.img-zoom {
    display: none;
    position: fixed;
    max-width: 100%;
    z-index: 99;
    top: 50%;
    left: 50%;
    img {
        display: block;
        -width: 100%;
    }
}

.img-zoom.show {
    display: block;
}