:root {
  --crimson: #a51d2a;
  --crimson-dark: #7f1520;
  --crimson-soft: #f8ecec;
  --cream: #f7f1e8;
  --ink: #2b1a1a;
  --muted: #7a5f5f;
  --line: #eadada;
  --gold: #c9a24a;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse at top, #fff8f0 0%, transparent 55%),
    linear-gradient(180deg, #f4ebe3 0%, #efe4da 100%);
  color: var(--ink);
  font-family: "Songti SC", "STSong", "SimSun", "PingFang SC", "Microsoft YaHei", serif;
  font-size: 15px;
  line-height: 1.55;
}
a { color: var(--crimson); text-decoration: none; }
.page {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 40px;
  min-height: 100vh;
}

.top-banner {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #c43a2f 0%, #a51d2a 100%);
  line-height: 0;
  overflow: hidden;
}
.top-banner img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.03) saturate(1.04);
}
.top-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(165, 29, 42, 0.55) 55%, rgba(127, 21, 32, 0.95));
  pointer-events: none;
}

.page-header {
  position: relative;
  margin-top: -1px;
  background:
    linear-gradient(180deg, rgba(127, 21, 32, 0.98), rgba(165, 29, 42, 0.96) 28%, rgba(127, 21, 32, 0.98)),
    #a51d2a;
  color: #fff;
  padding: 18px 18px 20px;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 74, 0.35), transparent 70%);
  pointer-events: none;
}
.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-header .header-tag {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 2px;
  color: #f3d9a4;
}
.page-header .title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: #fff;
}
.page-header .subtitle {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: 14px;
  color: #ffe8c8;
}
.page-header .meta {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}
.page-header .promo {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  padding: 12px 12px 12px 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(243, 217, 164, 0.35);
  border-radius: 8px;
  color: #fff7ea;
  font-size: 13px;
}
.page-header .promo li { margin: 5px 0; color: #fff7ea; }

.head-card {
  background: #fffdf9;
  margin: 14px 12px;
  border-radius: 12px;
  padding: 16px 14px;
  box-shadow: 0 8px 24px rgba(127, 21, 32, 0.08);
  border: 1px solid rgba(165, 29, 42, 0.08);
}
.head-card .title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2b1a1a;
  line-height: 1.4;
}
.head-card .meta {
  margin: 8px 0 0;
  font-size: 14px;
  color: #5c4040;
}

.alert {
  margin: 12px 12px 0;
  padding: 10px 12px;
  background: #fff1f0;
  color: var(--crimson);
  border: 1px solid #f0c9c9;
  border-radius: 8px;
  font-size: 13px;
}

.form-card, .ticket-card {
  background: #fffdf9;
  margin: 14px 12px;
  border-radius: 12px;
  padding: 4px 14px 16px;
  box-shadow: 0 8px 24px rgba(127, 21, 32, 0.08);
  border: 1px solid rgba(165, 29, 42, 0.08);
}
.form-card-hd {
  margin: 0 -14px 4px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--crimson);
  border-bottom: 1px dashed var(--line);
  letter-spacing: 1px;
}

.field {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  min-height: 48px;
  gap: 10px;
}
.field label {
  width: 118px;
  flex-shrink: 0;
  color: var(--ink);
  font-size: 14px;
}
.field input,
.field select {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  padding: 12px 0;
  color: var(--ink);
  appearance: none;
  min-width: 0;
  font-family: inherit;
}
.field select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a51d2a' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right center;
  padding-right: 18px;
}
.req { color: var(--crimson); }
.field-sms input { flex: 1; }
.btn-sms {
  flex-shrink: 0;
  border: 1px solid var(--crimson);
  background: #fff;
  color: var(--crimson);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn-sms:disabled {
  opacity: .55;
  cursor: not-allowed;
  border-color: #ccc;
  color: #999;
}
.consent {
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.btn-submit {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #b82433, var(--crimson-dark));
  color: #fff;
  font-size: 16px;
  padding: 13px;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 6px 14px rgba(127, 21, 32, 0.25);
  font-family: inherit;
}
.btn-submit:active { opacity: .92; transform: translateY(1px); }
.links {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 12px 12px;
  color: var(--crimson);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}
.section-title::before,
.section-title::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.admit-section {
  margin: 8px 0 6px;
  padding: 4px 0 8px;
}
.admit-list {
  display: grid;
  gap: 12px;
  padding: 0 12px;
}
.admit-item {
  margin: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(165, 29, 42, 0.12);
  box-shadow: 0 8px 20px rgba(127, 21, 32, 0.1);
}
.admit-item img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-section {
  margin: 18px 0 28px;
  padding-bottom: 8px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 14px 8px;
}
.gallery-item {
  margin: 0;
  background: #fffdf9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(165, 29, 42, 0.1);
  box-shadow: 0 10px 24px rgba(127, 21, 32, 0.08);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  vertical-align: top;
}

@media (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.ticket-card { text-align: center; padding-top: 16px; }
.ticket-card h1 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}
.ticket-whenwhere {
  margin: 0 auto 14px;
  max-width: 320px;
  text-align: left;
  background: #f8ecec;
  border: 1px solid rgba(165, 29, 42, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
}
.ticket-card .ticket-line,
.ticket-whenwhere .ticket-line {
  margin: 0;
  padding: 4px 0;
  font-size: 14px;
  color: #2b1a1a !important;
  line-height: 1.45;
}
.ticket-card .ticket-line span,
.ticket-whenwhere .ticket-line span {
  display: inline-block;
  min-width: 2.5em;
  margin-right: 8px;
  color: #a51d2a !important;
  font-weight: 700;
}
.ticket-line + .ticket-line {
  border-top: 1px dashed #e4c9c9;
  margin-top: 4px;
  padding-top: 8px;
}
.ticket-promo-list {
  margin: 14px 0 0;
  padding: 12px 14px 12px 28px;
  text-align: left;
  list-style: disc;
  background: #fff8f0;
  border: 1px solid rgba(165, 29, 42, 0.18);
  border-radius: 8px;
  color: #2b1a1a !important;
  font-size: 14px;
  line-height: 1.6;
}
.ticket-card .ticket-promo-list li,
.ticket-promo-list li {
  margin: 6px 0;
  color: #2b1a1a !important;
}
.ticket-info dt { color: #7a5f5f !important; margin: 0; }
.ticket-info dd { margin: 0; color: #2b1a1a !important; }
.ticket-badge {
  display: inline-block;
  background: var(--crimson);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.ticket-no {
  margin: 16px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--crimson);
}
.ticket-info {
  margin: 0;
  text-align: left;
  background: var(--crimson-soft);
  border-radius: 8px;
  padding: 10px 12px;
}
.ticket-info > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #e4c9c9;
}
.ticket-info > div:last-child { border-bottom: 0; }
.ticket-info dt { color: var(--muted); margin: 0; }
.ticket-info dd { margin: 0; color: var(--ink); }
