* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body.activity-body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.activity-body {
  background-color: #f5f5f5;
  background-image: url('/static/web/images/activity/bg.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* 移动端隐藏侧边内容 */
.side-content {
  display: none;
}



/* 布局容器 */
.page-wrapper {
  width: 100%;
  min-height: 100vh;
}

.main-content {
  position: relative;
  width: 100%;
}

.page-title {
  display: none;
  /* 移动端默认隐藏 */
}

/* 移动端转盘区域布局 */
.wheel-section {
  width: 100%;
}

.wheel-container {
  height: 6.1rem;
  position: relative;
}

.wheel-wrapper {
  width: 2.6rem;
  height: 2.6rem;
  position: absolute;
  top: 2.6rem;
  left: 51%;
  transform: translateX(-50%);
}

.wheel-image-wrapper {
  width: 100%;
  height: 100%;
  transition: transform 0.1s linear;
}

.wheel-image-wrapper.rotating {
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wheel-pointer {
  position: absolute;
  top: 31%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 1rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
}

.wheel-pointer img {
  width: 100%;
  height: auto;
}

.wheel-pointer:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.wheel-pointer.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* 我的奖品入口 (移动端) */
.my-prizes-btn {
  position: absolute;
  top: 1.9rem;
  right: 0;
  background: url(/static/web/images/activity/jp.png) no-repeat center center;
  background-size: 100% 100%;
  width: 0.4rem;
  height: 1.3rem;
  cursor: pointer;
  z-index: 100;
}

/* 喇叭通知条 */
.notice-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0.2rem;
  box-sizing: border-box;
}

.notice-bar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.06rem 0.18rem;
  background: #FF3700;
  border: 0.02rem solid #ffffff;
  border-radius: 0.25rem;
  box-shadow: 0 0.04rem 0.12rem rgba(255, 90, 31, 0.6);
  color: #ffffff;
  box-sizing: border-box;
}

.notice-icon {
  width: 0.2rem;
  height: 0.2rem;
  margin-right: 0.06rem;
  flex-shrink: 0;
}

.notice-content {
  flex: 1;
  height: 0.2rem;
  overflow: hidden;
  position: relative;
}

.notice-list {
  margin: 0;
  padding: 0;
  animation: scroll-up 20s linear infinite;
}

.notice-list li {
  height: 0.2rem;
  line-height: 0.2rem;
  font-size: 0.14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes scroll-up {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

/* 抽奖次数 */
.lottery-times-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.6rem;
  margin-top: 0.1rem;
}

.lottery-times-text {
  display: flex;
  align-items: center;
  font-size: 0.16rem;
  font-weight: bold;
  text-shadow: 0 0.01rem 0.02rem rgba(0, 0, 0, 0.5);
  color: #fff;
}

.lottery-label {
  margin-right: 0.05rem;
}

.lottery-count {
  color: #FFFF00;
}

.lottery-times-button {
  flex-shrink: 0;
  height: 0.3rem;
  cursor: pointer;
}

.lottery-times-button img {
  height: 100%;
  width: auto;
}

/* 底部图片 */
.bottom-container {
  padding: 0 0.2rem 1rem 0.2rem;
}

.bottom-image {
  margin-top: 0.1rem;
}

.demo {
  margin-top: 0.1rem;
  width: 100%;
  display: block;
  background: url('/static/web/images/activity/2.png') no-repeat center center / 100% auto;
  min-height: 2rem;
  /* 根据实际图片高度调整 */
  position: relative;
  /* 为内部元素提供定位上下文 */
}

.demo .telegram-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.18rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 10;
}

/* 弹窗通用样式 */
.prize-modal,
.msg-modal,
.task-modal,
.wdjp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.prize-modal.show,
.msg-modal.show,
.task-modal.show,
.wdjp-modal.show {
  opacity: 1;
  visibility: visible;
}

.prize-modal-mask,
.msg-modal-mask,
.task-modal-mask,
.wdjp-modal-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.prize-modal-main,
.msg-modal-content,
.task-modal-content,
.wdjp-modal-main {
  position: relative;
  z-index: 1;
}

/* 我的奖品弹窗主容器 (移动端) */
.wdjp-modal-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 我的奖品弹窗 (移动端) */
.wdjp-modal-content {
  width: 90vw;
  max-height: 75vh;
  background: url(/static/web/images/activity/PC/wdjp.png) no-repeat center center / 100% 100%;
  border-radius: 0.2rem;
  padding: 1.6rem 0.3rem 0.8rem;
  overflow-y: auto;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  position: relative;
}

.wdjp-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 0.16rem;
  padding: 0.15rem 0.2rem;
  margin-bottom: 0.1rem;
  border-bottom: 0.02rem solid rgba(0, 0, 0, 0.1);
  color: #000;
}

