@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --color-primary: #7C3AED;
    --color-secondary: #A78BFA;
  }

  body {
    @apply bg-[#0A0A0F] text-white font-sans antialiased;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
  }
}

@layer utilities {
  .glass {
    @apply bg-white/5 backdrop-blur-xl border border-white/10;
  }

  .glass-hover {
    @apply transition-all duration-200 hover:bg-white/10 hover:border-white/20;
  }
}

/* ============= 消息渲染样式 ============= */

/* 引号美化 */
.message-body .quote-open,
.message-body .quote-close {
  color: rgba(139, 92, 246, 0.6);
}
.message-body .quote-content {
  color: rgb(139, 92, 246);
  font-weight: 500;
  padding: 0 2px;
}

/* 动作文本美化 *动作* */
.message-body .action-text {
  color: rgba(167, 139, 250, 0.85);
  font-style: italic;
}

/* 代码块样式 */
.message-body .code-block {
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 12px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0;
  position: relative;
}
.message-body .code-lang-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 4px;
  font-family: ui-monospace, 'Cascadia Code', monospace;
}
.message-body .code-block code {
  color: rgba(255, 255, 255, 0.9);
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
}

/* html-code-block 默认隐藏（由 StatusBarIframe 处理） */
.message-body .html-code-block {
  display: none;
}
