.home-showcase-section {
  padding: 82px 0 0;
  background: #f3f6fb;
}

/* The partner section already supplies the intended closing whitespace. */
.home-partner-section + .home-showcase-section {
  padding-top: 0;
}

.home-showcase-alt {
  background: #eef3fa;
}

html[data-rxh-language="zh-CN"] .home-section-heading > div > span,
html[data-rxh-language="zh-CN"] .partner-section-heading > span,
html[data-rxh-language="zh-CN"] .home-feature-showcase .home-showcase-media > span,
html[data-rxh-language="zh-CN"] .home-feature-showcase > a > div:last-child > small {
  display: none;
}

html[data-rxh-language="zh-CN"] .home-feature-showcase h3 {
  margin-top: 0;
}

.home-section-heading > a,
.home-section-heading > p {
  color: #2f7cff;
  font-size: 9px;
  font-weight: 700;
}

.home-showcase-grid {
  display: grid;
  gap: 14px;
}

.home-feature-showcase {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-feature-showcase > a {
  overflow: hidden;
  border: 1px solid #dce4ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(10, 37, 79, 0.05);
}

.home-feature-showcase > a:hover {
  border-color: #72a5ff;
  box-shadow: 0 18px 42px rgba(26, 91, 190, 0.12);
  transform: translateY(-3px);
}

.home-feature-showcase > a > div:last-child {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.home-feature-showcase small {
  color: #2f7cff;
  font-family: var(--font-mono);
  font-size: 7px;
}

.home-feature-showcase h3 {
  margin: 12px 0 0;
  color: #071326;
  font-size: 17px;
  line-height: 1.35;
}

.home-product-showcase,
.home-project-showcase {
  grid-template-columns: repeat(4, 1fr);
}

.home-product-showcase > a,
.home-project-showcase > a {
  overflow: hidden;
  border: 1px solid #dce4ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(10, 37, 79, 0.05);
}

.home-product-showcase > a:hover,
.home-project-showcase > a:hover {
  border-color: #72a5ff;
  box-shadow: 0 18px 42px rgba(26, 91, 190, 0.12);
  transform: translateY(-3px);
}

.home-showcase-media {
  position: relative;
  min-height: 205px;
  background-position: center;
  background-size: cover;
}

.home-showcase-media span {
  position: absolute;
  top: 11px;
  left: 11px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #071326;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
}

.home-showcase-radar {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #06132d, #10498f);
}

.home-showcase-radar .icon {
  width: 70px;
  height: 70px;
  color: #78aaff;
  stroke-width: 1.2;
}

.home-product-showcase > a > div:last-child,
.home-project-showcase > a > div:last-child {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.home-product-showcase small,
.home-project-showcase small {
  color: #2f7cff;
  font-family: var(--font-mono);
  font-size: 7px;
}

.home-product-showcase h3,
.home-project-showcase h3 {
  margin: 12px 0 7px;
  color: #071326;
  font-size: 17px;
}

.home-product-showcase p,
.home-project-showcase p {
  margin: 0;
  color: #6d7b90;
  font-size: 10px;
}

.home-wiki-showcase {
  grid-template-columns: repeat(4, 1fr);
}

.home-wiki-showcase a {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #dce4ef;
  border-radius: 13px;
  background: #fff;
}

.home-wiki-showcase a:hover {
  border-color: #72a5ff;
  background: #f8faff;
}

.home-wiki-showcase span {
  color: #2f7cff;
  font-family: var(--font-mono);
  font-size: 7px;
}

.home-wiki-showcase strong {
  margin-top: auto;
  color: #071326;
  font-size: 16px;
}

.home-wiki-showcase p {
  margin: 7px 0 0;
  color: #6d7b90;
  font-size: 9px;
}

.home-activity-showcase {
  grid-template-columns: repeat(2, 1fr);
}

.home-activity-showcase a {
  overflow: hidden;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(10, 37, 79, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-activity-showcase a:hover {
  border-color: #72a5ff;
  box-shadow: 0 18px 42px rgba(26, 91, 190, 0.1);
  transform: translateY(-3px);
}

.home-activity-media {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid #dce4ef;
  background-color: #dfe7f3;
  background-position: center;
  background-size: cover;
}

.home-activity-content {
  min-height: 172px;
  display: grid;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  grid-template-columns: 120px minmax(0, 1fr) auto;
}

.home-activity-content > strong {
  color: #175fcf;
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1.1;
  white-space: nowrap;
}

.home-activity-showcase h3 {
  margin: 0 0 10px;
  color: #071326;
  font-size: 28px;
  line-height: 1.25;
}

.home-activity-showcase p {
  margin: 0;
  color: #6d7b90;
  font-size: 18px;
  line-height: 1.45;
}

.home-activity-content > span {
  padding: 9px 12px;
  border-radius: 5px;
  background: #eaf2ff;
  color: #175fcf;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

body.theme-black .home-showcase-alt,
body.theme-black .home-showcase-section,
body.theme-black .home-partner-section {
  background: #04070d;
}

body.theme-black .home-product-showcase > a,
body.theme-black .home-project-showcase > a,
body.theme-black .home-feature-showcase > a,
body.theme-black .home-wiki-showcase a,
body.theme-black .home-activity-showcase a {
  border-color: #26344a;
  background: #0b1422;
}

body.theme-black .home-activity-media {
  border-bottom-color: #26344a;
}

body.theme-black .home-product-showcase h3,
body.theme-black .home-project-showcase h3,
body.theme-black .home-feature-showcase h3,
body.theme-black .home-wiki-showcase strong,
body.theme-black .home-activity-showcase h3,
body.theme-black .home-showcase-section .home-section-heading h2 {
  color: #f4f7ff;
}

@media (max-width: 1024px) {
  .home-feature-showcase,
  .home-product-showcase,
  .home-project-showcase,
  .home-wiki-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .home-feature-showcase,
  .home-product-showcase,
  .home-project-showcase,
  .home-wiki-showcase,
  .home-activity-showcase,
  .home-partner-grid {
    grid-template-columns: 1fr;
  }

  .home-showcase-section,
  .home-partner-section {
    padding-top: 62px;
  }

  .home-activity-content {
    min-height: 220px;
    align-items: start;
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .home-activity-content > span {
    grid-column: 2;
    justify-self: start;
  }
}
