:root {
  color-scheme: light;
  --ink: #1f2528;
  --muted: #667178;
  --line: #d9ddd7;
  --paper: #f7f3eb;
  --paper-strong: #fffdf8;
  --bronze: #7a5a34;
  --cinnabar: #a64232;
  --jade: #2f6f62;
  --lacquer: #171717;
  --gold: #c59845;
  --shadow: 0 18px 45px rgba(35, 30, 23, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  min-height: 92vh;
  color: #fffdf8;
  background:
    linear-gradient(90deg, rgba(19, 20, 18, 0.86), rgba(19, 20, 18, 0.44) 54%, rgba(19, 20, 18, 0.72)),
    url("./assets/images/houmuwu.png") center / cover;
}

.list-header {
  color: #fffdf8;
  background:
    linear-gradient(90deg, rgba(18, 18, 16, 0.92), rgba(18, 18, 16, 0.72)),
    url("./assets/images/qingming.png") center / cover;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.72);
  background: rgba(255, 253, 248, 0.1);
}

.nav-links {
  display: flex;
  gap: 22px;
  color: rgba(255, 253, 248, 0.84);
  font-size: 15px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 42px;
  max-width: 1180px;
  min-height: calc(92vh - 78px);
  margin: 0 auto;
  padding: 40px 24px 84px;
}

.list-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 24px 92px;
}

