/* ===== 饮食页·喂养分段（feed-*） ===== */

/* 五个分段的分段器（窄屏也放得下） */
.seg-5 .seg-item {
  font-size: 11.5px;
  padding: 9px 0;
  white-space: nowrap;
}

/* 今日汇总卡 */
.feed-summary {
  padding-bottom: 14px;
}

.feed-sum-row {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
}

.feed-sum-item {
  flex: 1;
  text-align: center;
  background: #FFF3F5;
  border-radius: 14px;
  padding: 10px 4px 8px;
}

.feed-sum-num {
  font-size: 22px;
  font-weight: 800;
  color: #F76C8A;
  line-height: 1.2;
}

.feed-sum-num.is-ok {
  color: #2BB3A3;
}

.feed-sum-unit {
  font-size: 12px;
  font-weight: 600;
  margin-left: 2px;
  color: #6B5E57;
}

.feed-bar {
  height: 8px;
  border-radius: 4px;
  background: #F5EAE2;
  overflow: hidden;
}

.feed-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: #F76C8A;
  transition: width 0.3s ease;
}

.feed-bar-fill.is-ok {
  background: #2BB3A3;
}

/* 当天尿便次数（both 双计） */
.feed-diaper-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #B9AFA8;
  text-align: center;
}

/* 记奶 / 记辅食 / 记尿便按钮行 */
.feed-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.feed-btns .btn-primary,
.feed-btns .btn-ghost {
  flex: 1;
  padding-left: 0;
  padding-right: 0;
  font-size: 13px;
}

/* 柱状图图例 */
.feed-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-top: 6px;
  font-size: 11px;
  color: #6B5E57;
}

.feed-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.feed-legend-dot.is-milk {
  background: #F76C8A;
}

.feed-legend-dot.is-food {
  background: #F5A623;
}

.feed-legend-note {
  color: #2BB3A3;
}

/* 记录行 */
.feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px dashed #F5EAE2;
}

.feed-row:last-child {
  border-bottom: none;
}

.feed-time {
  font-size: 12px;
  font-weight: 700;
  color: #6B5E57;
  font-variant-numeric: tabular-nums;
  min-width: 38px;
}

.feed-emoji {
  font-size: 18px;
}

.feed-text {
  font-size: 14px;
  font-weight: 600;
  color: #3D3531;
}

.feed-tag-est {
  margin-left: 4px;
  font-size: 10px;
}

.feed-arrow {
  color: #C9BDB5;
  font-size: 16px;
}

.feed-empty {
  padding: 14px 0;
}

/* 柱状图 */
.feed-chart-wrap {
  height: 230px;
  position: relative;
}

.feed-chart {
  width: 100%;
  height: 100%;
  touch-action: none;
  display: block;
}

/* 月历 */
.feed-cal-title {
  font-size: 15px;
}

.feed-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 8px 0 4px;
  text-align: center;
  font-size: 11px;
  color: #B9AFA8;
}

.feed-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.feed-cal-cell {
  aspect-ratio: 1;
  border: none;
  background: #FFF7F0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.feed-cal-cell:active {
  background: #FFE9EE;
}

.feed-cal-cell.today {
  box-shadow: 0 0 0 2px #F76C8A inset;
}

.feed-cal-blank {
  aspect-ratio: 1;
}

.feed-cal-d {
  font-size: 12px;
  font-weight: 700;
  color: #3D3531;
  line-height: 1.1;
}

.feed-cal-v {
  font-size: 9.5px;
  font-weight: 700;
  color: #F76C8A;
  line-height: 1.1;
  white-space: nowrap;
}

.feed-cal-v.is-ok {
  color: #2BB3A3;
}

.feed-cal-v.is-food {
  font-size: 9px;
  color: #F5A623;
}

/* 月历格子值区：上排奶量、下排辅食量 */
.feed-cal-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.05;
}

/* 当日明细弹层 */
.feed-daysum {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #F76C8A;
  background: #FFF3F5;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 8px;
}

/* 大屏（折叠屏展开 / 平板 / 分屏） */
@media (min-width: 700px) {
  .feed-sum-num {
    font-size: 26px;
  }

  .feed-chart-wrap {
    height: 280px;
  }

  .feed-cal-d {
    font-size: 14px;
  }

  .feed-cal-v {
    font-size: 11px;
  }

  .feed-cal-v.is-food {
    font-size: 10px;
  }
}
