/* ═══════════════════════════════════════════
   2026年山东省财金企业联盟年会 H5
   设计稿整图背景（无活字）+ 等比缩放舞台 + 透明交互层
   ═══════════════════════════════════════════ */

/* 设计稿基准宽度：所有叠加控件坐标均以此为参照 */
:root {
  --design-w: 1080;
  --scale: .36;            /* 由 JS 按容器宽度实时计算 */
  --page-bg: #060d38;
  --input-bg: #ffffff;          /* 设计稿白框为纯白 */
  --input-ink: #1a2233;
  --input-ph: #9aa5b1;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* html, body { background: var(--page-bg); } */

body {
  position: relative;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(to bottom, #030a59 0%,#020747 100%)
}

/* ─────────── 容器 ─────────── */
#main {
  max-width: 540px;
  margin: 0 auto;
}

.page { display: block; }
.page[hidden] { display: none; }

/* 外层：宽度=容器宽，高度按设计稿比例自适应 */
.page-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / var(--ph);
  overflow: hidden;
}

/* 舞台：固定 1080 宽的设计坐标系，整体等比缩放 */
.stage {
  position: absolute;
  top: 0; left: 0;
  width: 1080px;
  height: calc(var(--ph) * 1px);
  transform: scale(var(--scale));
  transform-origin: 0 0;
}

.stage-bg {
  display: block;
  width: 1080px;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* ─────────── 透明热区（地图 / 导航按钮） ─────────── */
.hotspot {
  position: absolute;
  display: block;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 2;
}
/* 触摸反馈：轻微压暗，不改设计稿观感 */
.hotspot:active { background: rgba(255, 255, 255, .12); }
.hotspot--btn:active { background: rgba(0, 0, 0, .12); }

/* ─────────── 报名表单（叠加在设计稿白框上） ─────────── */
#rsvpForm { position: absolute; inset: 0; }

.ctrl {
  position: absolute;
  z-index: 2;
}

.ctrl > input,
.ctrl > select {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;          /* 设计稿白框为锐利直角 */
  background: var(--input-bg);
  color: var(--input-ink);
  /* 字号按设计稿坐标系设定，随舞台等比缩放；
     计算值 >16px 可避免 iOS 聚焦自动放大 */
  font-size: 34px;
  font-weight: 600;
  font-family: inherit;
  padding: 0 24px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.ctrl > input::placeholder { color: var(--input-ph); font-weight: 500; }
/* 标签式占位符（姓名/单位/职务/电话）：设计稿为深色粗体，置于框内左侧 */
.ctrl--label > input::placeholder { color: var(--input-ink); font-weight: 700; letter-spacing: .04em; }
/* 下拉框未选态文字（请选择/航班车次/住宿日期）：设计稿同为深色粗体 */
.ctrl--select > select { font-weight: 700; }
.ctrl--select > select:invalid,
.ctrl--select > select option[value=""] { color: var(--input-ink); font-weight: 700; }

/* 下拉框：自带箭头（设计稿箭头已被白底覆盖，故自绘保持视觉一致） */
.ctrl--select > select { 
  padding-right: 74px; 
  cursor: pointer; 
}
.ctrl--select::after {
  content: "";
  position: absolute;
  right: 30px; top: 50%;
  width: 0; height: 0;
  transform: translateY(-60%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 15px solid var(--input-ink);
  pointer-events: none;
}

/* 框内右侧灰色"非必填项"提示 */
.ctrl__hint {
  position: absolute;
  right: 26px; top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--input-ph);
  pointer-events: none;
  white-space: nowrap;
}
.ctrl--has-hint > input { padding-right: 200px; }

/* 校验失败态 */
.ctrl.is-error > input,
.ctrl.is-error > select { box-shadow: inset 0 0 0 4px #ff5a4e; }

/* 提交按钮：新版设计稿按钮未烧录进背景，故前端绘制（珊瑚红 #fd5962 + 白字） */
.submit-hot {
  position: absolute;
  left: 183px; top: 3164px;
  width: 712px; height: 133px;
  background: #fd5962;
  border: 0;
  border-radius: 24px;
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .12em;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 12px 30px rgba(253, 89, 98, .38);
}
.submit-hot:active { background: #e8484f; transform: translateY(2px); box-shadow: 0 6px 16px rgba(253, 89, 98, .3); }
.submit-hot:disabled { cursor: default; opacity: .92; }
/* 提交中：半透明遮罩 + 转圈，避免误触与重复提交 */
.submit-hot.is-busy::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border: 5px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 蜜罐：视觉隐藏 */
.hp-field {
  position: absolute;
  left: -9999px; top: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ─────────── 底部浮动导航（设计稿切图 + 透明热区） ─────────── */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(96.3%, 520px);
  z-index: 50;
  filter: drop-shadow(0 10px 26px rgba(2, 8, 50, .6));
}
.tabbar > img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.tabbar .tab {
  position: absolute;
  top: 0; bottom: 0;
  width: 25%;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.tabbar .tab:nth-of-type(1) { left: 0; }
.tabbar .tab:nth-of-type(2) { left: 25%; }
.tabbar .tab:nth-of-type(3) { left: 50%; }
.tabbar .tab:nth-of-type(4) { left: 75%; }
/* 当前页轻微提亮，弥补设计稿导航无高亮态 */
.tabbar .tab.active { background: rgba(255, 255, 255, .13); }
.tabbar .tab:active { background: rgba(255, 255, 255, .2); }

/* ─────────── 报名成功浮层 ─────────── */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 9, 34, .78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 24px;
}
.success-overlay[hidden] { display: none; }
.success-card {
  width: min(420px, 100%);
  background: linear-gradient(165deg, #14256e, #0b1750);
  border: 1px solid rgba(110, 190, 255, .38);
  border-radius: 18px;
  padding: 34px 24px 28px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  animation: pop .32s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes pop { from { transform: scale(.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-card__icon {
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #0d9f6e);
  color: #fff;
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(13, 159, 110, .45);
}
.success-card h3 { font-size: 20px; letter-spacing: .16em; margin-bottom: 12px; }
.success-card p { font-size: 13.5px; line-height: 1.85; color: rgba(255, 255, 255, .78); }
.success-card__btn {
  margin-top: 22px;
  padding: 11px 30px;
  border: 1px solid rgba(110, 220, 255, .6);
  border-radius: 22px;
  background: transparent;
  color: #6edcff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  cursor: pointer;
  font-family: inherit;
}
.success-card__btn:active { background: rgba(110, 220, 255, .14); }

/* ─────────── Toast ─────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(8, 14, 44, .94);
  border: 1px solid rgba(110, 190, 255, .3);
  color: #fff;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 22px;
  max-width: 80vw;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--error { border-color: rgba(255, 90, 78, .55); }

.page-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(assets/bg_bottom.png) center bottom no-repeat;
  background-size: 100% auto;
}