/* ═══════════════════════════════════════════🔞 警花沉沦 · FALLEN BADGE · 全局主题
   深夜警蓝 × 冷钢灰 × 危险红
   适配 rili平台 · SillyTavern 通用
   ═══════════════════════════════════════════ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🎨 全局变量定义
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {
  /* 主色系 —— 警蓝 */
  --fb-blue-deep: #0d2847;
  --fb-blue-main: #1a5276;
  --fb-blue-mid: #2e86c1;
  --fb-blue-light: #85c1e9;
  --fb-blue-pale: #d4e6f1;
  --fb-blue-ghost: #eaf2f8;
  --fb-blue-glow: rgba(46, 134, 193, 0.35);

  /* 危险红 —— 警告/高潮/危机 */
  --fb-red-deep: #922b21;
  --fb-red-main: #e74c3c;
  --fb-red-mid: #f1948a;
  --fb-red-glow: rgba(231, 76, 60, 0.35);

  /* 冷钢灰 —— 制服/金属/手铐 */
  --fb-steel-dark: #2c3e50;
  --fb-steel-main: #566573;
  --fb-steel-mid: #85929e;
  --fb-steel-light: #aeb6bf;
  --fb-steel-pale: #d5d8dc;
  --fb-steel-glow: rgba(133, 146, 158, 0.2);

  /* 警徽金—— 点缀/强调 */
  --fb-gold-main: #d4ac0d;
  --fb-gold-light: #f9e79f;
  --fb-gold-glow: rgba(212, 172, 13, 0.25);

  /* 肌肤色 —— 身体描写/敏感区 */
  --fb-skin: #e8beaf;
  --fb-skin-glow: rgba(232, 190, 175, 0.2);

  /* 文字色 */
  --fb-text-primary: #d5d8dc;
  --fb-text-secondary: #aeb6bf;
  --fb-text-muted: #7f8c8d;
  --fb-text-dim: #566573;
  --fb-text-on-dark: #eaecee;

  /* 背景色 */
  --fb-bg-page: #0b1622;
  --fb-bg-chat: #0e1a2b;
  --fb-bg-card: rgba(14, 26, 43, 0.92);
  --fb-bg-card-hover: rgba(18, 32, 52, 0.95);
  --fb-bg-input: rgba(11, 22, 34, 0.95);

  /* 边框与阴影 */
  --fb-border: rgba(46, 134, 193, 0.2);
  --fb-border-light: rgba(133, 193, 233, 0.1);
  --fb-shadow-blue: 0 4px 20px rgba(26, 82, 118, 0.2);
  --fb-shadow-red: 0 2px 12px rgba(231, 76, 60, 0.12);
  --fb-glow-blue: 0 0 15px rgba(46, 134, 193, 0.18);

  /* 圆角 */
  --fb-radius-sm: 8px;
  --fb-radius-md: 12px;
  --fb-radius-lg: 16px;
  --fb-radius-xl: 20px;

  /* 过渡 */
  --fb-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🌙 全局基础样式
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

body {
  background-color: var(--fb-bg-page) !important;
  color: var(--fb-text-on-dark) !important;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif !important;
  line-height: 1.85 !important;
  letter-spacing: 0.02em;
}

/* 全局滚动条 */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--fb-bg-page);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--fb-blue-main), var(--fb-blue-deep));
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--fb-blue-mid), var(--fb-blue-main));
}

/* 选中文字 */
::selection {
  background: rgba(46, 134, 193, 0.35);
  color: #fff;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   💬 聊天区域
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#chat {
  background-color: var(--fb-bg-chat) !important;
  padding: 20px !important;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🤖 AI输出消息气泡
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.mes[is_user="false"] .mes_block {
  background: linear-gradient(135deg,
    rgba(11, 22, 40, 0.94) 0%,
    rgba(16, 30, 52, 0.90) 50%,
    rgba(13, 25, 44, 0.94) 100%) !important;
  border: 1px solid var(--fb-border) !important;
  border-left: 3px solid var(--fb-blue-mid) !important;
  border-radius: var(--fb-radius-lg) !important;
  padding: 22px 26px !important;
  margin: 12px 4px !important;
  box-shadow: var(--fb-shadow-blue), inset 0 1px 0 rgba(133, 193, 233, 0.04) !important;
  transition: var(--fb-transition);position: relative;
  overflow: hidden;
}

.mes[is_user="false"] .mes_block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fb-blue-mid), transparent);
  opacity: 0.3;
}

