:root {
  --ink-900: #243247;
  --ink-700: #49566b;
  --ink-500: #a1aaba;
  --line: #eceff3;
  --card: #ffffff;
  --primary: #18b879;
  --primary-deep: #11a86d;
  --success: #1d7a54;
  --radius-lg: 12px;
  --radius-md: 9px;
}
* { box-sizing: border-box; }
.is-hidden { display: none !important; }
body {
  margin: 0;
  color: var(--ink-900);
  font-family: "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #eef8f1 0%, #e5f4ea 100%);
}
button, input, select { font: inherit; }
.form-page { width: min(1080px, 100%); margin: 0 auto; padding: 0 0 48px; }
.hero-shell { border-bottom: 1px solid var(--line); }
.hero-card { padding: 26px 26px 12px 18px; }
.hero-brand {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  overflow: visible;
  min-height: 140px;
}
.hero-copy-block {
  position: relative;
  z-index: 1;
  max-width: none;
}
.hero-corner-logo {
  position: absolute;
  top: -8px;
  right: 6px;
  width: 34px;
  height: 34px;
  object-fit: contain;
  z-index: 3;
}
.hero-illustration {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 168px;
  height: 168px;
  opacity: 0.5;
  pointer-events: none;
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
}
.hero-illustration-glow {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(95, 255, 132, 0.85) 0%, rgba(95, 255, 132, 0.35) 45%, rgba(95, 255, 132, 0) 75%);
  filter: blur(4px);
}
.hero-illustration-sheet {
  position: absolute;
  left: 62px;
  top: 46px;
  width: 96px;
  height: 118px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(76, 255, 98, 0.95) 0%, rgba(197, 255, 214, 0.92) 76%, rgba(162, 255, 190, 0.9) 100%);
  box-shadow: 0 10px 26px rgba(47, 214, 95, 0.18);
}
.hero-illustration-sheet::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 24px;
  height: 32px;
  border-radius: 0 18px 0 18px;
  background: linear-gradient(180deg, rgba(28, 220, 72, 0.95) 0%, rgba(134, 255, 167, 0.88) 100%);
}
.hero-illustration-sheet span {
  position: absolute;
  left: 18px;
  width: 60px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 10px rgba(47, 214, 95, 0.18);
}
.hero-illustration-sheet span:nth-child(1) { top: 34px; }
.hero-illustration-sheet span:nth-child(2) { top: 54px; }
.hero-illustration-sheet span:nth-child(3) { top: 74px; }
.hero-illustration-base {
  position: absolute;
  left: 74px;
  top: 154px;
  width: 80px;
  height: 30px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(98, 255, 130, 0.95) 0%, rgba(29, 222, 79, 0.92) 100%);
}
.hero-logo { width: 36px; height: 36px; object-fit: contain; flex: 0 0 auto; }
.hero-card h1 { margin: 0; font-size: 24px; font-weight: 700; color: #000000; }
.hero-copy { margin: 10px 0 0; color: #333333; font-size: 15px; line-height: 1.7; }
.sheet-card { padding: 18px 24px 0; }
.people-form { display: grid; gap: 16px; }
.person-card {
  border: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: none;
  overflow: visible;
  padding-top: 0;
}
.person-card-head {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 0 0 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  border-radius: 22px 22px 0 0;
  transform: none;
  position: relative;
  z-index: 1;
}
.person-card-head strong {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px 0 0;
  font-size: 17px;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
  border-radius: 0;
}
.person-card-head strong::before {
  content: "";
  width: 5px;
  height: 17px;
  margin-right: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #96cac4 0%, #75b96f 100%);
  flex: 0 0 auto;
}
.person-card-body { padding: 22px 28px 48px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 4px; }
.field-label { font-size: 15px; font-weight: 500; color: var(--ink-900); }
.required-mark { font-style: normal; color: #ff5a4f; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; border-radius: var(--radius-md);
  border: 1px solid #dfe5ed; background: #ffffff; color: var(--ink-900); font-size: 15px;
}
.field textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.6;
}
.field input::placeholder, .field textarea::placeholder { color: #c3cad4; font-size: 14px; font-weight: 400; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(5, 150, 105, 0.42); }
.display-only-input {
  pointer-events: none;
  user-select: none;
  background: #f7f9fc !important;
  color: var(--ink-700);
}
.field-help {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  color: var(--ink-700);
  font-size: 14px;
}
.field-input-with-unit {
  position: relative;
  display: block;
}
.field-input-with-unit input {
  padding-right: 72px;
}
.field-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-900);
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}
.field-wide { grid-column: 1 / -1; }
.field-age { grid-column: 1; }
.field-gender { grid-column: 2; }
.field-team-total { grid-column: 1; }
.field-team-participants { grid-column: 2; }
.gender-inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.gender-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gender-option { position: relative; display: flex; }
.gender-option input { position: absolute; opacity: 0; pointer-events: none; }
.gender-option-ui {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 52px; padding: 10px 12px; border: 1px solid #dfe5ed; border-radius: var(--radius-md);
  background: #ffffff; color: var(--ink-900); font-size: 14px; font-weight: 400; line-height: 1;
}
.gender-icon-image {
  display: inline-block; flex: 0 0 auto; vertical-align: middle; background-color: #4c596f;
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
  mask-repeat: no-repeat; mask-position: center; mask-size: contain;
}
.gender-icon-male { width: 15px; height: 15px; -webkit-mask-image: url("/assets/gender-male.svg"); mask-image: url("/assets/gender-male.svg"); }
.gender-icon-female { width: 19px; height: 19px; -webkit-mask-image: url("/assets/gender-female.svg"); mask-image: url("/assets/gender-female.svg"); }
.gender-option-male .gender-icon-image { background-color: #3b82f6; }
.gender-option-female .gender-icon-image { background-color: #ec669a; }
.gender-option-male input:checked + .gender-option-ui { border-width: 2px; border-color: rgba(5,150,105,.7); background: rgba(5,150,105,.05); color: var(--primary); }
.gender-option-male input:checked + .gender-option-ui .gender-icon-image { background-color: #3b82f6; }
.gender-option-female input:checked + .gender-option-ui { border-width: 2px; border-color: rgba(236,102,154,.72); background: rgba(236,102,154,.06); color: #ec669a; }
.gender-option-female input:checked + .gender-option-ui .gender-icon-image { background-color: #ec669a; }
.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.field .option-group {
  gap: 1px 12px;
}
.compact-option-group {
  gap: 0 12px;
}
.compact-option-group .choice-option {
  min-height: 18px;
  line-height: 1;
}
.choice-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0;
  font-size: 14px;
  color: var(--ink-900);
  cursor: pointer;
}
.choice-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--primary);
}
.choice-option span {
  display: inline-flex;
  align-items: center;
}
.choice-option-gender span {
  gap: 6px;
}
.stack-group {
  display: grid;
  gap: 10px;
}
.field-inline {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
  width: 100%;
}
.field-inline.is-hidden {
  display: none;
}
.field-inline span {
  font-size: 14px;
  color: var(--ink-700);
  white-space: nowrap;
}
.field-inline input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #dfe5ed;
  background: #ffffff;
  color: var(--ink-900);
  font-size: 15px;
}
.field-inline input:focus {
  outline: none;
  border-color: rgba(5, 150, 105, 0.42);
}
.team-absent-list {
  display: grid;
  gap: 10px;
}
.team-absent-item {
  position: relative;
}
.team-absent-box {
  border: 1px solid #dfe5ed;
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
}
.team-absent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
}
.team-recommend-grid {
  grid-template-columns: 1fr 2fr;
}
.team-absent-input {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none;
}
.team-absent-input:focus {
  outline: none;
}
.team-absent-grid > :nth-child(1) {
  border-right: 1px solid #dfe5ed !important;
}
.team-absent-grid > :nth-child(2) {
  border-right: 1px solid #dfe5ed !important;
}
.team-absent-reason {
  grid-column: auto;
}
.team-recommend-grid > :nth-child(2) {
  border-right: 0 !important;
}
.team-recommend-grid .team-absent-reason {
  grid-column: 1 / -1;
  border-top: 1px solid #dfe5ed !important;
}
.team-absent-add,
.team-absent-remove {
  justify-self: start;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #b9dfcd;
  background: #f5fbf7;
  color: #158356;
  font-size: 14px;
  cursor: pointer;
}
.team-absent-add {
  margin-top: 10px;
}
.team-absent-remove {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  min-height: 28px;
  padding: 0 10px;
  border-color: #f2dddd;
  background: rgba(255, 248, 248, 0.92);
  color: #b86d6d;
  box-shadow: none;
  opacity: 0.9;
}
.submit-bar { display: flex; justify-content: center; padding: 26px 28px 10px; }
.submit-btn {
  width: 100%;
  max-width: 996px;
  height: 51px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  background: linear-gradient(169deg, var(--primary), #35c98e);
  box-shadow: 0 14px 28px rgba(24,184,121,.22);
  cursor: pointer;
}
.form-message { min-height: 24px; margin: 0; color: var(--success); font-size: 12px; text-align: center; }
.form-message.is-error { color: #b42318; }
.page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 18px;
  color: #000000;
  font-size: 15px;
}
.page-footer-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}
.page-footer-name {
  line-height: 1;
}
@media (max-width: 640px) {
  .sheet-card { padding: 14px 12px 0; }
  .person-card-head {
    min-height: 54px;
    padding: 0 0 0 12px;
    transform: none;
  }
  .person-card-head strong {
    min-height: 38px;
    padding: 0 16px 0 0;
    font-size: 15px;
    font-weight: 500;
    border-radius: 0;
  }
  .person-card-head strong::before {
    width: 5px;
    height: 17px;
    margin-right: 6px;
  }
  .hero-brand {
    gap: 12px;
    min-height: 110px;
  }
  .hero-corner-logo {
    width: 34px;
    height: 34px;
    top: -8px;
    right: 2px;
  }
  .hero-copy-block {
    max-width: none;
  }
  .hero-illustration {
    width: 88px;
    height: 88px;
    right: 8px;
    top: 50%;
    opacity: 0.5;
    transform: translateY(-50%);
  }
  .hero-illustration-sheet {
    left: 38px;
    top: 28px;
    width: 62px;
    height: 78px;
    border-radius: 14px;
  }
  .hero-illustration-sheet::after {
    width: 18px;
    height: 24px;
    border-radius: 0 14px 0 14px;
  }
  .hero-illustration-sheet span {
    left: 12px;
    width: 38px;
    height: 6px;
  }
  .hero-illustration-sheet span:nth-child(1) { top: 22px; }
  .hero-illustration-sheet span:nth-child(2) { top: 36px; }
  .hero-illustration-sheet span:nth-child(3) { top: 50px; }
  .hero-illustration-base {
    left: 48px;
    top: 100px;
    width: 52px;
    height: 20px;
    border-radius: 0 0 14px 14px;
  }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .field-team-total { grid-column: 1; }
  .field-team-participants { grid-column: 2; }
  .choice-option {
    gap: 1px;
    min-height: 22px;
    font-size: 14px;
  }
  .field .option-group {
    gap: 0 10px;
  }
  .gender-inline-options {
    gap: 4px 14px;
  }
  .field-input-with-unit input {
    padding-right: 62px;
  }
  .field-unit {
    right: 10px;
    font-size: 15px;
  }
  .compact-option-group {
    gap: 0 10px;
  }
  .compact-option-group .choice-option {
    min-height: 16px;
    line-height: 1;
  }
  .choice-option input {
    width: 14px;
    height: 14px;
    transform: scale(0.72);
    transform-origin: center;
  }
  .field-inline {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .team-absent-grid {
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 0;
  }
  .team-recommend-grid {
    grid-template-columns: 1fr 2fr;
  }
  .team-absent-add,
  .team-absent-remove {
    min-height: 30px;
    padding: 0 10px;
    font-size: 13px;
  }
  .submit-bar { padding: 20px 18px 8px; }
  .submit-btn {
    max-width: none;
    width: 100%;
    height: 51px;
  }
  .page-footer {
    padding: 6px 0 14px;
    font-size: 15px;
  }
}
  .person-card-body {
    padding: 19px 18px 40px;
  }
