/* 首页局部样式：只放首页首屏箭头和首页产品图卡，不影响其他页面。 */

/* 首屏向下滚动箭头。 */
.scroll-arrow {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; cursor: pointer;
}
.scroll-arrow span {
  display: block; width: 24px; height: 24px;
  border-bottom: 2px solid #fff; border-right: 2px solid #fff;
  transform: rotate(45deg); animation: scrollBounce 2s infinite;
}
.scroll-arrow span:nth-child(2) { animation-delay: .2s; margin-top: -8px; }
.scroll-arrow span:nth-child(3) { animation-delay: .4s; margin-top: -8px; }
@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { opacity: .4; }
  40% { opacity: 1; }
}

/* 首页产品卡图片。 */
.product-card-img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.home-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.home-product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.home-product-card-body p {
  margin-bottom: 22px;
}

.home-product-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-width: 168px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  line-height: 1;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.home-product-card:hover .home-product-card-cta,
.home-product-card:focus-visible .home-product-card-cta {
  background: var(--color-primary-dark);
  box-shadow: 0 12px 24px rgba(46, 125, 50, 0.18);
  transform: translateY(-1px);
}

.home-product-card:focus-visible {
  outline: 3px solid rgba(46, 125, 50, 0.28);
  outline-offset: 3px;
}
