:root {
  --bg: #f6efe2;
  --surface: rgba(255, 250, 242, 0.92);
  --surface-strong: #fffaf3;
  --primary: #be4829;
  --primary-deep: #be4829;
  --accent: #d6a24c;
  --accent-soft: rgba(214, 162, 76, 0.16);
  --ink: #5e3d2e;
  --ink-light: #8d7463;
  --line: rgba(142, 104, 69, 0.16);
  --shadow: 0 24px 60px rgba(76, 38, 20, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --header-height: 84px;
  --content-width: min(1440px, calc(100vw - 72px));
  --serif: "STSong", "Songti SC", "Noto Serif SC", "SimSun", serif;
  --display-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:#fdf6ec;
}

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

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: visible;
  backdrop-filter: blur(18px);
  background: #91765d;
  border-bottom: 1px solid rgba(255, 218, 166, 0.18);
}

.dibulianji{
    color: #ddbf6f;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}
.dibulianji a{
    color: #ddbf6f;
}
.dibulianji a:hover{
    color: #e2b15f;
}

.header-inner,
.footer-inner,
.section,
.hero-inner,
.tabs-inner,
.quick-actions,
.stats-band,
.home-feature-grid,
.content-grid,
.content-row,
.table-layout {
  width: var(--content-width);
  margin: 0 auto;
}

.header-inner {
  width: min(1560px, calc(100vw - 40px));
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}

.brand {
  display: inline-grid;
  gap: 2px;
  color: #ffe9d2;
}
.brand img{
    max-height: 45px;
}
.brand-title {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: rgba(255, 233, 210, 0.64);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-self: stretch;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  display: flex;
  align-items: stretch;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  height: 100%;
  padding: 0;
  font-size: 1.15rem;
  color: rgba(255, 242, 228, 0.86);
  transition: color 180ms ease;
}

.nav-link-label {
  display: inline-flex;
  align-items: center;
  color: #e8d5b8;
}

.museum-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.museum-subnav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 242, 228, 0.52);
  cursor: pointer;
  transition: color 180ms ease;
}

.museum-subnav-caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: #e2b15f;
  opacity: 0;
  transform: translateX(-50%) scaleX(0.2);
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-active-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: #e2b15f;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: left 180ms ease, width 180ms ease, opacity 180ms ease;
  display: none;
}

.nav-link:hover,
.nav-link.is-active,
.museum-nav-item:hover .museum-subnav-toggle,
.museum-nav-item:focus-within .museum-subnav-toggle,
.museum-nav-item.is-open .museum-subnav-toggle {
  color: #e2b15f;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.museum-nav-item.is-open .museum-subnav-caret,
.museum-nav-item:focus-within .museum-subnav-caret {
  transform: rotate(225deg) translateY(1px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 235, 218, 0.78);
  font-size: 0.95rem;
}

.header-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 226, 194, 0.2);
  border-radius: 50%;
}

.museum-search-toggle {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  font-size: 1.42rem;
  line-height: 1;
  color: rgba(255, 235, 218, 0.9);
}

.museum-search-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.museum-search-toggle:hover {
  color: #fff4e4;
}

.header-lang {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    color: rgba(255, 235, 218, 0.82);
    font-size: 0.95rem;
    line-height: 1;
}

.header-lang-trigger {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 226, 194, 0.2);
  border-radius: 999px;
  background: rgba(82, 27, 10, 0.12);
  color: #fff7ef;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.header-lang-trigger:hover {
  border-color: rgba(255, 226, 194, 0.36);
  background: rgba(82, 27, 10, 0.22);
}

.header-lang-current {
  font-weight: 600;
}

.header-lang-caret {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 180ms ease;
}

.header-lang.is-open .header-lang-caret {
  transform: translateY(2px) rotate(-135deg);
}

.header-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 100%;
  padding: 8px;
  display: none;
  border: 1px solid rgba(255, 226, 194, 0.2);
  border-radius: 18px;
  background: rgba(108, 42, 22, 0.96);
  box-shadow: 0 18px 36px rgba(35, 12, 4, 0.22);
}

