/* ═══════════════════════════════════════════
   古典修仙·宣纸风格 - 去重整合最终版
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Ma+Shan+Zheng&display=swap');

/* ═══════════════════════════════════════════
   一、顶部栏美化
   ═══════════════════════════════════════════ */

.sticky.w-full.top-0.flex.items-center {
  background: linear-gradient(
    135deg,
    #f5f0e1 0%,
    #ebe4d1 25%,
    #f7f2e3 50%,
    #e8e0c8 75%,
    #f3edd9 100%
  ) !important;
  border-bottom: 2px solid transparent !important;
  border-image: linear-gradient(
    90deg,
    transparent 0%,
    #8b7355 20%,
    #5c4a32 50%,
    #8b7355 80%,
    transparent 100%
  ) 1 !important;
  box-shadow:
    0 2px 8px rgba(92, 74, 50, 0.15),
    inset 0 -1px 0 rgba(139, 115, 85, 0.2) !important;
  position: relative !important;
}

.sticky.w-full.top-0.flex.items-center::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image:
    radial-gradient(ellipse at 10% 50%, rgba(139, 115, 85, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 50%, rgba(139, 115, 85, 0.05) 0%, transparent 50%) !important;
  pointer-events: none !important;
}

/* 模型选择器 */
#ai-model-selector .group.flex.items-center {
  background: linear-gradient(145deg, #faf6eb 0%, #f0e9d8 100%) !important;
  border: 1px solid #c4b59d !important;
  border-radius: 4px !important;
  padding: 6px 12px !important;
  box-shadow:
    2px 2px 4px rgba(92, 74, 50, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transition: all 0.3s ease !important;
}

#ai-model-selector .group.flex.items-center:hover {
  background: linear-gradient(145deg, #fff9ec 0%, #f5eedc 100%) !important;
  border-color: #a08060 !important;
  box-shadow:
    3px 3px 6px rgba(92, 74, 50, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

#ai-model-selector .truncate.text-\[13px\] {
  font-family: 'ZCOOL XiaoWei', 'STKaiti', 'KaiTi', serif !important;
  color: #4a3c2a !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
}

#ai-model-selector .shrink-0.flex.items-center svg {
  color: #8b7355 !important;
  transition: transform 0.3s ease !important;
}

#ai-model-selector .group.flex.items-center:hover svg {
  color: #5c4a32 !important;
  transform: translateY(2px) !important;
}

/* 设置按钮 */
#header-setting-button {
  background: linear-gradient(145deg, #f5f0e1 0%, #e8e0c8 100%) !important;
  border: 1px solid #c4b59d !important;
  border-radius: 50% !important;
  color: #6b5a45 !important;
  transition: all 0.3s ease !important;
  box-shadow: 2px 2px 4px rgba(92, 74, 50, 0.1) !important;
}

#header-setting-button:hover {
  background: linear-gradient(145deg, #fff9ec 0%, #f0e9d8 100%) !important;
  border-color: #a08060 !important;
  color: #4a3c2a !important;
  transform: rotate(30deg) !important;
}

/* ═══════════════════════════════════════════
   二、开场白选择器美化
   ═══════════════════════════════════════════ */

div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"],
div.h-9.rounded-md.cursor-pointer.group:has(svg[data-icon="SlidersH"]) {
  background: linear-gradient(145deg, #faf6eb 0%, #f0e9d8 100%) !important;
  border: 1px solid #c4b59d !important;
  box-shadow: 2px 2px 6px rgba(92, 74, 50, 0.12) !important;
  transition: all 0.3s ease !important;
}

div.flex.items-center.h-9.bg-white.rounded-md.cursor-pointer.group[class*="border-gray"]:hover,
div.h-9.rounded-md.cursor-pointer.group:has(svg[data-icon="SlidersH"]):hover {
  background: linear-gradient(145deg, #fff9ec 0%, #f5eedc 100%) !important;
  border-color: #a08060 !important;
  box-shadow: 3px 3px 8px rgba(92, 74, 50, 0.18) !important;
}

div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="SlidersH"],
div.flex.items-center.h-9.cursor-pointer.group svg[data-icon="ChevronDown"] {
  color: #8b7355 !important;
  transition: color 0.3s ease !important;
}

div.flex.items-center.h-9.cursor-pointer.group:hover svg {
  color: #5c4a32 !important;
}

/* ═══════════════════════════════════════════
   三、按钮栏美化
   ═══════════════════════════════════════════ */

#ai-mod-button2 {
  background: transparent !important;
}

#ai-mod-button2 button.MuiButton-root {
  background: linear-gradient(
    145deg,
    #f5f0e1 0%,
    #ebe4d1 50%,
    #e0d7c0 100%
  ) !important;
  border: 2px double #a08060 !important;
  border-radius: 6px !important;
  color: #5c4a32 !important;
  font-family: 'ZCOOL XiaoWei', 'STKaiti', 'KaiTi', serif !important;
  font-size: 13px !important;
  letter-spacing: 2px !important;
  padding: 6px 16px !important;
  box-shadow:
    2px 2px 4px rgba(92, 74, 50, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

#ai-mod-button2 button.MuiButton-root::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  ) !important;
  transition: left 0.5s ease !important;
}

#ai-mod-button2 button.MuiButton-root:hover::before {
  left: 100% !important;
}

#ai-mod-button2 button.MuiButton-root:hover {
  background: linear-gradient(
    145deg,
    #fff9ec 0%,
    #f5eedc 50%,
    #ebe4d1 100%
  ) !important;
  border-color: #a08060 !important;
  color: #3d2e1a !important;
  box-shadow:
    3px 3px 8px rgba(92, 74, 50, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px) !important;
}

#ai-mod-button2 button.MuiButton-root svg {
  color: #8b7355 !important;
  transition: color 0.3s ease !important;
}

#ai-mod-button2 button.MuiButton-root:hover svg {
  color: #5c4a32 !important;
}

/* ═══════════════════════════════════════════
   四、底部栏与输入框美化
   ═══════════════════════════════════════════ */

.bg-gradient-to-t {
  background: linear-gradient(
    to top,
    #f5f0e1 0%,
    #f8f4e8 60%,
    rgba(248, 244, 232, 0.95) 80%,
    transparent 100%
  ) !important;
}

