/* ===== 重置样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
}
.logo {
  width: 247px;
  height: 126px;
  position: absolute;
  top: 78px;
  right: 200px;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  overflow-x: hidden;
  color: #333;
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/bg.jpg")
    center top no-repeat;
  position: relative;
  background-size: 100%;
  background-position-y:58px ;

}

/* 左下角背景装饰 */
body::before {
  content: "";
  display: none;
}

/* ===== 主容器 ===== */
.wrap {
  width: 1200px;
  height: 5657px;
  margin: 0 auto;
  position: relative;
}

/* ===== 模块通用样式 ===== */
.module {
  max-width: 1200px;
  margin: 40px auto;
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.module-title {
  font-size: 32px;
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  font-weight: bold;
}

/* ===== 模块1：邀请函 ===== */
.module-invite {
  top: 1485px;
  position: absolute;
  height: 180px;
  width: 180px;
  left: 134px;
  cursor: pointer;
}

.invite-hover-popup {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 961px;
  height: 441px;
  display: none;
  z-index: 9998;
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/hover.png")
    no-repeat center;
  background-size: 961px 441px;
  animation: popupIn 0.3s ease-out;
}

/* ===== 模块2：入场方式 ===== */
.module-entrance {
  position: absolute;
  border-radius: 20px;
  height: 1030px;
  top: 2000px;
  width: 100%;
}

/* ===== 模块3：任务与奖励 ===== */
.module-tasks {
  border-radius: 20px;
  position: absolute;
  width: 100%;
  height: 980px;
  top: 3300px;
}

/* 八天按钮组 - 用背景图实现 */
.days-buttons {
  position: relative;
  width: 1200px;
  height: 72px;
  margin: 0 auto 30px;
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/buttons.png")
    no-repeat center;
  background-size: 1200px 72px;
  display: flex;
  align-items: center;
}

.day-btn {
  position: absolute;
  top: 0;
  width: calc(1200px / 8);
  height: 72px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0;
}

/* 每个按钮的位置 */
.day-btn:nth-child(1) {
  left: calc(0 * 150px);
}
.day-btn:nth-child(2) {
  left: calc(1 * 150px);
}
.day-btn:nth-child(3) {
  left: calc(2 * 150px);
}
.day-btn:nth-child(4) {
  left: calc(3 * 150px);
}
.day-btn:nth-child(5) {
  left: calc(4 * 150px);
}
.day-btn:nth-child(6) {
  left: calc(5 * 150px);
}
.day-btn:nth-child(7) {
  left: calc(6 * 150px);
}
.day-btn:nth-child(8) {
  left: calc(7 * 150px);
}

/* 按钮选中时切换到selected状态 */
.day-btn.active:nth-child(1) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/buttons-selected.png")
    0 0 no-repeat;
  background-size: 1200px 72px;
}
.day-btn.active:nth-child(2) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/buttons-selected.png") -150px
    0 no-repeat;
  background-size: 1200px 72px;
}
.day-btn.active:nth-child(3) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/buttons-selected.png") -300px
    0 no-repeat;
  background-size: 1200px 72px;
}
.day-btn.active:nth-child(4) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/buttons-selected.png") -450px
    0 no-repeat;
  background-size: 1200px 72px;
}
.day-btn.active:nth-child(5) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/buttons-selected.png") -600px
    0 no-repeat;
  background-size: 1200px 72px;
}
.day-btn.active:nth-child(6) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/buttons-selected.png") -750px
    0 no-repeat;
  background-size: 1200px 72px;
}
.day-btn.active:nth-child(7) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/buttons-selected.png") -900px
    0 no-repeat;
  background-size: 1200px 72px;
}
.day-btn.active:nth-child(8) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/buttons-selected.png") -1050px
    0 no-repeat;
  background-size: 1200px 72px;
}

/* 任务内容容器 */
.tasks-content {
  position: relative;
}

.task-pane {
  display: none;
}

.task-pane.active {
  display: block;
}

/* 任务表格背景 */
.tasks-table-wrapper {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/table-bg.png")
    no-repeat center top;
  background-size: contain;
  padding-top: 70px;
  border-radius: 10px;
  height: 884px;
}

/* ===== 模块4：积分奖励 ===== */

.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  padding: 10px 25px;
  background: rgba(102, 126, 234, 0.2);
  border: 2px solid rgba(102, 126, 234, 0.5);
  border-radius: 25px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: rgba(102, 126, 234, 0.4);
  border-color: #667eea;
  transform: translateY(-2px);
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 标签页内容 */
.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
  animation: tabFadeIn 0.3s ease-in;
}

.tab-pane.active {
  display: block;
}

/* ===== 表格样式 ===== */
.tasks-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
}

.tasks-table tbody {
  display: table;
  width: 100%;
}

.tasks-table tr {
  display: table-row;
}

.tasks-table tr:last-child td {
  border-bottom: none !important;
}

.tasks-table td {
  padding: 12px 15px;
  color: #ddd;
  font-size: 20px;
  height: 67px;
  position: relative;
  border-bottom: rgb(222, 235, 253, 0.2) solid 1px;
}

.tasks-table td:empty::before {
  content: "-";
  color: #999;
}

/* 两列布局 */
.tasks-table td:first-child {
  width: 50%;
  text-align: center;
}

.tasks-table td:last-child {
  width: 50%;
  text-align: center;
}

.check-btn {
  position: absolute;
  margin-left: 15px;
  width: 115px;
  height: 40px;
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/check.png")
    no-repeat center;
  background-size: contain;
  border: none;
  cursor: pointer;
  vertical-align: middle;
  right: 20px;
  top: 12px;
}

