.bodys {
  background-color: #152d52;
}

.body {
  margin: auto;
  min-height: 100vh;
  background-color: #152d52;
  min-width: 320px;
  max-width: 750px;
  margin: 0px auto !important;
}

.top {
  position: relative;
  height: 9rem;
}

.top .marquee {
  position: absolute;
  background: rgba(0, 0, 0, .4);
  color: #f0b258;
}

.top .star {
  font-size: 2.65rem;
  position: relative;
}

.top .star .star_item {
  display: flex;
  align-items: center;
  position: absolute;
}

.top .star .star_item .star_img {
  width: 0.4em;
  z-index: 2;
  opacity: 0;
}

.top .star .star_item .text_img {
  width: 0.4em;
  opacity: 0;
}

.top .star .star_item .line {
  position: absolute;
  width: 0;
  height: .03em;
  background: #6e9ad7;
}

.top .J_ajaxForm {
  position: absolute;
  top: 5.5rem;
  left: 5.5%;
  right: 5.5%;
}

.top .star .star1 {
  right: 0.4em;
  bottom: 4.75em;
}

.top .star .star2 {
  right: 0.04em;
  bottom: 4.4em;
}

.top .star .star3 {
  right: 0.1em;
  bottom: 4em;
}

.top .star .star4 {
  right: 0.35em;
  bottom: 3.45em;
}

.top .star .star5 {
  right: 0.4em;
  bottom: 2.9em;
}

.top .star .star6 {
  right: 0.7em;
  bottom: 2.4em;
}

.top .star .star7 {
  right: 0.3em;
  bottom: 1.8em;
}

.top .star .star8 {
  right: 1em;
  bottom: 3.75em;
}

.top .star .star1 .star_img {
  animation: opacityScale .8s ease-in-out forwards;
}

.top .star .star1 .text_img {
  animation: opacityScale .8s ease-in-out .8s forwards;
}

.top .star .star1 .line {
  top: 0.2em;
  right: 0.55em;
  transform: rotate(223deg);
  transform-origin: right bottom;
  animation: line1 0.5s linear 1.6s forwards;
}

.top .star .star2 .star_img {
  animation: opacityScale .8s ease-in-out 2.1s forwards;
}

.top .star .star2 .text_img {
  animation: opacityScale .8s ease-in-out 2.9s forwards;
}

.top .star .star2 .line {
  top: 0.2em;
  right: 0.58em;
  transform: rotate(280deg);
  transform-origin: right bottom;
  animation: line1 0.5s linear 3.7s forwards;
}

.top .star .star3 .star_img {
  animation: opacityScale .8s ease-in-out 4.2s forwards;
}

.top .star .star3 .text_img {
  animation: opacityScale .8s ease-in-out 5s forwards;
}

.top .star .star3 .line {
  top: 0.2em;
  right: 0.6em;
  transform: rotate(293deg);
  transform-origin: right bottom;
  animation: line3 0.5s linear 5.8s forwards;
}

.top .star .star4 .star_img {
  animation: opacityScale .8s ease-in-out 6.3s forwards;
}

.top .star .star4 .text_img {
  animation: opacityScale .8s ease-in-out 7.1s forwards;
}

.top .star .star4 .line {
  top: 0.2em;
  right: 0.59em;
  transform: rotate(277deg);
  transform-origin: right bottom;
  animation: line4 0.5s linear 7.9s forwards;
}

.top .star .star5 .star_img {
  animation: opacityScale .8s ease-in-out 8.4s forwards;
}

.top .star .star5 .text_img {
  animation: opacityScale .8s ease-in-out 9.2s forwards;
}

.top .star .star5 .line {
  top: 0.2em;
  right: 0.6em;
  transform: rotate(301deg);
  transform-origin: right bottom;
  animation: line5 0.5s linear 10s forwards;
}

.top .star .star6 .star_img {
  animation: opacityScale .8s ease-in-out 10.5s forwards;
}

.top .star .star6 .text_img {
  animation: opacityScale .8s ease-in-out 11.3s forwards;
}

.top .star .star6 .line {
  top: 0.2em;
  right: 0.58em;
  transform: rotate(234deg);
  transform-origin: right bottom;
  animation: line6 0.5s linear 12.1s forwards;
}

.top .star .star7 .star_img {
  animation: opacityScale .8s ease-in-out 12.6s forwards;
}

.top .star .star7 .text_img {
  animation: opacityScale .8s ease-in-out 13.4s forwards;
}

