$font-color: red;
$card-width: 700px;
$img-width: 250px;

/*
author: ourfor
date: 2019-08-01
天气阴☁️ 状态一般 心情还行
*/

body,html{
    padding: 0;
    margin: 0;
    text-align: center;
}

.post-card{
    margin: 15px auto;
    text-align: left;
    width: $card-width;
    // border: 1px solid #e9e9e9;
    transition: .4s ease-in-out;
    padding: 20px 10px;
    @media only screen and (max-width: 767px) {
        width: 100%;
        padding: 20px 0;
        padding-top: 5px;
    }
    padding-bottom: 5px;
    border-radius: 4px;
    // box-shadow: 4px 4px 10px 3px rgba(0, 0, 0, 0.07), 
    //             -1px -1px 9px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 
                0 2px 10px 0 rgba(0,0,0,0.12);

    img{
        width: $img-width;
    }

    .post-title{
        // font-weight: 300;
        // font-size: 1.1em;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 10px;
        position: relative;
        margin-left: 2px;
        background: linear(#f3f3f3,#e9e9e9);
        padding: 2px 5px;
        box-shadow: 0 1px 2px 0 rgba(0,0,0,.07);
        border-radius: 2px;

        @media only screen and (max-width: 767px) {
            margin-bottom: 0;
        }
    

        &::before{
            content: "";
            display: block;
            position: absolute;
            background: red;
            width: 3px;
            height: 80%;
            top: 10%;
            left: -10px;

            @media only screen and (max-width: 767px) {
                left: -2px;
            }

        }
    }

    .post-info{
        display: flex;
        align-items: center;
        
        .post-desc{
            margin: 10px 1em;
            // font-size: 1.056em;
            font-size: 17px;
            color: #1a1a1a;
            white-space: normal;
            word-break: break-word;
            line-height: 1.6;
            letter-spacing: .06em;
            font-family: -apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;

            a{
                color: #175199;
                text-decoration-line: none;
            }
        }

        .post-desc::first-letter{
            font-size: 1.5em;
            color: red;
        }
    }

    .post-stats{
        margin-top: 20px;
        margin-bottom: 0;
        padding-bottom: 4px;
        font-weight: 400;
        display: flex;
        justify-content: left;
        align-items: center;
        color: #6b6c6e;

        @media only screen and (max-width: 767px) {
            $padding-left-right: 10px;
            padding-left: $padding-left-right;
            padding-right: $padding-left-right;
        }

        span{
            margin: 0;
            padding: 0;
            display: flex;
            align-items: center;
        }


        span>div{
            width: 1.4em;
            height: 1.4em;
            // font-size: 1.4em;
            color: #54427d;
            padding-right: 6px;
            padding-left: 4px;
        }

        .post-info-share{
            &:hover{
                cursor: pointer;
            }
        }
    }

    @each $item in (time,share,stats,eye,pricetags,chatbubbles){
        div[name=icon-#{$item}]{
            background-repeat: no-repeat;
            background-image: url("../image/icon_#{$item}.svg");
        }
    }
    

}


.hidden{

    span{
        width: 20px;
        height: 20px;
        top: -10px;
        left: 38px;
        position: absolute;
        border: 1px solid #e9e9e9;
        background: white;
        padding: 0;
        margin: 0;
        transform: rotate(45deg);
        z-index: 40;

        &::after{
            content: '';
            top: 8px;
            display: block;
            width: 24px;
            height: 24px;
            background: white;
        }
    }
    .menu{
        display: none;
        width: 400px;
        position: absolute;
        width: 100px;
        transform: translate(-50%,0);
        z-index: 520;

        // &::before {
        //     content: "";
        //     display: block;
        //     width: 0;
        //     height: 0;
        //     top: 0;
        //     left: 50%;
        //     position: relative;
        //     z-index: 555;
        //     border: 15px solid transparent;
        //     border-style: solid;
        //     border-bottom-color: gold;
        //     transform: translate(-50%,-100%);
        // }
        div{
            border: 1px solid #e9e9e9;
            border-radius: 5px;
            background: white;
        }

        p{
            height: 18px;
            color: red;
            text-align: left;
            padding-left: 5px;
            display: flex;
            align-items: center;
            font-size: 95%; 

            svg{
                margin-right: 5px;

            }

            &:last-child svg{
                margin-right: 1px;
            }
        }
        
    }

}

.card-share{
    $map: (1:'../image/wechat.svg',
           2:'../image/weibo.svg',
           3:'../image/link.svg');
    @each $k,$v in $map {
        &>p:nth-child(#{$k}){
            background: url('#{$v}');
            background-size: contain;
            background-position: left;
            padding-left: 40px;
            background-repeat: no-repeat;
        }
        &>p:hover{
            cursor: pointer;
        }
    }
}

#page-nav{
    margin-bottom: 20px;
    span,.page-nav-a {
        margin-bottom: 2.5px;
        margin-top: 2.8px;
        display: inline-block;
        line-height: 34px;
        padding: 0 1em;
        margin: 6px 2px;
        color: #666;
        border-radius: 3px;
        overflow: hidden;
        transition: .4s ease-in-out;
        white-space: nowrap;
        vertical-align: middle;
        cursor: pointer;
        border: none;
        outline: none;
        font-size: 1em;
        text-align: center;
        text-decoration: none;
        z-index: 1;
        background: #fff;
        box-shadow: 5px 5px 6px 1px rgba(0, 0, 0, 0.09), 
                    -5px -5px 15px 1px rgba(0, 0, 0, 0.09);
        min-width: 1.15em;

        &:active,&:hover {
            color: #fff;
            background: #b71c1c;
        }
    }
    .page-current{
        background-color: #3273dc;
        border-color: #3273dc;
        color: #fff;
    }
}