html,
body {
  min-height: 100%;
  margin: 0;
  background: #c89b5a !important;
}

body.ksn-skin {
  color: #8e1b14;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

body.ksn-skin .order-and-complaint-container {
  display: none !important;
}

body.ksn-skin .navTop {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 27px !important;
  overflow: hidden !important;
  background: #24211f !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 27px !important;
  white-space: nowrap !important;
}

body.ksn-skin .navTop > * {
  display: none !important;
}

body.ksn-skin .navTop::before {
  content: "测算结果仅供娱乐,我平台产品拒绝向未成年提供服务,如未成年人使用且造成一切后果由其监护人自动承担！";
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-overflow: clip;
  white-space: nowrap;
}

body.ksn-skin .module-box,
body.ksn-skin .homeImgGroups {
  display: none !important;
}

body.ksn-skin img[src*="/bazizh/picture/secure.png"]:not(.ksn-footer__secure),
body.ksn-skin img[src*="/bazizh/picture/ms61.png"],
body.ksn-skin .ali_log {
  display: none !important;
}

body.ksn-skin .ksn-problem-line {
  position: relative;
  z-index: 6;
  margin: 0 auto 6px !important;
  color: #c21d14;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  pointer-events: none;
  transform: translateY(-38px);
}

body.ksn-skin #trackEvent1 {
  top: 618px !important;
}

body.ksn-skin .test {
  color: #b71913 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin-top: 42px !important;
  padding-top: 22px !important;
  text-align: center !important;
}

body.ksn-skin .test .agree,
body.ksn-skin .test a {
  color: #b71913 !important;
  font-size: 14px !important;
  text-decoration: none !important;
}

.ksn-footer {
  padding: 10px 18px 22px;
  background: #f6c98c;
  color: #c21d14;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.ksn-footer p {
  margin: 0;
}

.ksn-footer__agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 12px;
  color: #5e4b3b;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.ksn-footer__agree input {
  position: relative;
  appearance: none;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid #e4e4e4;
  border-radius: 50%;
  background: #fff;
}

.ksn-footer__agree input:checked {
  border-color: #c21d14;
  background: #c21d14;
}

.ksn-footer__agree input:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ksn-footer a {
  color: #7b2e18;
  text-decoration: underline;
}

.ksn-footer__brand,
.ksn-footer__phone,
.ksn-footer__addr {
  color: #d02116;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.ksn-footer__secure {
  display: block;
  width: 100%;
  max-width: 368px;
  margin: 8px auto 0;
}

.ksn-float-actions {
  position: fixed;
  right: calc(50% - 250px);
  bottom: 236px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.ksn-float-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 90px;
  padding: 10px 4px;
  border-radius: 6px 0 0 6px;
  background: #050505;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}

.ksn-float-actions a svg {
  display: block;
  margin: 0 auto 5px;
}

.ksn-float-actions a span {
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}

.ksn-float-actions a:last-child {
  background: #050505;
  color: #fff;
}

body.ksn-form-active {
  background: #f1c588 !important;
}

body.ksn-form-active .ksn-float-actions,
body.ksn-form-active .szys-form-form .server,
body.ksn-form-active .szys-form-form .m-order-history {
  display: none !important;
}

body.ksn-form-active .szys-form-wrap.index_content {
  min-height: 812px !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  background-size: 10rem 100% !important;
}

body.ksn-form-active .szys-form-wrap .test_page {
  min-height: 812px !important;
  overflow: hidden !important;
  background-size: 100% 100% !important;
}

body.ksn-form-active .szys-form-wrap .book_inside {
  width: 9.62rem !important;
  min-height: 16.7rem !important;
  background-size: 10rem 16.7rem !important;
}

body.ksn-form-active .szys-form-wrap .book_inside .book_paper {
  min-height: 15.72rem !important;
  padding-top: .86rem !important;
}

body.ksn-form-active .szys-form-wrap .book_inside .info_title {
  margin-bottom: .74rem !important;
}

body.ksn-form-active .szys-form-wrap .book_inside .field-item {
  height: 1.28rem !important;
  margin-bottom: .56rem !important;
}

body.ksn-form-active .szys-form-wrap .book_inside .field-item .label {
  min-width: 1.32rem !important;
  padding-left: .48rem !important;
  padding-right: .34rem !important;
  color: #222 !important;
  font-size: .43rem !important;
}

body.ksn-form-active .szys-form-wrap .book_inside .field-item .van-field__control,
body.ksn-form-active .szys-form-wrap .book_inside .field-item .input-value {
  color: #2d3034 !important;
  font-size: .38rem !important;
  font-weight: 500 !important;
}

body.ksn-form-active .szys-form-wrap .book_inside .field-item .van-field__control::placeholder,
body.ksn-form-active .szys-form-wrap .book_inside .field-item .input-value::placeholder {
  color: #8e969f !important;
}

body.ksn-form-active .szys-form-wrap .book_inside .field-item .sex-item {
  border: 0 !important;
  background: transparent !important;
  color: #9da3b5 !important;
  font-size: .4rem !important;
}

body.ksn-form-active .szys-form-wrap .book_inside .field-item .sex-item.active {
  background: #d8ad38 !important;
  color: #111 !important;
}

body.ksn-form-active .szys-form-wrap .btnTest {
  margin-top: .72rem !important;
}

body.ksn-form-active .szys-form-wrap .ali_log {
  display: block !important;
  width: 5.35rem !important;
  height: auto !important;
  top: 12.56rem !important;
  left: 2.05rem !important;
  opacity: .9 !important;
}

/* 隐藏原应用重复的底部固定测算按钮 */
body.ksn-skin .szys-bottom-start-btn {
  display: none !important;
}

/* 底部留白统一为深金色，对齐另一站观感 */
body.ksn-skin #page.home,
body.ksn-skin .home_box.index_page,
body.ksn-skin #ziweitf3,
body.ksn-skin .home.ispc {
  background-color: #c89b5a !important;
}

/* 收窄首页底部多余留白 */
body.ksn-skin .home_box.index_page,
body.ksn-skin .index_content {
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 540px) {
  body.ksn-skin #trackEvent1 {
    top: 123.6vw !important;
  }

  body.ksn-skin .navTop::before {
    font-size: 12px;
  }

  body.ksn-skin .ksn-problem-line {
    font-size: 12px;
  }

  .ksn-float-actions {
    right: 0;
    bottom: 210px;
    gap: 52px;
  }

  .ksn-float-actions a {
    width: 40px;
    min-height: 84px;
    height: auto;
    font-size: 13px;
  }

  .ksn-footer__agree {
    font-size: 13px;
  }
}