.header-lang.is-open .header-lang-menu {
  display: grid;
  gap: 4px;
}

.header-lang-menu-item {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 235, 218, 0.78);
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.header-lang-menu-item:hover,
.header-lang-menu-item.is-active {
  background: rgba(255, 244, 228, 0.12);
  color: #fff7ef;
}

.hero {
  position: relative;
  min-height: clamp(520px, 81vh, 860px);
  overflow: hidden;
  background: #372116;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero::before {
  background-image: var(--hero-image);
  background-position: top center;
  background-size: cover;
  transform: scale(1.04);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(27, 14, 8, 0.66), rgba(27, 14, 8, 0.12) 56%, rgba(27, 14, 8, 0.44)),
    linear-gradient(180deg, rgba(16, 8, 5, 0.2), rgba(16, 8, 5, 0.55));
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  padding: calc(var(--header-height) + 56px) 0 64px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.museum-home-hero::after {
  display: none;
}

.museum-home-hero-slides {
  position: absolute;
  inset: 0;
}

.museum-home-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 360ms ease;
  background:
    linear-gradient(90deg, rgba(27, 14, 8, 0.66), rgba(27, 14, 8, 0.12) 56%, rgba(27, 14, 8, 0.44)),
    linear-gradient(180deg, rgba(16, 8, 5, 0.2), rgba(16, 8, 5, 0.55)),
    var(--hero-slide-image);
  background-position: center center;
  background-size: cover;
}

.museum-home-hero-slide.is-active {
  opacity: 1;
}

.museum-home-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 54px;
  margin-top: -27px;
  border: 1px solid rgba(224, 181, 106, 0.24);
  background: rgba(178, 114, 43, 0.08);
  color: rgba(224, 181, 106, 0.72);
  font-size: 1.7rem;
  line-height: 1;
}

.museum-home-hero-arrow--prev {
  left: 14px;
}

.museum-home-hero-arrow--next {
  right: 14px;
}

.museum-home-hero-arrow:hover {
  color: #f2cf92;
  border-color: rgba(242, 207, 146, 0.34);
  background: rgba(178, 114, 43, 0.16);
}

.museum-home-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.museum-home-hero-dot {
  width: 18px;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(214, 162, 76, 0.38);
}

.museum-home-hero-dot.is-active {
  background: #d6a24c;
}

.museum-home-hero-count {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 3;
  color: rgba(214, 162, 76, 0.72);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.hero-copy {
  max-width: 560px;
  color: #fdf0df;
  align-self: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c8922a;
    font-family: '微软雅黑';
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
}

.hero-title {
  margin: 24px 0 18px;
  font-family: var(--display-serif);
  font-size: clamp(3.4rem, 7vw, 7rem);
  line-height: 0.98;
  font-weight: bold;
  letter-spacing: 0.01em;
}

.hero-subtitle {
    margin: 0 0 7vh;
    font-size: 1.25rem;
    line-height: 1.9;
    color: #f0e0c0bd;
    font-weight: lighter;
    max-width: 430px;
}

.hero-kicker {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-size: clamp(2rem, 3.3vw, 4rem);
    line-height: 0.5;
    color: #d6a24c;
    margin-bottom: 7vh;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #e4ac4d, #c47929);
  color: #3f2416;
  box-shadow: 0 18px 36px rgba(124, 72, 17, 0.22);
}

.hero-square-button {
    min-width: 176px;
    justify-content: space-between;
    gap: 18px;
    padding: 0 22px 0 24px;
    border-radius: 0px;
    color: #91765d;
    font-weight: 550;
    font-size: 1.2rem;
    font-family: emoji;
}

.hero-square-button span {
  font-size: 1rem;
  line-height: 1;
}

.hero-outline-button {
  border-radius: 0px;
  min-width: 148px;
  padding: 0 24px;
}

.button-secondary {
  background: rgba(255, 244, 228, 0.12);
  border-color: rgba(255, 235, 210, 0.26);
  color: #fff6ea;
}

.hero-side {
  align-self: flex-end;
  width: min(360px, 100%);
  display: grid;
  gap: 16px;
}

.glass-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 238, 0.1);
  border: 1px solid rgba(255, 234, 210, 0.18);
  box-shadow: 0 18px 50px rgba(20, 8, 2, 0.12);
  color: #fff3e0;
}

