.gls-category-directory-shell {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 30px 0 62px;
}

.gls-category-directory__section + .gls-category-directory__section {
  margin-top: 42px;
}

.gls-category-directory__section-heading {
  display: flex;
  margin-bottom: 16px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.gls-category-directory__section-heading p,
.gls-category-directory__section-heading h1,
.gls-category-directory__section-heading h2,
.gls-category-directory__section-heading > span {
  margin: 0;
}

.gls-category-directory__section-heading p {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.gls-category-directory__section-heading h1,
.gls-category-directory__section-heading h2 {
  color: rgba(255, 255, 255, 0.94);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.gls-category-directory__section-heading > span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  line-height: 1.5;
}

.gls-category-directory__recommended-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gls-category-directory__recommended-item {
  min-width: 0;
  margin: 0;
  padding: 0;
  --gls-category-accent: #ff9a2e;
  --gls-category-accent-soft: rgba(255, 154, 46, 0.13);
}

.gls-category-directory__recommended-item--moves {
  --gls-category-accent: #71d7ff;
  --gls-category-accent-soft: rgba(113, 215, 255, 0.12);
}

.gls-category-directory__recommended-item--weimiquan {
  --gls-category-accent: #ff7776;
  --gls-category-accent-soft: rgba(255, 119, 118, 0.12);
}

.gls-category-directory__recommended-item a,
.gls-category-directory__recommended-item a:visited {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 148px;
  padding: 20px;
  border-radius: 6px;
  background: #181b20;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  align-content: start;
  gap: 16px;
  box-shadow: inset 0 2px 0 var(--gls-category-accent);
  transition: background-color 160ms ease, transform 160ms ease;
}

.gls-category-directory__recommended-item a:hover,
.gls-category-directory__recommended-item a:focus-visible {
  background: #1d2026;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.gls-category-directory__recommended-item a:focus-visible {
  outline: 2px solid var(--gls-category-accent);
  outline-offset: 2px;
}

.gls-category-directory__recommended-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--gls-category-accent-soft);
  color: var(--gls-category-accent);
  font-size: 18px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.gls-category-directory__recommended-content {
  display: block;
  min-width: 0;
}

.gls-category-directory__recommended-content > span,
.gls-category-directory__recommended-content strong {
  display: block;
}

.gls-category-directory__recommended-label {
  margin-bottom: 5px;
  color: var(--gls-category-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.gls-category-directory__recommended-content strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.96);
  font-size: 18px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gls-category-directory__recommended-content > span:last-child {
  overflow: hidden;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gls-category-directory__recommended-meta {
  display: flex;
  grid-column: 1 / -1;
  margin-top: auto;
  padding-top: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  align-items: center;
  justify-content: space-between;
}

.gls-category-directory__recommended-meta .fa {
  color: var(--gls-category-accent);
  font-size: 16px;
}

.gls-category-directory__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gls-category-directory__item {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.gls-category-directory__item a,
.gls-category-directory__item a:visited {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 14px;
  min-height: 82px;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  align-items: center;
  gap: 12px;
  transition: border-color 160ms ease, color 160ms ease;
}

.gls-category-directory__item a:hover,
.gls-category-directory__item a:focus-visible {
  border-color: rgba(113, 215, 255, 0.34);
  color: #fff;
  text-decoration: none;
}

.gls-category-directory__item a:focus-visible {
  outline: 2px solid #71d7ff;
  outline-offset: 2px;
}

.gls-category-directory__icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(113, 215, 255, 0.09);
  color: #71d7ff;
  font-size: 14px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.gls-category-directory__content {
  display: block;
  min-width: 0;
}

.gls-category-directory__content strong,
.gls-category-directory__content span {
  display: block;
}

.gls-category-directory__content strong {
  overflow: hidden;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gls-category-directory__content span {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gls-category-directory__count {
  color: #71d7ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.gls-category-directory__arrow {
  color: rgba(255, 255, 255, 0.42);
  font-size: 18px;
  text-align: right;
}

.gls-category-directory__empty {
  margin: 0;
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.64);
}

@media only screen and (max-width: 959px) {
  .gls-category-directory-shell {
    padding: 24px 12px 46px;
  }

  .gls-category-directory__recommended-item a,
  .gls-category-directory__recommended-item a:visited {
    min-height: 142px;
    padding: 17px;
  }
}

@media only screen and (max-width: 720px) {
  .gls-category-directory__section + .gls-category-directory__section {
    margin-top: 34px;
  }

  .gls-category-directory__section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .gls-category-directory__recommended-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .gls-category-directory__recommended-item a,
  .gls-category-directory__recommended-item a:visited {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 88px;
    padding: 14px;
    align-items: center;
    gap: 12px;
  }

  .gls-category-directory__recommended-icon {
    width: 42px;
    height: 42px;
  }

  .gls-category-directory__recommended-content strong {
    font-size: 16px;
  }

  .gls-category-directory__recommended-meta {
    display: flex;
    grid-column: auto;
    margin: 0;
    padding: 0;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
  }

  .gls-category-directory__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .gls-category-directory__item a,
  .gls-category-directory__item a:visited {
    grid-template-columns: 34px minmax(0, 1fr) auto 14px;
    min-height: 76px;
    padding: 12px 2px;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gls-category-directory__recommended-item a,
  .gls-category-directory__recommended-item a:visited {
    transition: none;
  }

  .gls-category-directory__recommended-item a:hover,
  .gls-category-directory__recommended-item a:focus-visible {
    transform: none;
  }
}
