.registration-page {
  --event-bg: #101115;
  --event-card: #191a1e;
  --event-ink: #f5f1ed;
  --event-muted: #d2cbc8;
  --event-line: #383439;
  --event-control: #121316;
  --event-payment: #2a1e17;
  --event-accent: #ffa150;
  --event-action: #ff8a2a;
  --event-focus: #ffad63;
  width: min(1160px, 100%);
  margin: 0 auto;
  overflow: hidden;
  color: var(--event-ink);
  background: var(--event-bg);
  border: 1px solid #2e2a2a;
  border-radius: 20px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.5;
  color-scheme: dark;
  box-shadow: 0 22px 80px #0005;
}

.registration-page *, .registration-page *::before, .registration-page *::after { box-sizing: border-box; }
.registration-page :is(h1,h2,h3,p,ol,ul,dl,dd) { margin: 0; }
.registration-page [hidden] { display: none !important; }
.registration-page a { color: inherit; }
.event-hero {
  position: relative;
  isolation: isolate;
  min-height: 240px;
  overflow: hidden;
  padding: clamp(28px, 5.5vw, 56px) clamp(22px, 6.4vw, 74px);
  border-top: 3px solid var(--event-action);
  border-bottom: 1px solid #3c2a21;
  background: #131217;
}
.event-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #121317f2 3%, #121317cf 47%, #1213174a 100%),
    repeating-linear-gradient(90deg, transparent 0 48px, #ffc29012 49px 50px),
    repeating-linear-gradient(0deg, transparent 0 48px, #ffc29012 49px 50px),
    radial-gradient(ellipse at 90% 0%, #713b1d, #352117 38%, #131217 79%);
}
.event-hero::after {
  position: absolute;
  z-index: -1;
  top: 34px;
  right: clamp(18px, 8vw, 100px);
  width: clamp(110px, 22vw, 255px);
  aspect-ratio: 1;
  border: 1px solid #ffbb7926;
  border-radius: 50%;
  box-shadow: 0 0 0 22px #ffbb7908, 0 0 0 48px #ffbb7905;
  content: "";
}
.event-hero-inner { position: relative; max-width: 800px; }
.event-hero h1 { max-width: 800px; margin: 10px 0 11px !important; font-size: clamp(2rem, 6.1vw, 4.3rem); font-weight: 800; line-height: 1.13; letter-spacing: .015em; text-wrap: balance; }
.event-title-accent { color: var(--event-accent); white-space: nowrap; }
.event-hero .event-intro { margin-top: 13px; color: #e2dbd6; font-size: clamp(.95rem, 2vw, 1.05rem); }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--event-muted); font-size: .94rem; }
.event-meta span { display: inline-flex; align-items: center; gap: 8px; }
.event-meta b { color: var(--event-action); font-size: 1.05rem; }
.event-edition-mark { position: absolute; top: 28px; right: 28px; display: grid; min-width: 105px; min-height: 48px; place-items: center; padding: 6px 14px; border-radius: 6px; color: #241509; background: var(--event-action); box-shadow: 0 8px 25px #ff8a2a33; font-size: .94rem; font-weight: 800; letter-spacing: .14em; }
.event-columns { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr); align-items: start; gap: clamp(20px, 4.3vw, 48px); padding: clamp(20px, 4.2vw, 42px); }
.event-agenda { min-width: 0; padding-top: 3px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; margin-bottom: 13px; }
.section-heading h2 { font-size: 1.32rem; line-height: 1.3; }
.event-day { margin-top: 9px; border: 1px solid var(--event-line); border-left: 4px solid var(--event-action); border-radius: 11px; background: linear-gradient(120deg, #191a1e, #151619); }
.event-day summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 10px 34px 10px 13px; cursor: pointer; list-style: none; font-size: .91rem; font-weight: 700; }
.event-day summary::-webkit-details-marker { display: none; }
.event-day summary::after { position: absolute; top: 18px; right: 15px; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1px 1px 0; content: ""; transform: rotate(45deg); transition: transform .15s ease; }
.event-day[open] summary::after { transform: rotate(225deg); }
.event-day-count { color: #aca7ae; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.event-sessions { padding: 0 13px 6px; list-style: none; }
.event-session { padding: 10px 0 11px; border-top: 1px solid var(--event-line); }
.event-session-time { margin-bottom: 3px !important; color: var(--event-accent); font-size: .82rem; font-variant-numeric: tabular-nums; font-weight: 750; }
.event-session h3 { font-size: .96rem; font-weight: 650; line-height: 1.45; }
.event-session-details { display: grid; gap: 5px; margin-top: 7px !important; padding-left: 1.15rem; color: var(--event-muted); font-size: .83rem; }
.event-session-details li::marker { color: var(--event-accent); }
.event-empty-agenda { padding: 17px; border: 1px dashed var(--event-line); border-radius: 10px; color: var(--event-muted); }
.event-details { display: grid; gap: 8px; margin-top: 15px !important; padding: 13px 14px; border: 1px dashed #484044; border-radius: 10px; background: #161619a8; font-size: .84rem; }
.event-details div { display: grid; grid-template-columns: 4.1em minmax(0, 1fr); gap: 8px; }
.event-details dt { color: var(--event-accent); font-weight: 700; }
.event-details dd { color: var(--event-muted); overflow-wrap: anywhere; }
.event-form { display: grid; gap: 12px; min-width: 0; padding: clamp(16px, 2.6vw, 25px); border: 1px solid var(--event-line); border-radius: 15px; background: linear-gradient(145deg, #1b1b1f, #17181b); box-shadow: 0 14px 38px #0003; }
.event-form-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 7px 10px; padding-bottom: 7px; border-bottom: 1px solid var(--event-line); }
.event-form h2 { font-size: 1.35rem; }
.event-form label { display: grid; gap: 5px; min-width: 0; font-size: .87rem; font-weight: 650; }
.event-form input { width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid var(--event-line); border-radius: 8px; color: var(--event-ink); background: var(--event-control); font: inherit; font-size: 1rem; font-weight: 400; line-height: 1.35; }
.event-form input::placeholder { color: #aaa4a7; opacity: 1; }
.registration-page :is(input,button,summary,a):focus-visible { outline: 2px solid var(--event-focus); outline-offset: 2px; }
.event-payment { display: grid; gap: 12px; min-width: 0; padding: 13px; border: 1px solid #583a27; border-radius: 11px; background: linear-gradient(135deg, #302116, #211b18); }
.event-payment-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.event-payment-label { font-size: .94rem; font-weight: 750; }
.event-payment-note { color: #c4b8b0; font-size: .78rem; line-height: 1.5; }
.event-payment-total { display: grid; justify-items: end; color: var(--event-muted); font-size: .73rem; white-space: nowrap; }
.event-payment-total strong { color: var(--event-action); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.event-qr-link { display: grid; width: min(100%, 280px); min-height: 190px; place-items: center; justify-self: center; overflow: hidden; padding: 10px; border: 1px solid #51443e; border-radius: 10px; background: #fff; }
.event-qr { display: block; width: min(240px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; }
.event-payment label small { color: #c4b8b0; font-size: .73rem; font-weight: 400; line-height: 1.5; }
.event-payment-pending { border-color: #6a4b34; }
.event-payment-pending .event-payment-label { color: var(--event-accent); }
.event-form button { width: 100%; min-height: 47px; margin-top: 2px; padding: 9px 14px; border: 1px solid #ef854a; border-radius: 8px; color: #fff8f0; background: #a34315; font: inherit; font-size: .96rem; font-weight: 750; text-align: center; cursor: pointer; transition: background .15s ease, opacity .15s ease; }
.event-form button:hover:not(:disabled) { background: #b54d1b; }
.event-form button:disabled { opacity: .5; cursor: not-allowed; }
.event-form-status { color: var(--event-muted); font-size: .75rem; text-align: center; }
.event-error { padding: 9px 11px; border: 1px solid #8c433e; border-radius: 8px; color: #ffd2c9; background: #401e1d; font-size: .82rem; }
.event-flash, .event-closed { display: grid; gap: 3px; margin: 18px clamp(20px, 4.2vw, 42px) 0; padding: 13px 16px; border: 1px solid #77512e; border-radius: 10px; color: #f8e5d4; background: #332217; }
.event-flash strong { color: var(--event-accent); }
.event-flash span, .event-closed { font-size: .87rem; }
.event-setup { border-color: #5e554a; color: var(--event-muted); background: #211f1c; }
.event-footer { padding: 10px 15px 14px; border-top: 1px solid #262529; background: linear-gradient(90deg, #191619, #111215); text-align: center; }
.event-footer a { display: inline-flex; min-height: 36px; align-items: center; color: var(--event-muted); font-size: .82rem; text-decoration: underline; text-underline-offset: .18em; }
.event-footer a:hover { color: var(--event-accent); }
.event-empty { display: grid; min-height: 64vh; place-items: center; padding: 28px; }
.event-empty > div { max-width: 540px; padding: clamp(24px, 6vw, 48px); border: 1px solid var(--event-line); border-radius: 16px; background: var(--event-card); }
.event-empty h1 { margin: 12px 0 !important; font-size: clamp(1.8rem, 5vw, 2.7rem); }
.event-empty p:not(.event-preview-label) { margin: 0 0 10px !important; color: var(--event-muted); }
.event-empty a { color: var(--event-accent); }

@media (max-width: 760px) {
  .registration-page { border-radius: 14px; }
  .event-hero { min-height: 225px; padding-right: 22px; }
  .event-edition-mark { top: 18px; right: 18px; min-width: auto; min-height: 37px; padding: 4px 9px; font-size: .74rem; }
  .event-hero-inner { padding-top: 25px; }
  .event-hero h1 { max-width: 95%; font-size: clamp(1.9rem, 8vw, 3rem); }
  .event-columns { grid-template-columns: 1fr; gap: 20px; }
  .event-agenda { padding: 0; }
  .event-form { order: -1; }
}
@media (max-width: 400px) {
  .event-hero { padding-inline: 17px; }
  .event-hero-inner { padding-top: 30px; }
  .event-preview-label { max-width: 75%; font-size: .66rem; letter-spacing: .13em; }
  .event-hero h1 { font-size: 1.9rem; }
  .event-meta { gap: 6px 12px; font-size: .86rem; }
  .event-columns { gap: 17px; padding: 17px 14px; }
  .event-day summary { gap: 4px; padding-right: 28px; font-size: .84rem; }
  .event-day-count { font-size: .68rem; }
  .event-form { padding: 14px; }
  .event-payment { padding: 10px; }
  .event-payment-total strong { font-size: 1.05rem; }
}
