/* ============================================================
   文化指南页 —— 分类大图 + 内容列表
   ============================================================ */

.cat-section { padding: 36px 0 10px; }

.cat-intro { text-align: center; margin-bottom: 30px; }
.cat-intro h1 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: 1px;
  color: var(--ink); margin-bottom: 10px;
}
.cat-intro p { color: var(--ink-2); font-size: 15px; max-width: 620px; margin: 0 auto; }

/* ---------- 分类按钮（一排 5 个） ---------- */
.cat-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.cat-tab {
  border: none; cursor: pointer; font-family: inherit;
  padding: 13px 8px; border-radius: 12px;
  font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 4px 14px rgba(27,42,74,.14);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cat-tab:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(27,42,74,.22); filter: brightness(1.05); }
.cat-tab:active { transform: translateY(0); }
.cat-tab.active {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(27,42,74,.18), 0 9px 22px rgba(27,42,74,.22);
}
.cat-tab[data-cat="food"]    { background: #E23A3A; }
.cat-tab[data-cat="market"]  { background: #F0A420; }
.cat-tab[data-cat="culture"] { background: #4AA4DE; }
.cat-tab[data-cat="dorm"]    { background: #78BE58; }
.cat-tab[data-cat="other"]   { background: #828A94; }

/* ---------- 内容列表 ---------- */
.list-section { padding: 46px 0 40px; }
.list-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.list-head h2 { font-size: 22px; font-weight: 800; }
.clear-filter {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 12.5px; padding: 5px 14px; border-radius: 999px; cursor: pointer;
}
.clear-filter:hover { border-color: var(--red); color: var(--red); }

.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px;
}
.guide-card {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 4px 16px rgba(27,42,74,.09); cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(27,42,74,.16); }
.guide-card .cover {
  height: 150px; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.guide-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-card .cover .emoji { font-size: 52px; }
.guide-card .cover .ctype {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.guide-card .body { padding: 14px 16px 18px; }
.guide-card .meta {
  font-size: 11.5px; color: var(--ink-3); display: flex; gap: 12px; margin-bottom: 7px;
}
.guide-card h4 { font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--ink); }

@media (max-width: 760px) {
  .cat-tabs { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-tab { padding: 11px 6px; font-size: 14px; }
}
@media (max-width: 460px) {
  .cat-tabs { grid-template-columns: repeat(2, 1fr); }
  .cat-tab { font-size: 13.5px; border-radius: 10px; }
}
