html,
body {
  height: 100%;
}

/* 只在抽奖组件激活时禁用滚动 */
body.lottery-active {
  overflow: hidden;
}

/* 抽奖容器样式 */
.lottery-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #131313 0%, #02101c 100%);
  overflow: hidden;
  font-family: Helvetica, sans-serif;
}

a {
  color: #ffffff;
}

.none {
  display: none;
}

#container {
  position: fixed;
  inset: 0;
  /* width: 100vw;
  height: 100vh; */
  z-index: 3;
  /* margin: 0 auto; */
}

#menu {
  z-index: 1000;
}

.canvas-box {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: -1;
}

#info {
  position: absolute;
  width: 100%;
  color: #ffffff;
  padding: 5px;
  font-family: Monospace;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  z-index: 1;
}

#menu {
  position: fixed;
  bottom: 110px;
  width: 100%;
  text-align: center;
}

.element {
  width: 24vh;
  height: 16vh;
  box-shadow: 0 0 12px rgba(255, 50, 50, 0.5);  /* 红色主题 */
  border: 1px solid rgba(255, 100, 100, 0.25);  /* 红色主题 */
  text-align: center;
  cursor: default;
  transition: background-color 0.3s ease-in;
}

.element:hover {
  box-shadow: 0 0 12px rgba(255, 50, 50, 0.75);  /* 红色主题 */
  border: 1px solid rgba(255, 100, 100, 0.75);  /* 红色主题 */
}

.element .company {
  position: absolute;
  top: 1.2vh;
  right: 0;
  width: 100%;
  font-size: 2vh;
  color: rgba(255, 150, 150, 0.75);  /* 红色主题 */
}

.element .prize-img-small {
  position: absolute;
  top: 2vh;
  left: 50%;
  transform: translateX(-50%);
  width: 6vh;
  height: 6vh;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5vh;
  box-sizing: border-box;
}

.element .name {
  position: absolute;
  top: 9vh;
  left: 0;
  right: 0;
  font-size: 2.2vh;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 0 1vh rgba(255, 50, 50, 0.95);  /* 红色主题 */
}

.element .details {
  position: absolute;
  bottom: 1.2vh;
  left: 0;
  right: 0;
  font-size: 1.6vh;
  color: rgba(255, 150, 150, 0.75);  /* 红色主题 */
}

button {
  color: #fff;
  background: linear-gradient(180deg, rgba(200, 50, 50, 0.9) 0%, rgba(160, 20, 20, 1) 100%);
  border: 1px solid rgba(255, 100, 100, 0.8);
  border-radius: 50px;
  padding: 1.5vh 6vh;
  margin: 0 4.6vh;
  font-size: 2.5vh;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 50, 50, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

button:hover {
  background: linear-gradient(180deg, rgba(255, 80, 80, 1) 0%, rgba(200, 40, 40, 1) 100%);
  box-shadow: 0 0 30px rgba(255, 80, 80, 0.8), inset 0 2px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 0 10px rgba(255, 50, 50, 0.5);
  background: linear-gradient(180deg, rgba(160, 20, 20, 1) 0%, rgba(200, 50, 50, 0.9) 100%);
}

button.disabled {
  cursor: wait;
  background-color: rgba(100, 100, 100, 0.5);
  border-color: rgba(150, 150, 150, 0.5);
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  animation: none;
  box-shadow: none;
}

.highlight {
  background-color: rgba(253, 105, 0, 0.95) !important;
  box-shadow: 0 0 12px rgba(253, 105, 0, 0.95);
  border: 1px solid rgba(253, 105, 0, 0.25);
}

.highlight.element .name {
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.95);
}

.prize.element .name {
  text-shadow: none;
}

.prize.element {
  transition: background-color 1.5s ease-in 0.3s;
  background-color: rgba(253, 105, 0, 0.85) !important;
  box-shadow: 0 0 12px rgba(253, 105, 0, 0.95);
}

.prize .company,
.prize .details,
.prize .name,
.highlight .company,
.highlight .name,
.highlight .details {
  color: rgba(255, 255, 255, 0.85);
}

.dan-mu {
  visibility: hidden;
  position: fixed;
  z-index: -1;
  font-size: 12px;
  top: 1vh;
  left: 0;
  padding: 0 1.2vh;
  height: 2.2vh;
  line-height: 2.2vh;
  border-radius: 1vh;
  box-sizing: border-box;
  background-color: rgba(127, 0, 0, 0.37);  /* 红色主题 */
  box-shadow: 0 0 4px rgba(255, 50, 50, 0.5);  /* 红色主题 */
  border: 1px solid rgba(255, 100, 100, 0.25);  /* 红色主题 */
  color: rgba(255, 150, 150, 0.75);  /* 红色主题 */
}

.dan-mu.active {
  visibility: visible;
}

#prizeBar {
  position: fixed;
  left: 0;
  padding-left: 1.2vh;
  top: 1.2vh;
  z-index: 2;
}

.prize-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prize-item {
  padding: 9px;
  margin: 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-wrap: nowrap;
  background-color: rgba(127, 0, 0, 0.37);  /* 红色主题 */
  border: 1px solid rgba(255, 100, 100, 0.25);  /* 红色主题 */
  color: rgba(255, 150, 150, 0.75);  /* 红色主题 */
  width: 30vh;
  height: 10vh;
  box-sizing: border-box;
  transition: transform 1s ease-in;
}

.prize-item .prize-img {
  width: 8vh;
  height: 8vh;
  margin-right: 1.2vh;
  border-radius: 50%;
  background-color: #fff;
  text-shadow: 0 0 1vh rgba(0, 255, 255, 0.95);
  overflow: hidden;
}

