.index-posts {

    .footer {
        display: flex;
        flex-direction: row;
        justify-content: right;
        align-items: flex-end;
        gap: 1rem;
        margin-top: 1rem;

        .date {
            font-size: 0.8rem;
            color: rgb(from var(--text) r g b / 20%);
        }

        .tags {
            text-align: right;

            a {
                padding-left: 0.5rem;
            }

            a::before {
                content: "#";
                color: var(--bg-dark);
                margin-right: 0.2rem;

                font-size: 12px;
            }
        }
    }

    li {
        margin-bottom: 3rem;

        header {
            display: flex;
            flex-direction: row;
            gap: 1rem;
            justify-content: space-between;
            flex-wrap: wrap;
            align-items: flex-end;
            border-bottom: 1px solid hsl(from var(--text) h s l / 10%);


            padding: 3px 8px;

            h3 {
                font-size: 1.3rem;

                a {
                    color: var(--text-subtle);
                }

                a:before {
                    content: "#";
                    color: var(--tag-color);
                    margin-right: 0.2rem;
                    font-size: 14px;
                }
            }

            div.sub {
                span:not(.btns) {
                    font-size: 0.8rem;
                    color: var(--bg-subtler);
                }

                span.btns {
                    display: inline-flex;
                    flex-direction: row;
                    flex-wrap: nowrap;
                    font-size: 0.8rem;
                    color: var(--bg-subtler);

                    a {
                        width: 30px;
                        margin-left: 6px;
                        margin-bottom: 3px;
                    }
                }
            }

            /*sticky featured*/
            &.featured {
                border-color: var(--featured);

            }

            &>h3>span {
                color: var(--featured);
                user-select: none;
            }

        }

    }

    .main {
        flex-grow: 1;
        flex-shrink: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        border-radius: 0 0 6px 6px;
        background-color: var(--post-bg);

        min-height: 6rem;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.04);
        padding: 1rem;

        transition: all 0.3s ease;

        .content {
            margin-bottom: 10px;
        }

        .date {
            margin-bottom: 10px;
            text-align: right;
        }
    }

    .main:hover {
        box-shadow: 0 0 14px rgba(0, 0, 0, 0.12);
        background-color: color-mix(in srgb, var(--post-bg), white 10%);
    }

    .content {
        line-height: 1.7rem;

        img {
            max-height: 10rem;
            max-width: 40%;
            width: auto;
            height: auto;

            float: left;
            /* 左浮动，文字环绕 */
            margin-right: 12px;
            /* 文字与图片间距 */
            margin-bottom: 8px;
            /* 防止浮动影响下面段落 */
            object-fit: cover;
            border-radius: 8px;

            margin: 0 12px 8px 0;
            /* 可加 border-radius 等美化 */


        }
    }

}



& .btn-more-tags {
    display: block;
    text-align: center;
    width: 160px;
    padding: 2px 20px;
    margin: 1.8rem auto;
    border-radius: 999px;
    border: 1px solid hsl(from var(--text) h s l / 30%);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);



    &:hover {
        background-color: hsl(from var(--text) h s l / 5%);
    }

}

.tag-cloud {

    --tagcolor: color-mix(in srgb, var(--tag-color), white 20%);

    a {
        display: inline-block;
        padding: 2px 6px;
        border-bottom: 1px dotted var(--text-subtle);
        border-radius: 2px 2px 0 0;

        margin: 12px;
        letter-spacing: 1px;

        transition: all 0.2s ease;


    }

    a:hover {
        color: #FFF;
        border-color: color-mix(in srgb, var(--tag-color, #999));
        background-color: var(--tag-color, #999);

    }

}


.simi-ads {
    margin: 2rem auto;
    max-width: 100%;
    overflow:hidden;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.2rem;

    & small{
        color: hsl(from var(--text, #999) h s l / 40%);
    }

    & .ad{
        text-align: center;    
        border: 2px solid var(--border-color);
        border-radius: 6px;
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.04);
    }

}
@media (max-width: 768px){
    .simi-ads{
        display: none;
    }
}
