:root {
  color-scheme: light;
  --canvas: #eff5ef;
  --paper: #fffef7;
  --ink: #152b23;
  --muted: #475c50;
  --green: #235844;
  --line: #a8bdaf;
  --focus: #965019;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.65; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, .ticket-art strong {
  font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
}
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; height: 32px; width: 32px; border: 1px solid var(--green); border-radius: 8px; color: var(--green); }
nav { display: flex; gap: clamp(12px, 3vw, 32px); font-size: .9375rem; }
nav a { text-decoration: none; white-space: nowrap; }
nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.hero { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(24px, 7vw, 92px); padding-block: clamp(48px, 9vw, 112px); align-items: center; }
.preview-note { display: inline-block; color: var(--green); font-size: .875rem; font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
h1 { font-size: clamp(3rem, 7.5vw, 6rem); line-height: 1.04; letter-spacing: -.06em; margin-block: 16px 20px; }
.hero p { color: var(--muted); max-width: 32rem; font-size: 1.0625rem; }
.primary-link { display: inline-block; padding: 12px 22px; margin-top: 26px; border-radius: 6px; background: var(--green); color: var(--paper); text-decoration: none; font-weight: 700; }
.primary-link:hover { background: var(--ink); }

.ticket-art {
  --edge: 8px;
  --seam: 73%;
  position: relative;
  display: grid;
  grid-template-columns: var(--seam) 1fr;
  min-height: clamp(192px, 24vw, 248px);
  color: var(--paper);
  background: var(--green);
  border-radius: 14px;
  transform: rotate(-5deg);
}
.ticket-art::before, .ticket-art::after {
  content: "";
  position: absolute;
  left: calc(var(--seam) - var(--edge));
  width: calc(2 * var(--edge));
  height: calc(2 * var(--edge));
  border-radius: 50%;
  background: var(--canvas);
}
.ticket-art::before { top: calc(-1 * var(--edge)); }
.ticket-art::after { bottom: calc(-1 * var(--edge)); }
.ticket-face { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 3.2vw, 38px); }
.ticket-art strong { display: block; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; }
.ticket-stub { display: grid; place-items: center; border-left: 1px dashed var(--line); }
.ticket-stub span { writing-mode: vertical-rl; letter-spacing: .25em; font-weight: 700; }
.ticket-caption { font-size: .875rem; }

.section { border-top: 1px solid var(--line); padding-block: clamp(36px, 6vw, 64px); }
.heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); line-height: 1.25; }
.heading p { color: var(--muted); }
.vouchers, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.voucher { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; align-self: start; }
.voucher-header { padding: 22px 20px 18px; }
.voucher h3 { font-size: 1.15rem; margin-block: 5px 4px; }
.voucher-type { color: var(--green); font-size: .875rem; font-weight: 700; }
.voucher-header p { color: var(--muted); }
details { border-top: 1px dashed var(--line); }
summary { cursor: pointer; padding: 13px 20px; color: var(--green); font-weight: 700; }
summary:hover { text-decoration: underline; }
details p { padding: 0 20px 18px; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { padding: 16px 0 0; border-top: 2px solid var(--green); }
.steps strong { display: block; margin-bottom: 4px; }
.steps p { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: .875rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }

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

@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .header-row { gap: 12px; min-height: 64px; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .ticket-art { transform: none; }
  .steps { grid-template-columns: 1fr; }
}

.voucher-description { min-height: 3.3em; }
.voucher-purchase {
  align-items: flex-end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
}
.amount-label { color: var(--muted); display: block; font-size: .875rem; }
.voucher-price { display: block; font-size: 1.65rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.purchase-link {
  border-radius: 6px;
  background: var(--green);
  color: var(--paper);
  font-weight: 700;
  padding: 9px 18px;
  text-decoration: none;
  white-space: nowrap;
}
.purchase-link:hover { background: var(--ink); }
.back-link { color: var(--green); text-underline-offset: .25em; }
.checkout { padding-block: clamp(32px, 7vw, 76px); }
.checkout h1 { margin-block: 0 12px; letter-spacing: -.04em; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.checkout-intro { color: var(--muted); margin-bottom: 24px; }
.checkout-grid { display: grid; grid-template-columns: 1fr minmax(320px, .8fr); gap: 20px; }
.checkout-card { padding: clamp(18px, 4vw, 32px); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.checkout-card h2 { font-size: 1.6rem; margin-bottom: 12px; }
.order-name { font-size: 1.15rem; font-weight: 700; }
.order-rules { color: var(--muted); margin-top: 14px; }
.order-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line); }
.scan-card { text-align: center; }
.scan-card img { display: block; margin: 16px auto; width: min(100%, 192px); height: auto; border: 1px solid var(--line); border-radius: 6px; }
.scan-card p { color: var(--muted); }
.scan-link { margin-top: 14px; display: inline-block; }
[hidden] { display: none !important; }

@media (max-width: 740px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .voucher-description { min-height: 0; }
}
