/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    text-align: center;
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
}

/* 评论表单 */
.comment-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
    margin-right: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input{
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-button {
    background-color: #587558;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.submit-button:hover {
    background-color: #263b30;
}

/* 评论区 */
.comment-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comment-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-date {
    color: #888;
    font-size: 0.9rem;
}

.comment-title {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #333;
}

.comment-content {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.no-comments {
    text-align: center;
    color: #888;
    font-style: italic;
}

/* 分页导航栏 */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination-link {
    color: #264c30;
    text-decoration: none;
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 4px;
}

.pagination-link:hover {
    background-color: #263b30;
    color: #fff;
}

.current-page {
    font-weight: bold;
    color: #333;
}


/* 回复区 */
.reply-button,
.delete-comment-btn{
    background-color: #587558;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.reply-button:hover {
    background-color: #263b30;
}

.replies {
    margin-top: 10px;
    padding: 10px;
    border-left: 2px solid #264c30;
    background-color: #f9f9f9;
}

.reply-item p.reply-item-content{
    /* text-indent: 0ex; */
    /* display: flex; */
    justify-content: left;
    margin-left: 30px;
}
.reply-item p.reply-item-date{
    font-size: 12px;
    display: flex;
    justify-content: right;
}

.submit-reply-button{
    display: flex;
    justify-self: right;
    background-color: #264c30;
    color: #fff;
    border: none;
    padding: 10px 10px;
    border-radius: 4px;
    cursor: pointer;
    /* font-size: 1rem; */
}
.submit-reply-button:hover{
    background-color: #263b30;
}

/*展开收起回复*/
.hidden {
    display: none;
}

.comment-author{
    display: flex;
    align-items: center;
}

.comment-avatar{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 3px solid #fff; */
}
.comment-author a.comment-nick{
    font-weight: bold;
    color: #264c30;
    margin-left: 10px;
    /* color: white; */
    text-decoration: none;
    font-size: 20px;
    /* border: 10px solid red; */
}

.reply-author{
    display: flex;
    align-items: center;
}

.reply-avatar{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 3px solid #fff; */
}

.reply-author a.reply-nick{
    font-weight: bold;
    color: #264c30;
    margin-left: 10px;
    /* color: white; */
    text-decoration: none;
    font-size: 16px;
}