@charset "utf-8";



.comment-list {
    min-width: 1000px;
    margin: 30px auto 60px;
    font-family: sans-serif;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.avatar {
    width: 50px;
    margin-right: 15px;
}

.avatar svg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.avatar svg path {
    stroke: #63b62f;
}

.comment-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    width: 100%;
    position: relative;
}

/* 小气泡箭头 */
.comment-box::after {
    content: "";
    position: absolute;
    left: -18px;
    top: 20px;
    border-width: 9px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
    filter: drop-shadow(-1px 0 0 #ddd);
}


.comment-header {
    font-size: 14px;
    margin-bottom: 8px;
}

.comment-header .name {
    font-weight: bold;
    margin-right: 10px;
}

.comment-header .time {
    color: #999;
    font-size: 12px;
}

.comment-content {
    font-size: 15px;
    color: #636363;
    margin-bottom: 10px;
}

.comment-footer {
    text-align: right;
}

.comment-footer button {
    background: none;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 5px;
}

/* 删除状态 */
/* .comment-item.deleted .comment-content {
    color: #999;
} */

.comment-item:nth-child(2n) {
    flex-direction: row-reverse;
}
.comment-item:nth-child(2n) .avatar{
    margin-left: 15px;
    margin-right: 0;
}
/* 小气泡箭头 */
.comment-item:nth-child(2n) .comment-box::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 20px;
    border-width: 9px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    filter: drop-shadow(1px 0 0 #ddd);
}





/*------------------------------
スマートフォン 
------------------------------*/
@media screen and (max-width: 767px) {

    /* 缩小头像 */
    .avatar {
        width: 40px;
    }

    .avatar svg {
        width: 40px;
        height: 40px;
    }

    /* 缩小评论框内边距和字体 */
    .comment-box {
        padding: 12px;
        font-size: 14px;
    }

    /* 修复姓名和时间在一行 */
    .comment-header {
        display: flex;
        justify-content: space-between; /* 姓名靠左，时间靠右 */
        align-items: center;
        flex-wrap: wrap; /* 防止换行 */
    }

    .comment-header .time {
        font-size: 11px;
        flex-shrink: 0;
    }

    /* 缩小按钮 */
    .comment-footer button {
        padding: 5px 12px;
        font-size: 13px;
    }

    /* 缩小气泡箭头 */
    .comment-box::after {
        left: -14px;
        top: 16px;
        border-width: 7px;
    }

    .comment-item:nth-child(2n) .comment-box::after {
        left: 100%;
        top: 16px;
        border-width: 7px;
        border-color: transparent transparent transparent #fff;
        filter: drop-shadow(1px 0 0 #ddd);
    }

    /* 评论列表左右边距 */
    .comment-list {
        min-width: 200px;
        padding: 0 13px;
    }



 
}