.glass-card h3,
.glass-card p {
  margin: 0;
}

.glass-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.glass-card p {
  line-height: 1.8;
  color: rgba(255, 243, 229, 0.82);
}

.quick-actions-wrap {
  margin-top: 0;
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(90deg, #e9c183, #9c7a55);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 100px;
  padding: 33px 30px;
  color: #fdeed8;
  border-right: 1px solid rgba(255, 232, 208, 0.16);
}

.quick-card:last-child {
  border-right: 0;
}

.quick-card-icon {
    overflow: hidden;
    border: 1px solid #d9ad61;
    height: 48px;
    width: 48px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
}

.quick-card-icon img {

}



.quick-card-content {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
}

.quick-card-content strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #f0e0c0;
  line-height: 1.1;
}

.quick-card-content span {
    font-family: '微软雅黑';
    font-size: 1rem;
    font-weight: normal;
    color: #e8d5b8;
    line-height: 1.35;
}

.quick-card-arrow {
  flex: 0 0 auto;
  color: rgba(253, 238, 216, 0.28);
  font-size: 1rem;
  line-height: 1;
}

.tabs {
  background: linear-gradient(180deg, rgba(190, 72, 41, 0.98), rgba(190, 72, 41, 0.98));
  border-top: 1px solid rgba(255, 225, 188, 0.18);
  border-bottom: 1px solid rgba(109, 45, 28, 0.18);
}

.tabs-inner {
  display: flex;
  flex-wrap: wrap;
}

.tab-link {
  padding: 21px 34px;
  color: #fbe8d0;
  border-right: 1px solid rgba(255, 230, 201, 0.16);
  transition: background 180ms ease;
}

.tab-link:hover,
.tab-link.is-active {
  background: rgba(113, 46, 24, 0.22);
}

.section {
  padding: 72px 0;
}

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

.section-title {
  margin: 14px 0 0;
  font-family: var(--display-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-copy {
  max-width: 460px;
  color: var(--ink-light);
  line-height: 1.85;
}

.section-link {
  color: var(--primary);
  font-weight: 600;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.feature-tile,
.artifact-card,
.program-card,
.hall-card,
.list-card,
.news-card,
.service-panel,
.about-stat {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.feature-tile {
  min-height: 260px;
  display: flex;
  align-items: end;
  padding: 24px;
  background:
    linear-gradient(180deg, transparent 18%, rgba(22, 10, 5, 0.78)),
    var(--tile-image);
  background-size: cover;
  background-position: top center;
  color: #fff0de;
}

.tile-label,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.tile-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(214, 162, 76, 0.88);
  color: #4b2c1d;
}

.feature-tile h3,
.artifact-card h3,
.program-card h3,
.hall-card h3,
.news-card h3,
.list-card h3,
.service-panel h3,
.about-stat h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
}

.feature-tile h3 {
  font-size: 1.75rem;
}

.feature-tile p {
  margin: 8px 0 0;
  color: rgba(255, 239, 220, 0.78);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  gap: 28px;
}

.artifact-grid,
.hall-grid,
.program-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.artifact-card img,
.hall-card img,
.program-card img,
.news-card img,
.list-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: top center;
}

.program-card-media {
  position: relative;
  overflow: hidden;
  background: #3b2418;
}

.program-card-media img {
  display: block;
  object-position: center var(--program-focus, 70%);
  transform: scale(var(--program-scale, 1.18));
  transform-origin: center;
}

.program-card-tag {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  background: linear-gradient(180deg, #d2aa58 0%, #bb8b3e 100%);
  color: #fff7e8;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(58, 26, 14, 0.18);
}

.program-card-tag::after {
  content: "";
  width: 36px;
  height: 1px;
  margin-left: 12px;
  background: rgba(255, 244, 226, 0.72);
}

.artifact-card-body,
.hall-card-body,
.program-card-body,
.news-card-body,
.list-card-body,
.service-panel-body {
  padding: 22px 22px 24px;
}

.artifact-card h3,
.news-card h3,
.list-card h3 {
  font-size: 1.65rem;
  color: var(--primary);
}

.artifact-card p,
.hall-card p,
.program-card p,
.news-card p,
.list-card p,
.service-panel p {
  margin: 12px 0 0;
  line-height: 1.82;
  color: var(--ink-light);
}

.artifact-meta,
.hall-meta,
.program-meta,
.list-meta,
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: #a07d59;
  font-size: 0.95rem;
}

.program-meta{
    color:#c8922a;
}
.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(40, 88, 60, 0.9);
  color: #e7f6e8;
}

