/* 演示横幅 */
.demo-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--accent-light, #fafaf0); border: 1px solid var(--accent, #1a1a1a);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 16px;
}
.demo-banner-text { font-size: 14px; color: #555; }
.demo-banner-btn {
  padding: 8px 18px; background: var(--accent, #1a1a1a); color: #fff;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.demo-banner-btn:active { opacity: 0.85; }

/* 机制知识抽屉 */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 200; display: flex; align-items: flex-end; justify-content: center;
}
.drawer-panel {
  background: #fff; border-radius: 16px 16px 0 0; width: 100%; max-width: 480px;
  max-height: 80vh; display: flex; flex-direction: column;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.drawer-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px 12px; border-bottom: 1px solid #eee; flex-shrink: 0;
}
.drawer-icon { font-size: 22px; }
.drawer-title { flex: 1; font-size: 17px; font-weight: 700; color: #222; }
.drawer-close {
  font-size: 22px; color: #aaa; cursor: pointer; line-height: 1; padding: 2px 4px;
}
.drawer-close:active { color: #555; }
.drawer-body {
  padding: 16px 20px 24px; overflow-y: auto; flex: 1;
}
.drawer-short {
  font-size: 14px; color: #666; margin-bottom: 14px; font-style: italic;
}
.drawer-detail {
  font-size: 14px; color: #333; line-height: 1.8;
}
.drawer-detail p { margin: 0 0 12px; }
.drawer-section-title {
  font-size: 13px; font-weight: 700; color: #555; margin: 14px 0 8px;
}
.drawer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-tag {
  padding: 4px 10px; border-radius: 10px; font-size: 12px; font-weight: 500;
}
.drawer-tag-good { background: #f0fdf4; color: #16a34a; border: 1px solid #d1fae5; }
.drawer-tag-bad  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.drawer-ref-text { font-size: 11px; color: #aaa; }
.drawer-ref-item { margin-bottom: 4px; line-height: 1.5; }

/* 可点击机制标签 */
.food-mech-tag-clickable {
  cursor: pointer; text-decoration: underline dotted;
}
.food-mech-tag-clickable:hover { background: #e0e0e0; }

/* 成分卡片内的机制标签 */
.ingr-mech-row { margin-top: 6px; }
.ingr-mech-tag { background: #eff6ff; color: #3b82f6; }
