/* ==========================================================================
   首页样式（鬼谷子百数推命落地页）
   ========================================================================== */

.index-page {
  background: var(--bg-brown);
  padding-bottom: 2.2rem;
}

/* Hero 首屏区（背景图 + 人物/罗盘双 SVGA 动画 + 表单卡片） */
.hero-section {
  position: relative;
  overflow: hidden;
  background: url("/assets/img/bstm_kvbj.png") no-repeat 0 0 / 10rem 17.78667rem;
  min-height: 17.78667rem;
  margin-top: -0.58667rem;
  padding-bottom: 0.4rem;
}

.hero-stage {
  position: relative;
  width: 100%;
  height: 11.45rem;
}

/* 鬼谷子人物 SVGA（左侧靠下） */
.svga-renwu {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: -0.95rem;
  width: 5.76rem;
  height: 5.76rem;
  pointer-events: none;
}

/* 八卦干支罗盘 SVGA（右侧旋转） */
.svga-yuanpan {
  position: absolute;
  z-index: 2;
  top: 3.45rem;
  left: 2.18667rem;
  width: 8rem;
  height: 8rem;
  pointer-events: none;
}

/* 用户信息输入表单卡片 */
.form-card {
  position: relative;
  z-index: 9;
  margin: 0 auto;
  width: 9.46667rem;
  height: 4.26667rem;
  padding: 0.26667rem 0.16rem;
  background: url("/assets/img/kv_img_srk.png") no-repeat 0 0 / 9.46667rem 4.26667rem;
}

.field-row {
  display: flex;
  align-items: center;
  height: 1.06667rem;
  border: 1px solid #b98743;
  background: #face7c;
  border-radius: 0.53333rem;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.field-row + .field-row {
  margin-top: 0.26667rem;
}

.field-row.is-focus {
  border-color: #f78000;
  box-shadow: 0 0 0.16rem rgba(247, 128, 0, 0.55);
  background: #fff5e0;
}

.field-row.is-error {
  border-color: #e4393c;
  box-shadow: 0 0 0.16rem rgba(228, 57, 60, 0.55);
  animation: shakeX 0.38s linear;
}

.field-label {
  padding: 0 0.44rem 0 0.56rem;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.4rem;
  color: #d96816;
}

.field-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #34230b;
  font-size: 0.4rem;
  padding-right: 0.36rem;
}

.field-input::placeholder {
  color: #6b4b22;
  opacity: 0.78;
}

.field-input--date {
  cursor: pointer;
}

