.abc-feedback-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-right: 0;
}

/* 列表卡片：不依赖 Bootstrap .card，避免定制 Bootstrap 在 <li> 上产生不可预期边距 */
.abc-feedback-item {
    list-style: none;
    margin: 0 0 1rem 0;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
    background-color: #fff;
}
/* 仅卡片头部可点击展开/收起；对话内容区、回复区恢复默认光标 */
.abc-feedback-card-head { cursor: pointer; }
.abc-feedback-detail { cursor: default; border-top: 1px solid #f0f0f0; padding-top: 1rem; }
.abc-feedback-item .abc-feedback-reply-box { cursor: default; }
.abc-feedback-item .abc-feedback-reply-content { cursor: text; }
.abc-feedback-item-body {
    /* 列表卡片内边距：标题到左边框、删除按钮到右边框 用同一个值，保证两侧间距一致 */
    --abc-fb-gap: 1rem;
    padding: var(--abc-fb-gap);
}
.abc-feedback-subject {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #212529;
    margin-bottom: 0.5rem;
}
.abc-feedback-meta span {
    display: inline-flex;
    align-items: center;
}
.abc-feedback-meta i {
    margin-right: 0.35rem;
    opacity: 0.7;
}
.abc-feedback-toggle,
.abc-feedback-delete {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.abc-feedback-toggle { cursor: pointer; }

/* 聊天区域 */
.abc-feedback-chat {
    background-color: #f7f8fa;
    border-radius: 0.5rem;
    padding: 1rem;
    min-height: 120px;
}
.abc-feedback-msg {
    display: flex;
    margin-bottom: 1rem;
}
.abc-feedback-msg:last-child { margin-bottom: 0; }
.abc-feedback-msg-admin { justify-content: flex-start; }
.abc-feedback-msg-me { justify-content: flex-end; }

.abc-feedback-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #17a2b8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 1rem;
}
.abc-feedback-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.abc-feedback-content { max-width: 80%; }
.abc-feedback-msg-me .abc-feedback-content { align-items: flex-end; }

.abc-feedback-bubble {
    display: inline-block;
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    word-break: break-word;
    line-height: 1.5;
    text-align: left;
}
.abc-feedback-bubble img {
    max-height: 120px;
    border-radius: 0.25rem;
}

.abc-feedback-bubble-me {
    background-color: #007bff;
    color: #fff;
    border-bottom-right-radius: 0.25rem;
}
.abc-feedback-bubble-me a { color: #fff; text-decoration: underline; }

.abc-feedback-bubble-admin {
    background-color: #fff;
    color: #212529;
    border: 1px solid #e5e5e5;
    border-bottom-left-radius: 0.25rem;
}

.abc-feedback-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}
.abc-feedback-msg-me .abc-feedback-time { text-align: right; }

/* 回复框 */
.abc-feedback-reply-box {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    padding: 0.75rem;
}
.abc-feedback-reply-content {
    border: none;
    resize: none;
    outline: none;
    box-shadow: none;
    padding: 0.25rem 0;
}
.abc-feedback-reply-content:focus {
    background-color: transparent;
    box-shadow: none;
}
.abc-feedback-reply-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}
.abc-feedback-reply-tip {
    color: #999;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
}
.abc-feedback-reply-tip i { margin-right: 0.35rem; }
.abc-feedback-reply-btns { display: flex; align-items: center; }