.mes[is_user="false"] .mes_block:hover {
  border-color: var(--fb-blue-mid) !important;
  box-shadow: var(--fb-glow-blue), var(--fb-shadow-blue) !important;
}

/* AI消息文字 */
.mes[is_user="false"] .mes_text {
  color: var(--fb-text-primary) !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.mes[is_user="false"] .mes_text p {
  margin-bottom: 0.8em !important;
  text-indent: 2em;
}

/* 对话「」—— 用冷蓝色 */
.mes[is_user="false"] .mes_text em {
  color: var(--fb-blue-light) !important;
  font-style: normal !important;text-shadow: 0 0 8px rgba(133, 193, 233, 0.25);
}

/* 粗体 —— 用警徽金 */
.mes[is_user="false"] .mes_text strong {
  color: var(--fb-gold-main) !important;
  font-weight: 700 !important;
  text-shadow: 0 0 6px var(--fb-gold-glow);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   👤 玩家输入消息气泡
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.mes[is_user="true"] .mes_block {
  background: linear-gradient(135deg,
    rgba(44, 62, 80, 0.22) 0%,
    rgba(86, 101, 115, 0.14) 50%,
    rgba(44, 62, 80, 0.22) 100%) !important;
  border: 1px solid rgba(133, 146, 158, 0.3) !important;
  border-right: 3px solid var(--fb-steel-mid) !important;
  border-radius: var(--fb-radius-lg) !important;
  padding: 18px 24px !important;
  margin: 12px 4px !important;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.15), var(--fb-shadow-red) !important;
  transition: var(--fb-transition);position: relative;
}

.mes[is_user="true"] .mes_block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fb-steel-mid), transparent);
  opacity: 0.25;
}

.mes[is_user="true"] .mes_block:hover {
  border-color: rgba(133, 146, 158, 0.5) !important;
  box-shadow: 0 0 20px rgba(86, 101, 115, 0.15), var(--fb-shadow-red) !important;
}

/* 玩家消息文字 */
.mes[is_user="true"] .mes_text {
  color: var(--fb-steel-pale) !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ⌨️ 输入框
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#send_textarea,
#send_form textarea {
  background: linear-gradient(135deg,
    rgba(11, 22, 34, 0.96) 0%,
    rgba(14, 26, 43, 0.93) 100%) !important;
  border: 1.5px solid var(--fb-border) !important;
  border-radius: var(--fb-radius-md) !important;
  color: var(--fb-text-primary) !important;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  padding: 14px 18px !important;
  transition: var(--fb-transition);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4),0 2px 10px rgba(26, 82, 118, 0.08) !important;
}

#send_textarea:focus,
#send_form textarea:focus {
  border-color: var(--fb-blue-mid) !important;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(46, 134, 193, 0.18),
    0 0 40px rgba(46, 134, 193, 0.06) !important;
  outline: none !important;
}

#send_textarea::placeholder,
#send_form textarea::placeholder {
  color: var(--fb-text-dim) !important;
  font-style: italic;
}

/* 发送按钮 —— 危险红 */
#send_but,
.send_button {
  background: linear-gradient(135deg, var(--fb-red-main), var(--fb-red-deep)) !important;
  border: none !important;
  border-radius: var(--fb-radius-sm) !important;
  color: #fff !important;
  font-weight: 700 !important;
  transition: var(--fb-transition);
  box-shadow: 0 3px 12px var(--fb-red-glow) !important;
}

#send_but:hover,
.send_button:hover {
  background: linear-gradient(135deg, var(--fb-red-mid), var(--fb-red-main)) !important;
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.45) !important;
  transform: translateY(-1px);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   📂 折叠状态栏 <details> 美化
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.mes_text details {
  background: linear-gradient(135deg,
    rgba(11, 18, 30, 0.96) 0%,
    rgba(16, 24, 38, 0.93) 100%) !important;
  border: 1px solid var(--fb-border) !important;
  border-radius: var(--fb-radius-md) !important;
  margin: 14px 0 !important;
  overflow: hidden;transition: var(--fb-transition);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(133, 193, 233, 0.03) !important;
}

.mes_text details:hover {
  border-color: var(--fb-blue-mid) !important;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.35), var(--fb-glow-blue) !important;
}

