/* 多层回复样式 */
.reply-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.reply-to-info {
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.reply-to-user {
    color: #1E9FFF;
    font-weight: bold;
}

.reply-to-reply-btn {
    background: none;
    border: none;
    color: #1E9FFF;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.reply-to-reply-btn:hover {
    background-color: #f0f8ff;
}

/* 二级回复样式 */
.sub-replies {
    margin-top: 15px;
    margin-left: 60px;
    border-left: 2px solid #e8e8e8;
    padding-left: 15px;
}

.sub-reply-item {
    display: flex;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fafafa;
    border-radius: 5px;
}

.sub-reply-avatar {
    margin-right: 10px;
    flex-shrink: 0;
}

.sub-reply-avatar img {
    border-radius: 50%;
}

.sub-reply-content {
    flex: 1;
}

.sub-reply-header {
    margin-bottom: 5px;
    font-size: 12px;
}

.sub-reply-username {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.reply-to {
    color: #666;
    margin-right: 10px;
}

.sub-reply-time {
    color: #999;
}

.sub-reply-text {
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
}

.sub-reply-actions {
    font-size: 12px;
}

.sub-reply-actions button {
    background: none;
    border: none;
    color: #1E9FFF;
    cursor: pointer;
    margin-right: 10px;
    padding: 2px 5px;
}

.sub-reply-actions button:hover {
    text-decoration: underline;
}

/* 回复表单样式 */
.reply-form-container {
    margin-top: 15px;
    margin-left: 60px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.nested-reply-form .reply-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.reply-form-actions {
    margin-top: 10px;
    text-align: right;
}

.reply-form-actions button {
    margin-left: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sub-replies {
        margin-left: 20px;
        padding-left: 10px;
    }
    
    .reply-form-container {
        margin-left: 20px;
    }
    
    .sub-reply-item {
        flex-direction: column;
    }
    
    .sub-reply-avatar {
        margin-bottom: 10px;
    }
}