:root {
  --bg: #0e1013;
  --bg-elevated: #15181e;
  --paper: #f7f3eb;
  --paper-soft: #efe8da;
  --ink: #f4efe6;
  --ink-muted: #a69f93;
  --ink-dark: #1d1b18;
  --ink-dark-muted: #5b5449;
  --amber: #d9a962;
  --amber-soft: rgba(217, 169, 98, 0.16);
  --line: rgba(244, 239, 230, 0.12);
  --line-strong: rgba(217, 169, 98, 0.32);
  /* 字体族统一取自 /shared/shell.css：--font-display = Long Cang 龙藏，--font-body = 苹方黑体栈 */
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-width: 280px;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 75% 50% at 50% -6%, rgba(217, 169, 98, 0.13), transparent 70%),
    radial-gradient(ellipse 55% 45% at 88% 82%, rgba(163, 121, 74, 0.08), transparent 72%),
    var(--bg);
}

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' fill='%23ffffff'/%3E%3C/svg%3E");
}

.page-wrap {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 68px) clamp(18px, 4vw, 40px) 108px;
}

/* Top Exhibition Masthead */
.info-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 5vw, 52px);
}

.masthead-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

.masthead-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(217, 169, 98, 0.65);
}

/* Hero Archival Placard */
.placard {
  position: relative;
  padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 52px);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.045), rgba(255, 250, 240, 0.015)),
    var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.placard::before,
.placard::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.placard::before {
  top: 14px;
  left: 14px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.placard::after {
  right: 14px;
  bottom: 14px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.placard-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 44px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0.06em;
  color: #fbf7ef;
  text-wrap: balance;
}

.placard-subtitle {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #d8cfc1;
}

.placard-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px 28px;
  margin-top: clamp(26px, 4vw, 38px);
  padding-top: clamp(22px, 3.5vw, 30px);
  border-top: 1px solid var(--line);
}

.fact-item {
  min-width: 0;
}

.fact-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.fact-value {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  color: #f8f2e7;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

/* Optional Structured Sections (rendered only when non-empty in data.json) */
.dynamic-block {
  margin-top: clamp(28px, 4.5vw, 44px);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #f8f2e7;
}

.section-heading span {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.highlights-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.highlights-list li {
  padding: 16px 18px;
  border-radius: 5px;
  background: rgba(255, 250, 240, 0.03);
  border: 1px solid var(--line);
  color: #e6dfd2;
  font-size: 14.5px;
}

.editorial-sections {
  display: grid;
  gap: 20px;
}

.editorial-card {
  padding: clamp(20px, 3vw, 30px);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.025);
  border: 1px solid var(--line);
}

.editorial-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.editorial-card p {
  margin: 0 0 10px;
  color: #e0d8ca;
  font-size: 15px;
}

.editorial-card p:last-child {
  margin-bottom: 0;
}

/* Official WeChat Articles & QR Codes */
.articles-section {
  margin-top: clamp(36px, 5vw, 56px);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 26px);
}

.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3.2vw, 30px);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-dark);
  border: 1px solid rgba(217, 169, 98, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  position: relative;
}

.article-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.article-meta {
  min-width: 0;
  flex: 1;
}

.article-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-dark);
}

.qr-frame {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid rgba(29, 27, 24, 0.12);
  box-shadow: 0 4px 12px rgba(29, 27, 24, 0.06);
}

.qr-box {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
}

.qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-caption {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #71685b;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px dashed rgba(29, 27, 24, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.btn-primary {
  background: #1d1b18;
  color: #f7f3eb;
  border: 1px solid #1d1b18;
}

.btn-primary:hover {
  background: #332e27;
}

.btn-secondary {
  background: transparent;
  color: #2b2620;
  border: 1px solid rgba(29, 27, 24, 0.28);
}

.btn-secondary:hover {
  background: rgba(29, 27, 24, 0.07);
  border-color: rgba(29, 27, 24, 0.45);
}

/* Registration note callout */
.reg-note {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 6px;
  border-left: 2px solid var(--amber);
  background: rgba(217, 169, 98, 0.08);
  color: #e9decb;
  font-size: 14px;
}

/* Quiet footer navigation */
.info-footer {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.info-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.info-footer a {
  color: #dfd4c1;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.info-footer a:hover,
.info-footer a:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
  outline: none;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  z-index: 9600;
  transform: translate(-50%, 12px);
  padding: 10px 18px;
  border-radius: 999px;
  background: #f7f3eb;
  color: #1d1b18;
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.loading-state,
.error-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .article-card-top {
    flex-direction: column;
    align-items: stretch;
  }
  .qr-frame {
    align-self: center;
  }
  .article-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .toast,
  .info-footer a {
    transition: none;
  }
}
