/* 评论系统样式 */

/* 评论区域样式 */
.comments-section {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(25, 33, 68, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comments-title::before {
    content: '💬';
    font-size: 1.25rem;
}

.comments-count {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
}

/* 评论表单样式 */
.comment-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* 富文本编辑器样式 */
.rich-text-editor {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.toolbar-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.toolbar-btn:hover {
    background: var(--bg-tertiary);
}

.toolbar-btn.active {
    background: var(--primary-color);
    color: white;
}

.toolbar-select {
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 12px;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 5px;
}

.editor-content {
    min-height: 120px;
    padding: 15px;
    border: none;
    outline: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

/* 表情选择器样式 */
.emoji-picker {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    max-height: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 10px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
}

.emoji-picker.show {
    display: block;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
}

.emoji-item {
    padding: 8px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
    font-size: 18px;
}

.emoji-item:hover {
    background: var(--bg-secondary);
}

/* 图片上传样式 */
.image-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.image-upload-modal.show {
    display: flex;
}

.image-upload-content {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.image-upload-options {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.image-upload-btn {
    flex: 1;
    padding: 12px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.image-upload-btn:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
}

.image-url-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin-bottom: 20px;
}

.image-upload-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 评论提交按钮 - 使用统一提交按钮样式 */
.comment-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    user-select: none;
    width: 100%;
}

.comment-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: white;
    text-decoration: none;
}

.comment-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.comment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.comment-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 评论列表样式 */
.comments-list {
    margin-top: 2rem;
}

/* 无评论状态 */
.no-comments {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.no-comments-icon {
    font-size: 3rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.no-comments-text h4 {
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.no-comments-text p {
    color: #94a3b8;
    margin: 0;
}

/* 评论卡片样式 */
.comment-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comment-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px) scale(1.02);
}

/* 移除顶部装饰线条 */

.comment-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    pointer-events: none;
}

.comment-card:hover::after {
    width: 300px;
    height: 300px;
}

/* 评论卡片头部 */
.comment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.comment-avatar-container {
    position: relative;
    padding: 4px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.comment-avatar-container:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(15, 23, 42, 0.8);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.comment-avatar:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.avatar-status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: 3px solid rgba(15, 23, 42, 0.9);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.avatar-status-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.8); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.comment-user-details {
    flex: 1;
}

.comment-author-name {
    font-weight: 600;
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.comment-time,
.comment-replies-count {
    color: #94a3b8;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-time i,
.comment-replies-count i {
    font-size: 0.75rem;
}

/* 管理员操作按钮 */
.comment-admin-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-admin-action {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-admin-action:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

/* 评论卡片主体 */
.comment-card-body {
    padding: 0 1.5rem 1rem 1.5rem;
}

.comment-content-wrapper {
    position: relative;
}

.comment-content {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 1rem;
    word-wrap: break-word;
}

/* 评论卡片底部 */
.comment-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-actions-left {
    display: flex;
    gap: 1rem;
}

.comment-actions-right {
    display: flex;
    gap: 0.5rem;
}

.btn-comment-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-comment-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-comment-action:hover::before {
    left: 100%;
}

.btn-comment-action:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.btn-comment-action:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-comment-action.liked {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-comment-action.liked:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

.action-text {
    font-size: 0.8rem;
}

/* 头像加载状态样式 */
.comment-avatar {
    transition: opacity 0.3s ease;
}

.comment-avatar[data-retry-count] {
    opacity: 0.7;
}

/* 评论操作按钮样式 */
.btn-edit-comment,
.btn-delete-comment {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-edit-comment:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.btn-delete-comment:hover {
    background: var(--bg-tertiary);
    color: var(--danger-color);
}

/* 评论编辑表单样式 */
.comment-edit-form {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.edit-comment-content {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: vertical;
}

.edit-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-tertiary);
}

/* 编辑按钮样式 */
.edit-actions button {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.edit-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.edit-actions button:hover::before {
    left: 100%;
}

.btn-save-edit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-save-edit:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-save-edit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.btn-cancel-edit {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.btn-cancel-edit:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
    transform: translateY(-1px);
}

.btn-cancel-edit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
}

/* 回复相关样式 */
.comment-replies-section {
    margin-top: 1rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.replies-container {
    position: relative;
}

.replies-container::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border-radius: 1px;
}

.replies-list {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

/* 回复卡片样式 */
.reply-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.5), rgba(30, 41, 59, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.reply-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
    transform: translateX(8px) translateY(-2px);
}

.reply-card::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    border: 2px solid rgba(15, 23, 42, 0.8);
}

.reply-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reply-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.reply-avatar-container {
    position: relative;
    padding: 3px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.reply-avatar-container:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.reply-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(15, 23, 42, 0.8);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.reply-avatar:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.reply-avatar-indicator {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: 2px solid rgba(15, 23, 42, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.reply-user-details {
    flex: 1;
}

.reply-author-name {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.125rem;
}

.reply-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reply-time {
    color: #94a3b8;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reply-time i {
    font-size: 0.7rem;
}

.reply-admin-actions {
    display: flex;
    gap: 0.25rem;
}

.reply-card-body {
    padding: 0 1rem 0.5rem 1rem;
}

.reply-content-wrapper {
    position: relative;
}

.reply-content {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.9rem;
    word-wrap: break-word;
}

.reply-card-footer {
    padding: 0.5rem 1rem 1rem 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reply-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-reply-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    cursor: pointer;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-reply-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-reply-action:hover::before {
    left: 100%;
}

.btn-reply-action:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

.btn-reply-action.primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.btn-reply-action.primary:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.25));
    color: #c7d2fe;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.reply-like-btn.liked {
    color: #ef4444;
}

.reply-like-btn.liked:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

/* 回复表单样式 */
.reply-form {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.75rem;
    margin-top: 1.25rem;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 移除回复表单顶部装饰线条 */

.reply-form-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reply-form-avatar {
    position: relative;
    padding: 3px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.reply-form-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.reply-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(15, 23, 42, 0.8);
    position: relative;
    z-index: 2;
}

.reply-form-info {
    flex: 1;
}

.reply-form-user {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.125rem;
}

.reply-form-hint {
    color: #94a3b8;
    font-size: 0.8rem;
}

.reply-editor-container {
    margin-bottom: 1rem;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comment-card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .comment-card-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
    }
    
    .comment-author-name {
        font-size: 0.9rem;
    }
    
    .comment-meta {
        gap: 0.75rem;
    }
    
    .comment-time,
    .comment-replies-count {
        font-size: 0.8rem;
    }
    
    .comment-card-body {
        padding: 0 1rem 0.75rem 1rem;
    }
    
    .comment-content {
        font-size: 0.9rem;
    }
    
    .comment-card-footer {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .comment-actions-left {
        justify-content: space-around;
    }
    
    .comment-actions-right {
        justify-content: center;
    }
    
    .btn-comment-action {
        flex: 1;
        justify-content: center;
        padding: 0.75rem;
    }
    
    .comment-replies-section {
        padding: 0 1rem 1rem 1rem;
    }
    
    .replies-list {
        padding-left: 1.5rem;
    }
    
    .replies-container::before {
        left: 12px;
    }
    
    .reply-card::before {
        left: -1.5rem;
        width: 6px;
        height: 6px;
    }
    
    .reply-card-header {
        padding: 0.75rem 0.75rem 0.5rem 0.75rem;
    }
    
    .reply-avatar {
        width: 32px;
        height: 32px;
    }
    
    .reply-author-name {
        font-size: 0.85rem;
    }
    
    .reply-time {
        font-size: 0.75rem;
    }
    
    .reply-card-body {
        padding: 0 0.75rem 0.5rem 0.75rem;
    }
    
    .reply-content {
        font-size: 0.85rem;
    }
    
    .reply-card-footer {
        padding: 0.5rem 0.75rem 0.75rem 0.75rem;
    }
    
    .reply-form {
        padding: 1rem;
    }
    
    .reply-form-header {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .reply-user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .reply-form-user {
        font-size: 0.85rem;
    }
    
    .reply-form-hint {
        font-size: 0.75rem;
    }
    
    .reply-form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-reply-action {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .comment-card-header {
        padding: 0.75rem 0.75rem 0.5rem 0.75rem;
    }
    
    .comment-avatar {
        width: 36px;
        height: 36px;
    }
    
    .comment-user-details {
        gap: 0.5rem;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .comment-card-body {
        padding: 0 0.75rem 0.5rem 0.75rem;
    }
    
    .comment-card-footer {
        padding: 0.5rem 0.75rem;
    }
    
    .comment-actions-left {
        gap: 0.5rem;
    }
    
    .btn-comment-action {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .comment-replies-section {
        padding: 0 0.75rem 0.75rem 0.75rem;
    }
    
    .replies-list {
        padding-left: 1rem;
    }
    
    .replies-container::before {
        left: 8px;
    }
    
    .reply-card::before {
        left: -1rem;
    }
}
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 0.75rem;
}

.reply-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.reply-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.reply-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.reply-actions button:hover::before {
    left: 100%;
    margin-top: 0.5rem
}

.btn-submit-reply {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    margin-top: 0.5rem
}

.btn-submit-reply:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    margin-top: 0.5rem
}

.btn-submit-reply:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    margin-top: 0.5rem
}

.btn-cancel-reply {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
    margin-top: 0.5rem
}

.btn-cancel-reply:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
    transform: translateY(-1px);
    margin-top: 0.5rem
}

.btn-cancel-reply:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
    margin-top: 0.5rem
}

/* 回复编辑按钮样式 */
.reply-edit-form .edit-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-tertiary);
}

.reply-edit-form .edit-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 70px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.reply-edit-form .edit-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.reply-edit-form .edit-actions button:hover::before {
    left: 100%;
}

.btn-save-reply-edit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn-save-reply-edit:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-save-reply-edit:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.btn-cancel-reply-edit {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 2px 6px rgba(107, 114, 128, 0.3);
}

.btn-cancel-reply-edit:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    box-shadow: 0 3px 8px rgba(107, 114, 128, 0.4);
    transform: translateY(-1px);
}

.btn-cancel-reply-edit:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(107, 114, 128, 0.3);
}

.comment-footer {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bg-tertiary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.comment-like-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-like-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.comment-like-btn.liked {
    color: #ffffff;
}

.comment-like-btn.liked:hover {
    color: #ffffff;
}

.comment-like-btn i {
    font-size: 0.8rem;
}

.like-count {
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-reply {
    margin-bottom: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-reply:hover {
    color: var(--primary-color);
    background: var(--bg-tertiary);
}

.reply-edit-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 0.75rem;
}

.edit-reply-content {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 0.75rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comment-replies {
        padding-left: 0.5rem;
    }
    
    .reply-item {
        padding: 0.75rem;
    }
    
    .reply-avatar {
        width: 28px;
        height: 28px;
    }
    
    .reply-author {
        font-size: 0.85rem;
    }
    
    .reply-time {
        font-size: 0.75rem;
    }
    
    .reply-content {
        font-size: 0.85rem;
    }
    
    .btn-reply {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}
