/* ==========================================================================
   龙湖·泊萃 工地开放日 · 预约报名 H5
   设计稿：750 × 1467（严格等比缩放，所有元素使用 750 设计稿像素定位）
   ========================================================================== */

:root{
  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", "宋体", serif;
  --ink: #5d3a22;
  --brown: #7d4924;
  --brown-deep: #73411c;
  --brown-light: #8d5427;
  --muted: #9a7752;
  --line: rgba(150, 110, 70, .32);
  --base: #d1ab86;          /* 与设计稿底部底色一致 */
}

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

html, body{
  height: 100%;
  overflow: hidden;
  background: var(--base);
  font-family: var(--serif);
  -webkit-text-size-adjust: 100%;
}

#viewport{
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--base);
}

#stage{
  position: absolute;
  left: 50%;
  top: 0;
  width: 750px;
  height: 1467px;
  margin-left: -375px;
  transform-origin: top center;
  background: var(--base);
  transition: top .18s ease;
}

/* ---------------- 页面 ---------------- */
.page{
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s ease;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 750px 1467px;
}
.page.is-active{ opacity: 1; visibility: visible; }

.page-bg-blank{ background-image: url("/assets/bg-blank.jpg"); }
.page-bg-notice{ background-image: url("/assets/bg-notice.jpg"); }

/* 第 1 页在活动未开始时不可进行任何操作 */
.page-locked{ pointer-events: none; }

/* ---------------- 卡片区域（严格位于白色描边之内：70/518 起，610×896） ---------------- */
.card{
  position: absolute;
  left: 70px;
  top: 518px;
  width: 610px;
  height: 896px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  overflow: hidden;
}

/* ---------------- 第 1 页 / 第 5 页文字 ---------------- */
.p1-block{ text-align: center; padding-bottom: 26px; }

