:root {
  --leaf-dark: #0d6b25;
  --leaf: #2f9b34;
  --leaf-soft: #e8f8df;
  --grass: #73c94a;
  --sun: #ffcf4d;
  --flower: #ff7a59;
  --ribbon: #ef3e57;
  --sky: #dff7ff;
  --paper: #fffef5;
  --ink: #233326;
  --muted: #657568;
  --line: rgba(21, 111, 39, 0.18);
  --shadow: 0 12px 28px rgba(19, 86, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 9%, rgba(255, 207, 77, 0.22), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(115, 201, 74, 0.22), transparent 22%),
    linear-gradient(180deg, #f0ffe8 0%, #e2f8ff 36%, #fffef5 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.46;
  background:
    radial-gradient(circle at 6% 78%, #ffcf4d 0 5px, transparent 6px),
    radial-gradient(circle at 94% 70%, #ff7a59 0 5px, transparent 6px),
    linear-gradient(90deg, rgba(47, 155, 52, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 155, 52, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px, 22px 22px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  overflow: hidden;
}

.poster-hero {
  padding: 20px 0 26px;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 207, 77, 0.24), transparent 18%),
    radial-gradient(circle at 88% 10%, rgba(115, 201, 74, 0.2), transparent 22%),
    linear-gradient(180deg, #f3ffe9 0%, #e8f8df 100%);
  border-bottom: 1px solid rgba(47, 155, 52, 0.14);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.event-poster-card {
  border: 1px solid rgba(47, 155, 52, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 254, 245, 0.96);
  box-shadow: var(--shadow);
}

.event-poster-card__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  cursor: zoom-in;
}

.event-poster-card__image:focus-visible {
  outline: 3px solid rgba(47, 155, 52, 0.4);
  outline-offset: 4px;
}

.poster-save-tip {
  margin: 12px auto 10px;
  color: #48604d;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.poster-signup-button {
  display: flex;
  width: min(100%, 320px);
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--leaf), var(--leaf-dark));
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(47, 155, 52, 0.2);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  display: grid;
  gap: 4px;
  max-width: 8em;
  margin: 0 auto;
  color: var(--leaf-dark);
  font-size: 42px;
  font-weight: 950;
  text-shadow: 2px 3px 0 rgba(255, 207, 77, 0.24);
}

.section {
  padding: 34px 0;
}

.section__inner {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
}

.section-kicker {
  display: inline-flex;
  margin: 0 0 8px;
  border-radius: 999px;
  padding: 4px 12px;
  color: #fff;
  background: var(--leaf);
  font-size: 13px;
  font-weight: 900;
}

.section h2 {
  margin-bottom: 18px;
  color: var(--leaf-dark);
  font-size: 25px;
}

.overview-section {
  padding-top: 28px;
  padding-bottom: 28px;
  background: linear-gradient(180deg, rgba(249, 255, 240, 0.92), rgba(255, 254, 245, 0.82));
}

.overview-card {
  border: 1px solid rgba(47, 155, 52, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 254, 245, 0.96);
  box-shadow: var(--shadow);
}

.overview-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.overview-card__header h2 {
  margin-bottom: 0;
}

.overview-grid,
.organizer-list {
  display: grid;
  gap: 10px;
}

.overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-item,
.organizer-item {
  min-width: 0;
  border: 1px solid rgba(47, 155, 52, 0.14);
  border-radius: 8px;
  background: #f7fff1;
}

.overview-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
}

.overview-item--full,
.organizer-item--full {
  grid-column: 1 / -1;
}

.overview-item__icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
}

.overview-item strong,
.organizer-item span {
  display: block;
  color: var(--leaf-dark);
  font-size: 13px;
  font-weight: 950;
}

.overview-item p,
.organizer-item p {
  margin: 4px 0 0;
  color: #3f4d43;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.organizer-list {
  margin-top: 12px;
  border-top: 1px dashed rgba(47, 155, 52, 0.22);
  padding-top: 12px;
}

.organizer-item {
  padding: 11px 12px;
}

.intro-section {
  background: linear-gradient(180deg, rgba(249, 255, 240, 0.8), rgba(232, 248, 223, 0.78));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-card,
.registration-closed-card,
.form-block,
.child-card,
.modal__panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 245, 0.96);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 130px;
  padding: 16px;
}

.feature-card__icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 10px;
  background: var(--leaf-soft);
  font-size: 21px;
}

.feature-card h3 {
  color: var(--leaf-dark);
  font-size: 17px;
}

.feature-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.signup-form {
  display: grid;
  gap: 16px;
}

.registration-closed-card {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 22px 18px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 207, 77, 0.2), transparent 26%),
    linear-gradient(180deg, rgba(232, 248, 223, 0.9), rgba(255, 254, 245, 0.98));
}

.registration-closed-card__badge {
  justify-self: center;
  border-radius: 999px;
  padding: 5px 14px;
  color: #fff;
  background: linear-gradient(90deg, var(--leaf), var(--leaf-dark));
  font-size: 13px;
  font-weight: 950;
}

.registration-closed-card h3 {
  color: var(--leaf-dark);
  font-size: 25px;
}

.registration-closed-card p {
  margin: 0;
  color: #3f4d43;
  font-size: 15px;
  line-height: 1.65;
}

.registration-closed-card__contact {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin-top: 6px;
}