.badge.gold {
  background: rgba(214, 162, 76, 0.94);
  color: #4c2f1c;
}

.badge.red {
  background: rgba(190, 72, 41, 0.92);
  color: #fff1e5;
}

.news-sidebar {
  display: grid;
  gap: 16px;
}

.notice-item {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 18px;
  padding: 18px 20px;
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.notice-date {
  text-align: center;
  color: var(--accent);
}

.notice-date strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.notice-date span {
  font-size: 0.92rem;
}

.notice-item h4 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
}

.notice-item p {
  margin: 8px 0 0;
  color: var(--ink-light);
  line-height: 1.72;
}

.stats-band-wrap {
  padding-bottom: 84px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat-cell {
  padding: 28px 26px;
  text-align: center;
  background: rgba(190, 72, 41, 0.8);
  color: #fdeed6;
  border-right: 1px solid rgba(255, 228, 201, 0.1);
}

.stat-cell:last-child {
  border-right: 0;
}

.stat-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 8px;
}

.footer {
    background: #91765d;
    color: #ffe7cd;
    margin-top: -1px;
    position: relative;
    z-index: 2;
}

.footer-inner {
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) repeat(4, minmax(0, 1fr)) 180px;
  gap: 28px;
}

.footer-block h4 {
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 228, 190, 0.18);
  font-size: 1rem;
  font-weight: 500;
  color: #ffe7cd;
}

.footer-block a{
  display: block;
  margin: 0 0 12px;
  color: #ddbf6f;
  line-height: 1.72;
}
.footer-contact p{
    display: flex;
    gap: 10px;
    margin: 0 0 12px;
    color: #ddbf6f;
    line-height: 1.72;
    align-items: center;
    
}

.footer-contact .brand {
  margin-bottom: 24px;
  color: #ffe7cd;
}

.footer-contact .brand-title {
  color: #ffe7cd;
}

.footer-contact .brand-subtitle {
  color: rgba(255, 231, 205, 0.72);
}

.footer-qrcode {
  display: grid;
  place-items: center;
  padding: 18px;
  min-height: 100px;
  text-align: center;
}

.qr-box {
  width: 110px;
  height: 110px;
  display: grid;
  gap: 10px;
  background: #94775a;
  margin-bottom: 14px;
}
.qr-box img{
    width: 110px;
    height: 110px;
}


.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 224, 188, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #e2b15f;
  font-size: 0.95rem;
}
.footer-bottom span{
    margin: 0 10px;
}
.footer-bottom samp{
    color: #a07d56;
}
.page-section-stack {
  display: grid;
  gap: 24px;
}

.filters,
.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.search-box {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(190, 153, 111, 0.36);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.88);
}

.search-box input {
  border: 0;
  background: transparent;
  width: 100%;
  outline: none;
  color: var(--ink);
}

.filter-pill {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(214, 162, 76, 0.14);
  color: #7c583a;
  border: 1px solid transparent;
}