.top .star .star8 .star_img {
  animation: opacityScale .8s ease-in-out 14.2s forwards;
}

.top .star .star8 .text_img {
  animation: opacityScale .8s ease-in-out 15s forwards;
}

.top .banner {
  position: relative;
}

.top .banner {
  display: flex;
  justify-content: center;
}

.m_img_bon {
  position: absolute;
  bottom: 2.6rem;
  box-sizing: border-box;
  padding: 0 22px;
}

.banner .m_img_bon img {
  width: 100%;
}

.m-box {
  margin: 0;
  background-color: #152d52;
  padding: 0.25rem;
  display: flex;
  justify-content: center;
}

.body .footer-wrap-box {
  color: #fff;
}

.body .footer-wrap-box .tips {
  color: #fff;
}

.body .top .J_ajaxForm .jieming-form__btn {
  height: 0.78rem;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url(images/m_bottom.png) no-repeat;
  background-repeat: round
}

.body .top .J_ajaxForm .jieming-form__btn a {
  height: 0.55rem;
  line-height: 0.55rem;
  flex: auto;
  color: transparent;
  background: url(images/btn-title.png?v=20200624154157) no-repeat;
  background-repeat: round
}

.body .public_test_fixed {
  align-content: center;
  height: 0.78rem;
  background: url(images/m_bottom.png) no-repeat;
  background-position: center;
}

.body .public_test_fixed span {
  height: 0.55rem;
  line-height: 0.55rem;
  flex: auto;
  color: transparent;
  background: url(images/btn-title.png?v=20200624154157) no-repeat center;
  background-position: center;
}

/* 八字 */
.top .J_ajaxForm {
  top: 0.5rem;
}

.home-view {
  margin-top: -2.5rem;
  min-height: auto;
  background-color: #152d52;
  padding-bottom: 0.5rem;
}

.home-view .submit-wrap {
  margin-top: 0;
}

.home-view .deal-container {
  color: #fff;
}

.home-view #opnum {
  color: rgb(255, 224, 120);
}

.home-view .other-wrap {
  display: flex;
  flex-direction: column;
  align-items: center
}

@keyframes opacityScale {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes line1 {
  0% {
    width: 0;
  }

  100% {
    width: 0.37em;
  }
}

@keyframes line3 {
  0% {
    width: 0;
  }

  100% {
    width: 0.5em;
  }
}

@keyframes line4 {
  0% {
    width: 0;
  }

  100% {
    width: 0.5em;
  }
}

@keyframes line5 {
  0% {
    width: 0;
  }

  100% {
    width: 0.5em;
  }
}

@keyframes line6 {
  0% {
    width: 0;
  }

  100% {
    width: 0.65em;
  }
}

/* 输入兼容样式 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
input:-internal-autofill-selected,
input:-internal-autofill-preview {
  /* 使用 box-shadow 覆盖背景（最有效） */
  box-shadow: 0 0 0 1000px #fff0ba inset !important;
  -webkit-box-shadow: 0 0 0 1000px #fff0ba inset !important;

  /* 文本颜色 */
  -webkit-text-fill-color: #333 !important;

  /* 阻止浏览器默认过渡 */
  transition: background-color 9999s ease-in-out 0s !important;
}

/* 移除 focus 时的白色背景 */
input:focus:-webkit-autofill,
input:focus:-internal-autofill-selected {
  background-color: transparent !important;
  box-shadow: 0 0 0 1000px #fff0ba inset !important;
}

input:not(:focus):-webkit-autofill,
input:not(:focus):-internal-autofill-selected {
  background-color: #fff0ba !important;
  box-shadow:
    0 0 0 1000px #fff0ba inset,
    inset 0 0 0 1px rgba(0, 0, 0, 0.1) !important;
}

.app3 .top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100vh;
}

.app3 .top .header_bg {
  width: 100%;
  height: 4rem;
  background-repeat: no-repeat;
  background-image: url(images/header_bg.png);
  background-size: contain;
}

.app3 .top .content {
  width: 100%;
  display: flex;
  position: relative;
  top: -1.15rem;
}

.app3 .top .content .left {
  position: relative;
  flex: 1 1 15%;
}

.app3 .top .content .left_shiye {
  background-image: url(images/left_shiye.png);
  background-size: contain;
  background-repeat: no-repeat;
  right: 0.3rem;
  top: 1.6rem;
  animation: zoomOutThenIn 3s infinite 1.5s ease-in-out;
}

