/* ========================================================= */
/* --- 1. 字体与基础设置 (逆命骑手·龙傲天·霓虹科技) --- */
/* ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&family=Orbitron:wght@600&display=swap');

.cinnamoroll-bubble {
    position: relative;
    margin: 30px 2px;
    border-radius: 18px 6px 18px 6px;
    font-family: 'Noto Sans SC', sans-serif;
    transition: all 0.2s ease-in-out;
    background: rgba(10, 15, 20, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: #e0f0ff;
    border: 1.5px solid #00ffff;
    box-shadow: 0 8px 0 #00141f, 0 12px 28px rgba(0,0,0,0.7), 0 0 18px #00ffff44;
    word-break: break-word;
}

.cinnamoroll-content {
    padding: 18px 16px !important;
    position: relative;
    z-index: 2;
}

/* ========================================================= */
/* --- 2. AI 气泡：逆命系统·订单中枢 (系统/科技风) --- */
/* ========================================================= */
.cinnamoroll-bubble.ai-bubble {
    background: rgba(0, 20, 30, 0.75);
    backdrop-filter: blur(18px);
    border-left: 6px solid #ff00aa;
    border-right: 1px solid #00ffff88;
    box-shadow: 0 6px 0 #2a0033, 0 14px 22px #00000080, 0 0 20px #ff00aa66;
}

.cinnamoroll-bubble.ai-bubble::before {
    content: "⚡ 逆命系统 · 订单任务";
    position: absolute;
    top: -26px; left: 0px;
    font-size: 13px;
    font-weight: bold;
    color: #ffaa00;
    background: #0a101a;
    padding: 3px 14px 3px 10px;
    border-radius: 30px 8px 0 0;
    border-left: 3px solid #ff00aa;
    box-shadow: 0 -2px 8px #ff00aa88;
    letter-spacing: 1px;
    text-shadow: 0 0 8px #ffaa00;
}

.cinnamoroll-bubble.ai-bubble::after {
    content: '🖥️';
    position: absolute;
    bottom: 5px; right: 10px;
    font-size: 20px;
    color: #00ffff;
    opacity: 0.4;
    z-index: 1;
}

/* ========================================================= */
/* --- 3. User 气泡：龙傲天·墨柒骑手 (玩家/主角) --- */
/* ========================================================= */
.cinnamoroll-bubble.user-bubble {
    background: rgba(10, 20, 15, 0.8);
    backdrop-filter: blur(16px);
    border-right: 6px solid #00ffff;
    border-left: 1px solid #ffaa0088;
    box-shadow: 0 6px 0 #002233, 0 14px 22px #00000080, 0 0 20px #00ffff66;
}

.cinnamoroll-bubble.user-bubble::before {
    content: "🛵 骑手·墨柒 · 逆命日志";
    position: absolute;
    top: -26px; right: 0px;
    font-size: 13px;
    font-weight: bold;
    color: #00ffff;
    background: #0a101a;
    padding: 3px 10px 3px 14px;
    border-radius: 8px 30px 0 0;
    border-right: 3px solid #00ffff;
    box-shadow: 0 -2px 8px #00ffff88;
    letter-spacing: 1px;
    text-shadow: 0 0 10px #00ffff;
}

.cinnamoroll-bubble.user-bubble::after {
    content: '傲';
    position: absolute;
    top: 8px; left: 10px;
    font-size: 18px;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 900;
    color: #ff00aa;
    border: 2px solid #ff00aa;
    padding: 1px 5px;
    border-radius: 2px;
    opacity: 0.9;
    z-index: 1;
    background: #0a101acc;
    box-shadow: 0 0 10px #ff00aa;
}

/* ========================================================= */
/* --- 4. 文本特殊颜色转换 (极致清晰·霓虹配色) --- */
/* ========================================================= */

/* 加粗 (Strong) -> 龙傲天之力 (灼眼红) */
.inazuma-message-text strong {
    color: #ff3366 !important;
    font-weight: 800;
    text-shadow: 0 0 8px #ff0066;
}

/* 斜体 (Em) -> 科技/速度感 (电光蓝) */
.inazuma-message-text em {
    color: #33ccff !important;
    font-style: italic;
    font-weight: 500;
    text-shadow: 0 0 5px #0099ff;
}

/* 加粗斜体 -> 逆命巅峰/黄金律 (炽烈金) */
.inazuma-message-text strong em,
.inazuma-message-text em strong {
    color: #ffcc00 !important;
    text-shadow: 0 0 12px #ffaa00;
    font-weight: 800;
}

/* 标题 # (Header) -> 全息铭文 (亮白) */
.inazuma-message-text h1,
.inazuma-message-text h2,
.inazuma-message-text h3 {
    color: #ffffff !important;
    border-bottom: 2px solid #00ffff;
    padding-bottom: 4px;
    margin: 10px 0;
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-weight: 700;
    text-shadow: 0 0 10px #00ffff;
}

/* 删除线 -> 订单取消/抹除 */
.inazuma-message-text del {
    color: #8899aa;
    text-decoration: line-through;
}

/* ========================================================= */
/* --- 5. 代码块：系统秘典/程序后门 --- */
/* ========================================================= */
pre {
    margin: 16px 0px !important;
    padding: 34px 12px 10px 12px !important;
    background: #0a141e !important;
    border-radius: 8px 2px 8px 2px;
    border: 1.5px solid #ff00aa;
    position: relative;
    overflow-x: auto;
    box-shadow: inset 0 0 14px #000000, 0 4px 0 #2a0033;
}

pre::before {
    content: "⚙️ 系统指令 // 权限改写...";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 28px;
    background: #2a0033;
    color: #ffaa00;
    font-size: 13px;
    font-weight: bold;
    line-height: 28px;
    padding-left: 12px;
    border-bottom: 2px solid #ff00aa;
    letter-spacing: 2px;
    border-radius: 4px 0 0 0;
}

pre code {
    font-family: 'Consolas', 'Courier New', monospace !important;
    font-size: 14px !important;
    color: #d0f0ff !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    white-space: pre-wrap;
    word-break: break-word;
}

pre code strong {
    color: #ff3366 !important;
}
pre code em {
    color: #33ccff !important;
    font-style: italic;
}

/* ========================================================= */
/* --- 6. 其它细节修饰 --- */
/* ========================================================= */

.inazuma-message-text {
    font-size: 16px;
    line-height: 1.75;
    text-align: justify;
    overflow-wrap: break-word;
    word-wrap: break-word;
    color: #e6f7ff;
}

/* 引用块：系统通知/龙傲天语录 */
blockquote {
    margin: 14px 0;
    padding: 12px 16px;
    background: rgba(0, 20, 30, 0.7);
    border-left: 5px solid #00ffff;
    color: #cceeff !important;
    font-weight: 600 !important;
    font-size: 15px;
    font-style: normal;
    border-radius: 0 16px 16px 0;
    box-shadow: inset 0 0 10px #001a2a;
}

blockquote strong {
    color: #ffcc00 !important;
}

/* 分割线：数据流/场景转换 */
hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, #ff00aa, #00ffff, transparent);
    margin: 24px 0;
    opacity: 0.7;
}

/* 移动端优化 */
@media (max-width: 600px) {
    .cinnamoroll-bubble {
        margin: 22px 2px;
        border-radius: 14px 4px 14px 4px;
    }
    .cinnamoroll-content {
        padding: 14px 12px !important;
    }
    .cinnamoroll-bubble::before {
        top: -22px;
        font-size: 12px;
    }
}