@charset "utf-8";
/* ==========================================================================
   威勤传感 · 关于我们 - 荣誉资质轮播
   独立样式表 / 命名空间 wq-honor / 不修改、不覆盖站点原有任何样式
   主色沿用官网 #d0112b（分页圆点、下划线的品牌红）
   ========================================================================== */

/* ---------- 荣誉资质（自包含，脱离原站 CSS 也能正常显示） ---------- */
.wq-honor,
.wq-honor *,
.wq-honor-lightbox,
.wq-honor-lightbox * { box-sizing: border-box; }

.wq-honor {
  max-width: 1700px;
  width: 95%;
  margin: 0 auto;
  padding: 10px 0 72px;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  position: relative;
}
.wq-honor:focus { outline: none; }
.wq-honor ul,
.wq-honor li,
.wq-honor figure,
.wq-honor h2,
.wq-honor h3,
.wq-honor p { margin: 0; padding: 0; }
.wq-honor ul { list-style: none; }
.wq-honor button { font-family: inherit; }
.wq-honor [hidden],
.wq-honor-lightbox[hidden] { display: none !important; }

/* ---------- 标题区（尺寸参照官网 .index-title / .index-brief） ---------- */
.wq-honor__head { text-align: center; margin-bottom: 36px; }
.wq-honor__title {
  display: inline-block;
  position: relative;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 2px;
  color: #222;
  padding-bottom: 18px;
}
.wq-honor__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 3px;
  margin-left: -24px;
  background-color: #d0112b;
}
.wq-honor__subtitle {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 4px;
  color: #c4c4c4;
  text-transform: uppercase;
}
.wq-honor__brief {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: #aaa;
}

