/* 通用样式 */
body * {
  box-sizing: border-box;
  flex-shrink: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: PingFangSC-Regular, Roboto, Helvetica Neue, Helvetica, Tahoma, Arial, PingFang SC-Light, Microsoft YaHei;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: fixed;
}

input {
  background-color: transparent;
  border: 0;
}

button {
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  outline: none;
  background-color: transparent;
  cursor: pointer;
}

button:active {
  opacity: 0.6;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.justify-start {
  display: flex;
  justify-content: flex-start;
}

.justify-center {
  display: flex;
  justify-content: center;
}

.justify-end {
  display: flex;
  justify-content: flex-end;
}

.justify-evenly {
  display: flex;
  justify-content: space-evenly;
}

.justify-around {
  display: flex;
  justify-content: space-around;
}

.justify-between {
  display: flex;
  justify-content: space-between;
}

.align-start {
  display: flex;
  align-items: flex-start;
}

.align-center {
  display: flex;
  align-items: center;
}

.align-end {
  display: flex;
  align-items: flex-end;
}

/* 页面切换 */
.page {
  display: none;
  background-color: rgba(255, 255, 255, 1);
  position: fixed;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  top: 0;
  left: 0;
  min-width: 100vw;
}

.page.active {
  display: flex;
}

/* 弹出页面样式 */
.popup-page {
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0);
  animation: fadeIn 0.3s ease-in-out forwards;
}

.popup-page.fade-out {
  animation: fadeOut 0.3s ease-in-out forwards;
}

.popup-page .popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.popup-page > div:not(.popup-overlay) {
  position: relative;
  z-index: 2;
}

/* 响应式基础 - 以高度为准 */
html {
  font-size: 37.5px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  width: 100vw;
  height: 100vh;
  position: fixed;
  overflow: hidden;
}

/* 页面1: Loading */
#page-loading .section_1 {
  background-color: rgba(255, 255, 255, 1);
  height: 100%;
  width: 100%;
}

#page-loading .block_1 {
  width: 100%;
  height: 100%;
  background: url(https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/loading-bg.png) center center no-repeat;
  background-size: 100% 100%;
  justify-content: center;
  align-items: center;
}

#page-loading .image_1 {
  width: 3.5rem;
  height: 5rem;
  margin-top: -5.6rem;
}

/* Loading页面Sprite动画 */
.loading-sprite-animation {
  width: 4.88rem;
  height: 4.59rem;
  background-image: url(https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/sprite2.png);
  background-repeat: no-repeat;
  background-size: 400% 300%;  /* 4列3行 */
  background-position: 0% 0%;
}

#page-loading .image-wrapper_1 {
  height: 0.37rem;
  width: 12.91rem;
  margin-top: 0.72rem;
  overflow: hidden;
}

#page-loading .image_2 {
  width: 12.91rem;
  height: 0.37rem;
}

#page-loading .loading-bar {
  animation: loading 3s ease-in-out;
}

@keyframes loading {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

#page-loading .image_3 {
  width: 9.89rem;
  height: 0.77rem;
  margin-top: 1.68rem;
}

/* 页面2: 首页 */
#page-home .section_1 {
  position: relative;
  width: 100%;
  height: 100%;
  background: url(https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/loading-bg.png) center center no-repeat;
  background-size: 100% 100%;
}

/* 首页动画效果 */
@keyframes flyInFromTop {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flyInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes flyInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes flyInFromBottom {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

#page-home.active .image-wrapper_1 {
  animation: flyInFromTop 0.4s ease-out forwards;
}

#page-home.active .image_4 {
  animation: scaleIn 0.5s ease-out 0.1s forwards;
  opacity: 0;
}

#page-home.active .image_5 {
  animation: flyInFromTop 0.4s ease-out 0.2s forwards;
  opacity: 0;
}

#page-home.active .image_6 {
  animation: flyInFromLeft 0.5s ease-out 0.3s forwards;
  opacity: 0;
}

#page-home.active .image_7 {
  animation: flyInFromRight 0.5s ease-out 0.3s forwards;
  opacity: 0;
}

#page-home.active .image_11 {
  animation: flyInFromLeft 0.5s ease-out 0.4s forwards;
  opacity: 0;
}

#page-home.active .image_12 {
  animation: flyInFromBottom 0.5s ease-out 0.4s forwards;
  opacity: 0;
}

#page-home.active .image_8 {
  animation: flyInFromBottom 0.4s ease-out 0.5s forwards;
  opacity: 0;
}