.ksn-order-back {
  height: 32px;
  margin: 12px 12px 0;
  color: #333;
  font-size: 12px;
  line-height: 32px;
  text-align: left;
}

.ksn-order-back:active {
  opacity: .72;
}

.ksn-order-service-link {
  display: block;
  margin: 26px auto 14px;
  color: #b71913;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  text-decoration: underline;
}

.ksn-agreement-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ksn-agreement-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.ksn-agreement-modal__panel {
  position: relative;
  z-index: 1;
  width: min(330px, 100%);
  max-height: 76vh;
  overflow: auto;
  padding: 18px 18px 16px;
  border-radius: 8px;
  background: #fffaf2;
  color: #563829;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

.ksn-agreement-modal__panel h3 {
  margin: 0 28px 12px;
  color: #8e1b14;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.ksn-agreement-modal__body p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}

.ksn-agreement-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #8e1b14;
  font-size: 24px;
  line-height: 28px;
}

.ksn-agreement-modal__ok {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 8px;
  border: 0;
  border-radius: 19px;
  background: #c21d14;
  color: #fff;
  font-size: 15px;
}

.ksn-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #333;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.ksn-confirm-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .52);
}

.ksn-confirm-modal__panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100vw);
  max-height: 72vh;
  overflow: auto;
  padding: 23px 20px 22px;
  border-radius: 14px 14px 0 0;
  background: #fff;
  box-sizing: border-box;
}

.ksn-confirm-modal__panel h3 {
  margin: 0 48px 20px 0;
  color: #333;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
}

.ksn-confirm-modal__close {
  position: absolute;
  top: 22px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #8b8b8b;
  font-size: 42px;
  font-weight: 200;
  line-height: 28px;
}

.ksn-confirm-modal__rule {
  height: 1px;
  margin-bottom: 15px;
  background: #ededed;
}

.ksn-confirm-modal__section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 11px;
  color: #c27c18;
  font-size: 18px;
  font-weight: 800;
}

.ksn-confirm-modal__section span {
  width: 28px;
  height: 1px;
  background: #e3bd86;
}

.ksn-confirm-modal__section b::before,
.ksn-confirm-modal__section b::after {
  content: "◇";
  margin: 0 8px;
  color: #d39a4d;
  font-size: 13px;
}

.ksn-confirm-modal__box {
  margin: 0 0 16px;
  padding: 16px 10px;
  background: #f7f7f7;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.ksn-confirm-modal__birth {
  color: #666;
  font-weight: 500;
  padding-top: 18px;
  padding-bottom: 18px;
}

.ksn-confirm-modal__birth p {
  margin: 0 0 10px;
}

.ksn-confirm-modal__birth p:last-child {
  margin-bottom: 0;
}

.ksn-confirm-modal__edit {
  display: block;
  margin: 4px auto 16px;
  border: 0;
  background: transparent;
  color: #d00;
  font-size: 17px;
  line-height: 28px;
}

.ksn-confirm-modal__edit i {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 5px;
  border: 2px solid currentColor;
  border-left: 0;
  border-top: 0;
  transform: translateY(2px);
}

.ksn-confirm-modal__submit {
  display: block;
  width: min(326px, 82vw);
  height: 58px;
  margin: 0 auto;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #eb7465 0%, #db5449 48%, #cb3a31 100%);
  color: #fff6df;
  font-size: 20px;
  font-weight: 800;
  line-height: 58px;
  text-align: center;
  box-shadow: 0 0 0 2px #e6b24e inset, 0 2px 0 #a33620, 0 7px 16px rgba(100, 40, 0, .25);
}

.ksn-result-cta {
  display: block;
  width: min(310px, 82vw);
  height: 54px;
  margin: 0 auto;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbd786 0%, #d79939 100%);
  color: #b22018;
  font-size: 21px;
  font-weight: 800;
  line-height: 54px;
  text-align: center;
  box-shadow: 0 3px 0 #a33620, 0 7px 16px rgba(100, 40, 0, .25);
}

body.ksn-flow-active {
  overflow: hidden !important;
  background: #ff9a25 !important;
}

body.ksn-flow-active .szys-pay-root,
body.ksn-flow-active .ksn-float-actions,
body.ksn-flow-active .navTop {
  visibility: hidden !important;
}

body.ksn-flow-active .szys-pay-mask {
  display: none !important;
}

.ksn-flow-view {
  position: fixed;
  inset: 0;
  z-index: 90000;
  width: auto; max-width: 420px; margin: 0 auto;
  height: 100vh;
  overflow: hidden auto;
  background: linear-gradient(180deg, #ff8442 0%, #ff9521 44%, #f8c77f 100%);
  color: #fff;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  text-align: center;
  box-sizing: border-box;
}

.ksn-flow-bg::before,
.ksn-flow-bg::after {
  content: "";
  position: fixed;
  top: 78px;
  width: 132px;
  height: 320px;
  opacity: .26;
  background:
    radial-gradient(circle at 50% 45%, transparent 0 36px, rgba(255, 223, 128, .7) 37px 47px, transparent 48px),
    radial-gradient(circle at 50% 45%, rgba(255, 231, 142, .45), transparent 70px);
  border-radius: 80px;
  pointer-events: none;
}

.ksn-flow-bg::before {
  left: -64px;
}

.ksn-flow-bg::after {
  right: -64px;
}

.ksn-flow-view h1 {
  position: relative;
  z-index: 1;
  margin: 78px auto 44px;
  color: #fff6d8;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(176, 47, 0, .32);
  white-space: nowrap;
}

.ksn-pillar-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  width: min(350px, 86vw);
  margin: 0 auto 78px;
}

.ksn-pillar-row div {
  width: 72px;
  color: rgba(255, 255, 255, .92);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.ksn-pillar-row b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #d64230;
  font-size: 14px;
}

.ksn-pillar-row div:nth-child(3) {
  opacity: .55;
}

.ksn-luopan {
  position: relative;
  z-index: 1;
  width: 234px;
  height: 234px;
  margin: 0 auto 24px;
}

.ksn-luopan img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 50%;
  animation: ksn-wheel-rotate 8s linear infinite;
  will-change: transform;
}

.ksn-luopan-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 3px solid #ff3b37;
  border-radius: 10px;
  background: rgba(255, 249, 224, .96);
  transform: translate(-50%, -50%);
  display: none;
}

.ksn-luopan-core i {
  color: #c21d14;
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
  line-height: 1.15;
}

.ksn-load-card {
  position: relative;
  z-index: 1;
  width: min(410px, calc(100vw - 18px));
  margin: 24px auto 0;
  padding: 18px 34px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
}

