.museum-page {
  --museum-blue: #0b57db;
  --museum-deep: #061f58;
  --museum-ink: #071936;
  --museum-muted: rgba(7, 25, 54, 0.68);
  --museum-line: rgba(126, 157, 205, 0.28);
  --museum-soft: #f3f8ff;
  background:
    radial-gradient(ellipse 1000px 420px at 78% 0%, rgba(80, 152, 255, 0.18), transparent 68%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 48%, #f4f8ff 100%);
  color: var(--museum-ink);
}

.museum-page .nav a[aria-current="page"] {
  color: var(--museum-blue);
}

.museum-main {
  width: 100%;
  padding: 74px 0 0;
  overflow: hidden;
}

.museum-hero {
  position: relative;
  min-height: 462px;
  padding: 64px max(48px, calc((100vw - 1498px) / 2)) 82px;
  display: grid;
  grid-template-columns: 500px minmax(0, 1fr);
  gap: 42px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0 28%, rgba(255, 255, 255, 0.78) 43%, rgba(236, 245, 255, 0.28) 100%),
    url("./assets-museum/museum-gallery-hero.png") center / cover no-repeat;
  border-bottom: 1px solid rgba(126, 157, 205, 0.22);
}

.museum-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 92px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.96));
  pointer-events: none;
}

.museum-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.museum-hero h1 {
  margin: 0;
  color: #164fad;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
  font-size: clamp(52px, 5.1vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}

.museum-lead {
  max-width: 480px;
  margin: 20px 0 0;
  color: var(--museum-ink);
  font-size: 21px;
  line-height: 1.55;
  font-weight: 800;
}

.museum-note {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--museum-muted);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 650;
}

.museum-actions {
  margin-top: 32px;
  display: flex;
  gap: 24px;
}

.museum-actions a {
  min-width: 118px;
  height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11, 87, 219, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--museum-blue);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(49, 104, 184, 0.08);
}

.museum-actions a:first-child {
  border-color: var(--museum-blue);
  background: var(--museum-blue);
  color: #fff;
  box-shadow: 0 18px 34px rgba(11, 87, 219, 0.2);
}

.museum-hero-stage {
  position: relative;
  z-index: 1;
  min-height: 360px;
  perspective: 1100px;
  --stage-main-x: 0px;
  --stage-main-y: 0px;
  --stage-left-x: 0px;
  --stage-left-y: 0px;
  --stage-right-x: 0px;
  --stage-right-y: 0px;
}

.museum-hero-stage::before {
  content: "";
  position: absolute;
  inset: -24px 5% 18px 0;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.34) 43%, transparent 52%),
    radial-gradient(circle at 68% 16%, rgba(255, 255, 255, 0.34), transparent 28%);
  opacity: 0.76;
  mix-blend-mode: screen;
  pointer-events: none;
}

.museum-case {
  position: absolute;
  margin: 0;
  width: 260px;
  height: 210px;
  padding: 22px 18px 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.48), transparent 34%, rgba(132, 190, 255, 0.12) 70%, transparent),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(222, 238, 255, 0.26)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.74),
    inset 0 -18px 34px rgba(119, 163, 224, 0.1),
    0 28px 54px rgba(44, 91, 155, 0.22);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  transform-style: preserve-3d;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.museum-case::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: -58px;
  height: 58px;
  border-left: 1px solid rgba(121, 157, 207, 0.46);
  border-right: 1px solid rgba(121, 157, 207, 0.34);
}

.museum-case::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -17px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(47, 95, 158, 0.22), transparent 70%);
  filter: blur(4px);
}

.museum-case img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 5px;
  filter: drop-shadow(0 14px 16px rgba(14, 35, 78, 0.2));
  animation: museum-case-breathe 7.5s ease-in-out infinite;
}

.museum-case figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  height: 24px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(126, 157, 205, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--museum-ink);
  font-size: 12px;
  font-weight: 950;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.museum-case-main {
  left: 31%;
  top: -6px;
  width: 372px;
  height: 286px;
  z-index: 3;
  transform: translate3d(var(--stage-main-x), var(--stage-main-y), 0) rotateY(-5deg) translateZ(38px);
}

.museum-case-main figcaption {
  left: auto;
  right: 18px;
}

.museum-case-left {
  left: 10%;
  top: 80px;
  z-index: 2;
  transform: translate3d(var(--stage-left-x), var(--stage-left-y), 0) rotateY(12deg) scale(0.84);
}

.museum-case-right {
  right: 7%;
  top: 72px;
  z-index: 2;
  transform: translate3d(var(--stage-right-x), var(--stage-right-y), 0) rotateY(-13deg) scale(0.9);
}

