#swiper1 {
  width: 100%;
  height: 574px;
}

.custom-banner-dot {
  width: 16px;
  height: 16px;
  background: #fff;
  opacity: 0.5;
  display: inline-block;
  border-radius: 50%;
  margin: 0 8px;
  cursor: pointer;
}

.banner {
  height: 100%;
  background-size: contain;
}

.banner-1 {
  background-image: url("../img/banner/home_banner1.png");
}

.banner-2 {
  background: #d2c984;
}

.banner-3 {
  background: #d284cd;
}

.banner-4 {
  background: #8784d2;
}

.custom-banner-dot-active {
  opacity: 1;
}

.slogan {
  width: 524px;
  height: 290px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px 12px 12px 12px;
  position: absolute;
  top: 303px;
  left: var(--page-padding);
  z-index: 10;
  padding: 28px 40px 0 40px;
}

.slogan-text {
  display: inline-block;
  width: 387px;
  height: 124px;
  padding: 5px 0;
}

.slogan-button {
  height: 56px;
  margin-top: 35px;
  /* margin-bottom: 47px; */
  display: block;
  width: 266px;
  height: 56px;
  font-size: 24px;
}

.slogan-button a {
  color: #fff;
}

.animal {
  padding: 168px var(--page-padding);
}

.circle {
  background: var(--primary-color-dark);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-family: var(--text-font-family);
  font-size: 32px;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: rgba(51, 51, 51, 0.35);
  background-blend-mode: overlay;
}

.circle a {
  color: #fff;
}

.circle:nth-child(1) {
  background-image: url("../img/farm-animal/pig.jpg");
}

.circle:nth-child(2) {
  background-image: url("../img/farm-animal/poultry.jpg");
}

.circle:nth-child(3) {
  background-image: url("../img/farm-animal/cow.jpg");
}

.circle:nth-child(4) {
  background-image: url("../img/farm-animal/animal.jpg");
}

.animals-circle {
  display: grid;
  align-items: center;
  justify-content: center;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  margin: 113px 0 59px 0;
}

.product {
  height: 675px;
  background: #DBEAF8;
  padding: 97px var(--page-padding);
}

.product-swiper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 87px;
  /* padding: 97px var(--page-padding); */
}

.product-card-gap {
  column-gap: 27px;
}

.product-card {
  height: 404px;
  /* margin: 0 13.5px; */
}

.swiper-pagination-product {
  transition: .3s opacity;
  transform: translate3d(0, 0, 0);
  z-index: 10;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

#swiper2 {
  width: 1280px;
  height: 450px;
  margin: 0 60px;
}

.custom-product-square {
  width: 80px;
  height: 6px;
  background: #FFFFFF;
  display: inline-block;
  margin: 0 8px;
}

.custom-product-square-active {
  background: var(--primary-color);
}

.swiper-button {
  width: 54px;
  height: 54px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--primary-color);
}

.iconfont {
  font-size: 28px !important;
  font-weight: bold;
}

.service-tool {
  width: 1320px;
  margin: auto;
  padding: 164px 0;
}

.service-tool p {
  font-size: var(--font-size-m);
  font-family: var(--text-font-family);
  font-weight: var(--font-weight-regular);
  color: var(--dark-blue);
  margin: 87px 0 21px;
}

.service-tool-content p {
  margin-top: 0;
}

.service-tool-content {
  font-size: 2rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 2;
  display: -webkit-box;
  text-overflow: -o-ellipsis-lastline;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.service-tool-button a {
  color: var(--primary-color);
}

.service-tool-swiper {
  position: relative;
  width: 100%;
  margin: 5px 0;
}

#swiper3 {
  width: 100%;
  height: 254px;
}