#ai-chat-bottom-input {
  background: linear-gradient(
    145deg,
    #fdfaf2 0%,
    #f5f0e1 50%,
    #ebe4d1 100%
  ) !important;
  border: 2px solid #c4b59d !important;
  border-radius: 12px !important;
  box-shadow:
    inset 2px 2px 6px rgba(92, 74, 50, 0.08),
    4px 4px 12px rgba(92, 74, 50, 0.1) !important;
  position: relative !important;
}

#ai-chat-bottom-input::before,
#ai-chat-bottom-input::after {
  content: "◈" !important;
  position: absolute !important;
  top: -8px !important;
  font-size: 12px !important;
  color: #a08060 !important;
  background: #f5f0e1 !important;
  padding: 0 6px !important;
}

#ai-chat-bottom-input::before {
  left: 20px !important;
}

#ai-chat-bottom-input::after {
  right: 20px !important;
}

#ai-chat-input {
  background: transparent !important;
  color: #3d2e1a !important;
  font-family: 'ZCOOL XiaoWei', 'STKaiti', 'KaiTi', serif !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  letter-spacing: 1px !important;
}

#ai-chat-input::placeholder {
  color: #a09080 !important;
  font-family: 'ZCOOL XiaoWei', 'STKaiti', 'KaiTi', serif !important;
  font-style: italic !important;
}

#ai-chat-input::selection {
  background: rgba(139, 115, 85, 0.3) !important;
  color: #3d2e1a !important;
}

/* ═══════════════════════════════════════════
   五、分页栏美化
   ═══════════════════════════════════════════ */

