/* 原理圖鑑 · 列表
   沿用 world.css 的 --zg-* 變數，不另外開一套顏色。 */

.hl-wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px 48px; }

.hl-head { padding: 34px 0 6px; }
.hl-kicker { display: inline-block; background: var(--zg-brand); color: #fff;
  font: 800 13px/1 var(--zg-sans); padding: 6px 12px; border-radius: 999px; }
.hl-head h1 { font: 900 clamp(26px, 4vw, 36px)/1.35 var(--zg-sans);
  color: var(--zg-ink); margin: 14px 0 10px; }
.hl-head p { color: var(--zg-muted); font-size: 16px; line-height: 1.9; margin: 0;
  max-width: 44em; }
.hl-head p b { color: var(--zg-ink2); }
.hl-count { margin-top: 10px !important; font-size: 14px; }
.hl-count b { color: var(--zg-brand-ink); }

/* 區塊標題 */
/* app.css 有一條全站的 section{padding:4rem 0}，會在每個區塊上下各加 64px。
   這裡用自己的間距，所以要歸零 —— 動那條全站規則會波及所有頁面。
   （/read 的 .rb-sec 也踩過同一個坑。） */
.hl-sec { margin-top: 34px; padding: 0; }
.hl-sec h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 14px;
  font: 900 21px/1.4 var(--zg-sans); color: var(--zg-ink); }
.hl-sec h2 .ic { font-size: 20px; }
.hl-sec h2 small { font-weight: 800; font-size: 13px; color: var(--zg-muted); }

/* 卡片 */
.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hl-card { display: flex; flex-direction: column; background: var(--zg-card);
  border: 1px solid #efe6d6; border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
.hl-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(58, 48, 32, .09); }

/* 縮圖的高度先佔好，JS 補圖進來時版面才不會跳 */
.hl-card .th { height: 150px; background: #fbf6ec; border-bottom: 1px solid #efe6d6;
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hl-card .th svg { display: block; max-height: 134px; max-width: 90%; }

.hl-card .tx { padding: 15px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.hl-card h3 { font: 800 18px/1.55 var(--zg-sans); color: var(--zg-ink); margin: 0 0 7px; }
.hl-card p { color: var(--zg-muted); font-size: 15px; line-height: 1.8; margin: 0 0 12px; }
.hl-card .go { margin-top: auto; font-weight: 800; font-size: 14px;
  color: var(--zg-brand-ink); }

@media (max-width: 860px) { .hl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) {
  .hl-grid { grid-template-columns: 1fr; }
  .hl-card .th { height: 128px; }
}

/* 麵包屑要和下面的內容切齊。
   .zg-crumb 的 padding 是「16px 0 0」，會把 .zg-wrap 的左右留白歸零，
   而 .zg-wrap（1120）又比這一頁的 .hl-wrap（1060）寬 —— 不補就差 20px。 */
/* 和 .hl-wrap 用完全一樣的一組值（max-width 1060、左右 padding 20、border-box），
   麵包屑的文字才會和標題、卡片切齊在同一條線上。
   .zg-crumb 本身的 padding 是「16px 0 0」，會把左右留白歸零，所以要寫回來。 */
.hl-crumb { max-width: 1060px; margin: 0 auto; padding: 16px 20px 0;
  box-sizing: border-box; }
