.page3.container-scroll {
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start !important;
  width: 720px;
  height: 1290px;
  background: url(../image/section3/bg.jpg) no-repeat;
  background-size: 100%;
  position: relative;
}

.page3 .title-page {
  margin-top: 70px;
  width: 720px;
  height: 171px;
  background: url(../image/section3/title-page3.png) no-repeat;
  background-size: 100%;
}

.page3 .text-page {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 260px;
  width: 176px;
  height: 37px;
  background: url(../image/section3/text.png) no-repeat;
  background-size: 100%;
}

/* 怪谈三级弹窗：基础样式 */
.page3 .ghost-activity {
  width: 720px;
  position: relative;
  top: 150px;
  z-index: 1;
}

.page3 .ghost-cards {
  list-style: none;
  padding: 0;
  width: 720px;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 2;
}

.page3 .ghost-card {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.page3 .ghost-card.selected {

}

.page3 .ghost-card.disabled {
  opacity: .4;
  pointer-events: none;
  cursor: default;
}

/* 最终成功状态 - 通过JS直接设置背景图 */
.page3 .ghost-card.ghost-success-final {
  opacity: 1 !important;
  pointer-events: none !important;
  cursor: default !important;
}

/* 备用CSS样式（如果需要的话） */
.page3 .ghost-card-script1.ghost-success-final {
  background-image: url(../image/section3/Script-over1.png) !important;
  background-size: 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.page3 .ghost-card-script2.ghost-success-final {
  background-image: url(../image/section3/Script-over2.png) !important;
  background-size: 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.page3 .ghost-card-script3.ghost-success-final {
  background-image: url(../image/section3/Script-over3.png) !important;
  background-size: 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.page3 .ghost-participant {
  width: 538px;
  height: 37px;
  background-image: url(../image/section3/Script-num.png);
  background-size: 100%;
  background-repeat: no-repeat;
  position: absolute;
  top: 500px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.page3 .ghost-participant-title {
  position: absolute;
  left: 35%;
  transform: translateX(-50%);
  width: 100%;
  font-size: 38px;
  text-align: center;
  line-height: 37px;
  color: #ce0304;
  font-family: 'Cinzel', serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 三个剧本：卡片背景占位（请替换为各自图片路径） */
.page3 .ghost-card[data-script="1"] {
    width: 215px;
    height: 416px;
  background-image: url(../image/section3/Script1.png);
  background-size: 100%;
  background-repeat: no-repeat;
}
.page3 .ghost-card[data-script="2"] {
  width: 215px;
  height: 416px;
  background-image: url(../image/section3/Script2.png);
  background-size: 100%;
  background-repeat: no-repeat;
}
.page3 .ghost-card[data-script="3"] {
  width: 215px;
  height: 416px;
  background-image: url(../image/section3/Script3.png);
  background-size: 100%;
  background-repeat: no-repeat;
}

/* 选中剧本 → 更换对应卡片背景图 */
.page3 .ghost-card.selected[data-script="1"] { 
  background-image: url(../image/section3/Script-active1.png); 
  background-size: 235px 438px;
  background-position: center;
  background-repeat: no-repeat;
}

.page3 .ghost-card.selected[data-script="2"] { 
  background-image: url(../image/section3/Script-active2.png);  
  background-size: 235px 438px;
  background-position: center;
  background-repeat: no-repeat;
}

.page3 .ghost-card.selected[data-script="3"] { 
  background-image: url(../image/section3/Script-active3.png); 
  background-size: 235px 438px;
  background-position: center;
  background-repeat: no-repeat;
}

.page3 .ghost-start-wrap {
  width: 720px;
  position: absolute;
  top: 615px;
  display: flex;
  justify-content: center;
  margin: 0 auto 0;
  z-index: 3;
}

.page3 .ghost-start-btn {
  width: 472px;
  height: 92px;
  background-image: url(../image/section3/GoScript.png);
  background-size: 100%;
  background-repeat: no-repeat;
}

.page3 .ghost-start-btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
}


/* 三个剧本：步骤一弹窗内容背景占位 */
.page3 .ghost-step1 .ghost-step1-content[data-script="1"] {
    width: 557px;
    height: 784px;
  background-image: url(../image/section3/Script1-1.png);
  background-size: 100%;
  background-repeat: no-repeat;
}
.page3 .ghost-step1 .ghost-step1-content[data-script="2"] {
  width: 557px;
  height: 784px;
  background-image: url(../image/section3/Script2-1.png);
  background-size: 100%;
  background-repeat: no-repeat;
}
.page3 .ghost-step1 .ghost-step1-content[data-script="3"] {
  width: 557px;
  height: 784px;
  background-image: url(../image/section3/Script3-1.png);
  background-size: 100%;
  background-repeat: no-repeat;
}

/* 三个剧本：步骤二弹窗内容背景占位 */
.page3 .ghost-step2 .ghost-step2-content[data-script="1"] {
    width: 557px;
    height: 784px;
  background-image: url(../image/section3/Script1-2.png);
  background-size: 100%;
  background-repeat: no-repeat;
}
.page3 .ghost-step2 .ghost-step2-content[data-script="2"] {
  width: 557px;
  height: 784px;
  background-image: url(../image/section3/Script2-2.png);
  background-size: 100%;
  background-repeat: no-repeat;
}
.page3 .ghost-step2 .ghost-step2-content[data-script="3"] {
  width: 557px;
  height: 784px;
  background-image: url(../image/section3/Script3-2.png);
  background-size: 100%;
  background-repeat: no-repeat;
}

/* 三个剧本：步骤三弹窗内容背景占位 */
.page3 .ghost-step3 .ghost-step3-content[data-script="1"] {
  width: 557px;
  height: 784px;
  background-image: url(../image/section3/Script1-3.png);
  background-size: 100%;
  background-repeat: no-repeat;
}
.page3 .ghost-step3 .ghost-step3-content[data-script="2"] {
  width: 557px;
  height: 784px;
  background-image: url(../image/section3/Script2-3.png);
  background-size: 100%;
  background-repeat: no-repeat;
}
.page3 .ghost-step3 .ghost-step3-content[data-script="3"] {
  width: 557px;
  height: 784px;
  background-image: url(../image/section3/Script3-3.png);
  background-size: 100%;
  background-repeat: no-repeat;
}
/* ================================== */
/* 成功弹窗背景图 */
/* ================================== */
.page3 .ghost-success .ghost-dialog {
    width: 640px;
    height: 393px;
    background-image: url(../image/section3/Script-success.png);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
  }

.page3 .ghost-modal,
.page3 .ghost-success,
.page3 .ghost-fail {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.page3 .ghost-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



.page3 .ghost-success-title,
.page3 .ghost-fail-title {
  font-size: 24px;
  margin: 6px 0 10px;
}

.page3 .ghost-success-desc,
.page3 .ghost-fail-desc {
  font-size: 18px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page3 .ghost-actions {
    position: absolute;
    top: 530px;
    left: 50%;
    transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page3 .ghost-btn {
  cursor: pointer;
  border: none;
  background: none;
}

/* ================================== */
/* 剧本1 - 红口罩 按钮背景图 */
/* ================================== */

/* 剧本1 步骤一按钮 */
.page3 .ghost-step1-content[data-script="1"] .ghost-step1-btn[data-choice="1"] {
  width: 286px;
  height: 55px;
  background-image: url(../image/section3/Scriptbtn1-1-1.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-step1-content[data-script="1"] .ghost-step1-btn[data-choice="2"] {
  width: 286px;
  height: 55px;
  background-image: url(../image/section3/Scriptbtn1-1-2.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* 剧本1 步骤二按钮 */
.page3 .ghost-step2-content[data-script="1"] .ghost-step2-btn[data-choice="1"] {
  width: 286px;
  height: 55px;
  background-image: url(../image/section3/Scriptbtn1-2-1.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-step2-content[data-script="1"] .ghost-step2-btn[data-choice="2"] {
  width: 286px;
  height: 55px;
  background-image: url(../image/section3/Scriptbtn1-2-2.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-step2-content[data-script="1"] .ghost-step2-btn[data-choice="3"] {
  width: 286px;
  height: 55px;
  background-image: url(../image/section3/Scriptbtn1-2-3.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* ================================== */
/* 剧本2 - 双面脸 按钮背景图 */
/* ================================== */

/* 剧本2 步骤一按钮 */
.page3 .ghost-step1-content[data-script="2"] .ghost-step1-btn[data-choice="1"] {
  width: 286px;
  height: 55px;
  background-image: url(../image/section3/Scriptbtn2-1.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-step1-content[data-script="2"] .ghost-step1-btn[data-choice="2"] {
  width: 286px;
  height: 55px;
  background-image: url(../image/section3/Scriptbtn2-1-1.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* 剧本2 步骤二按钮 */
.page3 .ghost-step2-content[data-script="2"] .ghost-step2-btn[data-choice="1"] {
    width: 286px;
    height: 55px;
  background-image: url(../image/section3/Scriptbtn2-2-1.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-step2-content[data-script="2"] .ghost-step2-btn[data-choice="2"] {
    width: 286px;
    height: 55px;
  background-image: url(../image/section3/Scriptbtn2-2-2.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-step2-content[data-script="2"] .ghost-step2-btn[data-choice="3"] {
    width: 286px;
    height: 55px;
  background-image: url(../image/section3/Scriptbtn2-2-3.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* ================================== */
/* 剧本3 - 猫脸老太 按钮背景图 */
/* ================================== */

/* 剧本3 步骤一按钮 */
.page3 .ghost-step1-content[data-script="3"] .ghost-step1-btn[data-choice="1"] {
  width: 286px;
  height: 55px;
  background-image: url(../image/section3/Scriptbtn3-1.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-step1-content[data-script="3"] .ghost-step1-btn[data-choice="2"] {
  width: 286px;     
  height: 55px;
  background-image: url(../image/section3/Scriptbtn3-1-1.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* 剧本3 步骤二按钮 */
.page3 .ghost-step2-content[data-script="3"] .ghost-step2-btn[data-choice="1"] {
  width: 286px;
  height: 55px;
  background-image: url(../image/section3/Scriptbtn3-2.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-step2-content[data-script="3"] .ghost-step2-btn[data-choice="2"] {
  width: 286px;
  height: 55px;
  background-image: url(../image/section3/Scriptbtn3-2-1.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-step2-content[data-script="3"] .ghost-step2-btn[data-choice="3"] {
  width: 286px;
  height: 55px;
  background-image: url(../image/section3/Scriptbtn3-2-2.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* ================================== */
/* 各剧本失败弹窗背景图 */
/* ================================== */

/* 剧本1失败弹窗 */
.page3 .ghost-fail-script1-choice1 .ghost-dialog {
    width: 557px;
    height: 694px;
  background-image: url(../image/section3/Script1-3.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-fail-script1-choice2 .ghost-dialog {
  width: 557px;
  height: 694px;
  background-image: url(../image/section3/Script1-3-1.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* 剧本2失败弹窗 */
.page3 .ghost-fail-script2-choice1 .ghost-dialog {
    width: 557px;
    height: 694px;
  background-image: url(../image/section3/Script2-3-1.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-fail-script2-choice3 .ghost-dialog {
  width: 557px;
  height: 694px;
  background-image: url(../image/section3/Script2-3-2.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* 剧本3失败弹窗 */
.page3 .ghost-fail-script3-choice2 .ghost-dialog {
  width: 557px;
  height: 694px;
  background-image: url(../image/section3/Script3-3-1.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-fail-script3-choice1 .ghost-dialog {
  width: 557px;
  height: 694px;
  background-image: url(../image/section3/Script3-3-2.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* 失败弹窗按钮 - 再次挑战 */
.page3 .ghost-fail-retry {
    position: relative;
    top: 250px;
  width: 286px;
  height: 55px;
  background-image: url(../image/section3/Scriptbtn-Again.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-close {
  position: absolute;
  background-image: url(../image/section3/Script-close.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  right: 30px;
  top: 30px;
  width: 25px;
  height: 23px;
  cursor: pointer;
}

.page3 .gift-code-text {
  font-size: 24px;
  color: #acd3f0;
}

.page3 .copy {
  width: 49px;
  height: 28px;
  background: url(../image/pop/reward/btn-copy.png) no-repeat;
  background-size: 100%;
  cursor: pointer;
  flex-shrink: 0;
}

.page3 .ghost-gift-code-display {
    position: absolute;
    top: 270px;
    left: 346px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.page3 .ghost-text-page-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 504px;
  background: url(../image/section3/text-page-content.png) no-repeat;
  background-size: 100%;
  z-index: 20;
}

.page3 .ghost-text-page-close { 
  position: absolute;
  right: 30px;
  top: 20px;
  width: 25px;
  height: 23px;
  background: url(../image/section3/text-page-close.png) no-repeat;
  background-size: 100%;
  z-index: 20;
}

/* 已完成体验的按钮样式 */
.ghost-start-btn.completed {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(50%);
  pointer-events: none;
}

.ghost-start-btn.completed:hover {
  transform: none;
  opacity: 0.6;
}

/* 文本弹窗样式 */
.page3 .ghost-text-modal {
  z-index: 9999; /* 确保在最上层 */
}

.page3 .ghost-text-modal .ghost-dialog {
  /* 移除默认的白色背景和边框，让背景图片显示 */
  background: transparent;
  border-radius: 0;
  padding: 0;
  position: relative;
  width: 640px;
  height: 504px;
}

.page3 .ghost-text-modal .ghost-text-page-content {
  /* 恢复原有的背景图片样式 */
  width: 640px;
  height: 504px;
  background: url(../image/section3/text-page-content.png) no-repeat;
  background-size: 100%;
  position: relative;
}

.page3 .ghost-text-modal .ghost-close {
  /* 关闭按钮位置调整，匹配背景图片 */
  position: absolute;
  right: 30px;
  top: 20px;
  width: 25px;
  height: 23px;
  background: url(../image/section3/text-page-close.png) no-repeat;
  background-size: 100%;
  cursor: pointer;
}

.page3 .ioscode {
  width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -o-text-overflow: ellipsis;
  font-size: 24px;
}