/*字体大小*/

// @import "base/base";
@import "base/mixins";
$baseFontSize: 14px;
$smallFontSize: 12px;
$largeFontSize: 16px;

/*字体颜色*/

$baseFontColor: #333333;
$lightFontColor:#999999;
$baseBorder:1px solid #e9e9e9;
$baseBgColor:#f7f7f7;
$highLightColor:#e94647;
.common-comment {
    margin-top: px2rem(20);
    .comment-type-nav {
        padding: 0 px2rem(25) px2rem(30);
        .comment-type {
            line-height: px2rem(44);
            padding: 0 px2rem(15);
            background-color: transparent;
            &.active {
                color: #fff;
                background-color: $highLightColor;
            }
        }
    }
    .comment-list-wrap {
        display: none;
        &.active {
            display: block;
        }
    }
    .no-comment {
        text-align: center;
        line-height: px2rem(80);
    }
    .comment-num {
        display: block;
        margin-left: px2rem(30);
        color: $highLightColor;
        font-size: 12px;
    }
    .comment-list__item {
        padding-bottom: px2rem(20);
        border-bottom: $baseBorder;
        &:last-child {
            border-bottom: none;
        }
        .comment-wrap {
            overflow: hidden;
        }
    }
    .self-comment {
        padding: 0 px2rem(25);
    }
    .other-comment {
        padding: 0 px2rem(25);
        margin: px2rem(25) px2rem(25) 0 px2rem(82);
        background-color: #f7f7f7;
    }
    .show-more-comments {
        display: block;
        margin: 0 px2rem(25) 0 px2rem(82);
        line-height: px2rem(50);
        border-top: $baseBorder;
        background-color: #f7f7f7;
        text-align: center;
    }
    .user-info__wrap {
        @include webkitbox();
        -webkit-box-pack: justify;
        -webkit-box-align: center;
        padding: px2rem(20) 0;
        color: #666666;
        .user-info {
            @include webkitbox();
            -webkit-box-align: center;
        }
        .user-icon {
            display: block;
            width: px2rem(54);
            height: px2rem(54);
            border-radius: 50%;
        }
        .user-name {
            margin-left: px2rem(26);
        }
        .comment-time {
            display: block;
        }
    }
    .comment-content {
        padding-left: px2rem(80);
        line-height: 1.4;
    }
    .op-btn {
        @include webkitbox();
        -webkit-box-pack: end;
        -webkit-box-align: center;
        button {
            display: block;
            height: px2rem(44);
            box-sizing: content-box;
            padding: 0 px2rem(10);
            border: $baseBorder;
            border-radius: 2px;
            background-color: transparent;
            outline: none;
            line-height: px2rem(44);
            margin-left: px2rem(30);
            font-size: 12px;
            color: $lightFontColor;
            &:before {
                content: '';
                display: inline-block;
                vertical-align: top;
                height: 100%;
            }
            &.have-agree {
                background: $highLightColor;
                color: #fff;
            }
        }
        &.one-level {
            margin: px2rem(20) 0 px2rem(25);
            .btn-reply:before {
                width: px2rem(30);
                margin-right: px2rem(10);
                background: url(../img/reply_icon.png) no-repeat center;
                background-size: 100% auto;
            }
        }
        &.two-level {
            margin: px2rem(20) 0 px2rem(10);
            .btn-reply {
                border: none;
                color: $highLightColor;
            }
        }
        .btn-agree:before {
            width: px2rem(25);
            margin-right: px2rem(15);
            background: url(../img/agree_icon.png) no-repeat center;
            background-size: 100% auto;
        }
    }
}

.sec-common-header {
    position: relative;
    @include webkitbox();
    -webkit-box-align: center;
    height: px2rem(90);
    padding: 0 px2rem(24);
    border-bottom: $baseBorder;
    color: #333333;
    font-size: 15px;
    line-height: px2rem(90);
    &:before {
        content: '';
        display: block;
        width: 2px;
        height: px2rem(28);
        margin-right: px2rem(10);
        background: $highLightColor;
    }
    a {
        position: absolute;
        @include webkitbox();
        -webkit-box-align: center;
        -webkit-box-pack: end;
        left: px2rem(24);
        top: 0;
        right: px2rem(24);
        color: #999999;
        &.remove-arrow::after {
            display: none;
        }
        &:after {
            content: '';
            display: block;
            margin-left: px2rem(10);
            @include arrow(8px, 1px, $lightFontColor, 45deg);
        }
    }
}

.common-look-more {
    @include webkitbox;
    -webkit-box-align: center;
    -webkit-box-pack: center;
    height: px2rem(88);
    border-top: $baseBorder;
    line-height: px2rem(88);
    color: $lightFontColor;
    &.is-loading {
        &:after {
            border-width: 1px;
            animation: turn-around .8s linear infinite;
        }
    }
    &:after {
        content: '';
        display: block;
        margin-left: px2rem(15);
        @include arrow(8px, 1px, $lightFontColor, 45deg);
    }
}

.fixed-comment-area {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: px2rem(20) px2rem(20) px2rem(74);
    border: $baseBorder;
    background-color: #fff;
    font-size: $baseFontSize;
    line-height: 18px;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform .3s ease;
    &.show {
        transform: translateY(0);
    }
    &.bottom {
        bottom: 0;
    }
    .comment-textarea {
        -webkit-appearance: none;
        /*去除系统默认的样式*/
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        /* 点击高亮的颜色*/
        display: block;
        width: 100%;
        height: px2rem(108);
        padding: 0;
        box-sizing: content-box;
        resize: none;
        border: $baseBorder;
        outline: 0;
        font-size: 14px;
        line-height: 24px;
        color: #333333;
        border-radius: 3px;
        background-color: #f4f4f4;
    }
    .emit-comment {
        position: absolute;
        right: 0;
        bottom: px2rem(15);
        height: px2rem(44);
        padding: 0 px2rem(30);
        margin-right: px2rem(20);
        background-color: #e94647;
        color: #fff;
    }
}

/*公用遮罩*/

.fixed-shade {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 5000px;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    display: none;
    &.active {
        display: block;
    }
}