/* 饮食页 */
.chips-wrap {
  display: flex;
  flex-wrap: wrap;
}

.allergy-card {
  border-left: 4px solid #FF6B6B;
}

.allergy-name {
  font-size: 15px;
  font-weight: 600;
  color: #E75D82;
}

/* 横向分组条：可左右滑动；≥700px 时按源规则换行展示 */
.group-scroll {
  white-space: nowrap;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.group-row {
  display: inline-block;
  padding: 2px 0;
}

.group-row .chip {
  margin-right: 8px;
}

.recipe-card {
  transition: opacity 0.2s;
}

.recipe-unsafe {
  opacity: 0.62;
}

.recipe-name {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

.recipe-minutes {
  font-size: 12px;
  color: #9C8F88;
}

.recipe-tags {
  margin-top: 6px;
}

.unsafe-tip {
  margin-top: 6px;
  font-size: 12px;
  color: #F0554E;
}

.recipe-section {
  margin-bottom: 10px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: #F76C8A;
  margin-bottom: 4px;
}

.recipe-line {
  font-size: 13px;
  color: #6B5E57;
  line-height: 1.8;
}

/* 输入占位色（源 placeholder-class="ph"；Web 端由 app.css 的 ::placeholder 规则生效） */
.ph {
  color: #C4B8B1;
}

@media (min-width: 700px) {
  .group-scroll {
    white-space: normal;
  }
}

/* ===== 排敏计划 ===== */
.plan-food {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}

.plan-name-lg {
  font-size: 17px;
  font-weight: 700;
  margin-right: 8px;
}

.plan-kind {
  margin-left: 6px;
}

.plan-warn {
  color: #E8A23D;
}

.plan-days {
  display: flex;
  gap: 10px;
  margin: 12px 0 14px;
}

.plan-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1px dashed #E5D9D0;
  border-radius: 12px;
  background: #FAF5F0;
  padding: 8px 0;
}

.plan-day.done {
  border-style: solid;
  border-color: #2BB3A3;
  background: #E0F5EF;
}

.plan-day-no {
  font-size: 11px;
  color: #9C8F88;
}

.plan-day-val {
  font-size: 12px;
  font-weight: 600;
  color: #BDB0A8;
}

.plan-day.done .plan-day-no,
.plan-day.done .plan-day-val {
  color: #2BB3A3;
}

.plan-actions {
  display: flex;
  gap: 10px;
}

.plan-actions > * {
  flex: 1;
}

.plan-recipes {
  margin-top: 8px;
}

.plan-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #FAF3ED;
}

.plan-row:last-child {
  border-bottom: none;
}

.plan-name {
  font-size: 14px;
  font-weight: 600;
}

.plan-blocked {
  opacity: 0.62;
}

.rule-line {
  font-size: 13px;
  color: #6B5E57;
  line-height: 1.9;
}

/* ===== 四个分段的分段器（窄屏也放得下） ===== */
.seg-4 .seg-item {
  font-size: 12px;
  padding: 9px 0;
  white-space: nowrap;
}

.recipe-count {
  margin: 2px 0 10px 4px;
}

/* ===== 辅食表 ===== */
.meal-month {
  font-size: 15px;
  font-weight: 700;
}

.meal-week-row {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0 2px;
}

.meal-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.meal-actions > * {
  flex: 1;
}

.meal-day {
  padding: 10px 0;
  border-bottom: 1px dashed #F6EEE8;
}

.meal-day:last-child {
  border-bottom: none;
}

.meal-day-head {
  font-size: 13px;
  font-weight: 600;
  color: #6B5E57;
  margin-bottom: 6px;
}

.meal-today .meal-day-head {
  color: #F76C8A;
}

.meal-today-tag {
  margin-left: 8px;
}

.meal-row {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: #FAF5F0;
}

.meal-row:active {
  background: #FFE9EE;
}

.meal-slot {
  flex-shrink: 0;
  width: 40px;
  font-size: 12px;
  color: #BDB0A8;
}

.meal-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-swap {
  flex-shrink: 0;
  font-size: 11px;
  color: #F76C8A;
  font-weight: 600;
  padding-left: 8px;
}

/* 换菜弹层 */
.swap-list {
  max-height: 56vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.swap-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 4px;
  border-bottom: 1px solid #F6EEE8;
}

.swap-item:last-child {
  border-bottom: none;
}

.swap-item:active {
  background: #FAF3ED;
}

.swap-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

/* 菜谱段：条数与新增按钮同一行 */
.recipe-bar {
  margin: 2px 0 10px;
}

.recipe-count {
  margin: 0;
}

/* 自定义菜谱的编辑 / 删除 */
.recipe-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.recipe-actions > * {
  flex: 1;
}