/* 折叠标题 summary */
.mes_text details summary {
  background: linear-gradient(135deg,
    rgba(26, 82, 118, 0.18) 0%,
    rgba(46, 134, 193, 0.1) 50%,
    rgba(26, 82, 118, 0.18) 100%) !important;
  color: var(--fb-blue-light) !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  letter-spacing: 0.08em;
  padding: 12px 20px !important;
  cursor: pointer;
  user-select: none;
  transition: var(--fb-transition);
  border-bottom: 1px solid transparent;list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mes_text details summary::-webkit-details-marker {
  display: none;
}

.mes_text details summary::before {
  content: '▸';
  display: inline-block;
  font-size: 12px;
  color: var(--fb-blue-mid);
  transition: transform 0.3s ease;margin-right: 4px;
}

.mes_text details[open] summary::before {
  transform: rotate(90deg);
}

.mes_text details summary:hover {
  background: linear-gradient(135deg,
    rgba(26, 82, 118, 0.28) 0%,
    rgba(46, 134, 193, 0.18) 50%,
    rgba(26, 82, 118, 0.28) 100%) !important;
  color: #fff !important;
}

.mes_text details[open] summary {
  border-bottom: 1px solid var(--fb-border) !important;
  color: var(--fb-gold-main) !important;
}

/* 折叠内容区 */
.mes_text details > *:not(summary) {
  padding: 4px 10px !important;
}

.mes_text details blockquote {
  background: rgba(11, 18, 30, 0.55) !important;
  border: none !important;
  border-left: 2px solid var(--fb-blue-mid) !important;
  border-radius: 0 var(--fb-radius-sm) var(--fb-radius-sm) 0 !important;
  margin: 10px 14px 14px !important;
  padding: 16px 20px !important;
  color: var(--fb-text-primary) !important;
  font-size: 13.5px !important;
  line-height: 2!important;
}

/* 状态栏中的粗体标签 —— 警徽金 */
.mes_text details blockquote strong {
  color: var(--fb-gold-main) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-shadow: 0 0 4px var(--fb-gold-glow);
}

.mes_text details blockquote p {
  margin: 3px 0 !important;
  text-indent: 0 !important;
}

/* 状态栏分隔线 */
.mes_text details blockquote hr {
  border: none !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, var(--fb-blue-mid), transparent) !important;
  margin: 10px 0 !important;
  opacity: 0.35;
}

/* 分区标题 */
.mes_text details blockquote strong:first-child {
  display: block;
  text-align: center;
  color: var(--fb-blue-mid) !important;
  font-size: 12px !important;
  letter-spacing: 0.15em;
  margin: 8px 0 6px !important;
  text-shadow: 0 0 8px rgba(46, 134, 193, 0.25);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   📊 各状态栏个性化边框色
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 场景信息栏（第1个details）—— 冷蓝 */
.mes_text details:first-of-type {
  border-left: 3px solid var(--fb-blue-mid) !important;
}
.mes_text details:first-of-type summary {
  background: linear-gradient(135deg,
    rgba(46, 134, 193, 0.15) 0%,
    rgba(26, 82, 118, 0.1) 100%) !important;
}

/* 倒数第6：玩家档案 —— 钢灰 */
.mes_text details:nth-last-of-type(6) {
  border-left: 3px solid var(--fb-steel-mid) !important;
}
.mes_text details:nth-last-of-type(6) summary {
  background: linear-gradient(135deg,
    rgba(133, 146, 158, 0.12) 0%,
    rgba(86, 101, 115, 0.08) 100%) !important;
}

/* 倒数第5：互动目标（张津瑜）—— 危险红 */
.mes_text details:nth-last-of-type(5) {
  border-left: 3px solid var(--fb-red-main) !important;
}
.mes_text details:nth-last-of-type(5) summary {
  background: linear-gradient(135deg,
    rgba(231, 76, 60, 0.12) 0%,
    rgba(146, 43, 33, 0.08) 100%) !important;
}

/* 倒数第4：关系总览 —— 警蓝 */
.mes_text details:nth-last-of-type(4) {
  border-left: 3px solid var(--fb-blue-main) !important;
}

/* 倒数第3：新闻栏 —— 钢灰偏蓝 */
.mes_text details:nth-last-of-type(3) {
  border-left: 3px solid var(--fb-steel-light) !important;
}
.mes_text details:nth-last-of-type(3) summary {
  background: linear-gradient(135deg,
    rgba(174, 182, 191, 0.1) 0%,
    rgba(86, 101, 115, 0.06) 100%) !important;
}

/* 倒数第2：长期记忆 —— 警徽金 */
.mes_text details:nth-last-of-type(2) {
  border-left: 3px solid var(--fb-gold-main) !important;
}
.mes_text details:nth-last-of-type(2) summary {
  background: linear-gradient(135deg,
    rgba(212, 172, 13, 0.12) 0%,
    rgba(212, 172, 13, 0.05) 100%) !important;
}

/* 倒数第1：行动推荐 —— 危险红 */
.mes_text details:nth-last-of-type(1) {
  border-left: 3px solid var(--fb-red-main) !important;
}
.mes_text details:nth-last-of-type(1) summary {
  background: linear-gradient(135deg,
    rgba(231, 76, 60, 0.1) 0%,
    rgba(146, 43, 33, 0.06) 100%) !important;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   📝 正文叙事区域增强
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 分隔线 */
.mes_text hr {
  border: none !important;
  height: 1px !important;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--fb-blue-deep) 20%,
    var(--fb-blue-mid) 50%,
    var(--fb-blue-deep) 80%,
    transparent 100%) !important;
  margin: 20px 0 !important;
  opacity: 0.45;
}

