/* ═══ B平台加载动画适配（自动注入）═══ */
.flex.items-center.justify-center.size-6 { opacity: 1 !important; }
.flex.items-center.justify-center.size-6 > .flex.gap-2 { display: none !important; }
.is-assistant.w-fit { width: 100% !important; }
.is-assistant > .border.border-muted:has(.flex.items-center.justify-center.size-6) {
  width: 100% !important; background: transparent !important;
  border: none !important; padding: 0 !important;
}
.is-assistant .space-y-3:has(.flex.items-center.justify-center.size-6) {
  display: flex; justify-content: center; width: 100%;
}
/* ═══ B平台表格修正（自动注入）═══ */
.rili-markdown-renderer table { display:table!important; table-layout:auto!important; width:100%!important; border-collapse:collapse!important; }
.rili-markdown-renderer table caption { display:table-caption!important; caption-side:top!important; text-align:center!important; padding:8px!important; }
.rili-markdown-renderer thead { display:table-header-group!important; }
.rili-markdown-renderer tbody { display:table-row-group!important; }
.rili-markdown-renderer tr { display:table-row!important; }
.rili-markdown-renderer th, .rili-markdown-renderer td { display:table-cell!important; }
/* ═══ B平台按钮组保护（自动注入 — 防止按钮消失）═══
   原理：B平台消息操作按钮结构为：
   .flex.items-center.gap-1.ml-auto (hover显隐包装)
     └── .bg-muted.rounded.flex.p-0.5 (按钮组容器)
           └── button.rounded-full.size-7 (单个按钮)
   以下规则使用高specificity + !important确保按钮
   不被任何转换后/透传的CSS规则意外隐藏
   ═══════════════════════════════════════════════ */
/* 按钮组容器保护 */
.w-full.h-full.flex.group .bg-muted.rounded.flex.p-0\.5,
.is-user .bg-muted.rounded.flex.p-0\.5,
.is-assistant .bg-muted.rounded.flex.p-0\.5 {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  position: relative !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  pointer-events: auto !important;
  clip: auto !important;
  clip-path: none !important;
}
/* 单个按钮保护 */
.w-full.h-full.flex.group .bg-muted.rounded.flex.p-0\.5 > button,
.is-user .bg-muted.rounded.flex.p-0\.5 > button,
.is-assistant .bg-muted.rounded.flex.p-0\.5 > button {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  clip: auto !important;
  clip-path: none !important;
}
/* hover显隐包装层保护 — 仅保留B平台原生的opacity过渡 */
.flex.items-center.gap-1.ml-auto.md\:opacity-0.group-hover\:opacity-100 {
  visibility: visible !important;
  display: flex !important;
  pointer-events: auto !important;
  overflow: visible !important;
}
/* 操作行保护 */
.flex.w-full.items-center.justify-between.gap-2.px-2 {
  display: flex !important;
  visibility: visible !important;
  overflow: visible !important;
}
/* ═══ B平台顶部栏适配说明（自动注入）═══
   A: div.sticky > div.flex.justify-between
      ├── 左侧空区
      ├── #ai-model-selector (居中)
      └── 右侧工具(设置按钮等)
   B: <header.flex.justify-between>
      ├── #nav-left (侧边栏开关)
      ├── #nav-middle (可能为空)
      └── #nav-right (通知/主题/语言)
   B平台模型按钮不在header内，选择器:
   button:has(> .flex-1.truncate.text-left)
   ═══════════════════════════════════════ */
