/**
 * 火桥（huoqiao）· 多功能沉浸式 WordPress 主题
 * 联系方式：12492501@qq.com
 * 支持正版，从我做起，你的支持是我们前行的动力！
 *
 * @package   huoqiao
 * @author    三木
 * @copyright Copyright (c) 2026-09-01 huoqiao.cn
 * @license   GPL-2.0-or-later
 * @link      https://huoqiao.cn
 * @tags      design-tokens, responsive, dark-mode, glassmorphism, animation
 */

/* ============================================================
   1. 全屏化：覆盖 .hq-modal 基座的居中卡片 / 移动端底部抽屉
   说明：选择器权重高于基座（含 ≤760px 媒体查询内的规则），
   并额外用 !important 兜底，避免资源加载顺序影响。
   ============================================================ */
.hq-ai-modal .hq-modal__dialog {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--hq-ai-bg, #f7f4ef);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hq-ai-modal.is-open .hq-modal__dialog {
    transform: none !important;
}

/* 全屏时正文不再滚动（交给会话流内部滚动） */
.hq-ai-modal .hq-modal__body {
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

/* ============================================================
   2. 顶栏
   ============================================================ */
.hq-ai__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    height: 62px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(58, 46, 40, 0.08);
    position: relative;
    z-index: 2;
}

.hq-ai__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hq-ai__avatar {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
}

.hq-ai__avatar svg {
    display: block;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(124, 92, 255, 0.35);
}

.hq-ai__pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(124, 92, 255, 0.45);
    animation: hq-ai-pulse 2.6s ease-out infinite;
    pointer-events: none;
}

@keyframes hq-ai-pulse {
    0%   { transform: scale(0.88); opacity: 0.75; }
    70%  { transform: scale(1.38); opacity: 0; }
    100% { transform: scale(1.38); opacity: 0; }
}

.hq-ai__brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hq-ai__brand-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #3a2e28;
    line-height: 1.2;
    white-space: nowrap;
}

.hq-ai__brand-text em {
    display: flex;
    align-items: center;
    font-style: normal;
    font-size: 12px;
    color: #9a8f86;
    line-height: 1.2;
}

.hq-ai__dot {
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    animation: hq-ai-blink 1.8s ease-in-out infinite;
}

@keyframes hq-ai-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

