/* ========== 内置CSS · 《好兄弟的青梅》 ========== */
/* ========== 暗红禁忌·情欲杂志版（全新设计，不复用旧版） ========== */
/* 风格配方：暖玫瑰米纸底 + 深酒红面板块 + 暗金点缀 + 楷体手写标题 + 黑体杂志正文
   组件色：暮雪=玫粉｜玩家=暗金米｜陈屿=灰蓝(影子)
   倒计时=杂志封面页眉的"截止日期印章"，攻心N/100=暗金大数字
   说明：①变量置于:root（壳丢失时var()仍生效）②选择器无前缀，作用于气泡内内容
   ③平台自动包裹 .khorra-output——内容直接落在平台气泡上，浅色纸感由元素底色带出 */

/* ---------- 0. CSS变量 ---------- */
:root{
  --paper:#f6edea;         /* 暖玫瑰米 纸底 */
  --paper2:#faf3f0;        /* 浅一档 卡片底 */
  --paper3:#f1e4df;        /* 深一档 */
  --wine:#3d1220;          /* 深酒红 */
  --wine2:#5e2433;         /* 深酒红亮端 */
  --wine-deep:#2a0c15;     /* 近黑酒红 记录面板头 */
  --rose:#c25f80;          /* 玫粉 暮雪 */
  --rose-deep:#a84363;
  --rose-dim:#f6e4ea;      /* 浅玫粉底 */
  --gold:#c9973f;          /* 暗金 */
  --gold2:#d9a94e;
  --gold-light:#ffd98f;    /* 亮金 深底上的金字 */
  --gold-dim:#f4ead2;      /* 浅金底 */
  --slate:#4a5a6e;         /* 灰蓝 陈屿(影子) */
  --slate-dim:#eef1f4;
  --red:#c96060;
  --text:#3d3a33; --dim:#8a8374; --faint:#a89f8d;
  --kai:'KaiTi','STKaiti','楷体',serif;
  --hei:'Microsoft YaHei','PingFang SC','Noto Sans SC',sans-serif;
}
.khorra-output{
  /* 不设背景色——内容直接落在平台回复气泡上 */
  color:var(--text); line-height:1.95; font-family:var(--hei);
}

