diff --git a/frontend/index.html b/frontend/index.html
index 926f08e..0ca90dc 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -94,7 +94,9 @@ body{font-family:var(--sans);background:var(--bg);color:var(--text);font-size:14
.msg.ai{background:transparent;border:none;align-self:flex-start;padding:4px 2px}
.msg.user{background:#f2f3f5;border:none;align-self:flex-end;border-radius:10px;padding:8px 12px;max-width:88%}
/* 对话流消息间灰色细分割线(豆包风格),最后一条不显示 */
-.chat-flow .msg{padding-top:10px;padding-bottom:6px;border-bottom:1px solid #eceef1}
+/* 消息禁止被 flex 压缩:.msg.judge 有 overflow:hidden 会使 min-height:auto 失效,
+ 聊天流内容超长时判题卡会被压成空条(内容被裁)——flex-shrink:0 根治 */
+.chat-flow .msg{padding-top:10px;padding-bottom:6px;border-bottom:1px solid #eceef1;flex-shrink:0}
.chat-flow .msg:last-child{border-bottom:none}
.msg.judge{border:1px solid var(--line);align-self:stretch;border-radius:10px;overflow:hidden}
.msg.sys{background:var(--line2);color:var(--text2);font-size:12.5px;align-self:center;border-radius:20px;padding:4px 14px}