/* 天气板块：上方日期标签切换（参考路线地图的日期标签），下方为当天天气与穿衣建议
   配色参考记账板块：页面底色 #fafcf5、卡片 #fff、描边 rgba(27,44,33,.1~.14)、主色 var(--lake) */
.weather-section { padding-top: 34px; }
.weather-refresh {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(27, 44, 33, .14);
  border-radius: 999px;
  background: #fff;
  color: var(--lake);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.weather-refresh:hover { background: #edf5e3; }
.weather-status { margin: -6px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* ===== 日期标签 ===== */
.weather-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.weather-tabs button {
  border: 0;
  background: transparent;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
}
.weather-tabs button:hover { background: #f2f7ec; }
.weather-tabs button[aria-pressed="true"] {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-weight: 760;
}
.weather-tabs i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--route-color, var(--lake));
}

/* ===== 温度概览三格 + 提示横幅（参考穿搭指南图） ===== */
.weather-panel {
  border: 1px solid rgba(27, 44, 33, .1);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.weather-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  min-height: 46px;
  padding: 8px 16px;
  border-bottom: 1px dashed rgba(27, 44, 33, .1);
  border-left: 4px solid var(--tag-color, var(--lake));
}
.weather-panel__date {
  color: var(--ink);
  font: 780 15px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.01em;
}
.weather-panel__meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.weather-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px dashed rgba(27, 44, 33, .1);
}
.weather-stat {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 12px 10px 12px 14px;
  min-width: 0;
}
.weather-stat + .weather-stat { border-left: 1px dashed rgba(27, 44, 33, .1); }
.weather-stat__icon { flex: none; font-size: 20px; line-height: 1.2; }
.weather-stat__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.weather-stat__label { color: var(--muted); font-size: 10px; font-weight: 680; letter-spacing: .04em; white-space: nowrap; }
.weather-stat__value {
  color: var(--terracotta);
  font: 780 19px/1.15 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.02em;
}
.weather-stat__value--text { font-family: inherit; font-size: 12.5px; letter-spacing: 0; line-height: 1.3; padding-top: 2px; color: var(--ink); }
.weather-stat__sub { color: var(--muted); font-size: 9.5px; line-height: 1.4; }

.weather-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 14px;
  background: #fff6dc;
  color: #7a5a12;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.55;
  border-bottom: 1px dashed rgba(27, 44, 33, .1);
}
.weather-alert b { flex: none; font-size: 13px; }

/* ===== 穿搭公式四宫格 ===== */
.weather-formula { padding: 14px 16px 4px; }
.weather-formula__tag {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--lake);
  color: #fff;
  font-size: 12.5px;
  font-weight: 780;
  letter-spacing: .06em;
}
.weather-formula__tag--soft { background: #edf5e3; color: var(--forest); }

.weather-outfit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 11px;
}
.weather-outfit-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(27, 44, 33, .09);
  border-radius: 14px;
  background: #fcfdf9;
  overflow: hidden;
}
.weather-outfit-card__head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 11px 8px;
}
.weather-outfit-card__head b {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 780;
}
.weather-outfit-card__head i { font-style: normal; font-size: 13px; }
.weather-outfit-card__head span { color: var(--muted); font-size: 10px; }
.weather-outfit-card[data-tone="sun"] .weather-outfit-card__head { background: #fdf3dc; }
.weather-outfit-card[data-tone="sun"] .weather-outfit-card__head b { color: #9a6b10; }
.weather-outfit-card[data-tone="cloud"] .weather-outfit-card__head { background: #e8f2e0; }
.weather-outfit-card[data-tone="cloud"] .weather-outfit-card__head b { color: #4a7d33; }
.weather-outfit-card[data-tone="star"] .weather-outfit-card__head { background: #fdf0e4; }
.weather-outfit-card[data-tone="star"] .weather-outfit-card__head b { color: #b05c1d; }
.weather-outfit-card[data-tone="shoes"] .weather-outfit-card__head { background: #eef0f7; }
.weather-outfit-card[data-tone="shoes"] .weather-outfit-card__head b { color: #4d5a86; }
.weather-outfit-card__art {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  font-size: 34px;
  line-height: 1;
  padding: 6px 0;
}
.weather-outfit-card__items {
  margin: 0;
  padding: 0 11px 10px;
  color: #4a5844;
  font-size: 10.5px;
  line-height: 1.55;
}

/* ===== 出行必备小件 ===== */
.weather-essentials { padding: 12px 16px 16px; }
.weather-essentials__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}
.weather-essentials__list li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 10px;
  border: 1px solid rgba(27, 44, 33, .09);
  border-radius: 14px;
  background: #fcfdf9;
}
.weather-essentials__icon { font-size: 22px; line-height: 1.2; }
.weather-essentials__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.weather-essentials__body b { color: var(--ink); font-size: 11.5px; font-weight: 760; line-height: 1.35; }
.weather-essentials__body span { color: var(--muted); font-size: 9.5px; line-height: 1.5; }

@media (min-width: 720px) {
  .weather-panel__head { padding-right: 20px; }
  .weather-outfit { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .weather-essentials__list li { flex-direction: row; align-items: center; gap: 10px; }
}
