detail.scss 6.02 KB
@import 'common.scss';

.detail-page {
    width: 750px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #556f48;
    padding-bottom: 100px;

    .header {
        width: 750px;
        height: 355px;
        background-image: url('../images/shop_header.jpg');
        background-size: 100% 100%;
        margin-bottom: 20px;
    }

    .main-pic {
        width: 750px;
        height: 300px;
        position: relative;

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

        .name {
            color: #fff;
            text-align: center;
            position: absolute;
            top: 0;
            left: 0;
            width: 750px;
            height: 140px;
            line-height: 70px;
            padding: 80px 0;

            .en {
                font-size: 45px;
            }

            .ch {
                font-size: 42px;
            }
        }
    }

    .intro {
        padding: 30px;
        background-color: #f6f6f6;
        color: #444;
        line-height: 32px;
        font-size: 26px;
        margin-bottom: 30px;
    }

    .download {
        width: 750px;
        height: 155px;
        position: fixed;
        left: 50%;
        margin-left: -375px;
        bottom: 0;
        background-image: url('../images/download.png');
        background-size: 100% 100%;
    }

    .filter-tab {
        width: 750px;
        height: 86px;
        line-height: 86px;
        background-color: #fff;
        padding: 20px 0;
        box-sizing: border-box;
        border-bottom: solid 1px #e0e0e0;
        position: relative;

        .tab-item {
            text-align: center;
            font-size: 30px;
            color: #000;
            line-height: 46px;
            float: left;
            width: 375px;
            box-sizing: border-box;

            &:first-child {
                border-right: solid 1px #e0e0e0;
            }

            .arr {
                display: inline-block;
                width: 12px;
                height: 10px;
                background-size: 100% 100%;
                background-image: url('../images/down-arr.png');
            }
        }

        .active {
            .arr {
                background-image: url('../images/up-arr.png');
            }
        }

        .tab-item.active {
            .down-list {
                display: block;
            }
        }

        .left-part {
            width: 310px;
            max-height: 665px;
            float: left;
            overflow-x: hidden;
            overflow-y: scroll;
            text-align: left;

            .icon {
                width: 30px;
                height: 30px;
                display: inline-block;
                background-size: 100% 100%;
                vertical-align: baseline;
                margin-right: 25px;

                &.all {
                    background-image: url('../images/all-1.png');
                }

                &.buy {
                    background-image: url('../images/buy-1.png');
                }

                &.look {
                    background-image: url('../images/look-1.png');
                }

                &.eat {
                    background-image: url('../images/eat-1.png');
                }

                &.play {
                    background-image: url('../images/play-1.png');
                }

                &.experience {
                    background-image: url('../images/experience-1.png');
                }
            }

            .item {
                padding-left: 40px;
                font-size: 30px;
                line-height: 86px;
                color: #b0b0b0;
                background-color: #f6f6f6;
            }

            .item.active {
                color: #1a1a1a;

                .all {
                    background-image: url('../images/all-2.png');
                }

                .buy {
                    background-image: url('../images/buy-2.png');
                }

                .look {
                    background-image: url('../images/look-2.png');
                }

                .eat {
                    background-image: url('../images/eat-2.png');
                }

                .play {
                    background-image: url('../images/play-2.png');
                }

                .experience {
                    background-image: url('../images/experience-2.png');
                }
            }

            .item.active {
                background-color: #fff;
            }
        }

        .right-part {
            padding-left: 35px;
            width: 405px;
            max-height: 665px;
            float: right;
            overflow-x: hidden;
            overflow-y: scroll;

            .list-item {
                background-color: #fff;
            }
        }

        .down-list {
            display: none;
            position: absolute;
            top: 86px;
            left:0;
            max-height: 665px;
            width: 720px;
            overflow-x: hidden;
            overflow-y: scroll;
            background-color: #fff;
            z-index: 1;
            padding-left: 30px;
            border-bottom: solid 1px #e0e0e0;

            .list-item {
                line-height: 88px;
                height: 88px;
                border-bottom: solid 1px #e0e0e0;
                text-align: left;
                color: #b0b0b0;
                position: relative;
                font-size: 30px;
            }

            .list-item:last-child {
                border-bottom: 0;
            }

            .list-item.active {
                color: #000;

                .tick {
                    position: absolute;
                    top: 33px;
                    right: 33px;
                    width: 30px;
                    height: 22px;
                    background-size: 100% 100%;
                    background-image: url('../images/tick.png');
                }
            }
        }

        .down-list-2 {
            width: 750px;
            padding-left: 0;
            overflow-y: hidden;
        }
    }
}