﻿/* 留言、评论样式 */
.comments-container {
    max-width: 768px;
    margin: 0 auto;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.4rem;
}

/* 评论表单样式 */
.comment-form {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #555;
    }

    .form-group input,
    .form-group textarea {
        width: 95%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
        transition: border-color 0.3s;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: #4285f4;
            outline: none;
            box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
        }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

.submit-btn {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .submit-btn:hover {
        background-color: #3367d6;
    }

/* 评论列表样式 */
.comments-list {
    padding: 0 10px;
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.comment-user {
    display: flex;
    flex-direction: column;
}

.comment-name {
    font-weight: 600;
    color: #333;
}

.comment-time {
    font-size: 0.8rem;
    color: #999;
    margin-top: 2px;
}

.comment-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
    padding-left: 2ch; /* 头像宽度 + 间距 */
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #eee; /* 浅灰色横线 */
    padding-bottom: 8px; /* 可选：增加一些间距 */
    margin-bottom:10px;
}

.reply-btn,
.like-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    margin-right: 15px;
    cursor: pointer;
    transition: color 0.3s;
}

    .reply-btn:hover,
    .like-btn:hover {
        color: #4285f4;
    }

    .like-btn::before {
        content: "👍 ";
    }

/* 响应式调整 */
@media (max-width: 480px) {
    .comments-container {
        padding: 15px;
    }

    .comment-form {
        padding: 15px;
    }

    .comment-content {
        padding-left: 0;
    }

    .comment-actions {
        padding-left: 0;
    }
}

/* 留言、评论样式 */