/* 设计100成果展邀请函 · 视觉样式（2026 Figma 最新版） */
:root {
  --blue: #1710d1;
  --blue-deep: #0b00ad;
  --blue-bright: #2d21ff;
  --blue-soft: #eeecff;
  --ink: #17152a;
  --muted: #6d6a87;
  --paper: #ffffff;
  --danger: #c93443;
  --font-cn: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  --font-en: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-cn);
  background-color: #f5f3ff;
  background-image:
    radial-gradient(1200px 780px at 50% -18%, #ffffff 0%, rgba(255, 255, 255, 0) 68%),
    radial-gradient(900px 700px at -8% 42%, rgba(85, 66, 255, 0.18) 0%, rgba(85, 66, 255, 0) 62%),
    radial-gradient(820px 760px at 110% 78%, rgba(188, 180, 255, 0.5) 0%, rgba(188, 180, 255, 0) 60%),
    linear-gradient(145deg, #faf9ff 0%, #efecff 46%, #f7f5ff 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(116deg, rgba(45, 32, 190, 0.055) 0, rgba(45, 32, 190, 0.055) 1px, transparent 1px, transparent 13px);
  -webkit-mask-image: radial-gradient(120% 95% at 50% 45%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 95% at 50% 45%, #000 0%, transparent 72%);
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.site {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(18px, 3.4vw, 44px) 16px clamp(48px, 7vw, 96px);
}

.invitation {
  width: min(100%, 500px);
  margin: 0 auto;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: screen-in 0.48s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sheet {
  position: relative;
  width: 100%;
  overflow: hidden;
  container-type: inline-size;
  background: #fff;
  border-radius: 22px;
  box-shadow:
    0 34px 82px -34px rgba(36, 23, 138, 0.5),
    0 8px 24px -14px rgba(36, 23, 138, 0.2);
  isolation: isolate;
}

.sheet--p1 {
  aspect-ratio: 1176 / 2313;
  border-radius: 0;
  box-shadow: none;
}

.sheet--p2 {
  aspect-ratio: 1176 / 2981;
}

.sheet--p3 {
  aspect-ratio: 1176 / 2342;
}

.sheet--p4 {
  aspect-ratio: 1176 / 5483;
}

.cover-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 34px 82px -34px rgba(36, 23, 138, 0.5),
    0 8px 24px -14px rgba(36, 23, 138, 0.2);
}

.cover-card .sheet {
  border-radius: 0;
  box-shadow: none;
}

.art-wrap {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
  background: linear-gradient(145deg, #fbfaff 0%, #efedff 52%, #faf9ff 100%);
}

.art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* 封面按钮位于原始画框下方，与 Figma 里的按钮结构一致 */
.cover-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.1cqw 6.15cqw;
  background: #fff;
}

.cover-cta {
  width: 100%;
  height: 12.82cqw;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8cqw;
  padding: 0 3cqw;
  border: 0;
  border-radius: 1.8cqw;
  color: #fff;
  background: var(--blue);
  font-family: var(--font-cn);
  font-size: clamp(15px, 3.85cqw, 20px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.cover-cta svg {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.cover-cta:hover {
  background: #2418e9;
  box-shadow: 0 8px 24px rgba(23, 16, 209, 0.18);
}

.cover-cta:hover svg {
  transform: translateX(0.28em);
}

.cover-cta:active {
  transform: scale(0.988);
}

.cover-cta:focus-visible {
  outline: 3px solid rgba(23, 16, 209, 0.35);
  outline-offset: 3px;
}

/* 第二、三页：用透明热区承接原设计图中的蓝色按钮 */
.hotspot-btn {
  position: absolute;
  z-index: 4;
  left: 6.378%;
  width: 87.245%;
  padding: 0;
  border: 0;
  border-radius: 1.1cqw;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.hotspot-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0);
  transition: background 0.18s ease;
}

.hotspot-btn:hover::before {
  background: rgba(255, 255, 255, 0.09);
}

.hotspot-btn:active::before {
  background: rgba(6, 0, 45, 0.12);
}

.hotspot-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.hotspot-btn--p2 {
  top: 92.452%;
  height: 5.032%;
}

.hotspot-btn--p3 {
  top: 90.393%;
  height: 6.405%;
}

/* 第四页：在最新版表单画面上覆盖真实控件 */
.reply-form {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
}

.field {
  position: absolute;
  left: 9.949%;
  width: 80.102%;
  height: 2.40744%;
  margin: 0;
  padding: 0 2.82cqw;
  border: 1px solid #d8d6e6;
  border-radius: 1.55cqw;
  outline: none;
  background: #fff;
  color: #201e35;
  font-family: var(--font-cn);
  font-size: clamp(16px, 4.06cqw, 21px);
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(31, 23, 107, 0.025);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field::placeholder {
  color: #a5a3b5;
  opacity: 1;
  font-weight: 400;
}

.field:focus::placeholder {
  opacity: 0.55;
}

.field:hover {
  border-color: #b7b3d7;
}

.field:focus {
  border-color: var(--blue-bright);
  box-shadow:
    0 0 0 0.5cqw rgba(45, 33, 255, 0.14),
    0 1px 2px rgba(31, 23, 107, 0.04);
}

.field.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 0.45cqw rgba(201, 52, 67, 0.14);
}

.field[readonly] {
  color: #3b34a6;
  background: #fdfdff;
  cursor: default;
}

.field:disabled {
  color: #aaa8b8;
  background: #faf9fd;
  border-color: #e4e1ef;
  cursor: not-allowed;
}

.field[type="datetime-local"],
.field[type="date"] {
  padding-right: 1.2cqw;
  line-height: normal;
}

.field[type="datetime-local"]:not(.has-value):not(:focus),
.field[type="date"]:not(.has-value):not(:focus) {
  color: #9c9aaf;
}

.field[type="datetime-local"]::-webkit-datetime-edit,
.field[type="date"]::-webkit-datetime-edit {
  overflow: hidden;
}

.field[type="datetime-local"]::-webkit-calendar-picker-indicator,
.field[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.45;
  cursor: pointer;
  margin-left: 0.7cqw;
  padding: 0.7cqw;
}

.field--name {
  top: 20.828%;
}

.field--organization {
  top: 25.369%;
}

.field--phone {
  top: 29.911%;
}

.field--email {
  top: 34.452%;
}

.field--arrival {
  top: 42.987%;
}

.field--inbound {
  top: 47.529%;
}

.field--departure {
  top: 52.070%;
}

.field--outbound {
  top: 56.611%;
}

.field--checkin {
  top: 72.260%;
}

.field--checkout {
  top: 76.801%;
}

.field--duration {
  top: 81.342%;
}

/* 方形复选框 / 单选框 */
.choice {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  height: 2.55%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.choice__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.choice__box {
  position: relative;
  display: block;
  width: max(12px, 2.806cqw);
  height: max(12px, 2.806cqw);
  flex: 0 0 auto;
  border: 1px solid #88859c;
  border-radius: 0.32cqw;
  background: #fff;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.choice__box::after {
  content: "";
  position: absolute;
  left: 33%;
  top: 16%;
  width: 27%;
  height: 50%;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(42deg);
  transition: opacity 0.12s ease;
}

.choice:hover .choice__box {
  border-color: var(--blue);
}

.choice__input:checked + .choice__box {
  border-color: var(--blue);
  background: var(--blue);
}

.choice__input:checked + .choice__box::after {
  opacity: 1;
}

.choice__input:focus-visible + .choice__box {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(45, 33, 255, 0.22);
}

.choice.is-invalid .choice__box {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(201, 52, 67, 0.13);
}

.choice--pickup-yes,
.choice--stay-yes {
  left: 11.310%;
  width: 17%;
}

.choice--pickup-no,
.choice--stay-no {
  left: 28.912%;
  width: 18%;
}

.choice--pickup-yes,
.choice--pickup-no {
  top: 60.598%;
}

.choice--stay-yes,
.choice--stay-no {
  top: 68.149%;
}

.choice--review {
  left: 11.310%;
  top: 85.329%;
  width: 16%;
}

.choice--opening {
  left: 32.483%;
  top: 85.329%;
  width: 16.5%;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-btn {
  position: absolute;
  z-index: 6;
  left: 6.378%;
  top: 95.896%;
  width: 87.245%;
  height: 2.736%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9em;
  padding: 0;
  border: 0;
  border-radius: 1.1cqw;
  color: #fff;
  background: var(--blue);
  font-family: var(--font-cn);
  font-size: clamp(16px, 3.85cqw, 20px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition: background 0.18s ease, transform 0.15s ease, opacity 0.18s ease;
}

.submit-btn:hover {
  background: #2418e9;
}

.submit-btn:active {
  transform: scale(0.995);
  background: #0e04b7;
}

.submit-btn:focus-visible {
  outline: 3px solid rgba(23, 16, 209, 0.35);
  outline-offset: 3px;
}

.submit-btn:disabled {
  cursor: default;
  opacity: 0.9;
}

.submit-btn.is-done {
  background: #2117c7;
}

.spinner {
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 桌面端侧边页码 */
.progress-rail {
  display: none;
}

@media (min-width: 1000px) {
  .progress-rail {
    position: fixed;
    right: clamp(28px, 5vw, 92px);
    top: 50%;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    transform: translateY(-50%);
  }

  .progress-rail::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 3px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(23, 16, 209, 0.04), rgba(23, 16, 209, 0.2), rgba(23, 16, 209, 0.04));
  }

  .progress-rail button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8b87af;
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 0.18s ease;
  }

  .progress-rail button::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #cbc7e5;
    box-shadow: 0 0 0 0 rgba(23, 16, 209, 0);
    transition: background 0.18s ease, box-shadow 0.18s ease;
  }

  .progress-rail button::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 7px);
    top: 50%;
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(23, 16, 209, 0.9);
    color: #fff;
    font-family: var(--font-cn);
    font-size: 11px;
    letter-spacing: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translate(3px, -50%);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .progress-rail button:hover {
    color: var(--blue);
  }

  .progress-rail button:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .progress-rail button.is-active {
    color: var(--blue);
  }

  .progress-rail button.is-active::before {
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(23, 16, 209, 0.12);
  }

  .progress-rail button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
    border-radius: 4px;
  }
}

/* 提交成功弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 9, 49, 0.64);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade-in 0.22s ease both;
}

.modal__panel {
  position: relative;
  width: min(100%, 400px);
  padding: 34px 25px 22px;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(6, 2, 45, 0.4);
  text-align: center;
  animation: modal-in 0.38s cubic-bezier(0.2, 0.9, 0.25, 1.1) both;
}

.modal__panel:focus {
  outline: none;
}

.modal__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #1710d1, #574cff 55%, #b9b3ff);
}

.modal__panel::after {
  content: "";
  position: absolute;
  top: -90px;
  left: 50%;
  width: 260px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 76, 255, 0.14), rgba(91, 76, 255, 0) 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.modal__close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #77738f;
  background: transparent;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__close:hover {
  background: #f1effa;
  color: #262142;
}

.modal__close:focus-visible,
.modal__primary:focus-visible,
.modal__link:focus-visible {
  outline: 3px solid rgba(23, 16, 209, 0.28);
  outline-offset: 3px;
}

.success-badge {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #3023f0, #1209b5);
  box-shadow: 0 10px 28px rgba(23, 16, 209, 0.32);
  animation: badge-pop 0.45s 0.08s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.success-badge::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(23, 16, 209, 0.15);
  border-radius: 50%;
}

.success-badge svg {
  width: 31px;
  height: 31px;
}

.success-badge svg path {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: check-draw 0.45s 0.3s ease forwards;
}

@keyframes check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes badge-pop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal__panel h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #15122c;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.modal__panel p {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 310px;
  color: #69657f;
  font-size: 13.5px;
  line-height: 1.85;
}

.receipt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 22px;
  padding: 11px 13px;
  border: 1px solid #e7e4fa;
  border-radius: 10px;
  background: #f7f6ff;
  color: #817e98;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.receipt strong {
  color: var(--blue);
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.modal__primary {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-cn);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
}

.modal__primary:hover {
  background: #2418e9;
}

.modal__primary:active {
  transform: scale(0.99);
}

.modal__link {
  display: inline-block;
  margin-top: 13px;
  padding: 5px 10px;
  border: 0;
  background: transparent;
  color: #77738f;
  font-family: var(--font-cn);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #c9c5df;
}

.modal__link:hover {
  color: var(--blue);
}

.modal__contact {
  margin-top: 14px !important;
  padding-top: 13px;
  border-top: 1px solid #f0eef9;
  color: #a09db0 !important;
  font-size: 10.5px !important;
  line-height: 1.6 !important;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 200;
  max-width: min(88vw, 440px);
  padding: 12px 17px;
  border-radius: 10px;
  background: rgba(22, 17, 54, 0.94);
  color: #fff;
  box-shadow: 0 10px 34px rgba(11, 7, 40, 0.28);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: rgba(105, 24, 32, 0.96);
}

.noscript {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  padding: 14px 18px;
  border-radius: 10px;
  background: #211a4b;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 560px) {
  body {
    background: #fff;
  }

  body::before {
    display: none;
  }

  .site {
    padding: 0 0 env(safe-area-inset-bottom);
  }

  .invitation {
    width: 100%;
  }

  .sheet,
  .cover-card {
    border-radius: 0;
    box-shadow: none;
  }

  .progress-rail {
    display: none;
  }

  .toast {
    bottom: max(18px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 36px);
    font-size: 13px;
  }

  .modal__panel {
    border-radius: 22px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site {
    padding: 0;
  }

  .invitation {
    width: 100%;
    max-width: none;
  }

  .sheet,
  .cover-card {
    box-shadow: none;
    border-radius: 0;
  }

  .progress-rail,
  .toast,
  .modal,
  .skip-link,
  .cover-footer {
    display: none !important;
  }
}
