/* ==============================
   AI 智能报告检索与多轮研判工作�?
   ============================== */

/* 页面基础 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    background: radial-gradient(120% 120% at 50% 10%, #fcfdfe 0%, #f3f6fa 50%, #e9eff6 100%);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 磨砂玻璃效果 */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* 报告卡片发光 */
.report-card-glow {
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.report-card-glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}
.report-card-glow.active-link {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 12px 20px -5px rgba(99, 102, 241, 0.12), 0 4px 8px -2px rgba(6, 182, 212, 0.08);
}
.report-card-glow.active-link::after {
    opacity: 0.2;
}

/* 滚动�?*/
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.4); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.6); }

/* AI 气泡 */
.ai-bubble {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

/* 页面基础覆盖 �?使新页面全屏显示 */
body:has(.ris-main) {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: radial-gradient(120% 120% at 50% 10%, #fcfdfe 0%, #f3f6fa 50%, #e9eff6 100%);
    overflow: hidden;
}
body:has(.ris-main) .page-content { padding: 0 !important; background: transparent !important; display: flex; flex-direction: column; height: 100%; }
body:has(.ris-main) .main-area { padding: 0 !important; background: transparent !important; overflow: hidden; }
body:has(.ris-main) .sub-header { display: none !important; }
body:has(.ris-main) #sidebar { display: none !important; }
body:has(.ris-main) .sidebar-overlay { display: none !important; }
body:has(.ris-main) .main-area { margin-left: 0 !important; }
body:has(.ris-main) .layout-wrapper { grid-template-columns: 0 1fr !important; }

/* ===== 主工作区 ===== */
.ris-main {
    flex: 1; display: flex; width: 100%; overflow: hidden;
    padding: 0; gap: 0; position: relative;
}

/* ==========================================================================
   最左侧：历史对话侧边栏
   数值取自 chat.deepseek.com 线上样式表（main.84ce94ca1f.css, commit 29e61c85）：
   宽 261px(--sider-width)、底色 #f9fafb(--dsw-specific-sidebar-fill)、
   条目 40px 高 / 圆角 12px、hover #f1f3f5、选中 #e4edfd + 文字 #3964fe、
   分组标题 12px/500 粘性吸顶、「开启新对话」为带柔和投影的白色胶囊。
   ========================================================================== */
.ris-sidebar {
    /* DeepSeek light 主题令牌静态值 */
    --ds-sidebar-fill: #f9fafb;   /* --dsw-specific-sidebar-fill      */
    --ds-hover: #f1f3f5;          /* --dsw-static-neutral-bluish-75    */
    --ds-active: #e4edfd;         /* --dsw-static-deepseek-100         */
    --ds-text: #0f1115;           /* --dsw-alias-label-primary         */
    --ds-text-tertiary: #81858c;  /* --dsw-alias-label-tertiary        */
    --ds-text-caption: #adb2b8;   /* --dsw-alias-label-caption         */
    --ds-brand: #3964fe;          /* --dsw-static-deepseek-500         */
    --ds-border: #e7e9ec;         /* --dsw-alias-border-l1             */

    flex: 0 0 auto; box-sizing: border-box;
    width: 261px; max-width: 261px; min-width: 0; height: 100%;
    display: flex; flex-direction: column;
    background: var(--ds-sidebar-fill);
    border-right: 1px solid var(--ds-border);
    border-radius: 0; box-shadow: none;
    padding: 6px 12px 0;
    overflow: hidden; position: relative; z-index: 20;
    transition: width 0.2s ease, max-width 0.2s ease, padding 0.2s ease;
}

/* 品牌行：48px（含 15/10 内边距），左侧 logo，右侧图标按钮组 */
.ris-sidebar-top {
    flex-shrink: 0; box-sizing: border-box;
    width: 100%; height: 48px; margin-bottom: 16px; padding: 15px 0 10px 4px;
    display: flex; align-items: center; justify-content: space-between;
}
.ris-sidebar-brand { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ris-sidebar-logo { display: flex; color: var(--ds-brand); flex-shrink: 0; }
.ris-sidebar-brand-text {
    font-size: 15px; font-weight: 600; color: var(--ds-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ris-sidebar-top-actions { flex-shrink: 0; margin-left: auto; display: flex; align-items: center; gap: 18px; }
.ris-sidebar-iconbtn {
    width: 22px; height: 22px; padding: 0; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 6px; background: transparent;
    color: var(--ds-text-tertiary); cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.ris-sidebar-iconbtn:hover { color: var(--ds-text); background: var(--ds-hover); }

/* 侧边栏内搜索：点放大镜展开 */
.ris-sidebar-search { flex-shrink: 0; display: none; padding-bottom: 8px; }
.ris-sidebar-search.open { display: block; }
.ris-sidebar-search input {
    width: 100%; box-sizing: border-box; height: 34px; padding: 0 10px;
    border: 1px solid var(--ds-border); border-radius: 10px; background: #fff;
    color: var(--ds-text); font-size: 13px; font-family: inherit; outline: none;
}
.ris-sidebar-search input::placeholder { color: var(--ds-text-caption); }
.ris-sidebar-search input:focus { border-color: var(--ds-brand); }

/* 「开启新对话」：白色胶囊 + 柔和投影（不是扁平行） */
.ris-sidebar-new {
    width: 100%; height: 40px; padding: 0 16px; box-sizing: border-box;
    flex-shrink: 0; position: relative;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid rgba(103, 158, 254, 0);
    border-radius: 100px; background: #fff;
    color: var(--ds-text); font-size: 14px; font-weight: 500; font-family: inherit;
    cursor: pointer; user-select: none; white-space: nowrap;
    box-shadow: 0 -2px 2px rgba(72, 104, 178, 0.04), 0 2px 2px rgba(106, 111, 117, 0.09), 0 1px 2px rgba(72, 104, 178, 0.08);
    transition: box-shadow 0.3s;
}
.ris-sidebar-new:hover {
    box-shadow: 0 4px 4px rgba(72, 104, 178, 0.04), 0 -3px 4px rgba(72, 104, 178, 0.04), 0 6px 6px rgba(106, 111, 117, 0.1);
}
.ris-sidebar-new svg { flex-shrink: 0; color: var(--ds-brand); }
/* 悬停时右侧淡入快捷键提示（DeepSeek 原样） */
.ris-sidebar-new::after {
    content: "Ctrl + J"; position: absolute; top: 50%; right: 11px; transform: translateY(-50%);
    color: var(--ds-text-caption); opacity: 0; pointer-events: none;
    font-size: 14px; font-weight: 400; line-height: 22px; transition: opacity 0.3s;
}
.ris-sidebar-new:hover::after { opacity: 1; }

/* 列表滚动区 */
.ris-sidebar-scroll { flex: 1; min-height: 0; margin-top: 24px; position: relative; }
.ris-conv-list {
    height: 100%; margin: 0 -2px; padding: 0 2px;
    overflow-y: auto; overflow-x: hidden;
}

/* 分组：粘性标题（今天 / 7 天内 / 30 天内 / YYYY-MM） */
.ris-conv-group { margin-top: 16px; padding-top: 4px; position: relative; }
.ris-conv-group:first-child { margin-top: 0; }
.ris-conv-group-label {
    position: sticky; top: 0; z-index: 20;
    padding: 2px 10px; font-size: 12px; font-weight: 500; line-height: 18px;
    color: var(--ds-text-tertiary); background: var(--ds-sidebar-fill);
    box-shadow: 4px 0 0 var(--ds-sidebar-fill);
    user-select: none;
    /* 左侧分组名 + 右侧「选择」按钮（多选入口，与 DeepSeek 一致） */
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ris-conv-group-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 多选入口：图标按钮（只在最上方分组标题右侧出现） */
.ris-conv-select-btn {
    flex-shrink: 0; width: 22px; height: 22px; padding: 0; margin-right: -6px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; border-radius: 6px; background: transparent;
    color: var(--ds-text-tertiary); cursor: pointer;
    transition: color 0.12s, background 0.12s;
}
.ris-conv-select-btn:hover { color: var(--ds-brand); background: var(--ds-hover); }

/* 会话条目：40px 高 / 圆角 12px */
.ris-conv-item {
    --ris-mask-base: 241, 243, 245;   /* 与 hover 底色一致 */
    position: relative; box-sizing: border-box;
    height: 40px; padding: 9px 6px 9px 10px; border-radius: 12px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 14px; line-height: 22px; color: var(--ds-text);
    cursor: pointer; outline: none;
    transition: background 0.12s;
}
.ris-conv-item:hover { background: var(--ds-hover); }
.ris-conv-item.active {
    --ris-mask-base: 228, 237, 253;   /* #e4edfd */
    background: var(--ds-active); color: var(--ds-brand);
}
.ris-conv-title {
    flex: 1; min-width: 0; line-height: 18px;
    white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}

/* 右侧渐隐遮罩 + 「⋯」：hover / 选中 / 聚焦时出现 */
.ris-conv-actions {
    position: absolute; top: 0; bottom: 0; right: 0; width: 56px;
    display: none; align-items: center; justify-content: center;
    pointer-events: none;
    border-top-right-radius: 12px; border-bottom-right-radius: 12px;
    background: linear-gradient(90deg,
        rgba(var(--ris-mask-base), 0) 0%,
        rgba(var(--ris-mask-base), 0.5) 20.23%,
        rgb(var(--ris-mask-base)) 40.62%);
}
.ris-conv-item:hover .ris-conv-actions,
.ris-conv-item.active .ris-conv-actions,
.ris-conv-item:focus-within .ris-conv-actions { display: flex; }
.ris-conv-more {
    position: absolute; right: 4px; z-index: 10; pointer-events: auto;
    width: 22px; height: 22px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 6px; background: transparent;
    color: var(--ds-text-tertiary); cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.ris-conv-more:hover { background: rgba(0, 0, 0, 0.06); color: var(--ds-text); }

/* 置顶标记：平时常驻在标题右侧，hover/选中时让位给「⋯」（DeepSeek 同款） */
.ris-conv-pin {
    flex: 0 0 auto; margin-left: 6px; margin-right: 4px;
    display: inline-flex; align-items: center;
    color: var(--ds-text-tertiary);
}
.ris-conv-pin svg { width: 13px; height: 13px; }
.ris-conv-item:hover .ris-conv-pin,
.ris-conv-item.active .ris-conv-pin { visibility: hidden; }
.ris-conv-empty {
    padding: 28px 12px; text-align: center;
    font-size: 13px; line-height: 1.9; color: var(--ds-text-caption);
}

/* 「⋯」下拉菜单 */.ris-conv-menu {
    position: fixed; z-index: 200; min-width: 140px; padding: 4px;
    display: none; flex-direction: column;
    background: #fff; border: 1px solid var(--ds-border);
    border-radius: 12px; box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12);
}
.ris-conv-menu.open { display: flex; }
.ris-conv-menu-item {
    height: 36px; padding: 0 10px;
    display: flex; align-items: center; gap: 8px;
    border: none; border-radius: 8px; background: transparent;
    color: var(--ds-text); font-size: 13.5px; font-family: inherit;
    cursor: pointer; text-align: left; white-space: nowrap;
    transition: background 0.12s;
}
.ris-conv-menu-item:hover { background: var(--ds-hover); }
.ris-conv-menu-item svg { flex-shrink: 0; color: var(--ds-text-tertiary); }

/* ===== 多选模式（对照 DeepSeek 实测样式：入口=分组标题右侧图标，顶行=选择对话/已选择 N，底栏=置顶+删除） ===== */
.ris-conv-check {
    flex: 0 0 auto; width: 16px; height: 16px; margin-right: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(148, 163, 184, 0.7); border-radius: 50%;
    background: #fff; color: #fff;
    transition: background 0.12s, border-color 0.12s;
}
.ris-conv-check.checked { background: var(--ds-brand); border-color: var(--ds-brand); }
.ris-conv-item.is-selected { background: var(--ds-active); }
.ris-conv-item.is-selected .ris-conv-title { color: var(--ds-brand); }

/* 多选模式下的顶行：整行替换品牌行（DeepSeek：高 40px，左文案 16px/500，右 28px 圆形关闭按钮） */
.ris-batch-top {
    display: none; width: 100%; height: 48px; box-sizing: border-box;
    flex-shrink: 0; margin-bottom: 16px; padding: 15px 0 10px 4px;
    align-items: center; justify-content: space-between;
}
.ris-sidebar.is-selecting .ris-sidebar-brand,
.ris-sidebar.is-selecting .ris-sidebar-top-actions { display: none; }
.ris-sidebar.is-selecting .ris-batch-top { display: flex; }
.ris-batch-title {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 16px; font-weight: 500; line-height: 24px;
    color: var(--ds-text); user-select: none;
}
.ris-batch-close {
    width: 28px; height: 28px; box-sizing: border-box; padding: 0; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--ds-border); border-radius: 50%;
    background: #fff; color: #61666b; cursor: pointer;
    transition: background 0.15s;
}
.ris-batch-close:hover { background: var(--ds-hover); }

/* 多选底栏：高 62px、顶部 1px 分隔线，左右各半的透明按钮，中间 1px×24px 竖线 */
.ris-sidebar-bulk {
    display: none; flex-shrink: 0; align-items: center;
    box-sizing: border-box; height: 62px;
    border-top: 1px solid var(--ds-border);
}
.ris-sidebar-bulk.open { display: flex; }
.ris-bulk-half { flex: 1; height: 100%; display: flex; }
.ris-bulk-btn {
    flex: 1; height: 100%; padding: 0; position: relative;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: none; outline: none; background: transparent;
    color: var(--ds-text); font-family: inherit;
    font-size: 14px; font-weight: 500; line-height: 22px;
    cursor: pointer;
}
.ris-bulk-btn:disabled { color: #adb2b8; cursor: default; }
.ris-bulk-btn:hover:not(:disabled) { color: var(--ds-brand); }
/* 删除：只把图标与文字改成错误色（DeepSeek #ec1313），不做红底按钮 */
.ris-bulk-btn.danger { color: #ec1313; }
.ris-bulk-btn.danger:hover:not(:disabled) { color: #c60f0f; }
.ris-bulk-divider {
    flex-shrink: 0; width: 1px; height: 24px; background: var(--ds-border);
}

/* 窄屏抽屉遮罩 */
.ris-sidebar-mask {
    display: none; position: fixed; inset: 0; z-index: 60;
    background: rgba(15, 23, 42, 0.38);
}
.ris-sidebar-mask.open { display: block; }

/* 侧边栏入口按钮：窄屏抽屉入口，或桌面端侧边栏收起后的还原入口。
   与侧边栏里的「搜索/清空/收起」保持同一套规格（尺寸、圆角、配色、hover），
   这样收起与展开看起来是同一个控件的两种状态，而不是两个不相干的按钮 */
.ris-mobile-history-btn {
    display: none; align-items: center; justify-content: center;
    width: 22px; height: 22px; flex-shrink: 0;
    padding: 0; border: none; border-radius: 6px; cursor: pointer;
    background: transparent; color: var(--ds-text-tertiary);
    transition: color 0.15s, background 0.15s;
}
.ris-mobile-history-btn:hover { color: var(--ds-text); background: var(--ds-hover); }
/* 桌面端：侧边栏收起后，用标题栏按钮把它调回来 */
.ris-sidebar.collapsed ~ .ris-workarea .ris-mobile-history-btn { display: inline-flex; }

/* ===== 工作区（对话面板 + 分割线 + 报告面板） ===== */
.ris-workarea {
    flex: 1 1 auto; min-width: 0; height: 100%;
    display: flex; overflow: hidden;
    padding: 12px;
}

/* ===== 左侧面板 ===== */
.ris-left-panel {
    height: 100%; display: flex; flex-direction: column;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    border-radius: 16px 0 0 16px;
    overflow: hidden; position: relative;
    width: 70%; min-width: 0;
}

.ris-left-header {
    padding: 12px 20px; border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    background: rgba(255, 255, 255, 0.4);
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.ris-left-header-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ris-left-header-icon {
    padding: 6px; background: rgba(79, 70, 229, 0.06);
    color: #4f46e5; border-radius: 8px; display: flex; flex-shrink: 0;
}
.ris-left-header-title { font-size: 15px; font-weight: 700; color: #1e293b; white-space: nowrap; }
.ris-left-header-desc {
    font-size: 12.5px; color: #475569; line-height: 1.5;
    /* 窄屏时描述单行省略，避免挤压右侧操作按钮 */
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ris-left-header-left > div:last-child { min-width: 0; }
.ris-clear-btn {
    font-size: 12px; font-weight: 600; color: #64748b;
    display: flex; align-items: center; gap: 4px;
    padding: 4px 10px; background: rgba(241, 245, 249, 0.6);
    border: none; border-radius: 8px; cursor: pointer; transition: all 0.15s;
}
.ris-clear-btn:hover { color: #e11d48; background: rgba(241, 245, 249, 0.9); }
.ris-export-btn:hover { color: #4f46e5; background: rgba(79, 70, 229, 0.1); }

/* ===== 侧边栏收起：DeepSeek 是收到 0 宽完全隐藏，靠标题栏按钮还原 ===== */
@media (min-width: 1025px) {
    /* 必须一并去掉左右内边距：box-sizing 为 border-box 时 padding 不计入 width，
       只写 width:0 的话这 12px×2 的 padding 仍会占位，收起后左侧会留一条「边」 */
    .ris-sidebar.collapsed {
        width: 0; max-width: 0;
        padding-left: 0; padding-right: 0;
        border-right: none;
    }
}

/* ===== 旧版「历史记录」弹窗样式（兼容尚未重新编译的页面，重建后可删除） ===== */
.ris-history-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3); z-index: 100;
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.ris-history-overlay.open { opacity: 1; pointer-events: auto; }

.ris-history-dialog {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95);
    z-index: 101; width: 480px; max-height: 70vh;
    background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
    opacity: 0; pointer-events: none; transition: all 0.25s;
}
.ris-history-dialog.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }

.ris-history-dialog-header {
    padding: 20px 24px 12px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.ris-history-dialog-title { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0; }
.ris-history-close {
    width: 32px; height: 32px; border: none; background: rgba(241, 245, 249, 0.6);
    border-radius: 8px; font-size: 18px; color: #64748b; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.ris-history-close:hover { background: rgba(226, 232, 240, 0.8); color: #475569; }

.ris-history-list {
    flex: 1; overflow-y: auto; padding: 8px 16px;
    max-height: 50vh;
}
.ris-history-empty {
    padding: 40px 0; text-align: center; font-size: 14px; color: #64748b;
}
.ris-history-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px; border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    transition: background 0.15s;
}
.ris-history-item:hover { background: rgba(248, 250, 252, 0.8); }
.ris-history-item:last-child { border-bottom: none; }
.ris-history-item-info { flex: 1; min-width: 0; }
.ris-history-item-title {
    font-size: 13px; font-weight: 600; color: #334155;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 4px;
}
.ris-history-item-meta { font-size: 11px; color: #64748b; }
.ris-history-item-actions { display: flex; gap: 6px; flex-shrink: 0; margin-left: 12px; }
.ris-history-action-btn {
    width: 32px; height: 32px; border: none; border-radius: 8px;
    font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    background: rgba(241, 245, 249, 0.6); transition: all 0.15s;
}
.ris-history-action-btn:hover { background: rgba(79, 70, 229, 0.08); }
.ris-history-action-del:hover { background: rgba(225, 29, 72, 0.08); }

.ris-history-dialog-footer {
    padding: 12px 24px 16px; border-top: 1px solid rgba(226, 232, 240, 0.6);
}
.ris-history-notice {
    font-size: 11px; color: #64748b; text-align: center; margin-bottom: 8px;
}
.ris-history-clear-all {
    width: 100%; padding: 8px; border: 1px solid rgba(225, 29, 72, 0.2);
    background: rgba(225, 29, 72, 0.04); color: #e11d48;
    border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.ris-history-clear-all:hover { background: rgba(225, 29, 72, 0.08); }

/* ===== 对话历史 ===== */
.ris-chat-history {
    flex: 1; overflow-y: auto; padding: 24px;
    display: flex; flex-direction: column; gap: 24px;
    min-height: 0;  /* 允许 flex 压缩自身，确保内部滚动生�?*/
}

.ris-message { display: flex; align-items: flex-start; gap: 16px; }
/* 用户消息：头像在气泡右侧，整体靠右，呈经典聊天镜像布局 */
.ris-message.user { flex-direction: row; justify-content: flex-end; }

.ris-avatar {
    width: 36px; height: 36px; min-width: 36px; box-sizing: border-box; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.ris-avatar-ai {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff; box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}
.ris-avatar-user {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #fff; box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.ris-bubble {
    max-width: 90%; padding: 16px 20px;
    border-radius: 16px; font-size: 15px; line-height: 1.75;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
/* AI / 用户气泡正文统一字号与行高，消除「看起来大小不一」的观感 */
.ris-bubble-ai,
.ris-bubble-user {
    font-size: 15px; font-weight: 400; line-height: 1.75;
}
/* 用户气泡文字加一点字重，平衡白字在紫底上的高对比「膨胀感�?*/
.ris-bubble-user { font-weight: 500; }
.ris-bubble-ai {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
    border: 1px solid rgba(226,232,240,0.7);
    color: #1f2937;
}
.ris-bubble-user {
    background: #4f46e5; color: #fff;
    border-radius: 16px;
    white-space: pre-wrap; word-break: break-word;
}
/* 重置 AI 回答�?<p>/<li> 的浏览器默认外边距，让两段文字对齐更一�?*/
.ris-bubble-ai p, .ris-bubble-ai li {
    font-size: 15px; line-height: 1.75; margin: 0 0 10px;
}
.ris-bubble-ai p:last-child, .ris-bubble-ai li:last-child { margin-bottom: 0; }
.ris-bubble-title { font-weight: 700; color: #1e293b; margin-bottom: 8px; font-size: 14px; }
.ris-bubble-text { margin-bottom: 8px; }
.ris-bubble-text:last-child { margin-bottom: 0; }
.ris-bubble-text mark.ris-highlight {
    background: rgba(250, 204, 21, 0.35);
    color: inherit; padding: 1px 3px;
    border-radius: 3px; font-weight: 600;
}

/* ===== 输入�?===== */
/* 输入区：整体抬升为一个「发问台」，让底部聊天框更醒目 */
.ris-input-area {
    position: relative; flex-shrink: 0;
    padding: 18px 20px 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.85) 0%, rgba(241, 245, 249, 0.98) 100%);
    box-shadow: 0 -10px 28px -18px rgba(15, 23, 42, 0.35);
}
/* 顶部渐变高亮线，强调这里是提问入口 */
.ris-input-area::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg,
        rgba(79, 70, 229, 0) 0%,
        rgba(99, 102, 241, 0.75) 22%,
        rgba(14, 165, 233, 0.75) 78%,
        rgba(79, 70, 229, 0) 100%);
}
.ris-input-form {
    display: flex; flex-direction: column; gap: 6px;
    padding: 12px 12px 10px; border-radius: 24px;
    background: #fff;
    border: 1.5px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 10px 26px -12px rgba(79, 70, 229, 0.4), 0 2px 6px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ris-input-form:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 12px 30px -12px rgba(79, 70, 229, 0.5);
}
/* 收起态侧边栏下输入区不被拉伸 */
.ris-input-form > * { min-width: 0; }
/* 底部一行：左侧来源开关，右侧圆形发送键（DeepSeek 同构） */
.ris-input-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; min-height: 34px;
}
/* 来源切换（知识库 / 联网搜索）：胶囊形，选中为淡蓝底 + 品牌色文字 */
.ris-input-mode {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.ris-mode-btn {
    display: inline-flex; align-items: center; gap: 5px;
    height: 32px; padding: 0 12px;
    border: 1px solid rgba(226, 232, 240, 0.95); border-radius: 999px;
    background: #fff; color: #475569;
    font-size: 13px; font-weight: 500; font-family: inherit;
    cursor: pointer; white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ris-mode-btn:hover { border-color: rgba(99, 102, 241, 0.5); color: #4f46e5; }
.ris-mode-btn svg { flex-shrink: 0; }
.ris-mode-btn.active {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.35);
    color: #4f46e5; font-weight: 600;
}
/* 文本域：容器本身就是那个「框」，内部不再套第二层边框 */
.ris-input {
    width: 100%; box-sizing: border-box;
    padding: 6px 6px 2px;
    background: transparent; border: none; outline: none;
    font-size: 15px; line-height: 1.65; color: #1e293b;
    font-family: inherit; resize: none;
    min-height: 52px; max-height: 180px; overflow-y: auto;
}
.ris-input::placeholder { color: #94a3b8; }
.ris-btn-submit {
    width: 34px; height: 34px; padding: 0; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; border: none; border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 60%, #0ea5e9 140%);
    cursor: pointer; transition: filter 0.18s, box-shadow 0.18s, opacity 0.18s;
    box-shadow: 0 6px 14px -6px rgba(79, 70, 229, 0.75);
}
.ris-btn-submit:hover { filter: brightness(1.08); box-shadow: 0 8px 18px -6px rgba(79, 70, 229, 0.85); }
.ris-btn-submit:active { transform: translateY(1px); }
.ris-btn-submit:disabled { cursor: not-allowed; opacity: 0.55; box-shadow: none; }
.ris-btn-submit.is-loading { opacity: 0.75; cursor: not-allowed; transform: none; }
/* 发送中：圆圈加�?*/
.ris-spinner {
    width: 16px; height: 16px; flex-shrink: 0; display: none;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff; border-radius: 50%;
    animation: ris-spin 0.7s linear infinite;
}
.ris-btn-submit.is-loading .ris-submit-label,
.ris-btn-submit.is-loading > svg { display: none; }
.ris-btn-submit.is-loading .ris-spinner { display: inline-block; }
@keyframes ris-spin { to { transform: rotate(360deg); } }

/* ===== 空态（新对话）：欢迎语 + 输入框整体垂直居中，与 DeepSeek 一致 ===== */
.ris-welcome {
    display: none; text-align: center; padding: 0 24px;
}
/* 有对话内容时由 JS 摘掉 is-empty，欢迎语随之隐藏 */
.ris-left-panel.is-empty .ris-welcome { display: block; }

/* 空态：对话区与输入区各自朝中线靠拢，形成居中的「欢迎语 + 输入框」一组 */
.ris-left-panel.is-empty .ris-chat-history {
    flex: 0 1 auto; margin-top: auto; padding-bottom: 4px;
    align-items: center;
    /* 欢迎内容（预置卡+热门事件）较高时内部滚动，严禁向上溢出盖住顶栏；
       用首子元素 margin-top:auto 代替 justify-content:flex-end，避免滚动区顶部内容不可达 */
    overflow-y: auto; min-height: 0; scrollbar-width: none;
    width: 100%; max-width: 720px; margin-left: auto; margin-right: auto;
}
.ris-left-panel.is-empty .ris-chat-history::-webkit-scrollbar { display: none; }
.ris-left-panel.is-empty .ris-chat-history > :first-child { margin-top: auto; }
.ris-left-panel.is-empty .ris-input-area {
    /* 只在空态收窄并居中：加 40px 补偿输入区左右内边距，使表单与上方 720px 欢迎区边缘对齐 */
    width: 100%; max-width: min(760px, calc(86vw + 40px));
    margin-left: auto; margin-right: auto; margin-bottom: auto;
    border-top: none; background: transparent; box-shadow: none;
    padding-top: 6px;
}
.ris-left-panel.is-empty .ris-input-area::before { display: none; }
/* 空态下底部提示与检索配置栏不占位，保持画面干净 */
.ris-left-panel.is-empty .ris-input-footer { display: none; }
.ris-left-panel.is-empty .ris-input-form { box-shadow: 0 14px 32px -14px rgba(79, 70, 229, 0.45), 0 2px 6px rgba(15, 23, 42, 0.05); }

/* ===== 空态输入区精修：卡片质感 + 聚焦光环 + 渐变发送键 + 居中提示 ===== */
.ris-left-panel.is-empty .ris-input-form {
    border-radius: 22px;
    padding: 14px 14px 12px;
    border: 1.5px solid rgba(99, 102, 241, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #fcfcff 100%);
    box-shadow: 0 18px 44px -18px rgba(79, 70, 229, 0.38), 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
}
.ris-left-panel.is-empty .ris-input-form:hover {
    border-color: rgba(99, 102, 241, 0.34);
    transform: translateY(-1px);
    box-shadow: 0 22px 50px -18px rgba(79, 70, 229, 0.45), 0 3px 10px rgba(15, 23, 42, 0.05);
}
.ris-left-panel.is-empty .ris-input-form:focus-within {
    border-color: rgba(99, 102, 241, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.13), 0 24px 54px -18px rgba(79, 70, 229, 0.5);
}
/* 输入文字：空态下略收紧行距，placeholder 更柔和 */
.ris-left-panel.is-empty .ris-input { font-size: 14.5px; padding: 6px 8px 2px; }
.ris-left-panel.is-empty .ris-input::placeholder { color: #a3aec2; }
/* 联网搜索胶囊：空态下与卡片同层，弱化边框 */
.ris-left-panel.is-empty .ris-mode-btn {
    height: 30px; font-size: 12.5px; color: #64748b;
    border-color: rgba(226, 232, 240, 0.9);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
/* 发送键：空态下放大一号，悬浮有呼吸感 */
.ris-left-panel.is-empty .ris-btn-submit {
    width: 38px; height: 38px;
    box-shadow: 0 8px 18px -6px rgba(79, 70, 229, 0.7);
    transition: filter 0.18s, box-shadow 0.18s, transform 0.18s;
}
.ris-left-panel.is-empty .ris-btn-submit:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 10px 22px -6px rgba(79, 70, 229, 0.8);
}
.ris-left-panel.is-empty .ris-btn-submit:active { transform: translateY(0) scale(0.98); }
/* 底部居中操作提示（替代隐藏的 footer）：CSS 生成，不改结构 */
.ris-left-panel.is-empty .ris-input-area::after {
    content: 'Enter 发送 · Shift + Enter 换行 · 写操作会先出确认卡，确认后再执行';
    display: block; text-align: center; margin-top: 12px;
    font-size: 11px; color: #9aa6ba; letter-spacing: 0.02em;
    pointer-events: none;
}
.ris-input-footer {
    margin-top: 10px; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; font-size: 11.5px; color: #64748b; padding: 0 6px;
}
.ris-input-footer-right { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ris-input-footer kbd {
    display: inline-block; padding: 1px 5px; margin: 0 1px;
    font-family: inherit; font-size: 10.5px; font-weight: 700; color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-bottom-width: 2px; border-radius: 5px; line-height: 1.5;
}
.ris-dot-sm {
    width: 6px; height: 6px; border-radius: 50%; background: #4f46e5; display: inline-block;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14); margin-right: 2px;
}

/* ===== 检索配置摘要栏 ===== */
.ris-config-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 4px; padding: 4px 6px;
    border-radius: 6px;
    background: rgba(248, 250, 252, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.3);
}
.ris-config-summary {
    display: flex; align-items: center; gap: 4px;
    font-size: 11px; color: rgba(100, 116, 139, 0.75);
}
.ris-config-summary svg { color: rgba(148, 163, 184, 0.6); flex-shrink: 0; }
.ris-config-summary b { color: #4f46e5; font-weight: 700; }
.ris-config-gear {
    width: 24px; height: 24px; border-radius: 6px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    background: rgba(255, 255, 255, 0.7);
    color: rgba(148, 163, 184, 0.7);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    padding: 0; flex-shrink: 0; transition: all 0.15s;
}
.ris-config-gear:hover {
    border-color: #4f46e5; color: #4f46e5;
    background: rgba(79, 70, 229, 0.06);
}

/* ===== 检索配置弹�?===== */
.ris-config-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.25); z-index: 110;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.ris-config-overlay.open { opacity: 1; pointer-events: auto; }
.ris-config-panel {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 111; width: 360px;
    background: #fff; border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    opacity: 0; pointer-events: none; transition: all 0.2s;
    display: flex; flex-direction: column; overflow: hidden;
}
.ris-config-panel.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }

.ris-config-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px 10px;
    font-size: 14px; font-weight: 700; color: #1e293b;
}
.ris-config-close {
    width: 28px; height: 28px; border: none;
    background: rgba(241, 245, 249, 0.6); border-radius: 6px;
    font-size: 16px; color: #64748b; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.ris-config-close:hover { background: rgba(226, 232, 240, 0.8); color: #475569; }

.ris-config-panel-body {
    padding: 6px 20px 16px;
    display: flex; flex-direction: column; gap: 16px;
}
.ris-config-item {
    display: flex; flex-direction: column; gap: 6px;
}
.ris-config-item-head {
    display: flex; align-items: center; justify-content: space-between;
}
.ris-config-label {
    font-size: 12px; font-weight: 600; color: #475569;
}
.ris-config-val {
    font-size: 12px; font-weight: 700; color: #4f46e5;
    min-width: 36px; text-align: right;
}
.ris-config-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 4px;
    background: linear-gradient(to right, #e2e8f0, #818cf8, #4f46e5);
    border-radius: 2px; outline: none; cursor: pointer;
}
.ris-config-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: #4f46e5; border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.3);
    cursor: pointer; transition: transform 0.15s;
}
.ris-config-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.ris-config-slider::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%;
    background: #4f46e5; border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.3);
    cursor: pointer;
}
.ris-config-hint {
    font-size: 11px; line-height: 1.5; color: rgba(100, 116, 139, 0.75);
    margin: 0;
}

.ris-config-panel-footer {
    display: flex; align-items: center; justify-content: flex-end; gap: 8px;
    padding: 12px 18px 14px;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    background: rgba(248, 250, 252, 0.5);
}
.ris-config-btn {
    padding: 7px 16px; border-radius: 8px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    border: none; transition: all 0.15s;
}
.ris-config-btn-reset {
    background: rgba(241, 245, 249, 0.8); color: #64748b;
}
.ris-config-btn-reset:hover { background: rgba(226, 232, 240, 0.8); color: #475569; }
.ris-config-btn-apply {
    background: #4f46e5; color: #fff;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}
.ris-config-btn-apply:hover { background: #4338ca; }

/* ===== 分割�?===== */
.ris-resize-handler {
    width: 6px; background: rgba(226, 232, 240, 0.4);
    cursor: col-resize; z-index: 10; flex-shrink: 0;
    position: relative; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.ris-resize-handler:hover, .ris-resize-handler:active { background: #4f46e5; }
.ris-resize-handler::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 4px; height: 32px; border-radius: 4px;
    background: rgba(148, 163, 184, 0.3);
    transition: background 0.2s;
}
.ris-resize-handler:hover::before, .ris-resize-handler:active::before { background: #fff; }

/* ===== 右侧面板 ===== */
.ris-right-panel {
    height: 100%; display: flex; flex-direction: column;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    border-radius: 0 16px 16px 0;
    overflow: hidden; position: relative;
    width: 30%; min-width: 220px;
    min-height: 0;  /* 允许 flex 压缩，确保内部滚动生�?*/
}

.ris-right-header {
    padding: 12px 16px; border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    background: rgba(255, 255, 255, 0.4); flex-shrink: 0;
}
.ris-right-header-left { display: flex; align-items: center; gap: 8px; }
.ris-right-header-icon {
    padding: 4px; background: rgba(16, 185, 129, 0.08);
    color: #059669; border-radius: 6px; display: flex;
}
.ris-right-header-title-row { display: flex; align-items: center; gap: 6px; }
.ris-right-header-title { font-size: 13px; font-weight: 700; color: #1e293b; }
.ris-report-count-badge {
    background: rgba(79, 70, 229, 0.08); color: #4f46e5;
    font-size: 10px; padding: 1px 6px; border-radius: 999px; font-weight: 700;
}

/* 报告列表 */
/* 说明：不使用 display:flex（会导致部分环境滚动失效），分组间距改用 margin 实现�?
   flex: 1 1 0 仍保留——它作用于右侧面板（flex 容器）内的本元素，占满剩余高�?*/
.ris-reports-grid {
    flex: 1 1 0;
    overflow-y: auto; overflow-x: hidden; padding: 14px;
    background: rgba(248, 250, 252, 0.5);
    min-height: 0;  /* 关键：允�?flex 压缩自身，确保内容超高时出现滚动�?*/
}
/* 轮次分组之间的间距（替代�?flex gap�?*/
.ris-reports-grid > .ris-round-group + .ris-round-group {
    margin-top: 14px;
}
.ris-reports-empty {
    height: 100%; box-sizing: border-box;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #64748b; gap: 8px; font-size: 13px;
}

/* 初始等待状态（未提问前�?*/
.ris-reports-waiting {
    height: 100%; box-sizing: border-box;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; padding: 40px 20px;
}
.ris-waiting-icon {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(139,92,246,0.04) 100%);
    border-radius: 50%;
    margin-bottom: 4px;
}
/* 茶杯浮动 */
.ris-waiting-icon svg {
    animation: ris-cup-float 2.4s ease-in-out infinite;
}
@keyframes ris-cup-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
/* 热气飘升动画 */
.ris-steam {
    animation: ris-steam-rise 2s ease-in-out infinite;
}
.ris-steam1 { animation-delay: 0s; }
.ris-steam2 { animation-delay: 0.7s; }
.ris-steam3 { animation-delay: 1.4s; }
@keyframes ris-steam-rise {
    0%   { opacity: 0; transform: translateY(4px) scale(0.9); }
    30%  { opacity: 0.5; }
    60%  { opacity: 0.3; transform: translateY(-6px) scale(1.05); }
    100% { opacity: 0; transform: translateY(-16px) scale(1.1); }
}
.ris-waiting-title {
    color: #475569; font-size: 15px; font-weight: 500;
    margin: 0; text-align: center;
}
.ris-waiting-sub {
    color: #94a3b8; font-size: 12px; margin: 0;
    text-align: center; line-height: 1.5;
}

/* 右侧面板加载状�?*/
.ris-reports-loading {
    height: 100%; box-sizing: border-box;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #64748b; gap: 14px; font-size: 13px;
}
.ris-reports-loading .ris-spinner {
    display: block;  /* 覆盖基础 .ris-spinner �?display:none */
    width: 40px; height: 40px; flex-shrink: 0;
    border: 3px solid rgba(79, 70, 229, 0.15);
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: ris-spin 0.8s linear infinite;
}
.ris-reports-loading .ris-loading-text {
    color: #64748b; font-size: 13px;
    text-align: center; line-height: 1.6;
}
.ris-reports-loading .ris-loading-hint {
    color: #94a3b8; font-size: 11px;
    text-align: center;
}
@keyframes ris-spin {
    to { transform: rotate(360deg); }
}

/* 报告卡片 */
.ris-report-card {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}
.ris-report-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.ris-report-card-top { }
.ris-ai-search-note {
    display: flex; align-items: flex-start; gap: 5px;
    padding: 5px 8px; margin-bottom: 6px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    font-size: 11px; color: #92400e; line-height: 1.5;
}
.ris-ai-search-note svg {
    flex-shrink: 0; margin-top: 1px;
}
.ris-report-card-badge-row {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.ris-report-type-badge {
    padding: 3px 8px; border-radius: 4px;
    font-size: 11px; font-weight: 700;
}
.ris-report-type-badge.pdf { background: rgba(225, 29, 72, 0.06); color: #b91c1c; border: 1px solid rgba(225, 29, 72, 0.1); }
.ris-report-type-badge.docx { background: rgba(217, 119, 6, 0.06); color: #b45309; border: 1px solid rgba(217, 119, 6, 0.1); }
.ris-report-citation {
    font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
    color: #475569;
}
.ris-report-title {
    font-weight: 700; color: #1e293b; font-size: 15px; line-height: 1.4;
    margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ris-report-title:hover { color: #4f46e5; }
.ris-report-desc {
    font-size: 12px; color: #64748b;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 分块数标�?*/
.ris-chunk-count {
    font-size: 12px; font-weight: 600; color: #059669;
    background: rgba(16, 185, 129, 0.08); border-radius: 4px; padding: 2px 6px;
}
/* 章节标签列表 */
.ris-report-sections {
    display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px;
}
.ris-section-tag {
    font-size: 12px; color: #475569;
    background: rgba(241, 245, 249, 0.8); border-radius: 4px; padding: 2px 8px;
    white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis;
}
.ris-report-card-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    padding-top: 8px; margin-top: 8px;
    display: flex; align-items: center; justify-content: space-between;
}
.ris-report-meta { font-size: 12px; color: #64748b; }
.ris-report-viewcount {
    font-size: 12px; color: #64748b;
    margin-left: 6px; padding-left: 6px;
    border-left: 1px solid rgba(226, 232, 240, 0.5);
}
.ris-report-actions { display: flex; gap: 4px; }
.ris-report-btn {
    padding: 4px 11px; border: none; border-radius: 4px;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.ris-report-btn-view { background: rgba(241, 245, 249, 0.8); color: #475569; }
.ris-report-btn-view:hover { background: rgba(226, 232, 240, 0.9); color: #334155; }
.ris-report-btn-extract {
    background: rgba(79, 70, 229, 0.06); color: #4f46e5;
    display: flex; align-items: center; gap: 2px;
}
.ris-report-btn-extract:hover { background: rgba(79, 70, 229, 0.1); }
.ris-report-btn-download {
    background: rgba(5, 150, 105, 0.06); color: #059669;
    display: flex; align-items: center; gap: 2px;
}
.ris-report-btn-download:hover { background: rgba(5, 150, 105, 0.1); }

/* ===== 预览抽屉 ===== */
.ris-drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.35);
    z-index: 29; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.ris-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.ris-drawer {
    position: fixed; inset: 0 0 0 auto; width: 60vw; max-width: 100vw;
    background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    border-left: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 30; transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex; flex-direction: column;
}
.ris-drawer.open { transform: translateX(0); }

.ris-drawer-header {
    padding: 12px 24px; border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(248, 250, 252, 0.8);
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.ris-drawer-header-left { display: flex; align-items: center; gap: 8px; }
.ris-drawer-badge {
    padding: 2px 8px; font-size: 10px; font-weight: 700;
    border-radius: 4px; background: rgba(225, 29, 72, 0.06); color: #e11d48;
}
.ris-drawer-title { font-size: 14px; font-weight: 700; color: #1e293b; }
.ris-drawer-close {
    padding: 6px; border-radius: 8px; border: none;
    background: transparent; color: rgba(148, 163, 184, 0.8);
    cursor: pointer; transition: all 0.15s;
}
.ris-drawer-close:hover { background: rgba(226, 232, 240, 0.8); color: #475569; }

.ris-drawer-body {
    flex: 1; display: flex; overflow: hidden;
}
.ris-drawer-original {
    flex: 1; overflow-y: auto; padding: 24px;
    background: rgba(241, 245, 249, 0.6);
    display: flex; justify-content: center;
}
.ris-drawer-paper {
    width: 100%; max-width: 560px; background: #fff;
    padding: 32px; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(226, 232, 240, 0.6);
    min-height: 60vh; display: flex; flex-direction: column; justify-content: space-between;
}
.ris-drawer-paper-header { border-bottom: 1px solid rgba(79, 70, 229, 0.15); padding-bottom: 16px; margin-bottom: 24px; }
.ris-drawer-paper-meta {
    font-size: 10px; color: #4f46e5; letter-spacing: 2px;
    font-weight: 700; text-transform: uppercase; margin-bottom: 4px;
}
.ris-drawer-paper-title { font-size: 18px; font-weight: 700; color: #0f172a; }
.ris-drawer-paper-content { flex: 1; font-size: 13px; line-height: 1.8; color: #475569; }
.ris-drawer-paper-content p { margin-bottom: 12px; }
.ris-drawer-paper-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    padding-top: 16px; margin-top: 32px;
    display: flex; justify-content: space-between; font-size: 10px; color: rgba(148, 163, 184, 0.8);
}

.ris-drawer-sidebar {
    width: 280px; border-left: 1px solid rgba(226, 232, 240, 0.8);
    display: flex; flex-direction: column; background: rgba(248, 250, 252, 0.6);
}
.ris-drawer-sidebar-header {
    padding: 16px; border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: #fff;
}
.ris-drawer-sidebar-title {
    font-size: 11px; font-weight: 700; color: #475569;
    text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; gap: 6px;
}
.ris-drawer-sidebar-title::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: #4f46e5; display: inline-block;
}
.ris-drawer-sidebar-content {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 16px;
    font-size: 12px; line-height: 1.7; color: #475569;
}
.ris-drawer-sidebar-footer {
    padding: 12px 16px; border-top: 1px solid rgba(226, 232, 240, 0.8);
    background: #fff;
}
.ris-drawer-ask-btn {
    width: 100%; padding: 10px; background: #4f46e5; color: #fff;
    border: none; border-radius: 8px; font-size: 12px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer; transition: background 0.15s;
}
.ris-drawer-ask-btn:hover { background: #4338ca; }

/* ===== 抽屉：命中分块预�?===== */
.ris-drawer-original {
    flex: 1; overflow-y: auto; padding: 24px;
    background: rgba(241, 245, 249, 0.6);
    display: flex; justify-content: center; align-items: flex-start;
}
.ris-drawer-paper {
    width: 100%; max-width: 640px;
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: hidden;
}
.ris-drawer-paper-header { border-bottom: 1px solid rgba(79, 70, 229, 0.15); padding: 24px 24px 16px; }
.ris-drawer-paper-meta {
    font-size: 10px; color: #4f46e5; letter-spacing: 2px;
    font-weight: 700; text-transform: uppercase; margin-bottom: 4px;
}
.ris-drawer-paper-title { font-size: 18px; font-weight: 700; color: #0f172a; }
.ris-drawer-paper-content { padding: 0 24px 24px; }

/* 报告原文�?*/
.ris-original-text {
    padding: 16px 0;
    border-bottom: 2px solid rgba(79, 70, 229, 0.15);
    margin-bottom: 20px;
}
.ris-original-text-label {
    font-size: 11px; font-weight: 700; color: #4f46e5;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 12px;
}

.ris-chunk-list-header {
    padding: 16px 0 12px;
    font-size: 12px; color: #64748b;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    margin-bottom: 16px;
}
.ris-chunk-list-header strong { color: #4f46e5; }

.ris-chunk-block {
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}
.ris-chunk-block:last-child { border-bottom: none; }

/* 折叠式分�?*/
.ris-chunk-foldable .ris-chunk-meta {
    cursor: pointer; user-select: none;
    display: flex; align-items: center; gap: 8px;
    padding: 6px 8px; margin: -6px -8px; border-radius: 6px;
    transition: background 0.15s;
}
.ris-chunk-foldable .ris-chunk-meta:hover {
    background: rgba(79, 70, 229, 0.04);
}
.ris-chunk-toggle {
    font-size: 10px; color: #64748b;
    flex-shrink: 0; width: 14px; text-align: center;
    transition: transform 0.15s;
}
.ris-chunk-page {
    display: inline-block; padding: 2px 8px;
    font-size: 11px; font-weight: 700; color: #4f46e5;
    background: rgba(79, 70, 229, 0.08); border-radius: 4px;
    flex-shrink: 0;
}
.ris-chunk-section {
    display: inline-block; padding: 2px 8px;
    font-size: 11px; color: #475569;
    background: rgba(241, 245, 249, 0.8); border-radius: 4px;
    flex-shrink: 0;
}
.ris-chunk-score {
    margin-left: auto; font-size: 11px; color: #64748b;
    flex-shrink: 0;
}
.ris-chunk-preview {
    display: block; width: 100%;
    font-size: 12px; color: #64748b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-top: 4px;
}
.ris-chunk-body {
    padding-top: 10px;
}
.ris-chunk-text {
    font-size: 13px; line-height: 1.8; color: #475569;
    word-break: break-word;
}
.ris-chunk-text.ris-chunk-md { white-space: normal; }

/* 原文 / AI 提炼 视图切换（两层内容分离） */
.ris-chunk-ai-toggle {
    display: inline-flex; gap: 0; margin: 0 0 10px;
    border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden;
    background: #fff;
}
.ris-chunk-view-btn {
    padding: 3px 12px; font-size: 12px; color: #64748b;
    cursor: pointer; user-select: none; background: #f8fafc;
    border-right: 1px solid #e2e8f0; transition: all 0.15s;
}
.ris-chunk-view-btn:last-child { border-right: none; }
.ris-chunk-view-btn:hover { color: #4f46e5; }
.ris-chunk-view-btn.active {
    background: #4f46e5; color: #fff; font-weight: 600;
}
.ris-chunk-view-ai { border-top: 1px dashed #e2e8f0; margin-top: 2px; }

/* Markdown 渲染样式 */
.ris-chunk-md p { margin-bottom: 10px; }
.ris-chunk-md h2, .ris-chunk-md h3, .ris-chunk-md h4 {
    font-weight: 700; color: #0f172a; margin: 14px 0 8px;
}
.ris-chunk-md h2 { font-size: 16px; }
.ris-chunk-md h3 { font-size: 14px; }
.ris-chunk-md h4 { font-size: 13px; }
.ris-chunk-md strong { font-weight: 700; }
.ris-chunk-md em { font-style: italic; }
.ris-chunk-md ul, .ris-chunk-md ol { margin: 8px 0; padding-left: 20px; }
.ris-chunk-md li { margin-bottom: 4px; }
.ris-chunk-md code {
    font-family: 'SF Mono', 'Consolas', monospace;
    background: rgba(241, 245, 249, 0.8); padding: 2px 6px;
    border-radius: 3px; font-size: 12px; color: #e11d48;
}
.ris-chunk-md pre {
    background: #1e293b; color: #e2e8f0; padding: 12px 16px;
    border-radius: 8px; font-size: 12px; line-height: 1.6;
    overflow-x: auto; margin: 10px 0;
}
.ris-chunk-md pre code {
    background: none; padding: 0; color: inherit; font-size: inherit;
}
.ris-chunk-md blockquote {
    border-left: 3px solid #4f46e5; padding: 6px 14px;
    margin: 10px 0; background: rgba(79, 70, 229, 0.04);
    border-radius: 0 6px 6px 0; color: #475569;
}
.ris-chunk-md hr {
    border: none; border-top: 1px solid rgba(226, 232, 240, 0.6);
    margin: 14px 0;
}
/* 阅览原文高亮：左侧回答因 @@ → <mark> 后再被 highlightKeywords 补包一次，
   形成双层 rgba(250,204,21,0.35) 叠加（视觉 ≈0.58 alpha）。原文无 @@ 仅单层，
   这里直接用等效深度，使阅览观感与左侧一致。 */
.ris-chunk-text mark.ris-highlight {
    background: rgba(250, 204, 21, 0.58); color: inherit;
    padding: 1px 3px; border-radius: 3px; font-weight: 600;
}
.ris-chunk-empty {
    padding: 40px 0; text-align: center;
    font-size: 13px; color: #64748b;
}
.ris-chunk-empty--ai {
    padding: 48px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #92400e;
    background: rgba(245, 158, 11, 0.04);
    border-radius: 8px;
    margin-top: 8px;
}
.ris-chunk-empty--ai svg {
    opacity: 0.5;
}
.ris-chunk-empty--ai p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    max-width: 320px;
}

/* ===== Toast ===== */
.ris-toast {
    position: fixed; top: 72px; left: 50%; transform: translateX(-50%) translateY(-20px);
    z-index: 50; opacity: 0; transition: all 0.3s;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.95); color: #fff;
    font-size: 12px; padding: 10px 16px; border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: flex; align-items: center; gap: 8px;
}
.ris-toast.show {
    opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ===== AI 回答中的表格 ===== */
.ris-table-wrap {
    overflow-x: auto; margin: 16px 0; border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); background: #fff;
}
.ris-matrix-table, .matrix-table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: auto; }
.ris-matrix-table thead th, .matrix-table thead th {
    background: rgba(241, 245, 249, 0.6);
    padding: 10px 14px; text-align: left;
    font-size: 12px; font-weight: 700; color: #475569;
    border-bottom: 2px solid rgba(226, 232, 240, 0.9);
}
.ris-matrix-table th, .matrix-table th {
    background: rgba(241, 245, 249, 0.6);
    padding: 10px 14px; text-align: left;
    font-size: 12px; font-weight: 700; color: #475569;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.ris-matrix-table td, .matrix-table td {
    padding: 10px 14px; border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    color: #475569; vertical-align: top;
    word-break: break-all; overflow-wrap: break-word; white-space: normal;
}
.ris-matrix-table th, .matrix-table th {
    word-break: break-all; overflow-wrap: break-word; white-space: normal;
}
/* 隔行变色 */
.ris-matrix-table tbody tr:nth-child(even) td, .matrix-table tbody tr:nth-child(even) td {
    background: rgba(248, 250, 252, 0.5);
}
.ris-matrix-table tr:hover td, .matrix-table tr:hover td {
    background: rgba(237, 240, 246, 0.6) !important;
}
/* 表格中引用标签字号稍微小一�?*/
.ris-matrix-table .citation-tag, .matrix-table .citation-tag { font-size: 10px; }

/* ===== AI 回答中的图表 ===== */
.ris-chart-wrap {
    margin: 16px 0; padding: 12px; border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); background: #fff;
}
.ris-chart-container { width: 100%; height: 280px; position: relative; }
.ris-chart-error { color: #e11d48; font-size: 12px; padding: 16px; text-align: center; }

/* 引用标签 */
.citation-tag {
    display: inline-flex; align-items: center;
    padding: 1px 6px; font-weight: 700; font-size: 11px;
    border-radius: 4px; cursor: pointer; transition: all 0.15s;
    background: rgba(79, 70, 229, 0.08); color: #4f46e5;
}
.citation-tag:hover { background: rgba(79, 70, 229, 0.16); }
/* 引用标号后面的「下载原报告」小按钮（客户要求：报告来源后边能直接下载原报告） */
.citation-tag .citation-dl {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: 3px; width: 13px; height: 13px; border-radius: 3px;
    font-size: 10px; font-weight: 700; line-height: 1;
    color: #4f46e5; text-decoration: none; opacity: 0.75;
    background: rgba(79, 70, 229, 0.10); transition: all 0.15s;
}
.citation-tag .citation-dl:hover {
    opacity: 1; background: #4f46e5; color: #fff;
}
/* 联网引用标号 [wN]：与知识库标号保持统一背景色（样式继承 .citation-tag�?*/
.citation-tag--web { background: rgba(79, 70, 229, 0.08); color: #4f46e5; }
.citation-tag--web:hover { background: rgba(79, 70, 229, 0.16); }
/* 联网卡片引用高亮（对�?.report-card-glow.active-link，颜色与知识库统一为紫色） */
.ris-web-card.active-link {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 12px 20px -5px rgba(99, 102, 241, 0.12), 0 4px 8px -2px rgba(6, 182, 212, 0.08);
}


/* 报告引用角标（卡片右上） */
.ris-report-citation {
    background: rgba(79, 70, 229, 0.08); color: #4f46e5;
}

/* 加载动画 */
.ris-thinking {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; color: rgba(148, 163, 184, 0.8);
    font-size: 13px;
}
.ris-thinking-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4f46e5; animation: ris-bounce 1.4s infinite;
}
.ris-thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.ris-thinking-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes ris-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* 响应�?*/
@media (max-width: 1200px) {
html:not([data-fit]) .ris-drawer { width: 80vw; }
html:not([data-fit]) .ris-drawer-sidebar { width: 240px; }
}
/* ≤1024px：历史对话侧边栏收成抽屉，由标题栏按钮唤起 */
@media (max-width: 1024px) {
html:not([data-fit]) .ris-sidebar {
        position: fixed; left: 0; top: 0; bottom: 0;
        width: 261px; max-width: 261px; height: 100%;
        border-radius: 0 12px 12px 0; z-index: 70;
        transform: translateX(-102%);
        transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    }
html:not([data-fit]) .ris-sidebar.is-mobile-open { transform: translateX(0); }
html:not([data-fit]) .ris-mobile-history-btn { display: inline-flex; }
}
@media (max-width: 768px) {
html:not([data-fit]) .ris-main { gap: 0; padding: 0; }
html:not([data-fit]) .ris-workarea { flex-direction: column; padding: 8px; }
html:not([data-fit]) .ris-left-panel { width: 100% !important; height: auto; flex: 1 1 58%; min-height: 0; border-radius: 16px 16px 0 0; }
html:not([data-fit]) .ris-right-panel { width: 100% !important; height: auto; flex: 1 1 42%; min-height: 0; border-radius: 0 0 16px 16px; }
html:not([data-fit]) .ris-resize-handler { display: none; }
html:not([data-fit]) .ris-input-area { padding: 12px 12px 10px; }
html:not([data-fit]) .ris-input-form { flex-wrap: wrap; }
html:not([data-fit]) .ris-input-wrap { order: -1; flex: 1 1 100%; }
html:not([data-fit]) .ris-btn-submit { min-width: 84px; }
html:not([data-fit]) .ris-input-footer { flex-direction: column; align-items: flex-start; gap: 4px; }
html:not([data-fit]) .ris-input-footer-right { justify-content: flex-start; }
html:not([data-fit]) .ris-drawer { width: 100vw; }
html:not([data-fit]) .ris-drawer-body { flex-direction: column; }
html:not([data-fit]) .ris-drawer-sidebar { width: 100%; border-left: none; border-top: 1px solid rgba(226, 232, 240, 0.8); }
}

/* ===== 全屏高度链（确保 main 撑满视口�?===== */
body:has(.ris-main) .app-layout { height: var(--fit-vh, 100vh); display: flex; flex-direction: column; }
body:has(.ris-main) .main-area { height: 100%; flex: 1; display: flex; flex-direction: column; padding: 0 !important; background: transparent !important; overflow: hidden; }
body:has(.ris-main) .page-content { height: 100%; flex: 1; display: flex; flex-direction: column; padding: 0 !important; }

/* ===== 顶部版本标签 ===== */
.ris-version {
    font-size: 10px; font-weight: 600; color: #4f46e5;
    background: rgba(79, 70, 229, 0.08); border: 1px solid rgba(79, 70, 229, 0.12);
    padding: 1px 6px; border-radius: 999px; margin-left: 8px;
}

/* ===== 欢迎卡片：步骤提�?===== */
.ris-tip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
.ris-tip-card { padding: 12px; border-radius: 12px; border: 1px solid rgba(226, 232, 240, 0.5); background: rgba(255,255,255,0.6); }
.ris-tip-card--indigo { background: rgba(79, 70, 229, 0.05); border-color: rgba(79, 70, 229, 0.12); }
.ris-tip-card--cyan { background: rgba(6, 182, 212, 0.05); border-color: rgba(6, 182, 212, 0.12); }
.ris-tip-title { font-size: 12px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.ris-tip-card--indigo .ris-tip-title { color: #4f46e5; }
.ris-tip-card--cyan .ris-tip-title { color: #0e7490; }
.ris-tip-desc { font-size: 11px; color: rgba(100, 116, 139, 0.85); line-height: 1.5; }

/* 底部说明 */
.ris-note {
    font-size: 11px; color: rgba(148, 163, 184, 0.9);
    border-top: 1px solid rgba(226, 232, 240, 0.8); padding-top: 12px;
    display: flex; align-items: center; gap: 6px;
}
.ris-note svg { color: #4f46e5; flex-shrink: 0; }

/* ===== 分类筛选药�?===== */
.ris-category-row { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding-top: 8px; }
.ris-category-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    background: rgba(248, 250, 252, 0.5);
    flex-shrink: 0;  /* 防止�?flex 压缩 */
}
.category-pill {
    padding: 6px 14px; background: rgba(241, 245, 249, 0.9); color: #475569;
    font-size: 13px; font-weight: 600; border: 1px solid rgba(226, 232, 240, 0.8); border-radius: 20px;
    cursor: pointer; transition: all 0.2s; flex-shrink: 0; white-space: nowrap;
}
.category-pill:hover { background: #e2e8f0; color: #334155; border-color: #cbd5e1; }
.category-pill.active { background: #4f46e5; color: #fff; border-color: #4f46e5; }

/* ===== 回答中的列表与表格容�?===== */
.ris-list { list-style: disc; padding-left: 20px; margin: 8px 0; }
.ris-list li { margin: 4px 0; }
.ris-bubble-ai ol.ris-list { list-style: decimal; }
.ris-bubble-ai h3, .ris-bubble-ai h4, .ris-bubble-ai h5 {
    margin: 14px 0 6px; font-weight: 700; color: #1e293b; line-height: 1.45;
}
.ris-bubble-ai h3 { font-size: 16px; }
.ris-bubble-ai h4 { font-size: 15px; }
.ris-bubble-ai h5 { font-size: 14px; }
.ris-bubble-ai code {
    background: rgba(241, 245, 249, 0.95); border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 4px; padding: 1px 5px; font-size: 12.5px; color: #b45309;
    font-family: Consolas, Menlo, monospace;
}
.ris-table-wrap {
    overflow-x: auto; margin: 16px 0; border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); background: #fff;
}

/* ===== 抽屉：AI 摘要卡片 ===== */
.ris-drawer-summary-card {
    padding: 10px; border-radius: 8px; background: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.12);
}
.ris-drawer-summary-card--muted { background: rgba(241, 245, 249, 0.8); border-color: rgba(226, 232, 240, 0.6); }
.ris-drawer-summary-title { font-size: 11px; font-weight: 700; color: #312e81; margin-bottom: 4px; }
.ris-drawer-summary-card--muted .ris-drawer-summary-title { color: #475569; }
.ris-drawer-summary-card p { font-size: 12px; color: #475569; line-height: 1.5; }

/* ===== Agent 式执行步骤面�?===== */
.ris-agent-steps {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: rgba(248, 250, 252, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 12px;
    display: flex; flex-direction: column; gap: 8px;
}
.ris-step {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; line-height: 1.5; color: #64748b;
}
.ris-step .ris-step-text { flex: 1; min-width: 0; }
.ris-step .ris-step-cmd {
    flex: 1; min-width: 0;
    font-size: 12px; color: #475569; line-height: 1.5;
    white-space: normal; word-break: break-all;
}
.ris-step-badge {
    flex-shrink: 0;
    font-size: 10px; font-weight: 700; color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 6px; padding: 2px 8px;
}
/* 进行中：旋转小圈 */
.ris-step-spinner {
    width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
    border: 2px solid rgba(99, 102, 241, 0.25);
    border-top-color: #4f46e5;
    animation: ris-step-spin 0.7s linear infinite;
}
@keyframes ris-step-spin { to { transform: rotate(360deg); } }
/* 已完成：绿色对勾 */
.ris-step.done .ris-step-spinner {
    border: none; animation: none;
    position: relative;
    background: #10b981;
}
.ris-step.done .ris-step-spinner::after {
    content: ''; position: absolute;
    left: 4px; top: 1px; width: 4px; height: 8px;
    border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.ris-step.done .ris-step-text,
.ris-step.done .ris-step-cmd { color: #64748b; }

/* ===== 流式答案 ===== */
.ris-answer-stream { font-size: 13px; line-height: 1.7; color: #475569; }

/* ===== 生成内容导出为 Word ===== */
.ris-answer-actions {
    display: flex; align-items: center; gap: 8px;
    margin-top: 10px; padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}
.ris-export-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; font-size: 12px; line-height: 1.4;
    color: #475569; background: #f8fafc;
    border: 1px solid #e2e8f0; border-radius: 6px;
    cursor: pointer; transition: all .15s;
}
.ris-export-btn:hover { color: #4f46e5; border-color: #c7d2fe; background: #eef2ff; }
.ris-export-btn:disabled { opacity: .6; cursor: default; }
.ris-export-state { font-size: 11px; color: #94a3b8; }
/* 生成中：按钮旁的状态（带脉冲点，替代弹窗） */
.ris-export-btn.ris-export-busy { opacity: .75; cursor: progress; }
.ris-export-state::before { content: ''; }
.ris-export-btn.ris-export-busy + .ris-export-state::before {
    content: '';
    display: inline-block; width: 7px; height: 7px; margin-right: 5px;
    border-radius: 50%; background: #4f46e5; vertical-align: middle;
    animation: ris-export-pulse 1s ease-in-out infinite;
}
@keyframes ris-export-pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

/* ===== 报告生成弹窗（边生成边渲染）===== */
.ris-docmask {
    position: fixed; inset: 0; z-index: 4000;
    background: rgba(15, 23, 42, .45);
    display: flex; align-items: center; justify-content: center;
}
.ris-docmodal {
    width: min(880px, 92vw); height: min(86vh, 900px);
    background: #f1f5f9; border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
}
.ris-docmodal-head {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; background: #fff; border-bottom: 1px solid #e2e8f0;
}
.ris-docmodal-title { font-size: 14px; font-weight: 600; color: #1e293b; }
.ris-docmodal-status { font-size: 12px; color: #64748b; margin-left: auto; }
.ris-docmodal-close {
    border: none; background: transparent; cursor: pointer;
    font-size: 14px; color: #94a3b8; padding: 4px 6px;
}
.ris-docmodal-close:hover { color: #ef4444; }
.ris-docmodal-body { flex: 1; overflow: auto; padding: 20px; }
/* 生成中的进度区（对齐 /AIReport 的观感：转圈 + 标题 + 说明 + 进度条） */
.ris-docmodal-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; min-height: 320px; color: #475569;
}
.ris-docmodal-spinner {
    width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid #e2e8f0; border-top-color: #4f46e5;
    animation: ris-docspin .9s linear infinite;
}
@keyframes ris-docspin { to { transform: rotate(360deg); } }
.ris-docmodal-ltitle { font-size: 14px; font-weight: 600; color: #1e293b; }
.ris-docmodal-ldesc { font-size: 12px; color: #94a3b8; }
.ris-docmodal-bar {
    width: min(360px, 70%); height: 6px; border-radius: 999px;
    background: #e2e8f0; overflow: hidden; margin-top: 4px;
}
.ris-docmodal-bar > span {
    display: block; width: 0; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    transition: width .4s ease;
}
.ris-docmodal-paper {
    background: #fff; border-radius: 8px; padding: 44px 56px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .08);
    font-family: "方正仿宋简体", "仿宋", "FangSong", "宋体", serif;
    font-size: 16px; line-height: 1.9; color: #111827; min-height: 100%;
}
/* 纸面版式与下载的 docx 保持一致：大标题小标宋居中 / 日期楷体右对齐 / 标题黑体·楷体加粗 / 正文不加粗 */
.ris-docmodal-doctitle {
    font-family: "方正小标宋简体", "宋体", "SimSun", serif;
    font-size: 22px; font-weight: 600; text-align: center;
    margin: 0 0 6px; text-indent: 0; line-height: 1.6;
}
.ris-docmodal-docdate {
    font-family: "方正楷体简体", "楷体", "KaiTi", serif;
    font-size: 15px; text-align: right; color: #374151;
    margin: 0 0 20px; text-indent: 0;
}
.ris-docmodal-ph { color: #cbd5e1; font-size: 16px; font-weight: 400; }
.ris-docmodal-paper h3 {
    font-family: "方正黑体简体", "黑体", "SimHei", sans-serif;
    font-size: 16px; font-weight: 700; margin: 18px 0 8px; text-indent: 0;
}
.ris-docmodal-paper h4 {
    font-family: "方正楷体简体", "楷体", "KaiTi", serif;
    font-size: 16px; font-weight: 700; margin: 12px 0 6px; text-indent: 0;
}
.ris-docmodal-paper h5 { font-size: 16px; font-weight: 700; margin: 10px 0 6px; text-indent: 0; }
/* 正文里不出现加粗/斜体（与 Word 一致：只有标题类加粗） */
.ris-docmodal-paper strong, .ris-docmodal-paper b, .ris-docmodal-paper em, .ris-docmodal-paper i {
    font-weight: inherit; font-style: inherit;
}
.ris-docmodal-paper table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
.ris-docmodal-paper th, .ris-docmodal-paper td { border: 1px solid #94a3b8; padding: 6px 8px; }
.ris-docmodal-paper th { background: #dce6f1; font-family: "方正黑体简体", "黑体", sans-serif; }
.ris-docmodal-paper p { margin: 0 0 12px; text-indent: 2em; }
.ris-docmodal-paper ul, .ris-docmodal-paper ol { margin: 0 0 12px; padding-left: 2.2em; }
.ris-docmodal-empty { color: #94a3b8; font-size: 13px; text-align: center; padding: 80px 0; text-indent: 0; }
.ris-docmodal-cursor { display: inline-block; color: #4f46e5; animation: ris-cursor-blink 1s steps(2, start) infinite; }
.ris-docmodal-foot {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; background: #fff; border-top: 1px solid #e2e8f0;
}
.ris-docmodal-hint { font-size: 12px; color: #94a3b8; }
.ris-docmodal-dl {
    margin-left: auto; padding: 6px 18px; font-size: 13px;
    color: #fff; background: #4f46e5; border: none; border-radius: 6px; cursor: pointer;
}
.ris-docmodal-dl:disabled { background: #cbd5e1; cursor: default; }
.ris-docmodal-cancel {
    padding: 6px 14px; font-size: 13px; color: #475569;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; cursor: pointer;
}
/* docx-preview 渲染区（与 /AIReportList 一致的观感：灰底 + 白纸页） */
.ris-docmodal-paper--docx {
    padding: 0; background: #e9edf3; box-shadow: none;
    font-family: inherit; line-height: normal; min-height: 100%;
}
.ris-docx-holder { width: 100%; }
.ris-docx-holder .docx-wrapper {
    background: #e9edf3; padding: 16px 0; display: flex; flex-direction: column; align-items: center;
}
.ris-docx-holder .docx-wrapper > section.ris-docx {
    background: #fff; box-shadow: 0 2px 12px rgba(15, 23, 42, .16); margin: 0 0 16px;
}
.ris-docx-holder table { border-collapse: collapse; }

.ris-answer-stream p { margin: 0 0 12px; }
.ris-answer-stream p:last-child { margin-bottom: 0; }
.ris-stream-cursor {
    display: inline-block; width: 7px; height: 15px;
    background: #4f46e5; margin-left: 2px; vertical-align: text-bottom;
    animation: ris-cursor-blink 1s steps(2, start) infinite;
}
@keyframes ris-cursor-blink { to { opacity: 0; } }
.ris-answer-error {
    color: #e11d48; font-size: 12px; background: rgba(225, 29, 72, 0.06);
    border: 1px solid rgba(225, 29, 72, 0.15); border-radius: 8px; padding: 8px 12px;
}

/* ===== 多轮检索报告时间线（右侧报告历史） ===== */
.ris-round-group {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.ris-round-group--latest {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}
.ris-round-group--locating {
    animation: ris-round-flash 2.6s ease;
}
@keyframes ris-round-flash {
    0%, 100% { border-color: rgba(226, 232, 240, 0.6); box-shadow: none; }
    15% { border-color: rgba(99, 102, 241, 0.75); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18); }
    60% { border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08); }
}
.ris-round-header {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; cursor: pointer; user-select: none;
    background: rgba(241, 245, 249, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: background 0.15s;
}
.ris-round-header:hover { background: rgba(241, 245, 249, 0.9); }
.ris-round-badge {
    flex-shrink: 0;
    font-size: 11px; font-weight: 700; color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 6px; padding: 2px 8px; white-space: nowrap;
}
.ris-round-question {
    flex: 1; min-width: 0;
    font-size: 13px; font-weight: 600; color: #1e293b;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ris-round-meta {
    flex-shrink: 0;
    font-size: 12px; color: #94a3b8; white-space: nowrap;
}
.ris-round-locate {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 9px; border: none; border-radius: 6px;
    font-size: 12px; font-weight: 600; color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);
    cursor: pointer; transition: all 0.15s;
}
.ris-round-locate:hover { background: rgba(79, 70, 229, 0.16); }
.ris-round-toggle {
    flex-shrink: 0;
    font-size: 12px; color: #94a3b8; width: 13px; text-align: center;
}
.ris-round-body {
    padding: 12px 14px;
    display: flex; flex-direction: column; gap: 12px;
}
.ris-round-empty {
    padding: 18px 10px; text-align: center;
    font-size: 12px; color: #94a3b8;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 8px;
}

/* 左侧消息定位高亮 */
.ris-msg-flash {
    animation: ris-msg-flash 2.6s ease;
    border-radius: 14px;
}
@keyframes ris-msg-flash {
    0%, 100% { background: transparent; box-shadow: none; }
    15% { background: rgba(99, 102, 241, 0.10); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22); }
    60% { background: rgba(99, 102, 241, 0.06); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14); }
}

/* ===== 联网搜索来源卡片 ===== */
.ris-web-header {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: #475569; padding: 4px 2px 8px;
}
.ris-web-header b { color: #1e293b; }
/* 联网卡片样式与知识库报告卡片保持一致（背景 #fff、边框、内边距、圆角） */
.ris-web-card {
    position: relative;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s;
    margin-bottom: 10px;
}
/* 引用映射 hover 时的淡蓝紫发光背景（与知识库报告卡片 .report-card-glow 一致） */
.ris-web-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}
.ris-web-card.active-link::after {
    opacity: 0.2;
}
.ris-web-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.ris-web-badge-row { display: flex; align-items: center; justify-content: space-between; }
.ris-web-badge {
    padding: 2px 8px; border-radius: 4px;
    font-size: 12px; font-weight: 700;
    background: rgba(79, 70, 229, 0.06); color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.1);
}
.ris-web-idx {
    font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
    color: #4f46e5;
}
.ris-web-title {
    font-size: 14px; font-weight: 700; color: #1e293b; line-height: 1.5; margin: 0;
}
.ris-web-title a { color: inherit; text-decoration: none; }
.ris-web-title a:hover { color: #4f46e5; text-decoration: underline; }
.ris-web-abstract {
    font-size: 13px; color: #64748b; line-height: 1.6; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ris-web-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid rgba(226, 232, 240, 0.5); padding-top: 6px;
}
.ris-web-meta { font-size: 12px; color: #94a3b8; }
.ris-web-open {
    font-size: 12px; font-weight: 600; color: #4f46e5;
    text-decoration: none; padding: 3px 9px; border-radius: 6px;
    background: rgba(79, 70, 229, 0.06);
}
.ris-web-open:hover { background: rgba(79, 70, 229, 0.14); }

/* ===== 右侧面板顶部 Tab（知识库报告 / 联网来源�?=====
   参�?Monitor 数据面板时间筛选样式：浅灰容器 + 内部药丸，激活态白�?高亮�?阴影 */
.ris-panel-tabs {
    display: flex; align-items: center; gap: 4px;
    flex-shrink: 0;
    margin: 10px 12px 0;
    background: #f0f3f8;
    padding: 4px;
    border-radius: 10px;
}
.ris-panel-tab {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    font-size: 14px; font-weight: 500;
    padding: 9px 14px; border: none; border-radius: 8px;
    background: transparent; color: #5b6678;
    cursor: pointer; transition: all .15s; white-space: nowrap;
    font-family: inherit; user-select: none;
}
.ris-panel-tab:hover { color: #4f46e5; }
.ris-panel-tab.active {
    background: #fff; color: #4f46e5;
    box-shadow: 0 1px 4px rgba(20, 35, 70, .12);
    font-weight: 600;
}

/* ���������зֿ���� */
.ris-chunk-table { overflow-x:auto; margin:10px 0 14px; border:1px solid rgba(226,232,240,0.9); border-radius:8px; }
.ris-chunk-table table { width:100%; border-collapse:collapse; min-width:420px; font-size:12.5px; }
.ris-chunk-table th,.ris-chunk-table td { padding:6px 10px; border-right:1px solid rgba(226,232,240,0.7); border-bottom:1px solid rgba(226,232,240,0.6); text-align:left; vertical-align:top; line-height:1.7; }
.ris-chunk-table th:last-child,.ris-chunk-table td:last-child { border-right:none; }
.ris-chunk-table thead th { background:#f6f8fb; font-weight:700; color:#0f172a; }
.ris-chunk-table tbody tr:last-child td { border-bottom:none; }
/* �Ҳ�ͷ���������롸����Ŀ¼����ťͬ�� */
.ris-right-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ris-right-header-left { flex: 1 1 auto; min-width: 0; }
/* ===== Ԥ�����룺����ά����Ϣ ===== */
.ris-dims-loading { font-size: 12px; color: #94a3b8; }
.ris-dims-empty { font-size: 12px; color: #94a3b8; }
.ris-dims-meta { font-size: 12.5px; font-weight: 600; color: #334155; margin-bottom: 8px; line-height: 1.7; }
.ris-dims-group { margin: 7px 0; }
.ris-dims-label { display: inline-block; font-size: 11px; font-weight: 700; color: #94a3b8; width: 44px; flex-shrink: 0; vertical-align: top; }
.ris-dims-tags { display: inline-flex; flex-wrap: wrap; gap: 5px; max-width: calc(100% - 50px); }
.ris-dim-tag { display: inline-block; padding: 1px 7px; font-size: 11.5px; line-height: 1.7; border-radius: 5px; border: 1px solid transparent; word-break: break-all; }
.ris-dim-tag--person { background: rgba(79,70,229,.06); color: #4338ca; border-color: rgba(79,70,229,.25); }
.ris-dim-tag--org    { background: rgba(16,185,129,.06); color: #0f9d68; border-color: rgba(16,185,129,.28); }
.ris-dim-tag--loc    { background: rgba(245,158,11,.08); color: #b45309; border-color: rgba(245,158,11,.3); }
.ris-dim-tag--proj   { background: rgba(147,51,234,.06); color: #7e22ce; border-color: rgba(147,51,234,.25); }
.ris-dims-kd { margin-top: 8px; border-top: 1px dashed #e8ecf3; padding-top: 8px; }
.ris-dims-kd-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 2px 0; }
.ris-dims-kd-row span { color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.ris-dims-kd-row b { color: #1e293b; font-weight: 600; text-align: right; word-break: break-all; }

/* 智能研判 · 常用场景入口 */
.ris-preset-title{margin:22px auto 10px;font-size:12.5px;font-weight:600;color:#64748b;letter-spacing:.04em;text-align:center}
.ris-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(720px,86vw);margin:0 auto;text-align:left}
.ris-preset-card{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px 13px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;cursor:pointer;font-family:inherit;transition:border-color .2s,box-shadow .2s,transform .2s}
.ris-preset-card:hover{border-color:#0284c7;box-shadow:0 6px 18px rgba(2,132,199,.12);transform:translateY(-1px)}
.ris-preset-card:active{transform:translateY(0)}
.ris-preset-ico{font-size:17px;line-height:1.1}
.ris-preset-t{font-size:13px;font-weight:700;color:#0f172a}
.ris-preset-d{font-size:11.5px;line-height:1.5;color:#64748b}
@media(max-width:900px){
html:not([data-fit]) .ris-preset-grid {grid-template-columns:repeat(2,minmax(0,1fr));width:min(520px,92vw)}
}
