/* 文件描述：资质荣誉页样式（结构对齐旧站 aboutUs 荣誉区块，视觉对齐 zst2026，aqa- 前缀） */

body.aqa-page {
  padding-top: 0;
  background: var(--slate-50);
  --aqa-sticky-h: 48px; /* 页内 sticky Tab 高度，供锚点避让 */
}

.aqa-main {
  padding-top: clamp(40px, calc(100vw * 56 / 1920), 56px);
}

/* ── 页内 sticky Tab：默认隐藏，滚到权威认可后贴顶显示 ── */
.aqa-sticky {
  position: fixed;
  top: var(--nav-height, 64px);
  left: 0;
  right: 0;
  z-index: 35;
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  /* 默认藏在顶栏后，不占文档流 */
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s;
}

.aqa-sticky.is-shown {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.aqa-sticky-track {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  justify-content: center;
  gap: clamp(8px, calc(100vw * 24 / 1920), 32px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.aqa-sticky-track::-webkit-scrollbar {
  display: none;
}

.aqa-sticky-link {
  flex-shrink: 0;
  padding: 14px 12px;
  font-size: var(--fs-body, 15px);
  color: var(--slate-600);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  line-height: 1.2;
  transition: color 0.2s, border-color 0.2s;
}

.aqa-sticky-link:hover {
  color: var(--primary);
}

.aqa-sticky-link.is-active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

/* 锚点滚动时避开顶栏 + sticky Tab，避免标题贴顶被挡 */
.aqa-block {
  scroll-margin-top: calc(var(--nav-height, 64px) + var(--aqa-sticky-h) + 16px);
}

/* ── 区块标题 ── */
.aqa-block + .aqa-block {
  margin-top: clamp(48px, calc(100vw * 72 / 1920), 72px);
}

.aqa-block-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, calc(100vw * 12 / 1920), 12px);
  margin-bottom: clamp(24px, calc(100vw * 32 / 1920), 32px);
  text-align: center;
}

/* 图标与主标题同一行居中 */
.aqa-block-head-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.aqa-block-head-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.aqa-block-title {
  margin: 0;
  font-size: clamp(22px, calc(100vw * 25 / 1920), 25px);
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.2;
}

/* 分区副标题：置于主标题下方 */
.aqa-block-desc {
  margin: 0;
  max-width: min(920px, 100%);
  font-size: clamp(14px, calc(100vw * 16 / 1920), 16px);
  font-weight: 400;
  color: var(--on-surface-variant, #5f6b7a);
  line-height: 1.7;
}

/* ── 权威认可：横向证书卡片 ── */
.aqa-auth-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.aqa-auth-card {
  flex: 1 1 280px;
  max-width: calc(20% - 16px);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r12);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.aqa-auth-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 35%, #fff);
}

.aqa-auth-card-inner {
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 254px;
}

.aqa-auth-badge {
  width: 100%;
  max-width: 300px;
  height: 55px;
  margin-bottom: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.aqa-auth-badge--1 { background-image: url(/static/skin/images/aboutus/qualification/new_background_1.png); }
.aqa-auth-badge--2 { background-image: url(/static/skin/images/aboutus/qualification/new_background_2.png); }
.aqa-auth-badge--3 { background-image: url(/static/skin/images/aboutus/qualification/new_background_3.png); }
.aqa-auth-badge--4 { background-image: url(/static/skin/images/aboutus/qualification/new_background_4.png); margin-bottom: 20px; }
.aqa-auth-badge--5 { background-image: url(/static/skin/images/aboutus/qualification/new_background_5.png); }

.aqa-auth-list {
  width: 100%;
  margin: 0;
  padding: 14px 4px 0;
  border-top: 1px dashed var(--slate-200);
  list-style: none;
  text-align: center;
}

.aqa-auth-list li {
  font-size: 12px;
  line-height: 1.9;
  color: var(--slate-600);
  transition: color 0.2s ease;
}

.aqa-auth-card:hover .aqa-auth-list li {
  color: var(--slate-800);
}

/* ── 资质认证：方形证书格 ── */
.aqa-cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}

.aqa-cert-card {
  flex: 0 0 calc(25% - 13px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r12);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.aqa-cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 35%, #fff);
}

.aqa-cert-card-inner {
  min-height: 261px;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* badge 区：浅色衬底，与文字区分隔 */
.aqa-cert-badge {
  width: 100%;
  max-width: 240px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin: 0 0 16px;
}

.aqa-cert-badge--6 { height: 83px; background-image: url(/static/skin/images/aboutus/qualification/new_background_6.png); margin-bottom: 24px; }
.aqa-cert-badge--7 { height: 130px; background-image: url(/static/skin/images/aboutus/qualification/new_background_7.png); }
.aqa-cert-badge--8 { height: 130px; background-image: url(/static/skin/images/aboutus/qualification/new_background_8.png); }
.aqa-cert-badge--9 { height: 130px; background-image: url(/static/skin/images/aboutus/qualification/new_background_9.png); }
.aqa-cert-badge--10 { height: 130px; background-image: url(/static/skin/images/aboutus/qualification/new_background_10.png); }
.aqa-cert-badge--11 { height: 130px; background-image: url(/static/skin/images/aboutus/qualification/new_background_11.png); }
.aqa-cert-badge--12 { height: 130px; background-image: url(/static/skin/images/aboutus/qualification/new_background_12.png); }
.aqa-cert-badge--13 { height: 130px; background-image: url(/static/skin/images/aboutus/qualification/new_background_13.png); }

.aqa-cert-text,
.aqa-cert-list {
  width: 100%;
  margin: 0;
  padding: 14px 4px 0;
  border-top: 1px dashed var(--slate-200);
  list-style: none;
  text-align: center;
  font-size: 14px;
  line-height: 1.85;
  color: var(--slate-600);
}

.aqa-cert-list li {
  position: relative;
  transition: color 0.2s ease;
}

.aqa-cert-list li + li {
  margin-top: 2px;
}

.aqa-cert-card:hover .aqa-cert-text,
.aqa-cert-card:hover .aqa-cert-list li {
  color: var(--slate-800);
}

/* ── 重要荣誉：响应式卡片网格 ── */
.aqa-honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(14px, calc(100vw * 20 / 1920), 20px);
}

.aqa-honor-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 18px 22px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r12);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* 左侧主题色强调条 */
.aqa-honor-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

