/* ==========================================================================
   activities.css —— 「长沙亲子活动清单」页专用样式
   只使用 base.css 的设计令牌（--c-primary / --c-accent / --radius / --shadow…），
   不引入任何外部字体或 CDN。移动端优先：375px 下无横向滚动。
   ========================================================================== */

/* ---------- 筛选区 ---------- */
.act-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.act-filters .input { min-height: 44px; }

#type-tabs { margin-top: 16px; }

.act-count {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin: 12px 4px 8px;
  min-height: 18px;
}

/* ---------- 活动行（左内容 + 右星标）---------- */
.act-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-bottom: 1px solid var(--c-line);
  border-left: 3px solid transparent;
  background: var(--c-surface);
}
.act-row:last-child { border-bottom: 0; }

/* 已收藏：左侧 3px 奶黄竖条 + 极浅奶黄底 */
.act-row.is-fav {
  border-left-color: var(--c-accent);
  background: #FFFBEB;
}

.act-main {
  flex: 1;
  min-width: 0;          /* 关键：让长标题可以换行而不是撑破容器 */
}

.act-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-title);
  line-height: 1.35;
  word-break: break-word;
}

.act-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.act-meta > span { white-space: nowrap; }

.act-sub,
.act-age,
.act-tips {
  margin-top: 4px;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  line-height: 1.5;
  word-break: break-word;
}
.act-price { color: var(--c-accent-d); font-weight: 600; }

.act-src {
  margin-top: 6px;
  font-size: 11px;
  color: var(--c-muted);
  word-break: break-all;
}
/* 来源行的链接部分（与 .act-src 组合使用：<div class="act-src act-srcline">） */
.act-srcline { line-height: 1.5; }
.act-src a,
.act-srcline a { color: var(--c-primary-d); text-decoration: underline; }

/* 状态 chip：已核实 / 待官宣 / 待核实 */
.chip.confirmed { background: #D1FAE5; color: #047857; }
.chip.pending { background: var(--c-accent-l); color: var(--c-accent-d); }
.chip.unknown { background: var(--c-line); color: var(--c-muted); }

/* ---------- 星标按钮（触控区 ≥ 44×44）---------- */
.act-star {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: -4px -4px 0 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--c-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform .08s ease, color .15s ease;
}
.act-star:active { transform: scale(.9); }
.act-star.on { color: var(--c-accent); }
.act-star:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 已收藏但活动已下架 ---------- */
.act-orphan-head {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-muted);
  margin: 20px 4px 8px;
}
.act-orphan-row .act-title { color: var(--c-muted); font-weight: 600; }

/* ---------- 本周最紧迫 ---------- */
.urgent-box {
  margin-top: 16px;
  border-color: var(--c-accent-l);
  background: linear-gradient(160deg, #FFFBEB 0%, #ffffff 78%);
}
.urgent-head {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-accent-d);
  margin-bottom: 10px;
}
.urgent-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.urgent-item .u-days {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--c-danger);
  white-space: nowrap;
}
.urgent-item .u-title {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.urgent-item .u-note {
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

/* 「数据较旧」提示 chip */
.chip.stale { background: var(--c-danger); color: #fff; margin-left: 6px; }

/* ---------- 移动端微调 ---------- */
@media (max-width: 400px) {
  .container { padding: 12px; }
  .act-row { padding: 10px 8px 10px 12px; }
  .act-title { font-size: var(--fs-sm); }
  #fav-only-btn { padding: 6px 10px; font-size: var(--fs-xs); }
}
