Files
dish-image/retrieval/static/style.css
T
陈世睿 74caa9d112 初始化 dish-image:菜品图爬虫 + 图片名称检索平台
- crawler/:豆果(主)/下厨房/Bing 爬虫 + dishes.jsonl(3056 菜→9167 图映射)+ verify_repair 按 URL 重下
- retrieval/:三路检索(BM25 + 本地 BGE-M3 向量 + RRF 融合),FastAPI + 前端;写死图片目录(默认 crawler/images,可 IMAGE_DIR 覆盖)、绑 0.0.0.0 局域网访问、启动自动建索引、服务器 serve 图片
- 图片(1.7G)与向量模型(2.3G)不进 git

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-01 21:32:49 +08:00

69 lines
3.3 KiB
CSS

* { box-sizing: border-box; }
body {
margin: 0; padding: 0 24px 48px;
font-family: -apple-system, "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
color: #1f2328; background: #f6f7f9;
}
header { padding: 20px 0 8px; }
h1 { margin: 0; font-size: 22px; }
.sub { margin: 6px 0 0; color: #57606a; font-size: 14px; }
.sub b { color: #1f2328; }
.panel {
background: #fff; border: 1px solid #e6e8eb; border-radius: 10px;
padding: 16px; margin: 14px 0;
}
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
display: inline-flex; align-items: center; gap: 6px;
padding: 8px 14px; border-radius: 8px; border: 1px solid #d0d7de;
background: #fff; cursor: pointer; font-size: 14px; color: #1f2328;
}
.btn:hover { background: #f3f4f6; }
.btn.primary { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.btn.primary:hover { background: #1a60d0; }
.btn.primary:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; }
.file-btn { position: relative; }
.chk, .sel { font-size: 14px; color: #424a53; display: inline-flex; align-items: center; gap: 6px; }
.sel select, .sel input, .query {
font-size: 14px; padding: 7px 9px; border: 1px solid #d0d7de; border-radius: 8px; background: #fff;
}
.query { flex: 1; min-width: 240px; }
code { background: #eef0f2; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.info { margin-top: 12px; font-size: 13px; }
.muted { color: #6b7280; }
.buildbar { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #424a53; }
.bar { flex: 1; height: 8px; background: #eaecef; border-radius: 6px; overflow: hidden; }
.fill { height: 100%; width: 0; background: #2da44e; transition: width .25s; }
.preview { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid #e6e8eb; }
.adv { margin-top: 10px; font-size: 13px; }
.adv summary { cursor: pointer; color: #57606a; }
.adv .row { margin-top: 10px; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 4px; }
.column { background: #fff; border: 1px solid #e6e8eb; border-radius: 10px; padding: 12px; min-height: 80px; }
.column h2 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.cnt { color: #6b7280; font-size: 12px; font-weight: 400; }
.cards { display: flex; flex-direction: column; gap: 8px; }
.card { display: flex; gap: 10px; padding: 8px; border: 1px solid #eef0f2; border-radius: 8px; align-items: center; }
.card:hover { border-color: #c8d1da; background: #fafbfc; }
.card .rk { width: 22px; text-align: center; font-size: 13px; color: #8b949e; flex: none; }
.card img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; background: #eef0f2; }
.card .meta { min-width: 0; }
.card .nm { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sc { font-size: 12px; color: #1f6feb; margin-top: 2px; }
.card .badges { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px; }
.badge { font-size: 11px; padding: 1px 6px; border-radius: 999px; background: #eef0f2; color: #57606a; }
.badge.miss { background: #fff1f0; color: #cf222e; }
.empty { color: #8b949e; font-size: 13px; padding: 8px 4px; }
@media (max-width: 900px) { .results { grid-template-columns: 1fr; } }