/* ========== 高情商回复容器 ========== */
.heq-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 600px;
    background: #f8f5ff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

/* 全屏模式 */
.heq-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
}

/* ========== 顶部工具栏 ========== */
.heq-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.35);
    flex-shrink: 0;
}

.heq-toolbar .toolbar-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 28px;
}

.heq-toolbar .toolbar-btn {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #5b21b6;
    transition: all 0.25s;
    white-space: nowrap;
}

.heq-toolbar .toolbar-btn:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.heq-toolbar .toolbar-btn:active:not(:disabled) {
    transform: translateY(0);
}

.heq-toolbar .toolbar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.heq-toolbar .toolbar-btn-primary {
    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
    color: #3b0764;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
}

.heq-toolbar .toolbar-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    box-shadow: 0 4px 14px rgba(167, 139, 250, 0.55);
}

@keyframes heqToolbarShimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.heq-toolbar .toolbar-btn-primary.loading {
    background: linear-gradient(90deg, #a78bfa 25%, #c4b5fd 50%, #a78bfa 75%);
    background-size: 200% 100%;
    animation: heqToolbarShimmer 1.2s linear infinite;
    opacity: 0.85;
    cursor: not-allowed;
}

/* ========== 三栏主内容 ========== */
.heq-main {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #f8f5ff;
}

/* ========== 左侧历史面板 ========== */
.heq-history-panel {
    width: 200px;
    background: white;
    border-right: 1px solid #e9d5ff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.heq-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f3ff 100%);
    border-bottom: 1px solid #e9d5ff;
    flex-shrink: 0;
}

.heq-history-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #4c1d95;
    display: flex;
    align-items: center;
    gap: 5px;
}

.heq-history-badge {
    display: none;
    align-items: center;
    justify-content: center;
    background: #7c3aed;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    padding: 0 4px;
}

/* JS 通过 .visible 类切换显隐，禁止内联 style */
.heq-history-badge.visible { display: inline-flex; }

.heq-history-clear-btn {
    background: #fff0f0;
    border: none;
    color: #ef4444;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
}

.heq-history-clear-btn:hover {
    background: #fde8e8;
}

.heq-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
}

.heq-history-item {
    display: flex;
    flex-direction: column;
    padding: 9px 10px;
    margin-bottom: 4px;
    background: #f8f5ff;
    border: 1px solid #e9d5ff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.heq-history-item:hover {
    background: #ede9fe;
    border-color: #7c3aed;
    transform: translateX(2px);
}

.heq-history-item:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 1px;
}

.heq-history-item.active {
    background: #ddd6fe;
    border-color: #7c3aed;
    border-left: 3px solid #5b21b6;
    box-shadow: 0 1px 3px rgba(124, 58, 237, 0.18);
}

.heq-history-item-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
    padding-right: 20px;
}

.heq-history-item-meta {
    font-size: 11px;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.heq-history-item-time {
    font-size: 11px;
    color: #b0bec5;
}

/* 暗黑模式适配 */
@media (prefers-color-scheme: dark) {
    .heq-history-item-time { color: #475569; }
}

.heq-history-del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #fde8e8;
    color: #ef4444;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    line-height: 1;
}

.heq-history-item:hover .heq-history-del {
    opacity: 1;
}

.heq-history-del:hover {
    background: #ef4444;
    color: white;
}

.heq-history-empty {
    text-align: center;
    padding: 24px 12px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.8;
}

/* ========== 中间输入面板 ========== */
.heq-input-panel {
    width: 320px;
    flex-shrink: 0;
    background: white;
    border-right: 1px solid #e9d5ff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.heq-input-header {
    padding: 12px 16px;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f3ff 100%);
    border-bottom: 1px solid #e9d5ff;
    font-size: 13px;
    font-weight: 600;
    color: #4c1d95;
    flex-shrink: 0;
}

.heq-input-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px 20px;
}

.heq-form-group {
    margin-bottom: 13px;
}

.heq-form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4c1d95;
    margin-bottom: 5px;
}

.heq-required {
    color: #ef4444;
    margin-left: 2px;
}

.heq-label-hint {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
}

.heq-form-input,
.heq-form-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e9d5ff;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    background: #fbf8ff;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.heq-form-input:focus,
.heq-form-textarea:focus {
    border-color: #7c3aed;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.heq-form-textarea {
    resize: vertical;
    min-height: 66px;
}