header.flex.justify-between { position: relative; overflow: visible; }
/* ============ 通用容器 ============ */
.gal {
  display: block;
  background: rgba(255, 245, 248, 0.88);
  border: 2px solid #ffb6c1;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #5c3a41;
  backdrop-filter: blur(5px);
}
.gal details {
  background: #fff;
  border: 1px solid #ffe4e1;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.gal summary {
  background: #fff0f5;
  padding: 8px 10px;
  font-weight: bold;
  color: #d1496a;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #ffe4e1;
  transition: background 0.2s;
}
.gal details[open] summary {
  border-bottom: 1px dashed #ffb6c1;
}
.gal summary:hover {
  background: #ffe8ef;
}
.gal .sub {
  background: #fffafa;
  color: #ff758c;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border-left: 3px solid #ffb6c1;
  border-bottom: 1px solid #fff5f7;
  margin-top: 4px;
}
.gal c {
  display: flex;
  padding: 6px 10px;
  border-bottom: 1px solid #fff5f7;
  gap: 10px;
}
.gal c:last-child {
  border-bottom: none;
}
.gal l {
  flex: 0 0 76px;
  color: #e77c8e;
  font-size: 12px;
  font-weight: bold;
  background: #fff0f5;
  padding: 3px 6px;
  border-radius: 4px;
  text-align: center;
  height: fit-content;
}
.gal v {
  flex: 1;
  color: #5c3a41;
}
.gal c[t="nsfw"] {
  background: rgba(255, 182, 193, 0.15);
}
.gal c[t="nsfw"] l {
  background: #ffb6c1;
  color: #fff;
}
.gal c[hl="1"] {
  background: #fff5f7;
  border-left: 3px solid #ff7eb3;
}
.gal c[hl="1"] l {
  background: transparent;
  color: #ff7eb3;
  text-align: left;
}
.gal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.gal th {
  background: #fff0f5;
  color: #d1496a;
  text-align: left;
  padding: 6px 10px;
  font-weight: bold;
  border-bottom: 1px solid #ffe4e1;
}
.gal td {
  padding: 6px 10px;
  border-bottom: 1px solid #fff5f7;
}
.gal tr:last-child td {
  border-bottom: none;
}
/* ============ 手机模块 ============ */
.gal .ph {
  display: block;
  max-width: 320px;
  margin: 10px auto;
  background: #ededed;
  border: 6px solid #2b2b33;
  border-radius: 28px;
  overflow: hidden;
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(214, 120, 145, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.gal .ph .sb {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: #2b2b33;
  color: #f2f2f2;
  font-size: 10px;
  padding: 5px 14px;
  position: relative;
  letter-spacing: 0.3px;
}
.gal .ph .sb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 13px;
  background: #14141a;
  border-radius: 0 0 11px 11px;
}
.gal .ph .sb i {
  font-style: normal;
}
.gal .ph .ap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f7f7f7;
  border-bottom: 1px solid #dcdcdc;
  padding: 9px 12px;
  font-weight: bold;
  color: #303030;
  font-size: 13px;
}
.gal .ph .ap .n {
  margin-left: auto;
  background: #fa5151;
  color: #fff;
  font-size: 10px;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  border-radius: 9px;
  padding: 0 5px;
  font-weight: bold;
}
.gal .ph .ch {
  display: block;
  background: #ededed;
  padding: 12px 10px 8px;
}
.gal .ph .m {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 12px;
}
.gal .ph .m::before {
  flex: 0 0 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 6px;
  font-size: 16px;
}
.gal .ph .m[data-s="her"]::before {
  content: '🌸';
  background: #ffd9e2;
}
.gal .ph .m[data-s="me"] {
  flex-direction: row-reverse;
}
.gal .ph .m[data-s="me"]::before {
  content: '🙂';
  background: #cfe9d4;
}
.gal .ph .bb {
  position: relative;
  max-width: 72%;
  background: #fff;
  padding: 8px 11px;
  border-radius: 8px;
  color: #262626;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
  word-break: break-word;
  animation: phIn 0.35s ease-out;
}
.gal .ph .bb::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -4px;
  width: 9px;
  height: 9px;
  background: inherit;
  transform: rotate(45deg);
}
.gal .ph .m[data-s="me"] .bb {
  background: #95ec69;
}
.gal .ph .m[data-s="me"] .bb::before {
  left: auto;
  right: -4px;
}
.gal .ph .bb[data-p="img"] {
  background: #fafafa;
  color: #8a8a8a;
  font-size: 12px;
  font-style: italic;
  border: 1px dashed #cdcdcd;
}
.gal .ph .bb[data-p="img"]::after {
  content: '🖼 图片';
  display: block;
  font-size: 10px;
  color: #b5b5b5;
  font-style: normal;
  margin-top: 3px;
}
.gal .ph .tm {
  display: block;
  font-size: 10px;
  color: #b3b3b3;
  margin-top: 4px;
  text-align: right;
}
.gal .ph .m[data-s="me"] .tm {
  color: #5d8a48;
}
.gal .ph .ty {
  display: block;
  text-align: center;
  font-size: 10px;
  color: #9a9a9a;
  font-style: italic;
  padding-bottom: 2px;
}
@keyframes phIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.gal .ph .mo {
  display: block;
  background: #fff;
  padding: 10px 12px;
  border-top: 8px solid #e3e3e3;
}
.gal .ph .mh {
  display: block;
  font-weight: bold;
  color: #576b95;
  font-size: 12px;
  margin-bottom: 5px;
}
.gal .ph .mh::before {
  content: '📷 朋友圈 · ';
  color: #9a9a9a;
  font-weight: normal;
}
.gal .ph .mt {
  display: block;
  color: #262626;
  line-height: 1.5;
}
.gal .ph .mi {
  display: block;
  margin: 7px 0;
  padding: 18px 8px;
  text-align: center;
  background: #f2f2f2;
  border-radius: 4px;
  color: #9a9a9a;
  font-size: 11px;
}
.gal .ph .mi::before {
  content: '🖼 ';
}
.gal .ph .mf {
  display: block;
  font-size: 11px;
  color: #576b95;
  border-top: 1px solid #f0f0f0;
  padding-top: 6px;
  line-height: 1.6;
}
.gal .ph .hs {
  display: block;
  background: #fff;
  border-top: 8px solid #e3e3e3;
  padding: 9px 0 3px;
}
.gal .ph .hs::before {
  content: '🔥 热搜';
  display: block;
  font-weight: bold;
  color: #ff8200;
  font-size: 12px;
  padding: 0 12px 7px;
  border-bottom: 1px solid #f2f2f2;
}
.gal .ph .hi {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-bottom: 1px solid #f7f7f7;
  color: #333;
  font-size: 12px;
}
.gal .ph .hi:last-child {
  border-bottom: none;
}
.gal .ph .hi::before {
  content: attr(data-r);
  flex: 0 0 15px;
  text-align: center;
  font-weight: bold;
  color: #a8a8a8;
  font-size: 12px;
}
.gal .ph .hi[data-r="1"]::before {
  color: #fe2d46;
}
.gal .ph .hi[data-r="2"]::before {
  color: #ff6600;
}
.gal .ph .hi[data-r="3"]::before {
  color: #faa90e;
}
.gal .ph .hi .v {
  margin-left: auto;
  color: #b5b5b5;
  font-size: 11px;
  white-space: nowrap;
}
.gal .ph .hi[data-t]::after {
  content: attr(data-t);
  order: 3;
  font-size: 10px;
  color: #fff;
  background: #ff9b3d;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.4;
}
.gal .ph .hi[data-t="爆"]::after {
  background: #e02020;
}
.gal .ph .hi[data-t="沸"]::after {
  background: #ff5f5f;
}
.gal .ph .hi[data-t="新"]::after {
  background: #ff8200;
}
.gal .ph .no {
  display: block;
  background: #fffbe8;
  border-top: 8px solid #e3e3e3;
  padding: 9px 12px 10px;
}
.gal .ph .no::before {
  content: '📝 备忘录';
  display: block;
  font-weight: bold;
  color: #b08b1e;
  font-size: 12px;
  padding-bottom: 5px;
}
.gal .ph .no .d {
  display: block;
  padding: 5px 0;
  border-bottom: 1px dashed #efe0a8;
  color: #6b5b2a;
  font-size: 12px;
  line-height: 1.5;
}
.gal .ph .no .d:last-child {
  border-bottom: none;
}
/* ============ 场景模块 ============ */
.gal details.scene {
  background: #fff;
  border: 1px solid #ffe4e1;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(255, 182, 193, 0.15);
}
.gal details.scene > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #ffe4ec 0%, #fff5f7 100%);
  padding: 10px 14px;
  font-weight: bold;
  color: #d1496a;
  border-bottom: 1px solid #ffd9e2;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.gal details.scene > summary:hover {
  background: linear-gradient(135deg, #ffd6e2 0%, #ffeef2 100%);
}
.gal details.scene > summary .day-marker {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: #ff8fab;
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}
.gal details.scene .content {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #5c3a41;
}
.gal details.scene .scene-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px 12px;
  margin-bottom: 10px;
}
.gal details.scene .scene-grid .k {
  color: #e77c8e;
  font-weight: bold;
  font-size: 12px;
  background: #fff0f5;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  align-self: center;
}
.gal details.scene .scene-grid .v {
  color: #5c3a41;
  padding: 4px 0;
}
.gal details.scene .scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gal details.scene .scene-tags .go {
  display: inline-block;
  background: #fff0f5;
  border: 1px solid #ffb6c1;
  color: #d1496a;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.gal details.scene .scene-tags .go:hover {
  background: #ffd9e2;
}
.gal details.scene .scene-now {
  margin: 8px 0;
  padding: 8px 12px;
  background: #fffafa;
  border-left: 3px solid #ffb6c1;
  border-radius: 4px;
}
.gal details.scene .scene-now strong {
  color: #d1496a;
}
.gal details.scene .scene-npc {
  color: #5c3a41;
  font-weight: bold;
  background: #fff0f5;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}
/* ==========================================
   栀栀的私密日记 - 补充界面美化 (按钮/分页/评论区)
   ========================================== */
/* --- 1. 按钮栏相关 (Mod按钮、流式按钮等) --- */
#ai-mod-button2 button.MuiButton-root {
    color: #B76E79 !important; /* 玫瑰金文字 */
    background-color: #FDFBF7 !important; /* 奶油白背景 */
    border: 1px solid #E8B4B8 !important; /* 腮红粉边框 */
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
#ai-mod-button2 button.MuiButton-root:hover {
    background-color: #F3E1E4 !important; /* 悬停时透出肉感粉 */
    box-shadow: 0 2px 8px rgba(183, 110, 121, 0.2) !important;
}
#ai-mod-button2 button.MuiButton-root svg {
    color: #B76E79 !important; /* 图标同色 */
}
/* --- 2. 分页栏相关 (仅视觉颜色替换，严禁修改布局) --- */
.MuiPaginationItem-root {
    color: #3A2628 !important; /* 深褐色页码字 */
    font-family: 'Georgia', 'Microsoft YaHei', serif !important;
}
.MuiPaginationItem-root:hover {
    background-color: #F3E1E4 !important;
}
.MuiPaginationItem-root.Mui-selected {
    background-color: #B76E79 !important; /* 选中页码玫瑰金背景 */
    color: #FDFBF7 !important; /* 选中页码白字 */
}
.MuiPaginationItem-icon {
    color: #B76E79 !important; /* 翻页箭头玫瑰金 */
}
.flex.w-full.items-center.justify-between.gap-2.px-2.css-1uwir8f .MuiBox-root {
    color: #3A2628 !important; /* 跳转文字深褐色 */
}
.MuiInputBase-input {
    color: #3A2628 !important;
    background-color: #FDFBF7 !important;
    border-radius: 4px !important;
}
/* --- 3. 评论区深度美化补充 --- */
/* 评分星星 */
span.MuiRating-iconEmpty svg {
    color: #E8B4B8 !important; /* 空心星星腮红粉 */
}
span.MuiRating-iconFilled svg {
    color: #B76E79 !important; /* 实心星星玫瑰金 */
}
/* [Token消耗hover逻辑转换未启用]
   以下规则已停用：如需给评分数字 .text-orange-500 上色，取消注释即可
span.text-orange-500 {
    color: #B76E79 !important;
}
*/
/* 发送评论按钮 */
div.cursor-pointer.group.flex.items-center.justify-center {
    background-color: #FDFBF7 !important;
    border: 1px solid #E8B4B8 !important;
    border-radius: 8px !important;
    transition: background-color 0.3s !important;
}
div.cursor-pointer.group.flex.items-center.justify-center:hover {
    background-color: #F3E1E4 !important;
}
div[data-state="closed"] svg[data-icon="Send03"] {
    color: #B76E79 !important;
}
/* 评论排序按钮 */
button.MuiButton-containedPrimary {
    background-color: #B76E79 !important;
    color: #FDFBF7 !important;
    border: none !important;
}
button.MuiButton-outlinedPrimary {
    color: #B76E79 !important;
    border: 1px solid #B76E79 !important;
    background-color: transparent !important;
}
/* 评论列表细节文字 */
div.text-xs.text-grey-600 {
    color: #8C6A6D !important; /* 时间戳使用稍浅的褐色 */
}
span.text-\[10px\] {
    color: #B76E79 !important; /* "(你)" 标签玫瑰金 */
    background-color: #F3E1E4 !important;
    padding: 0 4px !important;
    border-radius: 4px !important;
}
button.text-gray-400 svg {
    color: #E8B4B8 !important; /* 点赞图标 */
}
button.text-gray-400:hover svg {
    color: #B76E79 !important;
}
span.cursor-pointer {
    color: #B76E79 !important; /* "回复" 二字 */
    font-weight: bold !important;
}
div.ml-8.border-l {
    border-left-color: #E8B4B8 !important; /* 回复嵌套的左侧分割线 */
}
/* ==========================================
   栀栀的私密日记 - 聊天框与界面美化专属CSS
   ========================================== */
