.page3.container-scroll {
  margin: 0 auto;
  width: 720px;
  height: 1290px;
  top: 400px;
  /* background: url(../image/section3/bg.png) no-repeat;
  background-size: 100%; */
  position: relative;
}

.page3.fadeInUpPlus3 {
  animation: fadeInUpPlus3 1s ease-in-out;
}
@keyframes fadeInUpPlus3 {
  from {
    opacity: 0;
    transform: translateY(10%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page3 .title-page {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 70px;
  width: 365px;
  height: 69px;
  background: url(../image/section3/title-page3.png) no-repeat;
  background-size: 100%;
}

.page3 .text-page {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100px;
  width: 154px;
  height: 47px;
  background: url(../image/section3/text.png) no-repeat;
  background-size: 100%;
  cursor: pointer;
  z-index: 1;
}

.page3 .reward {
  position: absolute;
  left: 50%;
  top: 60px;
  transform: translateX(-50%);
  width: 720px;
  height: 1084px;
  background: url(../image/section3/reward.png) no-repeat;
  background-size: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page3 .Test-button {
    position: absolute;
  left: 50%;
    top: 1010px;
  transform: translateX(-50%);
    width: 342px;
  height: 106px;
  background: url(../image/section3/Test-button.png) no-repeat;
  background-size: 100%;
  cursor: pointer;
  z-index: 2;
}

.page3 .Test-button.end {
  background: url(../image/section3/Test-button-end.png) no-repeat;
  background-size: 100%;
}

/* 选择互动弹窗遮罩 */
.ghost-activity-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.ghost-activity-modal.hide {
  display: none;
}

.ghost-activity-close {
  position: absolute;
  top: 20px;
  right: 10px;
  width: 40px;
  height: 39px;
  background: url(../image/section3/text-page-close.png) no-repeat;
  background-size: 100%;
  cursor: pointer;
  z-index: 4
;
}

/* 新结构：列表 + 按钮 + 弹窗 */
.ghost-activity {
  position: relative;
  width: 631px;
  height: 706px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background: url(../image/section3/Select-Test.png) no-repeat;
  background-size: 100%;
}

.page3 .ghost-list {
  position: relative;
  top: 190px;
  left: 25px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0 auto;
}

.page3 .ghost-list li {
  list-style: none;
  width: 586px;
height: 53px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  background-repeat: no-repeat;
  background-size: 100%;
}

.page3 .ghost-list li[data-id="1"] {
  background: url(../image/section3/Select-Test-role1.png) no-repeat;
  background-size: 100%;
}
.page3 .ghost-list li[data-id="2"] {
  background: url(../image/section3/Select-Test-role2.png) no-repeat;
  background-size: 100%;
}
.page3 .ghost-list li[data-id="3"] {
   background: url(../image/section3/Select-Test-role3.png) no-repeat;
  background-size: 100%;
}
.page3 .ghost-list li[data-id="4"] {
  background: url(../image/section3/Select-Test-role4.png) no-repeat;
  background-size: 100%;
}
.page3 .ghost-list li[data-id="5"] {
  background: url(../image/section3/Select-Test-role5.png) no-repeat;
  background-size: 100%;
}
.page3 .ghost-list li[data-id="6"] {
  background: url(../image/section3/Select-Test-role6.png) no-repeat;
  background-size: 100%;
}

/* 每个角色选中后的背景图片 */
.page3 .ghost-list li[data-id="1"].active {
  background-image: url(../image/section3/Select-Test-active-role1.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-list li[data-id="2"].active {
  background-image: url(../image/section3/Select-Test-active-role2.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-list li[data-id="3"].active {
  background-image: url(../image/section3/Select-Test-active-role3.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-list li[data-id="4"].active {
  background-image: url(../image/section3/Select-Test-active-role4.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-list li[data-id="5"].active {
  background-image: url(../image/section3/Select-Test-active-role5.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-list li[data-id="6"].active {
  background-image: url(../image/section3/Select-Test-active-role6.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.page3 .ghost-list li.ghost-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page3 .ghost-action {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: center;
  bottom: 12px;
}

.page3 .ghost-submit-btn {
  width: 242px;
  height: 81px;
  background: url(../image/section3/ghost-submit-btn.png) no-repeat;
  background-size: 100%;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 4;
}

.page3 .ghost-submit-btn:disabled,
.page3 .ghost-submit-btn.ghost-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.page3 .ghost-submit-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.25);
}

.ghost-modal-new {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.ghost-modal-new.hide {
  display: none;
}

.ghost-dialog-new {
    position: relative;
  width: 631px;
  height: 416px;
  background: url(../image/section3/ghost-dialog-new.png) no-repeat;
  background-size: 100%;
}

.ghost-modal-text {
  color: #f5efe3;
  font-size: 16px;
  margin-bottom: 18px;
}

.ghost-modal-actions {
  position: absolute;
  bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-left: 66px;
}

.ghost-dialog-new-close {
  position: absolute;
  top: 20px;
  right: 10px;
  width: 40px;
  height: 39px;
  background: url(../image/section3/text-page-close.png) no-repeat;
  background-size: 100%;
  cursor: pointer;
  z-index: 4;
}
.ghost-confirm-btn {
   width: 242px;
  height: 81px;
  background: url(../image/section3/ghost-dialog-new-confirm.png) no-repeat;
  background-size: 100%;
}

.ghost-cancel-btn {
   width: 242px;
  height: 81px;
  background: url(../image/section3/ghost-dialog-new-cancel.png) no-repeat;
  background-size: 100%;
}



/* 社群弹窗样式 */
.ghost-community-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.ghost-community-modal.hide {
  display: none;
}

.ghost-community-dialog {
  position: relative;
  width: 631px;
  height: 786px;
  background-repeat: no-repeat;
  background-size: 100%;
}

.ghost-community-dialog[data-selected="1"] {
  background-image: url(../image/section3/ghost-community-1.png);
}
.ghost-community-dialog[data-selected="2"] {
  background-image: url(../image/section3/ghost-community-2.png);
}
.ghost-community-dialog[data-selected="3"] {
  background-image: url(../image/section3/ghost-community-3.png);
}
.ghost-community-dialog[data-selected="4"] {
  background-image: url(../image/section3/ghost-community-4.png);
}
.ghost-community-dialog[data-selected="5"] {
  background-image: url(../image/section3/ghost-community-5.png);
}
.ghost-community-dialog[data-selected="6"] {
  background-image: url(../image/section3/ghost-community-6.png);
}

.ghost-community-btn {
  position: absolute;
  bottom: -8px;
  left: 30%;
  transform: translateX(-50%);
  width: 242px;
  height: 81px;
    background: url(../image/section3/ghost-community-btn.png) no-repeat;
  background-size: 100%;
  cursor: pointer;
}

.ghost-community-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 39px;
  background: url(../image/section3/text-page-close.png) no-repeat;
  background-size: 100%;
  cursor: pointer;
}

/* 文本弹窗样式 */
.ghost-text-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.ghost-text-modal.hide {
  display: none;
}

.ghost-text-modal .ghost-dialog {
  background: transparent;
  border-radius: 0;
  padding: 0;
  position: relative;
  width: 640px;
  height: 504px;
}

.ghost-text-modal .ghost-text-page-content {
  width: 641px;
  height: 548px;
  background: url(../image/section3/text-page-content.png) no-repeat;
  background-size: 100%;
  position: absolute;
}

.ghost-text-modal .ghost-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 40px;
  height: 39px;
  background: url(../image/section3/text-page-close.png) no-repeat;
  background-size: 100%;
  cursor: pointer;
  z-index: 10;
}

.ghost-text-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  width: 242px;
  height: 81px;
  background: url(../image/section3/ghost-text-btn.png) no-repeat;
  background-size: 100%;
}

.ghost-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.ghost-success-modal.hide {
  display: none;
}

.ghost-dialog-success {
  position: relative;
  width: 641px;
  height: 548px;
  background: url(../image/section3/ghost-dialog-success.png) no-repeat;
  background-size: 100%;
}

.ghost-dialog-success .ghost-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 39px;
  background: url(../image/section3/text-page-close.png) no-repeat;
  background-size: 100%;
  cursor: pointer;
}

.ghost-gift-code-interaction {
  position: absolute;
  top: 125px;
  left: 62%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.gift-code-item {
  display: flex;
  align-items: center;
  gap: 25px;
}

.gift-code-text {
  width: 95px;
  color: #ffffff;
  font-size: 18px;
  /* font-weight: 700; */
  overflow: hidden;
    text-overflow: ellipsis;
  text-align: center;
}

.ghost-gift-code-interaction .copy {
  width: 34px;
  height: 19px;
  cursor: pointer;
  background-image: url(../image/section3/copy-btn.png);
  background-repeat: no-repeat;
  background-size: 100%;
}

.ghost-success-btn {
  position: absolute;
  left: 200px;
  bottom: 38px;
   width: 267px;
  height: 85px;
  cursor: pointer;
  background-image: url(../image/section3/ghost-success-btn.png);
  background-repeat: no-repeat;
  background-size: 100%;
}
.Test-Complete-button-1 {
  position: absolute;
  left: 50%;
    transform: translateX(-50%);
  bottom: 188px;
   width: 415px;
  height: 89px;
  cursor: pointer;
  background: url(../image/section3/Test-Complete-button-1.png) no-repeat;
  background-size: 100%;
}

/* ========== PK游戏样式 ========== */

/* PK游戏弹窗 */
.ghost-pk-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 120;
}

.ghost-pk-dialog {
  width: 641px;
  height: 630px;
  position: relative;
  background: url(../image/section3/pkbg.png);
  left: 50%;
  top:50%;
  transform: translateX(-50%) translateY(-50%);
}

/* 冠军弹窗 */
.ghost-pk-dialog.ghost-pk-champion {
  width: 641px;
  height: 719px;
  position: relative;
  background: url(../image/section3/pkgj.png);
  left: 50%;
  top:50%;
  transform: translateX(-50%) translateY(-50%);
}

.pk-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pk-close-btn:before {
  content: '×';
  color: white;
  font-size: 20px;
  font-weight: bold;
}

.pk-title {
  color: white;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.pk-round-info {
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 10px;
}

.pk-remaining-info {
  margin-left: 15px;
}

.pk-arena {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  gap: 0px;
  /* padding: 20px; */
}

.pk-arena::after {
  content: '';
  width: 95px;
  height: 93px;
  background: url(../image/section3/pkvs.png);
  background-size: 100%;
  position: absolute;
  left: 50%;
  top: 280px;
  transform: translate(-50%, 0);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

/* VS图标淡出 */
.pk-arena.pk-fade-out::after {
  opacity: 0;
}

/* VS图标淡入 */
.pk-arena.pk-fade-in::after {
  opacity: 1;
  transition: opacity 0.4s ease-in;
}

/* 当有获胜者时隐藏VS图标 - 直接display:none */
.pk-arena:has(.pk-winner)::after {
  display: none;
}

/* 普通finished状态使用opacity淡出 */
.pk-arena.pk-finished::after {
  opacity: 0;
  pointer-events: none;
}

/* 冠军状态 - 直接隐藏VS */
.pk-arena.pk-champion::after {
  display: none;
}

.pk-contestant {
  width: 291px;
  height: 383px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 5px;
  margin-top: 190px;
}

.pk-contestant-left {
  background-image: url(../image/section3/opop1.png);
}

.pk-contestant-right {
  background-image: url(../image/section3/opop2.png);
}

/* .pk-contestant:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
} */

.pk-contestant.pk-selected {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 3px solid #ffd700;
}

.pk-contestant-image {
  width: 120px;
  height: 160px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: 10px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.pk-contestant-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.pk-contestant-id {
  font-size: 12px;
  color: #666;
}

.pk-vs-text {
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: pkPulse 2s infinite;
}

@keyframes pkPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.pk-eliminated-list {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 15px;
}

.pk-eliminated-title {
  color: white;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

.pk-eliminated-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pk-eliminated-item {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
}

/* PK冠军弹窗 */
.ghost-pk-champion-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ghost-pk-champion-dialog {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: pkChampionBounce 0.6s ease;
}

@keyframes pkChampionBounce {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.pk-champion-image {
  width: 180px;
  height: 220px;
  border-radius: 15px;
  margin: 0 auto 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 4px solid #ffd700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pk-champion-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
  font-weight: bold;
}

.pk-champion-name {
  font-size: 20px;
  color: #666;
  margin-bottom: 15px;
}

.pk-champion-desc {
  font-size: 14px;
  color: #999;
  font-style: italic;
}
/* PK获胜者样式 */
.pk-contestant.pk-winner {
  position: relative;
  width: 308px;
  height: 419px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.pk-contestant.pk-winner::after {
  content: '';
  position: absolute;
  top: -25px;
  right: -15px;
  background: url(../image/section3/pkwin.png);
  background-size: 100%;
  width: 89px;
  height: 91px;
}

.pk-arena .pk-contestant.pk-winner {
  flex: none;
}

/* 确保新图片覆盖旧图片 */
.pk-contestant-left:not(.pk-winner),
.pk-contestant-right:not(.pk-winner) {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* 确认按钮样式 */
.pk-confirm-btn {
  position: absolute;
  width: 267px;
  height: 85px;
  top: 627px;
  left: 50%;
  transform: translateX(-50%);
  background: url(../image/section3/pkbt.png);
  background-size: 100%;
  cursor: pointer;
}

/* 获胜者移动到中间的动画 */
@keyframes pkWinnerMove {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(0) scale(0.8);
    opacity: 0;
  }
}

.pk-contestant.pk-winner.pk-animate-out {
  animation: pkWinnerMove 0.8s ease-in-out forwards;
}

/* 当前选手淡出动画 */
@keyframes pkFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.pk-contestant.pk-fade-out {
  animation: pkFadeOut 0.3s ease-out forwards;
}

/* 下一组选手淡入动画 */
@keyframes pkFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.pk-contestant.pk-fade-in {
  animation: pkFadeIn 0.4s ease-in forwards;
}

.reward-bg1 {
  width: 684px;
  height: 616px;
  position: absolute;
  background: url(../image/section3/reward-bg.png);
  background-size: 100%;
  left: 51.2%;
  transform: translateX(-50%);
  top: 371px;
}

.reward-bg1 .reward-win {
  width: 308px;
  height: 392px;
  position: absolute;
  left: 50%;
  top: 190px;
  transform: translateX(-50%);
}
/* PK冠军奖励显示样式 */
.reward-win {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 15px;
  position: relative;
}

.reward-win::after {
   content: '';
  position: absolute;
  top: -25px;
  right: -15px;
  background: url(../image/section3/pkwin.png);
  background-size: 100%;
  width: 89px;
  height: 91px;
}

.reward-win::before {
   content: '';
  position: absolute;
  top: -130px;
  right: -68px; 
  background: url(../image/section3/reward-b.png);
  background-size: 100%;
  width: 459px;
  height: 89px;
}

.reward-bg1 {
  width: 684px;
  height: 616px;
  position: absolute;
  left: 51.2%;
  transform: translateX(-50%);
  top: 469px;
  z-index: 10;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}