.hq-ai__bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.hq-ai__ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(58, 46, 40, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: #5a4f48;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.hq-ai__ghost:hover {
    background: var(--color-primary, #ff6a3d);
    border-color: var(--color-primary, #ff6a3d);
    color: #fff;
}

/* ============================================================
   3. 主体：左侧面板 + 右侧会话
   ============================================================ */
.hq-ai__body {
    flex: 1;
    min-height: 0;
    display: flex;
}

/* ---------- 左侧面板 ---------- */
.hq-ai__side {
    width: 292px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(58, 46, 40, 0.07);
    overflow-y: auto;
}

.hq-ai__side-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 2px 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #9a8f86;
}

.hq-ai__side-head i {
    color: var(--color-primary, #ff6a3d);
    font-size: 12px;
}

/* 能力卡片 */
.hq-ai__caps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hq-ai__cap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(58, 46, 40, 0.07);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hq-ai__cap:hover {
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(58, 46, 40, 0.12);
}

.hq-ai__cap-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    background: linear-gradient(135deg, var(--cap-from, #6C4FD8), var(--cap-to, #9C6ADE));
    box-shadow: 0 5px 12px rgba(58, 46, 40, 0.16);
}

.hq-ai__cap-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hq-ai__cap-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #3a2e28;
}

.hq-ai__cap-text em {
    font-style: normal;
    font-size: 12px;
    color: #9a8f86;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 灵感胶囊 */
.hq-ai__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hq-ai__chip {
    padding: 7px 13px;
    border: 1px solid rgba(58, 46, 40, 0.1);
    border-radius: 999px;
    background: #fff;
    color: #5a4f48;
    font-size: 12.5px;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.hq-ai__chip:hover {
    background: var(--color-primary, #ff6a3d);
    border-color: var(--color-primary, #ff6a3d);
    color: #fff;
}

/* 侧栏底部装饰 */
.hq-ai__side-foot {
    margin-top: auto;
    padding-top: 14px;
    text-align: center;
}

.hq-ai__side-art {
    display: block;
    width: 100%;
    height: 46px;
    margin-bottom: 8px;
    opacity: 0.85;
}

.hq-ai__side-foot p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.6;
    color: #a89d94;
}

/* ---------- 右侧会话区 ---------- */
.hq-ai__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hq-ai__stream {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 26px 8px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(58, 46, 40, 0.16) transparent;
}

.hq-ai__stream::-webkit-scrollbar { width: 6px; }
.hq-ai__stream::-webkit-scrollbar-track { background: transparent; }
.hq-ai__stream::-webkit-scrollbar-thumb {
    background: rgba(58, 46, 40, 0.16);
    border-radius: 3px;
}

/* ---------- 空态 ---------- */
.hq-ai__empty {
    margin: auto;
    padding: 20px;
    text-align: center;
}

.hq-ai__empty.is-hidden {
    display: none;
}

.hq-ai__empty-art {
    display: block;
    width: 240px;
    max-width: 70%;
    height: auto;
    margin: 0 auto 18px;
}

.hq-ai__empty h3 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 700;
    color: #3a2e28;
}

.hq-ai__empty p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: #9a8f86;
}

/* 空态提示语分端显示（移动端无侧栏/无物理键盘，文案不同） */
.hq-ai__empty-tip--mob {
    display: none;
}

/* ---------- 消息 ---------- */
.hq-ai__msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
}

.hq-ai__msg--user {
    flex-direction: row-reverse;
}

.hq-ai__msg-avatar {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    overflow: hidden;
}

.hq-ai__msg-avatar--ai {
    background: linear-gradient(135deg, #7C5CFF, #22D3EE);
    box-shadow: 0 3px 8px rgba(124, 92, 255, 0.3);
}

.hq-ai__msg-avatar--user {
    background: linear-gradient(135deg, #ff8a5c, #ff6a3d);
    box-shadow: 0 3px 8px rgba(255, 106, 61, 0.28);
}

.hq-ai__msg-avatar svg {
    width: 18px;
    height: 18px;
}

.hq-ai__msg-col {
    min-width: 0;
    max-width: min(720px, 78%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hq-ai__msg--user .hq-ai__msg-col {
    align-items: flex-end;
}

.hq-ai__bubble {
    position: relative;
    padding: 12px 15px;
    border-radius: 16px;
    font-size: 14.5px;
    line-height: 1.75;
    word-break: break-word;
    white-space: pre-wrap;
}

.hq-ai__msg--ai .hq-ai__bubble {
    background: #fff;
    color: #3a2e28;
    border: 1px solid rgba(58, 46, 40, 0.07);
    border-top-left-radius: 5px;
    box-shadow: 0 4px 14px rgba(58, 46, 40, 0.06);
}

.hq-ai__msg--user .hq-ai__bubble {
    background: linear-gradient(135deg, #ff8a5c, #ff6a3d);
    color: #fff;
    border-top-right-radius: 5px;
    box-shadow: 0 4px 14px rgba(255, 106, 61, 0.24);
}

.hq-ai__bubble pre {
    margin: 8px 0;
    padding: 11px 13px;
    border-radius: 10px;
    background: rgba(58, 46, 40, 0.06);
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.hq-ai__msg--user .hq-ai__bubble pre {
    background: rgba(255, 255, 255, 0.18);
}

.hq-ai__msg-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.hq-ai__msg:hover .hq-ai__msg-actions {
    opacity: 1;
}

.hq-ai__msg-act {
    padding: 3px 10px;
    border: none;
    border-radius: 999px;
    background: rgba(58, 46, 40, 0.06);
    color: #9a8f86;
    font-size: 11.5px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.hq-ai__msg-act:hover {
    background: rgba(58, 46, 40, 0.12);
    color: #5a4f48;
}

/* 打字指示器 */
.hq-ai__typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 14px 16px;
}

.hq-ai__typing i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b3a89e;
    animation: hq-ai-bounce 1.2s infinite ease-in-out;
}

.hq-ai__typing i:nth-child(2) { animation-delay: 0.18s; }
.hq-ai__typing i:nth-child(3) { animation-delay: 0.36s; }

@keyframes hq-ai-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* 错误气泡 */
.hq-ai__msg--error .hq-ai__bubble {
    background: #fff1ee;
    border-color: rgba(255, 106, 61, 0.35);
    color: #b4402a;
}

/* ============================================================
   4. 输入台
   ============================================================ */
.hq-ai__composer {
    flex-shrink: 0;
    padding: 12px 26px 18px;
    background: linear-gradient(to top, rgba(247, 244, 239, 0.98), rgba(247, 244, 239, 0));
}

.hq-ai__login-mask {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 106, 61, 0.1);
    color: #b4402a;
    font-size: 13px;
}

.hq-ai__login-mask a {
    color: var(--color-primary, #ff6a3d);
    font-weight: 700;
    text-decoration: underline;
}

.hq-ai__input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 10px 10px 16px;
    background: #fff;
    border: 1px solid rgba(58, 46, 40, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(58, 46, 40, 0.07);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.hq-ai__input-wrap:focus-within {
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: 0 8px 26px rgba(124, 92, 255, 0.16);
}

.hq-ai__input {
    flex: 1;
    min-height: 24px;
    max-height: 140px;
    padding: 6px 0;
    border: none;
    background: transparent;
    outline: none;
    resize: none;
    font-size: 14.5px;
    line-height: 1.6;
    color: #3a2e28;
    font-family: inherit;
    overflow-y: auto;
}

.hq-ai__input::placeholder {
    color: #b3a89e;
}

.hq-ai__input:disabled {
    cursor: not-allowed;
}

.hq-ai__send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #7C5CFF, #22D3EE);
    box-shadow: 0 5px 14px rgba(124, 92, 255, 0.35);
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

.hq-ai__send:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(124, 92, 255, 0.42);
}

.hq-ai__send:active {
    transform: scale(0.94);
}

.hq-ai__send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.hq-ai__composer-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px 0;
    font-size: 11.5px;
    color: #a89d94;
}

.hq-ai__kbd-tip em {
    font-style: normal;
    margin: 0 6px;
}

.hq-ai__kbd-tip kbd {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid rgba(58, 46, 40, 0.14);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 11px;
    color: #8a7a70;
}

/* ============================================================
   5. 暗色模式
   ============================================================ */
[data-theme="dark"] .hq-ai-modal .hq-modal__dialog {
    background: var(--hq-ai-bg-dark, #171a21);
}

[data-theme="dark"] .hq-ai__bar {
    background: rgba(30, 34, 43, 0.78);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hq-ai__brand-text strong { color: #efe6db; }
[data-theme="dark"] .hq-ai__brand-text em { color: #8d97a8; }

[data-theme="dark"] .hq-ai__ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #c9bcae;
}

[data-theme="dark"] .hq-ai__side {
    background: rgba(255, 255, 255, 0.03);
    border-right-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .hq-ai__cap {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .hq-ai__cap-text strong { color: #efe6db; }
[data-theme="dark"] .hq-ai__cap-text em { color: #8d97a8; }

[data-theme="dark"] .hq-ai__chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.09);
    color: #c9bcae;
}

[data-theme="dark"] .hq-ai__side-foot p { color: #7c8697; }

[data-theme="dark"] .hq-ai__empty h3 { color: #efe6db; }
[data-theme="dark"] .hq-ai__empty p { color: #8d97a8; }

[data-theme="dark"] .hq-ai__msg--ai .hq-ai__bubble {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e3e7ee;
}

[data-theme="dark"] .hq-ai__bubble pre { background: rgba(0, 0, 0, 0.32); }

[data-theme="dark"] .hq-ai__msg-act {
    background: rgba(255, 255, 255, 0.07);
    color: #8d97a8;
}

[data-theme="dark"] .hq-ai__typing i { background: #6b7688; }

[data-theme="dark"] .hq-ai__msg--error .hq-ai__bubble {
    background: rgba(255, 106, 61, 0.14);
    border-color: rgba(255, 106, 61, 0.3);
    color: #ffb59e;
}

[data-theme="dark"] .hq-ai__composer {
    background: linear-gradient(to top, rgba(23, 26, 33, 0.98), rgba(23, 26, 33, 0));
}

[data-theme="dark"] .hq-ai__input-wrap {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

[data-theme="dark"] .hq-ai__input { color: #e3e7ee; }
[data-theme="dark"] .hq-ai__input::placeholder { color: #6b7688; }

[data-theme="dark"] .hq-ai__kbd-tip kbd {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #a8b2c2;
}

[data-theme="dark"] .hq-ai__composer-foot { color: #7c8697; }

[data-theme="dark"] .hq-ai__stream {
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

[data-theme="dark"] .hq-ai__stream::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
}

/* ============================================================
   6. 响应式
   ============================================================ */
@media (max-width: 1024px) {
    .hq-ai__side {
        display: none;
    }
}

/* ============================================================
   6b. 移动端专属元素（默认隐藏，≤760px 启用）
   ------------------------------------------------------------
   .hq-ai__grabber  顶栏中央的下拉关闭手柄（支持下滑手势关闭）
   .hq-ai__quick    输入台上方的横向快捷提问条（替代桌面端侧栏）
   ============================================================ */
.hq-ai__grabber,
.hq-ai__quick {
    display: none;
}

/* 触屏点击不留灰色高亮块 */
.hq-ai-modal button {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   6c. 移动端：豆包式全屏会话
   ============================================================ */
@media (max-width: 760px) {

    /* 软键盘弹起时：由 JS 把键盘高度写入 --hq-ai-kb，对话面板整体上移 */
    .hq-ai-modal .hq-modal__dialog {
        height: calc(100dvh - var(--hq-ai-kb, 0px)) !important;
    }

    /* ---------- 顶栏 ---------- */
    .hq-ai__bar {
        position: relative;
        height: auto;
        min-height: 50px;
        padding: calc(env(safe-area-inset-top, 0px) + 14px) 14px 10px;
        touch-action: pan-y;
    }

    .hq-ai__grabber {
        display: block;
        position: absolute;
        top: calc(env(safe-area-inset-top, 0px) + 6px);
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background: rgba(58, 46, 40, 0.2);
        transition: background-color 0.18s ease;
    }

    .hq-ai__bar.is-dragging .hq-ai__grabber {
        background: var(--color-primary, #ff6a3d);
    }

    .hq-ai__avatar,
    .hq-ai__avatar svg {
        width: 30px;
        height: 30px;
    }

    .hq-ai__brand {
        gap: 9px;
    }

    .hq-ai__brand-text strong {
        font-size: 14.5px;
    }

    .hq-ai__brand-text em {
        display: none;
    }

    .hq-ai__ghost {
        width: 34px;
        height: 34px;
        padding: 0;
        justify-content: center;
    }

    .hq-ai__ghost span {
        display: none;
    }

    .hq-ai__bar-actions {
        gap: 6px;
    }

    /* ---------- 会话流 ---------- */
    .hq-ai__stream {
        padding: 12px 12px 8px;
        gap: 16px;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .hq-ai__msg {
        gap: 8px;
    }

    .hq-ai__msg-avatar {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .hq-ai__msg-col {
        max-width: 84%;
    }

    .hq-ai__bubble {
        padding: 11px 14px;
        border-radius: 18px;
        font-size: 15.5px;
        line-height: 1.72;
    }

    .hq-ai__msg--ai .hq-ai__bubble { border-top-left-radius: 6px; }
    .hq-ai__msg--user .hq-ai__bubble { border-top-right-radius: 6px; }

    /* 触屏没有 hover，操作条常显 */
    .hq-ai__msg-actions {
        opacity: 1;
        gap: 6px;
    }

    .hq-ai__msg-act {
        min-height: 28px;
        padding: 5px 12px;
        font-size: 12px;
    }

    /* ---------- 空态 ---------- */
    .hq-ai__empty {
        padding: 10px 16px 14px;
    }

    .hq-ai__empty-art {
        width: 190px;
        max-width: 52%;
        margin-bottom: 14px;
    }

    .hq-ai__empty h3 {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .hq-ai__empty p {
        font-size: 13px;
        line-height: 1.7;
    }

    .hq-ai__empty-tip--desk {
        display: none;
    }

    .hq-ai__empty-tip--mob {
        display: block;
    }

    /* ---------- 输入台 ---------- */
    .hq-ai__composer {
        padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    /* 快捷提问条：横向滚动 + 吸附 */
    .hq-ai__quick {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 2px 2px 10px;
        margin: 0 -2px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hq-ai__quick::-webkit-scrollbar {
        display: none;
    }

    .hq-ai__quick-chip {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 34px;
        padding: 0 13px;
        border: 1px solid rgba(58, 46, 40, 0.1);
        border-radius: 999px;
        background: #fff;
        color: #5a4f48;
        font-size: 13px;
        line-height: 1;
        white-space: nowrap;
        scroll-snap-align: start;
        transition: transform 0.14s ease, background-color 0.18s ease, color 0.18s ease;
    }

    .hq-ai__quick-chip:active {
        transform: scale(0.94);
        background: var(--color-primary, #ff6a3d);
        border-color: var(--color-primary, #ff6a3d);
        color: #fff;
    }

    .hq-ai__quick-chip i {
        font-size: 12px;
        opacity: 0.85;
    }

    .hq-ai__input-wrap {
        gap: 8px;
        padding: 7px 7px 7px 14px;
        border-radius: 22px;
    }

    /* 16px 是 iOS Safari 聚焦不自动缩放页面的临界值 */
    .hq-ai__input {
        font-size: 16px;
        max-height: 108px;
    }

    .hq-ai__send {
        width: 38px;
        height: 38px;
    }

    .hq-ai__send:active {
        transform: scale(0.9);
    }

    .hq-ai__composer-foot {
        padding-top: 6px;
        font-size: 11px;
    }

    .hq-ai__kbd-tip {
        display: none; /* 移动端无物理键盘，隐藏快捷键提示 */
    }

    .hq-ai__login-mask {
        margin-bottom: 8px;
        padding: 9px;
        font-size: 12.5px;
    }

    /* ---------- 暗色适配 ---------- */
    [data-theme="dark"] .hq-ai__grabber {
        background: rgba(255, 255, 255, 0.26);
    }

    [data-theme="dark"] .hq-ai__quick-chip {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.09);
        color: #c9bcae;
    }
}