/* --- 1. 强制隐藏默认顶部颜色条 --- */
[class*="bg-[#F1CBCB]"],
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}
/* --- 2. 统一聊天框美化 (日记本质感) --- */
.is-user > .border.border-muted,
.is-assistant > .border.border-muted {
    background: linear-gradient(135deg, #FFF5F5 0%, #FDFBF7 50%, #FDE8E9 100%) !important;
    border: 1px solid #E8B4B8 !important;
    border-radius: 12px 24px 24px 12px !important;
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.15) !important;
    padding: 16px !important;
    transition: all 0.3s ease !important;
}
/* 单独输入框微调 */
.is-user > .border.border-muted {
    border-radius: 24px 12px 12px 24px !important;
    background: #FDFBF7 !important;
}
/* --- 3. 核心文本样式 (绝对可读性与字体统一) --- */
.rili-markdown-renderer {
    font-family: 'Georgia', 'Microsoft YaHei', serif !important;
    color: #3A2628 !important; /* 深褐色文字，完美适配浅色背景 */
    font-weight: bold !important;
    line-height: 1.8 !important;
    background: transparent !important;
}
/* 底部附加元素 (按钮、模型名称、Token) */
.bg-muted.rounded.flex.p-0\.5 > button.rounded-full.size-7,
.flex.items-center.gap-2.text-xs.font-mono.text-muted-foreground {
    color: #B76E79 !important; /* 玫瑰金色 */
    font-family: 'Georgia', 'Microsoft YaHei', serif !important;
}
/* [Token消耗hover逻辑转换未启用]
   如需让 .text-orange-500 (评分数字) 也跟随玫瑰金上色，
   把 .text-orange-500 选择器加入上方规则即可 */
