/* ═══════════════════════════════════════════════════════
   小黄书大神 · 完整CSS（照搬陈意梨+系统修改者结构）
   导入：酒馆 用户设置 → 自定义CSS 全选粘贴
   风格：深夜写文风 · 深色背景 · 暖色纸张正文 · 侧边栏6面板
   配色：红#e04060 蓝#4a90d9 粉#e04070 绿#4ac870 金#e8b040
   命名空间：xc-（小黄书）
   ═══════════════════════════════════════════════════════ */
/* ============================================================
   PART 0 — 酒馆全局
   ============================================================ */
body {
  background: #1a1c24;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(224,64,96,.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(74,144,217,.03) 0%, transparent 50%);
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a3c48; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4a4c58; }
::selection { background: rgba(224,64,96,.12) !important; color: #2a1a1a !important; }
#customized-answer-content *::selection { background: rgba(224,64,96,.12) !important; color: #2a1a1a !important; }
/* ============================================================
   PART 1 — 叙事正文（章节内容·纸张感）
   ============================================================ */
#customized-answer-content {
  position: relative !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  background: #faf8f4 !important;
  border: 1px solid rgba(224,64,96,.08) !important;
  color: #3a2a1a !important;
  font-family: "Noto Serif SC", "STKaiti", "KaiTi", "Microsoft YaHei", serif !important;
  font-size: .90rem !important;
  line-height: 1.85 !important;
}
#customized-answer-content p {
  margin: .5em 0 !important; line-height: 1.9 !important; color: #3a2a1a !important;
}
/* ============================================================
   PART 1.5 — 用户提问区
   ============================================================ */
#customized-question-content {
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(145deg, #2a2c38 0%, #222430 100%);
  border: 1px solid rgba(224,64,96,.1);
  color: #c8c0b8 !important;
  font-family: "Noto Serif SC","Microsoft YaHei",sans-serif;
  font-size: .90rem;
  line-height: 1.75;
}
/* ============================================================
   PART 2 — 章节正文专用（xc-chapter·核心输出区）
   ============================================================ */
#customized-answer-content .xc-chapter {
  display: block;
  padding: 0;
  margin: 0;
}
#customized-answer-content .xc-chapter p {
  color: #3a2a1a !important; line-height: 2.0 !important; font-size: .92rem !important;
  text-indent: 1.5em !important; padding: .3rem 0 !important;
  position: relative !important; z-index: 0 !important; margin: .4em 0 !important;
}
/* 章节标题 */
#customized-answer-content .xc-ch-title {
  text-align: center !important; font-size: 1.15rem !important;
  font-weight: 700 !important; color: #c03040 !important;
  padding: .6rem 0 .3rem !important; margin-bottom: .5rem !important;
  letter-spacing: .06em !important;
  border-bottom: 2px solid rgba(224,64,96,.15) !important;
}
/* 章节末尾标记 */
#customized-answer-content .xc-ch-end {
  text-align: center !important; font-size: .78rem !important;
  color: #a09088 !important; padding: .8rem 0 .4rem !important;
  letter-spacing: .05em !important;
  border-top: 1px dotted #e0d8d0 !important;
  margin-top: .8rem !important;
}
/* ============================================================
   PART 3 — markdown 覆盖（系统修改者同款·xc配色）
   ============================================================ */
