/* 模式切换 */
.mode-bar {
  display: flex; gap: 0; margin-bottom: 12px;
  background: #f4f4f4; border-radius: 10px; padding: 3px;
}
.mode-btn {
  flex: 1; text-align: center; padding: 8px 0; font-size: 14px; font-weight: 500;
  border-radius: 8px; cursor: pointer; color: #777; transition: all 0.2s;
}
.mode-btn.active { background: #fff; color: #222; box-shadow: 0 1px 4px rgba(0,0,0,0.1); font-weight: 700; }

/* 食物检查器 */
.food-result-card { margin-bottom: 0; }
.food-result-item {
  padding: 10px 12px; border-radius: 8px; margin-bottom: 8px;
  background: #fafafa;
}
.food-result-item:last-child { margin-bottom: 0; }
.food-result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.food-result-name { font-weight: 600; font-size: 15px; }
.food-result-badge {
  padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 700;
}
.food-result-label { font-size: 12px; margin-bottom: 6px; font-weight: 500; }
.food-breadcrumb {
  display: block; font-size: 11px; color: #999; margin-bottom: 5px;
}
.food-result-reason { font-size: 13px; color: #555; line-height: 1.6; }
.food-result-unknown { background: #fafafa; }
.food-list-summary {
  font-size: 13px; color: #666; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid #eee;
}
.food-group-header {
  font-size: 12px; font-weight: 700; margin: 10px 0 6px;
  padding-top: 8px; border-top: 1px solid #eee;
}
.food-group-header:first-of-type { border-top: none; }
.food-mech-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.food-mech-tag {
  padding: 2px 8px; background: #f0f0f0; color: #555;
  border-radius: 8px; font-size: 11px;
}
.food-chain-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.food-chain-item { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.food-chain-comp { font-size: 12px; font-weight: 600; color: #444; }
.food-chain-arrow { font-size: 11px; color: #999; }
.analysis-comp-effect { font-size: 10px; font-weight: 500; }
.analysis-comp-item .log-entry-name { font-size: 13px; }
/* food-history: 复用 .history-item 样式 */
.food-ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.food-ref-item {
  text-align: center; padding: 12px 8px; border-radius: 10px;
}
.food-ref-danger { background: #fef2f2; }
.food-ref-caution { background: #fffbeb; }
.food-ref-safe { background: #f0fdf4; }
.food-ref-icon { font-size: 20px; margin-bottom: 4px; }
.food-ref-label { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.food-ref-danger .food-ref-label { color: #dc2626; }
.food-ref-caution .food-ref-label { color: #d97706; }
.food-ref-safe .food-ref-label { color: #16a34a; }
.food-ref-examples { font-size: 11px; color: #888; }