/* ---------- 轮播舞台 ---------- */
.wq-honor__stage { position: relative; }
.wq-honor__viewport { overflow: hidden; width: 100%; }
.wq-honor__track {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  -webkit-transition: -webkit-transform .6s cubic-bezier(.22,.61,.36,1);
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
/* 证书不足一屏时居中平铺，保持卡片尺寸与其它栏目一致 */
.wq-honor__track.is-centered {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.wq-honor__item {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 25%;
  flex: 0 0 25%;
  min-width: 0;
  padding: 0 10px;
}

/* ---------- 证书卡片 ---------- */
.wq-honor__card {
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -ms-flex-direction: column;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #ededed;
  overflow: hidden;
  -webkit-transition: box-shadow .3s ease, border-color .3s ease, -webkit-transform .3s ease;
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.wq-honor__card:hover {
  border-color: #d0112b;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .10);
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
}
/* 高度按卡片宽度自适应（padding-bottom 百分比相对父级宽度），
   无论一屏 4 / 3 / 2 / 1 张，证书都能保持饱满统一的比例 */
.wq-honor__thumb {
  position: relative;
  display: block;
  height: 0;
  padding: 0 0 88%;
  background-color: #fafafa;
  overflow: hidden;
  cursor: zoom-in;
}
/* 证书多为竖版：等比完整呈现、居中留白，不裁切、不拉伸（兼容不支持 object-fit 的浏览器） */
.wq-honor__img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transition: -webkit-transform .4s ease;
  transition: transform .4s ease;
}
.wq-honor__card:hover .wq-honor__img {
  -webkit-transform: translate(-50%, -50%) scale(1.045);
  transform: translate(-50%, -50%) scale(1.045);
}
.wq-honor__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #d0112b;
  opacity: 0;
  -webkit-transform: scale(.7);
  transform: scale(.7);
  -webkit-transition: all .3s ease;
  transition: all .3s ease;
  pointer-events: none;
}
.wq-honor__zoom::before,
.wq-honor__zoom::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: #fff;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
.wq-honor__zoom::before { width: 12px; height: 2px; }
.wq-honor__zoom::after { width: 2px; height: 12px; }
.wq-honor__card:hover .wq-honor__zoom { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }

/* 缩略图缺失时的占位（由 honor.js 自动加 is-empty 类） */
.wq-honor__thumb.is-empty::after {
  content: "证书图片待上传";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  text-align: center;
  font-size: 13px;
  color: #bbb;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.wq-honor__thumb.is-empty .wq-honor__img { visibility: hidden; }
.wq-honor__thumb.is-empty { cursor: default; }

.wq-honor__info {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 16px 16px 20px;
  text-align: left;
}
.wq-honor__year {
  display: inline-block;
  min-width: 52px;
  padding: 2px 9px;
  font-size: 12px;
  line-height: 1.4;
  color: #d0112b;
  border: 1px solid #f1ccd2;
  border-radius: 2px;
}
.wq-honor__name {
  margin: 11px 0 7px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  color: #333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: 50px;
}
.wq-honor__desc {
  font-size: 13px;
  line-height: 1.6;
  color: #999;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: 42px;
}

/* ---------- 同一个框 + 栏目 Tab ---------- */
.wq-honor__box {
  position: relative;
  border: 1px solid #ededed;
  background-color: #fff;
}
.wq-honor__tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background-color: #fafafa;
  border-bottom: 1px solid #ededed;
  font-size: 0;
}
.wq-honor__tab {
  position: relative;
  padding: 15px 30px;
  margin-bottom: -1px;
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  -webkit-transition: color .25s ease, border-color .25s ease, background-color .25s ease;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}
.wq-honor__tab:hover { color: #d0112b; }
.wq-honor__tab.is-active {
  color: #d0112b;
  font-weight: 600;
  border-bottom-color: #d0112b;
  background-color: #fff;
}
.wq-honor__frame {
  position: relative;
  padding: 24px 26px 6px;
  min-height: 180px;
}
.wq-honor__panel { display: none; }
.wq-honor__panel.is-active {
  display: block;
  -webkit-animation: wqHonorFade .35s ease both;
  animation: wqHonorFade .35s ease both;
}
@-webkit-keyframes wqHonorFade {
  from { opacity: 0; -webkit-transform: translateY(8px); transform: translateY(8px); }
  to { opacity: 1; -webkit-transform: none; transform: none; }
}
@keyframes wqHonorFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 认证产品 / 证书编号 ---------- */
.wq-honor__meta {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed #eee;
  font-size: 13px;
}
.wq-honor__meta-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
  -ms-flex-align: baseline;
  align-items: baseline;
  line-height: 1.75;
}
.wq-honor__meta dt {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 64px;
  flex: 0 0 64px;
  color: #999;
}
.wq-honor__meta dd {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #555;
  word-break: break-all;
}
.wq-honor__meta dd:empty::after { content: "—"; color: #ccc; }

/* ---------- 左右箭头 ---------- */
.wq-honor__arrow {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transition: all .3s ease;
  transition: all .3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  outline: none;
}
.wq-honor__arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-left: 2px solid #999;
  border-bottom: 2px solid #999;
  -webkit-transition: border-color .3s ease;
  transition: border-color .3s ease;
}
.wq-honor__arrow--prev { left: 2px; }
.wq-honor__arrow--next { right: 2px; }
.wq-honor__arrow--prev::before { -webkit-transform: translate(-40%, -50%) rotate(45deg); transform: translate(-40%, -50%) rotate(45deg); }
.wq-honor__arrow--next::before { -webkit-transform: translate(-60%, -50%) rotate(-135deg); transform: translate(-60%, -50%) rotate(-135deg); }
.wq-honor__arrow:hover,
.wq-honor__arrow:focus { background-color: #d0112b; border-color: #d0112b; }
.wq-honor__arrow:hover::before,
.wq-honor__arrow:focus::before { border-color: #fff; }
.wq-honor__arrow.is-hidden { display: none; }

/* ---------- 分页圆点 ---------- */
.wq-honor__dots { margin-top: 26px; text-align: center; font-size: 0; }
.wq-honor__dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  padding: 0;
  border: 1px solid #b7c5ce;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  vertical-align: middle;
  -webkit-transition: all .3s ease;
  transition: all .3s ease;
  outline: none;
}
.wq-honor__dot:hover { border-color: #d0112b; }
.wq-honor__dot.is-on { background-color: #d0112b; border-color: #d0112b; }
.wq-honor__dots.is-hidden { display: none; }

/* ---------- 5 秒自动轮播倒计时（与 JS 计时器同步） ---------- */
.wq-honor__progress {
  width: 120px;
  height: 2px;
  margin: 14px auto 0;
  background-color: #ededed;
  border-radius: 2px;
  overflow: hidden;
}
.wq-honor__progress i {
  display: block;
  width: 0;
  height: 100%;
  background-color: #d0112b;
  border-radius: 2px;
}

.wq-honor__empty { padding: 46px 0 10px; text-align: center; font-size: 15px; color: #999; }

/* ---------- 证书大图灯箱 ---------- */
.wq-honor-lightbox {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 99999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, .88);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  opacity: 0;
  -webkit-transition: opacity .25s ease;
  transition: opacity .25s ease;
}
.wq-honor-lightbox.is-open { opacity: 1; }
.wq-honor-lightbox__figure { margin: 0; text-align: center; max-width: 90%; }
.wq-honor-lightbox__img {
  display: block;
  max-width: 88vw;
  max-height: 74vh;
  margin: 0 auto;
  background-color: #fff;
  -o-object-fit: contain;
  object-fit: contain;
}
.wq-honor-lightbox__caption {
  margin-top: 16px;
  font-size: 15px;
  color: #eee;
  line-height: 1.6;
}
.wq-honor-lightbox__count { color: #aaa; font-size: 13px; margin-left: 10px; }
.wq-honor-lightbox__btn {
  position: absolute;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background-color: rgba(255,255,255,.08);
  color: #fff;
  font-size: 26px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  -webkit-transition: all .25s ease;
  transition: all .25s ease;
  outline: none;
}
.wq-honor-lightbox__btn:hover { background-color: #d0112b; border-color: #d0112b; }
.wq-honor-lightbox__btn--close { right: 3%; top: 5%; font-size: 30px; }
.wq-honor-lightbox__btn--prev { left: 3%; top: 50%; margin-top: -23px; }
.wq-honor-lightbox__btn--next { right: 3%; top: 50%; margin-top: -23px; }
.wq-honor-lightbox__btn.is-hidden { display: none; }

/* ---------- 响应式（断点与官网 992 / 768 / 640 / 480 保持一致） ---------- */
@media only screen and (max-width: 1200px) {
  .wq-honor__arrow--prev { left: 0; }
  .wq-honor__arrow--next { right: 0; }
  .wq-honor__frame { padding: 22px 20px 6px; }
}
@media only screen and (max-width: 992px) {
  .wq-honor__title { font-size: 30px; padding-bottom: 14px; }
  .wq-honor__head { margin-bottom: 28px; }
  .wq-honor { padding-bottom: 52px; }
  .wq-honor__arrow { width: 36px; height: 36px; }
  .wq-honor__tab { padding: 13px 22px; font-size: 15px; }
  .wq-honor__frame { padding: 20px 16px 6px; }
}
@media only screen and (max-width: 768px) {
  .wq-honor__title { font-size: 26px; }
  .wq-honor__brief { font-size: 13px; }
  .wq-honor__arrow { display: none; }
  .wq-honor__tabs {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wq-honor__tab { padding: 12px 18px; font-size: 14px; }
  .wq-honor__frame { padding: 18px 12px 4px; }
  .wq-honor-lightbox__btn--prev { left: 1%; }
  .wq-honor-lightbox__btn--next { right: 1%; }
}
@media only screen and (max-width: 640px) {
  .wq-honor__title { font-size: 23px; letter-spacing: 1px; }
  .wq-honor__subtitle { font-size: 11px; letter-spacing: 2px; }
  .wq-honor__item { padding: 0 6px; }
  .wq-honor__name { font-size: 14px; }
  .wq-honor__desc { font-size: 12px; }
  .wq-honor__meta { font-size: 12px; }
  .wq-honor__meta dt { -ms-flex: 0 0 56px; flex-basis: 56px; }
  .wq-honor__tab { padding: 11px 14px; font-size: 13px; }
  .wq-honor__frame { padding: 14px 8px 4px; }
  .wq-honor__dots { margin-top: 20px; }
  .wq-honor__dot { width: 9px; height: 9px; margin: 0 4px; }
  .wq-honor-lightbox__img { max-width: 92vw; max-height: 68vh; }
}
@media only screen and (max-width: 480px) {
  .wq-honor__title { font-size: 22px; }
  .wq-honor__thumb { padding-bottom: 96%; }  /* 一屏一张时略高，证书更醒目 */
  .wq-honor__info { padding: 14px 10px 18px; }
}

/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  .wq-honor__track,
  .wq-honor__card,
  .wq-honor__img,
  .wq-honor__arrow,
  .wq-honor__dot,
  .wq-honor-lightbox { -webkit-transition: none; transition: none; }
  .wq-honor__panel.is-active { -webkit-animation: none; animation: none; }
}
