/* 统一的馆内子菜单：所有故事详情页共用。
   链接和章节名称在每页 header 后的 nav.hall-subnav 中编辑。 */
.hall-subnav {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 16px max(5%, calc((100vw - 1260px) / 2));
  background: #181918;
  border-bottom: 1px solid #d8b77940;
  color: #e4c68b;
  font-size: 14px;
  line-height: 1.6;
}

.hall-context, .hall-anchors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.hall-context > span {
  color: #d0ccc2;
}

.hall-subnav a {
  text-decoration: none;
  padding: 4px 0;
}

.hall-subnav a:hover, .hall-subnav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.story-switcher {
  position: relative;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.story-switcher summary {
  padding: 4px 0;
  color: #e4c68b;
  cursor: pointer;
  font-size: 14px;
}

.story-switcher ul {
  position: absolute;
  top: 100%;
  left: 0;
  width: 170px;
  margin: 8px 0 0;
  padding: 10px 16px;
  list-style: none;
  background: #20211f;
  border: 1px solid #d8b77960;
  box-shadow: 0 8px 24px #0005;
}

.story-switcher li a {
  display: block;
  padding: 8px 0;
}

.story-switcher a[aria-current] {
  color: white;
}

@media (max-width: 600px) {
  .hall-subnav {
    padding: 16px 5%;
    gap: 14px;
  }

  .hall-context, .hall-anchors {
    width: 100%;
    gap: 10px 18px;
  }

  .story-switcher {
    margin-left: auto;
  }

  .story-switcher ul {
    left: auto;
    right: 0;
  }

}