.museum-guide {
  position: absolute;
  z-index: 3;
  right: max(44px, calc((100vw - 1498px) / 2));
  top: 252px;
  width: 126px;
  padding: 16px 12px;
  display: grid;
  gap: 13px;
  border: 1px solid rgba(126, 157, 205, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 44px rgba(23, 69, 132, 0.14);
}

.museum-guide img {
  width: 46px;
  margin: 0 auto;
}

.museum-guide div {
  padding-top: 10px;
  border-top: 1px solid var(--museum-line);
}

.museum-guide strong,
.museum-guide span {
  display: block;
  text-align: center;
}

.museum-guide strong {
  color: var(--museum-blue);
  font-size: 13px;
  font-weight: 950;
}

.museum-guide span {
  margin-top: 3px;
  color: var(--museum-muted);
  font-size: 11px;
  font-weight: 700;
}

.museum-stats {
  position: relative;
  z-index: 5;
  width: min(1190px, calc(100vw - 160px));
  min-height: 70px;
  margin: -50px auto 22px;
  padding: 0 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(126, 157, 205, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(30, 73, 130, 0.12);
}

.museum-stats div {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-content: center;
  border-left: 1px solid var(--museum-line);
}

.museum-stats div:first-child {
  border-left: 0;
}

.museum-stats svg {
  grid-row: 1 / 3;
  align-self: center;
  width: 28px;
  height: 28px;
  color: var(--museum-blue);
}

.museum-stats svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.museum-stats span {
  color: var(--museum-muted);
  font-size: 12px;
  font-weight: 750;
}

.museum-stats strong {
  margin-top: 3px;
  color: var(--museum-blue);
  font-size: 20px;
  font-weight: 950;
}

.museum-explore {
  width: min(1498px, calc(100vw - 108px));
  margin: 0 auto;
  padding: 10px 0 0;
}

.museum-explore-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 32px;
}

.museum-explore h2 {
  margin: 0;
  color: var(--museum-ink);
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.museum-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 18px;
  align-items: center;
}

.museum-filter-group {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--museum-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
}

.museum-filter-group button,
.museum-search input,
.museum-search select,
.museum-search button,
.museum-reset,
.museum-load,
.museum-page-button,
.museum-card,
.museum-featured-card,
.museum-sidebar button {
  font: inherit;
}

.museum-filter-group button {
  flex: 0 0 auto;
  min-width: 92px;
  height: 42px;
  border: 0;
  border-left: 1px solid var(--museum-line);
  background: transparent;
  color: var(--museum-ink);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.museum-filter-group button:first-child {
  border-left: 0;
}

.museum-filter-group button[aria-pressed="true"] {
  background: var(--museum-blue);
  color: #fff;
}

.museum-filter-group button span {
  display: none;
}

.museum-search {
  height: 42px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 44px;
  border: 1px solid var(--museum-line);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.museum-search select,
.museum-search input,
.museum-search button {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--museum-ink);
  outline: 0;
}

.museum-search select {
  padding: 0 14px;
  border-right: 1px solid var(--museum-line);
  font-size: 13px;
  font-weight: 850;
}

.museum-search input {
  padding: 0 14px;
  font-size: 13px;
  font-weight: 650;
}

.museum-search button {
  display: grid;
  place-items: center;
  background: var(--museum-blue);
  color: #fff;
  cursor: pointer;
}

.museum-search svg {
  width: 19px;
  height: 19px;
}

.museum-search svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.museum-browser {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
}

.museum-sidebar {
  align-self: start;
  padding: 12px 8px;
  border: 1px solid var(--museum-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(35, 78, 128, 0.08);
}

.museum-sidebar button {
  width: 100%;
  min-height: 62px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--museum-ink);
  text-align: left;
}

.museum-sidebar button + button {
  border-top: 1px solid rgba(126, 157, 205, 0.18);
}

.museum-sidebar button.is-active {
  background: linear-gradient(90deg, rgba(11, 87, 219, 0.1), rgba(11, 87, 219, 0.02));
  color: var(--museum-blue);
}

.museum-sidebar svg {
  width: 24px;
  height: 24px;
}

.museum-sidebar svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.museum-sidebar strong,
.museum-sidebar small {
  display: block;
}

.museum-sidebar strong {
  font-size: 14px;
  font-weight: 950;
}

.museum-sidebar small {
  margin-top: 4px;
  color: var(--museum-muted);
  font-size: 12px;
  font-weight: 650;
}

.museum-results {
  min-width: 0;
}

.museum-result-head {
  min-height: 24px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.museum-result-head p {
  margin: 0;
  color: var(--museum-muted);
  font-size: 13px;
  font-weight: 750;
}

.museum-reset {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--museum-line);
  border-radius: 6px;
  background: #fff;
  color: var(--museum-blue);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

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

.museum-featured-card {
  position: relative;
  min-height: 332px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 31, 88, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 64% 37%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #092c73, #061b4d);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(10, 50, 116, 0.16);
  transform-style: preserve-3d;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.museum-featured-card:hover {
  transform: translateY(-4px) perspective(1100px) rotateX(1.5deg);
  box-shadow: 0 24px 48px rgba(10, 50, 116, 0.22);
}

.museum-featured-label {
  position: absolute;
  z-index: 3;
  left: 18px;
  top: 16px;
  font-size: 13px;
  font-weight: 950;
}

.museum-featured-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 55% 74%, rgba(119, 160, 255, 0.42), transparent 20%),
    linear-gradient(90deg, rgba(6, 26, 77, 0.38), transparent 38%);
}

.museum-featured-art::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 28px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.28), transparent 68%);
  filter: blur(4px);
}

.museum-featured-art img {
  position: relative;
  z-index: 2;
  width: 88%;
  height: 78%;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.34));
  transform: perspective(900px) rotateY(-8deg) rotateX(2deg);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.museum-featured-card:hover .museum-featured-art img {
  transform: perspective(900px) translateZ(22px) rotateY(-5deg) rotateX(1deg) scale(1.02);
}

.museum-featured-meta {
  position: absolute;
  z-index: 3;
  left: 18px;
  bottom: 20px;
  display: grid;
  gap: 5px;
}

.museum-featured-meta strong {
  font-size: 16px;
  font-weight: 950;
}

.museum-featured-meta em {
  font-style: normal;
  font-size: 14px;
  font-weight: 750;
  opacity: 0.84;
}

.museum-featured-link {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 22px;
  height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
}

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

.museum-card {
  min-width: 0;
  min-height: 146px;
  padding: 0;
  display: grid;
  grid-template-rows: 96px auto;
  border: 1px solid rgba(126, 157, 205, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--museum-ink);
  text-align: left;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(35, 78, 128, 0.07);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.museum-card:hover {
  transform: translateY(-4px) rotateX(1deg);
  border-color: rgba(11, 87, 219, 0.36);
  box-shadow: 0 18px 36px rgba(35, 78, 128, 0.13);
}

.museum-card-frame {
  position: relative;
  padding: 7px 12px 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(135deg, #f5f9ff, #ffffff 52%, #eef5ff);
  overflow: hidden;
}

.museum-card-frame::before {
  content: "";
  position: absolute;
  inset: 8px 9px 2px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.68), transparent 45%),
    rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(126, 157, 205, 0.12);
}