/* --- 4. 自定义加载动画 (粉色心跳跳动) --- */
.style-module__AtdJSq__dot-flashing.style-module__AtdJSq__text {
    display: none !important;
}
.flex.items-center.justify-center.size-6 {
    position: relative !important;
}
.flex.items-center.justify-center.size-6::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23B76E79"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"><animate attributeName="transform" type="scale" values="0.9;1.1;0.9" dur="1s" repeatCount="indefinite" additive="sum"/></path></svg>') !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}
/* --- 5. 界面美化：顶部栏 --- */
header.flex.justify-between {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid #F3E1E4 !important;
    box-shadow: 0 2px 10px rgba(183, 110, 121, 0.05) !important;
}
#nav-middle button:has(> .flex-1.truncate.text-left) .flex-1.truncate.text-left {
    color: #B76E79 !important;
    font-weight: bold !important;
}
/* --- 6. 界面美化：底部输入框 --- */
#ai-chat-bottom-input {
    background: transparent !important;
}
#ai-chat-input {
    background: #FDFBF7 !important;
    border: 1px solid #E8B4B8 !important;
    border-radius: 12px !important;
    color: #3A2628 !important;
    font-family: 'Georgia', 'Microsoft YaHei', serif !important;
}
#ai-chat-input:focus {
    border-color: #B76E79 !important;
    box-shadow: 0 0 10px rgba(183, 110, 121, 0.2) !important;
}
#ai-chat-input::placeholder {
    color: #E8B4B8 !important;
}
/* --- 7. 界面美化：评论区 --- */
div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
    background: #FFF5F5 !important;
    border-top: 2px solid #F3E1E4 !important;
}
div.text-lg.font-bold,
p.MuiTypography-body1.text-grey-600,
div.text-sm.text-grey-600 span.font-bold,
div.break-all {
    color: #3A2628 !important;
    font-family: 'Georgia', 'Microsoft YaHei', serif !important;
}
textarea.rc-textarea {
    background: #FDFBF7 !important;
    border: 1px solid #E8B4B8 !important;
    color: #3A2628 !important;
    border-radius: 8px !important;
}
div.style_divider__mW0YX {
    background-color: #F3E1E4 !important;
}
/* 用户的对话颜色：清透青碧，干净有少年感 */
u-say {
    color: #0E8C7E;
    font-weight: bold;
}
/* 青梅的对话颜色：蜜橘珊瑚，甜但不腻 */
w-say {
    color: #FF7A59;
    font-weight: bold;
}
/* 只取消最外层大框，保留场景折叠栏的框；
   去掉左右空隙，并让 .gal 成为定位容器（供 .gal::before 环境光定位） */