.MuiPaginationItem-root {
  background: linear-gradient(145deg, #f5f0e1 0%, #ebe4d1 100%) !important;
  border: 1px solid #c4b59d !important;
  color: #5c4a32 !important;
  font-family: 'ZCOOL XiaoWei', 'STKaiti', serif !important;
  transition: all 0.3s ease !important;
}

.MuiPaginationItem-root:hover {
  background: linear-gradient(145deg, #fff9ec 0%, #f5eedc 100%) !important;
  border-color: #a08060 !important;
  color: #3d2e1a !important;
  box-shadow: 2px 2px 6px rgba(92, 74, 50, 0.15) !important;
}

.MuiPaginationItem-root.Mui-selected {
  background: linear-gradient(145deg, #8b4513 0%, #a0522d 50%, #8b4513 100%) !important;
  border: 1px solid #5c3317 !important;
  color: #faf6eb !important;
  box-shadow:
    inset 1px 1px 2px rgba(0, 0, 0, 0.2),
    2px 2px 4px rgba(92, 74, 50, 0.2) !important;
}

.MuiPaginationItem-root.Mui-disabled {
  background: #e8e0c8 !important;
  border-color: #d4c9b0 !important;
  color: #b0a090 !important;
  opacity: 0.7 !important;
}

.MuiPaginationItem-icon {
  color: #8b7355 !important;
}

.MuiPaginationItem-root:hover .MuiPaginationItem-icon {
  color: #5c4a32 !important;
}

.MuiStack-root.css-1uwir8f {
  background: transparent !important;
}

.MuiStack-root.css-1uwir8f .MuiBox-root {
  color: #5c4a32 !important;
  font-family: 'ZCOOL XiaoWei', 'STKaiti', serif !important;
}

.MuiInputBase-input {
  background: #faf6eb !important;
  border: 1px solid #c4b59d !important;
  border-radius: 4px !important;
  color: #3d2e1a !important;
  font-family: 'ZCOOL XiaoWei', serif !important;
}

/* ═══════════════════════════════════════════
   六、评论区美化
   ═══════════════════════════════════════════ */

div[class*="w-full"][class*="bg-white"][class*="bottom-0"] {
  background:
    linear-gradient(
      135deg,
      #f8f4e8 0%,
      #f3edd9 25%,
      #f7f2e3 50%,
      #ebe4d1 75%,
      #f5f0e1 100%
    ) !important;
  border-top: 3px solid transparent !important;
  border-image: linear-gradient(
    90deg,
    transparent 0%,
    #c4b59d 15%,
    #8b7355 50%,
    #c4b59d 85%,
    transparent 100%
  ) 1 !important;
}

div[class*="w-full"][class*="bg-white"][class*="bottom-0"]::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 5 Q35 15 30 25 Q25 15 30 5' fill='none' stroke='%23c4b59d' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E") !important;
  opacity: 0.15 !important;
  pointer-events: none !important;
}

div.text-lg.font-bold {
  font-family: 'Ma Shan Zheng', 'STXingkai', cursive !important;
  color: #3d2e1a !important;
  font-size: 20px !important;
  letter-spacing: 4px !important;
  position: relative !important;
}

div.text-lg.font-bold::before {
  content: "『" !important;
  color: #8b7355 !important;
  margin-right: 4px !important;
}

div.text-lg.font-bold::after {
  content: "』" !important;
  color: #8b7355 !important;
  margin-left: 4px !important;
}

p.MuiTypography-body1.text-grey-600 {
  font-family: 'ZCOOL XiaoWei', 'STKaiti', serif !important;
  color: #6b5a45 !important;
  letter-spacing: 2px !important;
}

span.MuiRating-iconEmpty svg {
  color: #d4c9b0 !important;
}

span.MuiRating-iconFilled svg {
  color: #c9a227 !important;
  filter: drop-shadow(1px 1px 1px rgba(139, 115, 85, 0.3)) !important;
}

span.text-orange-500 {
  color: #b8860b !important;
  font-family: 'ZCOOL XiaoWei', serif !important;
  font-weight: bold !important;
}

div.flex.flex-col.border-gray-200 {
  border-color: #c4b59d !important;
  background: linear-gradient(145deg, #fdfaf2 0%, #f5f0e1 100%) !important;
  border-radius: 8px !important;
}

textarea.rc-textarea {
  background: transparent !important;
  color: #3d2e1a !important;
  font-family: 'ZCOOL XiaoWei', 'STKaiti', serif !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

textarea.rc-textarea::placeholder {
  color: #a09080 !important;
  font-family: 'ZCOOL XiaoWei', serif !important;
}

div.bg-gray-100.text-gray-500 {
  background: #ebe4d1 !important;
  color: #8b7355 !important;
  font-family: 'ZCOOL XiaoWei', serif !important;
}

div.cursor-pointer.group.flex.items-center.justify-center {
  background: linear-gradient(145deg, #8b4513 0%, #a0522d 100%) !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
}

div.cursor-pointer.group.flex.items-center.justify-center:hover {
  background: linear-gradient(145deg, #a0522d 0%, #cd853f 100%) !important;
  transform: scale(1.05) !important;
  box-shadow: 2px 2px 8px rgba(139, 69, 19, 0.3) !important;
}

div[data-state="closed"] svg[data-icon="Send03"] {
  color: #faf6eb !important;
}

div.style_divider__mW0YX {
  background: linear-gradient(
    90deg,
    transparent 0%,
    #c4b59d 20%,
    #8b7355 50%,
    #c4b59d 80%,
    transparent 100%
  ) !important;
  height: 1px !important;
}

button.MuiButton-containedPrimary {
  background: linear-gradient(145deg, #8b4513 0%, #a0522d 100%) !important;
  color: #faf6eb !important;
  font-family: 'ZCOOL XiaoWei', serif !important;
  border: none !important;
  box-shadow: 2px 2px 4px rgba(92, 74, 50, 0.2) !important;
}

button.MuiButton-outlinedPrimary {
  background: #f5f0e1 !important;
  color: #5c4a32 !important;
  font-family: 'ZCOOL XiaoWei', serif !important;
  border: 1px solid #c4b59d !important;
}

button.MuiButton-outlinedPrimary:hover {
  background: #ebe4d1 !important;
  border-color: #a08060 !important;
}

div.p-3.overflow-y-auto {
  background: transparent !important;
}

div.group.ml-0 {
  background: linear-gradient(145deg, #fdfaf2 0%, #f8f4e8 100%) !important;
  border: 1px solid #e0d7c0 !important;
  border-radius: 8px !important;
  margin-bottom: 12px !important;
  box-shadow: 2px 2px 6px rgba(92, 74, 50, 0.08) !important;
  transition: all 0.3s ease !important;
}

div.group.ml-0:hover {
  border-color: #c4b59d !important;
  box-shadow: 3px 3px 10px rgba(92, 74, 50, 0.12) !important;
}

div.group img.rounded-full {
  border: 2px solid #c4b59d !important;
  box-shadow: 2px 2px 4px rgba(92, 74, 50, 0.15) !important;
}

div.text-sm.text-grey-600 span.font-bold {
  font-family: 'ZCOOL XiaoWei', 'STKaiti', serif !important;
  color: #4a3c2a !important;
  font-size: 14px !important;
}

span.text-\[10px\] {
  background: linear-gradient(145deg, #c9a227 0%, #daa520 100%) !important;
  color: #3d2e1a !important;
  padding: 1px 6px !important;
  border-radius: 3px !important;
  font-family: 'ZCOOL XiaoWei', serif !important;
}

div.break-all {
  font-family: 'ZCOOL XiaoWei', 'STKaiti', serif !important;
  color: #4a3c2a !important;
  line-height: 1.8 !important;
  letter-spacing: 0.5px !important;
}

div.text-xs.text-grey-600 {
  color: #a09080 !important;
  font-family: 'ZCOOL XiaoWei', serif !important;
}

button.text-gray-400 {
  color: #a09080 !important;
  transition: all 0.3s ease !important;
}

button.text-gray-400:hover {
  color: #c9a227 !important;
}

button.text-gray-400 svg {
  transition: transform 0.3s ease !important;
}

button.text-gray-400:hover svg {
  transform: scale(1.2) !important;
}

span.cursor-pointer {
  color: #8b7355 !important;
  font-family: 'ZCOOL XiaoWei', serif !important;
  transition: color 0.3s ease !important;
}

span.cursor-pointer:hover {
  color: #5c4a32 !important;
}

div.ml-8.border-l {
  border-color: #d4c9b0 !important;
}

/* ═══════════════════════════════════════════
   七、加载动画美化
   ═══════════════════════════════════════════ */

.style_dot-flashing__8L91Q.style_text__zGhNq {
  display: none !important;
}

.bg-gray-100\/90.relative.inline-block {
  background:
    linear-gradient(to right,
      rgba(215, 200, 180, 0.5) 0%,
      rgba(215, 200, 180, 0.2) 2%,
      transparent 5%,
      transparent 95%,
      rgba(215, 200, 180, 0.2) 98%,
      rgba(215, 200, 180, 0.5) 100%
    ),
    #FFFFFF !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(180, 160, 140, 0.15) !important;
}

.flex.items-center.justify-center.w-6.h-5 {
  position: relative !important;
  width: 100% !important;
  min-height: 150px !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 15px 20px !important;
  gap: 25px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.flex.items-center.justify-center.w-6.h-5::before {
  content: "" !important;
  display: block !important;
  order: 1 !important;
  width: 155px !important;
  height: 155px !important;
  min-width: 155px !important;
  min-height: 155px !important;
  max-width: 155px !important;
  max-height: 155px !important;
  background-image: url("https://i.postimg.cc/DyPJmNcN/IMG-0579.gif") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important;
  margin-left: 10px !important;
}

.flex.items-center.justify-center.w-6.h-5::after {
  content: "等待有点无聊，来看庄方宜摇尾巴吧\A(如果看到这玩意摇半天还不出字请重新刷新)\A推荐记忆调至2和非流式，不推荐开黑夜模式与无图模式" !important;
  display: block !important;
  white-space: pre-wrap !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #5a5a5a !important;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif !important;
  text-align: left !important;
  flex: 1 !important;
  order: 2 !important;
  margin-left: 20px !important;
  padding-right: 10px !important;
}

[class*="bg-[#F1CBCB]"],
[class*="bg-[#c9e1e9]"] {
  display: none !important;
}

.markdown-body {
  color: #333333 !important;
  background: transparent !important;
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 480px) {
  .flex.items-center.justify-center.w-6.h-5 {
    flex-direction: row !important;
    min-height: 100px !important;
    padding: 12px 10px !important;
    gap: 15px !important;
  }

  .flex.items-center.justify-center.w-6.h-5::before {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    margin-left: 5px !important;
  }

  .flex.items-center.justify-center.w-6.h-5::after {
    font-size: 11px !important;
    line-height: 1.5 !important;
    margin-left: 10px !important;
    padding-right: 5px !important;
    text-align: left !important;
  }
}

/* ═══════════════════════════════════════════
   八、普通 details 下拉清单美化
   注意：不会影响状态栏 details.b
   ═══════════════════════════════════════════ */

.markdown-body details:not(.b) {
  background:
    linear-gradient(135deg,
      rgba(139, 90, 43, 0.05) 0%,
      rgba(210, 180, 140, 0.1) 50%,
      rgba(139, 90, 43, 0.05) 100%),
    linear-gradient(180deg, #faf6f0 0%, #f5ebe0 100%) !important;
  border: 1px solid rgba(139, 90, 43, 0.3) !important;
  border-radius: 8px !important;
  margin: 1em 0 !important;
  padding: 0 !important;
  box-shadow:
    0 2px 8px rgba(139, 90, 43, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.markdown-body details:not(.b):hover {
  border-color: rgba(139, 90, 43, 0.5) !important;
  box-shadow:
    0 4px 16px rgba(139, 90, 43, 0.18),
    0 0 20px rgba(218, 165, 32, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.markdown-body details:not(.b)[open] {
  background:
    linear-gradient(135deg,
      rgba(139, 90, 43, 0.03) 0%,
      rgba(210, 180, 140, 0.08) 50%,
      rgba(139, 90, 43, 0.03) 100%),
    linear-gradient(180deg, #fdfaf5 0%, #f8f0e5 100%) !important;
  box-shadow:
    0 4px 20px rgba(139, 90, 43, 0.15),
    0 0 30px rgba(218, 165, 32, 0.1),
    inset 0 0 40px rgba(255, 255, 255, 0.3) !important;
}

.markdown-body details:not(.b) > summary {
  display: flex !important;
  align-items: center !important;
  padding: 12px 16px !important;
  background:
    linear-gradient(180deg,
      rgba(139, 90, 43, 0.08) 0%,
      rgba(180, 130, 70, 0.05) 50%,
      rgba(139, 90, 43, 0.12) 100%) !important;
  border-bottom: 1px solid rgba(139, 90, 43, 0.15) !important;
  cursor: pointer !important;
  font-family: "STKaiti", "KaiTi", "楷体", serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #6b4423 !important;
  letter-spacing: 1px !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5) !important;
  list-style: none !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

.markdown-body details:not(.b) > summary::-webkit-details-marker {
  display: none !important;
}

.markdown-body details:not(.b) > summary::marker {
  display: none !important;
  content: "" !important;
}

.markdown-body details:not(.b) > summary::before {
  content: "☯" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  margin-right: 10px !important;
  font-size: 16px !important;
  color: #8b5a2b !important;
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(245, 230, 200, 0.6) 100%) !important;
  border: 1px solid rgba(139, 90, 43, 0.3) !important;
  border-radius: 50% !important;
  box-shadow:
    0 1px 3px rgba(139, 90, 43, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  flex-shrink: 0 !important;
}

.markdown-body details:not(.b)[open] > summary::before {
  transform: rotate(180deg) !important;
  color: #b8860b !important;
  background: linear-gradient(145deg,
    rgba(255, 215, 0, 0.2) 0%,
    rgba(245, 230, 200, 0.8) 100%) !important;
  box-shadow:
    0 2px 8px rgba(218, 165, 32, 0.4),
    0 0 15px rgba(218, 165, 32, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.markdown-body details:not(.b) > summary::after {
  content: "❧" !important;
  position: absolute !important;
  right: 16px !important;
  font-size: 14px !important;
  color: rgba(139, 90, 43, 0.4) !important;
  transition: all 0.3s ease !important;
}

.markdown-body details:not(.b)[open] > summary::after {
  content: "❦" !important;
  color: rgba(184, 134, 11, 0.6) !important;
  text-shadow: 0 0 8px rgba(218, 165, 32, 0.4) !important;
}

.markdown-body details:not(.b) > summary:hover {
  background:
    linear-gradient(180deg,
      rgba(139, 90, 43, 0.12) 0%,
      rgba(180, 130, 70, 0.08) 50%,
      rgba(139, 90, 43, 0.15) 100%) !important;
  color: #5a3a1a !important;
}

.markdown-body details:not(.b) > summary:hover::before {
  transform: scale(1.1) !important;
}

.markdown-body details:not(.b)[open] > summary:hover::before {
  transform: rotate(180deg) scale(1.1) !important;
}

.markdown-body details:not(.b) > *:not(summary) {
  padding: 16px 20px !important;
  color: #5d4e37 !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  animation: unfurlScroll 0.4s ease-out !important;
}

@keyframes unfurlScroll {
  0% {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px;
  }
}

/* ═══════════════════════════════════════════
   九、代码块美化
   ═══════════════════════════════════════════ */

.markdown-body pre {
  background:
    linear-gradient(180deg,
      rgba(255, 252, 248, 0.95) 0%,
      rgba(250, 245, 235, 0.9) 50%,
      rgba(245, 240, 230, 0.95) 100%) !important;
  border: 1px solid rgba(139, 90, 43, 0.3) !important;
  border-radius: 8px !important;
  margin: 1em 0 !important;
  padding: 0 !important;
  box-shadow:
    0 2px 8px rgba(139, 90, 43, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  overflow: hidden !important;
  position: relative !important;
  transition: all 0.3s ease !important;
}

.markdown-body details:not(.b) pre {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.markdown-body pre:hover {
  border-color: rgba(139, 90, 43, 0.45) !important;
  box-shadow:
    0 4px 16px rgba(139, 90, 43, 0.15),
    0 0 20px rgba(218, 165, 32, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.markdown-body details:not(.b) pre:hover {
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.markdown-body pre > div {
  background: transparent !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.markdown-body pre > div > div.flex.justify-between.h-8,
.markdown-body pre > div > div.border-b {
  background:
    linear-gradient(180deg,
      rgba(139, 90, 43, 0.08) 0%,
      rgba(180, 130, 70, 0.04) 50%,
      rgba(139, 90, 43, 0.1) 100%) !important;
  border-bottom: 1px solid rgba(139, 90, 43, 0.15) !important;
  padding: 6px 12px 6px 14px !important;
  transition: all 0.3s ease !important;
}

.markdown-body details:not(.b) pre > div > div.flex.justify-between.h-8,
.markdown-body details:not(.b) pre > div > div.border-b {
  background:
    linear-gradient(180deg,
      rgba(139, 90, 43, 0.05) 0%,
      rgba(180, 130, 70, 0.03) 100%) !important;
  border-bottom: 1px solid rgba(139, 90, 43, 0.12) !important;
  padding: 5px 12px !important;
}

.markdown-body pre code[class^="language-"],
.markdown-body pre > div > div[node] > code,
.markdown-body pre > code[node],
.markdown-body pre > code:only-child {
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
  color: #4a3f35 !important;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  word-break: break-all !important;
  letter-spacing: 0.2px !important;
}

.markdown-body details:not(.b) pre code[class^="language-"],
.markdown-body details:not(.b) pre > div > div[node] > code,
.markdown-body details:not(.b) pre > code[node],
.markdown-body details:not(.b) pre > code:only-child {
  font-size: 11.5px !important;
  line-height: 1.65 !important;
}

.markdown-body pre,
.markdown-body pre *,
.markdown-body pre > div,
.markdown-body pre > div > div,
.markdown-body pre > div > div[node],
.markdown-body pre code {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.markdown-body pre::-webkit-scrollbar,
.markdown-body pre *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.markdown-body pre ::selection {
  background: rgba(218, 165, 32, 0.25) !important;
  color: #3a2a1a !important;
}

@media (max-width: 768px) {
  .markdown-body pre code[class^="language-"],
  .markdown-body pre > div > div[node] > code {
    font-size: 11px !important;
  }

  .markdown-body details:not(.b) pre code[class^="language-"],
  .markdown-body details:not(.b) pre > div > div[node] > code {
    font-size: 10.5px !important;
  }
}
.a{
  position:fixed;
  right:0;
  top:50%;
  transform:translateY(-58%);
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:0;
  z-index:2147483647;
  pointer-events:none;
  font-family:"STKaiti","KaiTi","楷体","Noto Serif SC","SimSun",serif;
}
.b{
  position:relative;
  pointer-events:auto;
  z-index:2147483640;
  transition:z-index 0s;
  flex-shrink:0;
}
.b[open]{
  z-index:2147483647;
}
.b:nth-of-type(1){ margin-bottom:1px; }
.b:nth-of-type(2){ margin-bottom:1px; }
.b:nth-of-type(3){ margin-bottom:1px; }
.b:nth-of-type(4){ margin:0; }
.c{
  writing-mode:vertical-rl;
  text-orientation:upright;
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 8px;
  letter-spacing:0.2em;
  font-size:15px;
  font-weight:700;
  color:#5a3e1b;
  background:
    linear-gradient(135deg,
      rgba(234,221,195,0.97) 0%,
      rgba(215,198,166,0.95) 40%,
      rgba(234,221,195,0.97) 60%,
      rgba(205,186,153,0.93) 100%);
  border-left:3px solid #b8956a;
  border-top:1px solid rgba(184,149,106,0.4);
  border-bottom:1px solid rgba(184,149,106,0.4);
  box-shadow:
    -3px 0 12px rgba(90,62,27,0.15),
    inset 0 0 20px rgba(255,248,235,0.5),
    inset -1px 0 8px rgba(184,149,106,0.2);
  text-shadow:
    0 0 6px rgba(184,149,106,0.3),
    1px 1px 0 rgba(255,248,235,0.6);
  position:relative;
  overflow:hidden;
  transition:all 0.3s ease;
  user-select:none;
  -webkit-user-select:none;
  -webkit-tap-highlight-color:transparent;
}
.c::-webkit-details-marker{display:none;}
.c::marker{display:none;content:"";}
.c::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(184,149,106,0.04) 3px,
      rgba(184,149,106,0.04) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 5px,
      rgba(184,149,106,0.03) 5px,
      rgba(184,149,106,0.03) 6px
    );
  pointer-events:none;
  z-index:1;
}
.c:hover{
  color:#8b4513;
  background:
    linear-gradient(135deg,
      rgba(244,233,210,0.98) 0%,
      rgba(228,212,182,0.97) 40%,
      rgba(244,233,210,0.98) 60%,
      rgba(218,200,168,0.95) 100%);
  border-left-color:#8b4513;
  box-shadow:
    -5px 0 18px rgba(139,69,19,0.2),
    inset 0 0 25px rgba(255,248,235,0.6),
    0 0 12px rgba(184,149,106,0.15);
  text-shadow:
    0 0 10px rgba(139,69,19,0.25),
    0 0 20px rgba(184,149,106,0.15);
}
.b[open]>.c{
  color:#7b2d00;
  background:
    linear-gradient(135deg,
      rgba(248,238,218,0.99) 0%,
      rgba(235,220,192,0.98) 50%,
      rgba(248,238,218,0.99) 100%);
  border-left:4px solid #7b2d00;
  box-shadow:
    -6px 0 20px rgba(123,45,0,0.2),
    inset 0 0 30px rgba(255,248,235,0.7),
    0 0 15px rgba(184,149,106,0.2);
}
.c::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:4px;
  width:2px;
  height:0;
  background:linear-gradient(180deg,#b8956a,transparent);
  transition:height 0.3s;
  z-index:2;
}
.c:hover::after{height:12px;}
.d{
  position:absolute;
  right:100%;
  top:50%;
  transform:translateY(-50%);
  width:clamp(260px,42vw,400px);
  max-height:70vh;
  overflow-y:auto;
  overflow-x:hidden;
  z-index:2147483647;
  background:
    linear-gradient(170deg,
      rgba(245,237,220,0.98) 0%,
      rgba(234,221,195,0.97) 30%,
      rgba(225,210,183,0.96) 60%,
      rgba(234,221,195,0.97) 100%);
  border:2px solid #b8956a;
  border-right:none;
  border-radius:12px 0 0 12px;
  padding:20px 18px;
  box-shadow:
    -8px 0 30px rgba(90,62,27,0.18),
    inset 0 0 40px rgba(255,248,235,0.4),
    inset 0 2px 8px rgba(184,149,106,0.1);
  color:#3e2b0f;
  font-size:13.5px;
  line-height:1.75;
  animation:e 0.35s cubic-bezier(0.22,0.61,0.36,1) forwards;
}
.d::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(184,149,106,0.03) 2px,
      rgba(184,149,106,0.03) 3px
    ),
    radial-gradient(
      ellipse at 20% 50%,
      rgba(184,149,106,0.06) 0%,
      transparent 70%
    );
  border-radius:12px 0 0 12px;
  pointer-events:none;
  z-index:0;
}
.d>*{position:relative;z-index:1;}
.d::-webkit-scrollbar{width:5px;}
.d::-webkit-scrollbar-track{background:rgba(184,149,106,0.1);border-radius:3px;}
.d::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#c4a26a,#b8956a,#a07840);
  border-radius:3px;
}
.d::-webkit-scrollbar-thumb:hover{background:#8b6914;}
.d::after{
  content:"✾ ✾ ✾";
  display:block;
  text-align:center;
  color:rgba(184,149,106,0.35);
  font-size:10px;
  letter-spacing:8px;
  margin-top:14px;
  position:relative;
  z-index:1;
}
@keyframes e{
  from{opacity:0;transform:translateY(-50%) translateX(15px);}
  to{opacity:1;transform:translateY(-50%) translateX(0);}
}
.f{
  text-align:center;
  font-size:16px;
  font-weight:700;
  color:#7b2d00;
  margin:0 0 14px 0;
  padding-bottom:10px;
  letter-spacing:0.15em;
  border-bottom:1px solid rgba(184,149,106,0.4);
  text-shadow:0 0 8px rgba(184,149,106,0.2);
  position:relative;
}
.f::after{
  content:"";
  position:absolute;
  bottom:-1px;
  left:50%;
  transform:translateX(-50%);
  width:60%;
  height:1px;
  background:linear-gradient(90deg,transparent,#b8956a,transparent);
}
.g{
  font-size:14px;
  font-weight:700;
  color:#5a3e1b;
  margin:12px 0 4px 0;
  padding-left:8px;
  border-left:3px solid #c4a26a;
  text-shadow:0 0 4px rgba(184,149,106,0.15);
}
.h{
  font-size:13px;
  color:#4a3520;
  margin:3px 0 3px 12px;
  line-height:1.7;
  word-break:break-all;
}
.i{
  display:inline;
  color:#b8956a;
  margin:0 4px;
  font-size:12px;
}
.j{
  border:none;
  border-top:1px dashed rgba(184,149,106,0.45);
  margin:10px 0;
}
.k{
  display:none;
}
.q{
  color:#8b4513;
  font-weight:700;
  font-size:13.5px;
}
.r{
  display:inline-block;
  background:linear-gradient(135deg,rgba(184,149,106,0.2),rgba(184,149,106,0.08));
  border:1px solid rgba(184,149,106,0.35);
  border-radius:4px;
  padding:1px 6px;
  font-size:11.5px;
  color:#6b4c1e;
  margin:0 2px;
  white-space:nowrap;
}
.s{
  font-size:12px;
  color:#6b5a3e;
  margin:2px 0 6px 20px;
  line-height:1.65;
  font-style:italic;
  opacity:0.88;
}
.a:not(:last-of-type) {
  z-index: 2147483640;
}
.a:last-of-type {
  z-index: 2147483647;
}
.a:not(:last-of-type):has(.b[open]) {
  z-index: 2147483647;
}
.a:has(.b[open]) ~ .a:not(:has(.b[open])) {
  z-index: 2147483640;
}
.a:not(:last-of-type):not(:has(.b[open])) {
  pointer-events: none;
}
.a:not(:last-of-type):not(:has(.b[open])) .b {
  pointer-events: auto;
}
.a:not(:last-of-type):has(.b[open]) {
  pointer-events: auto;
}
@media(min-width:1401px){
  .a{right:0;transform:translateY(-58%);}
  .d{width:400px;}
  .c{font-size:15px;padding:10px 8px;}
}
@media(min-width:1025px) and (max-width:1400px){
  .a{right:0;transform:translateY(-58%);}
  .d{width:370px;}
  .c{font-size:14.5px;padding:9px 7px;}
}
@media(min-width:769px) and (max-width:1024px){
  .a{right:0;transform:translateY(-58%);}
  .d{width:320px;}
  .c{font-size:13.5px;padding:8px 6px;letter-spacing:0.18em;}
}
@media(min-width:601px) and (max-width:768px){
  .a{right:0;transform:translateY(-58%);}
  .d{width:calc(100vw - 50px);max-width:340px;}
  .c{font-size:12.5px;padding:7px 5px;letter-spacing:0.16em;border-left-width:2px;}
  .c:hover::after{height:8px;}
  .f{font-size:14.5px;}
  .g{font-size:13px;}
  .h{font-size:12.5px;}
  .s{font-size:11.5px;}
}
@media(min-width:481px) and (max-width:600px){
  .a{right:0;transform:translateY(-58%);}
  .d{width:calc(100vw - 44px);max-width:310px;padding:16px 14px;max-height:65vh;}
  .c{font-size:11.5px;padding:6px 4px;letter-spacing:0.14em;border-left-width:2px;}
  .f{font-size:14px;margin-bottom:10px;padding-bottom:8px;}
  .g{font-size:12.5px;margin:9px 0 3px 0;}
  .h{font-size:12px;margin-left:8px;}
  .s{font-size:11px;margin-left:14px;}
  .r{font-size:10.5px;padding:1px 4px;}
}
@media(min-width:381px) and (max-width:480px){
  .a{right:0;transform:translateY(-58%);}
  .d{width:calc(100vw - 38px);max-width:290px;padding:14px 12px;max-height:60vh;border-radius:10px 0 0 10px;}
  .c{font-size:11px;padding:5px 3px;letter-spacing:0.12em;border-left-width:2px;}
  .f{font-size:13.5px;letter-spacing:0.1em;}
  .g{font-size:12px;}
  .h{font-size:11.5px;}
  .s{font-size:10.5px;}
  .r{font-size:10px;padding:0 3px;}
}
@media(max-width:380px){
  .a{right:0;transform:translateY(-58%);}
  .d{width:calc(100vw - 32px);max-width:260px;padding:12px 10px;max-height:58vh;border-radius:8px 0 0 8px;}
  .c{font-size:10px;padding:4px 3px;letter-spacing:0.1em;border-left-width:2px;}
  .f{font-size:12.5px;letter-spacing:0.08em;}
  .g{font-size:11.5px;padding-left:6px;border-left-width:2px;}
  .h{font-size:11px;margin-left:6px;}
  .s{font-size:10px;margin-left:10px;}
  .r{font-size:9.5px;padding:0 3px;}
  .d::-webkit-scrollbar{width:3px;}
}
@media(max-width:600px){
  .b[open]>.d{right:100%;max-width:calc(100vw - 36px);}
}
@media(max-width:600px){
  .b[open]::before{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(30,20,5,0.25);
    z-index:-1;
    animation:ac 0.25s ease forwards;
  }
  @keyframes ac{
    from{opacity:0;}
    to{opacity:1;}
  }
}
@media (min-width:1024px) and (orientation:landscape) {
  .a {
    right: 0;
    max-width: 100vw;
    overflow: visible;
  }
  .c {
    min-width: 36px;
    box-sizing: border-box;
  }
  .d {
    width: clamp(280px, 28vw, 420px);
    max-width: calc(100vw - 60px);
    max-height: 75vh;
  }
  .b[open] > .d {
    max-width: calc(100vw - 50px);
  }
}
@media (min-width:1920px) {
  .d {
    width: clamp(320px, 22vw, 450px);
  }
  .c {
    font-size: 15px;
    padding: 11px 9px;
  }
}
@media (min-width:2560px) {
  .d {
    width: clamp(350px, 18vw, 480px);
  }
}
@media (min-width:1024px) and (max-height:800px) {
  .a {
    transform: translateY(-50%);
  }
  .d {
    max-height: 65vh;
    padding: 16px 14px;
  }
  .c {
    padding: 7px 6px;
    font-size: 13.5px;
  }
}
@media (min-width:1200px) and (max-height:600px) {
  .a {
    transform: translateY(-50%);
  }
  .d {
    max-height: 55vh;
    padding: 12px 10px;
  }
  .c {
    padding: 5px 4px;
    font-size: 12px;
    letter-spacing: 0.15em;
  }
  .f { font-size: 14px; }
  .g { font-size: 12.5px; }
  .h { font-size: 12px; }
  .s { font-size: 11px; }
}
.ui-beautifier-container {
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  background: #fdfaf5;
  border: 2px solid #5a3e1b;
  padding: 20px;
  max-width: 900px;
  margin: 20px auto;
  line-height: 1.8;
  color: #2b2110;
  box-shadow: 0 0 15px rgba(90, 62, 27, 0.5);
}

.section {
  border: 2px solid #c2a875;
  margin-bottom: 25px;
  background: linear-gradient(to bottom, #fdfaf5 0%, #faf3e6 100%);
  box-shadow: inset 0 0 12px rgba(144, 120, 72, 0.15);
  border-radius: 8px;
}

/* 注：原代码中 .section-title 存在两种不同样式设定，此处皆为您提取保留。
   在实际生效时，后面的样式会覆盖前面相同的属性（如字体大小、边框等） */
.section-title {
  background: #e7ddb6;
  padding: 8px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px dashed #8b5e34;
  font-size: 16px;
  letter-spacing: 1px;
}

.section-title {
  font-weight: bold;
  text-align: center;
  color: #4a351f;
  margin-bottom: 8px;
  font-size: 15px;
  border-bottom: 1px dashed #a37b44;
  padding-bottom: 3px;
}

.section-body {
  padding: 15px 20px;
  font-size: 15px;
  color: #31291d;
}

.section-body p {
  margin: 8px 0;
}

.story-content {
  background: #fffdf8;
  border-left: 4px solid #8b5e34;
  padding: 15px;
  font-size: 15px;
  margin-bottom: 25px;
}

.status-bar {
  background: #fbf6ef;
  border: 2px solid #c2a875;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: inset 0 0 8px rgba(102, 85, 46, 0.2);
}
.npc-status-card {
  --npc-bg: #fdfaf5;
  --npc-bg-soft: #faf3e6;
  --npc-border-dark: #5a3e1b;
  --npc-border-light: #c2a875;
  --npc-gold: #a37b44;
  --npc-text: #2b2110;
  --npc-muted: #6f5a37;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;

  max-width: 520px;
  margin: 24px auto;
  padding: 22px 20px;
  box-sizing: border-box;

  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  color: var(--npc-text);
  line-height: 1.7;

  background:
    radial-gradient(circle at top left, rgba(194, 168, 117, 0.25), transparent 38%),
    linear-gradient(to bottom, var(--npc-bg) 0%, var(--npc-bg-soft) 100%);
  border: 2px solid var(--npc-border-dark);
  border-radius: 12px;

  box-shadow:
    0 0 18px rgba(90, 62, 27, 0.4),
    inset 0 0 14px rgba(144, 120, 72, 0.14);
  position: relative;
  overflow: hidden;
}

/* ============ 图片区（保留描金边框） ============ */
.npc-portrait {
  width: 240px;
  aspect-ratio: 3 / 4;
  position: relative;
  margin-top: 4px;
  border-radius: 8px;
  background: #fffdf6;

  box-shadow:
    0 0 0 1px #fffdf6,
    0 0 0 2px var(--npc-border-dark),
    0 0 0 4px var(--npc-border-light),
    0 0 0 5px var(--npc-border-dark),
    0 6px 16px rgba(90, 62, 27, 0.32);
}

.npc-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  filter: sepia(0.06) contrast(1.04) saturate(0.97);
}

/* 四角描金小装饰 */
.npc-portrait::before,
.npc-portrait::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--npc-gold);
  pointer-events: none;
}
.npc-portrait::before {
  top: -4px; left: -4px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 6px;
}
.npc-portrait::after {
  bottom: -4px; right: -4px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 6px;
}

/* ============ 信息区（去掉外框，保留留白） ============ */
.npc-info {
  width: 100%;
  box-sizing: border-box;
  padding: 0 4px;
}

.npc-info h2 {
  margin: 0;
  padding: 2px 0 6px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 3px;
  color: #4a351f;
  border-bottom: 1px dashed var(--npc-gold);
  text-shadow: 0 1px 0 #fff8e8;
}

.npc-subtitle {
  margin: 6px 0 14px;
  text-align: center;
  font-size: 12px;
  color: var(--npc-muted);
  letter-spacing: 1px;
}

/* 信息表：去掉每项的边框，用底色区分 */
.npc-info-grid {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 6px 10px;
  margin-bottom: 14px;
}

.npc-info-grid span,
.npc-info-grid b {
  min-height: 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.npc-info-grid span {
  justify-content: center;
  color: #6b4a22;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 2px;
}

.npc-info-grid b {
  padding: 3px 10px;
  font-size: 13px;
  font-weight: normal;
  color: #31291d;
  background: rgba(255, 253, 248, 0.85);
  border-left: 3px solid var(--npc-gold);
  border-radius: 3px;
}

.status-good { color: #48672b !important; }

.npc-desc {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.8;
  color: #31291d;
  background: rgba(255, 253, 248, 0.7);
  border-left: 3px solid #8b5e34;
  border-radius: 3px;
}

/* ============ 移动端微调 ============ */
@media (max-width: 480px) {
  .npc-status-card {
    padding: 18px 14px;
    gap: 14px;
  }

  .npc-portrait {
    width: min(200px, 65%);
  }

  .npc-info {
    padding: 0;
  }

  .npc-info-grid {
    grid-template-columns: 48px 1fr;
    gap: 5px 8px;
  }

  .npc-info h2 { font-size: 19px; letter-spacing: 2px; }
  .npc-subtitle { font-size: 11px; }
  .npc-info-grid span { font-size: 11px; letter-spacing: 1px; }
  .npc-info-grid b { font-size: 12px; padding: 2px 8px; }
  .npc-desc { font-size: 12px; padding: 8px 10px; }
}

/* 通用表情样式：所有单字母类名共享 */
.A, .B, .C, .D, .E, .F, .G, .H, .I, .J, .K, .L, .M,
.N, .O, .P, .Q, .R, .S, .T, .U, .V, .W, .X, .Y, .Z,
.aA, .aB, .aC, .aD, .aE, .aF, .aG, .aH, .aI, .aJ {
  display: block;              /* 块级 → 配合 margin 居中 */
  width: 210px;                /* 默认大图尺寸 */
  height: 210px;
  margin: 14px auto;           /* 上下间距 + 水平居中 */
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

/* 移动端自适应 */
@media (max-width: 420px) {
  .A, .B, .C, .D, .E, .F, .G, .H, .I, .J, .K, .L, .M,
  .N, .O, .P, .Q, .R, .S, .T, .U, .V, .W, .X, .Y, .Z,
  .aA, .aB, .aC, .aD, .aE, .aF, .aG, .aH, .aI, .aJ {
    width: min(240px, 75%);
    height: auto;
    aspect-ratio: 1 / 1 ;
  }
}
/* ═══════════════════════════════════════════
   图片放置区（A - Z）
   ══════════════════════════════════════════ */

.A { background-image: url('https://i.postimg.cc/pXmGwqs9/IMG-0648.png'); }
.B { background-image: url('https://i.postimg.cc/YqmLVgf2/IMG-0677.png'); }
.C { background-image: url('https://i.postimg.cc/w3KMHf5G/IMG-0747.png'); }
.D { background-image: url('https://i.postimg.cc/gc1HnGgd/IMG-0748.png'); }
.E { background-image: url('https://i.postimg.cc/pLDLHJ6c/IMG-0684.png'); }
.F { background-image: url('https://i.postimg.cc/m27PL4cr/IMG-0680.png'); }
.G { background-image: url('https://i.postimg.cc/TwKJV6qK/IMG-0790.png'); }
.H { background-image: url('https://i.postimg.cc/50Fxs5Lj/IMG-0671.png'); }
.I { background-image: url('https://i.postimg.cc/7L5DL1B0/IMG-0667.png'); }
.J { background-image: url('https://i.postimg.cc/7L5DL1B0/IMG-0667.png'); }
.K { background-image: url('https://i.postimg.cc/7hVj9bsY/IMG-0661.png'); }
.L { background-image: url('https://i.postimg.cc/qq0922Lh/IMG-0659.png'); }
.M { background-image: url('https://i.postimg.cc/B63hz41F/IMG-0646.png'); }
.N { background-image: url('https://i.postimg.cc/DfBCCVfL/IMG-0647.png'); }
.O { background-image: url('https://i.postimg.cc/50Fxs5Lj/IMG-0671.png'); }
.P { background-image: url('https://i.postimg.cc/NMfhs4ZY/IMG-0650.png'); }
.Q { background-image: url('https://i.postimg.cc/vZwf4nKF/IMG-0791.png'); }
.R { background-image: url('https://i.postimg.cc/kXmrMJmY/IMG-0792.png'); }
.S { background-image: url('https://i.postimg.cc/7h2ys92g/IMG-0795.png'); }
.T { background-image: url('https://i.postimg.cc/L4gDjYcV/IMG-0797.png'); }
.U { background-image: url('https://i.postimg.cc/zDWYKdSj/IMG-0793.png'); }
.V { background-image: url('https://i.postimg.cc/gkZY9DC9/IMG-0798.png'); }
.W { background-image: url('https://i.postimg.cc/X74pgtZs/IMG-0799.png'); }
.X { background-image: url('https://i.postimg.cc/Dw2Y7CRh/IMG-0819.png'); }
.Y { background-image: url('https://i.postimg.cc/KcHgm043/IMG-0645.png'); }
.Z { background-image: url('https://i.postimg.cc/gkR2VFbT/IMG-0811.png'); }
.aA { background-image: url('https://i.postimg.cc/QdszxPgF/IMG-0812.png'); }
.aB { background-image: url('https://i.postimg.cc/4Nh5k1rX/IMG-0813.png'); }
.aC { background-image: url('https://i.postimg.cc/g0MW0yB3/IMG-0814.png'); }
.aD { background-image: url('https://i.postimg.cc/2jWS0JKW/IMG-0815.png'); }
.aE { background-image: url('https://i.postimg.cc/sxnhws7B/IMG-0817.png'); }
.aF { background-image: url('https://i.postimg.cc/5NNG0gt8/IMG-0818.png'); }
.aG { background-image: url('https://i.postimg.cc/y8j9znzq/IMG-0820.png'); }
.aH { background-image: url('https://i.postimg.cc/gctTGqms/IMG-0821.png'); }
.aI { background-image: url(''); }
.aJ { background-image: url(''); }