/* 以已确认的C「文化展陈」为视觉来源；公众资料按内容自然排版，避免固定屏高裁切后台维护的长文。 */
:root {
  --paper: #f4f1e9;
  --surface: #faf8f1;
  --ink: #303c36;
  --muted: #566252;
  --brand: #34483e;
  --accent: #4c5e4b;
  --sand: #e3dfd0;
  --gold: #d6c29b;
  --line: #d6d8cb;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --gutter: clamp(24px, 5vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.75 var(--sans); }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: pretty; }
img { display: block; max-width: 100%; }
button, a { transition: background-color .18s ease, color .18s ease, transform .18s ease; }
button:enabled:active, .primary:active { transform: translateY(1px); }
.page { min-height: 100dvh; padding-bottom: env(safe-area-inset-bottom); }
.wrap { width: min(100% - var(--gutter) * 2, 1120px); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.wordmark { min-width: 0; padding-block: 8px; font: 400 24px/1.5 var(--serif); color: var(--accent); overflow-wrap: anywhere; }
.back-link { font-size: 14px; color: var(--muted); }
.back-link { padding-block: 12px; }
.event-hero { position: relative; min-height: clamp(280px, 33.333vw, 480px); background: var(--brand); color: var(--paper); overflow: hidden; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-layout { position: relative; display: flex; align-items: center; min-height: inherit; padding-block: 48px; }
.event-hero h1 { max-width: 56%; margin: 0; font: 400 clamp(32px, 4.2vw, 54px)/1.5 var(--serif); letter-spacing: .08em; overflow-wrap: anywhere; }
.event-facts { background: var(--sand); scroll-margin-top: 24px; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; padding-block: 28px; gap: 32px; }
.facts-grid > div { min-width: 0; }
.facts-grid > div + div { padding-left: 32px; border-left: 1px solid #c4c8b9; }
.facts-grid dt { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.facts-grid dd { font-size: 16px; overflow-wrap: anywhere; }
/* 地点沿用后台的分行与缩进，同时允许长地址在手机上自然折行。 */
.activity-location { white-space: pre-wrap; overflow-wrap: anywhere; }
.facts-grid > .service-hours { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid #c4c8b9; padding-top: 16px; }
.service-hours dd { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.service-hours .service-reminder { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.fact-between { padding-inline: 8px; color: var(--muted); font-size: 13px; }
.entry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 32px; border-bottom: 1px solid var(--line); }
/* 首页主入口沿用深绿品牌色，与次要查询入口拉开层级，同时保留整块可点击区域。 */
.primary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; min-height: 64px; border: 1px solid var(--brand); background: var(--brand); color: var(--surface); }
.primary strong { display: block; font: 400 30px/1.5 var(--serif); letter-spacing: .08em; }
.arrow { display: inline-block; font: 28px/1 var(--sans); flex-shrink: 0; transition: transform .18s ease; }
.unavailable { justify-self: end; border: 0; border-bottom: 1px solid #9da593; padding: 4px 0; background: transparent; min-height: 44px; color: var(--muted); font-size: 16px; }
.identity-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 32px; }
.logos { display: flex; align-items: center; gap: 32px; }
.logos img { width: 64px; height: 64px; object-fit: contain; }
.logos img + img { border-left: 1px solid var(--line); padding-left: 24px; box-sizing: content-box; }
.event-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 24px 56px; align-items: start; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font: 400 28px/1.5 var(--serif); letter-spacing: .08em; }
.intro { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.95; }
.notice { background: #e9e6da; padding: 32px; }
.opening { border-top: 1px solid #cbd0bf; margin-top: 24px; padding-top: 24px; }
.opening > span, .opening p { display: block; font-size: 14px; color: var(--muted); }
.opening time { display: block; margin-block: 4px 16px; font-variant-numeric: tabular-nums; }
.foot { border-top: 1px solid var(--line); padding-block: 32px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; font-size: 14px; overflow-wrap: anywhere; }
.foot p + p { margin-top: 8px; }
.foot p span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.page-head { padding-block: 40px 32px; border-top: 1px solid var(--line); }
.page-head h1 { font: 400 40px/1.4 var(--serif); letter-spacing: .08em; }
.page-head .activity-name { margin-top: 12px; font-size: 14px; overflow-wrap: anywhere; }
.expert-list { border-top: 1px solid var(--ink); }
.card { width: 100%; display: grid; grid-template-columns: 48px 112px minmax(0, 1fr); gap: 32px; border: 0; border-bottom: 1px solid var(--line); padding: 32px 0; background: transparent; text-align: left; align-items: start; }
.card:focus-visible { outline-offset: -3px; }
.expert-index { color: var(--muted); font: 24px/1.4 var(--serif); font-variant-numeric: tabular-nums; }
.portrait { position: relative; display: block; width: 112px; height: 140px; overflow: hidden; background: var(--sand); flex-shrink: 0; }
.portrait-letter { display: grid; place-items: center; position: absolute; inset: 0; color: var(--accent); font: 40px/1 var(--serif); }
.portrait img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.card-info { display: block; min-width: 0; }
.expert-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; }
.card h2 { font: 400 28px/1.4 var(--serif); letter-spacing: .04em; overflow-wrap: anywhere; }
.project-name { font-size: 16px; color: var(--accent); overflow-wrap: anywhere; }
.region { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.badge { display: inline-block; color: var(--muted); border: 1px solid #aeb6a3; padding: 3px 8px; font-size: 13px; }
.badge.available { color: var(--brand); background: #e4e9dc; border-color: #a7b69a; }
.card-link { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; }
.card-link .arrow { font-size: 20px; }
.empty { max-width: 640px; margin: auto; padding: 96px 24px; text-align: center; }
.empty h1, .empty h2 { font: 400 28px/1.5 var(--serif); margin-block: 16px; }
.empty p { color: var(--muted); }
.empty button { min-height: 48px; padding: 8px 32px; background: var(--brand); color: var(--paper); border: 0; margin-top: 24px; }
.muted { color: var(--muted); font-size: 14px; }
dialog { color: var(--ink); width: min(100% - 48px, 720px); max-width: 720px; height: 90dvh; max-height: 960px; margin: auto auto 0; padding: 0; border: 0; border-radius: 8px 8px 0 0; background: var(--paper); overflow: hidden; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #17251dc4; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 8px 32px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.detail-head > span { font-size: 14px; color: var(--muted); }
#close-detail { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px; border: 0; background: transparent; font-size: 14px; }
#close-detail > span { font-size: 24px; line-height: 1; }
.detail-body { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; padding: 32px; scrollbar-gutter: stable; }
.detail-hero { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.detail-hero > div { min-width: 0; }
.detail-hero .portrait { width: 88px; height: 112px; }
.detail-hero h2 { font: 400 30px/1.5 var(--serif); margin-block: 8px; overflow-wrap: anywhere; }
.detail-project { color: var(--accent); overflow-wrap: anywhere; }
details { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; font: 400 20px/1.5 var(--serif); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 20px/1 var(--sans); color: var(--muted); }
details[open] > summary::after { content: '−'; }
details > p { padding-bottom: 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
.schedule { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 8px; }
.schedule h3 { font: 400 24px/1.5 var(--serif); margin-top: 8px; }
.dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 24px; }
.dates button { min-height: 76px; padding: 8px 12px; text-align: left; border: 1px solid #aeb6a3; border-radius: 2px; background: var(--surface); }
.dates button span { display: block; font-size: 13px; color: var(--muted); }
.dates button strong { display: block; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.dates button[aria-pressed=true], .halves button[aria-pressed=true] { background: var(--brand); color: var(--paper); border-color: var(--brand); }
.dates button[aria-pressed=true] span, .halves button[aria-pressed=true] small { color: #d5ddcf; }
#half-days h3 { font-size: 20px; margin-bottom: 16px; }
.halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.halves button { min-height: 88px; padding: 16px; border: 1px solid #aeb6a3; border-radius: 2px; background: var(--surface); text-align: left; }
.halves button > span { display: block; font-size: 18px; }
.halves .slot-hours { font-size: 14px; margin-block: 4px; }
.halves small { display: block; color: var(--muted); font-size: 14px; }
.halves button:disabled { background: #e9e7de; border-color: var(--line); color: var(--muted); }
.reason { font-size: 14px; background: #e9e6da; padding: 16px; margin-top: 16px; overflow-wrap: anywhere; white-space: pre-wrap; }
.date-prompt { padding: 24px 16px; text-align: center; background: #e9e6da; color: var(--muted); font-size: 14px; }
.detail-location { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.detail-location span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.detail-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 16px 32px calc(24px + env(safe-area-inset-bottom)); flex-shrink: 0; }
#selection { font-size: 14px; margin-bottom: 12px; color: var(--muted); }
.detail-foot button { width: 100%; min-height: 48px; padding: 8px 16px; border: 1px solid #bac0b0; border-radius: 2px; background: #e1e3d8; color: var(--muted); }
.detail-foot button:enabled, .action-button { background: var(--brand); color: var(--surface); border: 1px solid var(--brand); }
.booking-page { max-width: 720px; padding-block: 24px 64px; }
.booking-page h1 { font: 400 32px/1.5 var(--serif); margin-bottom: 24px; }
.booking-page h2 { font: 400 24px/1.5 var(--serif); overflow-wrap: anywhere; }
.booking-summary, .booking-record { border-block: 1px solid var(--line); padding-block: 24px; margin-block: 24px; overflow-wrap: anywhere; }
.booking-summary p, .booking-record p { margin-top: 8px; }
.booking-page form > label:not(.consent) { display: block; margin-top: 24px; margin-bottom: 8px; }
.booking-page input[type=text] { width: 100%; min-width: 0; height: 52px; border: 1px solid #9da593; border-radius: 2px; background: var(--surface); padding: 8px 12px; color: var(--ink); font-size: 16px; }
.booking-page input:disabled { color: var(--muted); background: var(--sand); }
.booking-page .privacy { margin-top: 24px; }
.privacy-contact { margin-top: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-block: 24px; padding-block: 8px; cursor: pointer; }
.consent input { flex-shrink: 0; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--brand); }
.action-button { width: 100%; min-height: 52px; padding: 12px 20px; border-radius: 2px; margin-block: 16px; }
.action-button:disabled { color: var(--muted); background: var(--sand); border-color: var(--line); }
.text-button { display: inline-flex; align-items: center; min-height: 48px; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 5px; padding: 8px 12px; margin-right: 12px; }
#booking-message, #query-message, #captcha-message { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 16px; }
.booking-record dl { margin-block: 16px; }
.booking-record dl > div { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 12px; padding-block: 4px; }
.booking-record dt { color: var(--muted); }
.record-number { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.record-status { color: var(--brand); }
.queue-number { font: 400 28px/1.5 var(--serif); }
.arrival-note { margin-block: 24px; }
.result-group { margin-top: 32px; }
.captcha-row { display: flex; align-items: center; gap: 12px; margin-block: 8px; }
.captcha-row input { max-width: 200px; }
.captcha-row button { flex-shrink: 0; margin: 0; }
[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  .back-link:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 6px; }
  .primary:hover .arrow, .card:hover .arrow { transform: translate(3px, -3px); }
  .primary:hover { background: var(--accent); border-color: var(--accent); }
  .card:hover { transform: translateY(-2px); }
  #close-detail:hover { background: var(--sand); }
  .dates button:not([aria-pressed=true]):hover, .halves button:enabled:not([aria-pressed=true]):hover { background: #e4e9dc; }
}
@media (max-width: 1023px) {

  .facts-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .facts-grid > div + div { padding-left: 24px; }
  .facts-grid dd time { display: block; }
  .fact-between { display: block; padding-inline: 0; }
  .entry-row, .event-columns { gap: 32px; }
  .primary strong { font-size: 26px; }
  .notice { padding: 24px; }
}
@media (max-width: 639px) {
  :root { --gutter: 24px; }
  .bar { min-height: 76px; gap: 16px; }
  .wordmark { font-size: 18px; }
  .back-link { font-size: 13px; white-space: nowrap; }
  /* 手机同样把标题叠在图上，顶部遮罩保证浅色草本背景上的文字可读。 */
  .event-hero { min-height: clamp(280px, 65vw, 360px); }
  .hero-art { top: 0; }
  .hero-art img { height: 100%; object-position: right center; }
  .hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #20372cde 0%, #20372cb8 32%, #20372c00 72%); }
  .hero-layout { align-items: flex-start; padding-block: 28px; }
  .event-hero h1 { max-width: 100%; font-size: clamp(26px, 8vw, 32px); line-height: 1.5; letter-spacing: .02em; margin: 0; }
  .facts-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding-block: 20px; }
  .facts-grid > div + div { padding-left: 12px; }
  .facts-grid dt { font-size: 13px; }
  .facts-grid dd { font-size: 14px; }
  .fact-between { font-size: 13px; }
  .entry-row { grid-template-columns: 1fr; gap: 16px; padding-block: 16px 24px; }
  .primary { padding-block: 12px; width: 100%; }
  .unavailable { justify-self: start; }
  .primary strong { font-size: 28px; }
  .identity-row { padding-block: 24px; gap: 24px; }
  .logos { gap: 16px; }
  .logos img { width: 44px; height: 48px; }
  .logos img + img { padding-left: 16px; }
  .event-columns { grid-template-columns: 1fr; gap: 32px; padding-block: 16px 32px; }
  .section-head { margin-bottom: 16px; }
  .section-head h2 { font-size: 24px; }
  .notice { padding: 24px; }
  .foot { grid-template-columns: 1fr; gap: 24px; padding-block: 24px; }
  .page-head { padding-block: 32px 24px; }
  .page-head h1 { font-size: 32px; }
  .card { grid-template-columns: 24px 64px minmax(0, 1fr); gap: 12px; padding-block: 24px; }
  .expert-index { font-size: 18px; }
  .portrait { width: 64px; height: 84px; }
  .portrait-letter { font-size: 28px; }
  .card h2 { font-size: 23px; }
  .project-name { font-size: 14px; }
  .expert-heading { display: block; }
  .project-name { display: block; margin-top: 4px; }
  .specialty { margin-top: 12px; font-size: 16px; }
  .card-bottom { margin-top: 16px; gap: 12px; }
  .card-link { font-size: 13px; gap: 8px; }
  dialog { width: 100%; height: 94dvh; max-height: 94dvh; }
  .detail-head { min-height: 56px; padding-inline: 24px; }
  .detail-body { padding: 24px; scrollbar-gutter: auto; }
  .detail-hero { gap: 16px; }
  .detail-hero .portrait { width: 72px; height: 96px; }
  .detail-hero h2 { font-size: 26px; }
  .detail-project { font-size: 14px; }
  .dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .halves button { padding: 12px; }
  .detail-foot { padding: 12px 24px calc(16px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