.aqa-honor-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 35%, #fff);
}

.aqa-honor-item:hover::before {
  opacity: 1;
}

.aqa-honor-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--slate-800);
  transition: color 0.2s ease;
}

.aqa-honor-bullet {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  background: url(/static/skin/images/aboutus/qualification/light_2.png) center / cover no-repeat;
  transition: background-image 0.2s ease;
}

.aqa-honor-item:hover .aqa-honor-bullet {
  background-image: url(/static/skin/images/aboutus/qualification/light_1.png);
}

.aqa-honor-item:hover .aqa-honor-title {
  color: var(--primary);
}

.aqa-honor-org {
  margin: 8px 0 0 26px;
  padding-top: 8px;
  border-top: 1px dashed var(--slate-200);
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate-500);
}

/* ── 行业标准 / 调研报告：横式四列（左图右标题） ── */
.aqa-doc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}

/* 整卡可点：一行 4 个 */
.aqa-doc-card {
  flex: 0 0 calc(25% - 13px);
  min-width: 240px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r12);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.aqa-doc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 35%, #fff);
}

/* 内层：左图右文 */
.aqa-doc-card-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 120px;
  padding: 16px 14px;
}

/* 左侧封面 */
.aqa-doc-cover {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  margin: 0;
}

.aqa-doc-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}

/* 右侧标题 + CTA */
.aqa-doc-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.aqa-doc-title {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--slate-600);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.aqa-doc-card:hover .aqa-doc-title {
  color: var(--slate-800);
}

/* Hover 显示「查看详情」 */
.aqa-doc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid rgba(0, 87, 156, 0.25);
  border-radius: var(--r8);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.aqa-doc-card:hover .aqa-doc-cta {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.aqa-doc-card:hover .aqa-doc-cta:hover {
  background: rgba(0, 87, 156, 0.04);
  border-color: var(--primary);
}

@media (max-width: 1200px) {
  .aqa-auth-card {
    max-width: calc(33.333% - 14px);
  }

  .aqa-cert-card,
  .aqa-doc-card {
    flex: 0 0 calc(33.333% - 12px);
  }
}

@media (max-width: 900px) {
  .aqa-auth-card {
    max-width: calc(50% - 10px);
  }

  .aqa-cert-card,
  .aqa-doc-card {
    flex: 0 0 calc(50% - 9px);
  }

  .aqa-honor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .aqa-auth-card,
  .aqa-cert-card,
  .aqa-doc-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