.orn{
  position: relative;
  width: 190px;
  height: 1px;
  margin: 0 auto 46px;
  background: linear-gradient(90deg, rgba(169,123,78,0) 0%, #a97b4e 50%, rgba(169,123,78,0) 100%);
}
.orn::after{
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  background: #a97b4e;
  transform: rotate(45deg);
}

.p1-s{
  font-size: 32px;
  line-height: 1.9;
  letter-spacing: 3px;
  color: #6b4526;
}
.p1-time{
  font-size: 54px;
  line-height: 1.5;
  letter-spacing: 2px;
  color: var(--brown);
  font-weight: 700;
  margin: 6px 0 8px;
}
.end-line{
  font-size: 38px;
  line-height: 2.1;
  letter-spacing: 4px;
  color: #6b4526;
}

.icp{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font-size: 17px;
  line-height: 1;
  letter-spacing: .5px;
  color: #b08a63;
  opacity: .8;
}

/* ---------------- 第 2 页热区（覆盖在“点击预约参观”按钮之上） ---------------- */
.hotspot{
  position: absolute;
  left: 200px;
  top: 1216px;
  width: 350px;
  height: 78px;
  border: 0;
  border-radius: 40px;
  background: transparent;
  cursor: pointer;
}
.hotspot:active{ background: rgba(255, 255, 255, .14); }

/* ---------------- 第 3 页 表单 ---------------- */
.card.form{
  justify-content: flex-start;
  align-items: stretch;
  padding: 0 34px;
}

.form-head{ text-align: center; margin-top: 26px; }
.form-title{
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 5px;
  color: var(--brown);
  font-weight: 700;
}
.form-sub{
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 1px;
  color: #96714b;
}
.divider{
  width: 76px;
  height: 2px;
  margin: 14px auto 0;
  background: #c49a6c;
}

.fields{ margin-top: 16px; }

.row{
  display: flex;
  align-items: center;
  height: 74px;
}
.row > label{
  flex: 0 0 146px;
  width: 146px;
  padding-right: 14px;
  font-size: 24px;
  letter-spacing: 1px;
  color: #6b4a2e;
  white-space: nowrap;
  line-height: 1;
}

.ctrl{
  position: relative;
  flex: 1 1 auto;
  height: 54px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .55);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.ctrl:focus-within{
  border-color: #b8834c;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 3px rgba(184, 131, 76, .12);
}

.ctrl input{
  width: 100%;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: .5px;
  color: #4a3020;
  border-radius: 8px;
}
.ctrl select{
  width: 100%;
  height: 100%;
  padding: 0 42px 0 14px;
  border: 0;
  outline: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: .5px;
  color: #4a3020;
  border-radius: 8px;
}
.ctrl select.is-empty{ color: #a88663; }
.ctrl input::placeholder{ color: #a88663; }

.caret{
  position: absolute;
  right: 17px;
  top: 50%;
  margin-top: -4px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 9px solid #9a7752;
  pointer-events: none;
}

.btn-primary{
  flex: 0 0 auto;
  width: 100%;
  height: 70px;
  margin-top: 22px;
  border: 0;
  border-radius: 35px;
  background: linear-gradient(180deg, #8d5427 0%, #73411c 100%);
  color: #fdf3e4;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 8px;
  text-indent: 8px;
  box-shadow: 0 8px 18px rgba(115, 65, 28, .26);
  cursor: pointer;
}
.btn-primary:active{ transform: translateY(1px); opacity: .92; }
.btn-primary[disabled]{ opacity: .6; }

.form-note{
  flex: 0 0 auto;
  margin-top: 12px;
  text-align: center;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 1px;
  color: #a88663;
}

/* ---------------- 第 4 页 成功 ---------------- */
.ok-badge{
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #b98a58;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
  margin-bottom: 34px;
}
.ok-title{
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: 8px;
  text-indent: 8px;
  color: var(--brown);
  font-weight: 700;
}
.ok-sub{
  margin-top: 16px;
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: 1px;
  color: #8a6440;
  text-align: center;
  padding: 0 20px;
}
.echo{
  width: 470px;
  margin-top: 34px;
  padding: 6px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .42);
}
.echo-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  font-size: 24px;
  letter-spacing: 1px;
  border-bottom: 1px dashed rgba(150, 110, 70, .26);
}
.echo-row:last-child{ border-bottom: 0; }
.echo-row span{ color: #8a6440; }
.echo-row b{
  max-width: 300px;
  font-size: 25px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ok-tip{
  margin-top: 38px;
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: 2px;
  color: #6b4526;
}

/* ---------------- 弹窗 ---------------- */
.modal{
  position: absolute;
  inset: 0;
  z-index: 60;
  display: none;
}
.modal.is-open{ display: block; }
.modal-mask{
  position: absolute;
  inset: 0;
  background: rgba(46, 27, 14, .42);
  animation: fadeIn .18s ease;
}
.modal-panel{
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 520px;
  padding: 46px 40px 30px;
  border: 1px solid rgba(150, 110, 70, .35);
  border-radius: 18px;
  background: #fdf5e9;
  box-shadow: 0 18px 44px rgba(60, 35, 15, .26);
  text-align: center;
  animation: popIn .2s ease;
}
.modal-text{
  font-size: 27px;
  line-height: 1.7;
  letter-spacing: 1px;
  color: var(--ink);
}
.modal-sub{
  margin-top: 10px;
  font-size: 21px;
  line-height: 1.6;
  letter-spacing: .5px;
  color: #96714b;
}
.modal-sub:empty{ display: none; }

.modal-btn{
  width: 100%;
  height: 64px;
  margin-top: 26px;
  border: 0;
  border-radius: 32px;
  background: linear-gradient(180deg, #8d5427 0%, #73411c 100%);
  color: #fdf3e4;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 4px;
  text-indent: 4px;
  cursor: pointer;
}

@keyframes fadeIn{ from{ opacity: 0 } to{ opacity: 1 } }
@keyframes popIn{
  from{ opacity: 0; transform: translate(-50%, -50%) scale(.94) }
  to{ opacity: 1; transform: translate(-50%, -50%) scale(1) }
}

/* ---------------- 测试模式浮条 ---------------- */
.testbar{
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(28, 17, 8, .8);
  color: #fff;
  font: 12px/1 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
.testbar em{
  font-style: normal;
  opacity: .7;
  padding: 0 6px;
  white-space: nowrap;
}
.testbar .idx{
  min-width: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  opacity: .92;
}
.testbar button{
  height: 26px;
  min-width: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font: 12px/1 inherit;
  white-space: nowrap;
  cursor: pointer;
}
.testbar button.on{ background: #c98a4b; color: #fff; }
