今日午餐推荐

— —

➕ 加一份
营养搭配

AI 问答

可问食堂和日常问题。通用问答会将问题和最近几轮对话发给模型。

饮食偏好记忆

/* ------------------------------- 食智助手(对话) ------------------------------- */ .chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 180; width: 54px; height: 54px; border-radius: 50%; padding: 0; font-size: 24px; line-height: 1; background: linear-gradient(135deg, var(--accent), #ff9a5c); color: #fff; border: 0; box-shadow: 0 8px 24px rgba(255, 107, 53, .42); } .chat-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 107, 53, .5); } .chat-panel { position: fixed; right: 18px; bottom: 82px; z-index: 181; width: min(380px, calc(100vw - 24px)); height: min(520px, calc(100vh - 120px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; } .chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; border-bottom: 1px solid var(--line); background: var(--card-soft); } .chat-title b { font-size: 15px; } .chat-title .hint { display: block; margin: 1px 0 0; font-size: 11.5px; } .chat-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 9px; } .chat-bubble { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; } .chat-bubble.user { align-self: flex-end; background: linear-gradient(135deg, var(--accent), #ff9052); color: #fff; border-bottom-right-radius: 4px; } .chat-bubble.bot { align-self: flex-start; background: var(--card-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; } .chat-bubble.bot.typing::after { content: '▋'; animation: blink 1s steps(2) infinite; } @keyframes blink { 50% { opacity: 0; } } .chat-input { display: flex; gap: 7px; padding: 10px; border-top: 1px solid var(--line); background: var(--card-soft); } .chat-input input { flex: 1; min-width: 0; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; outline: none; } .chat-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .chat-input button { border-radius: 999px; } @media (max-width: 560px) { .chat-fab { right: 12px; bottom: 12px; width: 48px; height: 48px; font-size: 21px; } .chat-panel { right: 8px; left: 8px; bottom: 70px; width: auto; height: min(68vh, 520px); } }