/* 成语典故馆：左筛选栏 + 右 hero/故事卡网格；与场景成语同色系（青绿山水）。 */
/* 标题已在 hero 内，本页不用面包屑，收起空导航。 */
.idiom-page .idiom-crumbs { display: none; }
.hall-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.hall-sidebar {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  scrollbar-width: thin;
}
/* 拍平嵌套：筛选组直接落在面板上，用分隔线分组。 */
.hall-sidebar > div { padding: 0; border: 0; background: none; border-radius: 0; }
.hall-figures { margin-top: 2px; padding-top: 16px; border-top: 1px dashed var(--line); }
.hall-main { min-width: 0; }

.hall-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 24px 28px;
  margin: 18px 0 20px;
  background:
    radial-gradient(ellipse at 92% 8%, #e8f5db, transparent 60%),
    linear-gradient(120deg, #f1f8ea, #eaf3e0);
  border: 1px solid #cfe3c0;
  border-radius: 22px;
}
.hall-hero-copy { flex: 1 1 240px; min-width: 0; }
.hall-hero-copy .eyebrow { margin-bottom: 6px; }
.hall-hero-copy h1 { margin: 0 0 8px; font-size: clamp(30px, 3.2vw, 40px); }
.hall-hero-tag { margin: 0 0 14px; color: var(--muted, #586b62); font-size: 15px; line-height: 1.7; }
.hall-hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hall-hero-stats span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid #d6e5c6; font-size: 13px; color: #4a5550; }
.hall-hero-stats b { color: var(--green, #22634c); font-weight: 800; }

.hall-hero-demo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid #bcd9a8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(47, 125, 79, .08);
}
.hall-hero-demo-char {
  font-size: 52px;
  font-weight: 900;
  color: var(--green, #22634c);
  line-height: 1;
}

.hall-label { display: block; flex: 0 0 100%; margin-bottom: 10px; color: var(--muted, #586b62); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.hall-books, .hall-figures { display: flex; flex-wrap: wrap; gap: 8px; }
.hall-books .chip { display: inline-flex; align-items: center; min-height: 36px; padding: 5px 13px; border: 1px solid transparent; border-radius: 10px; background: #f2f8ec; color: #33422c; font-size: 15px; font-weight: 600; transition: border-color .14s ease, background .14s ease; }
.hall-books .chip:hover { border-color: #cfe0c2; background: #eaf4df; }
.hall-books .chip.on { border-color: var(--green, #22634c); background: var(--green, #22634c); color: #fff; font-weight: 700; }
.hall-books .chip-clear { background: none; border-style: dashed; border-color: var(--line); color: var(--muted, #586b62); }
.figure-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 4px 12px; border: 1px solid transparent; border-radius: 999px; background: #f7f9f4; color: #2f3d28; font-size: 15px; font-weight: 500; transition: border-color .14s ease, background .14s ease; }
.figure-chip i { font-style: normal; color: var(--muted, #586b62); font-size: 13px; font-weight: 600; }
.figure-chip:hover { border-color: #cfe0c2; background: #eef5e6; }
.figure-chip.on { border-color: var(--green, #22634c); background: var(--green, #22634c); color: #fff; font-weight: 700; }
.figure-chip.on i { color: #d9ecda; }

.figure-clue { padding: 14px; border: 1px solid #e3eed8; border-radius: 14px; background: #f5faee; }
.figure-card { display: flex; gap: 12px; align-items: center; }
.figure-emoji { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: #fff; font-size: 24px; }
.figure-card h2 { margin: 0; font-size: 18px; }
.figure-card h2 i { margin-left: 8px; font-style: normal; color: var(--muted, #586b62); font-size: 12px; font-weight: 500; }
.figure-card p { margin: 4px 0 0; color: #4d5c54; font-size: 15px; line-height: 1.75; }
.figure-books { margin: 10px 0 0; color: #4d5c54; font-size: 15px; }
.figure-books b { color: var(--green, #22634c); }

.hall-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; gap: 18px; }
.story-card { padding: 20px; border: 1px solid #dfe8d3; border-radius: 18px; background: var(--white, #fff); box-shadow: 0 3px 0 #2a1a3806; transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.story-card:hover, .story-card:focus-within { transform: translateY(-3px); border-color: #cfe0c2; box-shadow: 0 6px 14px #2a1a380f; }
.story-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.story-idiom b { font-size: 27px; font-weight: 900; letter-spacing: 1px; }
.story-book { display: block; margin-top: 4px; color: var(--muted, #586b62); font-size: 14px; }
.story-actions { display: flex; gap: 8px; flex-shrink: 0; }
.say-chip { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #cfe0c2; border-radius: 11px; background: #fff; font-size: 17px; }
.say-chip:hover { background: #eef6e6; }
.say-chip.link { text-decoration: none; color: var(--green, #22634c); font-weight: 800; }
.story-quote { margin: 14px 0 0; padding: 10px 14px; border-left: 4px solid #cdddbb; border-radius: 0 12px 12px 0; background: #f6faf0; color: #4d5c54; font-size: 15px; line-height: 1.9; }
.story-body { margin: 12px 0 0; }
.story-body p { margin: 0; color: #2f3a33; font-size: 16px; line-height: 2.0; }
.story-meaning { margin: 12px 0 0; padding: 9px 13px; border-radius: 11px; background: #eef6e6; color: #35602c; font-size: 15px; line-height: 1.8; }
.story-meaning b { margin-right: 8px; padding: 1px 8px; border-radius: 7px; background: var(--green, #22634c); color: #fff; font-size: 13px; }
.story-figures { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.figure-mini { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1px solid #e0e8d6; border-radius: 18px; background: #f8fbf4; color: #33404d; font-size: 14px; }
.figure-mini:hover { border-color: var(--green, #22634c); background: #eef5e6; }
.story-example { margin: 10px 0 0; color: var(--muted, #586b62); font-size: 14px; line-height: 1.8; }
.story-paused { padding: 14px; border: 2px dashed #d5e0ca; border-radius: 13px; color: var(--muted, #586b62); text-align: center; }

@media (max-width: 900px) {
  .hall-shell { grid-template-columns: minmax(0, 1fr); }
  .hall-sidebar { position: static; max-height: none; }
}
@media (max-width: 720px) {
  .hall-grid { grid-template-columns: minmax(0, 1fr); }
  .story-card { padding: 16px; }
}
@media print {
  .hall-sidebar, .say-chip { display: none !important; }
  .story-card { break-inside: avoid; box-shadow: none; }
}
