/* 统一聊天框 - 历史厚重感主题 */
.bg-gray-100\/90.relative.inline-block {
    background: linear-gradient(135deg, #2c1810 0%, #1a0f08 50%, #0d0604 100%) !important;
    border: 2px solid #d4af37 !important;
    border-radius: 8px !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(212, 175, 55, 0.3),
        0 0 40px rgba(212, 175, 55, 0.15) !important;
    position: relative !important;
    isolation: isolate !important;
}

/* 古典纹理背景效果 */
.bg-gray-100\/90.relative.inline-block::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(212, 175, 55, 0.03) 2px,
            rgba(212, 175, 55, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(212, 175, 55, 0.03) 2px,
            rgba(212, 175, 55, 0.03) 4px
        ) !important;
    border-radius: 6px !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* 金色光晕装饰 */
.bg-gray-100\/90.relative.inline-block::after {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.1) 25%, 
        transparent 50%, 
        rgba(212, 175, 55, 0.1) 75%, 
        transparent 100%) !important;
    border-radius: 8px !important;
    pointer-events: none !important;
    z-index: 0 !important;
    animation: shimmer 8s linear infinite !important;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 聊天框内文本 - 高对比度纯白色 */
.markdown-body {
    color: #FFFFFF !important;
    font-family: 'Georgia', 'Times New Roman', serif, system-ui, -apple-system !important;
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
    line-height: 1.8 !important;
    letter-spacing: 0.3px !important;
}

/* 移除顶部颜色装饰条 */
[class*="bg-[#F1CBCB]"], 
[class*="bg-[#c9e1e9]"] {
    display: none !important;
}

/* 底部按钮 - 金色主题 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary {
    color: #d4af37 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    font-size: 0.85rem !important;
}

.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    color: #f4d03f !important;
    background: rgba(212, 175, 55, 0.1) !important;
}

/* 模型名称文本 */
.MuiTypography-root.MuiTypography-body2.css-6c0gf2 {
    color: #c9a961 !important;
    font-weight: 500 !important;
    font-family: 'Georgia', serif !important;
}

/* Token消耗文本 */
.text-orange-500 {
    color: #d4af37 !important;
    font-weight: 600 !important;
}

/* 隐藏默认加载动画 */
.style_dot-flashing__8L91Q.style_text__zGhNq {
    display: none !important;
}

/* 自定义加载动画容器 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 古印章旋转加载动画 - SMIL SVG实现 */
.flex.items-center.justify-center.w-6.h-5::before {
    content: '' !important;
    position: absolute !important;
    width: 32px !important;
    height: 32px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='goldGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23d4af37;stop-opacity:1' /%3E%3Cstop offset='100%25' style='stop-color:%23f4d03f;stop-opacity:1' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='translate(50,50)'%3E%3Ccircle cx='0' cy='0' r='35' fill='none' stroke='url(%23goldGrad)' stroke-width='3' opacity='0.3'/%3E%3Cpath d='M-15,-15 L15,-15 L15,15 L-15,15 Z' fill='none' stroke='url(%23goldGrad)' stroke-width='2.5'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 0 0' to='360 0 0' dur='3s' repeatCount='indefinite'/%3E%3C/path%3E%3Ctext x='0' y='5' text-anchor='middle' font-size='20' font-weight='bold' fill='url(%23goldGrad)' font-family='serif'%3E印%3CanimateTransform attributeName='transform' type='rotate' from='0 0 0' to='-360 0 0' dur='3s' repeatCount='indefinite'/%3E%3C/text%3E%3C/g%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    z-index: 1 !important;
}

/* 加载动画光晕效果 */
.flex.items-center.justify-center.w-6.h-5::after {
    content: '' !important;
    position: absolute !important;
    width: 48px !important;
    height: 48px !important;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%) !important;
    animation: pulse 2s ease-in-out infinite !important;
    z-index: 0 !important;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* 移动端适配 */
@media (max-width: 480px) {
    .flex.items-center.justify-center.w-6.h-5::before {
        width: 28px !important;
        height: 28px !important;
    }
    
    .flex.items-center.justify-center.w-6.h-5::after {
        width: 40px !important;
        height: 40px !important;
    }
}

/* 低动效模式 */
@media (prefers-reduced-motion: reduce) {
    .bg-gray-100\/90.relative.inline-block::after {
        animation-duration: 16s !important;
    }
    
    @keyframes pulse {
        0%, 100% { 
            transform: scale(0.9);
            opacity: 0.6;
        }
        50% { 
            transform: scale(1.1);
            opacity: 0.7;
        }
    }
}

