.comment-wrapper {
    clear: both;
    text-align: left;
    margin: 0 auto;
    padding: 20px;
    max-width: 1000px;
}

/* 评论区头部 */
.comment-header {
    margin-bottom: 25px;
    position: relative;
}

.comment-header h3 {
    font-size: 20px;
    color: #333;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #ed4b3c;
    display: inline-block;
    font-weight: 600;
}

/* 评论数量统计 */
.comment-stats {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px 0;
    background-color: #fafafa;
    border-radius: 6px;
    padding-left: 15px;
}

/* 评论表单 */
.comment-form {
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.login-prompt {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    background-color: #fafafa;
    border-radius: 6px;
    margin-bottom: 20px;
}

.login-prompt a {
    color: #ed4b3c;
    text-decoration: none;
    font-weight: 500;
}

.login-prompt a:hover {
    text-decoration: underline;
}

#comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#comment-textarea:focus {
    outline: none;
    border-color: #ed4b3c;
    box-shadow: 0 0 0 2px rgba(237, 75, 60, 0.1);
}

.comment-actions {
    margin-top: 15px;
    text-align: right;
}

#submit-comment-btn {
    background-color: #ed4b3c;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.1s;
}

#submit-comment-btn:hover {
    background-color: #d93b2c;
}

#submit-comment-btn:active {
    transform: translateY(1px);
}

/* 评论列表 */
#comment-list {
    margin-bottom: 30px;
}

.comment-item {
    padding: 20px;
    margin-bottom: 16px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.3s, transform 0.2s;
}

.comment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.comment-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f5f5f5;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.comment-item:hover .user-avatar {
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.username {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    display: inline-block;
    margin-bottom: 3px;
}

.comment-time {
    color: #999;
    font-size: 13px;
    display: block;
}

.comment-content {
    color: #333;
    line-height: 1.7;
    font-size: 15px;
    word-break: break-word;
    padding: 0 5px;
    margin-bottom: 12px;
    padding-left: 70px;
}

.comment-actions-bar {
    margin-top: 12px;
    font-size: 13px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.comment-action {
    color: #666;
    text-decoration: none;
    margin-right: 20px;
    padding: 5px 0;
    display: inline-block;
    transition: color 0.3s;
}

.comment-action:hover {
    color: #ed4b3c;
}

.comment-action i {
    margin-right: 3px;
}

/* 分页 */
.comment-pagination {
    text-align: center;
    padding: 30px 0 20px;
}

.pagination-item {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 4px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 14px;
}

.pagination-item:hover {
    border-color: #ed4b3c;
    color: #ed4b3c;
    background-color: rgba(237, 75, 60, 0.05);
}

.pagination-active {
    background-color: #ed4b3c;
    color: white;
    border-color: #ed4b3c;
}

.pagination-active:hover {
    background-color: #d93b2c;
    color: white;
}