/* ---------- 1. 正文（黑体杂志排版：宽松行距·首行缩进） ---------- */
.narrative-p{
  margin:12px 0; font-size:.92rem; line-height:2.05; color:var(--text);
  text-indent:2em; /* 中文段落首行缩进 */
}
/* 暮雪内心独白=偷看她的日记：楷体手写 + 玫瑰纸笺 */
.inner-monologue{
  margin:12px 0; padding:12px 16px;
  background:linear-gradient(135deg,#f9e9ef,#f3dbe3);
  border-left:3px solid var(--rose-deep);
  color:#7a4254; font-family:var(--kai); font-size:.9rem; line-height:2;
  border-radius:0 10px 10px 0;
  box-shadow:0 1px 5px rgba(140,48,73,.08);
}

/* ---------- 2. 前置检查（近黑酒红·暗室感） ---------- */
details.cot-check-details{
  margin:8px 0; background:var(--wine-deep); border:1px solid #4a1a28;
  border-radius:8px; padding:0; overflow:hidden;
}
details.cot-check-details > summary{
  cursor:pointer; padding:10px 14px; color:var(--gold-light); font-size:.8rem;
  font-weight:700; letter-spacing:.1em; list-style:none;
  background:linear-gradient(120deg,#3d1220,#2a0c15);
}
details.cot-check-details > summary::-webkit-details-marker{ display:none; }
details.cot-check-details > summary::before{ content:"🧪 "; }
details.cot-check-details[open] > summary{ border-bottom:1px solid #4a1a28; }
details.cot-check-details .details-body{ padding:10px 14px; }
details.cot-check-details .cot-exec-content{
  font-size:.72rem; line-height:2; color:#c9a8b2; white-space:pre-wrap;
  font-family:Consolas,'Courier New',monospace;
}
details.cot-check-details .cot-exec-content b{ color:var(--gold-light); }

/* ---------- 3. 时间头=杂志封面页眉（深酒红底·楷体大标题·倒计时印章） ---------- */
.time-header{
  margin:12px 0; padding:14px 16px 12px;
  background:var(--wine);
  background:linear-gradient(135deg,#3d1220,#5e2433);
  border:1px solid #6b2a3c; border-left:4px solid var(--gold2);
  border-radius:8px; color:#f6e7ea;
}
.time-row-main{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
/* "第X天·第X轮"：楷体手写大标题（杂志封面主字） */
.time-day{
  font-size:1.16rem; font-weight:700; color:var(--gold-light);
  letter-spacing:.06em; font-family:var(--kai);
  text-shadow:0 0 14px rgba(255,217,143,.25);
}
.time-sep{ color:#8a5a68; }
.time-period{ font-size:.76rem; color:#e8c3cc; letter-spacing:.04em; }
.time-clock{
  font-size:.72rem; color:#ffe3a8; background:rgba(255,210,122,.12);
  border:1px solid rgba(255,210,122,.35); padding:1px 10px; border-radius:10px;
  letter-spacing:.05em;
}
/* 倒计时=印章框（模板内联深红渐变底，这里补金边/圆角/楷体大数字） */
.time-header .time-clock + .time-clock{
  font-family:var(--kai); font-size:.92rem; font-weight:700;
  border:1.5px solid var(--gold2); border-radius:12px;
  padding:2px 12px; box-shadow:0 0 10px rgba(217,169,78,.35);
  letter-spacing:.08em;
}
.time-row-loc{ margin-top:6px; font-size:.78rem; color:#e0c3cb; }
.time-row-weather{ margin-top:2px; font-size:.74rem; color:#c9a2ac; }
.time-divider{
  margin:8px 0 2px; height:1px;
  background:linear-gradient(90deg,transparent,rgba(201,151,63,.55),transparent);
}

/* ---------- 4. 对话系统 · 三色气泡（暮雪玫粉/玩家暗金/陈屿灰蓝） ---------- */
/* 暮雪：名字玫红 · 浅玫瑰米气泡在左 */
.jy-msg{ margin:10px 0; }
.jy-name{
  display:block; font-size:.74rem; font-weight:700; letter-spacing:.14em;
  color:var(--rose-deep); line-height:1.4; margin-bottom:2px;
}
.jy-text{
  display:block; max-width:88%;
  background:linear-gradient(135deg,#faeff3,#f6e4ea);
  border:1px solid #edc9d4; border-left:3px solid var(--rose-deep);
  border-radius:4px 14px 14px 14px;
  padding:8px 14px; color:#5a3a44; line-height:1.85; font-size:.9rem;
}
/* 玩家：名字暗金 · 浅金米气泡在右 */
.us-msg{ margin:10px 0; }
.us-name{ display:block; text-align:right; font-size:.72rem; font-weight:700; letter-spacing:.14em; color:var(--gold); margin-bottom:2px; }
.us-text{
  display:block; margin-left:auto; max-width:80%; text-align:left;
  background:linear-gradient(135deg,#faf3e3,#f4ead2);
  border:1px solid #e6d8ae; border-right:3px solid var(--gold);
  border-radius:14px 4px 14px 14px; padding:8px 14px;
  color:#5a4a33; line-height:1.85; font-size:.9rem;
}
/* 陈屿/路人：名字灰蓝(影子) · 浅灰蓝气泡居中 */
.npc-msg{ margin:6px 0 6px 12px; text-align:left; }
.npc-name{ font-size:.72rem; font-weight:700; letter-spacing:.14em; color:var(--slate); display:block; margin-bottom:2px; }
.npc-text{
  display:inline-block; max-width:85%; text-align:left;
  background:linear-gradient(135deg,#f2f4f6,#e8edf2); border:1px solid #d5dde6;
  border-left:3px solid var(--slate);
  border-radius:4px 14px 14px 14px; padding:8px 14px; color:#4a5560; line-height:1.85; font-size:.9rem;
}

/* ---------- 5. 玩家档案（深酒红头·玩家的角色卡·无头像） ---------- */
details.player-panel{ border-color:#d9b3a4; background:var(--paper2); }
.player-headinfo{ display:flex; flex-direction:column; gap:3px; }
.player-hname{ font-size:1.1rem; font-weight:800; color:#a97a1e; letter-spacing:.16em; }
.player-class{ font-size:.72rem; color:#8a7a5a; }
.player-panel .heroine-sub .sub-block:nth-child(1){ background:var(--gold-dim); border-color:#e6d8ae; }
.player-panel .heroine-sub .sub-block:nth-child(2){ background:#fffdfb; border-color:#ecd9cf; }
.player-panel .heroine-sub .sub-block.thoughts{ background:var(--rose-dim); border:1px solid #edc9d4; }

/* ---------- 6. 通用面板骨架（深酒红标题栏） ---------- */
details.panel-details{
  margin:10px 0; border:1px solid #d9b3a4; border-radius:8px;
  background:var(--paper2); overflow:hidden;
  box-shadow:0 1px 6px rgba(61,18,32,.08);
}
details.panel-details > summary{
  cursor:pointer; padding:11px 16px; list-style:none;
  background:var(--wine);
  background:linear-gradient(120deg,#3d1220,#5e2433);
  color:#f6e7ea; font-size:.86rem; font-weight:700; letter-spacing:.1em;
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}
details.panel-details > summary::-webkit-details-marker{ display:none; }
details.panel-details > summary::before{ content:"▾ "; color:var(--gold-light); }
details.panel-details[open] > summary::before{ content:"▸ "; }
details.panel-details > summary .panel-summary-icon{ font-size:.9rem; }
details.panel-details > summary .panel-summary-sub{
  margin-left:auto; font-size:.62rem; font-weight:400; letter-spacing:.2em;
  color:var(--gold2); font-family:Consolas,monospace;
}
details.panel-details .panel-body{ padding:14px 16px; }

/* ---------- 7. 当前女主档案（深玫红头·暮雪色） ---------- */
details.heroine-panel{ border-color:#e0b9c6; background:#fdf3f6; }
details.heroine-panel > summary{
  background:linear-gradient(120deg,#8c2f4d,#a84363);
  color:#ffeef3;
}
details.heroine-panel > summary::before{ color:#ffd7e6; }
.heroine-head{ display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.heroine-badge{
  width:60px; height:60px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background-image:url('https://catai.wiki/13b74161-4437-41a2-1a4c-9cc4ee268a00/w=3000');
  background-size:cover; background-position:center;
  border:2px solid var(--gold2); box-shadow:0 2px 10px rgba(201,151,63,.25);
}
.heroine-headinfo{ display:flex; flex-direction:column; gap:3px; }
.heroine-hname{ font-size:1.1rem; font-weight:800; color:#a14d6d; letter-spacing:.16em; }
.heroine-class{ font-size:.72rem; color:#b07a90; }
.heroine-next{
  display:inline-block; font-size:.68rem; color:#fff;
  background:linear-gradient(120deg,#c9973f,#d9a94e);
  padding:2px 10px; border-radius:10px; letter-spacing:.08em; font-weight:700;
  width:fit-content; box-shadow:0 1px 6px rgba(201,151,63,.3);
}
.heroine-status{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.heroine-status span{
  font-size:.72rem; color:var(--text); background:#fffdfb;
  border:1px solid #ecd9cf; padding:3px 10px; border-radius:8px;
}
.heroine-status b{ color:var(--rose-deep); }
.heroine-sub{ display:flex; flex-direction:column; gap:8px; }
.heroine-sub .sub-block{ padding:9px 12px; border-radius:6px; background:#fffdfb; border:1px solid #ecd9cf; }
.heroine-sub .sub-block:nth-child(1){ background:var(--gold-dim); border-color:#e6d8ae; }
.heroine-sub .sub-block.thoughts{ background:var(--rose-dim); border:1px solid #edc9d4; }
.sub-label{ font-size:.7rem; font-weight:700; color:var(--rose-deep); letter-spacing:.12em; margin-bottom:3px; }
.sub-text{ font-size:.8rem; color:var(--text); line-height:1.8; }

/* ---------- 7.5 攻略进度条（女主档案内） ---------- */
.heroine-progress{
  margin-top:10px; padding:10px 12px;
  background:#fffdfb; border:1px solid #ecd9cf; border-radius:8px;
}
.heroine-prog-title{
  font-size:.7rem; font-weight:700; color:var(--wine);
  letter-spacing:.12em; margin-bottom:8px;
}
.prog-row{ display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.prog-label{ font-size:.68rem; font-weight:700; color:var(--rose-deep); min-width:76px; white-space:nowrap; }
.prog-track{
  flex:1; height:10px; background:#f0e4e0; border-radius:6px; overflow:hidden;
  border:1px solid #e6d0d8;
}
.prog-fill{ height:100%; border-radius:6px 0 0 6px; }
.prog-gold{ background:linear-gradient(90deg,#c9973f,#e8b45a); }
.prog-amber{ background:linear-gradient(90deg,#d9a94e,#ffd98f); }
.prog-red{ background:linear-gradient(90deg,#c96060,#e08a8a); }
.prog-num{ font-size:.68rem; font-weight:800; color:#a97a1e; min-width:56px; text-align:right; white-space:nowrap; }
.prog-note{ font-size:.64rem; color:var(--dim); line-height:1.7; margin-bottom:8px; padding-left:76px; }
.prog-note:last-child{ margin-bottom:0; }

/* ---------- 9. 记录面板（近黑酒红头·精简三区） ---------- */
details.record-panel{ border-color:#c9a8a0; background:#f7f1ee; }
details.record-panel > summary{
  background:linear-gradient(120deg,#2a0c15,#3d1220);
  color:#f3e4e8;
}
details.record-panel > summary::before{ color:#d9a94e; }
details.record-panel > summary .panel-summary-sub{ color:#b88a5a; }
.mem-sec{ margin-bottom:12px; }
.mem-sec:last-child{ margin-bottom:0; }
.mem-sec-label{
  font-size:.7rem; font-weight:700; color:var(--wine);
  letter-spacing:.12em; margin-bottom:6px;
}
/* 9.1 事件簿（浅金底·暗金时间戳·按天分组） */
.event-row{
  padding:6px 10px; margin-bottom:5px; border-radius:6px;
  background:var(--gold-dim); border:1px solid #e6d8ae;
  font-size:.74rem; color:#6b5c3a; line-height:1.7;
}
.event-row:last-child{ margin-bottom:0; }
.event-time{ color:#a97a1e; font-weight:700; margin-right:4px; }
/* 事件簿·按天分组标签 */
.event-day{
  font-size:.66rem; font-weight:700; color:#a97a1e; letter-spacing:.1em;
  margin:8px 0 4px;
}
/* 9.3 怀疑警报（浅红警示） */
.warn-row{
  padding:6px 10px; margin-bottom:5px; border-radius:6px;
  background:#fbeaea; border:1px solid #eccccc; border-left:3px solid var(--red);
  font-size:.74rem; color:#8f4a4a; line-height:1.7;
}
.warn-row:last-child{ margin-bottom:0; }
/* 9.4 进行中（浅金底·暗金左边线） */
.todo-row{
  padding:6px 10px; margin-bottom:5px; border-radius:6px;
  background:var(--gold-dim); border:1px solid #e6d8ae; border-left:3px solid var(--gold);
  font-size:.74rem; color:#6b5c3a; line-height:1.7;
}
.todo-row:last-child{ margin-bottom:0; }

/* ---------- 9.5 暮雪的日记（暗金棕头·信纸楷体） ---------- */
details.diary-panel{ border-color:#d8c59a; background:#fbf6ea; }
details.diary-panel > summary{
  background:linear-gradient(120deg,#4a3a1e,#6b5428);
  color:#fdf3dd;
}
details.diary-panel > summary::before{ color:#ffd98f; }
details.diary-panel > summary .panel-summary-sub{ color:#d9b45e; }
.diary-date{
  font-size:.74rem; color:#a97a1e; font-weight:700; letter-spacing:.1em;
  margin-bottom:8px; font-family:var(--kai);
}
/* 信纸：浅金底 + 手写横线（行高与线距同单位，近似对齐） */
.diary-lines{
  padding:6px 14px 8px 16px; border-left:3px solid var(--gold2);
  border-radius:0 8px 8px 0;
  background-color:#fdf8ec;
  background-image:repeating-linear-gradient(to bottom,
    transparent 0, transparent 1.94em, #eadfc0 1.94em, #eadfc0 2.0em);
}
.diary-line{
  margin:0; font-family:var(--kai); font-size:.9rem;
  line-height:2.0em; color:#6b5c3a; text-indent:0;
}
.diary-note{ margin-top:8px; font-size:.64rem; color:var(--faint); line-height:1.8; }

/* ---------- 9.6 她与陈屿的微信（灰蓝头·微信风） ---------- */
details.wechat-panel{ border-color:#b9c6d6; background:#f2f4f7; }
details.wechat-panel > summary{
  background:linear-gradient(120deg,#3d4a5e,#4f5f75);
  color:#eef2f7;
}
details.wechat-panel > summary::before{ color:#bcd0e4; }
details.wechat-panel > summary .panel-summary-sub{ color:#a9bcd0; }
.wc-day{
  text-align:center; font-size:.64rem; color:#8a97a5;
  margin:2px 0 10px; letter-spacing:.12em;
}
.wc-row{ display:flex; align-items:flex-start; gap:8px; margin-bottom:8px; }
.wc-row:last-child{ margin-bottom:0; }
.wc-them{ justify-content:flex-start; }
/* 暮雪在右：row-reverse 使主轴右→左，flex-start=右端（修复：flex-end 会把它推到左边） */
.wc-her{ justify-content:flex-start; flex-direction:row-reverse; }
.wc-name{ font-size:.64rem; color:var(--slate); margin-top:4px; white-space:nowrap; letter-spacing:.08em; }
.wc-her .wc-name{ color:var(--rose-deep); }
.wc-bubble{ max-width:72%; padding:7px 12px; font-size:.8rem; line-height:1.75; }
.wc-them .wc-bubble{
  background:#fff; border:1px solid #d5dde6; border-left:3px solid var(--slate);
  color:#4a5560; border-radius:4px 12px 12px 12px;
}
.wc-her .wc-bubble{
  background:linear-gradient(135deg,#faeff3,#f6e4ea); border:1px solid #edc9d4;
  border-right:3px solid var(--rose-deep); color:#5a3a44; border-radius:12px 4px 12px 12px;
}

/* ---------- 10. 选择面板（杂志目录感） ---------- */
.choice-panel{
  margin:14px 0; padding:12px 14px; background:var(--paper);
  border:1px solid #dcc4b8; border-radius:8px;
  box-shadow:0 1px 6px rgba(61,18,32,.08);
}
.choice-header{ margin-bottom:10px; }
.choice-title{ font-size:.82rem; font-weight:700; color:var(--wine); letter-spacing:.08em; }
.choice-list{ display:flex; flex-direction:column; gap:8px; }
.choice-card{
  display:flex; align-items:center; gap:10px; padding:10px 12px;
  border:1px solid #ecd9cf; border-radius:8px; background:#fffdfb;
  cursor:pointer; transition:all .2s ease;
}
.choice-card:hover{ border-color:var(--gold2); box-shadow:0 2px 10px rgba(201,151,63,.15); }
.choice-card[data-choice="1"]{ border-left:3px solid var(--rose-deep); }
.choice-card[data-choice="2"]{ border-left:3px solid var(--gold); }
.choice-card[data-choice="3"]{ border-left:3px solid var(--wine2); }
.choice-card.choice-skip{ border-left:3px dashed #c9b5a8; opacity:.75; }
.choice-left{ flex:1; min-width:0; }
.choice-label{
  display:block; font-size:.66rem; color:var(--rose-deep); font-weight:700;
  letter-spacing:.14em; margin-bottom:2px;
}
.choice-card[data-choice="2"] .choice-label{ color:var(--gold); }
.choice-card[data-choice="3"] .choice-label{ color:var(--wine); }
.choice-card.choice-skip .choice-label{ color:#a89f8d; }
.choice-text{ display:block; font-size:.8rem; color:var(--text); line-height:1.8; }
.choice-arrow{ color:#d4b3a8; font-size:.9rem; }

/* ---------- 11. 移动端适配 ---------- */
@media (max-width:640px){
  .khorra-output{ line-height:1.9; }
  .narrative-p{ font-size:.88rem; line-height:2; }
  .inner-monologue{ font-size:.85rem; padding:10px 13px; }
  .jy-msg,.us-msg{ margin:9px 0; }
  .jy-name,.us-name{ font-size:.7rem; }
  .jy-text{ max-width:96%; font-size:.88rem; padding:7px 12px; }
  .us-text{ max-width:calc(100% - 30px); font-size:.88rem; padding:7px 12px; }
  .npc-name{ font-size:.68rem; }
  .npc-text{ font-size:.86rem; }
  .jy-text,.us-text,.npc-text{ overflow-wrap:break-word; word-break:break-word; }
  .time-header{ padding:12px 13px 10px; }
  .time-row-main{ gap:6px; }
  .time-day{ font-size:1.05rem; }
  .time-period{ font-size:.7rem; }
  .time-clock{ font-size:.66rem; padding:1px 8px; }
  .time-header .time-clock + .time-clock{ font-size:.86rem; padding:2px 10px; }
  .time-row-loc{ font-size:.74rem; }
  .time-row-weather{ font-size:.7rem; }
  details.panel-details > summary{ padding:10px 12px; font-size:.82rem; }
  .player-hname{ font-size:.98rem; }
  .player-class{ font-size:.68rem; }
  .heroine-head{ gap:10px; }
  .heroine-badge{ width:48px; height:48px; }
  .heroine-hname{ font-size:.98rem; }
  .heroine-class{ font-size:.68rem; }
  .heroine-next{ font-size:.64rem; padding:2px 8px; }
  .heroine-status{ gap:6px; }
  .heroine-status span{ font-size:.68rem; padding:3px 8px; }
  .sub-label{ font-size:.66rem; }
  .sub-text{ font-size:.78rem; }
  .prog-label{ font-size:.64rem; min-width:64px; }
  .prog-num{ font-size:.64rem; min-width:46px; }
  .prog-note{ font-size:.6rem; padding-left:64px; }
  .heroine-progress{ padding:9px 10px; }
  .mem-sec{ margin-bottom:10px; }
  .mem-sec-label{ font-size:.66rem; }
  .event-row,.warn-row,.todo-row{ font-size:.7rem; padding:5px 9px; }
  .event-day{ font-size:.62rem; margin:7px 0 3px; }
  .diary-line{ font-size:.85rem; }
  .diary-date{ font-size:.7rem; }
  .diary-date{ font-size:.7rem; }
  .wc-bubble{ max-width:82%; font-size:.78rem; }
  .wc-day{ font-size:.6rem; }
  .wc-name{ font-size:.6rem; }
  .choice-panel{ padding:10px 10px; }
  .choice-card{ padding:9px 10px; gap:8px; }
  .choice-label{ font-size:.62rem; }
  .choice-text{ font-size:.78rem; }
  details.cot-check-details > summary{ padding:9px 12px; font-size:.76rem; }
  details.cot-check-details .cot-exec-content{ font-size:.66rem; }
}
@media (max-width:400px){
  .jy-text{ max-width:98%; }
  .us-text{ max-width:calc(100% - 16px); }
  .time-day{ font-size:.98rem; }
  .time-clock{ display:inline-block; margin-top:2px; }
  .heroine-status span{ flex:1 1 42%; }
  .choice-card .choice-arrow{ display:none; }
  details.panel-details > summary .panel-summary-sub{ display:none; }
}

/* ---------- 12. 跨平台适配补丁v1（纯色兜底·防白字·防渐变丢失） ---------- */
/* .khorra-output 不设背景（内容直接落在平台气泡上）；仅兜底文字色 */
.khorra-output{ color:#3d3a33; }
/* 深色标题栏：先纯色打底、再渐变增强（暗红家族） */
details.panel-details > summary{
  color:#f6e7ea !important;
  background:#3d1220 !important;
  background:linear-gradient(120deg,#3d1220,#5e2433) !important;
}
details.heroine-panel > summary{
  color:#ffeef3 !important;
  background:#8c2f4d !important;
  background:linear-gradient(120deg,#8c2f4d,#a84363) !important;
}
details.record-panel > summary{
  color:#f3e4e8 !important;
  background:#2a0c15 !important;
  background:linear-gradient(120deg,#2a0c15,#3d1220) !important;
}
details.diary-panel > summary{
  color:#fdf3dd !important;
  background:#4a3a1e !important;
  background:linear-gradient(120deg,#4a3a1e,#6b5428) !important;
}
details.wechat-panel > summary{
  color:#eef2f7 !important;
  background:#3d4a5e !important;
  background:linear-gradient(120deg,#3d4a5e,#4f5f75) !important;
}
details.cot-check-details{
  background:#2a0c15 !important;
  border:1px solid #4a1a28 !important;
}
details.cot-check-details > summary{
  color:#ffd98f !important;
  background:#3d1220 !important;
}
/* 时间头：深酒红纯色兜底 */
.time-header{
  color:#f6e7ea !important;
  background:#3d1220 !important;
  background:linear-gradient(135deg,#3d1220,#5e2433) !important;
}
/* 浅色面上文字强制显式深色（防平台默认白字/黑字串台） */
.narrative-p,.us-text,.jy-text,.npc-text,.sub-text,.choice-text,
.event-row,.event-day,.warn-row,.todo-row,
.heroine-status span,.diary-line,.diary-date,.diary-note,
.wc-bubble,.wc-day,.wc-name,.prog-note,.prog-num{
  color:#3d3a33;
}
/* 楷体兜底（手写感在部分平台可能缺字体，退回衬线） */
.time-day,.inner-monologue,.diary-line,.diary-date{
  font-family:'KaiTi','STKaiti','楷体','SimSun','Noto Serif SC',serif;
}
