.comments-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.comments-form textarea {
    width: 100%;
    padding: 0.5em;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    background-color: var(--main-bg);
    border: solid 1px #ddd;
    transition: background-color 0.2s;
    resize: none;
}

.comments-form textarea:focus {
    border-color: #5a4df8;
    background-color: #f8f7fd;
    box-shadow: inset 0 1px 4px rgba(90, 77, 248, 0.2), 0 0 0 2px rgba(90, 77, 248, 0.1);
}

.comments-form button {
    border-radius: 6px;
    line-height: 42px;
    background-color: rgb(93 79 248 / 90%);
    color: #fff;
}

.comments-line{
    background-color: var(--main-bg);
    width: calc(100% + 40px);
    height: 1.2em;
    margin-top: 20px;
    margin-left: -20px;
}

.comments-content h2 {
    font-size: 17px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 20px 0 15px 3px;
    position: relative;
}

.comments-content h2::before {
    content: '';
    display: inline-block;
    width: 2.5px;
    height: 17px;
    background: var(--primary-color);
    margin-right: 8px;
    vertical-align: -2px;
    border-radius: 1px;
}

.comments-content .comments-list {
    border-top: 1px solid #ddd;
    padding: 0 12px;
}

.comments-list .comments-item {
    width: 100%;
    margin-bottom: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.comments-list .comments-item .item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comments-list .comments-item .item-header .item-userinfo {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 0.8em;
}

.comments-list .comments-item .item-header .item-userinfo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comments-list .comments-item .item-header .item-userinfo .item-nickname {
    color: #526484;
    font-size: 14px;
    font-weight: 700;
}

.comments-list .comments-item .item-header .item-datetime {
    font-size: 13px;
    color: #8094ae;
}

.comments-list .comments-item .item-body {
    margin-left: 45px;
}

.comments-list .comments-item .item-body > p {
    margin-bottom: 0;
    color: #526484;
}

.comments-list .comments-item .item-body > p a:hover{
    padding-bottom: 1px;
    color: rgb(70 97 255 / 90%);
    border-bottom: dashed 1px rgb(70 97 255 / 90%);
}

.comments-list .comments-item .item-body .item-reply {
    background-color: #f5f6fa;
    border-radius: 5px;
    padding: 10px 12px;
    margin-top: 12px;
}

.comments-list .comments-item .item-body .item-reply p {
    margin-bottom: 0;
    color: #526484;
}

.comments-list .comments-item .item-body .item-reply p a{
    color: rgb(70 97 255 / 90%);
}

.comments-list .comments-item .item-body .item-reply p a:hover{
    padding-bottom: 1px;
    border-bottom: dashed 1px rgb(70 97 255 / 90%);
}

@media (max-width: 768px) {
    .main-container {
        column-count: unset;
        column-gap: unset;
    }
}