.prize-img img {
  width: 90%;
  height: 90%;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.prize-text {
  flex: 1;
}

.prize-title {
  margin: 4px 0;
  font-size: 1.8vh;
  text-shadow: 0 0 1vh rgba(255, 50, 50, 0.95);  /* 红色主题 */
}

.prize-count {
  padding: 4px 0;
  position: relative;
}

.prize-count .progress {
  height: 1.8vh;
  background: rgba(0, 0, 0, 0.5);
  padding: 1px;
  overflow: visible;
  border-radius: 1vh;
}

.progress .progress-bar {
  border-radius: 1.8vh;
  position: relative;
  animation: animate-positive 2s;
  background-color: #d9534f;
  height: 1.8vh;
  -webkit-transition: width 0.6s ease;
  -o-transition: width 0.6s ease;
  transition: width 0.6s ease;
}

.progress-bar.active {
  animation: reverse progress-bar-stripes 0.4s linear infinite,
    animate-positive 2s;
}

.progress-bar-striped {
  background-image: -webkit-linear-gradient(45deg,
      rgba(255, 255, 255, 0.15) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.15) 75%,
      transparent 75%,
      transparent);
  background-image: -o-linear-gradient(45deg,
      rgba(255, 255, 255, 0.15) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.15) 75%,
      transparent 75%,
      transparent);
  background-image: linear-gradient(45deg,
      rgba(255, 255, 255, 0.15) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.15) 75%,
      transparent 75%,
      transparent);
  -webkit-background-size: 8px 8px;
  background-size: 8px 8px;
}

@-webkit-keyframes animate-positive {
  0% {
    width: 0;
  }
}

@keyframes animate-positive {
  0% {
    width: 0;
  }
}

@-webkit-keyframes progress-bar-stripes {
  from {
    background-position: 8px 0;
  }

  to {
    background-position: 0 0;
  }
}

@-o-keyframes progress-bar-stripes {
  from {
    background-position: 8px 0;
  }

  to {
    background-position: 0 0;
  }
}

@keyframes progress-bar-stripes {
  from {
    background-position: 8px 0;
  }

  to {
    background-position: 0 0;
  }
}

.prize-count-left {
  position: absolute;
  color: #fff;
  right: 9px;
  font-size: 1.8vh;
  line-height: 1.6vh;
  top: 50%;
  transform: translateY(-50%);
}

.shine {
  box-shadow: 0 0 15px 0 rgba(255, 50, 50, 0.5);  /* 红色主题 */
  transform: scale(1.2);
  transform-origin: left center;
  position: relative;
  overflow: hidden;
}

.done {
  position: relative;
}

.done:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: not-allowed;
}


.shine span {
  position: absolute;
  display: block
}

.shine span:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff3232);  /* 红色主题 */
  animation: animate1 1s linear infinite
}

@keyframes animate1 {
  0% {
    left: -100%
  }

  50%,
  100% {
    left: 100%
  }
}

.shine span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #ff3232);  /* 红色主题 */
  animation: animate2 1s linear infinite;
  animation-delay: .25s
}

@keyframes animate2 {
  0% {
    top: -100%
  }

  50%,
  100% {
    top: 100%
  }
}

.shine span:nth-child(3) {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, #ff3232);  /* 红色主题 */
  animation: animate3 1s linear infinite;
  animation-delay: .50s
}

@keyframes animate3 {
  0% {
    right: -100%
  }

  50%,
  100% {
    right: 100%
  }
}

.shine span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg, transparent, #ff3232);  /* 红色主题 */
  animation: animate4 1s linear infinite;
  animation-delay: .75s
}

@keyframes animate4 {
  0% {
    bottom: -100%
  }

  50%,
  100% {
    bottom: 100%
  }
}


.shine.prize-item {
  /* width: 24vh; */
  margin: 1.8vh 0;
}

.prize-mess {
  color: #fff;
  line-height: 5vh;
  font-size: 1.6vh;
  margin: 2.4vh 0;
}

.prize-shine {
  font-size: 5vh;
  font-weight: bold;
  color: #db5c58;
  vertical-align: middle;
  padding: 0 6px;
}

.qipao-container {
  position: fixed;
  right: 0;
  top: 10vh;
  bottom: 130px;
  width: 24vh;
  z-index: 2;
}

.qipao {
  width: 100%;
  padding: 1.8vh 1.4vh;
  line-height: 1.414;
  margin: 4px 0;
  box-sizing: border-box;
  font-size: 14px;
  background-color: rgba(127, 255, 255, 0.25);
  color: rgba(127, 255, 255, 0.75);
}

.music {
  position: fixed;
  top: 3vh;
  right: 4vh;
  z-index: 5;
}

.music-item {
  display: block !important;
  opacity: 0;
}

.music-box {
  width: 5vh;
  height: 5vh;
  border-radius: 50%;
  text-align: center;
  line-height: 5vh;
  font-size: 1.4vh;
  color: #fff;
  cursor: pointer;
  background-color: rgba(253, 105, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.rotate-active {
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

.margin-l-40 {
  margin-left: 40px;
}

.fixed-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.fixed-btn {
  margin: 20px 0 0;
  width: 200px;
  text-align: center;
  display: block;
}

#lottery {
  animation: breath 3s ease-in-out infinite;
}

@keyframes breath {
  0% {
    box-shadow: 0 0 20px rgba(255, 50, 50, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 80, 80, 0.9);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 50, 50, 0.6);
    transform: scale(1);
  }
}