.app3 .top .content .left_jiankang {
  background-image: url(images/left_jiankang.png);
  background-size: contain;
  background-repeat: no-repeat;
  top: -2.1rem;
  left: 0.4rem;
  animation: zoomOutThenIn 3s infinite ease-in-out;
}

.app3 .top .content .left_yinyuan {
  background-image: url(images/left_yinyuan.png);
  background-size: contain;
  background-repeat: no-repeat;
  top: 5.4rem;
  left: 0.3rem;
  animation: zoomOutThenIn 3s infinite 2.5s ease-in-out;
}



.app3 .top .content .left div {
  position: absolute;
  width: 20vw;
  height: 22vh;
  opacity: 0;
}

.app3 .top .content .right_caiyun {
  background-image: url(images/right_caiyun.png);
  background-size: contain;
  background-repeat: no-repeat;
  top: 6rem;
  left: 0.3rem;
  animation: zoomOutThenIn 3s infinite ease-in-out;
}

.app3 .top .content .right_guiren {
  background-image: url(images/right_guiren.png);
  background-size: contain;
  background-repeat: no-repeat;
  bottom: 7rem;
  left: 0.3rem;
  animation: zoomOutThenIn 3s infinite 2.5s ease-in-out;
}

.app3 .top .content .right_pingan {
  background-image: url(images/right_pingan.png);
  background-size: contain;
  background-repeat: no-repeat;
  top: 2rem;
  left: -0.3rem;
  animation: zoomOutThenIn 3s infinite 1.5s ease-in-out;
}

.app3 .top .content .right {
  position: relative;
  flex: 1 1 15%;
}

.app3 .top .content .right div {
  position: absolute;
  width: 20vw;
  height: 22vh;
  opacity: 0;
}