.wdjp-h-time,
.wdjp-h-name {
  flex: 1;
}

.wdjp-h-name {
  text-align: right;
}

.wdjp-list {
  flex: 1;
  max-height: 50vh;
  overflow-y: auto;
  margin-top: 0.1rem;
}

.wdjp-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.15rem 0;
  border-bottom: 0.01rem solid rgba(0, 0, 0, 0.05);
  font-size: 0.14rem;
  color: #000;
}

.wdjp-item:last-child {
  border-bottom: none;
}

.wdjp-time {
  flex: 3;
  text-align: left;
}

.wdjp-name {
  flex: 2;
  text-align: right;
  color: #000;
  font-weight: 500;
}

.wdjp-modal-gb {
  margin-top: 0.25rem;
  width: 0.32rem;
  height: 0.32rem;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wdjp-modal-gb img {
  width: 100%;
  height: 100%;
  display: block;
}

.wdjp-modal-gb:active {
  transform: scale(0.9);
}

/* 中奖弹窗 */
.prize-modal-content {
  width: 3.3rem;
  height: 4.5rem;
  background: url('/static/web/images/activity/zjbj.png') no-repeat bottom center / 100% 100%;
}

.prize-modal-image {
  position: absolute;
  top: 59%;
  left: 51%;
  transform: translate(-50%, -50%);
  width: 28%;
  height: 19%;
  object-fit: contain;
}

.prize-modal-name {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.18rem;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 0.02rem 0.04rem rgba(0, 0, 0, 0.5);
}

.prize-modal-close {
  position: absolute;
  bottom: 0.3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 0.4rem;
  cursor: pointer;
}

.prize-modal-gb {
  display: none;
  /* 移动端隐藏 */
}

/* 消息弹窗 */
.msg-modal-content {
  width: 2.8rem;
  background: #ffffff;
  border-radius: 0.12rem;
  padding: 0.3rem 0.2rem 0.2rem;
  text-align: center;
}

.msg-modal-text {
  font-size: 0.16rem;
  color: #333333;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.msg-modal-btn {
  width: 1.2rem;
  height: 0.36rem;
  line-height: 0.36rem;
  background: #FF3700;
  color: #ffffff;
  font-size: 0.14rem;
  border-radius: 0.18rem;
  margin: 0 auto;
  cursor: pointer;
}

/* 任务弹窗 */
.task-modal-content {
  width: 3.45rem;
  max-height: 85vh;
  background: linear-gradient(180deg, #CA000E 0%, #750601 100%);
  border-radius: 0.16rem;
  padding: 0.4rem 0.12rem 0.2rem;
  overflow-y: auto;
}

.task-modal-title {
  color: #FFD700;
  font-size: 0.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.15rem;
}

.task-modal-close {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  width: 0.3rem;
  height: 0.3rem;
  line-height: 0.3rem;
  text-align: center;
  color: #ffffff;
  font-size: 0.24rem;
  cursor: pointer;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.task-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.12rem;
  padding: 0.12rem;
  display: flex;
  align-items: center;
}

.task-icon-wrapper {
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.12rem;
  flex-shrink: 0;
}

.task-info {
  flex: 1;
}

.task-title {
  color: #ffffff;
  font-size: 0.16rem;
  font-weight: 500;
  margin-bottom: 0.04rem;
}

.task-desc {
  color: #fff;
  font-size: 0.12rem;
}

.task-btn {
  width: 0.86rem;
  height: 0.3rem;
  line-height: 0.3rem;
  background: #353535;
  color: #fff;
  border-radius: 0.16rem;
  font-size: 0.12rem;
  text-align: center;
  cursor: pointer;
}

.task-btn.primary {
  background: #F02B50;
}

.task-link-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
}

/* ==========================================================================
   PC端 响应式样式 (min-width: 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  body.activity-body {
    background-image: url('/static/web/images/activity/PC/bg.png');
    background-size: 100% 100%;
    background-attachment: fixed;
    background-color: #960012;
  }

  .page-wrapper {
    display: flex;
  }

  .prize-modal-main,
  .wdjp-modal-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  .main-content {
    flex: 1;
    background: url('/static/web/images/activity/PC/zt.png') no-repeat center center / contain;
    min-height: 100vh;
    position: relative;
  }

  .side-content {
    width: 8.5rem;
    position: relative;
    display: block;
  }

  .telegram-link {
    position: absolute;
    top: 71%;
    left: 59%;
    transform: translate(-50%, -50%);
    display: inline-block;
    background: none;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.22rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 10;
  }

  .page-title {
    display: block;
    position: absolute;
    top: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 7.2rem;
    height: 2rem;
    background: url('/static/web/images/activity/PC/bt.png') no-repeat center top / contain;
  }

  /* 转盘区域 PC 适配 - 统一容器 */
  .wheel-section {
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    width: 4.7rem;
    height: 4.7rem;
  }

  .wheel-container {
    width: 100%;
    height: 100%;
  }

  .wheel-wrapper {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: none;
  }

  .wheel-pointer {
    top: 33%;
    width: 1.9rem;
  }

  /* 我的奖品入口 PC 适配 */
  .my-prizes-btn {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 1.6rem;
    transition: transform 0.2s;
  }

  .my-prizes-btn:hover {
    transform: translateY(-50%) scale(1.05);
  }

  /* 通知条 PC 适配 - 相对于 wheel-section */
  .notice-bar {
    position: absolute;
    top: 118%;
    left: 50%;
    transform: translateX(-50%);
    width: 5.5rem;
    padding: 0.08rem 0.25rem;
    background: #FF3700;
    border: 0.03rem solid #ffffff;
    border-radius: 0.4rem;
    box-shadow: 0 0.06rem 0.2rem rgba(255, 90, 31, 0.5);
  }

  .notice-bar-inner {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .notice-icon {
    width: 0.25rem;
    height: 0.25rem;
    margin-right: 0.15rem;
  }

  .notice-content {
    height: 0.25rem;
  }

  .notice-list li {
    height: 0.25rem;
    line-height: 0.25rem;
    font-size: 0.16rem;
  }

  /* 抽奖次数 PC 适配 - 相对于 wheel-section */
  .lottery-times-content {
    position: absolute;
    top: 138%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    gap: 1.2rem;
    margin-top: 0;
    padding: 0;
    white-space: nowrap;
  }

  .lottery-times-text {
    font-size: 0.24rem;
    height: 0.4rem;
  }

  .lottery-count {
    font-size: 0.32rem;
  }

  .lottery-times-button {
    height: 0.4rem;
  }

  /* 底部 PC 隐藏 */
  .bottom-container {
    display: none;
  }

  /* 弹窗 PC 适配 */
  .prize-modal-content {
    width: 5.3rem;
    height: 7.5rem;
  }

  .prize-modal-image {
    top: 55%;
  }

  .prize-modal-name {
    bottom: 2.2rem;
    font-size: 0.21rem;
  }

  .prize-modal-close {
    bottom: 1.4rem;
    width: 2.5rem;
    height: 0.7rem;
    /* position: static; */
  }

  .prize-modal-gb {
    display: block;
    margin-top: 0.3rem;
    width: 0.5rem;
    height: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .prize-modal-gb:hover {
    transform: scale(1.1);
  }

  .task-modal-content {
    width: 5rem;
    padding: 0.6rem 0.2rem 0.3rem;
    border: 0.02rem solid #FFD700;
  }

  .task-modal-title {
    position: absolute;
    top: 0.15rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.24rem;
  }

  .task-item {
    padding: 0.15rem 0.2rem;
    margin-bottom: 0.15rem;
  }

  .task-icon-wrapper {
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.2rem;
  }

  .task-title {
    font-size: 0.18rem;
  }

  .task-desc {
    font-size: 0.14rem;
  }

  .task-btn {
    width: 1.1rem;
    height: 0.36rem;
    line-height: 0.36rem;
    font-size: 0.14rem;
  }

  /* 我的奖品弹窗 PC 适配 */
  .wdjp-modal-content {
    width: 6.5rem;
    height: 8.5rem;
    background: url(/static/web/images/activity/PC/wdjp.png) no-repeat center center / 100% 100%;
    padding: 1.8rem 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    max-height: none;
    overflow: hidden;
  }

  .wdjp-header {
    margin-top: 0.8rem;
    font-size: 0.24rem;
    color: #000;
    border-bottom: 0.02rem solid rgba(0, 0, 0, 0.1);
  }

  .wdjp-list {
    flex: 1;
    overflow-y: auto;
  }

  .wdjp-item {
    font-size: 0.2rem;
    color: #000;
    padding: 0.18rem 0;
  }

  .wdjp-modal-gb {
    width: 0.5rem;
    height: 0.5rem;
  }

  .btn-back {
    width: 32px !important;
    height: 32px !important;
    top: 24px !important;
    left: 24px !important;
  }
}



.btn-back {
  width: 0.3rem;
  height: 0.3rem;
  position: absolute;
  top: 0.1rem;
  left: 0.1rem;
  z-index: 999;
  pointer-events: all !important;
  user-select: all;
}
