.company-honors {
  padding: 76px 0 86px;
  scroll-margin-top: var(--header-height, 96px);
  color: #102746;
  background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
  font-family: "Company Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* 底色与首页「产品中心」「关于我们」「工程案例」一致：纯黑 + 车间照片做背景（叠黑色蒙版压暗）。
   需 !important 盖过 style.css 中共享深色主题的
   .company-honors { background: var(--theme-dark) !important }。 */
.company-honors {
  background:
    linear-gradient(rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.86)),
    url("/assets/index/imga/product-banner-2.jpg") center / cover no-repeat,
    #000 !important;
}

/* 首页「售后服务与配件」标题加点橙色：标题里的强调词 + 标题下方短横线
   注意要 !important —— style.css 的共享深色主题已把 .honors-heading h2 span 设成浅灰、
   .honors-heading-line 设成灰色，不写 !important 盖不住。 */
.company-honors .honors-heading h2 span {
  color: var(--orange) !important;
}

.company-honors .honors-heading-line {
  background: var(--orange) !important;
}

/* 首页「售后服务与配件」底部按钮：与「工程案例」的「查看更多案例」按钮统一样式
   （浅灰底 #e8e8e8 + 深灰字 #4f4f4f + 灰描边 + 胶囊圆角，hover 反白） */
.company-honors .honors-actions a {
  gap: 9px;
  min-width: 196px;
  min-height: 41px;
  padding: 8px 27px;
  border: 1px solid #9b9b9b !important;
  border-radius: 999px;
  color: #4f4f4f !important;
  background: #e8e8e8 !important;
  font: 600 15px/23px "Microsoft YaHei", "PingFang SC", sans-serif;
  transition: color 200ms ease, background 200ms ease;
}

.company-honors .honors-actions a:hover,
.company-honors .honors-actions a:focus-visible {
  color: #fff !important;
  background: #9b9b9b !important;
}

.company-honors .honors-actions a span {
  font-size: 17px;
  font-weight: 400;
}

.company-honors *,
.company-honors *::before,
.company-honors *::after {
  box-sizing: border-box;
}

.honors-container {
  /* 加宽容器，宽屏下卡片随之变大（原 1436px） */
  width: min(1600px, calc(100% - 100px));
  margin: 0 auto;
}

.honors-heading {
  margin-bottom: 38px;
  text-align: center;
}

.honors-kicker {
  margin: 0;
  color: #8998af;
  font: 600 18px/1.4 Arial, sans-serif;
  letter-spacing: 2px;
}

.honors-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.35;
}

.honors-heading h2 span {
  color: #0060ff;
}

.honors-heading-line {
  display: block;
  width: 42px;
  height: 3px;
  margin: 10px auto 12px;
  background: #0060ff;
}

.honors-heading > p:last-child {
  margin: 0;
  color: #7787a2;
  font-size: 17px;
  line-height: 1.6;
}

.honors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.honor-card {
  min-width: 0;
  margin: 0;
  padding: 16px 16px 20px;
  border: 1px solid #e4ebf5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(24, 66, 122, 0.07);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.honor-card:hover {
  border-color: #bed7ff;
  box-shadow: 0 16px 34px rgba(24, 66, 122, 0.14);
  transform: translateY(-5px);
}

.honor-image {
  position: relative;
  display: grid;
  overflow: hidden;
  /* 图片区由 4:3 改为 1:1，卡片整体随之变大 */
  aspect-ratio: 1 / 1;
  place-items: center;
  border: 1px solid #e9eff7;
  border-radius: 6px;
  background: #f5f8fd;
}

.honor-image > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.honor-image > img:not([src]),
.honor-image > img[src=""],
.honor-image > img[src]:not([src=""]) + .honor-placeholder {
  display: none;
}

.honor-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  color: #9babc1;
  font-size: 13px;
  letter-spacing: .04em;
}

.honor-placeholder svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: #b4c8e3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.honor-card figcaption {
  margin-top: 16px;
  color: #000000;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.honors-actions {
  margin-top: 32px;
  text-align: center;
}

.honors-actions a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 20px;
  border: 1px solid #0b6ce6;
  border-radius: 5px;
  color: #0b6ce6;
  font-weight: 700;
  transition: color .2s ease, background-color .2s ease;
}

.honors-actions a:hover,
.honors-actions a:focus-visible {
  color: #fff;
  background: #0b6ce6;
}

.honors-actions a span {
  font-size: 22px;
  line-height: 1;
}

@media (min-width: 601px) and (max-width: 1450px) {
  .honors-container {
    width: calc(100% - 124px);
    margin-left: 28px;
    margin-right: 96px;
  }
}

@media (max-width: 980px) {
  .honors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .company-honors {
    padding: 56px 0 62px;
  }

  .honors-container {
    width: calc(100% - 32px);
  }

  .honors-heading {
    margin-bottom: 27px;
  }

  .honors-kicker {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .honors-heading h2 {
    font-size: 32px;
  }

  .honors-heading > p:last-child {
    font-size: 13px;
  }

  .honors-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .honor-card {
    padding: 12px 12px 16px;
  }

  /* 手机端保持 4:3，避免方形图片让单张卡片过高 */
  .honor-image {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .honor-card {
    transition: none;
  }
}

/* 两侧留白与首页「产品中心」「关于我们」「工程案例」保持一致：
   同样的 max(3.5vw, 24px) 边距 + 1720px 宽度上限居中（只改宽度，其它不动） */
@media (min-width: 1121px) {
  .honors-container {
    width: min(1720px, calc(100% - 2 * max(3.5vw, 24px)));
    margin-left: auto;
    margin-right: auto;
  }
}