#page-home.active .image_9 {
  animation: scaleIn 0.3s ease-out 0.6s forwards;
  opacity: 0;
}

#page-home.active .image_10 {
  animation: flyInFromRight 0.5s ease-out 0.7s forwards;
  opacity: 0;
}

#page-home .image-wrapper_1 {
    width: 100vw;
    height: 1.07rem;
    margin: 1.01rem auto 0;
    justify-content: space-between;
    padding: 0 1rem;
    box-sizing: border-box;
    position: absolute;
    z-index: 1;
}

#page-home .image_1 {
  width: 4.8rem;
  height: 1.07rem;
  object-fit: cover;
}

/* 声音开关按钮 */
.sound-toggle {
  width: 1.5rem;
  height: 1.5rem;
  position: absolute;
  cursor: pointer;
  z-index: 100;
  transition: transform 0.2s ease;
  right: 1rem;
}

.sound-toggle:active {
  transform: scale(0.9);
}

#page-home .image_2 {
    width: 3.44rem;
    height: 0.69rem;
    margin: 0.21rem 0 0 0;
    position: absolute;
    right: 8rem;
}

#page-home .image_3 {
    width: 3.44rem;
    height: 0.72rem;
    margin: 0.19rem -3.5rem 0 0;
    cursor: pointer;
    position: absolute;
    right: 7rem;
}

#page-home .image_4 {
  width: 17.23rem;
  height: 8.91rem;
  margin: 3rem auto 0;
  display: block;
}

#page-home .image_5 {
  width: 16.11rem;
  height: 2.56rem;
  margin: 0.11rem auto 0;
  display: block;
}

#page-home .image-wrapper_2 {
  width: 16.48rem;
  height: 15.95rem;
  margin: 0.27rem auto 0;
}

#page-home .image_6 {
    width: 4.11rem;
    height: 2.48rem;
    left: 50%;
    position: absolute;
    margin-left: -9rem;
    animation: float 3s ease-in-out infinite;
}

#page-home .image_7 {
    width: auto;
    height: 44vh;
    margin-top: 6%;
    position: absolute;
    object-fit: contain;
    right: 6%;
}

#page-home .image_8 {
    width: 15.3rem;
    height: 2.99rem;
    margin: 3.6rem auto 0;
    display: block;
}

#page-home .image_9 {
  width: 3.04rem;
  height: 0.61rem;
  margin: 0.35rem auto 0;
  display: block;
}

#page-home .section_2 {
  height: 6.69rem;
  background: url(https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/home-btn-bg.png) 100% no-repeat;
  background-size: 100% 100%;
  width: 14.35rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10%;
  cursor: pointer;
}

#page-home .image-wrapper_3 {
  height: 8.27rem;
  background: url(https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/home-btn-effect.png) 100% no-repeat;
  background-size: 100% 100%;
  width: 9.76rem;
  margin: -0.99rem auto 0;
}

#page-home .image_10 {
    width: 13.69rem;
    height: 17.07rem;
    /* margin: -12.48rem auto 0; */
    position: absolute;
    top: 13rem;
    right: -8rem;
}

#page-home .image-wrapper_4 {
  height: 16.05rem;
  background: url(https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/home-left-bg.png) -0.69rem 0px no-repeat;
  background-size: 11.79rem 16.05rem;
  width: 11.09rem;
  position: absolute;
  left: 0;
  bottom: 20%;
}

#page-home .image_11 {
    width: 4.35rem;
    height: 4.69rem;
    margin: 6.2rem 1rem auto 0;
}

#page-home .image_12 {
    position: absolute;
    left: 0;
    top: 44%;
    width: 12rem;
    height: 15.5rem;
    left: 50%;
    margin-left: -11rem;
}

/* Sprite动画 */
.sprite-animation {
    width: 12rem;
    height: 15.5rem;
    background-image: url(https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/sprite.png);
    background-repeat: no-repeat;
    background-size: 700% 600%;
    background-position: 0% 0%;
}