.list-hero h1 {
  max-width: 900px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro {
  max-width: 610px;
  margin-bottom: 30px;
  color: rgba(255, 253, 248, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.secondary-link,
.source-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 253, 248, 0.58);
  font-weight: 700;
}

.primary-link {
  border-color: var(--gold);
  background: var(--gold);
  color: #211b12;
}

.secondary-link {
  background: rgba(255, 253, 248, 0.08);
}

.hero-panel {
  padding: 26px;
  border: 1px solid rgba(255, 253, 248, 0.28);
  background: rgba(22, 18, 14, 0.62);
  backdrop-filter: blur(12px);
}

.panel-label {
  color: rgba(255, 253, 248, 0.76);
  font-size: 13px;
}

.hero-panel strong {
  display: block;
  margin: 10px 0 2px;
  color: var(--gold);
  font-size: 72px;
  line-height: 1;
}

.hero-panel p {
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.84);
  line-height: 1.7;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.protected-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.protected-dashboard div {
  min-height: 108px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.protected-dashboard div:last-child {
  border-right: 0;
}

.protected-dashboard strong {
  display: block;
  color: var(--cinnabar);
  font-size: 34px;
}

.protected-dashboard span {
  color: var(--muted);
}

.stats-band div {
  min-height: 112px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong {
  display: block;
  color: var(--cinnabar);
  font-size: 34px;
}

.stats-band span {
  color: var(--muted);
}

main section {
  padding: 76px 24px;
}

.explore-section,
.protected-section,
.sources-section {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head.compact {
  align-items: start;
}

.section-note {
  max-width: 450px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: 0;
}

.search-box {
  display: grid;
  gap: 8px;
  min-width: min(100%, 360px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.compact-box {
  min-width: min(100%, 230px);
}

.search-box input,
.search-box select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 14px;
  background: var(--paper-strong);
  color: var(--ink);
  outline-color: var(--jade);
}

.search-box select {
  cursor: pointer;
}

.view-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.mode-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--paper-strong);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.mode-button.active {
  border-color: var(--lacquer);
  background: var(--lacquer);
  color: #fffdf8;
}

.explore-tools {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 26px;
}

.result-count {
  align-self: center;
  color: var(--muted);
  font-weight: 700;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.artifact-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.artifact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.artifact-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ddd7ca;
}

.artifact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.full-object img {
  object-fit: contain;
  padding: 10px;
  background: #f0eadf;
}

.badge-row {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.inline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
}

.badge {
  padding: 5px 8px;
  background: rgba(20, 18, 15, 0.78);
  color: #fffdf8;
  font-size: 12px;
  font-weight: 700;
}

.badge.protected {
  background: var(--cinnabar);
}

.badge.important {
  background: var(--jade);
}

.artifact-body {
  padding: 18px;
}

.artifact-body h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.artifact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.artifact-summary {
  min-height: 78px;
  margin-bottom: 18px;
  color: #3b4244;
  line-height: 1.7;
}

.detail-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.detail-button:hover {
  background: var(--ink);
  color: #fffdf8;
}

.empty-state {
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pagination button {
  min-width: 42px;
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.pagination button.active {
  border-color: var(--lacquer);
  background: var(--lacquer);
  color: #fffdf8;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-status {
  min-width: 104px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.explore-section {
  border-top: 1px solid var(--line);
}

.museum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.museum-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.museum-cover {
  position: relative;
  min-height: 100%;
  background: #ded8cc;
}

.museum-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.museum-cover span {
  display: none;
}

.museum-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.museum-body h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.museum-body p {
  margin-bottom: 0;
  color: #3b4244;
  line-height: 1.7;
}

.treasure-line {
  padding: 12px;
  border-left: 4px solid var(--gold);
  background: #f6efe1;
}

.treasure-line span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.treasure-line button,
.treasure-line a {
  margin-top: 4px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--cinnabar);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.museum-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.museum-artifacts button,
.museum-artifacts a {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--paper-strong);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.museum-artifacts button:hover,
.museum-artifacts a:hover {
  border-color: var(--jade);
  color: var(--jade);
}

.museum-detail-link {
  min-height: 38px;
  border: 1px solid var(--ink);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
}

.museum-detail-link:hover {
  background: var(--ink);
  color: #fffdf8;
}

.more-count {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.non195-note {
  margin: 0;
  padding: 10px 12px;
  background: #eef4ef;
  color: var(--jade);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.protected-section {
  border-top: 1px solid var(--line);
}

.protected-explainer,
.protected-list-section {
  max-width: 1180px;
  margin: 0 auto;
}

.protected-explainer {
  border-bottom: 1px solid var(--line);
}

.protected-explainer p {
  max-width: 920px;
  color: #3d4548;
  font-size: 18px;
  line-height: 1.9;
}

.protected-list {
  display: grid;
  gap: 12px;
}

.batch-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  background: #f4ead8;
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 800;
}

.protected-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.protected-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.protected-table th,
.protected-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.protected-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #efe7d8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.protected-table td {
  color: #344044;
  line-height: 1.65;
}

.protected-table td:first-child {
  width: 64px;
  color: var(--cinnabar);
  font-weight: 800;
}

.protected-table td:nth-child(2) {
  width: 190px;
  color: var(--ink);
}

.protected-table td:nth-child(3) {
  width: 110px;
}

.protected-table td:nth-child(4) {
  width: 180px;
}

.protected-table tr:last-child td {
  border-bottom: 0;
}

.protected-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
}

.protected-layout article {
  padding-right: 24px;
}

.protected-layout h3 {
  font-size: 28px;
}

.protected-layout p,
.sources-section p {
  color: #3d4548;
  line-height: 1.85;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline div {
  padding: 20px;
  border-left: 4px solid var(--cinnabar);
  background: var(--paper-strong);
}

.timeline span {
  color: var(--jade);
  font-weight: 800;
}

.timeline strong {
  display: block;
  margin: 6px 0;
}

.timeline p {
  margin-bottom: 0;
}

.sources-section {
  border-top: 1px solid var(--line);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-links a {
  border-color: var(--line);
  background: var(--paper-strong);
  color: var(--ink);
}

.artifact-dialog {
  width: min(940px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  border: 0;
  padding: 0;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.artifact-dialog::backdrop {
  background: rgba(14, 16, 16, 0.68);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 253, 248, 0.7);
  background: rgba(17, 17, 17, 0.78);
  color: #fffdf8;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 42% 58%;
}

.dialog-image {
  min-height: 560px;
  background: #d9d2c5;
}

.dialog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dialog-text {
  overflow: auto;
  max-height: min(760px, calc(100vh - 28px));
  padding: 32px;
}

.dialog-text h2 {
  margin-bottom: 8px;
}

.fact-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.fact-list div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  color: var(--muted);
  font-weight: 700;
}

.fact-list dd {
  margin: 0;
}

.dialog-text p {
  line-height: 1.8;
}

.credit {
  color: var(--muted);
  font-size: 12px;
}

.subpage-header {
  min-height: auto;
  background: var(--ink);
  color: #fffdf8;
}

.detail-page {
  background: var(--paper);
}

.detail-hero,
.museum-detail-hero,
.timeline-hero,
.detail-facts-section,
.related-section,
.museum-collection-section,
.detail-empty {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
}

.detail-hero,
.museum-detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.detail-media,
.museum-treasure-panel {
  min-height: 520px;
  border: 1px solid var(--line);
  background: #ded8cc;
}

.detail-media img,
.museum-treasure-panel img,
.related-card img,
.museum-artifact-card img,
.timeline-artifacts img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-copy {
  align-self: center;
}

.detail-copy .intro,
.timeline-hero .intro,
.museum-detail-hero .intro {
  max-width: 720px;
}

.timeline-hero {
  padding-bottom: 42px;
}

.timeline-hero .intro,
.detail-page .intro {
  color: var(--muted);
}

.detail-facts {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  padding: 24px;
}

.detail-facts div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-facts div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-facts dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-facts dd {
  margin: 0;
  line-height: 1.8;
}

.detail-facts a {
  color: var(--cinnabar);
  font-weight: 800;
  text-decoration: none;
}

.related-grid,
.museum-detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-card,
.museum-artifact-card,
.museum-treasure-panel {
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--ink);
  text-decoration: none;
}

.related-card {
  display: grid;
  grid-template-rows: 180px auto auto;
  padding-bottom: 14px;
}

.related-card strong,
.related-card span,
.museum-treasure-panel strong,
.museum-treasure-panel span {
  margin: 12px 14px 0;
}

.related-card span,
.museum-artifact-card span,
.museum-artifact-card em,
.museum-treasure-panel span {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  margin-top: 28px;
}

.detail-stat-grid div {
  padding: 18px;
  border-right: 1px solid var(--line);
  background: var(--paper-strong);
}

.detail-stat-grid div:last-child {
  border-right: 0;
}

.detail-stat-grid strong {
  display: block;
  font-size: 32px;
  color: var(--cinnabar);
}

.museum-treasure-panel {
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto auto;
  padding-bottom: 18px;
}

.museum-artifact-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 132px;
}

.museum-artifact-card img {
  min-height: 132px;
  background: #ded8cc;
}

.museum-artifact-card div {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px;
}

.artifact-timeline {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 72px;
  position: relative;
}

.artifact-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 72px;
  left: calc(34% + 24px);
  width: 4px;
  background: var(--line);
}

.timeline-row {
  display: grid;
  grid-template-columns: 34% 32px minmax(0, 1fr);
  gap: 22px;
  position: relative;
  padding: 28px 0;
}

.timeline-context {
  text-align: right;
  padding-top: 8px;
}

.timeline-context span {
  color: var(--jade);
  font-weight: 800;
}

.timeline-context h2 {
  margin: 8px 0;
}

.timeline-context p {
  color: var(--muted);
  line-height: 1.7;
}

.timeline-node {
  width: 22px;
  height: 22px;
  border: 5px solid var(--paper);
  background: var(--cinnabar);
  border-radius: 999px;
  margin-top: 18px;
  z-index: 1;
}

.timeline-artifacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.timeline-artifacts a {
  display: grid;
  grid-template-rows: 128px auto auto;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 10px;
}

.timeline-artifacts strong,
.timeline-artifacts span {
  margin: 0 10px;
}

.timeline-artifacts span,
.timeline-artifacts em {
  color: var(--muted);
  font-size: 12px;
}

.timeline-artifacts em {
  align-self: center;
}

.history-timeline-list {
  display: grid;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.segmented-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding: 6px;
  border: 1px solid rgba(31, 37, 40, 0.12);
  background: rgba(255, 253, 248, 0.72);
}

.segmented-filter button {
  min-height: 42px;
  border: 0;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.segmented-filter button.active {
  color: #fffdf8;
  background: var(--lacquer);
}

.history-period-card {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(247, 243, 235, 0.92)),
    var(--paper-strong);
  box-shadow: 0 12px 32px rgba(35, 30, 23, 0.08);
}

.history-period-card.split {
  border-left: 6px solid var(--cinnabar);
}

.history-period-card.unified {
  border-left: 6px solid var(--jade);
}

.history-period-copy {
  padding: 28px 0 28px 28px;
}

.history-period-copy h2 {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.16;
}

.history-period-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.history-range {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--bronze);
  font-weight: 800;
}

.history-card-actions {
  margin-top: 20px;
}

.primary-link.compact {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 14px;
}

.history-period-visual {
  display: grid;
  gap: 18px;
  align-content: center;
  min-width: 0;
  padding: 24px 28px 24px 0;
}

.parallel-board {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(31, 37, 40, 0.1);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(47, 111, 98, 0.08) 0,
      rgba(47, 111, 98, 0.08) 1px,
      transparent 1px,
      transparent 12.5%
    ),
    #fffdf8;
}

.parallel-board.large {
  gap: 18px;
  padding: 24px;
  overflow-x: auto;
}

.parallel-scale {
  display: flex;
  justify-content: space-between;
  min-width: 680px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.parallel-lane {
  display: grid;
  grid-template-columns: 94px minmax(360px, 1fr);
  gap: 12px;
  align-items: center;
}

.parallel-lane-name {
  color: var(--bronze);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.parallel-lane-track {
  position: relative;
  min-height: 48px;
  border-bottom: 1px solid rgba(31, 37, 40, 0.12);
}

.state-bar {
  position: absolute;
  top: 7px;
  display: grid;
  min-width: 74px;
  min-height: 34px;
  align-content: center;
  padding: 5px 9px;
  border: 1px solid rgba(31, 37, 40, 0.12);
  color: #fffdf8;
  background: linear-gradient(135deg, #a64232, #2f6f62);
  box-shadow: 0 8px 18px rgba(35, 30, 23, 0.14);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.state-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(35, 30, 23, 0.2);
}

.state-bar strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-bar span {
  overflow: hidden;
  color: rgba(255, 253, 248, 0.78);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unified-bar {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid rgba(31, 37, 40, 0.12);
  background: #fffdf8;
}

.unified-bar::before,
.unified-bar::after {
  content: "";
  height: 3px;
  background: var(--jade);
}

.unified-bar strong {
  justify-self: center;
  padding: 9px 18px;
  color: #fffdf8;
  background: var(--jade);
}

.unified-bar span {
  color: var(--muted);
  font-weight: 800;
}

.history-artifact-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.history-artifact-strip a {
  display: grid;
  grid-template-rows: 94px auto;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--ink);
  text-decoration: none;
}

.history-artifact-strip img {
  width: 100%;
  height: 94px;
  object-fit: cover;
  background: #ded8cc;
}

.history-artifact-strip span {
  overflow: hidden;
  padding: 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-detail-hero {
  align-items: stretch;
}

.history-hero-panel {
  display: grid;
  min-height: 260px;
  align-content: end;
  padding: 28px;
  color: #fffdf8;
  background:
    linear-gradient(135deg, rgba(23, 23, 23, 0.92), rgba(47, 111, 98, 0.78)),
    url("./assets/images/qingming.png") center / cover;
}

.history-hero-panel strong {
  font-size: 48px;
  line-height: 1.08;
}

.history-hero-panel span {
  color: rgba(255, 253, 248, 0.76);
  font-weight: 800;
}

.history-overview {
  max-width: 880px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.85;
}

.two-column-history {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-list article,
.ruler-card,
.history-context-card {
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.event-list article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px 16px;
  padding: 16px;
}

.event-list article span {
  color: var(--cinnabar);
  font-weight: 900;
}

.event-list article strong {
  font-size: 18px;
}

.event-list article p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.world-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.world-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: #fffdf8;
  color: var(--muted);
  line-height: 1.6;
}

.ruler-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ruler-card {
  padding: 18px;
}

.ruler-card span {
  color: var(--jade);
  font-weight: 900;
}

.ruler-card h3 {
  margin: 8px 0 10px;
  font-size: 22px;
}

.ruler-card p {
  color: var(--muted);
  line-height: 1.65;
}

.history-link-section {
  padding-top: 0;
}

.history-context-card {
  display: grid;
  gap: 8px;
  max-width: 880px;
  padding: 22px;
  border-left: 6px solid var(--jade);
  text-decoration: none;
}

.history-context-card span,
.muted {
  color: var(--muted);
}

.history-context-card strong {
  font-size: 28px;
}

.history-context-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.72;
}

.history-context-card em {
  color: var(--cinnabar);
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 860px) {
  .site-header {
    min-height: auto;
  }

  .topbar {
    align-items: flex-start;
    gap: 18px;
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
  }

  .hero-panel {
    max-width: 420px;
  }

  .stats-band,
  .protected-dashboard,
  .artifact-grid,
  .museum-grid,
  .museum-card,
  .detail-hero,
  .museum-detail-hero,
  .related-grid,
  .museum-detail-list,
  .protected-layout,
  .dialog-layout,
  .history-period-card,
  .two-column-history,
  .ruler-grid {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .protected-dashboard div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .protected-table {
    min-width: 880px;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .explore-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-image {
    min-height: 330px;
  }

  .museum-cover {
    min-height: 230px;
  }

  .detail-media,
  .museum-treasure-panel {
    min-height: 320px;
  }

  .artifact-timeline::before {
    left: 35px;
  }

  .timeline-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .timeline-context {
    grid-column: 2;
    text-align: left;
  }

  .timeline-node {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline-artifacts {
    grid-column: 2;
    grid-template-columns: 1fr;
  }

  .history-period-copy,
  .history-period-visual {
    padding: 24px;
  }

  .parallel-board {
    overflow-x: auto;
  }

  .history-artifact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .topbar {
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 42px;
  }

  main section {
    padding: 54px 18px;
  }

  .hero {
    padding: 38px 18px 58px;
  }

  .artifact-summary {
    min-height: auto;
  }

  .detail-facts div,
  .museum-artifact-card {
    grid-template-columns: 1fr;
  }

  .detail-stat-grid {
    grid-template-columns: 1fr;
  }

  .detail-stat-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .related-card,
  .timeline-artifacts a {
    grid-template-rows: 150px auto auto;
  }

  .segmented-filter,
  .segmented-filter button {
    width: 100%;
  }

  .segmented-filter button {
    justify-content: center;
  }

  .parallel-lane {
    grid-template-columns: 1fr;
    min-width: 620px;
  }

  .parallel-lane-name {
    text-align: left;
  }

  .history-artifact-strip {
    grid-template-columns: 1fr;
  }

  .event-list article {
    grid-template-columns: 1fr;
  }

  .event-list article p {
    grid-column: auto;
  }

  .history-hero-panel strong {
    font-size: 36px;
  }
}
