.container {
  width: 100%;
  height: 100%;
  text-align: center;
}

.ny7 {
  padding: 0;
}

/* 送祝福 */

.sphere-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#possibility_sphere {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-group {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.control-group h3 {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.control-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.control-item:last-child {
  margin-bottom: 0;
}

.control-item label {
  font-size: 0.8rem;
  color: #666;
  margin-right: 1rem;
}

.control-item input[type="range"] {
  width: 100px;
}

.control-item button {
  color: #666;
}

/* 祝福列表 */

@keyframes rotateVortex {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.vortex {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url(../images/vortex.png);
  z-index: 0;
  transform: sc;
  /* animation: rotateVortex 8s linear infinite; */
}

.blessings-title {
  margin-top: 15vh;
  margin-bottom: 0.2rem;
  text-align: center;
  font-size: 0.36rem;
  color: #fff;
}

.blessings-title span {
  position: relative;
}

.blessings-title span::before {
  content: " ";
  width: 0.5rem;
  height: 0.02rem;
  background-color: #fff;
  opacity: 0.5;
  position: absolute;
  top: 50%;
  left: -0.1rem;
  transform: translateX(-100%);
}

.blessings-title span::after {
  content: " ";
  width: 0.5rem;
  height: 0.02rem;
  background-color: #fff;
  opacity: 0.5;
  position: absolute;
  top: 50%;
  right: -0.1rem;
  transform: translateX(100%);
}

.blessings-container {
  position: relative;
  height: 50vh;
  margin: 0;
  padding: 25vh 0;
}

.blessings-track {
  display: flex;
  position: absolute;
  left: 0;
  height: 100%;
  align-items: flex-start;
  padding: 10px 0;
}

.blessing {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin: 0 10px;
  border-radius: 34px;
  font-weight: bold;
  text-align: left;
  line-height: 0.4rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  min-width: 60px;
  min-height: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  color: #fff;
  margin-bottom: 30px;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Arial,
    sans-serif, "Helvetica Neue", "Open Sans", "Hiragino Sans GB", sans-serif;
  font-size: 0.25rem;
  font-weight: 200;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.blessing.paused {
  animation-play-state: paused;
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 0 10px 6px rgba(29, 225, 255, 1);
}

.blessing:hover {
  /* transform: scale(1.15) ; */
  z-index: 10;
  box-shadow: 0 0 10px 6px rgba(29, 225, 255, 1);
  cursor: pointer;
}

.blessing .blessing-radio {
  width: 16px;
  height: 16px;
  margin-right: 17px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px 4px rgba(29, 225, 255, 1);
}

/* .blessing:hover .blessing-radio {
  background-image: url(../images/tick.png);
  background-size: 70% 70%;
  background-repeat: no-repeat;
  background-position: center;
} */

.blessing:has(.about) {
  flex-direction: column;
  align-items: flex-start;
}

.blessing .about img {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.1rem;
}

.blessing:has(.about) .content {
  padding-left: 0.6rem;
}

.blessing:has(.svg-wrapper) {
  box-shadow: none;
  padding: 0.16rem 0.1rem !important;
}

.blessing:has(.svg-wrapper) .about,
.blessing:has(.svg-wrapper) .content {
  pointer-events: none;
}

.blessing:has(.svg-wrapper) .content {
  padding-left: 0.9rem !important;
  width: 2.7rem;
  height: 0.4rem;
  line-height: 0.4rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: nowrap;
}

.blessing .svg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 3rem;
  height: 1.3565rem;
}

.blessing .svg-wrapper svg {
  width: 100%;
  height: 100%;
}

.blessing .svg-wrapper:hover {
  filter: drop-shadow(0 0 4px rgba(29, 225, 255, 1))
    drop-shadow(0 0 8px rgba(29, 225, 255, 0.8));
}

.info {
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.1);
  padding: 15px;
  border-radius: 10px;
}