@keyframes spritePlay {
    /* 第1行 (7帧) */
    0% { background-position: 0% 0%; }
    2.7% { background-position: 14.285% 0%; }
    5.4% { background-position: 28.57% 0%; }
    8.1% { background-position: 42.855% 0%; }
    10.8% { background-position: 57.14% 0%; }
    13.5% { background-position: 71.425% 0%; }
    16.2% { background-position: 85.71% 0%; }
    
    /* 第2行 (7帧) */
    18.9% { background-position: 0% 16.666%; }
    21.6% { background-position: 14.285% 16.666%; }
    24.3% { background-position: 28.57% 16.666%; }
    27% { background-position: 42.855% 16.666%; }
    29.7% { background-position: 57.14% 16.666%; }
    32.4% { background-position: 71.425% 16.666%; }
    35.1% { background-position: 85.71% 16.666%; }
    
    /* 第3行 (7帧) */
    37.8% { background-position: 0% 33.332%; }
    40.5% { background-position: 14.285% 33.332%; }
    43.2% { background-position: 28.57% 33.332%; }
    45.9% { background-position: 42.855% 33.332%; }
    48.6% { background-position: 57.14% 33.332%; }
    51.3% { background-position: 71.425% 33.332%; }
    54% { background-position: 85.71% 33.332%; }
    
    /* 第4行 (7帧) */
    56.7% { background-position: 0% 49.998%; }
    59.4% { background-position: 14.285% 49.998%; }
    62.1% { background-position: 28.57% 49.998%; }
    64.8% { background-position: 42.855% 49.998%; }
    67.5% { background-position: 57.14% 49.998%; }
    70.2% { background-position: 71.425% 49.998%; }
    72.9% { background-position: 85.71% 49.998%; }
    
    /* 第5行 (7帧) */
    75.6% { background-position: 0% 66.664%; }
    78.3% { background-position: 14.285% 66.664%; }
    81% { background-position: 28.57% 66.664%; }
    83.7% { background-position: 42.855% 66.664%; }
    86.4% { background-position: 57.14% 66.664%; }
    89.1% { background-position: 71.425% 66.664%; }
    91.8% { background-position: 85.71% 66.664%; }
    
    /* 第6行 (2帧，因为只有37帧，最后5个是空的) */
    94.5% { background-position: 0% 83.33%; }
    97.2% { background-position: 14.285% 83.33%; }
    100% { background-position: 14.285% 83.33%; }
}

#page-game .game-header   {
    width: 100vw;
    height: 1.07rem;
    margin: 1.01rem auto 0;
    justify-content: space-between;
    padding: 0 1rem;
    box-sizing: border-box;
        position: absolute;
    z-index: 1;
}

#page-game .game-header .image_1g {
  width: 4.8rem;
  height: 1.07rem;
  object-fit: cover;

}

#page-game .game-header .image_2g {
width: 3.44rem;
    height: 0.69rem;
    margin: 0.21rem 0 0 0;
    position: absolute;
    right: 8rem;
}

#page-game .game-header .image_3g {
    width: 3.44rem;
    height: 0.72rem;
    margin: 0.19rem -3.5rem 0 0;
    cursor: pointer;
    position: absolute;
    right: 7rem;
}

/* 游戏页面声音开关按钮 */
.sound-toggle-game {
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s ease;
    right: 1rem;
}

.sound-toggle-game:active {
  transform: scale(0.9);
}

#page-game .group_1 {
  width: 100%;
  height: 100%;
  background: url(https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/loading-bg.png) center center no-repeat;
  background-size: 100% 100%;
  position: relative;
}

#page-game .image-wrapper_1 {
  width: 100%;
  height: 100%;
  position: relative;
}

#page-game .image_1 {
    width: 19.44rem;
    /* height: 3.61rem; */
    margin: 2.7rem auto 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

#page-game #game-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#page-game .image_2 {
  width: 7.87rem;
  height: 8.8rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  cursor: move;
  touch-action: none;
}

#page-game .image_3 {
width: 100%;
    height: 12.53rem;
    position: absolute;
    bottom: -6rem;
    left: 0;
    object-fit: contain;
    pointer-events: none;
}

#page-game .game-info {
  position: absolute;
  top: 4.7rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  width: 13.1rem;
  color: #ffe8af;
  font-size: 0.8rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#page-game .score-display {
     right: 0rem;
    position: absolute;
}

#page-game .time-display {
 margin-left: 0rem;
}

/* 游戏开始提示浮层 */
.game-tips-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  z-index: 999;
  padding-bottom: 10vh;
}

.game-tips-overlay.hidden {
  display: none !important;
}

.game-tips-overlay .tips-image {
    width: 80vw;
    height: auto;
    object-fit: contain;
    bottom: 2%;
    position: absolute;
}

.game-tips-overlay .tips-countdown {
  position: absolute;
    bottom: 45%;
    font-size: 9rem;
    font-weight: bold;
    color: #ffe8af;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }


/* 页面4: 失败页面 */
#page-fail .box_1 {
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  align-items: center;
}

