.the-page-g {
    padding-top: 24px;
}

.topic + .topic {
    margin-top: 24px;
}

.topic .header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.topic .header .userinfo {
    display: flex;
    align-items: center;
}

.topic .header img {
    width: 48px;
    height: 48px;
}

.topic .header .right {
    margin-left: 12px;
}

.topic .header .username {
    font-weight: 600;
    font-size: 16px;
}

.topic .header .time {
    margin-top: 6px;
    color: var(--text-color-secondary);
}

.topic .title {
    margin-top: 24px;
    font-size: 16px;
    font-weight: 600;
}

.topic .index {
    color: var(--text-color-disabled);
    font-size: 16px;
}

.topic .comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topic .reply-comment {
    color: var(--color-primary);
}

.topic .comment-reply-to {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    margin-top: 16px;
    padding: 6px 10px;
    border-radius: var(--border-radius);
    background: var(--color-primary-extra-lighter);
    color: var(--color-primary);
    line-height: 20px;
}

.topic .comment-reply-to span {
    color: var(--text-color-secondary);
}

.topic .html-content-g {
    margin-top: 12px;
}

.comment-total {
    margin: 40px 0 24px;
    font-weight: 600;
}

.write-comment {
    margin-top: 40px;
    padding: 24px;
}

.write-comment.is-login-g .title {
    font-size: 16px;
    font-weight: 600;
}

.write-comment.is-login-g .body {
    display: flex;
    margin-top: 24px;
    align-items: flex-start;
    gap: 24px;
}

.write-comment.is-login-g .avatar {
    width: 64px;
    height: 64px;
}

.write-comment.is-login-g .editor {
    width: 0;
    flex-grow: 1;
}

.write-comment.is-login-g .reply-target {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    background: var(--color-primary-extra-lighter);
    color: var(--color-primary);
    line-height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.write-comment.is-login-g .reply-target__text {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.write-comment.is-login-g .reply-target__cancel {
    color: var(--text-color-secondary);
}

.write-comment.is-login-g .submit {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.write-comment.is-login-g .submit .button-g {
    width: 220px;
}

.write-comment.is-login-g .submit .tips {
    color: var(--color-error);
    line-height: 24px;
    max-width: 100%;
}

.write-comment.no-login-g {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color-secondary);
    padding: 64px 0;
}

.write-comment.no-login-g .iconfont {
    color: var(--text-color-placeholder);
    font-size: 40px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .write-comment.is-login-g .body {
        flex-direction: column;
    }

    .write-comment.is-login-g .editor {
        width: 100%;
        flex-grow: 0;
    }
}