.app3 .top .content .contre_scys {
  width: 6rem;
  height: 10rem;
  background-image: url(images/3_img_home_0.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.app3 .top .content .centre {
  flex: 1 1 50%;
}

.app3 .top .navbar {
  padding: 0 1rem;
  bottom: 7.7rem;
  position: absolute;
}

/* type3生辰运势 */
.bodybackground {
  background-image: url(images/3_img_backgroun.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #f1c588;
}

.app3 .submit_btn {
  width: 9rem;
  height: 2rem;
  background-repeat: no-repeat;
  background-image: url(images/submit_btn.png);
  background-size: 100% auto
}
.app3 input {
  font-size: 0.4rem;
  border: none;
  outline: none;
  background-color: #e6d1a2;
}
.app3 input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
input:-internal-autofill-selected,
input:-internal-autofill-preview {
  /* 使用 box-shadow 覆盖背景（最有效） */
  box-shadow: 0 0 0 1000px rgb(231 211 164) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgb(231 211 164) inset !important;

  /* 文本颜色 */
  -webkit-text-fill-color: #333 !important;

  /* 阻止浏览器默认过渡 */
  transition: background-color 9999s ease-in-out 0s !important;
}

/* 移除 focus 时的白色背景 */
.app3 input:focus:-webkit-autofill,
input:focus:-internal-autofill-selected {
  background-color: transparent !important;
  box-shadow: 0 0 0 1000px rgb(231 211 164) inset !important;
}

.app3 input:not(:focus):-webkit-autofill,
.app3 input:not(:focus):-internal-autofill-selected {
  background-color: rgb(231 211 164) !important;
  box-shadow:
    0 0 0 1000px rgb(231 211 164) inset,
    inset 0 0 0 1px rgba(0, 0, 0, 0.1) !important;
}

.wh-full {
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, .5);
}

.book {
  width: 100vw;
  height: 70vh;
  position: relative;
  background-repeat: no-repeat;
  background-image: url(images/book_content_bg.png);
  background-size: 100% auto
}

.cover {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  background-image: url(images/3_img_home_0.png);
  background-size: 100% auto
}

.book .content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book .content .from{
  padding: 1.4rem;
}
.book .content .from .title{
  background-repeat: no-repeat;
  background-image: url(images/form_title.png);
  background-size: 100% auto;
  height: 7vh;
  margin-bottom: 0.2rem
}
.book .content .from form .line{
  display:flex;
  padding: 0.5rem;
  border: 0.01rem solid rgb(207 158 94);
  border-radius: 3rem 3rem;
  margin-bottom: 0.5rem;
  align-items: center;
}
.book .content .from form .line .label{
  font-size: 0.4rem;
  white-space: nowrap;
}
.book .content .from form .agreement-wrap{
  display:flex;
}
.book .content .from .bottom{
  height: 10vh
}
.app3 .relative{
  position: relative;
  top: -5.2rem;
}
.app3 .img1{
  background-repeat: no-repeat;
  background-image: url(images/stage_bg.png);
  background-size: 100% auto;
  height: 10rem;
  display: flex;
}
.app3 .img1 .image__img_3 {
  position: absolute;
  width: 2.59rem;
  top: 0.3rem;
  right: 0.46rem;
}
.app3 .img1 .image__img_1 {
  position: absolute;
  width: 2.59rem;
  top: 0.3rem;
  right: 0.46rem;
}
.app3 .img1 .image__img_bg{
  
}
.app3 .img1 .image__img_2 {
  position: absolute;
  width: 2.59rem;
  top: 0.3rem;
  right: 0.46rem;
}
.app3 .img1 .left_img{
  top: 2.5rem;
  left: 0.8rem;
  position: relative;
  width: 3.5rem;
}
.app3 .img1  .right_text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 1.5rem;
}

.right_text .list {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.4rem;
}
.right_text .list .young {
  width: 60%;
  height: 0.8rem;
  background-repeat: no-repeat;
  background-image: url(images/young_title.png);
  background-size: 100% auto;
}
.right_text .list .middle_age {
  width: 60%;
  height: 0.8rem;
  background-repeat: no-repeat;
  background-image: url(images/middle_age_title.png);
  background-size: 100% auto;
}
.right_text .list .old {
  width: 60%;
  height: 0.8rem;
  background-repeat: no-repeat;
  background-image: url(images/old_title.png);
  background-size: 100% auto;
}
.app3 .img2{
  background-repeat: no-repeat;
  background-image: url(images/life_bg.png);
  background-size: 100% auto;
  height: 23.5rem;
}
.app3 .img2 .Sudoku{
  position: relative;
  display: flex;
  justify-content: center;
}
.app3 .img2 .Sudoku .middle{
  position: absolute;
  top: 4.3rem;
  width: 4.9rem;
  z-index: 2;
}
.app3 .img2 .Sudoku .middle img:first-child, .app3 .img2 .Sudoku .middle img:nth-child(2){
  position: absolute;
}
.app3 .img2 .Sudoku .middle img{
  animation: showA 9s infinite;
}
.app3 .img2 .Sudoku .middle img:nth-child(2){
  animation: showB 9s infinite;
}
.app3 .img2 .Sudoku .middle img:nth-child(3){
  animation: showC 9s infinite;
}
.app3 .img2 .side{
  position: absolute;
  top: 3.7rem;
  width: 7.8rem;
  height: 3.6rem;
}
.app3 .img2 .side img{
  width: 2.3rem;
  position: absolute;
  top: 2.2rem;
  left: -0.2rem;
  z-index: 1;
  opacity: 0;
  animation: showA 9s infinite;
}
.app3 .img2 .side img:nth-child(2){
  top: -0.3rem;
  left: 1.7rem;
  animation: showB 9s infinite;
}
.app3 .img2 .side img:nth-child(3){
  left: 5.63rem;
  top: 0.95rem;
  animation: showC 9s infinite;
}
.app3 .img3{
  background-repeat: no-repeat;
  background-image: url(images/progress_bg.png);
  background-size: 100% auto;
  height: 25.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
}
.app3 .img3 img {
    width: 2rem;
    margin: 0 1.4rem;
}
.app3 .img3 img:first-child {
  margin-top: 4.15rem;
}
.app3 .img3 img:first-child ~ img{
  margin-top: 1.05rem;
}
.app3 .img4{
  background-repeat: no-repeat;
  background-image: url(images/port_bg.png);
  background-size: 100% auto;
  height: 19.2rem;
}
.app3 .img4 .time_affair{
  display: flex;
  width: 100%;
}
.app3 .img4 .time_affair:first-child,.time_affair:nth-child(4){
  justify-content: flex-end;
}
.app3 .img4 .timelist{
  position: absolute;
  top: 7.8rem;
  left: 1.1rem;
  height: 5.1rem;
  width: 7.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.app3 .img4 .timelist .time_affair img {
  max-width: 100%;  /* 防止超出容器宽度 */
  max-height: 100%; /* 防止超出容器高度 */
  width: 3.48rem;      /* 保持原始宽高比 */
  height: auto;     /* 保持原始宽高比 */
  object-fit: contain; /* 保持比例完整显示 */
}
.app3 .img4 .timelist .time_affair img:first-child{
  width: 0.8rem;
}
.app3 .img4 .timelist .time_affair:nth-child(2) img:first-child{
  width: 3.48rem;
}
.app3 .img4 .timelist .time_affair:nth-child(2) img:last-child{
  width: 0.8rem;
}
.app3 .img4 .timelist .time_affair:nth-child(3) img:first-child{
  width: 3.48rem;
}
.app3 .img4 .timelist .time_affair:nth-child(3) img:last-child{
  width: 0.8rem;
}
.app3 .img4 .timelist .time_affair:nth-child(5) img:first-child{
  width: 3.48rem;
}
.app3 .img4 .timelist .time_affair:nth-child(5) img:last-child{
  width: 0.8rem;
}
.app3 .img5{
  background-repeat: no-repeat;
  background-image: url(images/open_bg.png);
  background-size: 100% auto;
  height: 17.2rem;
}
.app3 .img5 .content{
  display: flex;
  justify-content: space-evenly;
  position: absolute;
  width: 90%;
  left: 0.5rem;
  bottom: 4.8rem;
  height: 3.1rem;
}

.app3 .img5 .content img{
  width: 2rem;
  height:2rem;
  animation: upDown 2s ease-in-out infinite;
}
.app3 .img5 .content img:first-child, .app3 .img5 .content img:last-child{
  align-self: end;
}
.page-flip {
  z-index: 2;
  transform-origin: left center;
  /* 从左侧翻页 */
  perspective: 1000px;
  /* 3D透视效果 */
}

.elastic-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  opacity: 0;
  z-index: 1000;
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
}

.elastic-overlay.show {
  animation: elasticExpand 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.elastic-overlay.show .page-flip {
  animation: flipDisappear 1.5s ease-in-out 0.8s forwards;
}

@keyframes elasticExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
  }

  70% {
    transform: translate(-50%, -50%) scale(1.05);
    border-radius: 30%;
  }

  100% {
    width: 100vw;
    height: 100vh;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 0;
  }
}

