
  :root{
    /* 政务蓝主色 */
    --blue-700:#12559f;
    --blue-600:#1a6fd4;
    --blue-500:#2b7de9;
    --blue-300:#8fbcf5;
    --blue-100:#dbe9fc;
    --blue-50:#eef5ff;
    --blue-25:#f5f9ff;

    /* 文字统一黑色 */
    --ink:#000000;
    --ink-2:#000000;
    --ink-3:#000000;
    --ink-4:#000000;

    --line:#e2ecf9;
    --line-2:#eef4fc;

    --white:#ffffff;
    --red:#c8102e;

    --radius-lg:16px;
    --radius-md:12px;
    --radius-sm:8px;

    --shadow-card:0 1px 2px rgba(29,78,140,.04), 0 6px 20px rgba(29,78,140,.06);
    --shadow-pop:0 8px 28px rgba(29,78,140,.12);
  }

  *{box-sizing:border-box;margin:0;padding:0;}

  html,body{height:100%;}

  body{
    font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Source Han Sans SC",sans-serif;
    color:var(--ink);
    font-size:14px;
    line-height:1.7;
    -webkit-font-smoothing:antialiased;
    /* 淡蓝渐变底 —— 参照宜昌页面 */
    background:linear-gradient(155deg,#e9f2fe 0%,#f4f9ff 38%,#eaf3ff 100%);
    overflow:hidden;
  }

  button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;}
  input,textarea{font-family:inherit;border:none;outline:none;background:none;color:inherit;}
  svg{display:block;}

  /* ============ 整体三栏 ============ */
  .app{
    display:flex;
    height:100vh;
    min-width:1210px;
    position:relative;
  }

  /* ============ 左侧栏 ============ */
  .sidebar{
    width:290px;
    flex:none;
    overflow:visible;
    position:relative;
    z-index:2;
    background:rgba(255,255,255,.62);
    backdrop-filter:blur(20px);
    border-right:1px solid var(--line);
    display:flex;
    flex-direction:column;
    padding:16px 14px 12px;
    transition:width .26s ease, padding .26s ease;
  }

  /* ---------- 压缩态：收成窄条，只保留图标快捷入口 ---------- */
  .sidebar.collapsed{width:58px;padding:14px 0 12px;align-items:center;}
  .sidebar.collapsed .lbl,
  .sidebar.collapsed .brand-name,
  .sidebar.collapsed .section-head,
  .sidebar.collapsed .history{display:none;}

  /* 顶部：logo + 展开按钮 竖排 */
  .sidebar.collapsed .brand{
    flex-direction:column;
    align-items:center;
    gap:10px;
    padding:0 0 12px;
    width:100%;
  }
  .sidebar.collapsed .icon-btn{
    width:30px;height:30px;border-radius:9px;
    background:var(--white);
    border:1px solid var(--line);
  }
  .sidebar.collapsed .icon-btn svg{transform:rotate(180deg);}

  /* 新建对话：收成方形 + 号按钮 */
  .sidebar.collapsed .new-chat{
    width:38px;height:38px;padding:0;gap:0;flex:none;
    border-radius:10px;
  }

  /* 快捷菜单：竖排图标按钮 */
  .sidebar.collapsed .quick{
    width:100%;
    margin:12px 0 0;
    padding:12px 0 0;
    gap:6px;
    align-items:center;
    position:relative;
    background:transparent;
    border:none;
    border-radius:0;
    overflow:visible;
    box-shadow:none;
  }
  .sidebar.collapsed .quick::before{
    content:"";
    position:absolute;top:0;left:50%;transform:translateX(-50%);
    width:24px;height:1px;background:var(--line);
  }
  .sidebar.collapsed .quick-item{
    width:38px;height:38px;
    padding:0;
    justify-content:center;
    border-radius:11px;
    border-bottom:none;
    position:relative;
  }
  .sidebar.collapsed .q-ico{display:none;}
  .sidebar.collapsed .q-abbr{
    display:flex;align-items:center;justify-content:center;
    font-size:11px;font-weight:600;letter-spacing:.2px;
    color:#000;
  }

  /* 压缩态悬浮提示 */
  .sidebar.collapsed .quick-item::after{
    content:attr(data-label);
    position:absolute;
    left:calc(100% + 9px);
    top:50%;
    transform:translateY(-50%) translateX(-4px);
    background:var(--white);
    border:1px solid var(--blue-300);
    border-radius:8px;
    padding:5px 10px;
    font-size:12px;
    color:#000;
    white-space:nowrap;
    box-shadow:0 6px 18px rgba(29,78,140,.16);
    opacity:0;
    pointer-events:none;
    transition:opacity .16s ease, transform .16s ease;
    z-index:60;
  }
  .sidebar.collapsed .quick-item:hover::after{
    opacity:1;
    transform:translateY(-50%) translateX(0);
  }

  .brand{
    display:flex;
    align-items:center;
    gap:8px;
    padding:2px 2px 16px;
  }
  /* 品牌图标：斜体 E（无底色块，直接落在侧栏背景上）；尺寸贴近右侧品牌名字高 */
  .brand-logo{
    width:20px;height:20px;flex:none;
    display:flex;align-items:center;justify-content:center;
  }
  .brand-name{
    font-size:15px;
    font-weight:600;
    letter-spacing:.2px;
    color:var(--ink);
    flex:1;
    white-space:nowrap;
  }
  .icon-btn{
    width:26px;height:26px;
    border-radius:7px;
    display:flex;align-items:center;justify-content:center;
    color:var(--ink-3);
    transition:background .15s,color .15s;
  }
  .icon-btn:hover{background:var(--blue-100);}

  /* 新建对话 */
  .new-chat{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    height:38px;
    border-radius:10px;
    background:var(--white);
    border:1px solid var(--line);
    font-size:13.5px;
    font-weight:500;
    color:var(--ink-2);
    box-shadow:0 1px 2px rgba(29,78,140,.05);
    transition:border-color .15s,box-shadow .15s,color .15s,transform .12s ease;
  }
  .new-chat:active{transform:scale(.975);}
  .new-chat:hover{
    border-color:var(--blue-300);
    box-shadow:0 3px 12px rgba(43,125,233,.14);
  }

  /* 区块标题 */
  .section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:22px 4px 10px;
    font-size:13.5px;
    font-weight:600;
    color:#000;
    letter-spacing:.4px;
  }
  .section-head .sh-action{
    color:var(--ink-3);
    width:20px;height:20px;
    display:flex;align-items:center;justify-content:center;
    border-radius:5px;
  }
  .section-head .sh-action:hover{background:var(--blue-100);}

  /* 历史对话搜索 */
  .hist-search{
    display:none;
    position:relative;
    margin:0 4px 8px;
  }
  .hist-search.show{display:block;}
  .hist-search input{
    width:100%;
    height:30px;
    padding:0 10px 0 28px;
    font-size:12.5px;
    color:#000;
    background:var(--white);
    border:1px solid var(--line);
    border-radius:8px;
  }
  .hist-search input::placeholder{color:var(--ink-4);}
  .hist-search svg{
    position:absolute;left:8px;top:50%;
    transform:translateY(-50%);
    color:var(--ink-3);
    pointer-events:none;
  }

  /* 历史对话列表 */
  .history{
    display:flex;
    flex-direction:column;
    gap:2px;
    overflow-y:auto;
    max-height:258px;
    margin:0 -4px;
    padding:0 4px;
  }
  .hist-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:9px 11px;
    border-radius:10px;
    font-size:14px;
    color:#000;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    transition:background .15s,color .15s;
  }
  .hist-item{cursor:pointer;}
  .hist-item:hover{background:var(--blue-50);}
  .hist-item.active{
    background:var(--white);
    font-weight:500;
    box-shadow:0 1px 3px rgba(29,78,140,.07);
  }
  .hist-dot{
    width:15px;height:15px;flex:none;
    border-radius:4.5px;
    background:var(--dt,#e3edfa);
    display:flex;align-items:center;justify-content:center;
  }
  .hist-dot::after{content:"";width:5px;height:5px;border-radius:1.5px;background:var(--dc,#bdd4ef);}

  /* 快捷菜单 */
  .quick{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin:0 0 4px;
    padding:0;
  }
  .quick-item{
    display:flex;
    align-items:center;
    gap:11px;
    height:46px;
    padding:0 12px;
    border-radius:11px;
    background:var(--tint,#f2f7fd);
    font-size:14px;
    font-weight:500;
    color:#000;
    text-decoration:none;
    transition:background .16s,box-shadow .16s,transform .16s;
    cursor:pointer;
  }
  .quick-item:hover{
    background:var(--tint-h,#e8f1fd);
    box-shadow:0 3px 10px rgba(29,78,140,.10);
    transform:translateY(-1px);
  }

  /* 四种色调（浅底 + 对应图标色） */
  .quick-item[data-tone="green"]{ --tint:#e9f8f1;--tint-h:#dcf4e9;--ic1:#45cd93;--ic2:#1fa06a; }
  .quick-item[data-tone="blue"] { --tint:#eaf3fe;--tint-h:#dfecfd;--ic1:#5aa2f0;--ic2:#1a6fd4; }
  .quick-item[data-tone="orange"]{ --tint:#fef3e6;--tint-h:#fdecd8;--ic1:#f7b24a;--ic2:#e5871c; }
  .quick-item[data-tone="purple"]{ --tint:#f1edfd;--tint-h:#e9e2fc;--ic1:#9d8bf0;--ic2:#6c5ce0; }

  /* 左侧图标：彩色圆角方块 + 白色矢量符号 */
  .q-ico{
    width:27px;height:27px;flex:none;
    border-radius:8px;
    background:linear-gradient(140deg,var(--ic1,#7fb2ef),var(--ic2,#1a6fd4));
    color:#fff;
    display:flex;align-items:center;justify-content:center;
    box-shadow:0 2px 5px rgba(29,78,140,.16);
  }

  /* 压缩态下的简称（文字，非图标） */
  .q-abbr{display:none;}

  /* ============ 中间对话区 ============ */
  .chat{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    background:var(--white);
    position:relative;
  }

  .chat-head{
    height:52px;
    flex:none;
    display:flex;
    align-items:center;
    gap:8px;
    padding:0 26px;
    border-bottom:1px solid var(--line-2);
    overflow:hidden;
    transition:height .28s ease,padding .28s ease,opacity .2s ease,border-color .28s ease;
  }
  .chat.mode-welcome .chat-head{
    height:0;
    padding-top:0;padding-bottom:0;
    opacity:0;
    border-bottom-color:transparent;
  }
  .chat-title{
    font-size:14px;
    font-weight:600;
    color:var(--ink);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .chat-head .caret{color:var(--ink-4);flex:none;}

  .messages{
    flex:1;
    overflow-y:auto;
    padding:24px 26px 8px;
    display:flex;
    flex-direction:column;
    gap:20px;
  }
  /* 滚动条 */
  .messages::-webkit-scrollbar,
  .faq-body::-webkit-scrollbar,
  .history::-webkit-scrollbar{width:6px;}
  .messages::-webkit-scrollbar-thumb,
  .faq-body::-webkit-scrollbar-thumb,
  .history::-webkit-scrollbar-thumb{
    background:#d8e6f7;border-radius:6px;
  }

  /* 用户气泡 */
  .msg-user{
    display:flex;
    justify-content:flex-end;
  }
  .bubble-user{
    max-width:62%;
    background:var(--blue-100);
    color:#000;
    padding:10px 16px;
    border-radius:14px 14px 3px 14px;
    font-size:14px;
    line-height:1.65;
  }

  /* 检索文档条 */
  /* ============ 检索来源（顶部统一入口） ============ */
  .kb{margin-bottom:14px;}
  .kb-head{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:12.5px;
    color:#000;
    cursor:pointer;
    user-select:none;
  }
  .kb-head .kb-ico{display:flex;flex:none;color:var(--blue-600);}
  .kb-head .kb-strong{border-bottom:1px dashed transparent;transition:border-color .15s;}
  .kb-head:hover .kb-strong{border-bottom-color:#000;}
  .kb-head .kb-caret{
    display:flex;flex:none;
    color:#000;
    transition:transform .22s ease;
  }
  .kb.open .kb-head .kb-caret{transform:rotate(180deg);}

  .kb-body{display:none;margin-top:7px;}
  .kb.open .kb-body{display:block;}

  .kb-kw{
    font-size:12.5px;
    line-height:1.7;
    color:#000;
    margin-bottom:4px;
  }

  .kb-item{
    font-size:12.5px;
    line-height:1.9;
    color:#000;
    cursor:pointer;
  }
  .kb-item .kb-name{
    border-bottom:1px dashed var(--blue-300);
    padding-bottom:1px;
    transition:border-color .15s;
  }
  .kb-item:hover .kb-name{border-bottom-color:var(--blue-600);}

  /* AI 回答 */
  .answer{font-size:14px;color:var(--ink-2);line-height:1.85;}
  .answer p{margin-bottom:10px;}
  .answer h4{
    font-size:14px;
    font-weight:600;
    color:var(--ink);
    margin:18px 0 8px;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .answer h4::before{
    content:"";
    width:3px;height:13px;
    border-radius:2px;
    background:linear-gradient(180deg,var(--blue-500),var(--blue-300));
    flex:none;
  }
  .answer h4:first-child{margin-top:4px;}
  @keyframes fadeSwap{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}
  .answer.swap{animation:fadeSwap .3s ease;}
  .answer ul{margin:0 0 10px;padding-left:2px;}
  .answer li{
    list-style:none;
    position:relative;
    padding-left:16px;
    margin-bottom:5px;
  }
  .answer li::before{
    content:"";
    position:absolute;
    left:3px;top:11px;
    width:5px;height:5px;
    border-radius:50%;
    background:var(--blue-300);
  }
  .answer strong{color:var(--ink);font-weight:600;}
  .answer .hl{
    background:var(--blue-50);
    border-radius:4px;
    padding:1px 6px;
    color:#000;
    font-weight:500;
  }

  /* ============ 原文查看弹窗 ============ */
  .doc-modal{position:fixed;inset:0;z-index:200;display:none;}
  .doc-modal.show{display:block;}
  .dm-mask{
    position:absolute;inset:0;
    background:rgba(15,40,80,.36);
    animation:dmFade .18s ease;
  }
  .dm-panel{
    position:absolute;left:50%;top:50%;
    width:min(720px,86vw);
    max-height:76vh;
    transform:translate(-50%,-50%);
    background:var(--white);
    border-radius:16px;
    box-shadow:0 24px 64px rgba(15,40,80,.3);
    display:flex;flex-direction:column;
    overflow:hidden;
    animation:dmPop .2s ease;
  }
  @keyframes dmFade{from{opacity:0;}to{opacity:1;}}
  @keyframes dmPop{
    from{opacity:0;transform:translate(-50%,-44%) scale(.97);}
    to{opacity:1;transform:translate(-50%,-50%) scale(1);}
  }
  .dm-head{
    display:flex;align-items:center;gap:11px;
    padding:16px 18px 14px;
    border-bottom:1px solid var(--line-2);
    flex:none;
  }
  .dm-file{
    width:32px;height:32px;flex:none;
    border-radius:8px;
    background:linear-gradient(140deg,#4a96ee,#1a6fd4);
    color:#fff;
    display:flex;align-items:center;justify-content:center;
    font-size:11px;font-weight:600;
  }
  .dm-title-wrap{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
  .dm-title{
    font-size:15px;font-weight:600;color:#000;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .dm-sub{font-size:12.5px;color:#000;}
  .dm-close{
    width:30px;height:30px;flex:none;
    border-radius:8px;
    display:flex;align-items:center;justify-content:center;
    color:#000;
    transition:background .15s;
  }
  .dm-close:hover{background:var(--blue-50);}
  .dm-body{
    padding:16px 20px 4px;
    overflow-y:auto;
    flex:1;
  }
  .dm-body::-webkit-scrollbar{width:8px;}
  .dm-body::-webkit-scrollbar-thumb{background:var(--blue-100);border-radius:4px;}
  .dm-loc{
    display:inline-flex;align-items:center;gap:6px;
    font-size:12.5px;
    color:#000;
    background:var(--blue-25);
    border:1px solid var(--line);
    border-radius:7px;
    padding:4px 10px;
    margin-bottom:14px;
  }
  .dm-text{
    font-size:14px;
    line-height:2;
    color:#000;
    margin-bottom:10px;
    text-indent:2em;
  }
  .dm-text .mk{
    background:linear-gradient(transparent 60%,#ffe7a8 60%);
    font-weight:500;
  }
  .dm-foot{
    display:flex;align-items:center;gap:9px;
    padding:12px 18px 16px;
    border-top:1px solid var(--line-2);
    flex:none;
  }
  .dm-hint{flex:1;font-size:12.5px;color:#000;}
  .dm-btn{
    height:32px;padding:0 15px;
    border-radius:9px;
    border:1px solid var(--line);
    background:var(--white);
    font-size:12.5px;font-weight:500;
    color:#000;
    transition:border-color .15s,background .15s;
  }
  .dm-btn:hover{border-color:var(--blue-300);background:var(--blue-25);}
  .dm-btn.primary{
    background:var(--blue-600);
    border-color:var(--blue-600);
    color:#fff;
  }
  .dm-btn.primary:hover{background:var(--blue-700);border-color:var(--blue-700);}


  /* ============ 输入区 ============ */
  .composer-wrap{
    flex:none;
    padding:6px 26px 20px;
  }
  .composer{
    border:1px solid var(--line);
    border-radius:var(--radius-lg);
    background:var(--white);
    box-shadow:var(--shadow-card);
    padding:14px 16px 12px;
    transition:border-color .2s,box-shadow .2s;
  }
  .composer:focus-within{
    border-color:var(--blue-300);
    box-shadow:0 0 0 3px rgba(43,125,233,.09),var(--shadow-card);
  }
  .composer textarea{
    width:100%;
    resize:none;
    height:60px;
    font-size:14px;
    line-height:1.6;
    color:var(--ink);
    display:block;
  }
  .composer textarea::placeholder{color:var(--ink-4);}

  .tools{
    display:flex;
    align-items:center;
    gap:6px;
    margin-top:6px;
  }
  .tool-plain{
    width:30px;height:30px;
    border-radius:8px;
    display:flex;align-items:center;justify-content:center;
    color:var(--ink-3);
    font-size:17px;
    transition:background .15s,color .15s;
  }
  .tool-plain:hover{background:var(--blue-50);}

  /* 场景 chip（智能引导 / 法律法规 …）已下线：改为由语义识别路由到对应知识库 */

  /* 输入框被预填内容时的提示反馈 */
  .composer.flash{
    border-color:var(--blue-300);
    animation:compFlash .85s ease;
  }
  @keyframes compFlash{
    0%{box-shadow:0 0 0 0 rgba(43,125,233,.30),var(--shadow-card);}
    70%{box-shadow:0 0 0 8px rgba(43,125,233,0),var(--shadow-card);}
    100%{box-shadow:0 0 0 0 rgba(43,125,233,0),var(--shadow-card);}
  }

  .send{
    margin-left:auto;
    width:32px;height:32px;
    border-radius:50%;
    background:linear-gradient(140deg,#4a96ee,#1a6fd4);
    color:#fff;
    display:flex;align-items:center;justify-content:center;
    box-shadow:0 3px 10px rgba(26,111,212,.32);
    transition:transform .15s,box-shadow .15s;
  }
  .send:hover{transform:translateY(-1px);box-shadow:0 5px 16px rgba(26,111,212,.4);}

  /* ============ 右侧常见问题 ============ */
  .faq{
    width:296px;
    flex:none;
    background:#e8f1fd;
    border-left:1px solid #dbe8f9;
    display:flex;
    flex-direction:column;
    transition:margin-right .28s ease,opacity .2s ease;
  }
  .faq.collapsed{margin-right:-296px;opacity:0;pointer-events:none;}

  .faq-head{
    flex:none;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 16px 0 18px;
    border-bottom:1px solid #dbe8f9;
  }
  .faq-head h3{
    font-size:14.5px;
    font-weight:600;
    color:var(--ink);
    letter-spacing:.3px;
  }
  .faq-collapse{
    height:26px;
    padding:0 9px;
    border-radius:7px;
    display:inline-flex;
    align-items:center;
    gap:4px;
    font-size:12.5px;
    color:#000;
    background:var(--white);
    border:1px solid #cfe0f5;
    transition:background .15s,border-color .15s;
  }
  .faq-collapse:hover{background:var(--blue-50);border-color:var(--blue-300);}

  .faq-search{
    flex:none;
    margin:14px 16px 4px;
    height:34px;
    border-radius:9px;
    background:var(--white);
    border:1px solid #dbe8f9;
    display:flex;
    align-items:center;
    gap:8px;
    padding:0 11px;
    transition:border-color .15s,box-shadow .15s;
  }
  .faq-search:focus-within{
    border-color:var(--blue-300);
    box-shadow:0 0 0 3px rgba(43,125,233,.09);
  }
  .faq-search input{
    flex:1;
    font-size:12.5px;
    color:var(--ink);
    min-width:0;
  }
  .faq-search input::placeholder{color:var(--ink-4);}

  .faq-body{
    flex:1;
    overflow-y:auto;
    padding:10px 16px 20px;
  }

  .faq-group{
    margin-bottom:8px;
    border-radius:var(--radius-md);
    background:var(--white);
    border:1px solid #e4eefc;
    overflow:hidden;
    transition:box-shadow .18s,border-color .18s;
  }
  .faq-group:hover{box-shadow:0 3px 12px rgba(29,78,140,.07);}
  .faq-group.open{border-color:var(--blue-300);box-shadow:0 4px 16px rgba(43,125,233,.1);}

  .faq-group-head{
    display:flex;
    align-items:center;
    gap:9px;
    padding:12px 13px;
    cursor:pointer;
    user-select:none;
  }
  .fg-ico{
    width:24px;height:24px;flex:none;
    border-radius:7px;
    display:flex;align-items:center;justify-content:center;
    font-size:12px;
    background:var(--blue-50);
  }
  .fg-name{
    flex:1;
    font-size:13.5px;
    font-weight:500;
    color:var(--ink);
  }
  .fg-caret{
    color:var(--ink-4);
    transition:transform .22s;
    flex:none;
  }
  .faq-group.open .fg-caret{transform:rotate(180deg);}

  .faq-items{
    display:none;
    padding:0 13px 6px;
  }
  .faq-group.open .faq-items{display:block;}

  .faq-item{
    display:flex;
    align-items:flex-start;
    gap:8px;
    padding:9px 10px;
    margin-bottom:4px;
    border-radius:8px;
    font-size:13px;
    color:var(--ink-2);
    line-height:1.6;
    background:var(--blue-25);
    transition:background .15s,color .15s;
    cursor:pointer;
  }
  .faq-item:hover{background:var(--blue-50);}
  .faq-item.picked{
    background:var(--blue-100);
    box-shadow:inset 0 0 0 1px var(--blue-300);
  }
  .faq-item::before{
    content:"";
    width:5px;height:5px;
    border-radius:50%;
    background:var(--blue-300);
    flex:none;
    margin-top:9px;
  }
  .faq-empty{
    text-align:center;
    font-size:12.5px;
    color:var(--ink-4);
    padding:26px 0;
  }

  /* 面板收起后的唤出把手（贴右边缘的竖排按钮，明确可见可点） */
  .faq-handle{
    position:absolute;
    top:50%;
    right:0;
    transform:translateY(-50%);
    display:none;
    flex-direction:column;
    align-items:center;
    gap:8px;
    padding:14px 7px;
    border-radius:12px 0 0 12px;
    background:var(--white);
    border:1.5px solid var(--blue-300);
    border-right:none;
    box-shadow:-4px 0 18px rgba(29,78,140,.16);
    color:#000;
    z-index:30;
    transition:padding .15s,box-shadow .15s;
  }
  .faq-handle.show{display:flex;animation:handleIn .3s ease-out;}
  .faq-handle:hover{padding-right:11px;box-shadow:-6px 0 22px rgba(29,78,140,.24);}
  .faq-handle .fh-ico{
    width:24px;height:24px;flex:none;
    border-radius:7px;
    background:var(--blue-50);
    display:flex;align-items:center;justify-content:center;
    color:#000;
  }
  .faq-handle .fh-text{
    writing-mode:vertical-rl;
    font-size:12.5px;
    font-weight:600;
    letter-spacing:2px;
    color:#000;
  }
  @keyframes handleIn{
    from{opacity:0;transform:translateY(-50%) translateX(18px);}
    to{opacity:1;transform:translateY(-50%) translateX(0);}
  }

  /* ============ 新会话欢迎页 ============ */
  .view-chat{
    display:flex;
    flex-direction:column;
    gap:20px;
  }
  .view-chat.enter{animation:wIn .32s ease;}
  .view-welcome{
    flex:1;
    display:none;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding-bottom:26px;
  }
  .chat.mode-welcome .view-chat{display:none;}
  .chat.mode-welcome .view-welcome{display:flex;}

  .w-avatar{width:104px;height:104px;flex:none;margin-bottom:4px;}
  .w-avatar svg{width:100%;height:100%;}
  .w-title{
    font-size:25px;
    font-weight:600;
    color:#000;
    letter-spacing:.4px;
    margin-bottom:26px;
    text-align:center;
  }
  .w-chips{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:11px 12px;
    max-width:840px;
  }
  .w-chip{
    max-width:420px;
    padding:9px 17px;
    border-radius:999px;
    background:var(--white);
    border:1px solid var(--line);
    box-shadow:0 1px 2px rgba(29,78,140,.05);
    font-size:13px;
    line-height:1.55;
    color:#000;
    text-align:left;
    transition:border-color .16s,background .16s,box-shadow .16s,transform .16s;
  }
  .w-chip:hover{
    border-color:var(--blue-300);
    background:var(--blue-25);
    box-shadow:0 4px 14px rgba(43,125,233,.14);
    transform:translateY(-1px);
  }
  /* 快捷语被点击后：短暂选中态，表示已填入输入框 */
  .w-chip.on{
    border-color:var(--blue-600);
    background:var(--blue-50);
    box-shadow:0 0 0 1px var(--blue-600) inset,0 4px 14px rgba(43,125,233,.16);
  }

  /* 欢迎页入场动画 */
  @keyframes wIn{from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:none;}}
  @keyframes wPop{from{opacity:0;transform:translateY(10px) scale(.96);}to{opacity:1;transform:none;}}
  .view-welcome.welcome-anim .w-avatar{animation:wPop .46s cubic-bezier(.2,.7,.3,1) both;}
  .view-welcome.welcome-anim .w-title{animation:wIn .46s .07s cubic-bezier(.2,.7,.3,1) both;}
  .view-welcome.welcome-anim .w-chip{animation:wPop .42s cubic-bezier(.2,.7,.3,1) both;}
  .view-welcome.welcome-anim .w-chip:nth-child(1){animation-delay:.13s;}
  .view-welcome.welcome-anim .w-chip:nth-child(2){animation-delay:.19s;}
  .view-welcome.welcome-anim .w-chip:nth-child(3){animation-delay:.25s;}
  .view-welcome.welcome-anim .w-chip:nth-child(4){animation-delay:.31s;}
  .view-welcome.welcome-anim .w-chip:nth-child(5){animation-delay:.37s;}
  .view-welcome.welcome-anim .w-chip:nth-child(6){animation-delay:.43s;}

  /* 新建对话按钮点击反馈 */
  @keyframes ncPulse{
    0%{box-shadow:0 0 0 0 rgba(43,125,233,.34);}
    70%{box-shadow:0 0 0 10px rgba(43,125,233,0);}
    100%{box-shadow:0 0 0 0 rgba(43,125,233,0);}
  }
  .new-chat.pulse{animation:ncPulse .6s ease;border-color:var(--blue-300);color:#000;}

  /* 快捷菜单项右侧「外部链接」箭头（提示将在新标签页打开） */
  .quick-item .q-go{
    margin-left:auto;
    display:flex;flex:none;
    color:var(--ink-4);
    opacity:.55;
    transition:opacity .15s,color .15s;
  }
  .quick-item:hover .q-go{opacity:1;color:var(--blue-600);}
  .sidebar.collapsed .quick-item .q-go{display:none;}

  /* ============ 流式输出效果 ============ */
  /* 打字光标 */
  .stream-caret{
    display:inline-block;
    width:2px;height:1.05em;
    margin-left:2px;
    vertical-align:-2px;
    border-radius:1px;
    background:var(--blue-600);
    animation:caretBlink .85s steps(1) infinite;
  }
  @keyframes caretBlink{0%,49%{opacity:1;}50%,100%{opacity:0;}}

  /* 逐条浮现（小标题 / 列表项） */
  .answer .st-hide{opacity:0;transform:translateY(6px);}
  .answer .st-in{opacity:1;transform:none;transition:opacity .26s ease,transform .26s ease;}

  /* 「正在检索」指示 */
  .think{
    display:inline-flex;
    align-items:center;
    gap:9px;
    font-size:13.5px;
    color:#000;
    padding:2px 0;
  }
  .think-dots{display:inline-flex;align-items:center;gap:4px;}
  .think-dots i{
    width:6px;height:6px;border-radius:50%;
    background:var(--blue-300);
    animation:tdot 1.1s ease-in-out infinite;
  }
  .think-dots i:nth-child(2){animation-delay:.15s;}
  .think-dots i:nth-child(3){animation-delay:.3s;}
  @keyframes tdot{
    0%,80%,100%{opacity:.35;transform:translateY(0);}
    40%{opacity:1;transform:translateY(-3px);}
  }

  /* 窄屏兜底 */
  @media (max-width:1300px){
    .app{min-width:0;}
    .faq{width:264px;}
    .faq.collapsed{margin-right:-264px;}
  }


