/* 侧栏顶部品牌位：只显示武创院横版院名组合 logo，不显示应用名称。
   零构建全局覆盖（只写类名 + !important，不依赖 data-v-*）。
   依赖 index.html 引入 /static/app/wxc-brand.css?v=3。
   2026-11-21 曹律师定：品牌用带研究院名称的武创院 logo，应用名称不要。
   18:49 微调：图缩小到 180x31，左缘与下方模块文字左缘对齐，右侧留白 64px。 */

/* 品牌位：作为 drawer-content 的第一个 flex item，不随会话列表滚动。
   whiiid-brand.png = 横版组合正稿（彩色圆徽 + 黑字中文 + 蓝字英文），
   源图 武创院_横版组合_彩色_透明.png 裁去透明留白后缩为 912x156（4x 高清），
   透明底；index.html 有 <meta name="color-scheme" content="light">，浅色侧栏可直接使用。
   侧栏固定 260px：显示宽 180px、高 31px（与源图 5.85:1 比例一致），
   左缘 16px 与下方模块内容对齐，右缘 196px → 右侧留白 64px。 */
.custome-drawer .drawer-content::before {
    content: '' !important;
    display: block !important;
    flex: 0 0 auto !important;
    width: 180px !important;
    height: 31px !important;
    margin: 14px 0 6px 16px !important;
    background-image: url('/static/app/whiiid-brand.png') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: contain !important;
}

/* 应用名称条（应用头像 + 「武小创法务」文字 + 切换应用按钮）整条不显示。
   单应用部署下该条无功能价值，且头像与顶部院徽重复。 */
.custome-drawer .current-application {
    display: none !important;
}

/* 兼容兜底：即便日后组件传入 logoUrl/title，也不显示任何文字标题。
   原有 main.css 已隐藏 .header-logo-container，此处只针对可能的文字节点。 */
.custome-drawer .header-title {
    display: none !important;
}

/* 深色主题：彩色正稿是「黑字中文 + 蓝字英文」，深色侧栏上黑字几乎不可见。
   换成同规格反白版（白字，深色底专用），源 武创院_横版组合_反白_透明.png
   按与彩色版一致的 bbox 裁切缩为 912x156，比例同为 5.85:1，切换无形变。
   实测（11-21 19:2x，登录态浏览器切深色）：彩色版黑字消失，反白版清晰。
   选择器不写 :root 前缀，兼容 theme-mode 挂在 html 或 container 两种情形。 */
[theme-mode='dark'] .custome-drawer .drawer-content::before {
    background-image: url('/static/app/whiiid-brand-reverse.png?v=1') !important;
}

/* ===== 深色主题：附件/文件卡片反白（2026-11-22） =====
   根因：DocFileCard.vue / MessageFileCard.vue 硬编码浅色
   （文件名 rgba(0,1,10,0.93)、卡片底 #fff / rgba(16,32,69,0.02)），
   深色下卡片底被主题变量压成 #2a2a2a，文字与底同色不可见。
   覆盖范围＝输入框附件缩略条 + 消息历史文件卡片 + 图片卡片 + 删除按钮 + 预览弹层。
   选择器不写 :root 前缀，兼容 theme-mode 挂在 html 或 container 两种情形。 */
[theme-mode='dark'] .doc-file-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}
[theme-mode='dark'] .doc-file-card.standard-file-card {
    background: rgba(255, 255, 255, 0.05) !important;
}
[theme-mode='dark'] .doc-filename {
    color: rgba(255, 255, 255, 0.9) !important;
}
[theme-mode='dark'] .doc-file-size {
    color: rgba(255, 255, 255, 0.5) !important;
}
[theme-mode='dark'] .doc-file-card.claw-mode {
    background: rgba(106, 69, 229, 0.20) !important;
    border-color: rgba(106, 69, 229, 0.45) !important;
}
[theme-mode='dark'] .claw-mode .doc-filename {
    color: #b7a3f2 !important;
}
[theme-mode='dark'] .image-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}
[theme-mode='dark'] .delete-btn {
    background: rgba(48, 48, 50, 0.95) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}
[theme-mode='dark'] .preview-popup {
    background: #2a2a2c !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}
[theme-mode='dark'] .msg-file-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}
[theme-mode='dark'] .msg-file-card.clickable:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
[theme-mode='dark'] .msg-file-name {
    color: rgba(255, 255, 255, 0.9) !important;
}
[theme-mode='dark'] .msg-file-size {
    color: rgba(255, 255, 255, 0.5) !important;
}