/* 性别单选按钮 */
.sex-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sex-chip {
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 50%;
  border: 1px solid #34230b;
  color: #34230b;
  background: transparent;
  font-size: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.sex-chip.active {
  background: #f78000;
  color: #412005;
  border-color: #f78000;
  font-weight: 700;
  box-shadow: 0 0 0.12rem rgba(247, 128, 0, 0.7);
}

.sex-chip.bounce {
  animation: bouncePop 0.32s ease;
}

/* 立即起运主按钮 */
.cta-wrap {
  width: 8.4rem;
  margin: 0.32rem auto 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.cta-wrap:active {
  transform: scale(0.94);
}

.cta-btn-img {
  display: block;
  width: 8.4rem;
  height: 1.38667rem;
  animation: btnPulse 1s linear infinite alternate;
  pointer-events: none;
}

/* 隐私协议勾选与订单查询 */
.agreement-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  padding: 0.32rem 0 0.34rem;
  font-size: 0.34667rem;
  color: #fff9e3;
}

.agreement-checkbox {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  border: 1.5px solid #f9e397;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.26rem;
  color: #5a2908;
  background: transparent;
  transition: background-color 0.15s;
}

.agreement-checkbox.checked {
  background: #f9e397;
}

.agreement-link {
  color: #f9e398;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-size: inherit;
}

.order-lookup-link {
  display: block;
  width: fit-content;
  margin: 0 auto 0.2rem;
  font-size: 0.36rem;
  font-weight: 700;
  color: #f9e397;
  text-decoration: underline;
  cursor: pointer;
}

/* 5 张营销长图模块 */
.marketing-modules {
  padding-top: 0.52rem;
}

.module-img {
  display: block;
  width: 9.49333rem;
  margin: 0 auto 0.8rem;
}

.module-img--p2 {
  width: 9.73333rem;
}

.module-p4-wrap {
  position: relative;
  width: 9.49333rem;
  margin: 0 auto 0.8rem;
}

.module-p4-wrap .module-img {
  margin-bottom: 0;
}

.module-p4-hotspot {
  position: absolute;
  width: 3.4rem;
  height: 1.12rem;
  bottom: 1.15rem;
  left: 0.85rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* 精品测算双页轮播卡片 */
.recommend-card {
  width: 9.2rem;
  margin: 0.6rem auto 0.5rem;
  background: #fffbf1;
  border-radius: 0.4rem;
  padding: 0.72rem 0 0.58rem;
  overflow: hidden;
}

.recommend-card__title {
  font-family: "FZYanSongS-B-GB", "PingFang SC", serif;
  font-size: 0.53333rem;
  color: #484950;
  text-align: center;
  margin-bottom: 0.5rem;
}

.recommend-viewport {
  overflow: hidden;
  width: 100%;
}

.recommend-track {
  display: flex;
  width: 200%;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.recommend-slide {
  width: 50%;
  flex-shrink: 0;
  padding: 0 0.4rem;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.48rem 0.32rem;
}

.recommend-grid-item {
  text-align: center;
  cursor: pointer;
}

.recommend-grid-item img {
  width: 1.70667rem;
  height: 1.70667rem;
  border-radius: 0.4rem;
  display: block;
  margin: 0 auto 0.16rem;
  box-shadow: 0 1px 0.08rem rgba(0, 0, 0, 0.12);
}

.recommend-grid-item span {
  display: block;
  font-size: 0.33333rem;
  color: #484950;
  white-space: nowrap;
}

.recommend-list {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.recommend-list-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 0.36rem;
  padding: 0.22rem;
  box-shadow: 0 1px 0.08rem rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.recommend-list-item .rec-icon {
  width: 1.56rem;
  height: 1.56rem;
  border-radius: 0.34rem;
  margin-right: 0.24rem;
  flex-shrink: 0;
}

.recommend-list-item .rec-mid {
  flex: 1;
  min-width: 0;
}

.recommend-list-item .rec-name {
  font-size: 0.4rem;
  font-weight: 700;
  color: #484950;
}

.recommend-list-item .rec-desc {
  font-size: 0.3rem;
  color: #666;
  margin-top: 0.08rem;
  line-height: 1.4;
}

.recommend-list-item .rec-btn {
  width: 1.84rem;
  flex-shrink: 0;
  margin-left: 0.14rem;
}

.recommend-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.42rem;
}

.recommend-dot {
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  border: 1px solid #595a62;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.recommend-dot.active {
  background: #d96816;
  border-color: #d96816;
}

.recommend-tip {
  text-align: center;
  font-size: 0.3rem;
  color: #595a62;
  margin-top: 0.2rem;
}

/* 悬浮动态弹幕 */
.social-ticker {
  position: fixed;
  bottom: 1.72rem;
  left: 50%;
  transform: translateX(-50%);
  width: 10rem;
  padding: 0 0.36rem;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 80;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-ticker.visible {
  opacity: 1;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
  background: rgba(20, 12, 5, 0.78);
  color: #fff8e7;
  padding: 0.12rem 0.28rem 0.12rem 0.14rem;
  border-radius: 0.6rem;
  font-size: 0.29333rem;
  backdrop-filter: blur(4px);
}

.social-pill img {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  object-fit: cover;
}

/* 吸底固定操作栏 */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 10rem;
  height: 1.44rem;
  background: #fff;
  display: flex;
  z-index: 95;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s ease;
}

.sticky-bottom-bar.visible {
  transform: translate(-50%, 0);
}

.sticky-bottom-bar__left {
  width: 3.45333rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.2rem;
}

.sticky-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #414141;
  text-decoration: none;
  font-size: 0.26667rem;
  background: none;
  border: none;
  cursor: pointer;
}

.sticky-menu-btn img {
  height: 0.62rem;
  width: auto;
  margin-bottom: 0.08rem;
}

.sticky-bottom-bar__cta {
  flex: 1;
  border: none;
  cursor: pointer;
  background: url("/assets/img/index_bottom_btn.png") no-repeat center / cover;
}
