:root {
  --primary: #c0523e;
  --primary-dark: #9a3d2d;
  --ink: #333333;
  --title: #140706;
  --muted: #999999;
  --bg: #f6f1ee;
  --paper: #ffffff;
  --line: #efe6e0;
  --gold: #c89f69;
  --notice: #f3e8dc;
  --shadow: 0 10px 28px rgba(20, 7, 6, 0.06);
  --radius: 16px;
  --max: 1120px;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(192, 82, 62, 0.12);
}
body.nav-lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192, 82, 62, 0.08);
  padding-top: env(safe-area-inset-top);
}
.header-inner, .wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--title);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: #5c4a45;
  font-size: 13px;
  white-space: nowrap;
}
.nav a:hover, .nav a.active {
  color: var(--primary);
  background: rgba(192, 82, 62, 0.08);
}
.nav-toggle, .nav-mask { display: none; }
.nav-toggle {
  width: 44px;
  height: 44px;
  margin: 0 -6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--title);
  border-radius: 2px;
  position: relative;
  transform-origin: center;
  transition: transform 0.18s ease, top 0.18s ease, background 0.18s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-header.nav-open .nav-toggle span { background: transparent; }
.site-header.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 280px at 18% 0%, rgba(200, 159, 105, 0.38), transparent 62%),
    linear-gradient(165deg, #f4e6d8 0%, #e8d3c2 48%, #f6f1ee 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 560px;
  align-items: stretch;
  position: relative;
}
.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: inherit;
  background:
    radial-gradient(80% 70% at 12% 18%, rgba(200, 159, 105, 0.42), transparent 58%),
    linear-gradient(135deg, #f4e6d8 0%, #e8d3c2 52%, #efe6de 100%);
}
.hero-inner:has(#home-banners:not([hidden])) .hero-copy {
  width: 50%;
  background:
    radial-gradient(80% 70% at 12% 18%, rgba(200, 159, 105, 0.42), transparent 58%),
    linear-gradient(90deg, #f4e6d8 0%, #f1dfd0 70%, rgba(241, 223, 208, 0.55) 86%, rgba(241, 223, 208, 0) 100%);
}
.hero-copy-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 72px 36px 56px max(20px, calc((100vw - var(--max)) / 2));
}
.hero p.lead {
  max-width: 460px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  letter-spacing: 0.22em;
  font-size: 12px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--primary);
}
h1, h2, h3 { font-weight: 600; color: var(--title); }
.hero h1 {
  margin: 14px 0 12px;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.32;
  letter-spacing: 0.02em;
}
.hero p.lead {
  margin: 0;
  color: #6b5a54;
  font-size: 16px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-search {
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  min-width: 240px;
  flex: 1;
  max-width: 360px;
  background: #fff;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost {
  background: transparent;
  color: var(--title);
  border-color: rgba(20, 7, 6, 0.16);
}
.hero-inner:has(#home-banners:not([hidden])) .hero-banner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 62%;
  height: 100%;
}
.hero-banner {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #efe6e0;
}
.hero-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 18%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #f1dfd0 0%, rgba(241, 223, 208, 0.4) 38%, rgba(241, 223, 208, 0) 100%);
}
.hero-banner .hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
}
.hero-banner .hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.hero-dot.active { background: #fff; }
.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.home-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}
.home-stats .stat:last-child { border-right: 0; }
.home-stats .stat b {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--primary);
  line-height: 1.1;
}
.home-stats .stat span { color: #6b5a54; font-size: 13px; }

.notice {
  background: var(--notice);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #6a4034;
  font-size: 14px;
}
.notice i {
  font-style: normal;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  flex-shrink: 0;
}

.section { padding: 28px 0 8px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.04em;
}
.section-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--primary);
}
.more {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.more:hover { color: var(--primary); }
.section-desc { margin: 6px 0 0; color: #7a6a64; font-size: 14px; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.artist-card {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 12px;
  padding: 18px 18px 16px;
  min-height: 168px;
}
.artist-card:hover { transform: translateY(-2px); }
.artist-card, .info-card, .policy-card { transition: transform 0.18s ease; }
.name-row, .meta-row, .tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.artist-name, .card-title {
  margin: 0;
  font-size: 18px;
  color: var(--title);
}
.intro {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.avatar {
  width: 92px;
  height: 116px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--serif);
  font-size: 36px;
  background: linear-gradient(160deg, #e7b9a4 0%, #c0523e 48%, #8d3a2c 100%);
  align-self: end;
}
.avatar.gold { background: linear-gradient(160deg, #edd7b4, #c89f69 50%, #8d6840); }
.avatar.ink { background: linear-gradient(160deg, #d9c7be, #8d6a62 45%, #3d241f); }

.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 22px;
}
.lv-national { color: #fff; background: var(--primary); }
.lv-provincial { color: #6a4320; background: #f3e2c8; }
.lv-city { color: #3d4a3a; background: #e5efe2; }
.pill-plain { color: #8a5a22; background: rgba(200, 159, 105, 0.18); }

.info-card, .policy-card { padding: 20px; display: block; }
.info-card:hover, .policy-card:hover { transform: translateY(-2px); }
.card-kicker { color: var(--gold); font-size: 12px; letter-spacing: 0.12em; }
.meta { margin-top: 10px; color: #8a7b75; font-size: 13px; }
.page-main { padding: 28px 0 64px; }
.page-head h1 {
  margin: 8px 0 8px;
  font-family: var(--serif);
  font-size: 36px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.chip {
  border: 0;
  background: #fff;
  color: #6b5a54;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.chip.active { background: var(--primary); color: #fff; }

.detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}
.detail-side, .article {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.portrait {
  height: 220px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--serif);
  font-size: 72px;
  background: linear-gradient(165deg, #e7b9a4, #c0523e 50%, #7c3226);
}
.side-name { margin: 16px 0 6px; font-size: 24px; }
.kv { margin: 8px 0 0; color: #6b5a54; font-size: 14px; }
.kv b { color: var(--title); font-weight: 600; }
.article h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 10px; }
.article p { margin: 0 0 14px; }
.article h3 { margin: 18px 0 8px; font-size: 17px; }
.back { color: var(--muted); font-size: 13px; }
.back:hover { color: var(--primary); }

.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; }
.quote {
  margin: 0;
  padding: 18px 18px 18px 16px;
  border-left: 3px solid var(--primary);
  background: #fff;
  border-radius: 0 16px 16px 0;
  color: #5c4a45;
}

.site-footer {
  margin-top: 24px;
  background: #140706;
  color: rgba(255, 255, 255, 0.72);
  padding-bottom: env(safe-area-inset-bottom);
}
.footer-inner {
  padding: 36px 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.site-footer strong { color: #fff; display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 18px; }
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: #fff; }
.footer-qr { margin: 0; }
.footer-qr img {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 8px;
  background: #fff;
}
.empty {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

.avatar, .portrait { object-fit: cover; }
img.avatar { display: block; }
.banner-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.banner-row a, .banner-row img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
}
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
}
[hidden] { display: none !important; }

.post-card { padding: 18px; display: flex; flex-direction: column; transition: transform 0.18s ease; }
.post-card-main { display: block; color: inherit; flex: 1; }
.post-card:hover, .topic-card:hover, .gallery-card:hover, .calendar-card:hover, .tour-card:hover {
  transform: translateY(-2px);
}
.post-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.post-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a7b75;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.post-action:hover {
  background: rgba(192, 82, 62, 0.06);
  color: var(--primary);
}
.post-action-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.ico-like {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7b75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3H14z'/%3E%3Cpath d='M7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E");
}
.ico-comment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7b75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}
.post-action:hover .ico-like {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0523e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3H14z'/%3E%3Cpath d='M7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E");
}
.post-action:hover .ico-comment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0523e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}
body.modal-open { overflow: hidden; }
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-modal[hidden] { display: none; }
.login-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 7, 6, 0.46);
}
.login-modal-box {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(20, 7, 6, 0.18);
  text-align: center;
}
.login-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8a7b75;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.login-modal-close:hover { background: rgba(192, 82, 62, 0.08); color: var(--primary); }
.login-modal-box h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--title);
}
.login-modal-box p {
  margin: 0 0 18px;
  color: #8a7b75;
  font-size: 14px;
}
.login-modal-box img {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  object-fit: contain;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(160deg, #e7b9a4, #c0523e);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--serif);
}
.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 10px;
}
.media-grid.media-2 { grid-template-columns: 1fr 1fr; }
.media-grid.media-3 { grid-template-columns: 1fr 1fr 1fr; }
.media-cell {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #ece7e1;
}
.media-grid img, .media-grid video,
.media-cell .media-el {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 8px;
  background: #ece7e1;
}
.media-grid.media-1 img, .media-grid.media-1 video,
.media-grid.media-1:not(.is-moments-video) .media-el {
  height: 180px;
}
.media-grid.is-moments-video {
  display: block;
}
.media-grid.is-moments-video .media-cell {
  width: 160px;
  height: 213px;
  background: #111;
  border-radius: 8px;
}
.media-grid.is-moments-video .media-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
  border-radius: 8px;
}
.media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
  box-sizing: border-box;
}
.media-play::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}
.media-play.moments {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background: rgba(255, 255, 255, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
}
.media-play.moments::after {
  left: 17px;
  top: 12px;
  border-width: 9px 0 9px 14px;
}
.grid-4 .post-card {
  min-height: 100%;
}
.grid-4 .post-actions {
  margin-top: auto;
}
.grid-4 .media-grid {
  margin-top: 12px;
}
.grid-4 .media-grid:not(.is-moments-video) img,
.grid-4 .media-grid:not(.is-moments-video) video,
.grid-4 .media-grid:not(.is-moments-video) .media-el {
  height: 160px;
}
#home-posts,
#feed-list {
  align-items: stretch;
}
#home-posts .post-card,
#feed-list .post-card {
  min-height: 100%;
}
#home-posts .media-grid {
  margin-top: 12px;
}
.media-grid.media-detail {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}
.media-grid.media-detail img,
.media-grid.media-detail video {
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  background: #140706;
  border-radius: 12px;
}
.media-grid.media-detail img {
  background: #f3ebe6;
}
.topic-card, .calendar-card {
  padding: 16px;
  display: block;
}
.gallery-card, .tour-card, .exhibit-card {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  padding: 16px;
}
.exhibit-card { margin-bottom: 12px; }
.exhibit-list { align-items: start; }
.exhibit-list .exhibit-card {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}
.exhibit-list .cover-sm { height: 200px; }
.exhibit-list .exhibit-video {
  height: 220px;
  object-fit: contain;
  background: #140706;
}
.exhibit-stage {
  margin: 0 0 16px;
  background: #140706;
  border-radius: 12px;
  overflow: hidden;
}
.exhibit-player {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #140706;
}
.exhibit-frame {
  display: block;
  width: 100%;
  height: 62vh;
  border: 0;
  background: #1f1411;
}
.exhibit-fallback img,
.exhibit-fallback-empty {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}
.cover-sm, .cover-md {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: #efe6e0;
}
.cover-sm { height: 88px; }
.cover-md { height: 110px; }
.topic-card .cover-sm, .calendar-card .cover-sm { margin-bottom: 10px; }
.cover-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--serif);
  font-size: 28px;
  background: linear-gradient(160deg, #e7b9a4 0%, #c0523e 48%, #8d3a2c 100%);
}
.announcement-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.announce-list {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.announce-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.announce-row:last-child { border-bottom: 0; }
.announce-row:hover { background: rgba(192, 82, 62, 0.04); }
.announce-title {
  flex: 1;
  min-width: 0;
  color: var(--title);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announce-time {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
}
.search-bar {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
}
.search-bar input {
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  min-width: 0;
}
.wiki-cat { min-height: 120px; }

@media (max-width: 860px) {
  .header-inner, .wrap {
    width: min(var(--max), calc(100% - 32px));
  }
  .header-inner {
    height: 56px;
    padding: 0;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 15px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 16px 16px;
    background: #f6f1ee;
    border-bottom: 1px solid rgba(192, 82, 62, 0.08);
    box-shadow: 0 16px 28px rgba(20, 7, 6, 0.1);
    overflow: auto;
    max-height: min(70dvh, calc(100dvh - 56px - env(safe-area-inset-top)));
  }
  .site-header.nav-open .nav { display: flex; }
  .site-header.nav-open .nav-mask {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(20, 7, 6, 0.28);
  }
  .header-inner { position: relative; z-index: 2; }
  .nav a {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 12px;
  }
  .hero-inner, .hero-inner:has(#home-banners:not([hidden])),
  .grid-2, .grid-3, .detail, .about-grid, .footer-inner,
  .gallery-card, .tour-card, .exhibit-card {
    grid-template-columns: 1fr;
  }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .home-stats { grid-template-columns: repeat(3, 1fr); }
  .home-stats .stat {
    padding: 14px 8px;
    text-align: center;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .home-stats .stat:last-child { border-right: 0; border-bottom: 0; }
  .home-stats .stat b { font-size: 22px; }
  .home-stats .stat span { font-size: 12px; }
  .hero-inner, .hero-copy, .hero-banner { min-height: 0; }
  .hero-inner:has(#home-banners:not([hidden])) .hero-copy { width: 100%; }
  .hero-inner:has(#home-banners:not([hidden])) .hero-banner {
    position: relative;
    width: 100%;
    height: 220px;
  }
  .hero-copy-inner { padding: 28px 16px 24px; }
  .hero-banner { min-height: 220px; height: 220px; }
  .hero-banner::after { display: none; }
  .hero h1 { font-size: 24px; }
  .hero p.lead { font-size: 14px; max-width: none; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 20px;
    gap: 10px;
  }
  .hero-search {
    min-width: 0;
    max-width: none;
    width: 100%;
    height: 44px;
    font-size: 16px;
  }
  .hero-actions .btn, .search-bar .btn, .search-bar input, .chip {
    height: 44px;
    font-size: 16px;
  }
  .chip { display: inline-flex; align-items: center; }
  .search-bar { flex-wrap: wrap; }
  .search-bar input { flex: 1 1 100%; font-size: 16px; }
  .search-bar .btn { flex: 1; }
  .section { padding: 20px 0 4px; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
  }
  .section-title { font-size: 22px; }
  .page-main { padding: 20px 0 48px; }
  .page-head h1 { font-size: 26px; }
  .artist-card {
    grid-template-columns: 1fr 72px;
    padding: 14px;
    min-height: 0;
  }
  .avatar { width: 72px; height: 92px; font-size: 28px; }
  .announce-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px;
  }
  .announce-title { white-space: normal; }
  .login-modal { padding: 16px; }
  .login-modal-box { padding: 28px 20px 24px; }
  .login-modal-box img { width: 180px; height: 180px; }
  .media-grid.media-3 { grid-template-columns: 1fr 1fr; }
  .media-grid.media-1:not(.is-moments-video) img,
  .media-grid.media-1:not(.is-moments-video) video,
  .media-grid.media-1:not(.is-moments-video) .media-el { height: 200px; }
  #home-posts .media-grid:not(.is-moments-video) img,
  #home-posts .media-grid:not(.is-moments-video) video,
  #home-posts .media-grid:not(.is-moments-video) .media-el { height: 180px; }
  .exhibit-list .cover-sm { height: 160px; }
  .exhibit-list .exhibit-video { height: 180px; }
  .exhibit-frame { height: 48vh; }
  .footer-inner { padding: 28px 0 24px; gap: 20px; }
  .footer-qr img { width: 120px; height: 120px; }
  .post-card:hover, .topic-card:hover, .gallery-card:hover,
  .calendar-card:hover, .tour-card:hover,
  .artist-card:hover, .info-card:hover, .policy-card:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .kicker { font-size: 11px; letter-spacing: 0.12em; }
  .hero h1 { font-size: 22px; }
  .page-head h1 { font-size: 24px; }
  .filters { gap: 6px; }
}
