@charset "UTF-8";
.banner {
  background-image: url("../images/home/banner_bg.png");
  background-size: 110% 110%;
}

.title-box {
  position: relative;
  z-index: 2;
  height: 46px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url("../images/title_bg_1.png");
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title-box .mid {
  width: 430px;
  height: 98px;
  line-height: 110px;
  text-align: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  background-image: url("../images/title_bg_2.png");
  font-size: 62px;
  color: #fff7eb;
  font-family: WENCANGSHUFANG-2;
}

@media screen and (max-width: 767px) {
  .title-box {
    height: 20px;
  }
  .title-box .mid {
    width: 150px;
    height: 40px;
    line-height: 48px;
    font-size: 22px;
  }
}

/* 有谱药香 */
.yaoxiang {
  position: relative;
}

.yaoxiang .section {
  position: relative;
  padding: 84px 0 60px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.yaoxiang .section + .section {
  padding-top: 60px;
}

.yaoxiang .section:nth-child(2) {
  background-image: url("../images/home/yaoxiang_1_bg.png");
}

.yaoxiang .section:nth-child(3) {
  background-image: url("../images/home/yaoxiang_2_bg.png");
}

.yaoxiang .section:nth-child(4) {
  background-image: url("../images/home/yaoxiang_3_bg.png");
}

.yaoxiang .section:nth-child(even) .box {
  justify-content: flex-end;
}

.yaoxiang .section:nth-child(even) .box .txt-box {
  left: 0;
  right: auto;
}

.yaoxiang .box {
  display: flex;
  position: relative;
}

.yaoxiang .box .pic {
    max-width: 940px;
    transition: all 0.8s ease-in-out;
}

.yaoxiang .box .pic:hover {
    transform: translateY(-3px);
}
    
.yaoxiang .box .txt-box {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  max-width: 552px;
  width: 50%;
  background-color: white;
  border-radius: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: calc(100% - 10px) calc(100% - 10px);
  background-image: url("../images/home/yaoxiang_kuagn_bg.png");
  padding: 2.5% 3.3%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #4D2F30;
}

.yaoxiang .box .txt-box .title {
  font-size: 32px;
  color: #331F1F;
  font-family: nansongshuju;
}

.yaoxiang .box .txt-box .title .icon {
  display: inline-block;
  width: 38px;
}

.yaoxiang .box .txt-box .title .txt {
  padding: 0 40px;
}

.yaoxiang .box .txt-box .title .txt + .icon {
  transform: rotateY(180deg);
}

.yaoxiang .box .txt-box .intro {
  padding: 7.5% 0 8.5%;
  width: 100%;
  text-align: justify;
}

.yaoxiang .box .txt-box .intro .cell {
  display: flex;
  line-height: 28px;
}

.yaoxiang .box .txt-box .intro .cell .label {
  flex-shrink: 0;
  font-weight: bold;
}

.yaoxiang .box .txt-box .btn {
  width: 140px;
  height: 40px;
  background: var(--c-primary);
  border-radius: 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yaoxiang .box .txt-box .btn:hover {
  background-color: var(--c-primary-hover);
}

@media screen and (max-width: 767px) {
  .yaoxiang .section {
    padding: 40px 0 30px;
  }
  .yaoxiang .section + .section {
    padding-top: 30px;
  }
  .yaoxiang .box {
    flex-direction: column;
  }
  .yaoxiang .box .txt-box {
    position: relative;
    transform: translateY(0%);
    max-width: 100%;
    width: 100%;
    padding: 5% 3.3%;
  }
  .yaoxiang .box .txt-box .title {
    font-size: 24px;
  }
  .yaoxiang .box .txt-box .intro {
    padding: 4% 0 5%;
  }
}

/* 古法手工制作 */
.gufa .section {
  position: relative;
  padding: 8% 0 6%;
  background-repeat: repeat-y;
  background-position: center;
  background-size: cover;
  background-color: #F2EDEE;
  background-image: url("../images/diwen_bg.png");
}

.gufa .section .box {
  display: flex;
  flex-wrap: wrap;
}

.gufa .section .box .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22%;
  font-size: 20px;
  font-family: nansongshuju;
}

.gufa .section .box .item:not(:nth-child(4n)) {
  margin-right: 4%;
}

.gufa .section .box .item:nth-child(n + 5) {
  margin-top: 4%;
}

.gufa .section .box .item .txt {
  padding-top: 10px;
}

@media screen and (max-width: 767px) {
  .gufa .section .box {
    justify-content: space-between;
  }
  .gufa .section .box .item {
    width: 48%;
    font-size: 18px;
  }
  .gufa .section .box .item:not(:nth-child(4n)) {
    margin-right: 0%;
  }
  .gufa .section .box .item .txt {
    padding-top: 5px;
  }
}

.ft-box {
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-size: 100% 100%;
    background-image: url("../images/home/ft_bg.png");
    padding: 6.5% 0;
    transition: background-size 1s ease-in-out;
}

.ft-box:hover {
    background-size: 101% 101%;
  }
    
.ft-box .box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ft-box .box .title {
  font-size: 62px;
  font-family: WENCANGSHUFANG-2;
  color: #FFF7EB;
}

.ft-box .box .bar {
  padding: 2% 0 3%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ft-box .box .bar .line {
  display: inline-block;
  max-width: 190px;
  width: 30%;
  height: 2px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

.ft-box .box .bar .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: white;
  transform: rotate(45deg);
  margin: 0 10px;
}

.ft-box .box .bar .dot + .line {
  background-image: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.ft-box .box .intro {
  color: #E6E6E6;
  max-width: 1020px;
  width: 100%;
  text-align: justify;
}

@media screen and (max-width: 767px) {
  .ft-box .box .title {
    font-size: 24px;
  }
}