.heq-form-input.is-error,
.heq-form-textarea.is-error {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* 选项按钮组 */
.heq-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.heq-btn-option {
    padding: 4px 9px;
    border: 1px solid #e9d5ff;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    background: #fbf8ff;
    color: #4c1d95;
    transition: all 0.2s;
    user-select: none;
}

.heq-btn-option:hover {
    border-color: #7c3aed;
    background: #ede9fe;
}

.heq-btn-option:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

.heq-btn-option.active {
    border-color: #6d28d9;
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    color: white;
    font-weight: 500;
}

/* 字符计数 */
.heq-char-counter {
    text-align: right;
    font-size: 11px;
    color: #b0bec5;
    margin-top: 3px;
    user-select: none;
}

/* warn 类加在子 <span> 上，需后代选择器；transition 也须定义在 span 上（不可继承属性） */
.heq-char-counter span { transition: color 0.2s; }

/* 字数预警：达到 90% 时红色提示 */
.heq-char-counter .warn { color: #ef4444; }

.heq-shortcut-hint {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
}

/* 生成按钮 */
@keyframes heqBtnGlow {
    0%, 100% { box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25); }
    50%       { box-shadow: 0 4px 22px rgba(109, 40, 217, 0.55); }
}

.heq-generate-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.5px;
    animation: heqBtnGlow 2.4s ease-in-out infinite;
}

.heq-generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 33, 182, 0.45);
    animation: none;
}

.heq-generate-btn:active:not(:disabled) { transform: translateY(0); }

.heq-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

.heq-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: heqSpin 0.8s linear infinite;
    display: none;
}

.heq-generate-btn.loading .heq-spinner { display: block; }
.heq-generate-btn.loading .heq-btn-text { display: none; }
.heq-btn-loading-text { display: none; font-size: 13px; }
.heq-generate-btn.loading .heq-btn-loading-text { display: inline; }

@keyframes heqSpin { to { transform: rotate(360deg); } }

/* ========== 右侧结果面板 ========== */
.heq-result-panel {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 320px;
}

.heq-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f3ff 100%);
    border-bottom: 1px solid #e9d5ff;
    flex-shrink: 0;
}

.heq-result-title {
    font-size: 13px;
    font-weight: 600;
    color: #4c1d95;
}

.heq-result-actions { display: flex; gap: 6px; }

.heq-result-action-btn {
    padding: 4px 10px;
    border: 1px solid #e9d5ff;
    border-radius: 4px;
    background: white;
    font-size: 11px;
    cursor: pointer;
    color: #4c1d95;
    transition: all 0.2s;
}

.heq-result-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.heq-result-action-btn:hover:not(:disabled) {
    border-color: #7c3aed;
    background: #ede9fe;
}

.heq-result-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 18px 28px;
}

/* ===== 空状态 ===== */
.heq-result-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    text-align: center;
    gap: 12px;
    color: #94a3b8;
}

/* 空状态图标轻浮动画 */
@keyframes heqFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
}

.heq-empty-icon {
    font-size: 54px;
    opacity: 0.6;
    animation: heqFloat 3.2s ease-in-out infinite;
}

.heq-empty-title {
    font-size: 15px;
    font-weight: 500;
    color: #6d28d9;
}

.heq-empty-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 260px;
}

/* ===== 骨架屏 ===== */
.heq-skeleton { display: none; }
.heq-skeleton.show { display: block; }