/* ===== 模块4：积分阶段奖励 ===== */
.module-points {
  border-radius: 20px;
  position: absolute;
  width: 100%;
  height: 980px;
  top: 4570px;
}

/* 7个阶段按钮组 */
.stages-buttons {
  position: relative;
  width: 1050px;
  height: 72px;
  margin: 0 auto 30px;
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stages.png")
    no-repeat center;
  background-size: 1050px 72px;
  display: flex;
  align-items: center;
}

.stage-btn {
  position: absolute;
  top: 0;
  width: calc(1050px / 7);
  height: 72px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0;
}

/* 每个阶段按钮的位置 */
.stage-btn:nth-child(1) {
  left: calc(0 * 150px);
}
.stage-btn:nth-child(2) {
  left: calc(1 * 150px);
}
.stage-btn:nth-child(3) {
  left: calc(2 * 150px);
}
.stage-btn:nth-child(4) {
  left: calc(3 * 150px);
}
.stage-btn:nth-child(5) {
  left: calc(4 * 150px);
}
.stage-btn:nth-child(6) {
  left: calc(5 * 150px);
}
.stage-btn:nth-child(7) {
  left: calc(6 * 150px);
}

/* 阶段按钮选中时切换到selected状态 */
.stage-btn.active:nth-child(1) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stages-selected.png")
    0 0 no-repeat;
  background-size: 1050px 72px;
}
.stage-btn.active:nth-child(2) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stages-selected.png") -150px
    0 no-repeat;
  background-size: 1050px 72px;
}
.stage-btn.active:nth-child(3) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stages-selected.png") -300px
    0 no-repeat;
  background-size: 1050px 72px;
}
.stage-btn.active:nth-child(4) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stages-selected.png") -450px
    0 no-repeat;
  background-size: 1050px 72px;
}
.stage-btn.active:nth-child(5) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stages-selected.png") -600px
    0 no-repeat;
  background-size: 1050px 72px;
}
.stage-btn.active:nth-child(6) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stages-selected.png") -750px
    0 no-repeat;
  background-size: 1050px 72px;
}
.stage-btn.active:nth-child(7) {
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stages-selected.png") -900px
    0 no-repeat;
  background-size: 1050px 72px;
}

/* 阶段内容容器 */
.stages-content {
  position: relative;
}

.stage-pane {
  display: none;
  animation: tabFadeIn 0.3s ease-in;
}

.stage-pane.active {
  display: block;
}

/* 阶段图片显示 */
.stage-image-wrapper {
  width: 100%;
  height: 884px;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;
}

.stage-image-wrapper.stage-1 {
  background-image: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stage1.png");
}

.stage-image-wrapper.stage-2 {
  background-image: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stage2.png");
}

.stage-image-wrapper.stage-3 {
  background-image: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stage3.png");
}

.stage-image-wrapper.stage-4 {
  background-image: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stage4.png");
}

.stage-image-wrapper.stage-5 {
  background-image: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stage5.png");
}

.stage-image-wrapper.stage-6 {
  background-image: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stage6.png");
}

.stage-image-wrapper.stage-7 {
  background-image: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/stage7.png");
}

ul.floatbar {
  list-style: none;
  margin: 0;
  padding: 0;
}
.floatbar {
  position: fixed;
  right: 0;
  top: 30%;
  z-index: 30;
}

.floatbar li:hover {
  filter: brightness(1.1);
}

.floatbar img {
  border-radius: 4px;
}

/* ===== 左下角背景装饰块 ===== */
.left-bottom-decoration {
  position: absolute;
  bottom: 0;
  left: -360px;
  width: 617px;
  height: 932px;
  background: url("https://static.web.sdo.com/dn/pic/dn_25act/251021/left-bottom.png")
    no-repeat;
  background-size: 617px 932px;
  pointer-events: none;
  z-index: 0;
}

/* ===== 弹窗样式 ===== */
.reward-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.reward-modal.show {
  display: block;
}

/* 弹窗背景覆盖层 */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  backdrop-filter: blur(3px);
}

/* 弹窗内容盒子 */
.modal-content {
  border: 1px solid #322b5b;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #1f1b35;
  /* background: url('https://static.web.sdo.com/dn/pic/dn_25act/251021/tc.png') center center no-repeat; */
  background-size: 100% 100%;
  width: 1000px;
  height: 790px;
  z-index: 10002;
  animation: modalPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85) rotateY(-10deg);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotateY(0deg);
  }
}

/* 弹窗头部 - 紫色条纹区域 */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  padding: 0;
  border: none;
  background-color: #322b5b;
  height: 94px;
}

.modal-header::after {
  display: none;
}

.modal-title {
  font-size: 36px;
  color: #fff;
  text-align: center;
  font-weight: bold;
  margin: 0 auto;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
}

/* 关闭按钮 */
.modal-close {
  width: 55px;
  height: 55px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 96px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  line-height: 1;
  font-weight: 300;
  flex-shrink: 0;
  position: absolute;
  top: -85px;
  right: 0px;
  left: 0;
  margin: auto;
  z-index: 10004;
}

.modal-close::before {
  content: "×";
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 0 20px rgba(155, 123, 198, 0.6);
}

/* 弹窗内容 */
.modal-body {
  padding: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.modal-body img {
  width: auto;
  height: 500px;
  display: block;
}

.reward-detail-text {
  color: #e8d4f8;
  font-size: 24px;
  line-height: 1.8;
  margin: 0;
  word-break: break-word;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  max-width: 900px;
}