#page-fail .fail-title-container {
    width: 16.16rem;
    height:10rem;
    margin-top: 6.5rem;
    background: url(https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/fail-title.png) center center no-repeat;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#page-fail .fail-score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffe8af;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 5rem;
}

#page-fail .image-wrapper_1 {
    width: 85%;
    height: 3.25rem;
    bottom: 3rem;
    position: absolute;
}

#page-fail .image_2 {
    width: 8rem;
    height: auto;
        object-fit: contain;
    cursor: pointer;
}

#page-fail .image_3 {
    width: 8rem;
    height: auto;
    cursor: pointer;
        object-fit: contain;
}

/* 页面4-success: 抽奖页面 */
#page-lottery .fail-title-container {
    width: 16.16rem;
    height: 10rem;
    margin: 6.5rem auto 0;
    background: url(https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/success-title.png) center center no-repeat;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    
}

#page-lottery .fail-score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffe8af;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 5rem;
}

#page-lottery .box_1 {
width: 80vw;
    height: 20rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto 0;
}

#page-lottery .image_1 {
    width: 12rem;
    height: 12rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

#page-lottery .rotating-light {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#page-lottery .box_1::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url(https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/lottery-bg.png) center center no-repeat;
    background-size: contain;
    top: 0;
    left: 0;
    z-index: 2;
}

#page-lottery .btn-open-redpacket {
    width: 6rem;
    position: relative;
    z-index: 3;
    margin: 7rem -6rem 0 0;
    animation: pointingFinger 1.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pointingFinger {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-1.5rem, -1.5rem);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* 浮动效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

#page-lottery .image-wrapper_1 {
    width: 85%;
    height: 3.25rem;
    margin-top: 2rem;
}

#page-lottery .image_2 {
    width: 8rem;
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

#page-lottery .image_3 {
    width: 8rem;
    height: auto;
    cursor: pointer;
    object-fit: contain;
}

/* 页面5: 中奖结果页面 */
#page-result {
  position: relative;
}

#page-result .result-title-img {
  position: fixed;
  top: 0.27rem;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 10;
  object-fit: contain;
}

#page-result .result-section {
  position: relative;
  width: 20rem;
  height: 40rem;
  margin-top: 3rem;
}

#page-result .result-image-wrapper {
    width: 90vw;
    height: 3.05rem;
    bottom: 5rem;
    position: absolute;
    left: 5vw;
}

#page-result .result-retry-btn {
  width: 8.19rem;
  height: 2.99rem;
  margin-top: 0.03rem;
  cursor: pointer;
}

#page-result .result-home-btn {
  width: 8.24rem;
  height: 3.05rem;
  cursor: pointer;
}

#page-result .result-amount-img {
    position: absolute;
    left: 50%;
    margin-left: -8.4rem;
    top: 7.32rem;
    width: 18.8rem;
    height: 19.84rem;
    background: url(https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/result-amount.png) center center no-repeat;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
}

#page-result .result-amount-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff5238;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
    text-align: center;
    margin-right: 8rem;
    margin-top: -6rem;
}

/* 页面8: 获奖列表 */
#page-list .group_1 {
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  justify-content: flex-start;
  align-items: center;
}

#page-list .image_1 {
    width: 80vw;
    margin: 2rem 0 0 0;
}

#page-list #lottery-list-container {
  width: 70%;
  max-height: 60%;
  overflow-y: auto;
  margin: 9rem 0 0 0;
  padding: 1rem;
  color: #333;
  position: absolute;
}

.lottery-list-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #656565;
    font-size: 0.9rem;
}

.lottery-item-left {
  flex: 1;
  text-align: left;
  color: #ce2e18;
}

.lottery-item-right {
  flex: 0 0 auto;
  text-align: right;
  color: #ce2e18;
  margin-left: 1rem;
}

#page-list .image_close {
    width: 80vw;
    /* height: 1.2rem; */
    object-fit: contain;
    cursor: pointer;
    /* position: absolute; */
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

#page-list .text-wrapper_1 {
  height: 2.59rem;
  background: url(https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/list-close-btn.png) center center no-repeat;
  background-size: contain;
  width: 12.29rem;
  margin-top: auto;
  margin-bottom: 2rem;
  cursor: pointer;
}

#page-list .text_1 {
  width: 2.43rem;
  height: 1.23rem;
  overflow-wrap: break-word;
  color: rgba(206, 46, 24, 1);
  font-size: 1.28rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  line-height: 2.4rem;
  margin: 0.75rem 0 0 6.59rem;
}

/* 隐藏元素 */
.hidden {
  display: none !important;
}

/* 页面11: 分数排行榜 */
#page-ranking {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