.registration-closed-card__contact img {
  display: block;
  width: 220px;
  max-width: 78vw;
  height: auto;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(19, 86, 39, 0.12);
}

.registration-closed-card__contact span {
  color: var(--leaf-dark);
  font-size: 14px;
  font-weight: 850;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.field-full {
  grid-column: 1 / -1;
}

.form-block,
.child-card {
  padding: 18px;
}

.block-heading,
.child-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.block-heading {
  justify-content: flex-start;
}

.block-heading__icon {
  display: inline-flex;
  min-width: 72px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #36a53d, #167a25);
  font-size: 15px;
  font-weight: 950;
}

.block-heading h3,
.child-card h3 {
  color: var(--leaf-dark);
  font-size: 20px;
}

.block-heading p,
.child-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.field,
.choice-group {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.form-grid > .field,
.form-grid > .choice-group {
  min-width: 0;
  margin-bottom: 0;
}

.field:last-child,
.choice-group:last-child {
  margin-bottom: 0;
}

.field span,
.field-title,
.choice-group legend {
  color: #314d35;
  font-size: 15px;
  font-weight: 900;
}

em {
  color: var(--ribbon);
  font-style: normal;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(21, 111, 39, 0.24);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(47, 155, 52, 0.16);
}

.child-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(232, 248, 223, 0.34), transparent 120px),
    rgba(255, 254, 245, 0.98);
}

.child-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--leaf-dark), var(--grass), var(--sun), var(--flower));
}

.child-card__title {
  display: flex;
  gap: 10px;
  align-items: center;
}

.child-card__icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e8f8df;
  font-size: 22px;
}

.choice-group {
  border: 0;
  padding: 0;
  min-inline-size: 0;
}

.choice-group legend {
  margin-bottom: 8px;
}

.choice-group__options,
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-group label,
.radio-pill {
  display: inline-flex;
  align-items: center;
}

.choice-group input,
.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-group span,
.radio-pill span {
  min-height: 40px;
  border: 1px solid rgba(47, 155, 52, 0.28);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--leaf-dark);
  background: #f7fff1;
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.choice-group input:checked + span,
.radio-pill input:checked + span {
  color: #fff;
  background: var(--leaf);
  border-color: var(--leaf);
}

.sport-limit-remark {
  margin-top: 12px;
}

.agreement-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(47, 155, 52, 0.2);
  border-radius: 8px;
  padding: 13px;
  background: #f7fff1;
}

.agreement-check input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--leaf);
}

.agreement-check span {
  color: #314d35;
  font-size: 14px;
  font-weight: 800;
}

.agreement-line {
  display: block;
}

.agreement-line + .agreement-line {
  margin-top: 4px;
}

.submit-button {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--leaf), var(--leaf-dark));
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(47, 155, 52, 0.2);
}

.submit-button:disabled {
  opacity: 0.68;
}

.submit-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 40;
  width: min(86vw, 420px);
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: rgba(35, 51, 38, 0.93);
  text-align: center;
  font-size: 14px;
}

.poster-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 42, 22, 0.76);
}

.poster-preview-modal__image {
  display: block;
  width: min(100%, 1080px);
  max-height: calc(100vh - 72px);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.poster-preview-modal__close {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #233326;
  background: rgba(255, 254, 245, 0.96);
  font-size: 26px;
  line-height: 1;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 42, 22, 0.52);
}

[hidden] {
  display: none !important;
}

.modal__panel {
  position: relative;
  width: min(100%, 380px);
  padding: 24px 20px 22px;
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #607264;
  background: #edf3eb;
  font-size: 24px;
  line-height: 1;
}

.modal__badge {
  display: inline-flex;
  margin: 0 0 10px;
  border: 1px solid rgba(47, 155, 52, 0.18);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--leaf-dark);
  background: #f0ffe8;
  font-size: 13px;
  font-weight: 950;
}

.modal h2 {
  margin-bottom: 8px;
  color: var(--leaf-dark);
  font-size: 24px;
}

.modal p {
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: 14px;
}

.registration-summary {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  border: 1px solid rgba(47, 155, 52, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: #f7fff1;
  text-align: left;
}

.registration-summary__row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #314d35;
  font-size: 14px;
}

.registration-summary__row span {
  color: var(--muted);
}

.registration-summary__row strong {
  color: var(--leaf-dark);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.qrcode {
  display: block;
  width: 232px;
  height: 232px;
  max-width: min(72vw, 260px);
  max-height: min(72vw, 260px);
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: contain;
}

.modal__action {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  margin-top: 18px;
  color: #fff;
  background: linear-gradient(90deg, var(--leaf), var(--leaf-dark));
  font-size: 16px;
  font-weight: 950;
}

@media (min-width: 680px) {
  .poster-hero {
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .section {
    padding: 44px 0;
  }

  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .poster-hero {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .event-poster-card {
    padding: 6px;
  }

  .poster-save-tip {
    font-size: 13px;
  }

  .overview-card__header {
    display: grid;
  }

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

  .overview-item--full,
  .organizer-item--full {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .section__inner {
    width: min(100% - 28px, 760px);
  }

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

  .field-full {
    grid-column: auto;
  }

  .feature-grid {
    gap: 10px;
  }

  .feature-card,
  .form-block,
  .child-card {
    padding: 14px 12px;
  }

}
