/* 十九大核心模块 — 平铺网格，一排 5 个 */
.gpr-modules {
  width: 1200px !important;
  max-width: calc(100% - 40px);
  margin: 0 auto 40px;
  overflow: visible;
  position: relative;
  padding: 0;
  box-sizing: border-box;
}

.gpr-modules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
}

.gpr-mod-item {
  box-sizing: border-box;
  height: 170px;
  position: relative;
  background: #ffffff;
  cursor: pointer;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
}

.gpr-mod-face {
  text-align: center;
  padding-top: 42px;
}

.gpr-mod-icon {
  height: 44px;
}

.gpr-mod-icon img {
  height: 44px;
  width: auto;
  display: inline-block;
}

.gpr-mod-title {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #3d3d3d;
  line-height: 1.4;
  padding: 0 12px;
}

.gpr-mod-hover {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background-color: #e60012;
  background-image: url(../../images/version26/gpr-module-hover-bg.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  overflow: auto;
  box-sizing: border-box;
}

.gpr-mod-hover p {
  font-size: 12px;
  padding: 16px 14px 14px 16px;
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.gpr-mod-item:hover .gpr-mod-hover {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1100px) {
  .gpr-modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 850px) {
  .gpr-modules {
    margin-bottom: 24px;
  }

  .gpr-modules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gpr-mod-item {
    height: 130px;
  }

  .gpr-mod-face {
    padding-top: 32px;
  }

  .gpr-mod-icon,
  .gpr-mod-icon img {
    height: 36px;
  }

  .gpr-mod-title {
    font-size: 14px;
    margin-top: 12px;
  }

  .gpr-mod-hover p {
    font-size: 12px;
    padding: 12px 10px;
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  .gpr-modules-grid {
    grid-template-columns: 1fr;
  }
}