.museum-card-frame::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 2px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(30, 66, 120, 0.16), transparent 70%);
  filter: blur(3px);
}

.museum-card img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 5px;
  filter: drop-shadow(0 7px 9px rgba(28, 64, 115, 0.12));
  transform: none;
}

.museum-card-3d .museum-card-frame {
  background:
    radial-gradient(circle at 48% 96%, rgba(39, 99, 180, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(235, 244, 255, 0.86)),
    rgba(255, 255, 255, 0.9);
}

.museum-card-3d img {
  width: 136%;
  height: 136%;
  object-fit: cover;
  object-position: center 44%;
  transform: translateY(-7px);
  filter: drop-shadow(0 8px 12px rgba(24, 59, 108, 0.14));
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.museum-card-3d:hover img {
  transform: translateY(-9px) scale(1.035);
}

.museum-card-code {
  padding: 8px 12px 10px;
  display: grid;
  gap: 2px;
  background: #fff;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
}

.museum-card-code span:first-child {
  color: var(--museum-ink);
}

.museum-card-code span:last-child {
  color: var(--museum-muted);
  font-size: 11px;
  font-weight: 750;
}

.museum-load,
#museumLoadMore,
[data-load-more],
.museum-load[hidden] {
  display: none;
}

.museum-pager {
  width: min(520px, 100%);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(116px, 1fr) auto minmax(116px, 1fr);
  align-items: center;
  gap: 12px;
}

.museum-pager[hidden] {
  display: none;
}

.museum-page-button {
  height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11, 87, 219, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--museum-blue);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.museum-page-button:hover:not(:disabled) {
  border-color: rgba(11, 87, 219, 0.58);
  background: #fff;
}

.museum-page-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.museum-page-info {
  min-width: 112px;
  color: rgba(7, 25, 54, 0.62);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.museum-capabilities {
  width: min(1498px, calc(100vw - 54px));
  min-height: 106px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(126, 157, 205, 0.24);
  border-radius: 16px 16px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.94)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 46px rgba(35, 78, 128, 0.1);
}

.museum-capabilities div {
  min-width: 0;
  padding: 22px 30px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-content: center;
  border-left: 1px solid var(--museum-line);
}

.museum-capabilities div:first-child {
  border-left: 0;
}

.museum-capabilities svg {
  grid-row: 1 / 3;
  align-self: center;
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 1px solid rgba(11, 87, 219, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.98), rgba(232, 241, 255, 0.82)),
    #edf5ff;
  color: var(--museum-blue);
  box-shadow: 0 8px 18px rgba(42, 94, 164, 0.1);
}

.museum-capabilities svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.museum-capabilities strong {
  font-size: 15px;
  font-weight: 950;
}

.museum-capabilities span {
  margin-top: 5px;
  color: var(--museum-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.museum-footer {
  width: 100%;
  margin-inline: 0;
  padding: 30px max(54px, calc((100vw - 1498px) / 2));
  align-items: center;
  margin-top: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 132, 255, 0.18), transparent 38%),
    linear-gradient(90deg, #082762, #061b4d);
  color: rgba(255, 255, 255, 0.72);
}

.museum-footer::before {
  left: max(54px, calc((100vw - 1498px) / 2));
}

.museum-footer p {
  color: #fff;
}

.museum-footer .footer-brand span,
.museum-footer .footer-contact a {
  color: rgba(255, 255, 255, 0.72);
}

.museum-footer nav {
  display: flex;
  gap: 26px;
}

.museum-footer nav a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
}

.museum-footer nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 8px;
}

.museum-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 20, 49, 0.88);
}

.museum-lightbox[hidden] {
  display: none;
}

