area-detail.scss 5.98 KB
@import 'common/area-common.scss';

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

    &.widthPc {
        padding-bottom: 0;
    }

    .header {
        width: 750px;
        height: 355px;
        background-image: url('../images/area/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/area/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;

            .city-name {
                .name {
                    display: inline-block;
                    max-width: 300px;
                }
            }

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

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

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

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

                .name {
                    display: inline-block;
                    width: 650px;
                }
            }
        }

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

            .left-name {
                display: inline-block;
                width: 245px;
            }

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

            .item {
                width: 310px;
                padding-left: 40px;
                font-size: 30px;
                line-height: 86px;
                color: #1a1a1a;
                background-color: #f6f6f6;

                span {
                    opacity: 0.4;
                }

                img {
                    opacity: 0.4;
                }
            }

            .item.active {
                span {
                    opacity: 1;
                }

                img {
                    opacity: 1;
                }

                .right-part {
                    display: block;
                }
            }

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

        .right-part {
            position: absolute;
            top: 0;
            left: 350px;
            display: none;
            padding-left: 35px;
            width: 365px;
            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;
                display: block;

                a {
                    display: inline-block;
                    vertical-align: top;
                    color: #000;
                }
            }

            .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/area/tick.png');
                }
            }
        }

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

            .child-name {
                display: inline-block !important;
                width: 300px !important;
            }
        }
    }
}