


/* /css/site-map.css
   靈火殿・總索引（Site Map）專用樣式
   - 分區色條（tone-*）
   - 卡片＋小圖示（emoji/SVG 友好）
*/

:root{
  --sm-gap: clamp(12px, 2.2vw, 18px);
  --sm-bar: 8px;
}

/* 頁首 */
.page-hero{ margin: var(--space-4) 0 var(--space-3); }
.page-hero .small-muted{ color: var(--lf-fg-muted); font-size: var(--size-small); }

/* 分區色條（置於標題上方，增強視覺錨點） */
.zone{ margin: var(--space-4) 0 var(--space-5); }
.zone-title{ margin: .6rem 0 1rem; }
.zone-bar{
  height: var(--sm-bar);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,240,200,.12);
}

/* 色系：可按需微調 */
.tone-core   { background: linear-gradient(90deg, #ffe7b5, #c9b07a); }
.tone-mirror { background: linear-gradient(90deg, #8bd3ff, #6aa2ff); }
.tone-flows  { background: linear-gradient(90deg, #9ff7d3, #65d2a4); }
.tone-chronicle{ background: linear-gradient(90deg, #ffd2a1, #f0b47c); }
.tone-aph    { background: linear-gradient(90deg, #e7c6ff, #caa6ff); }
.tone-ops    { background: linear-gradient(90deg, #c7d2fe, #9ab3ff); }

/* 卡片區 */
.card-grid{
  display: grid;
  gap: var(--sm-gap);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: .6rem;
}
.card{
  display: block;
  padding: 14px 14px 12px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255,240,200,.03), rgba(255,240,200,.01));
  border-radius: var(--radius-xl);
  box-shadow: var(--lf-shadow), inset 0 0 0 1px rgba(255,240,200,.08);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.card:hover, .card:focus{
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,240,200,.14);
  background: linear-gradient(180deg, rgba(255,240,200,.06), rgba(255,240,200,.015));
  outline: none;
}
.card .icon{
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,240,200,.06);
  box-shadow: inset 0 0 0 1px rgba(255,240,200,.12);
  margin-bottom: 8px; font-size: 20px;
}
.card h3{ margin: 0 0 4px 0; font-size: 17px; color: var(--lf-accent); }
.card p{ margin: 0 0 8px 0; }
.card code{
  display: inline-block; font-size: 12.5px; color: var(--lf-fg-muted);
  background: rgba(255,240,200,.04);
  border: 1px solid rgba(255,240,200,.10);
  border-radius: 6px; padding: 2px 6px;
}

/* 上層索引小晶片 */
.row-head{ margin: .6rem 0 1rem; }
.chip{
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid rgba(255,240,200,.12);
  background: rgba(255,240,200,.06);
  color: var(--lf-fg);
  padding: .45rem .7rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: .95rem;
  transition: background .15s ease, box-shadow .2s ease, transform .15s ease;
}
.chip:hover{ background: rgba(255,240,200,.10); transform: translateY(-1px); }
.chip .hint{ opacity: .7; font-size: .9em; }

/* 手機細節 */
@media (max-width: 420px){
  .card-grid{ grid-template-columns: 1fr; }
  .chip{ font-size: .9rem; }
}