.ksn-load-tabs {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #426073;
}

.ksn-load-tabs span {
  position: relative;
  padding: 4px 2px 14px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
}

.ksn-load-tabs span.is-active {
  color: #ec1111;
}

.ksn-load-tabs span.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: #f0a92e;
  transform: translateX(-50%);
}

.ksn-load-item {
  margin-top: 31px;
  text-align: left;
}

.ksn-load-item p {
  margin: 0 0 13px;
  color: #333;
  font-size: 15px;
  font-weight: 600;
}

.ksn-load-bar {
  height: 6px;
  border-radius: 999px;
  background: #f3ede3;
  overflow: hidden;
}

.ksn-load-bar i {
  display: block;
  height: 100%;
  width: 30%;
  border-radius: 999px;
  background: #fb0202;
  animation: ksn-load-fill 2.2s ease-in-out infinite;
}

@keyframes ksn-load-fill {
  0% { width: 8%; }
  70% { width: 92%; }
  100% { width: 100%; }
}

.ksn-loading-tip {
  margin: 34px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
}

.ksn-flow-view--loading-wheel h1 {
  margin-bottom: 44px;
}

.ksn-flow-view--loading-wheel .ksn-luopan {
  margin-top: 0;
}

.ksn-flow-view--loading-progress h1 {
  margin: 78px auto 36px;
}

.ksn-flow-user-lines {
  position: relative;
  z-index: 1;
  width: min(382px, 90vw);
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.85;
  text-align: left;
}

.ksn-flow-user-lines p {
  display: flex;
  margin: 0 0 10px;
}

.ksn-flow-user-lines span {
  display: inline-block;
  width: 86px;
  letter-spacing: 10px;
}

.ksn-flow-user-lines p:last-child span {
  width: 112px;
  letter-spacing: 0;
}

.ksn-flow-user-lines b {
  flex: 1;
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
}

.ksn-flow-view--loading-progress .ksn-load-card {
  margin-top: 0;
}

@keyframes ksn-wheel-rotate {
  to {
    transform: rotate(360deg);
  }
}

.ksn-flow-view--result {
  padding: 1px 12px 70px;
}

.ksn-flow-view--result h1 {
  margin-top: 28px;
  margin-bottom: 86px;
  font-size: 27px;
}

.ksn-result-summary {
  position: relative;
  z-index: 1;
  margin: -48px auto 22px;
  color: #fff;
  font-size: 24px;
  line-height: 1.32;
}

.ksn-result-summary p {
  margin: 0;
}

.ksn-result-title {
  position: relative;
  z-index: 1;
  margin: 0 auto 20px;
  color: #202020;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.ksn-result-title span {
  color: #df2f22;
  font-size: 36px;
}

.ksn-badge-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 20px;
  max-width: 350px;
  margin: 0 auto 28px;
}

.ksn-badge-grid b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 7px solid rgba(219, 52, 36, .68);
  border-radius: 50%;
  background: radial-gradient(circle, #fff9da 0 46%, #f7d289 47% 64%, #c92c20 65% 100%);
  color: #b02218;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.18;
  box-shadow: 0 0 0 3px rgba(255, 230, 160, .78);
}

.ksn-result-note {
  position: relative;
  z-index: 1;
  margin: 0 auto 28px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  white-space: normal;
}

.ksn-flow-view--payment-success {
  display: block;
  min-height: 100dvh;
  padding: 0;
  box-sizing: border-box;
}

.ksn-payment-success {
  min-height: 100dvh;
  overflow: hidden;
  background: #edc585 url('/bazizh/picture/ksn-payment-success-backdrop-v1.png') center top / cover no-repeat;
  color: #87371c;
  text-align: center;
  box-sizing: border-box;
}

