/* 首页「停水信息」区块（计划性 / 临时 两组并列） */
.waterstop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 4px;
}
.ws-col__h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--foreground);
}
.ws-col__h .badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  line-height: 1.6;
}
.ws-col--planned .badge {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}
.ws-col--temp .badge {
  background: color-mix(in srgb, var(--brand-warm) 18%, transparent);
  color: #b97912;
}
.ws-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 768px) {
  .ws-list { grid-template-columns: 1fr; }
}
.ws-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.ws-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.ws-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.ws-card__date {
  font-size: 13px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.ws-card__area {
  font-size: 12px;
  color: var(--muted-foreground);
  background: var(--muted);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  margin-left: auto;
}
/* 卡片左侧类型色条，便于快速扫读（由分区小节统一表达类型，卡片不再内嵌徽标） */
.ws-card--planned { border-left: 3px solid var(--primary); }
.ws-card--temporary { border-left: 3px solid var(--brand-warm); }
.ws-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 6px;
  color: var(--foreground);
}
.ws-card__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted-foreground);
  white-space: pre-line;
  max-height: 8.4em;
  overflow: hidden;
}
.ws-card__src {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted-foreground);
}
.ws-empty {
  font-size: 13px;
  color: var(--muted-foreground);
  padding: 10px 0;
}

/* 列表页：两类分区小节（计划性 / 临时 上下排列，各自带标题与数量） */
.ws-section { margin: 18px 0 22px; }
.ws-section:first-of-type { margin-top: 4px; }
.ws-section__h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.ws-section__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
  background: var(--muted);
}
.ws-section--planned .ws-section__dot { background: var(--primary); }
.ws-section--temp .ws-section__dot { background: var(--brand-warm); }
.ws-section__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--foreground);
}
.ws-section__sub {
  font-size: 12px;
  color: var(--muted-foreground);
}
.ws-section__n {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--muted);
  border-radius: 999px;
  padding: 3px 12px;
  font-variant-numeric: tabular-nums;
}
.ws-section--temp .ws-section__n { color: #b97912; }

@media (max-width: 768px) {
  .waterstop { grid-template-columns: 1fr; }
}
