/* 资料库页面补充样式：沿用 main.css 的黑灰配色与窄版布局 */
.page-heading {
  margin-bottom: 42px;
}
.page-heading h1 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.page-heading p,
.muted {
  color: var(--muted);
  font-size: 0.92rem;
}
.faction {
  margin: 0 0 30px;
}
.faction > summary,
.building > summary,
.other-group > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faction > summary::-webkit-details-marker,
.building > summary::-webkit-details-marker,
.other-group > summary::-webkit-details-marker {
  display: none;
}
.faction > summary {
  padding: 0 0 12px;
  border-bottom: 1px solid #333;
  font-size: 1.2rem;
  font-weight: 600;
}
.faction > summary::after,
.building > summary::after,
.other-group > summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 400;
}
.faction[open] > summary::after,
.building[open] > summary::after,
.other-group[open] > summary::after {
  content: "−";
}
.faction-content {
  padding: 18px 0 0 14px;
}
.building,
.other-group {
  margin: 0 0 22px;
}
.building > summary,
.other-group > summary {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  padding: 4px 0 10px;
}
.unit-list {
  list-style: none;
  padding: 0 0 0 14px;
  margin: 0;
  border-left: 1px solid #383838;
}
.unit-list li {
  margin: 0;
  padding: 5px 0;
}
.unit-list a {
  display: inline-block;
  color: var(--text);
  font-size: 0.94rem;
}
.unit-list a::after {
  content: " ↗";
  color: var(--muted);
  font-size: 0.75rem;
}
.unit-list a:hover {
  opacity: 0.65;
}
.page-footer {
  margin-top: 70px;
  padding-top: 18px;
  border-top: 1px solid #333;
  color: var(--muted);
  font-size: 0.8rem;
}
.breadcrumb {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
}
.unit-title {
  font-size: 1.8rem;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 8px;
}
.unit-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}
.detail-section {
  margin-top: 38px;
}
.detail-section h2 {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.empty-note {
  color: var(--muted);
  font-size: 0.92rem;
}
@media (max-width: 640px) {
  body {
    margin: 42px auto;
  }
  nav {
    margin-bottom: 42px;
  }
}