@keyframes flipDisappear {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
  }

  100% {
    transform: rotateY(-180deg);
    /* 向里翻转 */
    opacity: 0;
    display: none;
    /* 可选：动画结束后隐藏 */
  }
}

@keyframes zoomOutThenIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1);
    opacity: 1;
    display: none;
  }

  100% {
    transform: scale(0);
    opacity: 0;
    display: block;
  }
}

@keyframes upDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.5rem);
  }
}
@keyframes Sudoku {
   /* 总周期40秒：A显示3秒 → 隐藏3秒 → 等待 → 再显示3秒 → 隐藏7秒 */
  0%,7.5%{
    opacity: 1;
    visibility: visible;
  }
  7.5%,15%{
    opacity: 0;
    visibility: hidden;
  }
  15%,22.5%{
    opacity: 0;
    visibility: hidden;
  }
  22.5%,30%{
    opacity: 1;
    visibility: visible;
  }
  30%,37.5%{
    opacity: 0;
    visibility: hidden;
  }
  37.5%,45%{
    opacity: 0;
    visibility: hidden;
  }
  45%,52.5%{
    opacity: 1;
    visibility: visible;
  }
  52.5%,60%{
    opacity: 0;
    visibility: hidden;
  }
  60%,67.5%{
    opacity: 0;
    visibility: hidden;
  }
  67.5%,75%{
    opacity: 1;
    visibility: visible;
  }
  75%,82.5%{
    opacity: 0;
    visibility: hidden;
  }
  82.5%,90%{
    opacity: 0;
    visibility: hidden;
  }
  90%,100%{
    opacity: 1;
    visibility: visible;
  }
}
@keyframes showA {
  0%, 33.33333333% { opacity: 1; visibility: visible; }
  33.33333334%, 100% { opacity: 0; visibility: hidden; }
}
@keyframes showB {
  0%, 33.33333333% { opacity: 0; visibility: hidden; }
  33.33333334%, 66.66666666% { opacity: 1; visibility: visible; }
  66.66666667%, 100% { opacity: 0; visibility: hidden; }
}
@keyframes showC {
  0%, 66.66666666% { opacity: 0; visibility: hidden; }
  66.66666667%, 100% { opacity: 1; visibility: visible; }
}