#page-ranking.active {
  display: flex !important;
}

#page-ranking .group_1 {
  width: 100%;
  height: 100%;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 2;
}

#page-ranking #ranking-list-container {
width: 14.6rem;
    max-height: 47%;
    overflow-y: auto;
    color: #333;
    position: absolute;
    top: 29%;
    left: 50%;
    margin-left: -7.3rem;
}
#page-ranking .image_1{
      width: 20rem;
    margin: 1rem 0 0 0;
}

.ranking-list-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.ranking-list-item:nth-child(odd) {
  background-color: #ffefd5;
}

.ranking-list-item:nth-child(even) {
  background-color: transparent;
}

.ranking-rank {
  flex: 0 0 auto;
  text-align: center;
  color: #ce2e18;
  width: 1.5rem;
  font-weight: bold;
  position: relative;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranking-rank.top-rank {
  font-size: 0;
  width: 1.8rem;
  height: 1.8rem;
}

.ranking-rank.top-rank::before {
  content: '';
  position: absolute;
  width: 1.8rem;
  height: 1.8rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.ranking-rank.rank-1::before {
  background-image: url('https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/rank1.png');
}

.ranking-rank.rank-2::before {
  background-image: url('https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/rank2.png');
}

.ranking-rank.rank-3::before {
  background-image: url('https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/rank3.png');
}

.ranking-headimgurl {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ce2e18;
}

.ranking-nickname {
  flex: 1;
  text-align: left;
  color: #ce2e18;
  margin: 0 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 2.5rem;
      
}

.ranking-score {
  flex: 0 0 auto;
  text-align: right;
  color: #ce2e18;
  width: 2.5rem;
  padding-right: 0.6rem;
}

.ranking-user-info {
    display: flex;
    height: 1rem;
    flex-direction: row;
    gap: 0.3rem;
    font-size: 0.8rem;
    position: absolute;
    color: #a87b38;
    top:79.7%;
    width: 20rem;
}
.ranking-user_step {
      
          right: 2rem;
    position: absolute;
}
.ranking-user_rank  {
  left: 6rem;
    position: absolute;
}

#page-ranking .image_close {
    width:20rem;
    object-fit: contain;
    cursor: pointer;
    z-index: 10;
    position: absolute;
    bottom: 0rem;
}

/* 页面9: 规则页面 */
#page-rule {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

#page-rule.active {
  display: flex !important;
}

#page-rule .rule-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

#page-rule .rule-header {
    width: 90%;
    height: auto;
    padding: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    margin-top: 1rem;
}

#page-rule .rule-title {
  width: auto;
  height: 1.5rem;
  object-fit: contain;
}

#page-rule .rule-close {

  height: 1.4rem;
  object-fit: contain;
  cursor: pointer;
}

#page-rule .rule-content {
  width: 90%;
  height: calc(90vh - 4rem);
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 0;
}

#page-rule .rule-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 页面10: 海报页面 */
#page-poster {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 1);
  overflow: hidden;
}

#page-poster.active {
  display: flex !important;
}

#page-poster .poster-section {
  position: relative;
  width: 100%;
  height: 100%;
  background: url(https://v-thinking-taikang.oss-cn-beijing.aliyuncs.com/imgs/loading-bg.png) center center no-repeat;
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
}

#page-poster .poster-header {
  width: 20rem;
  height: 1.07rem;
  margin: 1.01rem auto 0;
  justify-content: space-between;
  padding: 0 1rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

#page-poster .image_1p {
  width: 4.8rem;
  height: 1.07rem;
  object-fit: cover;
}

#page-poster .image_2p {
  width: 3.44rem;
  height: 0.69rem;
  margin: 0.21rem -4.5rem 0 0;
}

#page-poster .image_3p {
  width: 3.44rem;
  height: 0.72rem;
  margin: 0.19rem 0 0 0;
  cursor: pointer;
}

#page-poster .poster-content {
  width: 100%;
  height: calc(100% - 3rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#page-poster .poster-img-1 {
width: 72.6%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 1rem auto 0;
}

#page-poster .poster-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem 0;
}

#page-poster .poster-img-2 {
  width: 41.5%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0.36rem auto 0;
}

#page-poster .poster-img-3 {
  width: 85%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: -0.01rem auto 0.88rem;
}

/* 分享浮层 */
.share-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1rem;
}

.share-overlay.active {
  display: flex;
}

.share-overlay .share-image {
  width: auto;
  height: auto;
  max-width: 50%;
  max-height: 50%;
  object-fit: contain;
}
