/* 评论区样式 - 优化版 */
.comments-section {
    margin-top: 40px;
    padding: 25px;
    /*评论区背景颜色*/
    background-color: rgb(255, 255, 255);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgb(105, 104, 104);
    border: 1px solid #dae1dd;
}

.comments-title {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 1.6em;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.comments-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #0c0404;
}

.comment-form {
    margin-bottom: 35px;
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    font-size: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    min-height: 100px;
    background-color: #f8fafc;
}

.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    background-color: #fff;
}

.submit-btn {
    background-color: #323333;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.submit-btn:hover {
    background-color: #2c2b2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn:active {
    transform: translateY(0);
}

.comments-list {
    margin-bottom: 25px;
}

.comment-item {
    padding: 18px;
    margin-bottom: 18px;
    background-color: #ffffff;
    border-radius: 10px;
    /*单个评论的线条背景色*/
    box-shadow: 0 2px 6px rgba(10, 3, 3, 0.03);
    /*评论区线条颜色*/
    border: 1px solid #100e0f;
    transition: all 0.2s ease;
}

.comment-item:hover {
    /*每个评论悬浮上去的背景颜色*/
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

/*.comment-avatar {*/
/*    width: 42px;*/
/*    height: 42px;*/
/*    border-radius: 50%;*/
/*    background-color: #4CAF50;*/
/*    margin-right: 12px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    font-weight: bold;*/
/*    color: white;*/
/*    font-size: 18px;*/
/*}*/

.comment-author {
    font-weight: 500;
    margin-right: 10px;
    /*评论用户名颜色*/
    color: #858585;
}

.comment-time {
    color: #c9c9cb;
    font-size: 0.85em;
}

.comment-content {
    margin-bottom: 12px;
    line-height: 1.6;
    /*评论字体颜色*/
    color: #030303;
    padding-left: 54px;
    font-weight: 700; /* 加粗字体 */
}

.comment-actions {
    display: flex;
    gap: 20px;
    padding-left: 54px;
}

.comment-action {
    /*'回复' 颜色*/
    color: #718096;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.comment-action:hover {
    color: #4CAF50;
}

.comment-action svg {
    width: 16px;
    height: 16px;
}

.reply-form {
    margin-top: 15px;
    display: none;
    padding-left: 54px;
}

.reply-form.active {
    display: block;
}

.reply-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    min-height: 80px;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    background-color: #fff;
}

.reply-submit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.reply-submit-btn:hover {
    background-color: #3d8b40;
}

.replies-list {
    margin-left: 54px;
    margin-top: 15px;
    border-left: 2px solid #e2e8f0;
    padding-left: 20px;
}

.load-more-container {
    text-align: center;
    margin-top: 25px;
}

.load-more-btn {
    background-color: #f8fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
    color: #2d3748;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comments-section {
        padding: 18px;
    }

    .comment-content,
    .comment-actions,
    .reply-form {
        padding-left: 0;
    }

    .replies-list {
        margin-left: 20px;
    }
}



/* 评论头像样式 */
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.comment-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}