.CommentSection {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.Title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.InputArea {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.InputField {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.SubmitButton {
    padding: 10px 15px;
    background: #39c5bb;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.SubmitButton:hover {
    background: #2aa89f;
}

.CommentArea {
    margin-top: 20px;
}

.CommentHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.CommentTitle {
    font-size: 18px;
    margin: 0;
}

.SortButton {
    padding: 5px 10px;
    background: #39c5bb;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.SortButton:hover {
    background: #2aa89f;
}

.CommentList {
    list-style: none;
    padding: 0;
}

.CommentItem {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    word-wrap: break-word; /* 强制换行 */
    word-break: break-word; /* 适应较长单词的换行 */
}

.Username {
    font-weight: bold;
    font-size: 18px; /* 用户名字体较大 */
    margin-bottom: 5px;
    color: #333;
}

.CommentText {
    font-size: 16px; /* 评论字体较小 */
    color: #555;
    line-height: 1.5;
    white-space: pre-wrap; /* 保留换行符并自动换行 */
}

.Timestamp {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    text-align: right;
}
