.home2-plugins {
  padding: 64px 0;
}

.home2-wrap {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
}

.home2-plugins h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
}

.home2-sub {
  max-width: 820px;
  margin: 0 auto 28px;
  color: var(--muted);
  line-height: 2;
  text-align: center;
}

.home2-plugin-slider {
  position: relative;
}

.home2-plugin-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 4);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home2-plugin-row::-webkit-scrollbar {
  display: none;
}

.home2-plugin-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(26, 69, 59, 0.22);
  cursor: pointer;
  transform: translateY(-50%);
}

.home2-plugin-arrow.is-prev {
  right: -8px;
}

.home2-plugin-arrow.is-next {
  left: -8px;
}

.home2-plugin-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.home2-plugin {
  position: relative;
  display: block;
  overflow: hidden;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  scroll-snap-align: start;
}

.home2-plugin[data-animate] {
  transform: none;
}

.home2-plugin-art {
  height: 280px;
  background: var(--card-art);
}

.home2-plugin-art:empty {
  display: none;
}

.home2-plugin-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home2-plugin h3 {
  margin: 0;
  padding: 16px 16px 20px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
}

.home2-empty {
  margin: 28px 0 0;
  color: var(--muted, #6b7280);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.home2-plugins-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.home2-plugins-more {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 3px 3px 3px 20px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.home2-plugins-more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 4px;
}

.home2-plugins-more-icon svg {
  width: 12px;
  height: 12px;
  transform: scaleX(-1);
}

.home2-off {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  min-width: 46px;
  padding: 10px 0;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.home2-plugins [data-animate] {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(16px);
}

.home2-plugins [data-animate].is-in {
  animation: pluginBlurIn 0.7s ease both;
}

@keyframes pluginBlurIn {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@media (max-width: 1024px) {
  .home2-plugin-row {
    grid-auto-columns: calc((100% - 16px) / 2);
  }
}

@media (max-width: 700px) {
  .home2-plugin-row {
    grid-auto-columns: 82%;
  }

  .home2-plugin-arrow.is-prev {
    right: 4px;
  }

  .home2-plugin-arrow.is-next {
    left: 4px;
  }
}
