:root {
  --bg: #f3f1ea;
  --surface: #fffcf6;
  --surface-2: #e7efe8;
  --text: #24302c;
  --text-muted: #5c6b66;
  --accent: #2a6f73;
  --accent-ink: #f4fffb;
  --border: #c9d4cc;
  --ring: #1f585c;
  --ok: #3d6b3a;
  --warn: #9a6b1f;
  --danger: #8f1d16;
  --info: #2a6f73;
  --cta-face: #1f585c;
  --cta-ink: #f4fffb;
  --cta-wash: rgba(18, 64, 68, 0.28);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --shadow-1: 0 1px 0 rgba(36, 48, 44, 0.06);
  --shadow-2: 0 10px 20px rgba(31, 88, 92, 0.12);
  --container: 720px;
  --container-wide: 1080px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 180ms;
  --cta-loop: 2.6s;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ring);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: FangSong, "STFangsong", "仿宋", serif;
  font-weight: 600;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
  margin: 0 0 var(--space-4);
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 21px;
}

h3 {
  font-size: 17px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

p {
  margin: 0 0 var(--space-4);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: var(--space-4);
  top: var(--space-4);
  background: var(--surface);
  padding: var(--space-2) var(--space-4);
  z-index: 50;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px dashed var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}

.wordmark img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid var(--accent);
}

.wordmark span {
  font-family: FangSong, "STFangsong", "仿宋", serif;
  font-size: 22px;
}

.wordmark:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  min-height: 44px;
  min-width: 44px;
  padding: 0 var(--space-3);
  font-size: 15px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-7) var(--space-4) 0;
}

.wrap-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-7) var(--space-4) 0;
}

.mast {
  background:
    repeating-linear-gradient(
      to right,
      transparent 0 18px,
      rgba(42, 111, 115, 0.05) 18px 19px
    ),
    var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-6);
  margin-bottom: var(--space-7);
  position: relative;
}

.mast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 14px;
  background: radial-gradient(circle at 10px 0, var(--bg) 7px, transparent 8px) repeat-x;
  background-size: 20px 14px;
  pointer-events: none;
}

.kicker {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-3);
}

.lead {
  font-size: 16px;
  max-width: 42em;
}

.mast-figure {
  margin-top: var(--space-5);
  max-width: 560px;
}

.mast-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
}

.figcap {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.section {
  padding-block: var(--space-7);
}

.section + .section {
  border-top: 1px dashed var(--border);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.chips button {
  background: var(--surface);
  border: 1px dashed var(--accent);
  color: var(--accent);
  min-height: 44px;
  padding: 0 var(--space-4);
  font-size: 16px;
  font-family: inherit;
}

.chips button[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-style: solid;
}

.pane {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-5);
}

.hall {
  display: grid;
  gap: var(--space-4);
}

.ticket {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-4) var(--space-5);
  position: relative;
}

.ticket h3 {
  margin-bottom: var(--space-2);
}

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

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 16px;
}

th,
td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-2);
  font-weight: 600;
}

.split {
  display: grid;
  gap: var(--space-4);
}

.note {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}

ol.ink,
ul.ink {
  margin: 0 0 var(--space-4);
  padding-left: 1.3em;
}

ol.ink li,
ul.ink li {
  margin-bottom: var(--space-3);
}

blockquote.quote {
  margin: 0 0 var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-2);
  border: 1px dashed var(--border);
  font-family: FangSong, "STFangsong", "仿宋", serif;
  font-size: 18px;
}

details.fold {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
}

details.fold summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

details.fold[open] {
  background: var(--surface-2);
}

.site-footer {
  margin-top: var(--space-8);
  border-top: 1px dashed var(--border);
  background: var(--surface);
  padding: var(--space-6) var(--space-4) var(--space-8);
}

.footer-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  gap: var(--space-5);
}

.footer-brand {
  font-family: FangSong, "STFangsong", "仿宋", serif;
  font-size: 20px;
}

.footer-brand a {
  color: var(--text);
  text-decoration: none;
}

.footer-brand a:hover {
  color: var(--accent);
}

.foot-tag {
  color: var(--text-muted);
  font-size: 15px;
  margin: var(--space-2) 0 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}

.footer-nav a {
  color: var(--text);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(520px, 38vw);
  min-width: 400px;
  min-height: 56px;
  padding: 12px 28px;
  background: var(--cta-face);
  color: var(--cta-ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid #163f42;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.site-cta:hover,
.site-cta:focus-visible {
  color: var(--cta-ink);
  background: #18494d;
}

.site-cta > span {
  position: relative;
  z-index: 1;
}

.site-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 150% at 70% 40%, var(--cta-wash) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  animation: cta-steam-bloom var(--cta-loop) var(--ease) infinite;
}

.site-cta::after {
  content: "";
  position: absolute;
  inset: 7px 12px;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 rgba(12, 40, 42, 0);
  animation: cta-towel-press var(--cta-loop) var(--ease) infinite;
}

@keyframes cta-steam-bloom {
  0%,
  50% {
    opacity: 0;
    transform: scale(0.96);
  }
  64% {
    opacity: 0.28;
    transform: scale(1);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes cta-towel-press {
  0%,
  54% {
    box-shadow: inset 0 0 0 0 rgba(12, 40, 42, 0);
    transform: scale(1);
  }
  68% {
    box-shadow: inset 0 10px 16px rgba(12, 40, 42, 0.16);
    transform: scale(0.97);
  }
  82%,
  100% {
    box-shadow: inset 0 0 0 0 rgba(12, 40, 42, 0);
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .site-cta {
    width: calc(100% - 24px);
    min-width: 0;
    left: 12px;
    right: 12px;
    transform: none;
  }
}

@media (min-width: 900px) {
  .hall {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 19px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px dashed var(--border);
    padding: var(--space-3) var(--space-4) var(--space-4);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    width: 100%;
  }

  .site-cta {
    min-height: 52px;
    font-size: 15px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta::before,
  .site-cta::after {
    animation: none;
  }

  .site-cta::before {
    opacity: 0.16;
    transform: scale(1);
  }

  .site-cta::after {
    box-shadow: inset 0 6px 12px rgba(12, 40, 42, 0.12);
    transform: scale(1);
  }
}
