/* 家庭菜单 —— 自定义样式（Tailwind CDN 之外的少量样式，老板分层规矩） */

body { font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }

/* 分段控制（早餐/午餐/晚餐 滑动切换） */
.segmented {
  position: relative;
  display: flex;
  background: #f5f5f4; /* stone-100 */
  border-radius: 9999px;
  padding: 3px;
  min-height: 38px;
}
.segmented .meal-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: 13px;
  color: #78716c; /* stone-500 */
  border-radius: 9999px;
  transition: color .2s;
  background: transparent;
  border: none;
  cursor: pointer;
}
.segmented .meal-btn.active { color: #fff; font-weight: 600; }
.segmented .meal-slide {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc((100% - 6px) / 3);
  background: #f59e0b; /* amber-500 */
  border-radius: 9999px;
  transition: transform .25s ease;
}

/* 输入框 / 按钮 */
.input {
  width: 100%;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: #292524;
}
.input:focus { border-color: #f59e0b; }
.date-input { padding: 8px 10px; font-size: 13px; }

.btn-primary {
  background: #f59e0b;
  color: #fff;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 13px;
  color: #57534e;
  background: #f5f5f4;
  border: none;
  cursor: pointer;
}
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f5f5f4;
  color: #57534e;
  border: none;
  cursor: pointer;
}

/* 空态 */
.empty { text-align: center; color: #a8a29e; font-size: 13px; padding: 22px 0; }

/* 菜谱页：分类标题 / 勾选行 */
.cat-title { font-size: 12px; font-weight: 700; color: #78716c; }
.dish-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dish-check-row.checked { border-color: #f59e0b; background: #fffbeb; }
.dish-check-row input { accent-color: #f59e0b; width: 18px; height: 18px; }
.dish-check-row span { font-size: 14px; }

/* 主页已排菜行 */
.dish-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
}
.dish-row .dish-row-name { flex: 1; font-size: 14px; font-weight: 500; }
.dish-row .dish-row-remove {
  border: none; background: #fef2f2; color: #ef4444;
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* 食材 chip */
.chip {
  display: inline-block;
  font-size: 12px;
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
  border-radius: 9999px;
  padding: 3px 10px;
  color: #57534e;
}

/* 日历网格 */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head { text-align: center; font-size: 11px; color: #a8a29e; padding: 4px 0; }
.cal-cell {
  min-height: 62px;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
  background: #fff;
}
.cal-cell.empty { background: transparent; border: none; cursor: default; }
.cal-cell.today { border-color: #f59e0b; background: #fffbeb; }
.cal-day { font-size: 13px; font-weight: 600; color: #292524; }
.cal-meals { margin-top: 3px; display: flex; flex-direction: column; gap: 2px; }
.cal-meal-dot {
  font-size: 10px;
  color: #d97706;
  background: #fef3c7;
  border-radius: 4px;
  padding: 1px 5px;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 菜品管理行 */
.manage-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
}
.manage-name { font-weight: 600; flex: 1; font-size: 14px; }
.manage-cat { font-size: 11px; color: #a8a29e; }