/* 引用块 */
.mes_text blockquote:not(details blockquote) {
  background: linear-gradient(135deg,
    rgba(46, 134, 193, 0.07) 0%,
    rgba(212, 172, 13, 0.04) 100%) !important;
  border: 1px solid rgba(46, 134, 193, 0.18) !important;
  border-left: 3px solid var(--fb-blue-mid) !important;
  border-radius:0 var(--fb-radius-sm) var(--fb-radius-sm) 0 !important;
  padding: 12px 18px !important;
  margin: 12px 0 !important;
  color: var(--fb-blue-light) !important;
  font-size: 14px !important;
}

/* 代码块 */
.mes_text code {
  background: rgba(46, 134, 193, 0.12) !important;
  color: var(--fb-blue-mid) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-family: "Fira Code", "Consolas", monospace !important;
}

.mes_text pre {
  background: rgba(11, 18, 30, 0.92) !important;
  border: 1px solid var(--fb-border) !important;
  border-radius: var(--fb-radius-sm) !important;
  padding: 16px !important;
  overflow-x: auto;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🖼️ 头像美化
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.avatar img,
.mes .avatar img {
  border-radius: 50% !important;
  border: 2px solid var(--fb-blue-mid) !important;
  box-shadow: 0 0 12px rgba(46, 134, 193, 0.2) !important;
  transition: var(--fb-transition);
}

.avatar img:hover,
.mes .avatar img:hover {
  border-color: var(--fb-red-main) !important;
  box-shadow: 0 0 20px var(--fb-red-glow) !important;
  transform: scale(1.05);
}

/* 用户头像 —— 钢灰边框 */
.mes[is_user="true"] .avatar img {
  border-color: var(--fb-steel-mid) !important;
  box-shadow: 0 0 12px var(--fb-steel-glow) !important;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🎛️ 侧边栏 &顶栏
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#top-bar,
.top-bar,
header {
  background: linear-gradient(135deg,
    rgba(11, 22, 34, 0.97) 0%,
    rgba(16, 30, 52, 0.95) 100%) !important;
  border-bottom: 1px solid var(--fb-border) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.45) !important;
}

#left-nav-panel,
#right-nav-panel,
.drawer-content {
  background: linear-gradient(180deg,
    rgba(11, 22, 34, 0.98) 0%,
    rgba(14, 26, 43, 0.96) 100%) !important;
  border-color: var(--fb-border) !important;
}

.drawer-icon,
.nav-toggle {
  color: var(--fb-blue-light) !important;
  transition: var(--fb-transition);
}

.drawer-icon:hover,
.nav-toggle:hover {
  color: var(--fb-blue-mid) !important;
  text-shadow: 0 0 10px rgba(46, 134, 193, 0.35);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🔘 通用按钮
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.menu_button,
button:not(#send_but):not(.send_button) {
  background: rgba(14, 26, 43, 0.85) !important;
  border: 1px solid var(--fb-border) !important;
  border-radius: var(--fb-radius-sm) !important;
  color: var(--fb-blue-light) !important;
  transition: var(--fb-transition);
}

.menu_button:hover,
button:not(#send_but):not(.send_button):hover {
  background: rgba(46, 134, 193, 0.12) !important;
  border-color: var(--fb-blue-mid) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(46, 134, 193, 0.12) !important;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ✨ 动画效果
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@keyframes fbFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mes .mes_block {
  animation: fbFadeIn 0.5s ease-out;
}

@keyframes fbSlideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 2000px;
  }
}

.mes_text details[open] > *:not(summary) {
  animation: fbSlideDown 0.4s ease-out;
}

/* 危险红脉冲 —— 用于高风险提示 */
@keyframes fbRedPulse {
  0%, 100% {
    box-shadow: 0 0 8px var(--fb-red-glow);
  }
  50% {
    box-shadow: 0 0 22px rgba(231, 76, 60, 0.5);
  }
}

/* 警徽金呼吸 —— 用于重要信息 */
@keyframes fbGoldPulse {
  0%, 100% {
    box-shadow: 0 0 8px var(--fb-gold-glow);
  }
  50% {
    box-shadow: 0 0 18px rgba(212, 172, 13, 0.4);
  }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   📱 移动端响应式
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media screen and (max-width: 768px) {
  .mes[is_user="false"] .mes_block,
  .mes[is_user="true"] .mes_block {
    padding: 14px 16px !important;
    margin: 8px 2px !important;
    border-radius: var(--fb-radius-md) !important;
  }

  .mes[is_user="false"] .mes_text,
  .mes[is_user="true"] .mes_text {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }

  .mes_text details summary {
    font-size: 13px !important;
    padding: 10px 14px !important;
  }

  .mes_text details blockquote {
    margin: 8px 8px 10px !important;
    padding: 12px 14px !important;
    font-size: 12.5px !important;
    line-height: 1.9 !important;
  }

  #send_textarea,
  #send_form textarea {
    font-size: 14px !important;
    padding: 12px 14px !important;
  }
}

@media screen and (max-width: 480px) {
  .mes[is_user="false"] .mes_block,
  .mes[is_user="true"] .mes_block {
    padding: 12px 12px !important;
    border-radius: var(--fb-radius-sm) !important;
  }

  .mes_text details blockquote {
    margin: 6px 4px 8px !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🎀 装饰性细节
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 时间戳 */
.mes .mesIDDisplay,
.mes .timestamp {
  color: var(--fb-text-dim) !important;
  font-size: 11px !important;
  opacity: 0.55;
}

/* AI角色名 —— 危险红（张津瑜的名字用红色突出） */
.mes[is_user="false"] .ch_name,
.mes[is_user="false"] .name_text {
  color: var(--fb-red-main) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px var(--fb-red-glow);
}

/* 用户名 —— 冷钢灰 */
.mes[is_user="true"] .ch_name,
.mes[is_user="true"] .name_text {
  color: var(--fb-steel-light) !important;
  text-shadow: 0 0 8px var(--fb-steel-glow);
}

/* 底部工具栏 */
#form_sheld,
.form_sheld,
#send_form {
  background: linear-gradient(0deg,
    rgba(11, 22, 34, 0.98) 0%,
    rgba(11, 22, 34, 0.92) 80%,
    transparent 100%) !important;
  border-top: 1px solid var(--fb-border-light) !important;
  padding-top: 12px !important;
}

/* 消息操作按钮 */
.mes_buttons .mes_button,
.extraMesButtons .mes_button {
  color: var(--fb-text-dim) !important;
  opacity: 0.45;
  transition: var(--fb-transition);
}

.mes_buttons .mes_button:hover,
.extraMesButtons .mes_button:hover {
  color: var(--fb-blue-mid) !important;
  opacity: 1;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   🚨 本卡专属：进度条颜色覆盖
   用于后置词中的 ██░░ 文字进度条视觉辅助
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 表格美化（关系总览等） */
.mes_text table {
  border-collapse: collapse !important;
  width: 100% !important;
  margin: 10px 0 !important;font-size: 13px !important;
}

.mes_text table th {
  background: rgba(26, 82, 118, 0.25) !important;
  color: var(--fb-blue-light) !important;
  font-weight: 700 !important;
  padding: 8px 10px !important;
  border: 1px solid var(--fb-border) !important;
  text-align: left !important;
}

.mes_text table td {
  padding: 7px 10px !important;
  border: 1px solid rgba(46, 134, 193, 0.12) !important;
  color: var(--fb-text-secondary) !important;
}

.mes_text table tr:nth-child(even) {
  background: rgba(14, 26, 43, 0.4) !important;
}

.mes_text table tr:hover {
  background: rgba(46, 134, 193, 0.08) !important;
}