.gal {
  position: relative;
  isolation: isolate;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
/* 2. 收窄场景卡内部文字区域的左右内边距 */
.gal details.scene .content {
  padding-left: 8px !important;  /* 原为 12px 14px，这里收窄到 8px */
  padding-right: 8px !important;
}
/* 3. 防止裸奔的 <text> 文本标签直接贴在左边缘，给它留一点点呼吸感 */
.gal > text,
.gal > p {
  padding: 0 8px !important;
}
/* =============================================
   增强皮肤：璀璨粉晶·玻璃拟态·轻霓虹
   ============================================= */
/* 不形成外框，只在背景营造一层很淡的粉晶光晕 (.gal 已是定位容器) */
.gal::before {
  content: '';
  position: absolute;
  inset: -18px;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 182, 193, 0.28), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(255, 215, 224, 0.38), transparent 46%),
    radial-gradient(circle at 55% 100%, rgba(255, 240, 245, 0.55), transparent 52%);
  filter: blur(6px);
  animation: galAmbient 14s ease-in-out infinite alternate;
}
@keyframes galAmbient {
  0% {
    opacity: 0.65;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.06);
  }
}
/* 所有折叠卡：玻璃拟态 */
.gal details {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  box-shadow:
    0 10px 32px rgba(209, 73, 106, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.38) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.gal details:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 44px rgba(209, 73, 106, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}
/* 标题栏 */
.gal summary {
  background: linear-gradient(135deg, rgba(255, 220, 230, 0.88), rgba(255, 245, 247, 0.88));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  font-weight: 700;
  color: #d1496a;
  letter-spacing: 0.4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  transition: background 0.25s ease, letter-spacing 0.25s ease, padding-left 0.25s ease;
}
.gal summary:hover {
  background: linear-gradient(135deg, #ffd6e2, #fff0f5);
  letter-spacing: 0.8px;
  padding-left: 18px;
}
.gal details[open] summary {
  border-bottom: 1px dashed rgba(255, 182, 193, 0.9);
}
/* 内容展开动画 */
.gal details[open] > .content,
.gal details[open] > c,
.gal details[open] > table {
  animation: fadeUp 0.35s ease-out;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 小标题 */
.gal .sub {
  background: rgba(255, 250, 250, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ff758c;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-left: 3px solid #ffb6c1;
  border-bottom: 1px solid rgba(255, 245, 247, 0.8);
  margin-top: 4px;
}
/* 信息行 */
.gal c {
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 245, 247, 0.85);
  gap: 12px;
  transition: background 0.2s ease;
}
.gal c:hover {
  background: rgba(255, 255, 255, 0.35);
}
.gal c:last-child {
  border-bottom: none;
}
.gal l {
  flex: 0 0 78px;
  background: linear-gradient(135deg, #ffd9e2, #ffb6c1);
  color: #a63d55;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(255, 143, 171, 0.35);
}
.gal v {
  color: #5c3a41;
}
/* NSFW 特殊行 */
.gal c[t="nsfw"] {
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.22), rgba(255, 240, 245, 0.55));
  border-left: 3px solid #ff7eb3;
}
.gal c[t="nsfw"] l {
  background: linear-gradient(135deg, #ff7eb3, #ff8fab);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 126, 179, 0.45);
}
/* 内心/情绪高亮 */
.gal c[hl="1"] {
  background: linear-gradient(90deg, rgba(255, 245, 247, 0.95), rgba(255, 255, 255, 0.65));
  border-left: 4px solid #ff7eb3;
  animation: softPulse 2.4s ease-in-out infinite;
}
@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 126, 179, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 126, 179, 0.25);
  }
}
/* 表格 */
.gal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.35);
}
.gal th {
  background: rgba(255, 240, 245, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #d1496a;
  padding: 8px 12px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 228, 225, 0.9);
}
.gal td {
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 245, 247, 0.9);
}
.gal tr:hover td {
  background: rgba(255, 255, 255, 0.4);
}
/* 场景卡特殊增强 */
.gal details.scene {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(209, 73, 106, 0.2);
}
.gal details.scene > summary {
  background: linear-gradient(135deg, #ffe4ec 0%, #fff5f7 100%);
  padding: 12px 16px;
  font-weight: 800;
  color: #d1496a;
  text-shadow: 0 1px 0 #fff;
  border-bottom: 1px solid rgba(255, 217, 226, 0.9);
}
.gal details.scene > summary:hover {
  background: linear-gradient(135deg, #ffd6e2 0%, #ffeef2 100%);
}
.gal details.scene .day-marker {
  background: linear-gradient(135deg, #ff8fab, #ff5f8a);
  box-shadow: 0 0 14px rgba(255, 143, 171, 0.75);
  animation: markerPulse 2.6s ease-in-out infinite;
}
@keyframes markerPulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 143, 171, 0.55);
  }
  50% {
    box-shadow: 0 0 22px rgba(255, 143, 171, 0.9);
  }
}
/* 场景网格 */
.gal details.scene .scene-grid {
  background: rgba(255, 240, 245, 0.45);
  border-radius: 14px;
  padding: 8px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.gal details.scene .scene-grid .k {
  background: linear-gradient(135deg, #ffe4ec, #fff0f5);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(255, 143, 171, 0.22);
  border-radius: 8px;
}
.gal details.scene .scene-tags .go {
  background: rgba(255, 240, 245, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 182, 193, 0.9);
  color: #d1496a;
  font-weight: 600;
  transition: all 0.25s ease;
}
.gal details.scene .scene-tags .go:hover {
  background: linear-gradient(135deg, #ffd9e2, #ffb6c1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 143, 171, 0.45);
  transform: translateY(-1px);
}
/* 场景内“你的处境”等重点信息 */
.gal details.scene .scene-now {
  background: rgba(255, 250, 250, 0.72);
  border-left: 3px solid #ffb6c1;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.gal details.scene .scene-now:hover {
  background: rgba(255, 255, 255, 0.88);
}
/* 正文叙事区 */
.gal > text {
  display: block;
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 14px 10px !important;
  margin: 0 0 10px;
  color: #5c3a41;
  box-shadow: 0 8px 24px rgba(209, 73, 106, 0.14);
  line-height: 1.85;
  text-align: justify;
  border-left: 4px solid #ffb6c1;
  animation: fadeUp 0.5s ease-out;
}
/* ============ 手机模块：拟真优化 ============ */
.gal .ph {
  background: #1f1f24;
  border: 4px solid #2b2b33;
  border-radius: 32px;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.28),
    0 0 0 2px rgba(255, 182, 193, 0.45),
    0 0 32px rgba(255, 143, 171, 0.38);
  position: relative;
  overflow: hidden;
}
/* 屏幕玻璃反光 */
.gal .ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
  z-index: 3;
}
/* 状态栏 */
.gal .ph .sb {
  background: linear-gradient(180deg, #2b2b33, #1c1c22);
  color: #f2f2f2;
  padding: 6px 16px;
}
.gal .ph .sb::after {
  background: #0f0f13;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
/* 顶部应用栏 */
.gal .ph .ap {
  background: rgba(247, 247, 247, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220, 220, 220, 0.8);
}
/* 聊天气泡 */
.gal .ph .bb {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gal .ph .bb:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.gal .ph .m::before {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
/* 热搜与备忘录小标题 */
.gal .ph .hs::before,
.gal .ph .no::before {
  letter-spacing: 0.5px;
}
.gal .ph .hi {
  transition: background 0.2s ease;
}
.gal .ph .hi:hover {
  background: #fafafa;
}
/* 朋友圈内容区 */
.gal .ph .mo {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.gal .ph .mi {
  background: linear-gradient(135deg, #f5f5f5, #fafafa);
  border-radius: 8px;
}
/* =============================================
   手机端横排修复 + 状态栏美化
   ============================================= */
/* ---------- 1. 状态栏美化 ---------- */
.gal .ph .sb {
  background: linear-gradient(180deg, #2b2b33 0%, #1c1c22 100%) !important;
  padding: 6px 16px !important;
  font-size: 11px !important;
  letter-spacing: 0.5px !important;
  position: relative !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}
/* 左侧时间：加一个小圆点提示 */
.gal .ph .sb i:first-child::before {
  content: '🕒 ';
  font-size: 10px;
  opacity: 0.8;
}
/* 右侧电量：替换为电池图标，保留百分比 */
.gal .ph .sb i:last-child {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.gal .ph .sb i:last-child::before {
  content: '🔋 ';
  font-size: 10px;
  opacity: 0.9;
}
/* 刘海位置微调，更居中 */
.gal .ph .sb::after {
  top: 1px !important;
  width: 72px !important;
  height: 14px !important;
  border-radius: 0 0 12px 12px !important;
  background: #0f0f13 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}
/* 信号与电量文字颜色微调 */
.gal .ph .sb i {
  color: #f2f2f2 !important;
  font-style: normal !important;
}
/* 让5G标识更有科技感 */
.gal .ph .sb i:nth-child(2) {
  color: #8be28b !important;
  font-weight: bold !important;
  letter-spacing: 1px !important;
}
/* =============================================
   青梅档案 · NSFW 魅力强化
   ============================================= */
/* 将连续的 NSFW 行包裹成一组精致卡片 */
.gal details > c[t="nsfw"] {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 210, 225, 0.45) 0%, rgba(255, 240, 245, 0.75) 100%);
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, #ff7eb3, #d1496a, #ffb6c1) 1;
  border-radius: 0 14px 14px 0;
  margin: 4px 6px 4px 10px;
  padding: 9px 12px 9px 14px;
  box-shadow:
    0 4px 18px rgba(255, 126, 179, 0.25),
    inset 0 0 12px rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  overflow: hidden;
}
/* 左侧高光装饰条 */
.gal details > c[t="nsfw"]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ff7eb3 0%, #d1496a 50%, #ffb6c1 100%);
  box-shadow: 0 0 12px rgba(255, 126, 179, 0.8);
  border-radius: 0 4px 4px 0;
}
/* 每行右侧增加一个若有若无的心形光晕 */
.gal details > c[t="nsfw"]::after {
  content: '💗';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.25;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.gal details > c[t="nsfw"]:hover::after {
  opacity: 0.7;
  transform: translateY(-50%) scale(1.3);
}
/* 悬停时整行浮起并增强光感 */
.gal details > c[t="nsfw"]:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(255, 126, 179, 0.4),
    inset 0 0 18px rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, rgba(255, 200, 220, 0.55) 0%, rgba(255, 245, 248, 0.9) 100%);
}
/* NSFW 标签：华丽渐变胶囊 + 发光 */
.gal details > c[t="nsfw"] l {
  background: linear-gradient(135deg, #ff7eb3 0%, #d1496a 100%) !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px !important;
  padding: 5px 10px !important;
  box-shadow:
    0 4px 14px rgba(255, 126, 179, 0.5),
    inset 0 0 6px rgba(255, 255, 255, 0.6) !important;
  transition: all 0.3s ease;
}
/* 标签悬停时更亮 */
.gal details > c[t="nsfw"]:hover l {
  box-shadow:
    0 6px 20px rgba(255, 126, 179, 0.7),
    inset 0 0 10px rgba(255, 255, 255, 0.8) !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 1) !important;
}
/* NSFW 内容文字：深玫瑰色，略带魅力感 */
.gal details > c[t="nsfw"] v {
  color: #6b2e42 !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  line-height: 1.7 !important;
  padding-left: 2px !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}
/* =============================================
   移动端适配 (合并自原多段 @media，只保留最终生效规则)
   ============================================= */
@media (max-width: 768px) {
  /* --- 通用/表格 --- */
  .gal th,
  .gal td {
    font-size: 12px;
  }
  /* --- 折叠卡圆角 --- */
  .gal details {
    border-radius: 16px;
  }
  .gal details.scene {
    border-radius: 18px;
  }
  .gal summary {
    min-height: 44px;
  }
  /* --- 场景卡 --- */
  .gal details.scene .scene-grid {
    grid-template-columns: 70px 1fr;
    gap: 4px 8px;
  }
  .gal details.scene .content {
    padding: 10px; /* 顶部/底部 10px；左右仍被 8px !important 覆盖 */
  }
  /* --- 叙事区 --- */
  .gal > text {
    padding: 12px 10px !important;
  }
  /* --- 手机模块 --- */
  .gal .ph {
    max-width: 100%;
    border-width: 3px;
    border-radius: 26px;
  }
  .gal .ph .bb {
    max-width: 78%;
    font-size: 14px;
  }
  /* --- 横排修复：l 和 v 保持同一排 --- */
  .gal c {
    flex-direction: row !important;      /* 横向排列 */
    align-items: flex-start !important;  /* 顶部对齐 */
    gap: 8px !important;
    padding: 7px 10px !important;
  }
  .gal l {
    flex: 0 0 70px !important;           /* 固定宽度，适合手机 */
    text-align: center !important;
    background: linear-gradient(135deg, #ffd9e2, #ffb6c1) !important;
    color: #a63d55 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 6px !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 8px rgba(255, 143, 171, 0.3) !important;
    white-space: nowrap !important;      /* 标签不换行 */
    height: fit-content !important;
    margin-top: 2px !important;
  }
  .gal v {
    flex: 1 1 auto !important;
    min-width: 0 !important;             /* 防止 flex 溢出 */
    padding: 2px 0 !important;
    word-break: break-word !important;   /* 长文本自动断行 */
    line-height: 1.6 !important;
  }
  .gal c[t="nsfw"] l {
    background: linear-gradient(135deg, #ff7eb3, #ff8fab) !important;
    color: #fff !important;
  }
  .gal c[hl="1"] l {
    background: transparent !important;
    color: #ff7eb3 !important;
    text-align: left !important;
  }
  /* --- NSFW 卡移动端微调 --- */
  .gal details > c[t="nsfw"] {
    margin: 4px 0 4px 6px;
    padding: 8px 10px 8px 12px;
    border-radius: 0 12px 12px 0;
  }
  .gal details > c[t="nsfw"]::after {
    right: 6px;
    font-size: 14px;
    opacity: 0.18;
  }
  .gal details > c[t="nsfw"] l {
    flex: 0 0 66px !important;
    font-size: 11px !important;
    padding: 4px 6px !important;
  }
  .gal details > c[t="nsfw"] v {
    font-size: 13px !important;
  }
}