.send-blessing {
  position: absolute;
  bottom: 0.8rem;
  left: 0;
  /* transform: translateX(-50%); */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.send-blessing .label {
  margin-right: 0.25rem;
}

.send-blessing .label h4 {
  color: #fff;
  font-size: 0.36rem;
  margin-bottom: 0.1rem;
}

.send-blessing .label .hint {
  color: #bed3ed;
  font-size: 0.11rem;
}

.send-blessing .input-container input {
  border-radius: 0.3rem 0.3rem 0.3rem 0;
  width: 40vw;
  height: 0.5rem;
  background-color: rgba(255, 255, 255, 0.3);
  padding: 0 0.2rem;
  color: #fff;
}

.send-blessing .input-container button {
  width: 1rem;
  height: 0.5rem;
  border-radius: 0.3rem;
  background: linear-gradient(to right, #01265f, #ac413b);
  padding-right: 0.2rem;
  position: relative;
  color: #9ca98e;
  transform: translateX(-100%);
  cursor: pointer;
}

.send-blessing .input-container button:hover {
  color: #fff;
  box-shadow: 0 0 10px 6px rgba(29, 225, 255, 1);
}

.send-blessing .input-container button::after {
  content: " ";
  width: 0.2rem;
  height: 0.2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(70%, -50%);
  background-image: url(../images/send-button.png);
  background-repeat: no-repeat;
  background-size: 0.18rem 0.18rem;
  background-position: center;
}

.blessing-detail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(0.1rem);
  transform: translateY(-100%);
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blessing-detail.open {
  transform: translateY(0%);
}

.blessing-detail .content {
  color: #fff;
  font-size: 0.36rem;
  font-weight: 400;
}

.blessing-detail .QRcode {
  margin: 0.25rem 0;
  width: 2.32rem;
  height: 2.32rem;
}

.blessing-detail p {
  color: #fff;
  font-size: 0.24rem;
}

.building {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.96rem;
  height: 2rem;
  opacity: 0;
}

#spiralCanvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

#spiralImg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background-image: url(../images/spiral.png);
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
}

.float-blessings {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.float-blessings .item-box {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  /* animation: floatUpAndDown 3s ease-in-out infinite; */
  z-index:20;
}

.float-blessings .avatar {
  background-image: url(../images/circle.png);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 0.1rem;
  margin-right: 0.1rem;
  width: 0.8rem;
  height: 0.8rem;
}

.float-blessings .avatar img {
  width: 100%;
  height: 100%;
border-radius:50%;
}

.float-blessings .text {
  font-size: 0.24rem;
  color: #fff;
  font-weight: 300;
}

.to-send {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.2rem;
  cursor: pointer;
  z-index: 99;
  padding-top: 0.3rem;
  background-image: url(..//images/toSend.png);
  background-repeat: no-repeat;
  background-size: 0.76rem 0.14rem;
  background-position: center 25%;
  transition: font-size 0.3s ease;
}

.to-send:hover {
  font-size: 0.24rem;
}

.card-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /* display: none; */
}

.card-container .card {
  width: 3.69rem;
  height: 5.86rem;
  position: relative;
}

.card-container .card .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.card-container .card .logo {
  position: absolute;
  top: 6%;
  left: 6%;
  z-index: 1;
  transform: scale(0.6);
}

.card-container .card .text-container {
  position: absolute;
  z-index: 1;
  top: 45%;
  left: 16%;
  padding-top: 0.1rem;
  background-image: url(../images/ellipse3.png);
  background-repeat: no-repeat;
  background-size: 0.25rem 0.25rem;
  background-position: center top;
}

.card-container .card .text-container p {
  text-align: left;
  color: #2765ae;
  width: 2rem;
  margin-bottom: 0.1rem;
  line-height: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-container .card .blessing-QRcode {
  position: absolute;
  z-index: 1;
  bottom: 9.5%;
  right: 16%;
}

.card-container .card .blessing-QRcode img {
  width: 0.9rem;
  height: 0.9rem;
}

.card-container .card .blessing-QRcode p {
  color: #2765ae;
  font-size: 0.12rem;
  margin-top: 0.05rem;
}

.card-container .card::before {
  content: " ";
  position: absolute;
  width: 0.2rem;
  height: 0.2rem;
  background-image: url(../images/ellipse1.png);
  background-repeat: no-repeat;
  background-size: cover;
  left: -0.15rem;
  bottom: 18.5%;
  z-index: 999;
}

.card-container .card::after {
  content: " ";
  position: absolute;
  width: 0.4rem;
  height: 0.4rem;
  background-image: url(../images/ellipse2.png);
  background-repeat: no-repeat;
  background-size: cover;
  right: -0.2rem;
  top: 32%;
  z-index: 999;
}

.card-container .close-btn {
  width: 0.29rem;
  height: 0.29rem;
  cursor: pointer;
  margin-top: -0.2rem;
  z-index: 2;
}

#spiralCanvas {
  display: block;
}

.blur-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  mask: radial-gradient(
    circle 75vw at 50% 50%,
    transparent 40%,
    rgba(0, 0, 0, 0.3) 50%,
    black 60%
  );
  -webkit-mask: radial-gradient(
    circle 75vw at 50% 50%,
    transparent 40%,
    rgba(0, 0, 0, 0.3) 50%,
    black 60%
  );
  pointer-events: none;
  z-index: 10;
}

.back-btn {
  position: absolute;
  top: 12%;
  right: 4.5%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: 11;
}

.back-btn:hover {
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.back-btn img {
  pointer-events: none;
}

@keyframes floatUpAndDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  /* #spiralCanvas { display: none; } */

  #spiralImg,.blur-mask{
    display: none;
  }

  .float-blessings .item-box:nth-child(1) {
    top: 45%;
    left: 15%;
  }

  .float-blessings .item-box:nth-child(2) {
    top: 25%;
    right: 20%;
  }

  .float-blessings .item-box:nth-child(3) {
    top: 70%;
    right: 16%;
  }

  .send-blessing {
    flex-direction: column;
    transform: translateX(0);
  }

  .send-blessing .label h4 {
    font-size: 0.24rem;
  }

  .input-container {
    margin-top: 0.2rem;
  }

  .send-blessing .input-container button {
    position: absolute;
  }

  .send-blessing .input-container input {
    width: 70vw;
  }
}

@media (max-width: 768px) {
  .float-blessings .item-box:nth-child(1) {
    top: 15%;
    left: 20%;
  }

  h1 {
    font-size: 1.8rem;
  }

  .blessings-container {
    height: 50vh;
  }

  .blessing {
    padding: 6px 12px;
    font-size: 14px;
    margin: 0 8px;
  }
}