.museum-lightbox figure {
  width: min(980px, 100%);
  max-height: 92vh;
  margin: 0;
  padding: 18px;
  display: grid;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid rgba(183, 209, 250, 0.36);
  background:
    radial-gradient(circle at 50% 100%, rgba(70, 132, 221, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff, #f5f9ff);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.museum-lightbox.is-3d figure {
  background:
    radial-gradient(circle at 50% 100%, rgba(86, 151, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #071d51, #06163c);
}

.museum-lightbox img {
  width: 100%;
  max-height: calc(92vh - 82px);
  object-fit: contain;
  border-radius: 8px;
}

.museum-lightbox figcaption {
  color: var(--museum-muted);
  font-size: 14px;
  font-weight: 850;
}

.museum-lightbox.is-3d figcaption {
  color: rgba(255, 255, 255, 0.78);
}

.museum-lightbox-tools {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.museum-lightbox-tools[hidden] {
  display: none;
}

.museum-lightbox-tools button {
  min-width: 96px;
  height: 36px;
  border: 1px solid rgba(11, 87, 219, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--museum-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.museum-lightbox-tools button.is-active {
  border-color: var(--museum-blue);
  background: var(--museum-blue);
  color: #fff;
}

.museum-lightbox.is-3d .museum-lightbox-tools button {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
}

.museum-lightbox.is-3d .museum-lightbox-tools button.is-active {
  background: #fff;
  color: var(--museum-blue);
}

.museum-lightbox-close {
  position: fixed;
  right: 22px;
  top: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@keyframes museum-case-breathe {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .museum-case img,
  .museum-featured-card,
  .museum-featured-art img,
  .museum-card,
  .museum-card-3d img {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1320px) {
  .museum-hero {
    grid-template-columns: 440px minmax(0, 1fr);
    padding-left: 42px;
    padding-right: 42px;
  }

  .museum-stats,
  .museum-explore,
  .museum-capabilities {
    width: calc(100vw - 48px);
  }

  .museum-layout {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .museum-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .museum-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 650px;
  }

  .museum-hero-stage {
    min-height: 300px;
  }

  .museum-guide {
    display: none;
  }

  .museum-stats,
  .museum-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .museum-explore-head,
  .museum-toolbar,
  .museum-browser,
  .museum-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .museum-sidebar {
    display: none;
  }
}

@media (max-width: 720px) {
  .museum-page .site-header {
    overflow: hidden;
  }

  .museum-page .nav {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .museum-page .nav::-webkit-scrollbar {
    display: none;
  }

  .museum-main {
    padding-top: 0;
  }

  .museum-hero {
    min-height: auto;
    padding: 42px 20px 74px;
    gap: 24px;
  }

  .museum-hero h1 {
    font-size: 46px;
  }

  .museum-lead {
    font-size: 18px;
  }

  .museum-actions {
    flex-direction: column;
    gap: 12px;
  }

  .museum-actions a {
    width: 100%;
  }

  .museum-hero-stage {
    min-height: 236px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 2px 18px;
    perspective: none;
    scroll-snap-type: x mandatory;
  }

  .museum-hero-stage::-webkit-scrollbar {
    display: none;
  }

  .museum-case {
    position: relative;
    inset: auto;
    flex: 0 0 250px;
    width: 250px;
    height: 194px;
    transform: none;
    scroll-snap-align: center;
  }

  .museum-case-main {
    flex-basis: 282px;
    width: 282px;
    height: 210px;
    transform: none;
  }

  .museum-case-main figcaption {
    left: 18px;
    right: auto;
  }

  .museum-stats,
  .museum-explore,
  .museum-capabilities {
    width: calc(100vw - 28px);
  }

  .museum-stats {
    grid-template-columns: minmax(0, 1fr);
    margin-top: -38px;
    padding: 12px 20px;
  }

  .museum-stats div,
  .museum-capabilities div {
    border-left: 0;
    border-top: 1px solid var(--museum-line);
  }

  .museum-stats div:first-child,
  .museum-capabilities div:first-child {
    border-top: 0;
  }

  .museum-explore-head {
    gap: 18px;
  }

  .museum-toolbar {
    gap: 12px;
  }

  .museum-search {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .museum-search select {
    display: none;
  }

  .museum-featured-card {
    min-height: 270px;
  }

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

  .museum-card {
    min-height: 140px;
    grid-template-rows: 90px auto;
  }

  .museum-card-frame {
    padding: 6px 8px 0;
  }

  .museum-card-code {
    padding: 7px 9px 9px;
  }

  .museum-capabilities {
    grid-template-columns: minmax(0, 1fr);
  }

  .museum-footer nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .museum-footer {
    padding: 28px 20px;
  }

  .museum-footer::before {
    left: 20px;
  }
}

/* Museum gallery refinement: denser paging view, closer to the blue-white reference UI. */
.museum-page {
  background:
    radial-gradient(ellipse 980px 420px at 76% -6%, rgba(66, 145, 255, 0.18), transparent 68%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 42%, #f5f9ff 100%);
}

.museum-main {
  padding-top: 0;
}

.museum-hero {
  min-height: 438px;
  padding: 54px max(56px, calc((100vw - 1440px) / 2)) 78px;
  grid-template-columns: 500px minmax(0, 1fr);
  gap: 34px;
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.98) 0 30%, rgba(236, 245, 255, 0.78) 45%, rgba(227, 241, 255, 0.22) 100%),
    url("./assets-museum/museum-gallery-hero.png") center / cover no-repeat;
}

.museum-hero h1 {
  color: #1554b8;
  font-size: clamp(56px, 4.8vw, 72px);
  line-height: 1.03;
}

.museum-lead {
  max-width: 500px;
  margin-top: 18px;
  font-size: 20px;
}

.museum-note {
  max-width: 500px;
  margin-top: 14px;
}

.museum-actions {
  margin-top: 26px;
  gap: 18px;
}

.museum-actions a {
  height: 44px;
  min-width: 126px;
  border-radius: 8px;
}

.museum-hero-stage {
  min-height: 330px;
}

.museum-case {
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    inset 0 -18px 34px rgba(119, 163, 224, 0.1),
    0 22px 46px rgba(44, 91, 155, 0.18);
}

.museum-case-main {
  left: 30%;
  top: -10px;
  width: 348px;
  height: 270px;
}

.museum-case-left {
  left: 8%;
  top: 70px;
}

.museum-case-right {
  right: 8%;
  top: 62px;
}

.museum-guide {
  top: 238px;
  border-radius: 18px;
}

.museum-stats {
  width: min(1240px, calc(100vw - 96px));
  min-height: 82px;
  margin: -42px auto 18px;
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 42px rgba(39, 83, 145, 0.11);
}

.museum-stats div {
  min-height: 82px;
  padding: 13px 28px;
}

.museum-stats svg {
  width: 38px;
  height: 38px;
}

.museum-stats span {
  font-size: 12px;
}

.museum-stats strong {
  margin-top: 2px;
  font-size: 21px;
}

.museum-explore {
  width: min(1428px, calc(100vw - 108px));
  margin-top: 14px;
  padding-top: 0;
}

.museum-explore-head {
  grid-template-columns: 174px minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 13px;
}

.museum-explore-head h2 {
  font-size: 26px;
}

.museum-toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
  gap: 14px;
}

.museum-filter-group button,
.museum-search,
.museum-search-button {
  border-radius: 10px;
}

.museum-filter-group {
  overflow-x: auto;
  scrollbar-width: none;
}

.museum-filter-group::-webkit-scrollbar {
  display: none;
}

.museum-filter-group button {
  min-width: 86px;
  padding-inline: 14px;
}

.museum-browser {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
}

.museum-sidebar {
  border-radius: 14px;
  padding: 10px;
}

.museum-sidebar button {
  min-height: 58px;
  border-radius: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.museum-sidebar svg {
  width: 24px;
  height: 24px;
}

.museum-result-head {
  margin-bottom: 12px;
  padding-inline: 2px;
}

.museum-layout {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.museum-featured-card {
  min-height: 306px;
  border-radius: 10px;
}

.museum-featured-label {
  top: 15px;
  left: 17px;
}

.museum-featured-art img {
  width: 90%;
  height: 76%;
}

.museum-featured-meta {
  left: 17px;
  bottom: 18px;
}

.museum-featured-link {
  right: 16px;
  bottom: 18px;
  height: 34px;
  border-radius: 8px;
}

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

.museum-card {
  min-height: 147px;
  grid-template-rows: 95px auto;
  border-radius: 10px;
}

.museum-card-frame {
  padding: 6px 10px 0;
}

.museum-card img {
  width: 114%;
  height: 114%;
  transform: perspective(600px) rotateY(-2deg);
}

.museum-card-3d img {
  width: 132%;
  height: 132%;
  transform: translateY(-6px);
}

.museum-card-3d:hover img {
  transform: translateY(-8px) scale(1.03);
}

.museum-card-code {
  padding: 8px 11px 10px;
  font-size: 12px;
}

.museum-pager {
  width: min(468px, 100%);
  margin-top: 20px;
  grid-template-columns: minmax(108px, 1fr) auto minmax(108px, 1fr);
}

.museum-page-button {
  height: 42px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(35, 78, 128, 0.07);
}

.museum-page-info {
  min-width: 108px;
  color: #17407a;
  font-size: 13px;
  font-weight: 900;
}

.museum-capabilities {
  width: min(1428px, calc(100vw - 108px));
  min-height: 98px;
  margin-top: 26px;
  border-radius: 16px 16px 0 0;
}

.museum-capabilities div {
  min-height: 98px;
  padding: 18px 28px;
  grid-template-columns: 50px minmax(0, 1fr);
}

@media (max-width: 1320px) {
  .museum-hero {
    grid-template-columns: 420px minmax(0, 1fr);
    padding-left: 42px;
    padding-right: 42px;
  }

  .museum-layout {
    grid-template-columns: 328px minmax(0, 1fr);
  }

  .museum-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .museum-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 640px;
  }

  .museum-stats,
  .museum-explore,
  .museum-capabilities {
    width: calc(100vw - 48px);
  }

  .museum-explore-head,
  .museum-toolbar,
  .museum-browser,
  .museum-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .museum-sidebar {
    display: none;
  }

  .museum-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .museum-hero {
    min-height: auto;
    padding: 42px 18px 58px;
  }

  .museum-hero h1 {
    font-size: 44px;
  }

  .museum-lead {
    font-size: 17px;
  }

  .museum-stats,
  .museum-explore,
  .museum-capabilities {
    width: calc(100vw - 28px);
  }

  .museum-stats {
    margin-top: -32px;
  }

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

  .museum-card {
    min-height: 140px;
    grid-template-rows: 90px auto;
  }

  .museum-pager {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .museum-page-info {
    order: -1;
  }
}

/* Module-page alignment pass: match the supplied equipment/credentials/process/contact references. */
.museum-section-label {
  display: inline-flex;
  align-items: center;
  color: #1268ee;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
}

.museum-color-strip {
  width: 62px;
  height: 3px;
  margin: 10px 0 24px;
  display: grid;
  grid-template-columns: 24px 10px 18px 10px;
  border-radius: 999px;
  overflow: hidden;
}

.museum-color-strip span:nth-child(1) {
  background: #d8372c;
}

.museum-color-strip span:nth-child(2) {
  background: #f3c72d;
}

.museum-color-strip span:nth-child(3) {
  background: #1268ee;
}

.museum-color-strip span:nth-child(4) {
  background: #06101f;
}

.museum-hero h1 {
  max-width: 560px;
  color: #071f52;
  font-size: clamp(50px, 4.55vw, 66px);
  line-height: 1.06;
}

.museum-lead {
  color: #071f52;
}

.museum-note {
  max-width: 540px;
}

.museum-explore {
  padding: 14px 18px 18px;
  border: 1px solid rgba(197, 216, 243, 0.82);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96)),
    #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 48px rgba(24, 74, 138, 0.08);
}

.museum-explore-head {
  margin-bottom: 12px;
  align-items: center;
}

.museum-explore-head h2 {
  position: relative;
  color: #071f52;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 950;
}

.museum-explore-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: #1268ee;
  box-shadow: 16px 0 0 #d8372c;
}

.museum-filter-group {
  height: 42px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(197, 216, 243, 0.86);
}

.museum-filter-group button {
  height: 42px;
  font-size: 13px;
}

.museum-browser {
  margin-top: 12px;
  gap: 16px;
}

.museum-sidebar {
  overflow: hidden;
  padding: 0;
  border-color: rgba(197, 216, 243, 0.86);
  border-radius: 10px;
  background: rgba(249, 252, 255, 0.96);
  box-shadow: none;
}

.museum-sidebar button {
  min-height: 58px;
  border-radius: 0;
  padding-inline: 14px;
}

.museum-sidebar button.is-active {
  background: linear-gradient(135deg, #123d91, #0a2667);
  color: #fff;
}

.museum-sidebar button.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.museum-result-head {
  min-height: 32px;
  margin-bottom: 10px;
}

.museum-card,
.museum-featured-card {
  border-color: rgba(197, 216, 243, 0.84);
}

.museum-card {
  box-shadow: 0 8px 18px rgba(29, 76, 135, 0.06);
}

.museum-capabilities {
  margin-top: 18px;
  border-color: rgba(197, 216, 243, 0.82);
  border-radius: 14px 14px 0 0;
}

.museum-page .museum-ui-footer {
  position: relative;
  margin-top: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 97% 6%, rgba(49, 132, 255, 0.24), transparent 32%),
    radial-gradient(circle at 10% -20%, rgba(66, 143, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #092f68, #061d40 68%, #04152e);
}

.museum-page .museum-ui-footer::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 92px;
  opacity: 0.32;
  background:
    radial-gradient(ellipse 840px 82px at 72% 86%, transparent 0 58%, rgba(113, 173, 255, 0.36) 59% 60%, transparent 61%),
    radial-gradient(ellipse 620px 72px at 58% 92%, transparent 0 58%, rgba(113, 173, 255, 0.3) 59% 60%, transparent 61%);
  pointer-events: none;
}

.museum-page .museum-ui-footer .ui-footer-inner,
.museum-page .museum-ui-footer .ui-footer-bottom {
  position: relative;
  z-index: 1;
  width: min(1498px, calc(100vw - clamp(48px, 10.3vw, 172px)));
}

.museum-page .museum-ui-footer .ui-footer-inner {
  grid-template-columns: 390px minmax(0, 1fr) 210px;
  min-height: 172px;
}

.museum-page .museum-ui-footer .ui-footer-logo img {
  width: auto;
}

.museum-footer-logo {
  min-width: 0;
}

.museum-footer-brandline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.museum-footer-brandline img {
  flex: 0 0 auto;
  width: 52px !important;
  height: 52px;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.museum-footer-brandline p {
  margin: 0 !important;
}

.museum-footer-brandline strong,
.museum-footer-brandline span {
  display: block;
}

.museum-footer-brandline strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: 0;
}

.museum-footer-brandline span {
  margin-top: 5px;
  color: rgba(229, 240, 255, 0.76);
  font-size: 12px;
  line-height: 1.2;
  font-family: Georgia, "Times New Roman", serif;
}

.museum-footer-address {
  margin-top: 18px !important;
  color: rgba(229, 240, 255, 0.82);
}

.museum-page .museum-ui-footer .ui-footer-mid {
  grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1fr);
}

.museum-page .museum-ui-footer .ui-footer-mid div:nth-child(2) {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: 26px;
  align-content: start;
}

.museum-page .museum-ui-footer .ui-footer-mid div:nth-child(2) strong {
  grid-column: 1 / -1;
}

.museum-page .museum-ui-footer a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 7px;
}

.museum-page .museum-ui-footer .ui-footer-contact {
  align-self: center;
}

.museum-footer-qr {
  width: 96px;
  height: 96px;
  margin-top: 14px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1080px) {
  .museum-explore {
    padding: 12px;
  }

  .museum-page .museum-ui-footer .ui-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 0;
  }

  .museum-page .museum-ui-footer .ui-footer-mid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .museum-explore {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .museum-explore-head h2 {
    font-size: 30px;
  }

  .museum-explore-head h2::after {
    bottom: -6px;
  }

  .museum-section-label {
    font-size: 14px;
  }

  .museum-color-strip {
    margin-bottom: 18px;
  }

  .museum-hero h1 {
    font-size: 42px;
  }

  .museum-footer-brandline strong {
    font-size: 17px;
  }

  .museum-page .museum-ui-footer .ui-footer-mid,
  .museum-page .museum-ui-footer .ui-footer-mid div:nth-child(2) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.museum-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.museum-page-number,
.museum-page-ellipsis {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}

.museum-page-number {
  border: 1px solid rgba(183, 205, 238, 0.92);
  background: #fff;
  color: #0a2a66;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.museum-page-number:hover {
  border-color: rgba(41, 99, 226, 0.72);
  box-shadow: 0 8px 18px rgba(36, 91, 186, 0.12);
}

.museum-page-number.is-active {
  border-color: #2f62df;
  background: #2f62df;
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 98, 223, 0.22);
}

.museum-page-ellipsis {
  width: auto;
  min-width: 28px;
  color: #7b8aa5;
}

@media (min-width: 1181px) {
  .museum-explore {
    width: min(1498px, calc(100vw - 108px));
    margin: 18px auto 0;
    padding: 0;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid rgba(197, 216, 243, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
      0 22px 56px rgba(30, 77, 137, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }

  .museum-explore-head,
  .museum-browser {
    display: contents;
  }

  .museum-explore-head h2 {
    grid-column: 1;
    grid-row: 1;
    min-height: 72px;
    margin: 0;
    padding: 24px 18px 14px;
    border-right: 1px solid rgba(197, 216, 243, 0.72);
    font-size: 24px;
    line-height: 1.15;
  }

  .museum-explore-head h2::after {
    left: 18px;
    bottom: 12px;
    width: 30px;
    height: 3px;
    background: #d8382d;
    box-shadow: 18px 0 0 #2f62df;
  }

  .museum-toolbar {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(450px, 520px);
    align-items: center;
    gap: 18px;
    min-height: 72px;
    padding: 16px 20px 0;
  }

  .museum-filter-group {
    height: 42px;
    gap: 16px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .museum-filter-group button {
    min-width: 112px;
    height: 42px;
    border: 1px solid rgba(197, 216, 243, 0.86);
    border-radius: 7px;
    background: #fff;
    color: #071f52;
    font-size: 14px;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(30, 77, 137, 0.04);
  }

  .museum-filter-group button span {
    display: none;
  }

  .museum-filter-group button[aria-pressed="true"] {
    border-color: #2f62df;
    background: #2f62df;
    color: #fff;
    box-shadow: 0 12px 24px rgba(47, 98, 223, 0.22);
  }

  .museum-search {
    height: 42px;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(197, 216, 243, 0.9);
  }

  .museum-sidebar {
    grid-column: 1;
    grid-row: 2;
    align-self: stretch;
    overflow: hidden;
    padding: 0 10px 24px;
    border: 0;
    border-right: 1px solid rgba(197, 216, 243, 0.72);
    border-radius: 0;
    background: rgba(250, 253, 255, 0.9);
    box-shadow: none;
  }

  .museum-sidebar button {
    min-height: 66px;
    padding-inline: 14px;
    border-radius: 8px;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .museum-sidebar button.is-active {
    background: linear-gradient(180deg, #243f97, #142d78);
    color: #fff;
    box-shadow: 0 12px 24px rgba(22, 51, 135, 0.18);
  }

  .museum-sidebar button.is-active small {
    color: rgba(255, 255, 255, 0.74);
  }

  .museum-results {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    padding: 16px 20px 24px;
  }

  .museum-result-head {
    display: none;
  }

  .museum-layout {
    grid-template-columns: 410px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
  }

  .museum-featured-card {
    min-height: 342px;
    border-radius: 8px;
  }

  .museum-featured-art {
    min-height: 238px;
  }

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

  .museum-card {
    min-height: 146px;
    grid-template-rows: 96px auto;
    border-radius: 8px;
  }

  .museum-card-frame {
    border-radius: 8px 8px 0 0;
  }

  .museum-card-code {
    min-height: 50px;
    padding: 10px 12px;
  }

  .museum-pager {
    width: 100%;
    margin: 26px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .museum-page-button {
    width: 96px;
    height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 850;
  }

  .museum-page-info {
    min-width: auto;
    margin-left: 14px;
    color: #405272;
    font-size: 13px;
    font-weight: 760;
  }
}

@media (max-width: 720px) {
  .museum-page-numbers {
    flex-wrap: wrap;
  }

  .museum-page-number,
  .museum-page-ellipsis {
    width: 34px;
    height: 34px;
  }
}

.museum-search-hidden {
  display: none !important;
}

.museum-page .museum-capabilities {
  display: none;
}

.museum-sort {
  height: 42px;
  display: block;
  min-width: 0;
}

.museum-sort select {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 18px;
  border: 1px solid rgba(197, 216, 243, 0.9);
  border-radius: 8px;
  background: #fff;
  color: #071f52;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(30, 77, 137, 0.04);
}

@media (min-width: 1181px) {
  .museum-stats {
    width: min(1528px, calc(100vw - 180px));
    min-height: 82px;
    margin-top: -42px;
    margin-bottom: 18px;
  }

  .museum-stats div {
    min-height: 82px;
    padding: 13px 34px;
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .museum-stats svg {
    width: 38px;
    height: 38px;
  }

  .museum-stats strong {
    font-size: 24px;
    letter-spacing: 0;
  }

  .museum-explore {
    width: min(1680px, calc(100vw - 160px));
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .museum-toolbar {
    grid-template-columns: minmax(0, 1fr) 164px;
    min-height: 78px;
    padding: 18px 20px 0 28px;
    gap: 18px;
  }

  .museum-filter-group {
    gap: 22px;
  }

  .museum-filter-group button {
    min-width: 136px;
    height: 42px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    box-shadow:
      0 8px 18px rgba(30, 77, 137, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .museum-filter-group button[aria-pressed="true"] {
    background: linear-gradient(180deg, #416df0, #2d58db);
    border-color: #315ddd;
  }

  .museum-explore-head h2 {
    min-height: 78px;
    padding: 26px 18px 16px;
    font-size: 26px;
  }

  .museum-explore-head h2::after {
    bottom: 13px;
  }

  .museum-results {
    padding: 18px 20px 26px 28px;
  }

  .museum-layout {
    grid-template-columns: 432px minmax(0, 1fr);
    gap: 20px;
  }

  .museum-featured-card {
    min-height: 382px;
  }

  .museum-featured-art {
    min-height: 282px;
  }

  .museum-grid {
    gap: 16px;
  }

  .museum-card {
    min-height: 168px;
    grid-template-rows: 110px auto;
  }

  .museum-card-code {
    min-height: 58px;
    padding: 10px 13px;
  }

  .museum-pager {
    margin-top: 30px;
  }
}

/* Align museum hero with the later detail pages. */
@media (min-width: 1181px) {
  .museum-hero {
    min-height: 360px;
    padding: 0 max(48px, calc((100vw - 1498px) / 2)) 34px;
    grid-template-columns: minmax(0, 650px) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0 38%, rgba(255, 255, 255, 0.84) 56%, rgba(226, 239, 255, 0.34) 100%),
      url("./assets-museum/museum-gallery-hero.png") center center / cover no-repeat,
      linear-gradient(90deg, #fff, #edf6ff);
  }

  .museum-hero-copy {
    align-self: start;
    padding-top: 48px;
  }

  .museum-section-label {
    display: inline-flex;
    align-items: center;
    color: #09295d;
    font-size: 14px;
    line-height: 1;
    font-weight: 650;
  }

  .museum-section-label::after {
    content: ">";
    margin-left: 8px;
    color: rgba(9, 41, 93, 0.54);
    font-size: 14px;
    line-height: 1;
  }

  .museum-color-strip {
    display: none;
  }

  .museum-hero h1 {
    max-width: 650px;
    margin-top: 26px;
    color: #071f52;
    font-family:
      "Xiaolin Sans",
      "Noto Sans SC",
      "Microsoft YaHei",
      Arial,
      sans-serif;
    font-size: clamp(42px, 3.1vw, 52px);
    line-height: 1.14;
    font-weight: 780;
    letter-spacing: 0;
  }

  .museum-lead {
    max-width: 650px;
    margin-top: 18px;
    color: rgba(10, 34, 76, 0.86);
    font-size: 18px;
    line-height: 1.62;
    font-weight: 760;
  }

  .museum-note {
    max-width: 650px;
    margin-top: 16px;
    color: rgba(10, 34, 76, 0.68);
    font-size: 14px;
    line-height: 1.68;
    font-weight: 620;
  }

  .museum-actions {
    margin-top: 28px;
    gap: 16px;
  }

  .museum-actions a {
    min-width: 158px;
    height: 44px;
    padding: 0 28px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 650;
  }

  .museum-actions a:first-child {
    background: linear-gradient(180deg, #176cf1, #074bd1);
    box-shadow: 0 12px 28px rgba(11, 85, 221, 0.2);
  }

  .museum-actions a::after {
    content: "→";
    margin-left: 18px;
    font-size: 15px;
    line-height: 1;
  }

  .museum-hero-stage {
    min-height: 280px;
    align-self: center;
  }

  .museum-guide {
    display: none;
  }
}

/* Final mobile polish layer. Desktop rules above stay untouched. */
.museum-actions a::after {
  content: "->";
}

@media (max-width: 720px) {
  .museum-page {
    overflow-x: hidden;
  }

  .museum-main {
    padding-top: 0;
  }

  .museum-hero {
    min-height: 0;
    padding: 28px 14px 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0 42%, rgba(244, 249, 255, 0.72) 100%),
      url("./assets-museum/museum-gallery-hero.png") center top / cover no-repeat;
  }

  .museum-hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-self: start;
  }

  .museum-section-label {
    font-size: 13px;
  }

  .museum-hero h1 {
    width: 100%;
    margin-top: 18px;
    font-size: clamp(38px, 12vw, 48px);
    line-height: 1.08;
    font-weight: 780;
    color: #071f52;
    white-space: normal !important;
    text-wrap: auto;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .museum-lead {
    width: 100%;
    max-width: 100%;
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 700;
    white-space: normal !important;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .museum-note {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.68;
    font-weight: 500;
    white-space: normal !important;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .museum-actions {
    width: 100%;
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .museum-actions a {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
  }

  .museum-hero-stage {
    min-height: 202px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0 18px;
    perspective: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .museum-hero-stage::-webkit-scrollbar {
    display: none;
  }

  .museum-hero-stage::before {
    display: none;
  }

  .museum-case,
  .museum-case-main,
  .museum-case-left,
  .museum-case-right {
    position: relative;
    inset: auto;
    flex: 0 0 248px;
    width: 248px;
    height: 184px;
    padding: 14px 12px 34px;
    transform: none;
    scroll-snap-align: start;
  }

  .museum-case-main {
    flex-basis: 276px;
    width: 276px;
    height: 198px;
  }

  .museum-case::before {
    top: -34px;
    height: 34px;
  }

  .museum-case-main figcaption {
    left: 14px;
    right: auto;
  }

  .museum-guide {
    display: none;
  }

  .museum-stats {
    width: calc(100vw - 28px);
    min-height: 0;
    margin: -34px auto 16px;
    padding: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-radius: 12px;
  }

  .museum-stats div {
    min-height: 74px;
    padding: 10px 8px;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 8px;
    border-left: 0;
    border-top: 1px solid var(--museum-line);
  }

  .museum-stats div:nth-child(-n + 2) {
    border-top: 0;
  }

  .museum-stats svg {
    width: 26px;
    height: 26px;
  }

  .museum-stats span {
    font-size: 11px;
  }

  .museum-stats strong {
    font-size: 19px;
    line-height: 1.15;
  }

  .museum-explore {
    width: calc(100vw - 24px);
    margin-top: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(197, 216, 243, 0.82);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
  }

  .museum-explore-head,
  .museum-toolbar,
  .museum-browser,
  .museum-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .museum-explore-head h2 {
    min-height: 62px;
    margin: 0;
    padding: 18px 16px 12px;
    font-size: 24px;
  }

  .museum-explore-head h2::after {
    left: 16px;
    bottom: 8px;
  }

  .museum-toolbar {
    padding: 0 14px 12px;
    gap: 10px;
  }

  .museum-filter-group {
    width: 100%;
    min-width: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .museum-filter-group::-webkit-scrollbar {
    display: none;
  }

  .museum-filter-group button {
    flex: 0 0 auto;
    min-width: 82px;
    height: 38px;
    border-radius: 8px;
    font-size: 13px;
  }

  .museum-sort {
    width: 100%;
  }

  .museum-sidebar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 14px 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .museum-sidebar::-webkit-scrollbar {
    display: none;
  }

  .museum-sidebar button {
    flex: 0 0 132px;
    min-height: 54px;
    padding: 10px;
    grid-template-columns: 28px minmax(0, 1fr);
    border: 1px solid rgba(197, 216, 243, 0.82);
    border-radius: 10px;
    background: #fff;
  }

  .museum-sidebar svg {
    width: 23px;
    height: 23px;
  }

  .museum-sidebar strong {
    font-size: 13px;
  }

  .museum-sidebar small {
    display: none;
  }

  .museum-results {
    padding: 0 14px 16px;
  }

  .museum-result-head {
    display: none;
  }

  .museum-featured-card {
    min-height: 258px;
    border-radius: 12px;
  }

  .museum-featured-art {
    min-height: 192px;
  }

  .museum-featured-meta {
    left: 14px;
    bottom: 16px;
  }

  .museum-featured-link {
    right: 12px;
    bottom: 14px;
    height: 34px;
    padding: 0 12px;
  }

  .museum-grid {
    margin-top: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .museum-card {
    min-height: 144px;
    grid-template-rows: 94px auto;
    border-radius: 10px;
  }

  .museum-card-frame {
    padding: 6px 8px 0;
  }

  .museum-card-3d img {
    width: 128%;
    height: 128%;
    transform: translateY(-4px);
  }

  .museum-card-code {
    min-height: 48px;
    padding: 7px 9px 9px;
    font-size: 12px;
  }

  .museum-pager {
    width: 100%;
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .museum-page-numbers {
    grid-column: 1 / -1;
    order: -1;
    gap: 5px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .museum-page-number,
  .museum-page-ellipsis {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .museum-page-button {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .museum-page-info {
    grid-column: 1 / -1;
    margin: 0;
    text-align: center;
    font-size: 12px;
  }

  .museum-lightbox {
    padding: 18px 10px;
  }

  .museum-lightbox figure,
  .museum-lightbox.is-3d figure {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 92px);
    border-radius: 14px;
  }

  .museum-lightbox figcaption {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .museum-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .museum-hero h1 {
    font-size: 38px;
  }

  .museum-stats strong {
    font-size: 17px;
  }

  .museum-featured-link {
    display: none;
  }
}