.markdown-body pre {
  background: #fdfcfa !important;
  border: 1px solid #e8e2da !important;
  border-left: 3px solid #e04060 !important;
  border-radius: 6px; padding: 1em 1.2em; overflow-x: auto;
}
.markdown-body pre code { background: transparent !important; color: #4a3a2a !important; }
.markdown-body :not(pre)>code {
  background: rgba(224,64,96,.07) !important;
  color: #b03848 !important;
  padding: .15em .45em; border-radius: 4px;
}
/* ===== 通用代码块/复制框直接覆盖 ===== */
#customized-answer-content pre,
#customized-answer-content pre code,
#customized-answer-content code {
  background: #fdfcfa !important;
  color: #4a3a2a !important;
  border-color: #e8e2da !important;
}
#customized-answer-content pre {
  border: 1px solid #e8e2da !important;
  border-left: 3px solid #e04060 !important;
  border-radius: 6px !important;
  padding: 1em 1.2em !important;
  overflow-x: auto !important;
}
#customized-answer-content pre code {
  background: transparent !important;
  color: #4a3a2a !important;
  padding: 0 !important;
}
#customized-answer-content :not(pre) > code {
  background: rgba(224,64,96,.07) !important;
  color: #b03848 !important;
  padding: .15em .45em !important;
  border-radius: 4px !important;
}
.markdown-body blockquote {
  border-left: 3px solid #e04060 !important;
  background: rgba(224,64,96,.03) !important;
  margin: .5em 0; padding: .3em .8em;
  border-radius: 0 4px 4px 0; font-style: italic; color: #6a5050;
}
details:not(.xc-sb):not(.xc-tab):not(.xc-panel) {
  background: #fefcfa !important;
  border: 1px solid #e8e2da !important;
  border-radius: 8px; margin: 8px 0; overflow: hidden;
  transition: border-color .2s;
}
details:not(.xc-sb):not(.xc-tab)[open] { border-color: #d8d0c8 !important; }
details:not(.xc-sb):not(.xc-tab) summary {
  background: #f8f3ec !important; color: #4a3a2a !important;
  padding: 8px 12px 8px 30px;
  display: block; position: relative;
  border-bottom: 1px solid #e8e2da !important;
  cursor: pointer; font-weight: 600; list-style: none; user-select: none;
}
details:not(.xc-sb):not(.xc-tab) summary::before {
  content: '☆'; position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  color: #e04060 !important; font-size: 10px;
  transition: all .3s; opacity: .7;
}
details:not(.xc-sb):not(.xc-tab)[open] summary::before { content: '★'; opacity: 1; }
details:not(.xc-sb):not(.xc-tab) summary::-webkit-details-marker { display: none; }
::placeholder { color: #a09088 !important; opacity: 1; }
#ai-chat-input { background: #2a2c36 !important; color: #d0c8c0 !important; caret-color: #e04060 !important; }
textarea.rc-textarea { background: #2a2c36 !important; color: #d0c8c0 !important; border: 1px solid #3a3c48 !important; }
/* ===== 底部按钮（发送/编辑/操作） ===== */
#ai-send-button {
  background: #e04060 !important; color: #fff !important;
  border-radius: 8px !important; transition: background .15s !important;
}
#ai-send-button:hover { background: #c03050 !important; }
/* 玩家消息下方的编辑按钮行 */
[class*="message"] button,
[class*="mes"] button,
button[class*="edit"], button[class*="action"], button[class*="tool"] {
  color: #c8c0b8 !important;
}
[class*="message"] button:hover,
[class*="mes"] button:hover,
button[class*="edit"]:hover, button[class*="action"]:hover, button[class*="tool"]:hover {
  color: #fff !important; background: rgba(224,64,96,.15) !important;
}
/* MUI 按钮全局 */
button.MuiButton-root {
  color: #c8c0b8 !important;
}
button.MuiButton-root:hover { color: #fff !important; background: rgba(224,64,96,.12) !important; }
button.MuiButton-containedPrimary {
  background: #e04060 !important; color: #fff !important;
}
button.MuiButton-containedPrimary:hover { background: #c03050 !important; }
button.MuiButton-outlinedPrimary {
  border-color: #e04060 !important; color: #e04060 !important;
}
/* 底部输入区整体 */
#ai-chat-bottom-input {
  background: #2a2c36 !important; color: #d0c8c0 !important;
}
.bg-gradient-to-t {
  background: #1a1c24 !important;
}
/* ============================================================
   PART 4 — 面板通用（已迁移至CP0-CP4内联折叠面板系统）
   ============================================================ */
/* ============================================================
   PART 5 — 卡片组件（.xc-card·数据展示核心）
   ============================================================ */
#customized-answer-content .xc-card {
  background: #fff !important; border-radius: 10px !important;
  padding: 12px 14px !important; margin-bottom: 8px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.03) !important;
  font-size: .76rem !important; line-height: 1.6 !important;
  color: #4a3a2a !important;
}
#customized-answer-content .xc-card-h {
  font-size: .82rem !important; font-weight: 700 !important; color: #1a1a2a !important;
  margin-bottom: 8px !important; display: flex !important; align-items: center !important; gap: 5px !important;
}
/* 数据行 */
#customized-answer-content .xc-row {
  display: flex !important; justify-content: space-between !important; align-items: center !important;
  padding: 6px 0 !important; font-size: .76rem !important; color: #5a5a6a !important;
}
#customized-answer-content .xc-row + .xc-row { border-top: 1px solid #f0f1f5 !important; }
#customized-answer-content .xc-row .xc-v { font-weight: 700 !important; color: #1a1a2a !important; }
#customized-answer-content .xc-row .xc-v.xc-up { color: #d04050 !important; }
#customized-answer-content .xc-row .xc-v.xc-dn { color: #2a8040 !important; }
/* 属性提升行 · 金边高亮 */
.xc-stat-up {
  display: flex !important; justify-content: space-between !important; align-items: center !important;
  padding: 8px 12px !important; font-size: .82rem !important; color: #4a3020 !important;
  border: 2px solid #e8b040 !important; border-radius: 8px !important;
  background: linear-gradient(135deg, #fffef6, #fdf4e0) !important;
  margin-top: 6px !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(200,160,40,.15) !important;
}
.xc-stat-up span:first-child { color: #8a5a10 !important; font-weight: 700 !important; }
.xc-stat-up span:last-child { font-weight: 800 !important; color: #4a2a00 !important; }
/* sidebar 内也要生效 */
.xc-sb-panel-body .xc-stat-up,
.xc-panel-body .xc-stat-up {
  display: flex !important; justify-content: space-between !important; align-items: center !important;
  padding: 8px 12px !important; font-size: .82rem !important;
  border: 2px solid #e8b040 !important; border-radius: 8px !important;
  background: linear-gradient(135deg, #fffef6, #fdf4e0) !important;
  margin: 6px 0 !important;
  box-shadow: 0 1px 4px rgba(200,160,40,.15) !important;
}
/* ============================================================
   PART 6 — 徽章
   ============================================================ */
.xc-badge {
  display: inline-block !important; padding: 2px 7px !important; border-radius: 9px !important;
  font-size: 10px !important; font-weight: 700 !important; letter-spacing: .2px !important;
}
.xc-badge-hot { background: #fde4e8 !important; color: #c03040 !important; }
.xc-badge-new { background: #e0eeff !important; color: #3070c0 !important; }
.xc-badge-up  { background: #e0f5e8 !important; color: #208040 !important; }
.xc-badge-rank {
  background: linear-gradient(135deg,#f8d060,#e8a020) !important; color: #fff !important;
  font-size: 11px !important; padding: 3px 8px !important;
}
/* ============================================================
   PART 7 — 排行榜列表
   ============================================================ */
/* 排行榜容器 */
.xc-rank-list {
  background: #fff !important; border-radius: 10px !important; overflow: hidden !important;
  margin-bottom: 8px !important;
}
/* 排行行 */
.xc-rank {
  display: flex !important; align-items: center !important; gap: 10px !important;
  padding: 10px 12px !important; border-bottom: 1px solid #f0f1f5 !important;
  background: #fff !important; transition: background .15s !important;
}
.xc-rank:last-child { border-bottom: none !important; }
.xc-rank:hover { background: #fdfcf8 !important; }
/* 自己的书高亮 */
.xc-rank-mine {
  border-left: 3px solid #e04060 !important;
  background: linear-gradient(90deg, #fef6f6 0%, #fff 30%) !important;
  font-weight: 700 !important;
}
/* 排名数字 */
.xc-rank-num {
  width: 24px !important; height: 24px !important; border-radius: 6px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 12px !important; font-weight: 800 !important; flex-shrink: 0 !important;
  color: #8890a0 !important; background: #f0f1f5 !important;
}
/* 金银铜 */
.xc-rank-num.xc-top1 {
  background: linear-gradient(135deg, #f8c040, #e09020) !important;
  color: #fff !important; box-shadow: 0 2px 6px rgba(240,160,40,.35) !important;
}
.xc-rank-num.xc-top2 {
  background: linear-gradient(135deg, #b0bec5, #78909c) !important;
  color: #fff !important;
}
.xc-rank-num.xc-top3 {
  background: linear-gradient(135deg, #d89860, #b87040) !important;
  color: #fff !important;
}
/* 排名信息 */
.xc-rank-info { flex: 1 !important; min-width: 0 !important; }
.xc-rank-title {
  font-size: 13px !important; font-weight: 600 !important; color: #161820 !important;
  white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
}
.xc-rank-author { font-size: 11px !important; color: #8890a0 !important; }
.xc-rank-stat {
  font-size: 11px !important; color: #a0a8b8 !important; flex-shrink: 0 !important; text-align: right !important;
}
.xc-rank-stat strong { color: #d04050 !important; font-size: 13px !important; }
/* 省略号分隔行 */
.xc-rank-ellipsis {
  text-align: center !important; padding: 2px 0 !important;
  font-size: 11px !important; color: #b0a8a0 !important; letter-spacing: .3em !important;
  border-bottom: 1px solid #f0f1f5 !important; background: #fdfcf8 !important;
}
/* ============================================================
   PART 8 — 短信列表
   ============================================================ */
.xc-sms-item {
  display: flex !important; gap: 10px !important; padding: 10px 12px !important;
  border-bottom: 1px solid #eef0f4 !important; align-items: center !important;
  background: #fff !important; border-radius: 10px !important; margin-bottom: 6px !important;
}
.xc-sms-ava {
  width: 44px !important; height: 44px !important; border-radius: 50% !important; flex-shrink: 0 !important;
  display: flex !important; align-items: center !important; justify-content: center !important; font-size: 18px !important;
}
.xc-sms-info { flex: 1 !important; min-width: 0 !important; }
.xc-sms-name { font-size: 13px !important; font-weight: 600 !important; color: #161820 !important; }
.xc-sms-prev {
  font-size: 11.5px !important; color: #8890a0 !important; line-height: 1.5 !important;
  margin-top: 1px !important; word-break: break-word !important;
}
.xc-sms-time { font-size: 10px !important; color: #a0a8b8 !important; flex-shrink: 0 !important; }
/* ============================================================
   PART 9 — 钱包
   ============================================================ */
.xc-balance { text-align: center !important; padding: 16px 0 !important; }
.xc-amount {
  font-size: 36px !important; font-weight: 800 !important; color: #161820 !important; letter-spacing: 1px !important;
}
.xc-balance-label {
  font-size: 11px !important; color: #8890a0 !important; margin-top: 3px !important;
}
.xc-balance-sub {
  font-size: 10px !important; color: #a0a8b8 !important; margin-top: 2px !important;
}
/* 柱状图（文本模拟） */
.xc-bar-chart {
  display: flex !important; align-items: flex-end !important; gap: 8px !important;
  height: 90px !important; padding: 8px 0 !important;
}
.xc-bar-col {
  flex: 1 !important; border-radius: 4px 4px 0 0 !important; position: relative !important;
  min-height: 2px !important;
}
/* ============================================================
   PART 10 — 通知
   ============================================================ */
.xc-noti {
  padding: 10px 0 !important; border-bottom: 1px solid #f0f1f5 !important;
}
.xc-noti:last-child { border-bottom: none !important; }
.xc-noti-tag {
  display: inline-block !important; padding: 2px 6px !important; border-radius: 4px !important;
  font-size: 10px !important; font-weight: 700 !important; margin-right: 6px !important;
}
.xc-noti-red { background: #fde4e8 !important; color: #c03040 !important; }
.xc-noti-green { background: #e0f5e8 !important; color: #208040 !important; }
.xc-noti-blue { background: #e0eeff !important; color: #3070c0 !important; }
.xc-noti-body {
  font-size: 12px !important; color: #4a4f5c !important; line-height: 1.6 !important; margin-top: 4px !important;
}
.xc-noti-time { font-size: 10px !important; color: #a0a8b8 !important; margin-top: 3px !important; }
/* ============================================================
   PART 11 — 评论
   ============================================================ */
.xc-cmt-tag {
  font-size: 11px !important; font-weight: 700 !important; margin-bottom: 4px !important;
}
.xc-cmt-body {
  font-size: 12.5px !important; line-height: 1.7 !important; color: #3a3e48 !important;
}
.xc-cmt-meta {
  font-size: 10px !important; color: #98a0b0 !important; margin-top: 6px !important;
}
/* 简介/大纲文本 */
.xc-blurb, .xc-outline {
  font-size: 12px !important; line-height: 1.7 !important; color: #4a4f5c !important;
}
/* ============================================================
   PART 12 — 行动选项（系统修改者 sm-actions 同款）
   ============================================================ */
#customized-answer-content .xc-actions {
  border-left: 3px solid #e04060 !important;
  background: #fffefc !important;
  border-radius: 8px !important; margin: .7rem 0 !important; padding: 0 !important;
  border: 1.5px solid #e8e2da !important; overflow: hidden !important;
}
#customized-answer-content .xc-actions-h {
  background: #fef0f2 !important; color: #b03040 !important;
  padding: .65rem 1.1rem !important; font-weight: 700 !important; font-size: .88rem !important;
  border-bottom: 1px solid #f0e0e4 !important;
}
#customized-answer-content .xc-actions pre {
  margin: .5rem .8rem !important; padding: .6rem .9rem !important; border-radius: 8px !important;
  border-left: 4px solid #e04060 !important; background: #fefcf8 !important; transition: all .2s !important;
}
#customized-answer-content .xc-actions pre:hover {
  background: #fef6f2 !important; border-left-color: #c02040 !important;
}
#customized-answer-content .xc-actions pre code {
  font-family: inherit !important; font-size: .84rem !important; line-height: 1.7 !important;
  color: #3a4a2a !important; background: transparent !important; padding: 0 !important;
  white-space: pre-wrap !important; word-break: break-word !important;
}
/* A=写下章(红) B=改大纲(蓝) C=开新书(紫) D=日常(绿) E=跳过(灰蓝) */
#customized-answer-content .xc-actions pre:nth-of-type(1) { border-left-color: #e04060 !important; background: #fef8f8 !important; }
#customized-answer-content .xc-actions pre:nth-of-type(1):hover { border-left-color: #c02040 !important; background: #fef0f0 !important; }
#customized-answer-content .xc-actions pre:nth-of-type(2) { border-left-color: #4a90d9 !important; background: #f4f8fd !important; }
#customized-answer-content .xc-actions pre:nth-of-type(2):hover { border-left-color: #2e70b8 !important; background: #eaf2fb !important; }
#customized-answer-content .xc-actions pre:nth-of-type(3) { border-left-color: #7c3aed !important; background: #faf8ff !important; }
#customized-answer-content .xc-actions pre:nth-of-type(3):hover { border-left-color: #5a20d0 !important; background: #f4f0ff !important; }
#customized-answer-content .xc-actions pre:nth-of-type(4) { border-left-color: #4ac870 !important; background: #f4fdf6 !important; }
#customized-answer-content .xc-actions pre:nth-of-type(4):hover { border-left-color: #2aa050 !important; background: #eafaee !important; }
#customized-answer-content .xc-actions pre:nth-of-type(5) { border-left-color: #8a9ba8 !important; background: #f6f8fa !important; }
#customized-answer-content .xc-actions pre:nth-of-type(5):hover { border-left-color: #5e707a !important; background: #eef1f4 !important; }
#customized-answer-content .xc-free {
  display: block !important; padding: .5rem .9rem !important; margin-top: .3rem !important;
  color: #8a7a6a !important; font-size: .8rem !important; font-style: italic !important;
}
/* ============================================================
   内联折叠面板系统（替代侧边栏弹窗）
   结构：<details class="xc-panel"> → summary(标题栏) + .xc-panel-body(内容区)
   默认折叠，展开后内联在消息流中，可同时展开多个
   命名空间：xc-
   ============================================================ */
/* ===== PART CP0 — 面板全局杀 ===== */
.xc-panel, .xc-panel[open] {
  overflow: hidden !important;
}
.xc-panel > summary {
  list-style: none !important;
}
.xc-panel > summary::-webkit-details-marker { display: none !important; }
.xc-panel > summary::before, .xc-panel > summary::after { display: none !important; content: none !important; }
/* ===== PART CP1 — 面板容器 ===== */
.xc-panel {
  display: block !important;
  margin: 10px 0 !important;
  border: 1px solid #e8e2da !important;
  border-radius: 10px !important;
  background: #fffefc !important;
  padding: 0 !important;
  max-width: none !important;
  box-shadow: 0 1px 8px rgba(0,0,0,.05) !important;
}
/* ===== PART CP2 — 标题栏（折叠态） ===== */
.xc-panel > summary {
  display: flex !important; align-items: center !important;
  padding: 10px 16px !important;
  font-size: 14px !important; font-weight: 700 !important;
  color: #3a2a1a !important;
  background: linear-gradient(135deg, #faf8f5, #f5f1eb) !important;
  cursor: pointer !important;
  border: none !important;
  border-bottom: 1px solid #f0ebe0 !important;
  user-select: none !important;
}
.xc-panel > summary:hover {
  background: linear-gradient(135deg, #fef6f6, #fdf0f2) !important;
  color: #b03040 !important;
}
/* ===== PART CP3 — 标题栏（展开态） ===== */
.xc-panel[open] > summary {
  border-bottom: 2px solid #e04060 !important;
  color: #b03040 !important;
  background: linear-gradient(135deg, #fef6f6, #fef0f2) !important;
}
/* ===== PART CP4 — 内容区 ===== */
.xc-panel-body {
  padding: 14px 16px !important;
  font-size: .88rem !important; color: #2a1a10 !important;
  line-height: 1.7 !important;
  max-height: 520px !important;
  overflow-y: auto !important;
  background: #fdfcfa !important;
  font-family: inherit !important;
  -webkit-overflow-scrolling: touch !important;
}
/* ===== PART SB5 — 内联状态栏（系统修改者 sm-player 同款） ===== */
.xc-status {
  border: 1px solid #e8e2da !important;
  border-left: 3px solid #e04060 !important;
  border-radius: 8px !important; overflow: hidden !important;
  background: #fffefc !important;
  margin: .5rem 0 !important;
}
.xc-status-h {
  padding: .55rem 1rem !important; font-size: .82rem !important; font-weight: 700 !important;
  background: #fef0f2 !important; color: #b03040 !important;
  border-bottom: 1px solid #f0e0e4 !important;
}
.xc-status-body { padding: .3rem .8rem !important; }
.xc-sr {
  display: flex !important; padding: .3rem 0 !important;
  border-bottom: 1px dotted #f0ebe0 !important; gap: .6rem !important;
  font-size: .78rem !important;
}
.xc-sr:last-child { border-bottom: none !important; }
.xc-sk {
  flex: 0 0 auto !important; min-width: 4rem !important;
  font-weight: 600 !important; color: #e04060 !important;
}
.xc-sv {
  flex: 1 !important; color: #3a2a1a !important; font-weight: 600 !important;
}
.xc-sv .xc-note { font-weight: 400 !important; color: #8890a0 !important; font-size: .7rem !important; margin-left: .3rem !important; }
.xc-note { font-weight: 400 !important; color: #8890a0 !important; font-size: .68rem !important; margin-left: .3rem !important; }
/* ===== PART SB6 — 卡片组件 ===== */
.xc-panel-body .xc-card {
  background: #fff !important; border: 1px solid #e0d8cc !important;
  border-radius: 8px !important; padding: 12px 14px !important; margin-bottom: 8px !important;
}
.xc-panel-body .xc-card-h { font-weight: 800 !important; color: #1a0a00 !important; margin-bottom: 6px !important; font-size: 15px !important; }
.xc-panel .xc-section-h {
  font-size: 15px !important; font-weight: 800 !important; color: #1a0a00 !important;
  margin: 14px 0 8px !important; padding-bottom: 5px !important; border-bottom: 2px solid #e04060 !important;
}
.xc-panel .xc-section-h:first-child { margin-top: 0 !important; }
.xc-panel .xc-row {
  display: flex !important; justify-content: space-between !important; align-items: center !important;
  padding: 5px 0 !important; font-size: 13px !important; color: #4a3020 !important; font-weight: 500 !important;
}
.xc-panel .xc-row + .xc-row { border-top: 1px solid #f0ebe0 !important; }
.xc-panel .xc-row span:first-child { color: #5a3a20 !important; font-weight: 600 !important; }
.xc-panel .xc-row span:last-child { font-weight: 700 !important; color: #1a0a00 !important; }
/* ===== PART SB6 — 雷达图 ===== */
.xc-radar-wrap { position: relative !important; display: flex !important; justify-content: center !important; padding: 10px 0 !important; }
.xc-radar-wrap svg { max-width: 100% !important; height: auto !important; overflow: visible !important; display: block !important; }
/* 六维标签 — HTML叠在SVG上方 */
.xc-radar-labels,
.xc-radar-vals {
  position: absolute !important; inset: 0 !important;
  pointer-events: none !important;
}
.xc-radar-labels span,
.xc-radar-vals span {
  position: absolute !important; pointer-events: none !important;
  font-family: "Microsoft YaHei","PingFang SC",sans-serif !important;
  white-space: nowrap !important;
}
/* 标签：6个顶点外侧 */
.xc-radar-labels span {
  font-size: 12px !important; font-weight: 600 !important; color: #4a3a2a !important;
}
.xc-rl-top { left: 50%; top: 4%; transform: translate(-50%, -100%); }
.xc-rl-tr  { left: 85%; top: 28%; transform: translate(0, -50%); }
.xc-rl-br  { left: 85%; top: 72%; transform: translate(0, -50%); }
.xc-rl-bot { left: 50%; top: 96%; transform: translate(-50%, 0); }
.xc-rl-bl  { left: 15%; top: 72%; transform: translate(-100%, -50%); }
.xc-rl-tl  { left: 15%; top: 28%; transform: translate(-100%, -50%); }
/* 数值：6个顶点内侧 */
.xc-radar-vals span {
  font-size: 11px !important; font-weight: 700 !important; color: #c03040 !important;
}
.xc-rv-top { left: 50%; top: 10%; transform: translate(-50%, -100%); }
.xc-rv-tr  { left: 81%; top: 30%; transform: translate(0, -50%); }
.xc-rv-br  { left: 81%; top: 70%; transform: translate(0, -50%); }
.xc-rv-bot { left: 50%; top: 90%; transform: translate(-50%, 0); }
.xc-rv-bl  { left: 19%; top: 70%; transform: translate(-100%, -50%); }
.xc-rv-tl  { left: 19%; top: 30%; transform: translate(-100%, -50%); }
/* ===== PART SB7 — 学习商场 ===== */
.xc-learn-bar {
  display: flex !important; align-items: center !important; justify-content: space-between !important;
  padding: 8px 12px !important; background: #fffefc !important;
  border: 1px solid #e8e2da !important; border-radius: 8px !important;
  margin-bottom: 10px !important; font-size: 12px !important; color: #5a4a3a !important;
}
.xc-learn-card {
  background: #fffefc !important; border-radius: 8px !important;
  padding: 12px 14px !important; margin-bottom: 8px !important; border: 1px solid #e8e2da !important;
}
.xc-learn-card.xc-learn-rare { border-left: 3px solid #e04060 !important; }
.xc-learn-card.xc-learn-epic { border-left: 3px solid #e04060 !important; background: linear-gradient(135deg, #fffefc, #fef6f6) !important; }
.xc-learn-card.xc-learn-legend { border: 2px solid #e04060 !important; background: linear-gradient(135deg, #fffefc, #fef4f4) !important; }
.xc-learn-name { font-size: 14px !important; font-weight: 700 !important; color: #2a1a1a !important; margin-bottom: 3px !important; }
.xc-learn-desc { font-size: 12px !important; color: #6a5a4a !important; line-height: 1.5 !important; margin-bottom: 4px !important; }
.xc-learn-cost { font-size: 11px !important; color: #8a7a6a !important; }
.xc-learn-effect { font-size: 12px !important; color: #c03040 !important; font-weight: 600 !important; margin-top: 2px !important; }
.xc-learn-tag { display: inline-block !important; padding: 1px 6px !important; border-radius: 3px !important; font-size: 10px !important; font-weight: 700 !important; margin-left: 6px !important; }
.xc-learn-tag-normal { background: #f0f0f5 !important; color: #6a6a7a !important; }
.xc-learn-tag-rare { background: #fde4e8 !important; color: #c03040 !important; }
.xc-learn-tag-epic { background: #fde4e8 !important; color: #a02030 !important; border: 1px solid #e04060 !important; }
.xc-learn-tag-legend { background: #e04060 !important; color: #fff !important; }
.xc-passive {
  margin-top: 10px !important; padding: 10px 12px !important;
  border: 1px dashed #c0b0a0 !important; border-radius: 6px !important;
  font-size: 12px !important; color: #8a7a6a !important; line-height: 1.5 !important; background: #faf8f4 !important;
}
/* ===== PART SB8 — 记忆区 ===== */
.xc-sec {
  margin-bottom: 6px !important; padding: 8px 10px !important; border-radius: 6px !important;
  background: #fffefc !important; border: 1px solid #e8e2da !important;
}
.xc-sec:last-child { margin-bottom: 0 !important; }
.xc-sec-h { font-size: 12px !important; font-weight: bold !important; color: #3a2020 !important; margin-bottom: 4px !important; }
.xc-mem-list { display: flex !important; flex-direction: column !important; gap: 3px !important; padding: 4px 0 !important; }
.xc-mem-item {
  font-size: 11px !important; line-height: 1.6 !important; padding: 3px 6px !important;
  border-radius: 4px !important; background: #fdfcfa !important; border: 1px solid #ece5d8 !important;
}
.xc-mem-tag { display: inline-block !important; min-width: 28px !important; font-size: 9px !important; font-weight: 700 !important; color: #907060 !important; margin-right: 4px !important; }
.xc-mem-archive { background: #faf8f4 !important; border-color: #e0d5c0 !important; font-size: 10px !important; }
/* ============================================================
   PART SB9 — 核心片段（双行本书页插入）
   结构：.xc-snippet-book > .xc-snippet-book-header + .xc-snippet-book-body + .xc-snippet-book-footer
   正文叙事中插入核心写作片段，横线本稿纸质感，与叙事文字区分
   ============================================================ */
.xc-snippet-book{
  margin:1.2em -8px;position:relative;
  background:#fcfaf6;
  border-radius:4px;
  box-shadow:0 2px 16px rgba(0,0,0,.10),0 1px 3px rgba(0,0,0,.06);
  overflow:hidden;
}
.xc-snippet-book-header{
  display:flex;align-items:center;justify-content:center;gap:14px;
  padding:16px 28px 0;
}
.xc-snippet-book-header::before,
.xc-snippet-book-header::after{
  content:'';flex:1;height:1px;
  background:linear-gradient(90deg,transparent,#c8b898 20%,#c8b898 80%,transparent);
}
.xc-snippet-book-header-text{
  font-size:.72rem;color:#8a7a6a;letter-spacing:.12em;
  font-family:"Microsoft YaHei",sans-serif;white-space:nowrap;
}
.xc-snippet-book-body{
  padding:0 28px 18px 0;
  position:relative;
  background-image:linear-gradient(to right,transparent 0,transparent 38px,#e8d0d0 38px,#e8d0d0 39px,transparent 39px,transparent 100%);
  background-size:100% 100%;background-repeat:no-repeat;
}
.xc-snippet-book-body p{
  margin:0;line-height:1.88rem;color:#2a2016;text-indent:1.5em;
  font-size:.94rem;padding:0 0 0 44px;
  background-image:repeating-linear-gradient(to bottom,transparent,transparent calc(1.88rem - 1px),#d0c8b8 calc(1.88rem - 1px),#d0c8b8 1.88rem);
  background-size:100% 1.88rem;background-position:0 1.45rem;background-repeat:repeat;
}
.xc-snippet-book-body p:first-child{padding-top:14px;}
.xc-snippet-book-body p + p{margin-top:1.88rem;}
.xc-snippet-book-footer{
  display:flex;align-items:center;justify-content:center;gap:14px;
  padding:8px 28px 16px;
}
.xc-snippet-book-footer::before,
.xc-snippet-book-footer::after{
  content:'';flex:1;height:1px;
  background:linear-gradient(90deg,transparent,#c8b898 20%,#c8b898 80%,transparent);
}
.xc-snippet-book-footer-text{
  font-size:.68rem;color:#a09080;letter-spacing:.08em;
  font-family:"Microsoft YaHei",sans-serif;
}
/* ============================================================
   PART SB10 — 随机奇遇（撕裂纸片）
   结构：.xc-event > 内容（emoji图标 + 文字）
   生活叙事中弹出的随机事件——打赏/打断/灵感/竞品
   类型：默认(好) / .xc-event-bad(坏) / .xc-event-neutral(中性)
   ============================================================ */
.xc-event{
  margin:.8em 0 .8em 6px;padding:12px 14px 12px 16px;
  background:#faf5ec;border:1px solid #e0d5c0;
  border-radius:2px 8px 8px 2px;
  box-shadow:2px 3px 10px rgba(0,0,0,.08);
  font-size:.82rem;line-height:1.7;color:#5a4a2a;
  position:relative;transform:rotate(.5deg);
  white-space:pre-line !important;
  clip-path:polygon(
    0% 0%,3% 2.5%,0% 5%,3% 7.5%,0% 10%,3% 12.5%,0% 15%,3% 17.5%,0% 20%,3% 22.5%,
    0% 25%,3% 27.5%,0% 30%,3% 32.5%,0% 35%,3% 37.5%,0% 40%,3% 42.5%,0% 45%,3% 47.5%,
    0% 50%,3% 52.5%,0% 55%,3% 57.5%,0% 60%,3% 62.5%,0% 65%,3% 67.5%,0% 70%,3% 72.5%,
    0% 75%,3% 77.5%,0% 80%,3% 82.5%,0% 85%,3% 87.5%,0% 90%,3% 92.5%,0% 95%,3% 97.5%,
    0% 100%,100% 100%,100% 0%
  );
}
.xc-event-bad{
  background:#fef5f5;border-color:#e8d0d0;transform:rotate(-.4deg);
}
.xc-event-neutral{
  background:#f5f8ff;border-color:#d0d8e8;transform:rotate(.3deg);
}
/* ===== PART CP10 — 响应式 ===== */
@media(max-width:768px){
  .xc-panel-body { max-height: 400px !important; padding: 10px 12px !important; }
  .xc-panel > summary { padding: 8px 12px !important; font-size: 13px !important; }
}
@media(max-width:480px){
  .xc-panel-body { max-height: 320px !important; padding: 8px 10px !important; font-size: .82rem !important; }
  .xc-panel > summary { padding: 7px 10px !important; font-size: 12px !important; }
}