.filter-pill.is-active {
  background: var(--accent);
  color: #4a2e1c;
}

.list-card {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.list-card img {
  height: 100%;
  min-height: 180px;
}

.list-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-grid-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.news-card.featured {
  background: #180e09;
  color: #ffedd9;
}

.news-card.featured .news-card-body,
.news-card.featured p,
.news-card.featured .news-meta {
  color: inherit;
}

.service-layout,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 28px;
}

.service-panel {
  padding: 0;
}

.service-table {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.service-table-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.2fr;
}

.service-table-row > div {
  padding: 22px 20px;
  background: rgba(255, 252, 248, 0.82);
  border-bottom: 1px solid var(--line);
}

.service-table-row.header > div {
  background: #8a612c;
  color: #ffeacb;
  border-bottom: 0;
}

.service-table-row:last-child > div {
  border-bottom: 0;
}

.service-side-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(190, 72, 41, 0.96), rgba(190, 72, 41, 0.98));
  color: #fee9d2;
  box-shadow: var(--shadow);
}

.service-side-card h3 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0 0 18px;
}

.service-side-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 16px;
  line-height: 1.8;
}

.service-cta {
  margin-top: 18px;
  display: inline-flex;
}

.about-copy {
  font-size: 1.08rem;
  line-height: 2;
  display: grid;
  gap: 22px;
}

.about-visual {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(22, 10, 5, 0.1), rgba(22, 10, 5, 0.36)),
    var(--about-image);
  background-size: cover;
  background-position: top center;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.about-stat {
  padding: 32px 22px;
  text-align: center;
}

.about-stat .icon-box {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
}

.about-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--accent);
}

.muted {
  color: var(--ink-light);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 234, 210, 0.18);
  background: transparent;
  color: #fff2de;
}

@media (max-width: 1120px) {
  .artifact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  :root {
    --content-width: min(100vw - 32px, 1440px);
  }

  .header-inner {
    width: calc(100vw - 32px);
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand toggle"
      "nav nav";
    gap: 20px;
    padding: 18px 0;
  }

  .brand {
    grid-area: brand;
  }

  .mobile-menu-button {
    grid-area: toggle;
    justify-self: end;
  }

  .main-nav {
    grid-area: nav;
    display: block;
    align-self: auto;
  }

  .header-tools {
    display: none;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 8px;
  }

  .nav-list > li {
    display: block;
  }

  .nav-link {
    height: auto;
    padding: 8px 0;
  }

  .museum-nav-trigger {
    height: auto;
  }

  .museum-subnav-toggle {
    height: auto;
    padding: 8px 0;
  }

  .nav-active-indicator {
    display: none;
  }

  .site-header.is-open .nav-list {
    display: flex;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 32px;
    height: 3px;
    border-radius: 999px;
    background: #e2b15f;
    opacity: 0;
    transform: scaleX(0.2);
    transform-origin: left center;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-link:hover::after,
  .nav-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .hero-inner,
  .content-grid,
  .service-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero-side {
    max-width: none;
  }

  .quick-actions,
  .stats-band,
  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at top right, rgba(214, 162, 76, 0.18), transparent 35%),
      linear-gradient(180deg, #fbf5ea 0%, var(--bg) 100%);
  }

  .hero {
    min-height: 620px;
  }

  .hero-inner {
    padding-top: calc(var(--header-height) + 32px);
  }

  .museum-home-hero-arrow {
    width: 28px;
    height: 44px;
    margin-top: -22px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .quick-actions,
  .stats-band,
  .about-stats,
  .artifact-grid,
  .program-grid,
  .hall-grid,
  .home-feature-grid,
  .news-grid-featured,
  .footer-top,
  .service-table-row {
    grid-template-columns: 1fr;
  }

  .quick-card,
  .stat-cell {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 230, 201, 0.1);
  }

  .quick-card:last-child,
  .stat-cell:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .tab-link {
    flex: 1 1 50%;
    text-align: center;
    padding: 18px 14px;
  }
}