.heq-skel-analysis {
    background: linear-gradient(135deg, #f0ebff 0%, #e5deff 100%);
    border: 1px solid #ddd6fe;
    border-left: 4px solid #a78bfa;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.heq-skel-item {
    background: linear-gradient(90deg, #ede9fe 25%, #ddd6fe 50%, #ede9fe 75%);
    background-size: 200% 100%;
    animation: heqShimmer 1.5s infinite;
    border-radius: 6px;
    margin-bottom: 10px;
}

@keyframes heqShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.heq-skel-title  { height: 24px; width: 60%; }
.heq-skel-line   { height: 14px; }
.heq-skel-short  { width: 75%; }
.heq-skel-card   { height: 120px; border-radius: 10px; margin-bottom: 12px; }
.heq-skel-card:last-child { margin-bottom: 0; }

/* ===== 结果展示 ===== */
.heq-result-wrap { display: none; }
.heq-result-wrap.show {
    display: block;
    animation: heqFadeIn 0.28s ease;
}

@keyframes heqFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 情境分析区块 */
.heq-analysis-block {
    background: linear-gradient(135deg, #f0ebff 0%, #e5deff 100%);
    border: 1px solid #ddd6fe;
    border-left: 4px solid #7c3aed;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.heq-analysis-label {
    font-size: 12px;
    font-weight: 700;
    color: #4c1d95;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.heq-analysis-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.75;
}

/* 回复方案标签行 */
.heq-responses-label {
    font-size: 12px;
    font-weight: 700;
    color: #4c1d95;
    margin-bottom: 10px;
    border-left: 3px solid #7c3aed;
    padding-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.heq-responses-hint {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
    text-transform: none;
    letter-spacing: 0;
}

.heq-responses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

/* 单个回复方案卡片 */
.heq-response-card {
    border: 1px solid #e9d5ff;
    border-radius: 10px;
    padding: 14px 16px;
    background: #faf8ff;
    cursor: pointer;
    transition: background 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s;
    position: relative;
}

.heq-response-card:hover {
    border-color: #7c3aed;
    background: #f0ebff;
    transform: translateX(3px);
    box-shadow: -3px 0 10px rgba(124, 58, 237, 0.1);
}

.heq-response-card.copied {
    border-color: #10b981;
    background: #d1fae5;
    transform: translateX(0);
    transition: background 0.15s, border-color 0.15s;
}

.heq-response-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.heq-response-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #3b0764;
}

.heq-response-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: #ede9fe;
    color: #6d28d9;
}

.heq-response-badge.badge-recommend {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
}

.heq-response-badge.badge-warm {
    background: #fef3c7;
    color: #92400e;
}

.heq-response-badge.badge-direct {
    background: #d1fae5;
    color: #065f46;
}

.heq-response-badge.badge-humor {
    background: #fce7f3;
    color: #9d174d;
}

.heq-response-content {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.85;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: white;
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    word-break: break-word;
    white-space: pre-wrap;
}

.heq-response-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.heq-response-strategy,
.heq-response-strength {
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
}

.heq-copy-hint {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 11px;
    color: #94a3b8;
    opacity: 0;
    transition: opacity 0.2s;
}

/* copy hint 已复制反馈样式，通过 CSS 类控制而非内联 style */
.heq-copy-hint.hint-copied { color: #10b981; }

.heq-response-card:hover .heq-copy-hint { opacity: 1; }
/* copied 状态下始终显示复制反馈 */
.heq-response-card.copied .heq-copy-hint { opacity: 1; }

/* 第一卡片（推荐方案）上边加粗出强显，视觉区分 */
.heq-responses-list > .heq-response-card:first-child {
    border-top: 2px solid #7c3aed;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.08);
}

/* 最后一卡无底部多余间距 */
.heq-responses-list > .heq-response-card:last-child {
    margin-bottom: 0;
}

/* 沟通建议区块 */
.heq-advice-block {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    border-radius: 10px;
    padding: 14px 18px;
}

.heq-advice-label {
    font-size: 12px;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.heq-advice-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.heq-advice-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #134e4a;
    line-height: 1.6;
}

.heq-advice-num {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
}

/* ===== 错误状态 ===== */
.heq-result-error {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    text-align: center;
    padding: 32px;
}

.result-error-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.85; }

.result-error-msg {
    font-size: 14px;
    line-height: 1.6;
    color: #ef4444;
    max-width: 260px;
}

.error-retry-btn {
    margin-top: 14px;
    padding: 8px 22px;
    border: 1px solid #ef4444;
    color: #ef4444;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.error-retry-btn:hover { background: #fef2f2; }

/* ========== 示例抽屉 ========== */
.heq-drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(2px);
}

.heq-drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.heq-example-drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 480px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 10002;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.heq-example-drawer.show { right: 0; }

.heq-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #e9d5ff;
    flex-shrink: 0;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
}

.heq-drawer-title { font-size: 15px; font-weight: 600; }

.heq-drawer-close {
    width: 30px; height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heq-drawer-close:hover { background: rgba(255, 255, 255, 0.35); }

.heq-drawer-body { flex: 1; overflow-y: auto; padding: 16px; }

.heq-example-card {
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #faf8ff;
}

.heq-example-card:hover {
    border-color: #7c3aed;
    background: #ede9fe;
    transform: translateX(-3px);
    box-shadow: 2px 0 8px rgba(124, 58, 237, 0.1);
}

.heq-example-card:last-child { margin-bottom: 0; }
.heq-example-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #3b0764;
    margin-bottom: 5px;
}

.heq-example-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.heq-example-tag {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    background: #ede9fe;
    color: #4c1d95;
}

.heq-example-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* ========== Toast ========== */
.heq-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.heq-toast {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: heqToastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 320px;
}

.heq-toast.success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.heq-toast.error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.heq-toast.info    { background: #ede9fe; color: #3b0764; border-left: 4px solid #7c3aed; }

@keyframes heqToastIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ========== 自定义滚动条 ========== */
.heq-history-list::-webkit-scrollbar,
.heq-input-body::-webkit-scrollbar,
.heq-result-body::-webkit-scrollbar,
.heq-drawer-body::-webkit-scrollbar {
    width: 5px;
}

.heq-history-list::-webkit-scrollbar-track,
.heq-input-body::-webkit-scrollbar-track,
.heq-result-body::-webkit-scrollbar-track,
.heq-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.heq-history-list::-webkit-scrollbar-thumb,
.heq-input-body::-webkit-scrollbar-thumb,
.heq-result-body::-webkit-scrollbar-thumb,
.heq-drawer-body::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.35);
    border-radius: 2px;
}

.heq-history-list::-webkit-scrollbar-thumb:hover,
.heq-input-body::-webkit-scrollbar-thumb:hover,
.heq-result-body::-webkit-scrollbar-thumb:hover,
.heq-drawer-body::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.65);
}