.ksn-payment-success__content {
  width: min(430px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px 16px 38px;
  box-sizing: border-box;
}

.ksn-payment-success__topbar {
  min-height: 36px;
  color: #2e251f;
  font-size: 22px;
  font-weight: 700;
  line-height: 36px;
}

.ksn-payment-success__hero {
  padding-top: 36px;
}

.ksn-payment-success__hero h1 {
  margin: 0;
  color: #9d341b;
  font-family: STKaiti, KaiTi, "Microsoft YaHei", sans-serif;
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 2px;
  text-shadow: 0 1px 0 rgba(255, 239, 188, .8);
}

.ksn-payment-success__hero > p {
  margin: 10px 0 14px;
  color: #9e4a2d;
  font-family: STKaiti, KaiTi, "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.ksn-payment-success__card {
  position: relative;
  width: min(178px, 47vw);
  margin: 0 auto -2px;
}

.ksn-payment-success__card img {
  display: block;
  width: 100%;
  height: auto;
}

.ksn-payment-success__card strong {
  position: absolute;
  right: 10%;
  bottom: 20%;
  left: 10%;
  color: #ffe7a6;
  font-family: STKaiti, KaiTi, "Microsoft YaHei", sans-serif;
  font-size: clamp(23px, 6vw, 31px);
  line-height: 1.2;
  letter-spacing: 2px;
  text-shadow: 0 2px 1px rgba(83, 21, 8, .42);
}

.ksn-payment-success__cta {
  display: block;
  width: min(360px, 100%);
  min-height: 70px;
  margin: 8px auto 32px;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  background: #a62e1a;
  box-shadow: inset 0 0 0 3px #f0be6d, 0 5px 0 #6c2919;
  color: #ffe3a1;
  font-family: STKaiti, KaiTi, "Microsoft YaHei", sans-serif;
  font-size: clamp(22px, 6.4vw, 29px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 1px;
}

.ksn-payment-success__cta:active {
  transform: translateY(3px);
  box-shadow: inset 0 0 0 3px #f0be6d, 0 2px 0 #6c2919;
}

.ksn-payment-success__report {
  padding: 14px 10px 16px;
  background: rgba(255, 229, 168, .84);
  box-shadow: inset 0 0 0 2px rgba(166, 79, 31, .26);
}

.ksn-payment-success__report h2 {
  margin: 0 0 10px;
  color: #ffe0a0;
  font-family: STKaiti, KaiTi, "Microsoft YaHei", sans-serif;
  font-size: clamp(20px, 5.8vw, 26px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 #a6331c, 0 0 8px #a6331c;
}

.ksn-payment-success__report > img {
  display: block;
  width: 100%;
  margin: 0 auto -14px;
}

.ksn-payment-success__report-copy {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin: 0 2px 12px;
}

.ksn-payment-success__report-copy p {
  margin: 0;
  color: #8f3a23;
  font-family: STKaiti, KaiTi, "Microsoft YaHei", sans-serif;
  font-size: clamp(12px, 3.7vw, 16px);
  font-weight: 700;
  line-height: 1.25;
}

.ksn-payment-success__report-copy b,
.ksn-payment-success__report-copy span {
  display: block;
}

.ksn-payment-success__report-copy span {
  margin-top: 4px;
  color: #9e6a4c;
  font-size: .9em;
  font-weight: 500;
}

.ksn-payment-success__report > em {
  display: block;
  margin: 0;
  color: #9d4a2d;
  font-family: STKaiti, KaiTi, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
}

.ksn-payment-success__waiting {
  margin: 26px 0 14px;
  padding: 12px 14px;
  background: #a62e1a;
  box-shadow: inset 0 0 0 2px #efb764;
  color: #ffe0a0;
  font-family: STKaiti, KaiTi, "Microsoft YaHei", sans-serif;
  font-size: clamp(18px, 5.4vw, 24px);
  font-weight: 900;
  line-height: 1.35;
}

.ksn-payment-success__help {
  margin: 0;
  color: #9d4a2d;
  font-family: STKaiti, KaiTi, "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 340px) {
  .ksn-payment-success__content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .ksn-payment-success__hero {
    padding-top: 22px;
  }

  .ksn-payment-success__cta {
    min-height: 58px;
    margin-bottom: 24px;
  }
}

.ksn-result-note span,
.ksn-profile-note span {
  color: #f01818;
}

.ksn-result-cta {
  width: min(310px, 82vw);
  height: 52px;
  color: #a52318;
  font-size: 22px;
}

.ksn-unlock-mask {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
}

body.ksn-flow-pay-open .ksn-unlock-mask {
  display: flex;
}

.ksn-unlock-panel {
  width: min(430px, 100vw);
  max-height: calc(100vh - 218px);
  overflow: auto;
  margin-top: 218px;
  padding: 22px 14px 26px;
  border-radius: 8px 8px 0 0;
  background: #fffbd0;
  color: #333;
  box-sizing: border-box;
}

.ksn-unlock-card {
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 14px;
  align-items: center;
  padding: 8px 6px 18px;
  border-bottom: 1px solid #eadf82;
  text-align: left;
}

.ksn-master {
  width: 142px;
  height: 156px;
  margin: 0 auto;
  background: transparent;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.ksn-master img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ksn-master::after {
  content: none;
}

.ksn-profile h2 {
  margin: 0 0 11px;
  color: #262626;
  font-size: 17px;
  font-weight: 800;
}

.ksn-profile p {
  margin: 0 0 9px;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.ksn-profile p span {
  color: #d31313;
}

.ksn-profile .ksn-profile-note {
  margin-top: 10px;
  color: #444;
  font-size: 14px;
  font-weight: 700;
}

.ksn-price-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 4px 14px;
  border-bottom: 1px solid #eadf82;
  text-align: left;
}

.ksn-price-row b {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 4px;
  background: #cf2424;
  color: #fff;
  font-size: 15px;
}

.ksn-price-row del {
  display: block;
  margin-top: 5px;
  color: #999;
  font-size: 14px;
  font-weight: 700;
}

.ksn-price-row span {
  display: block;
  color: #333;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.ksn-price-row em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  font-style: normal;
}

.ksn-price-row em b {
  min-width: 24px;
  padding: 3px 4px;
  border-radius: 4px;
  background: #d02424;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.ksn-price-row em i {
  color: #d02424;
  font-size: 15px;
  font-weight: 800;
  font-style: normal;
}

.ksn-pay-options {
  padding: 18px 4px 20px;
}

.ksn-pay-option {
  display: flex;
  align-items: center;
  width: 100%;
  height: 58px;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 18px;
  font-weight: 800;
  text-align: left;
}

.ksn-pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 14px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-style: normal;
}

.ksn-pay-icon--wx {
  background: #10b51f;
}

.ksn-pay-icon--ali {
  background: #1ba8ee;
}

.ksn-pay-option b {
  width: 18px;
  height: 18px;
  margin-left: auto;
  border: 1px solid #24a7e8;
  border-radius: 50%;
  background: #fff;
}

.ksn-pay-option.is-selected b {
  border-color: #1caf31;
  background: radial-gradient(circle, #1caf31 0 48%, #fff 50% 100%);
}

.ksn-unlock-submit {
  display: block;
  width: min(364px, 86vw);
  height: 58px;
  margin: 4px auto 0;
  border: 0;
  border-radius: 29px;
  background: #d12626;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

@media (max-width: 360px) {
  .ksn-flow-view h1 {
    font-size: 24px;
  }

  .ksn-result-title {
    font-size: 19px;
  }

  .ksn-badge-grid {
    gap: 13px 14px;
  }

  .ksn-badge-grid b {
    width: 66px;
    height: 66px;
    font-size: 15px;
  }
}


/* 2026-07-09: staged calculation flow */
.ksn-flow-view--loading .ksn-flow-user-lines p {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}

.ksn-flow-view--loading .ksn-flow-user-lines p.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ksn-flow-view--loading .ksn-load-bar i {
  animation: none !important;
  transition: width .45s ease;
}

.ksn-flow-view--loading .ksn-load-card {
  min-height: 222px;
}

.ksn-flow-view--bazi-wheel h1 {
  margin-bottom: 24px;
}

.ksn-bazi-current,
.ksn-stage-title {
  position: relative;
  z-index: 1;
  width: min(382px, 90vw);
  margin: 0 auto 22px;
  color: #fff8df;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
  text-shadow: 0 2px 7px rgba(150, 45, 0, .24);
}

.ksn-bazi-current b,
.ksn-stage-title b {
  color: #fff;
  font-size: 24px;
}

.ksn-pillar-row--sequence {
  margin-bottom: 34px;
}

.ksn-pillar-row--sequence div {
  opacity: .38;
  transform: translateY(8px) scale(.96);
  transition: opacity .35s ease, transform .35s ease;
}

.ksn-pillar-row--sequence div.is-visible {
  opacity: .9;
  transform: translateY(0) scale(1);
}

.ksn-pillar-row--sequence div.is-active {
  opacity: 1;
}

.ksn-pillar-row--sequence div.is-active b {
  background: #fff6d8;
  color: #e21b16;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18);
}

.ksn-flow-view--bazi-wheel .ksn-luopan {
  width: 260px;
  height: 260px;
  margin-top: 0;
}

.ksn-flow-view--bazi-wheel .ksn-luopan img {
  animation: none !important;
  transition: transform .65s cubic-bezier(.2, .8, .2, 1);
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core {
  display: flex;
}

.ksn-flow-view--three-bars h1 {
  margin-bottom: 22px;
}

.ksn-flow-view--three-bars .ksn-load-card {
  margin-top: 24px;
  min-height: 306px;
}

.ksn-flow-view--three-bars .ksn-load-item {
  margin-top: 27px;
}

.ksn-flow-view--three-bars .ksn-load-item p {
  font-size: 15px;
}

.ksn-flow-view--final-bars .ksn-load-tabs span.is-active {
  color: #d52214;
}

@media (max-width: 360px) {
  .ksn-bazi-current,
  .ksn-stage-title {
    font-size: 17px;
  }

  .ksn-flow-view--bazi-wheel .ksn-luopan {
    width: 232px;
    height: 232px;
  }

  .ksn-flow-view--three-bars .ksn-load-card {
    min-height: 290px;
  }
}

/* 2026-07-09 smooth wheel and progress refinement */
.ksn-load-bar i {
  width: var(--ksn-progress, 0%);
}

.ksn-flow-view--loading .ksn-load-bar i {
  animation: none !important;
  transition: width .12s linear;
  transform: translateZ(0);
  will-change: width;
}

.ksn-flow-view--bazi-wheel .ksn-bazi-current {
  margin-bottom: 14px;
  font-size: 21px;
}

.ksn-flow-view--bazi-wheel .ksn-bazi-current b {
  display: inline-block;
  min-width: 52px;
  color: #fff;
  font-size: 27px;
  vertical-align: -1px;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence {
  width: min(348px, 84vw);
  margin-bottom: 42px;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence div {
  width: 56px;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence b {
  width: 42px;
  height: 42px;
  margin-bottom: 13px;
  background: rgba(255, 247, 218, .7);
  color: rgba(227, 37, 25, .58);
  font-size: 13px;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence span {
  display: block;
  color: rgba(255, 255, 255, .45);
  font-size: 19px;
  line-height: 1.25;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence div.is-visible span {
  color: #fff;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence div.is-active b {
  background: #fff6d8;
  color: #e21b16;
  box-shadow: 0 0 0 6px rgba(255, 242, 200, .35);
}

.ksn-flow-view--bazi-wheel .ksn-luopan img {
  animation: none !important;
  transition: transform .11s linear;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core {
  display: block;
  width: 66px;
  height: 66px;
  border: 3px solid #e42c20;
  border-radius: 50%;
  background: linear-gradient(90deg, #fbf3d3 0%, #fbf3d3 50%, #d7251c 50%, #d7251c 100%);
  box-shadow: 0 0 0 4px rgba(255, 205, 84, .48), inset 0 0 0 1px rgba(124, 30, 13, .18);
  overflow: hidden;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core::before,
.ksn-flow-view--bazi-wheel .ksn-luopan-core::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core::before {
  top: 0;
  background: radial-gradient(circle, #d7251c 0 5px, #fbf3d3 6px 100%);
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core::after {
  bottom: 0;
  background: radial-gradient(circle, #fbf3d3 0 5px, #d7251c 6px 100%);
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core span {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(120, 45, 20, .28);
  border-radius: 50%;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core i {
  display: none !important;
}

/* 2026-07-09 wheel visual match refinement */
.ksn-flow-view--bazi-wheel {
  background: url(/bazizh/image/big-mid-bz.webp) 0 0 / 100% auto no-repeat, rgba(255, 182, 142, 0.95);
}

.ksn-flow-view--bazi-wheel h1 {
  margin: 24px auto 38px;
  color: #fff4d1;
  font-size: 30px;
  line-height: 1.18;
}

.ksn-flow-view--bazi-wheel .ksn-bazi-current {
  min-height: 34px;
  margin: 0 auto 20px;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

.ksn-flow-view--bazi-wheel .ksn-bazi-current b {
  min-width: 56px;
  color: #fff;
  font-size: 28px;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence {
  width: min(430px, 86vw);
  margin: 0 auto 84px;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence div {
  width: 68px;
  opacity: .28;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence div.is-visible {
  opacity: .88;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence b {
  width: 43px;
  height: 43px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(255, 247, 218, .48);
  color: rgba(226, 44, 28, .54);
  font-size: 14px;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence span {
  display: block;
  min-height: 50px;
  color: rgba(255, 255, 255, .42);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence div.is-visible span {
  color: #fff;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence div.is-active b {
  background: #fff7df;
  color: #e12618;
  box-shadow: 0 0 0 7px rgba(255, 242, 201, .35);
}

.ksn-flow-view--bazi-wheel .ksn-luopan {
  width: 330px;
  height: 330px;
  margin: 0 auto 0;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core {
  display: block;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: rgba(255, 151, 31, .74);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  box-shadow: 0 0 0 4px #e82a22 inset;
  transform: none;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(90deg, #fff8d8 0 50%, #dc3024 50% 100%);
  box-shadow: 0 0 0 1px rgba(145, 54, 21, .28);
  transform: translate(-50%, -50%);
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core i {
  display: block !important;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core i::before,
.ksn-flow-view--bazi-wheel .ksn-luopan-core i::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core i::before {
  top: 0;
  background: radial-gradient(circle, #dc3024 0 3px, #fff8d8 4px 100%);
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core i::after {
  bottom: 0;
  background: radial-gradient(circle, #fff8d8 0 3px, #dc3024 4px 100%);
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core span {
  position: absolute;
  z-index: 2;
  color: #a83218;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  border: 0;
  inset: auto;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core .ksn-core-year { top: 15px; left: 50%; transform: translateX(-50%); }
.ksn-flow-view--bazi-wheel .ksn-luopan-core .ksn-core-month { top: 50%; right: 14px; transform: translateY(-50%); }
.ksn-flow-view--bazi-wheel .ksn-luopan-core .ksn-core-day { bottom: 14px; left: 50%; transform: translateX(-50%); }
.ksn-flow-view--bazi-wheel .ksn-luopan-core .ksn-core-hour { top: 50%; left: 14px; transform: translateY(-50%); }

.ksn-flow-view--bazi-wheel .ksn-loading-tip {
  display: none;
}

@media (max-width: 540px) {
  .ksn-flow-view--bazi-wheel h1 { font-size: 25px; margin-top: 24px; }
  .ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence { margin-bottom: 70px; }
  .ksn-flow-view--bazi-wheel .ksn-luopan { width: min(330px, 82vw); height: min(330px, 82vw); }
}

/* 2026-07-09 wheel motion and clean center fix */
.ksn-flow-view--bazi-wheel .ksn-luopan-core span,
.ksn-flow-view--bazi-wheel .ksn-luopan-core .ksn-core-year,
.ksn-flow-view--bazi-wheel .ksn-luopan-core .ksn-core-month,
.ksn-flow-view--bazi-wheel .ksn-luopan-core .ksn-core-day,
.ksn-flow-view--bazi-wheel .ksn-luopan-core .ksn-core-hour {
  display: none !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core {
  color: transparent !important;
  text-shadow: none !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core::before {
  box-shadow: 0 0 0 4px #e82a22 inset !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan img {
  transition: transform .045s linear !important;
  transform-origin: 50% 50%;
  will-change: transform;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence div {
  transition: opacity .18s ease, transform .18s ease;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence div.is-active {
  transform: translateY(-2px) scale(1.04);
}

/* 2026-07-09 top notice marquee */
body.ksn-skin .navTop {
  position: relative !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
}

body.ksn-skin .navTop::before,
body.ksn-skin .navTop::after {
  content: "测算结果仅供娱乐,我平台产品拒绝向未成年提供服务,如未成年人使用且造成一切后果由其监护人自动承担！";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: max-content;
  max-width: none;
  height: 27px;
  overflow: visible;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 27px;
  text-align: left;
  white-space: nowrap;
  text-overflow: clip;
  will-change: transform;
  animation: ksn-nav-marquee 22s linear infinite;
}

body.ksn-skin .navTop::after {
  animation-delay: -11s;
}

@keyframes ksn-nav-marquee {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 540px) {
  body.ksn-skin .navTop::before,
  body.ksn-skin .navTop::after {
    font-size: 12px;
    animation-duration: 19s;
  }

  body.ksn-skin .navTop::after {
    animation-delay: -9.5s;
  }
}

/* 2026-07-09 stable wheel lock and no-jump progress */
.ksn-flow-view--bazi-wheel .ksn-bazi-current {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .24s ease, transform .24s ease;
}

.ksn-flow-view--bazi-wheel .ksn-bazi-current.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ksn-flow-view--bazi-wheel .ksn-luopan {
  position: relative;
}

.ksn-flow-view--bazi-wheel .ksn-luopan img {
  transition: transform .92s cubic-bezier(.16, .88, .28, 1) !important;
  transform-origin: 50% 50%;
  will-change: transform;
}

.ksn-luopan-stop {
  position: absolute;
  left: 50%;
  top: 12%;
  z-index: 2;
  width: 17%;
  height: 27%;
  pointer-events: none;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 219, 101, .58), rgba(255, 143, 28, .28));
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  mix-blend-mode: multiply;
}

.ksn-flow-view--three-bars .ksn-load-bar i {
  transition: width .16s linear;
}

.ksn-flow-view--three-bars .ksn-load-card {
  transform: translateZ(0);
}


/* 2026-07-09 value-based fixed-center luopan */
.ksn-flow-view--bazi-wheel {
  overflow: hidden !important;
}

.ksn-flow-view--bazi-wheel h1 {
  min-height: 36px;
}

.ksn-flow-view--bazi-wheel .ksn-bazi-current {
  min-height: 38px;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence {
  min-height: 104px;
}

.ksn-flow-view--bazi-wheel .ksn-luopan {
  isolation: isolate;
  transform: translateZ(0);
}

.ksn-flow-view--bazi-wheel .ksn-luopan img {
  animation: none !important;
  transition: transform 1.05s cubic-bezier(.18, .86, .22, 1) !important;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core {
  z-index: 4;
  display: block !important;
  width: 112px !important;
  height: 112px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ff9823 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core::before {
  content: "" !important;
  position: absolute !important;
  inset: 7px !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: #ff9a25 !important;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%) !important;
  box-shadow: 0 0 0 4px #e83224 inset !important;
  transform: none !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  z-index: 3;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: linear-gradient(90deg, #fff4cc 0 50%, #d93424 50% 100%) !important;
  box-shadow: 0 0 0 1px rgba(136, 51, 18, .32) !important;
  transform: translate(-50%, -50%) !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core i {
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  z-index: 5 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core i::before,
.ksn-flow-view--bazi-wheel .ksn-luopan-core i::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  transform: translateX(-50%) !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core i::before {
  top: 0 !important;
  background: radial-gradient(circle, #d93424 0 3px, #fff4cc 4px 100%) !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-core i::after {
  bottom: 0 !important;
  background: radial-gradient(circle, #fff4cc 0 3px, #d93424 4px 100%) !important;
}

.ksn-luopan-stop {
  top: 4.5% !important;
  z-index: 3 !important;
  width: 18.5% !important;
  height: 31% !important;
  background: linear-gradient(180deg, rgba(255, 235, 129, .72), rgba(255, 169, 35, .24)) !important;
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%) !important;
  mix-blend-mode: normal !important;
}

.ksn-flow-view--three-bars .ksn-stage-title {
  min-height: 30px;
}


/* 2026-07-09 layered four-ring luopan */
.ksn-flow-view--bazi-wheel .ksn-luopan--layered {
  position: relative;
  width: 330px;
  height: 330px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 42px, #ff9a25 43px 72px, transparent 73px),
    radial-gradient(circle at center, transparent 0 72px, #f58224 73px 116px, transparent 117px),
    radial-gradient(circle at center, transparent 0 116px, #fff1c5 117px 154px, transparent 155px),
    #ff9a25;
  box-shadow: 0 0 0 7px rgba(243, 206, 139, .95) inset, 0 0 0 10px rgba(255, 230, 174, .42) inset, 0 10px 24px rgba(166, 67, 0, .16);
  isolation: isolate;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px solid rgba(220, 175, 96, .72);
  box-shadow: inset 0 0 0 30px transparent;
  pointer-events: none;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 76%;
  height: 76%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    repeating-conic-gradient(from -15deg, transparent 0 28deg, rgba(180, 96, 43, .34) 28deg 30deg, transparent 30deg 60deg);
  pointer-events: none;
}

.ksn-flow-view--bazi-wheel .ksn-wheel-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  transition: transform 1.5s cubic-bezier(.15, .76, .24, 1);
  will-change: transform;
}

.ksn-flow-view--bazi-wheel .ksn-wheel-ring--branches { z-index: 3; }
.ksn-flow-view--bazi-wheel .ksn-wheel-ring--stems { z-index: 4; }
.ksn-flow-view--bazi-wheel .ksn-wheel-ring--labels { z-index: 6; }

.ksn-flow-view--bazi-wheel .ksn-wheel-char,
.ksn-flow-view--bazi-wheel .ksn-wheel-label {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  color: #111 !important;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 232, 173, .42);
  transform: rotate(var(--ksn-angle)) translateY(calc(var(--ksn-radius) * -1)) rotate(calc(var(--ksn-angle) * -1));
  transform-origin: center;
}

.ksn-flow-view--bazi-wheel .ksn-wheel-ring--stems .ksn-wheel-char {
  font-size: 20px;
}

.ksn-flow-view--bazi-wheel .ksn-wheel-label {
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  font-size: 17px;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-pointer {
  position: absolute;
  left: 50%;
  top: -2px;
  z-index: 12;
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 0;
  border-bottom: 30px solid #e22a1d;
  filter: drop-shadow(0 2px 2px rgba(120, 36, 10, .28));
  transform: translateX(-50%);
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core {
  z-index: 9;
  display: block !important;
  width: 80px !important;
  height: 80px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: rgba(255, 151, 31, .92) !important;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%) !important;
  box-shadow: 0 0 0 4px #e83224 inset !important;
  transform: none !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  z-index: 3;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: linear-gradient(90deg, #fff4cc 0 50%, #d93424 50% 100%) !important;
  box-shadow: 0 0 0 1px rgba(136, 51, 18, .32) !important;
  transform: translate(-50%, -50%) !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core i {
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  z-index: 5 !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core i::before,
.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core i::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  width: 17px !important;
  height: 17px !important;
  border-radius: 50% !important;
  transform: translateX(-50%) !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core i::before {
  top: 0 !important;
  background: radial-gradient(circle, #d93424 0 3px, #fff4cc 4px 100%) !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core i::after {
  bottom: 0 !important;
  background: radial-gradient(circle, #fff4cc 0 3px, #d93424 4px 100%) !important;
}

@media (max-width: 540px) {
  .ksn-flow-view--bazi-wheel .ksn-luopan--layered {
    width: min(330px, 82vw) !important;
    height: min(330px, 82vw) !important;
  }

  .ksn-flow-view--bazi-wheel .ksn-wheel-char {
    font-size: 20px;
  }
}


/* 2026-07-09 keep layered wheel text upright */
.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-wheel-ring {
  transform: none !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-wheel-char,
.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-wheel-label {
  transform: rotate(calc(var(--ksn-angle) + var(--ksn-rot, 0deg))) translateY(calc(var(--ksn-radius) * -1)) rotate(calc(var(--ksn-neg-angle) + var(--ksn-neg-rot, 0deg))) !important;
  transition: transform 1.5s cubic-bezier(.15, .76, .24, 1);
  will-change: transform;
}


/* 2026-07-09 label ring visibility and payment polish */
.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-wheel-ring--labels {
  z-index: 14 !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-wheel-label {
  width: 28px !important;
  height: 28px !important;
  margin: -14px 0 0 -14px !important;
  color: #111 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core {
  z-index: 10 !important;
  pointer-events: none !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core::after,
.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core i {
  z-index: 15 !important;
}

.ksn-unlock-submit {
  cursor: pointer;
  touch-action: manipulation;
}


/* 2026-07-09 reference luopan visual sizing */
.ksn-flow-view--bazi-wheel h1 {
  margin-top: 30px !important;
  margin-bottom: 42px !important;
  font-size: 30px !important;
  color: #fff4d1 !important;
}

.ksn-flow-view--bazi-wheel .ksn-bazi-current {
  min-height: 28px !important;
  margin-bottom: 14px !important;
  font-size: 20px !important;
}

.ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence {
  width: min(430px, 88vw) !important;
  min-height: 92px !important;
  margin-bottom: 46px !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered {
  width: 292px !important;
  height: 292px !important;
  background:
    radial-gradient(circle at center, transparent 0 32px, #ff9626 33px 65px, transparent 66px),
    radial-gradient(circle at center, transparent 0 65px, #ff8e1d 66px 104px, transparent 105px),
    radial-gradient(circle at center, transparent 0 104px, #fff0c4 105px 136px, transparent 137px),
    #ff9823 !important;
  box-shadow:
    0 0 0 5px #f5d894 inset,
    0 0 0 8px rgba(255, 238, 190, .72) inset,
    0 8px 20px rgba(158, 72, 0, .12) !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered::before {
  inset: 10px !important;
  border-color: rgba(204, 164, 91, .7) !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered::after {
  width: 75% !important;
  height: 75% !important;
  background: repeating-conic-gradient(from -15deg, transparent 0 28deg, rgba(164, 86, 36, .36) 28deg 29.5deg, transparent 29.5deg 60deg) !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-wheel-char,
.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-wheel-label {
  color: #c42618 !important;
  text-shadow: 0 1px 0 rgba(255, 226, 165, .55) !important;
  font-family: "Microsoft YaHei", Arial, sans-serif !important;
  font-weight: 900 !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-wheel-ring--branches .ksn-wheel-char {
  width: 28px !important;
  height: 28px !important;
  margin: -14px 0 0 -14px !important;
  font-size: 20px !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-wheel-ring--stems .ksn-wheel-char {
  width: 26px !important;
  height: 26px !important;
  margin: -13px 0 0 -13px !important;
  font-size: 19px !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-wheel-ring--labels {
  z-index: 13 !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-wheel-label {
  width: 22px !important;
  height: 22px !important;
  margin: -11px 0 0 -11px !important;
  color: #8c361e !important;
  font-size: 14px !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan-pointer {
  top: -1px !important;
  border-left-width: 11px !important;
  border-right-width: 11px !important;
  border-bottom-width: 26px !important;
  border-bottom-color: #e3261c !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core {
  width: 70px !important;
  height: 70px !important;
  z-index: 10 !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core::before {
  inset: 0 !important;
  background: #ff9221 !important;
  box-shadow: 0 0 0 4px #e53024 inset !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core::after,
.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core i {
  width: 32px !important;
  height: 32px !important;
}

.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core i::before,
.ksn-flow-view--bazi-wheel .ksn-luopan--layered .ksn-luopan-core i::after {
  width: 16px !important;
  height: 16px !important;
}

@media (max-width: 540px) {
  .ksn-flow-view--bazi-wheel h1 {
    margin-top: 32px !important;
    margin-bottom: 42px !important;
    font-size: 27px !important;
  }

  .ksn-flow-view--bazi-wheel .ksn-pillar-row--sequence {
    margin-bottom: 48px !important;
  }

  .ksn-flow-view--bazi-wheel .ksn-luopan--layered {
    width: min(292px, 70vw) !important;
    height: min(292px, 70vw) !important;
  }
}

@media (max-height: 760px) {
  .ksn-unlock-mask {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ksn-unlock-panel {
    max-height: calc(100dvh - 102px - env(safe-area-inset-bottom));
    margin-top: 92px;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
  }

  .ksn-unlock-card {
    grid-template-columns: 126px 1fr;
    gap: 10px;
    padding: 4px 4px 12px;
  }

  .ksn-master {
    width: 118px;
    height: 130px;
  }

  .ksn-profile h2 {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .ksn-profile p {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.28;
  }

  .ksn-profile .ksn-profile-note {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.35;
  }

  .ksn-price-row {
    padding: 8px 4px 10px;
  }

  .ksn-price-row b,
  .ksn-price-row del,
  .ksn-price-row span,
  .ksn-price-row em b,
  .ksn-price-row em i {
    font-size: 13px;
  }

  .ksn-pay-options {
    padding: 10px 4px 12px;
  }

  .ksn-pay-option {
    height: 50px;
    font-size: 17px;
  }

  .ksn-pay-icon {
    width: 30px;
    height: 30px;
    margin-right: 12px;
  }

  .ksn-unlock-submit {
    height: 52px;
    margin-top: 0;
    font-size: 17px;
  }
}

@media (max-height: 660px) {
  .ksn-unlock-panel {
    max-height: calc(100dvh - 72px - env(safe-area-inset-bottom));
    margin-top: 58px;
    padding-top: 12px;
  }

  .ksn-unlock-card {
    grid-template-columns: 112px 1fr;
    padding-bottom: 10px;
  }

  .ksn-master {
    width: 106px;
    height: 116px;
  }

  .ksn-profile .ksn-profile-note {
    display: none;
  }
}

/* 2026-07-10: keep the payment sheet pinned to the bottom. */
body.ksn-flow-pay-open .ksn-unlock-mask {
  align-items: flex-end !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 2026-07-10 supplied image turntable */
.ksn-flow-view--bazi-wheel .turntable-wrap {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  width: min(330px, 82vw) !important;
  height: min(330px, 82vw) !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  isolation: isolate;
  overflow: visible;
}

.ksn-flow-view--bazi-wheel .turntable-wrap img {
  position: absolute;
  display: block;
  margin: 0;
  animation: none !important;
  backface-visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.ksn-flow-view--bazi-wheel .turntable-wrap .turn-bk {
  z-index: 1;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.ksn-flow-view--bazi-wheel .turntable-wrap .turn-d-bk,
.ksn-flow-view--bazi-wheel .turntable-wrap .turn-d-title,
.ksn-flow-view--bazi-wheel .turntable-wrap .turn-d-select {
  left: 5.22%;
  top: 5.22%;
  width: 89.56% !important;
  height: 89.56% !important;
}

.ksn-flow-view--bazi-wheel .turntable-wrap .turn-d-bk { z-index: 2; }
.ksn-flow-view--bazi-wheel .turntable-wrap .turn-d-title { z-index: 4; }
.ksn-flow-view--bazi-wheel .turntable-wrap .turn-d-select { z-index: 3; }

.ksn-flow-view--bazi-wheel .turntable-wrap .turn-t-bk,
.ksn-flow-view--bazi-wheel .turntable-wrap .turn-t-title,
.ksn-flow-view--bazi-wheel .turntable-wrap .turn-t-select {
  left: 17.54%;
  top: 17.54%;
  width: 64.93% !important;
  height: 64.93% !important;
}

.ksn-flow-view--bazi-wheel .turntable-wrap .turn-t-bk { z-index: 5; }
.ksn-flow-view--bazi-wheel .turntable-wrap .turn-t-title { z-index: 7; }
.ksn-flow-view--bazi-wheel .turntable-wrap .turn-t-select { z-index: 6; }

.ksn-flow-view--bazi-wheel .turntable-wrap .turn-t-title,
.ksn-flow-view--bazi-wheel .turntable-wrap .turn-d-title {
  transform-origin: 50% 50%;
  transition: transform .85s cubic-bezier(.18, .86, .22, 1) !important;
  will-change: transform;
}

.ksn-flow-view--bazi-wheel .turntable-wrap .center_area {
  position: absolute;
  left: 34.09%;
  top: 34.09%;
  z-index: 8;
  width: 31.81%;
  height: 31.81%;
}

.ksn-flow-view--bazi-wheel .turntable-wrap .turn-center-bk {
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.ksn-flow-view--bazi-wheel .turntable-wrap .text-wrap {
  position: absolute;
  inset: 0;
  color: #111;
  font-size: clamp(12px, 3.6vw, 15px);
  font-weight: 800;
  line-height: 1;
}

.ksn-flow-view--bazi-wheel .turntable-wrap .text-wrap span {
  position: absolute;
}

.ksn-flow-view--bazi-wheel .turntable-wrap .text-wrap span:nth-child(1) { left: 43%; top: 5%; transform: none; }
.ksn-flow-view--bazi-wheel .turntable-wrap .text-wrap span:nth-child(2) { left: 75%; top: 38%; transform: rotate(90deg); }
.ksn-flow-view--bazi-wheel .turntable-wrap .text-wrap span:nth-child(3) { left: 43%; top: 72.5%; transform: rotate(180deg); }
.ksn-flow-view--bazi-wheel .turntable-wrap .text-wrap span:nth-child(4) { left: 10%; top: 38%; transform: rotate(270deg); }
.ksn-flow-view--bazi-wheel .turntable-wrap .text-wrap .yellow { color: #f2b72e; }

.ksn-flow-view--bazi-wheel .turntable-wrap .diagrams {
  left: 43.88%;
  top: 43.88%;
  z-index: 9;
  width: 12.23% !important;
  height: 12.23% !important;
}

/* Keep the supplied bagua turntable visible after the first bazi stage. */
.ksn-flow-view--three-bars .turntable-wrap {
  width: min(184px, 50vw) !important;
  height: min(184px, 50vw) !important;
  margin: 0 auto 14px !important;
}

.ksn-flow-view--three-bars .turntable-wrap .text-wrap {
  font-size: clamp(6px, 2.2vw, 8px);
}

.ksn-flow-view--three-bars .ksn-load-card {
  margin-top: 0 !important;
}

.ksn-unlock-panel {
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

@media (max-height: 760px) {
  .ksn-unlock-panel {
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin-top: auto !important;
  }
}

@media (max-height: 660px) {
  .ksn-unlock-panel {
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin-top: auto !important;
  }
}

/* 2026-07-12 隐藏与背景图内"八字看你命藏"重复的 h1「正在揭秘…」；
   用 visibility 保留占位，确保下方四柱徽章/转盘不位移 */
.ksn-flow-view--bazi-wheel h1 { visibility: hidden !important; }
