_anchor.css 5.83 KB
body,
ul,
dl,
dd,
dt,
ol,
li,
p,
h1,
h2,
h3,
h4,
h5,
h6,
textarea,
form,
select,
fieldset,
table,
td,
div,
input {
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 12px;
    font-weight: normal;
}

body > div {
    margin: 0 auto;
}

div {
    text-align: left;
}

a img {
    border: 0;
}

body {
    color: #666;
    text-align: center;
    font-size: 12px;
    font-family: helvetica, Arial, 黑体, sans-serif;
    background-color: #fff;
}

ul,
ol,
li {
    list-style-type: none;
    vertical-align: 0;
}

* {
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -ms-touch-action: none;
    -webkit-touch-callout: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.hide {
    display: none;
}

.feature-page {
    max-width: 640px;
    margin: 0 auto;
    overflow-x: hidden;
}

.feature-page .cexuanfu {
    img {
        width: 100%;
    }

    .anchor {
        position: absolute;
        top: 0;
        left: 0;
        background: transparent;
        cursor: pointer;
        z-index: 100;
    }
}

.feature-page .floor {
    width: 100%;
    position: relative;

    img {
        display: block;
        width: 100%;
        height: 100%;
    }

    .anchor {
        position: absolute;
        top: 0;
        left: 0;
        background: transparent;
        cursor: pointer;
        z-index: 100;
    }

    &.fixnav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: none;
        z-index: 1000;
    }

    .tab-container {
        a.active {
            background: rgba(0, 0, 0, 0.2);
        }
    }
}

.swiper-container {
    height: 100%;

    &.swiper {
        padding: 5px 10px;
        height: 100%;
    }
}

.swiper-slide {
    .anchor {
        width: 100%;
        height: 100%;
    }
}

.video {
    position: fixed;
    top: -100%;
    width: 100%;
    height: 360px;
    z-index: 3;

    &.android {
        top: 30%;
        z-index: 1002;
    }
}

.video-android-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    background: #000;
    opacity: 0.7;
}

.video-android-close {
    position: fixed;
    top: 26.2%;
    right: 10px;
    width: 35px;
    height: 35px;
    z-index: 1003;
    background-image: resolve("activity/close.png");
    background-size: cover;
}

.feature-page .modal {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0 auto;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    display: none;
}

.feature-page .modal .modal-close {
    position: absolute;
    display: inline-block;
    top: 20%;
    right: 5%;
    width: 45px;
    height: 45px;
    overflow: hidden;
    border-radius: 50px;
    background: black;
    opacity: 0.5;
    z-index: 100;
}

.feature-page .modal .modal-close:before,
.feature-page .modal .modal-close:after {
    content: "";
    position: absolute;
    width: 80%;
    top: 50%;
    left: 10%;
    height: 6px;
    margin-top: -3px;
    border-radius: 5px;
    background: #fff;
}

.feature-page .modal .modal-close:before {
    transform: rotate(45deg);
}

.feature-page .modal .modal-close:after {
    transform: rotate(-45deg);
}

.feature-page .modal .modal-img {
    position: absolute;
    height: auto;
    top: 20%;
    left: 50%;
    width: 90%;
    transform: translateX(-50%);
}

.feature-page .sidebar {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0 auto;
    display: none;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.feature-page .sidebar-content {
    position: fixed;
    display: block;
    top: 50%;
    right: 0;
    width: 242px;
    margin-top: -407px;
    z-index: 1001;
}

.feature-page .sidebar-item {
    position: relative;

    img {
        display: block;
        width: 100%;
    }

    a {
        position: absolute;
    }
}

.feature-page .sidebar-img {
    position: fixed;
    display: block;
    top: 50%;
    right: 0;
    width: 140px;
    height: 150px;
    margin-top: -75px;
    z-index: 999;
}

.feature-page .over {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 28px;
    color: #000;

    p {
        margin-bottom: 20px;
    }
}

.feature-page .persenal-coupon {
    color: #fff;

    .coupon-amount {
        position: absolute;
        top: 60px;
        left: 50px;
        width: 240px;
        height: 80px;
        line-height: 80px;
        text-align: center;
        font-size: 68px;
        font-weight: bold;
        border-bottom: 1px solid #fff;

        &:before {
            content: "\00A5";
            position: relative;
            left: -6px;
            top: -24px;
            font-size: 34px;
        }
    }

    .coupon-limit {
        position: absolute;
        left: 50px;
        top: 146px;
        width: 240px;
        text-align: center;
        font-size: 24px;
    }

    .coupon-name {
        position: absolute;
        top: 30px;
        right: 30px;
        width: 280px;
        height: 40px;
        font-size: 26px;
        line-height: 40px;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-all;
    }

    .coupon-type {
        position: absolute;
        top: 68px;
        right: 30px;
        width: 280px;
        height: 56px;
        font-size: 36px;
        line-height: 56px;
        font-weight: bold;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-all;
        letter-spacing: 12px;
    }

    .coupon-time {
        position: absolute;
        top: 144px;
        right: 70px;
        font-size: 40px;
        transform: scale(0.4);
        transform-origin: right center;
    }
}