/* CSS for Sx2027 羊年生肖运程 page */

[v-cloak] {
  display: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 0.28rem;
  color: #333;
  background: #f5ead0 url("../images/index/bg.png") repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol,
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

#app {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  background: #FFF7E9;
  position: relative;
}

/* ===== Top Navigation Bar ===== */
.toptitle {
  padding-top: 1.1733rem;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 9999;
  font-family: 'SourceHanSansCN-Bold';
  width: 100%;
  font-size: 0.48rem;
  color: #352B1D;
  font-weight: 600;
  height: 2.3467rem;
  line-height: 1.173333333333333rem;
  background: white;
}

.toptitle span:nth-child(1) {
  display: inline-block;
  background-image: url('../../detail/return.png');
  background-repeat: no-repeat;
  background-size: 100%;
  height: 0.5333rem;
  width: 0.5333rem;
  margin-left: 0.5866666666666667rem;
  vertical-align: middle;
}

.toptitle span:nth-child(1)::before {
  display: none;
}

.toptitle span:nth-child(2) {
  position: absolute;
  left: 50%;
  top: 1.76rem;
  transform: translate(-50%, -50%);
  font-weight: bold;
  white-space: nowrap;
  font-size: 0.48rem;
}

/* ===== Top Banner Section ===== */
.header {
  position: relative;
  width: 100%;
}

.header-banner {
  width: 100%;
  display: block;
}

/* ===== 12 Zodiac Grid ===== */
/* 生肖区：343x627 @375；宫格上内边距 106、左右内边距 23 */
.sxlist {
  position: relative;
  width: 9.1467rem; /* 343 */
  height: 16.72rem; /* 627 */
  margin: -1.2rem auto 0; /* 整体上移 45px */
}

.sxlist .sx-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.sxlist .sx-grid {
  position: absolute;
  left: 0.6133rem; /* 23 */
  top: 2.8267rem; /* 106 */
  width: 7.92rem; /* 297 */
  height: 11.7733rem; /* 297 * 1320 / 888 */
}

.sxlist .sx-cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.sxlist .sx-hits {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
}

.sxlist .sx-item {
  display: block;
  cursor: pointer;
}

.sxlist .sx-item:active {
  background: rgba(178, 46, 42, 0.08);
}

/* ===== Consultation Section ===== */
.consult-section {
  position: relative;
  width: auto;
  margin: 0.4rem 0.4133rem 0;
  background: url("../images/index/bg_zx.png") no-repeat;
  background-size: 100% 100%;
  height: 2.24rem;
  padding: 0;
}

.consult-kf {
  position: absolute;
  top: -0.4rem;
  left: 0.08rem;
  width: 2.4933rem;
  height: 2.56rem;
  display: block;
}

/* ===== FAQ Section ===== */
.faq-section {
  position: relative;
  width: 9.5467rem;
  margin: -0.4rem auto 0; /* 整体上移 15px */
  overflow: visible;
}

.faq-bg-top {
  width: 100%;
  display: block;
}

.faq-bg-mid {
  width: 100%;
  background: url("../images/index/bg_question_1.png?202610104") repeat-y;
  background-size: 100%;
  padding: 0 0.64rem 0.5rem; /* 左右 24px */
}

.faq-bg-bot {
  width: 100%;
  display: block;
}

.faq-title-wrap {
  position: relative;
  margin-bottom: 0.2rem;
}

.faq-list {
  width: 100%;
  padding: 0 0.1rem;
  box-sizing: border-box;
}

.faq-item {
  padding: 0.28rem 0;
  position: relative;
}

.faq-item .faq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.4267rem;
  color: #2B2523;
  font-weight: 500;
  cursor: pointer;
}

.faq-item .faq-head span:first-child {
  width: 7.4933rem;
  height: 0.64rem;
  opacity: 1;
  text-align: left;
  transform: rotate(0deg);
  line-height: 0.64rem;
}

.faq-item .faq-head::before {
  content: "";
  display: inline-block;
  width: 0.1067rem;
  height: 0.3733rem;
  background: #C72E00;
  opacity: 1;
  border-radius: 0.72rem;
  margin-right: 0.16rem;
  vertical-align: middle;
  flex-shrink: 0;
  transform: rotate(0deg);
}

.faq-item .faq-head .arrow {
  width: 0.4267rem;
  height: 0.4267rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-head .arrow {
  transform: rotate(180deg);
}

.faq-item .faq-body {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  padding: 0 0.28rem;
  font-size: 0.32rem;
  line-height: 0.5867rem;
  color: #666666;
  text-align: justify;
  background: #ffffff;
  border-radius: 0.12rem;
  box-shadow: 0 0.04rem 0.12rem rgba(178, 46, 42, 0.08);
  transition: max-height 0.3s ease, padding-top 0.3s ease, padding-bottom 0.3s ease, margin-top 0.3s ease;
}

.faq-item.active .faq-body {
  margin-top: 0.2rem;
  padding: 0.24rem 0.28rem 0.3rem;
}

/* ===== Jump to Old Year Section ===== */
.jump-section {
  position: relative;
  width: 9.5733rem; /* 359 */
  height: 2.9333rem; /* 110 */
  margin: 0 auto;
  display: block;
}

.jump-section img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Footer ===== */
.footer-section {
  position: relative;
  width: 100%;
}

.footer-section img {
  width: 100%;
  display: block;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.modal .inner {
  position: relative;
  width: 8.72rem;
  border-radius: 0.5333rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0.08rem 0.373rem rgba(0, 0, 0, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal .inner .custombox {
  background-image: url('../../detail/bg_custom.png?20261009');
  background-repeat: no-repeat;
  background-size: 100%;
  height: 11.0933rem;
  padding-top: 0.5867rem;
  box-sizing: border-box;
}

.modal .inner .custombox p {
  color: #333333;
  font-size: 0.4267rem;
  font-weight: 600;
}

.modal .inner .custombox p span {
  text-decoration: underline 0.0267rem #999999;
  -webkit-text-decoration: underline 0.0267rem #999999;
}

.modal .inner .close {
  display: block;
  margin: 0.2667rem auto 0;
  width: 1.0667rem;
  height: 1.0667rem;
  background-image: url('../../detail/btn_close.png');
  background-repeat: no-repeat;
  background-size: 100%;
}

.modal .callteacher {
  color: white;
  border-radius: 0.2667rem;
  font-size: 0.48rem;
  text-align: center;
  margin: 7.68rem auto 0;
  padding-left: 0.3733rem;
}

.callteacher img {
  width: 8.0267rem;
  height: 1.5328rem;
}

.modal .copywx {
  margin-top: 6.7467rem;
}

.copywx .wx {
  display: flex;
  color: #333333;
  font-size: 0.4267rem;
  justify-content: center;
}

.copywx .wx img {
  width: 0.5333rem;
  height: 0.5333rem;
  margin-right: 0.1067rem;
}

.copywx .wxbtn {
  background: #36BD53;
  height: 1.12rem;
  line-height: 1.12rem;
  width: 5.76rem;
  border-radius: 2.2667rem;
  color: white;
  font-size: 0.4267rem;
  text-align: center;
  margin: auto;
  margin-top: 0.2133rem;
}

/* Lottie container */
#lottie {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  /* 显隐交给 v-show。这里写 display:none 会让 v-show 失效：
     v-show 为真只是清掉行内 display:none，样式表这条还在，动画就永远不显示。 */
  display: block;
}

#lottie img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
}
