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

/* 统一设置聊天框（输入与输出）样式 */
.bg-gray-100\/90.relative.inline-block {
    background-color: #000000 !important; /* 纯黑背景 */
    border: 1.5px solid #FF0000 !important; /* 红色边框 */
    border-radius: 12px !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2) !important; /* 微弱红光阴影 */
}

/* 聊天框内的主要文本内容 */
.markdown-body {
    color: #D3D3D3 !important; /* 浅灰色字体 */
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* 底部附加元素（按钮、模型名称、Token消耗） */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary,
.MuiTypography-root.MuiTypography-body2.css-6c0gf2,
.text-orange-500 {
    color: #D3D3D3 !important; /* 统一浅灰色 */
    background-color: #000000 !important;
}

/* 按钮悬停效果增强 */
.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary:hover {
    background-color: rgba(255, 0, 0, 0.1) !important;
    color: #FF0000 !important;
}

/* 强制覆盖整体背景颜色（如果平台允许） */
#__next, .min-h-screen {
    background-color: #000000 !important;
}

/* 调整输入栏占位符颜色 */
textarea::placeholder {
    color: #666666 !important;
}



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

/* 2. 确保加载动画的父容器相对定位，以便定位自定义动画 */
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important;
    /* 确保容器有足够的宽高来展示动画 */
    min-width: 24px !important;
    min-height: 24px !important;
}

/* 3. 使用 ::before 伪元素和内联 SVG SMIL 创建红色眨眼动画 */
.flex.items-center.justify-center.w-6.h-5::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 24px !important;
    height: 24px !important;
    /* 
       使用 data URI 嵌入 SVG。
       SVG 包含一个绘制眼睛轮廓的 path 和一个代表瞳孔的 circle。
       使用 <animate> 标签实现路径形变（眨眼）和瞳孔缩放的 SMIL 动画。
    */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='red' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12 Q12 2 22 12 Q12 22 2 12'%3E%3Canimate attributeName='d' values='M2 12 Q12 2 22 12 Q12 22 2 12; M2 12 Q12 11 22 12 Q12 13 2 12; M2 12 Q12 2 22 12 Q12 22 2 12' dur='3s' repeatCount='indefinite'/%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3Canimate attributeName='r' values='3; 0; 3' dur='3s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    z-index: 10 !important;
}

/* 4. 移动端及低动效偏好适配微调 */
@media (max-width: 480px) {
    .flex.items-center.justify-center.w-6.h-5::before {
        width: 20px !important;
        height: 20px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* 在需要减少动画时，保持 SVG 可见，但可以通过调整 SVG 内部来减缓，此处保持默认 SMIL 运行以防完全失效 */
    .flex.items-center.justify-center.w-6.h-5::before {
        opacity: 0.8 !important;
    }
}

/* ===== 状态栏红黑主题（适配世界观） ===== */

/* ----- 面板容器 ----- */
.panel {
    background-color: #000000;
    border: 1px solid #8B0000;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #D3D3D3;
}

/* ----- 折叠标题（summary）----- */
.panel > summary {
    background: linear-gradient(90deg, #8B0000 0%, #000000 100%);
    color: #ffffff;
    padding: 8px 15px;
    font-weight: bold;
    font-family: 'Impact', 'Arial Black', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #9d0000;
    list-style: none;               /* 隐藏默认三角 */
}
.panel > summary::-webkit-details-marker {
    display: none;
}
.panel > summary::marker {
    display: none;
}

/* ----- 内容区域 ----- */
.panel-content {
    padding: 15px;
    line-height: 1.6;
}

/* ----- 通用标签（红色强调）----- */
.label {
    color: #ff4d4d;
}
.sub-label {
    color: #ff4d4d;
    font-weight: normal;
}

/* ----- 状态区块（身体部位）----- */
.status-block {
    margin-top: 15px;
    padding: 10px;
    background: rgba(139, 0, 0, 0.1);
    border-left: 3px solid #8B0000;
}
.status-title {
    color: #ffffff;
    text-transform: uppercase;
    font-weight: bold;
}

/* ----- 信息行（姓名/年龄/性别/种族等）----- */
.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.info-row span {
    white-space: nowrap;
}

/* ----- 天赋悬停提示（默认title样式，额外美化）----- */
.talent {
    color: #ff4d4d;
    font-weight: bold;
    cursor: help;
    border-bottom: 1px dashed #8B0000;
    padding-bottom: 1px;
}
.talent:hover {
    color: #ff6666;
}

/* ----- Ano值进度条 ----- */
.ano-track {
    width: 100%;
    height: 12px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    margin: 4px 0 6px 0;
    overflow: hidden;
}
.ano-fill {
    height: 100%;
    background: linear-gradient(90deg, #4b0000 0%, #8B0000 100%);
    box-shadow: 0 0 8px #ff0000;
    transition: width 0.3s ease;
}
.ano-text {
    font-size: 0.9em;
    color: #bbb;
    display: inline-block;
    margin-bottom: 2px;
}
.ano-text strong {
    color: #ff4d4d;
}

/* ----- 终端信息区块 ----- */
.terminal-message {
    border-left: 2px solid #8B0000;
    padding-left: 12px;
    margin-bottom: 10px;
}
.terminal-message .term-label {
    color: #8B0000;
    font-weight: bold;
}
.terminal-feed {
    border-left: 2px solid #555;
    padding-left: 12px;
}
.terminal-feed .feed-label {
    color: #999;
    font-weight: bold;
}

/* ----- 行动推荐列表 ----- */
.action-list {
    padding-left: 20px;
    margin: 6px 0;
}
.action-list li {
    margin-bottom: 6px;
    list-style-type: decimal;
}
.action-list li .action-label {
    color: #ff4d4d;
    font-weight: bold;
}