.swiper-pagination-service-tool {
  transition: .3s opacity;
  transform: translate3d(0, 0, 0);
  z-index: 10;
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.custom-service-tool-dot {
  background: #DBEAF8;
  width: 16px;
  height: 16px;
  margin: 0 12px;
  display: inline-block;
  border-radius: 50%;
}

.custom-service-tool-dot-active {
  background-color: var(--primary-color);
}

.service-tool-swiper-template {
  width: calc(100% - 76px);
  height: calc(100% - 76px);
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: auto;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-tool-intro {
  margin-left: 32px;
  flex: 1;
  height: 100%;
}

.service-tool-pic {
  object-fit: contain;
  background: #FFFFFF;
  width: 260px;
  height: 100%;
}

.service-tool-title {
  height: 35px;
  font-size: 24px;
  font-family: var(--text-font-family);
  font-weight: bold;
  color: var(--primary-color-dark);
  margin-bottom: 10px;
}

.academy {
  background: #D4C4AF;
}

.school {
  width: 1320px;
  margin: auto;
  padding: 164px 0;
}

.school-card-gap {
  column-gap: 30px;
  margin-top: 119px;
}

.elanco-grid-2{
  display: flex;
}

.school-card {
  width: 100%;
  height: 385px;
}

.enter-now-button {
  width: 420px;
  height: 92px;
  font-size: var(--font-size-xm);
}

.service-tool .enter-now-button {
  border-color: var(--primary-color);
  color: var(--primary-color);
  margin-top: 27px;
}

.service-tool .enter-now-button a {
  color: var(--primary-color);
}

.school .enter-now-button {
  border-color: #fff;
  color: #fff;
  margin-top: 40px;
}

.school .enter-now-button a {
  color: #fff;
}

.elanco-card-preview img {
  height: 173px;
}

.home-video{
  display: block;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9999;
  left:0;
  top:0;
  background-color: #000;
}

.home-video video{
  object-fit: cover;
}

.home-video .video-close{
  display: block;
  position: fixed;
  width: 50px;
  height: 50px;
  z-index: 99999;
  right:20px;
  top:20px;
  cursor: pointer;
  filter: invert(1);
}

.home-video .video-close img{
  width: 100%;
  height: 100%;
}

.mobile {
	display: none;
}

.content{
  width: 1320px;
  margin: 46px auto;
  font-size: 2rem;
  line-height: 1.8;
}

/* 移动端 */
@media screen and (max-width:768px) {

  .mobile {
    display: block;
  }

  .animal {
    height: auto;
    padding: 14px var(--page-padding);
  }

  .section .grid {
    margin: 16px;
  }

  .animals-circle {
    margin: 16px;
    column-gap: 5px;
  }

  .animals-circle .circle {
    width: 58px;
    height: 72px;
    font-size: 14px;
    padding: 0 7px;
  }

  .circle span {
    display: block;
  }

  .animal .grid {
    column-gap: 20px;
  }

  .product .section-title {
    margin-top: 7px;
  }

  .product {
    height: auto;
    background: var(--light-blue);
    padding: 14px var(--page-padding);
  }

  .product-swiper{
    margin-top:32px;
  }

  .product-card {
    height: auto;
    width: calc(100% - 20px);
  }

  .product-card-gap {
    column-gap: 12px;
  }

  .home .elanco-card-description {
    width: 100px;
  }

  #swiper2 {
    width: calc(100vw - 2 * var(--page-padding));
    height: auto;
    min-height: 220px;
    margin: 0 auto;
  }
  
  .swiper-pagination-product{
    margin-top:10px;
  }

  .swiper-2 {
    margin-top: 16px;
  }

  .custom-product-square {
    width: 40px;
    height: 3px;
    margin: 0 3px;
  }

  .swiper-button {
    display: none;
  }

  .product .card-preview img {
    width: 146px;
    height: 96px;
    object-fit: cover;
  }

  .swiper-2 .card-preview span {
    width: 44px;
    height: 20px;
    line-height: 20px
  }

  #swiper2 .card-title {
    margin-top: 12px;
  }

  .card-description {
    margin: 4px 0;
  }

  .card-btn {
    height: 28px;
    margin-top: 14px;
    line-height: 28px;
  }

  #swiper3 {
    width: calc(100vw - 2 * var(--page-padding));
    height: auto;
  }

  .service-tool {
    height: auto;
    padding: 23px 0;
    width: 100%;
  }

  .service-tool p {
    margin:16px var(--page-padding) 11px;
  }

  .service-tool .service-tool-content p {
    margin:6px 0;
  }

  .service-tool .enter-now-button {
    margin-top: 20px;
  }

  .service-tool-swiper-template {
    flex-direction: column;
    width: calc(100% - 28px);
    box-shadow: 0px 0 3px 1px rgba(0, 0, 0, 0.16);
    flex-direction: column;
    margin: 4px;
    height: auto;
    padding: 10px;
    position: initial;
    transform: none;
  }
  
  .service-tool-pic {
    width: 100%;
    height: 218px;
    object-fit: cover;
  }

  .service-tool-intro{
    margin-left: 0;
  }

  .service-tool-title {
    font-size: var(--font-size-xm);
    font-weight: var(--font-weight-bold);
    margin: 5px 0;
    height: auto;
  }

  .custom-service-tool-dot{
		width: 8px;
    height: 8px;
	}

  .swiper-pagination-service-tool {
    margin-top: 12px;
  }

  .enter-now-button {
    width: 210px;
    height: 46px;
    line-height: 46px;
  }

  .school {
    height: auto;
    width: 100%;
    padding: 23px 0;
  }

  .school .grid {
    --i: 2;
    column-gap: 4px;
  }

  .academy-card{
    width: 170px;
  }

  .school-card-gap{
    margin-top:32px;
    column-gap: 12px;
  }

  .elanco-grid-2{
    display: flex;
    padding: 0 var(--page-padding);
  }

  .card-preview span {
    width: 44px;
    height: 20px;
    line-height: 20px
  }

  .school .card-preview img {
    width: 142px;
    height: 95px;
    object-fit: cover;
  }

  .school .grid>:last-child {
    display: none;
  }

  .content{
    width: 90%;
    margin: 30px auto;
    font-size: 1.5rem;
  }
}