css
/* ═══════════════════════════════════════
   青铜历史风格状态栏 · Bronze UI Theme
   ═══════════════════════════════════════ */

.bronze-ui {
  font-family: "Noto Serif SC", "Source Han Serif CN", "SimSun", serif;
  background: linear-gradient(160deg, #1a1206 0%, #211808 40%, #1c1409 100%);
  border: 2px solid #7a5c1e;
  border-radius: 6px;
  padding: 12px 10px;
  box-shadow:
    0 0 0 1px #3d2e08,
    0 0 18px rgba(90, 60, 5, 0.55),
    inset 0 0 40px rgba(0,0,0,0.6);
  color: #d4b978;
  max-width: 700px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ── Details 折叠栏 ── */
.bronze-details {
  margin-bottom: 8px;
  border: 1px solid #5a4010;
  border-radius: 4px;
  background: rgba(15, 10, 2, 0.55);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.bronze-details[open] {
  box-shadow: 0 0 10px rgba(160, 110, 20, 0.25), inset 0 0 20px rgba(0,0,0,0.3);
}

.bronze-summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #e8c96a;
  background: linear-gradient(90deg, #2b1f06, #1a1206 60%, #2b1f06);
  border-bottom: 1px solid #5a4010;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: background 0.2s, color 0.2s;
}

.bronze-summary:hover {
  background: linear-gradient(90deg, #3a2a08, #221808 60%, #3a2a08);
  color: #f5dc8a;
}

.bronze-summary::-webkit-details-marker { display: none; }

.bronze-summary::before {
  content: "▶";
  font-size: 10px;
  color: #9a7530;
  display: inline-block;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.bronze-details[open] > .bronze-summary::before {
  transform: rotate(90deg);
  color: #c9a84c;
}

/* ── 内容区 ── */
.bronze-content {
  padding: 12px 14px;
}

/* ── 分割线 ── */
.bronze-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #6a4e18, #9a7030, #6a4e18, transparent);
  margin: 12px 0;
}

/* ── 副标题 ── */
.bronze-subtitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #c9a84c;
  margin-bottom: 7px;
  padding-left: 6px;
  border-left: 3px solid #7a5c1e;
}

/* ── 信息行键值对 ── */
.bronze-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px;
  font-size: 13px;
  line-height: 1.65;
  align-items: baseline;
}

.info-key {
  color: #a07c35;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.info-val {
  color: #d4b978;
  word-break: break-all;
}

/* ── 六维能力网格 ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}

.stat-item {
  background: rgba(90, 60, 10, 0.25);
  border: 1px solid #4a3808;
  border-radius: 4px;
  padding: 5px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  font-size: 12px;
  color: #9a7530;
  letter-spacing: 1px;
}

.stat-val {
  font-size: 13px;
  font-weight: 700;
  color: #e8c96a;
}

/* ── 进度条 ── */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #1a1206;
  border: 1px solid #5a4010;
  border-radius: 4px;
  overflow: hidden;
  margin: 3px 0 6px;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.pf-favor {
  background: linear-gradient(90deg, #7a3a18, #c96030, #e8884a);
}

.pf-defense {
  background: linear-gradient(90deg, #1a3a5a, #2060a0, #40a0d0);
}

.pf-morale {
  background: linear-gradient(90deg, #2a4a1a, #508030, #80c050);
}

.pf-task {
  background: linear-gradient(90deg, #4a3800, #a08000, #d4b030);
}

/* ── 表格 ── */
.bronze-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 4px;
}

.bronze-table-wrap::-webkit-scrollbar { height: 5px; }
.bronze-table-wrap::-webkit-scrollbar-track { background: #1a1206; }
.bronze-table-wrap::-webkit-scrollbar-thumb { background: #5a4010; border-radius: 3px; }

.bronze-table {
  width: 100%;
  min-width: 380px;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.6;
}

.bronze-table th {
  background: linear-gradient(90deg, #2b1f06, #1e1507);
  color: #c9a84c;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 8px;
  border: 1px solid #4a3808;
  white-space: nowrap;
}

.bronze-table td {
  padding: 5px 8px;
  border: 1px solid #3a2c06;
  color: #c8a860;
  vertical-align: top;
  word-break: break-all;
}

.bronze-table tr:nth-child(even) td {
  background: rgba(60, 40, 5, 0.25);
}

.bronze-table tr:hover td {
  background: rgba(100, 70, 10, 0.3);
  color: #e8c96a;
}

/* ── NPC卡片 ── */
.npc-card {
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #4a3808;
  background: rgba(20, 14, 3, 0.5);
}

.npc-card.rarity-r {
  border-color: #2060a0;
  box-shadow: inset 0 0 12px rgba(30, 80, 160, 0.1);
}

.npc-card.rarity-n {
  border-color: #4a4030;
  box-shadow: inset 0 0 12px rgba(60, 50, 20, 0.1);
}

.npc-header {
  font-size: 14px;
  font-weight: 700;
  color: #e8c96a;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #4a3808;
  letter-spacing: 1px;
}

/* ── 地图 ── */
.map-box {
  background: rgba(10, 8, 2, 0.6);
  border: 1px solid #4a3808;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #a07c35;
  text-align: center;
}

.map-row {
  padding: 4px 0;
  color: #b89040;
  letter-spacing: 0.5px;
}

.map-mid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  gap: 4px;
}

.map-side {
  font-size: 11px;
  color: #8a6828;
  flex: 1;
  text-align: center;
}

.map-center {
  font-size: 13px;
  font-weight: 700;
  color: #e8c96a;
  padding: 4px 10px;
  border: 1px solid #7a5c1e;
  border-radius: 4px;
  background: rgba(50, 35, 5, 0.6);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── 任务卡片 ── */
.task-card {
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 8px;
  border-left: 3px solid #9a7030;
  background: rgba(20, 14, 3, 0.4);
}

.task-card.task-main {
  border-left-color: #c9a84c;
  background: rgba(40, 28, 5, 0.4);
}

.task-card.task-side {
  border-left-color: #5a8040;
}

.task-title {
  font-size: 13px;
  font-weight: 700;
  color: #e8c96a;
  margin-bottom: 6px;
}

.task-desc {
  font-size: 12px;
  color: #b89040;
  margin-bottom: 6px;
  line-height: 1.65;
}

/* ── 滚动事件区 ── */
.scroll-box {
  max-height: 180px;
  overflow-y: auto;
  background: rgba(10, 8, 2, 0.5);
  border: 1px solid #3a2c06;
  border-radius: 4px;
  padding: 8px 10px;
}

.scroll-box::-webkit-scrollbar { width: 5px; }
.scroll-box::-webkit-scrollbar-track { background: #1a1206; border-radius: 3px; }
.scroll-box::-webkit-scrollbar-thumb { background: #6a4e18; border-radius: 3px; }
.scroll-box::-webkit-scrollbar-thumb:hover { background: #8a6828; }

.event-item {
  font-size: 12px;
  color: #b89040;
  line-height: 1.7;
  padding: 2px 0;
  border-bottom: 1px dashed #3a2c06;
}

.event-item:last-child {
  border-bottom: none;
}

/* ── 行动选项 ── */
.action-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: action-counter;
}

.action-item {
  counter-increment: action-counter;
  position: relative;
  padding: 9px 12px 9px 40px;
  font-size: 13px;
  color: #d4b978;
  background: linear-gradient(90deg, rgba(50,35,5,0.55), rgba(30,20,3,0.4));
  border: 1px solid #5a4010;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  line-height: 1.5;
}

.action-item::before {
  content: counter(action-counter);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #3a2a08;
  border: 1px solid #7a5c1e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #c9a84c;
  line-height: 20px;
  text-align: center;
}

.action-item:hover {
  background: linear-gradient(90deg, rgba(90,65,10,0.7), rgba(60,42,8,0.6));
  border-color: #9a7030;
  color: #f0d888;
  box-shadow: 0 0 8px rgba(160, 110, 20, 0.3);
}

/* ══ 响应式适配 ══ */
@media (max-width: 768px) {
  .bronze-ui {
    padding: 8px 6px;
  }

  .bronze-summary {
    font-size: 14px;
    padding: 8px 10px;
  }

  .bronze-content {
    padding: 10px 8px;
  }

  .info-row {
    grid-template-columns: 70px 1fr;
    font-size: 12px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-mid-row {
    flex-direction: column;
    gap: 6px;
  }

  .map-side {
    font-size: 10px;
  }

  .bronze-table {
    font-size: 11px;
  }

  .bronze-table th,
  .bronze-table td {
    padding: 4px 5px;
  }

  .action-item {
    font-size: 12px;
    padding: 8px 10px 8px 36px;
  }
}