/*
 * NRH 纳汇官网全站重构 · nrhcss/default.css
 * 职责：Default.aspx 首页专属视觉 —— 轮播、banner 下方标语区、简介、产品、新闻、
 *       视频、全球业务数字、快速链接。
 * 说明：服务端绑定与 SuperSlide / easySlider / videojs / countTo 脚本一律不动；
 *       内联写死宽度按架构 §4.5 用 CSS !important 覆盖。
 */

/* ① 首页 banner 大图轮播 */
#banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 560px;
  aspect-ratio: 16 / 9;
  background: var(--c-navy-1);
  overflow: hidden;
}

#banner .bd { width: 100%; height: 100%; }

/* SuperSlide 会在 .bd 与 ul 之间插入 .tempWrap；它默认高度为 auto，
   若不给它明确高度，ul/li 的 height:100% 会解析成 0，背景图整体塌陷。
   只修高度，绝不覆盖插件写入的 ul 宽度（4 张图横排所需）。 */
#banner .bd .tempWrap { height: 100% !important; overflow: hidden; }
#banner .bd ul,
#banner .bd ul li { height: 100% !important; }

#banner .bd ul li {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 圆点由 SuperSlide 写入 li，静态视觉保持极简 */
#banner .hd {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--sp-14);
  z-index: 5;
  text-align: center;
  line-height: 0;
}

#banner .hd ul { display: inline-flex; gap: var(--sp-6); }
#banner .hd li { width: 6px; height: 6px; border-radius: var(--r-circle); background: var(--c-white-60); cursor: pointer; }
#banner .hd li.on { width: 16px; border-radius: var(--r-pill); background: var(--c-card); }

/* 箭头容器：相对 banner 铺满，箭头垂直居中于 banner，避免压在底边被白卡遮住 */
#banner .banner-arrows {
  position: absolute;
  inset: 0;
  z-index: 10;
  max-width: 100%;
  pointer-events: none;
}

#banner .prev,
#banner .next {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: var(--r-circle);
  background: var(--c-white-85);
  box-shadow: var(--sh-card);
  pointer-events: auto;
  cursor: pointer;
}
#banner .prev { left: var(--sp-10); }
#banner .next { right: var(--sp-10); }
#banner .prev::after,
#banner .next::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-primary-deep);
  -webkit-mask: no-repeat center / 12px;
  mask: no-repeat center / 12px;
}
#banner .prev::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M8 1 3 6l5 5' stroke='%23000' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M8 1 3 6l5 5' stroke='%23000' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); }
#banner .next::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4 1 5 5-5 5' stroke='%23000' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4 1 5 5-5 5' stroke='%23000' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); }

/* ② 标语区：还原原站「一半压 banner、一半压白底」的白卡效果。
   ad-bg.png(722x80) 自带白卡+标题+英文+左右箭头，靠 top:-80px 上移跨在 banner 底边。
   #Ad 不占高度、透明，middle-desc 白底承接卡片下半。 */
#Ad {
  position: relative;
  z-index: 6;
  width: 722px;
  max-width: calc(100% - 2 * var(--sp-gutter));
  height: 0;
  margin: 0 auto;
  overflow: visible;
  background: none;
}

#Ad > img {
  position: absolute !important;
  top: -40px !important;
  left: 50%;
  width: 722px;
  max-width: 100%;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ③ 公司简介 + 两张特性图 */
.middle-desc {
  padding: var(--sp-64) 0 var(--sp-40) !important;
  background: var(--c-card);
}

.desc-txt {
  max-width: 860px;
  margin: 0 auto var(--sp-32);
  text-align: center;
  font-size: var(--fs-body);
  line-height: 2;
  color: var(--c-text-2);
}

.desc-img { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-gap); }

.left-img,
.right-img {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: var(--sp-24);
  border-radius: var(--r-card);
  overflow: hidden;
  color: var(--c-card);
  background-size: cover;
  background-position: center;
}
.left-img { background-image: linear-gradient(180deg, rgba(13,35,71,.55), rgba(13,35,71,.9)), url(/images/product-banner.png); }
.right-img { background-image: linear-gradient(180deg, rgba(13,35,71,.55), rgba(13,35,71,.9)), url(/images/voide.png); }

.bigFont { font-size: var(--fs-h3); font-weight: 700; line-height: 1.5; }
.txtMore { margin-top: var(--sp-6); font-size: var(--fs-aux); color: var(--c-card); }
.txtMore a { color: var(--c-card); }
.txtMore img { display: inline-block; width: 14px; height: 14px; margin-left: var(--sp-4); vertical-align: -2px; }

/* ④ 产品：覆盖 SuperSlide tempWrap / ul 写死宽度 */
.middle-product { padding: var(--sp-56) 0; background: var(--c-ph); }
.middleProductScroll { position: relative; padding: 0 var(--sp-40); }

.middleProductScroll .tempWrap {
  width: 100% !important;
  max-width: 100%;
  overflow: hidden;
}

.middleProductScroll ul {
  width: 100% !important;
  left: 0 !important;
  position: relative !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-32);
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

.middleProductScroll ul > li { min-width: 0; }

.single-product {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.single-product:hover { transform: translateY(-2px); box-shadow: var(--sh-soft); }
.single-product .img { padding: var(--sp-20) var(--sp-20) 0; }
.single-product .img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--c-ph); }
.single-product .txt a { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-8); padding: var(--sp-10) var(--sp-14); font-weight: 600; color: var(--c-navy-3); }
.single-product .txt a:hover { color: var(--c-primary); }
.single-product .txt span img { width: 18px; height: 18px; }

.middleProductScroll > a.prev,
.middleProductScroll > a.next {
  position: absolute;
  top: 42%;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: var(--r-circle);
  background: var(--c-white-85);
  box-shadow: var(--sh-card);
  cursor: pointer;
}
.middleProductScroll > a.prev { left: 0; }
.middleProductScroll > a.next { right: 0; }
.middleProductScroll > a.prev::after,
.middleProductScroll > a.next::after { content: "‹"; display: block; text-align: center; line-height: 30px; font-size: var(--fs-h3); color: var(--c-primary-deep); }
.middleProductScroll > a.next::after { content: "›"; }

/* ⑤ 新闻 + 视频：各占一整行，上下堆叠（新闻在上、视频在下） */
.middle-table {
  display: flex;
  flex-direction: column;
  gap: var(--sp-48);
  padding: var(--sp-64) 0;
  background: var(--c-card);
}

.left-news,
.right-voide {
  width: 100%;
  max-width: 100%;
  float: none;
  min-width: 0;
}

.right-voide {
  padding-top: var(--sp-24);
}

/* 视频独占整行，内部两块视频并排，按版心铺满 */
.right-voide .voide_banner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
}

.news-table {
  padding: var(--sp-20);
  margin-bottom: var(--sp-20);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-card);
  box-shadow: var(--sh-card);
}
.news-table:last-child { margin-bottom: 0; }

.news-img > div { position: relative; overflow: hidden; border-radius: var(--r-btn); background: var(--c-ph); }
/* 图片完整显示：竖版/方版原图不再被 cover 裁掉底部文字，容器统一比例保证两卡等高 */
.news-img .img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; }
.news-img .img img { width: 100%; height: 100%; max-height: 320px; object-fit: contain; aspect-ratio: auto; }
.news-img .img-bg { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,35,71,.78), transparent 62%); }
.news-img .img-txt { position: absolute; left: var(--sp-14); right: var(--sp-14); bottom: var(--sp-10); }
.news-img .img-txt a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--c-card); font-size: var(--fs-body); font-weight: 600; line-height: 1.5; }

.news-txt { margin: var(--sp-14) 0 var(--sp-4); font-size: var(--fs-aux); font-weight: 700; color: var(--c-primary); }
.single-news { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-10); padding: var(--sp-10) 0; border-bottom: 1px dashed var(--c-dash); }
.single-news:last-child { border-bottom: 0; }
.single-news a { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--fs-body); color: var(--c-text); line-height: 1.6; }
.single-news a:hover { color: var(--c-primary); }
.single-news span { flex-shrink: 0; font-size: var(--fs-date); color: var(--c-text-3); }

/* 视频区改为左右并排两个窗口：隐藏 tab 头，两个 bd 同屏显示、各占一列。
   SuperSlide 的 tabBar.slide 会给 bd 内联 display，这里用 !important 强制都显示；播放脚本不动。 */
.tabBar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-20); }
.tabBar .hd { display: none !important; }
.tabBar > .bd { display: block !important; width: 100%; min-width: 0; }

.tabBar .hd ul { display: flex; gap: var(--sp-8); margin-bottom: var(--sp-14); }
.tabBar .hd li { flex: 1; min-width: 0; padding: var(--sp-10) var(--sp-4); border-radius: var(--r-btn); background: var(--c-ph); color: var(--c-text-2); font-size: var(--fs-body); text-align: center; cursor: pointer; }
.tabBar .hd li.on { background: var(--c-primary); color: var(--c-card); font-weight: 600; }

/* 视频标注：视频下方居中的深蓝胶囊标签 */
.voide-label {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: var(--sp-12) auto 0;
  padding: var(--sp-6) var(--sp-18);
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-navy-3), var(--c-primary-deep));
  color: var(--c-card);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
}

.companyslides li,
.productslides li {
  position: relative;
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.companyslides .play,
.productslides .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.companyslides .play img,
.productslides .play img { width: 52px; height: 52px; opacity: .92; }

/* videojs 弹层：脚本注入的 628×456 只允许在容器内自适应 */
#v_box {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  width: min(680px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
  padding: var(--sp-20);
  border-radius: var(--r-lg);
  background: var(--c-card);
  box-shadow: var(--sh-modal);
}
#v_box #shut { position: absolute; right: var(--sp-14); top: var(--sp-6); font-size: var(--fs-h2); color: var(--c-text-2); cursor: pointer; }
#v_box h3 { padding: var(--sp-4) 0 var(--sp-12); font-size: var(--fs-body); font-weight: 600; color: var(--c-navy-3); }
#video,
#video video,
#video .video-js { width: 100% !important; max-width: 100% !important; height: auto !important; aspect-ratio: 632 / 430; }

/* ⑦ 全球业务 / 数字区：深蓝网格光晕 + 玻璃拟态数字卡 */
.middle-global {
  position: relative;
  overflow: hidden;
  padding: var(--sp-80) 0;
  color: var(--c-card);
  background:
    radial-gradient(900px 420px at 50% 6%, rgba(92,158,255,.30), transparent 70%),
    linear-gradient(135deg, var(--c-navy-1) 0%, var(--c-primary-deep) 52%, var(--c-navy-4) 100%);
}
/* 细网格纹理：仅作背景装饰，不拦截交互 */
.middle-global::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 18%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 42%, #000 18%, transparent 78%);
}
.middle-global > * { position: relative; z-index: 1; }

.middle-global .index-title {
  padding-left: 0;
  color: var(--c-card);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  text-shadow: 0 2px 18px rgba(6,30,80,.35);
}
.middle-global .index-title::before { display: none; }
/* 标题下方渐变装饰线 */
.middle-global .index-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: var(--sp-16) auto 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, transparent, #8fc0ff, transparent);
}

/* 数字区容器：只保留三个数字卡片，外层大框移除 */
.global-map {
  position: relative;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.global-map::before { display: none; }

.global-map .country {
  position: relative;
  display: inline-block;
  margin-top: var(--sp-24);
  padding-left: var(--sp-16);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--c-card);
}
.global-map .country:first-child { margin-top: 0; }
.global-map .country::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #8fc0ff, #4d8fe8);
  box-shadow: 0 0 12px rgba(120,180,255,.7);
}

.global-map .desc {
  margin-left: var(--sp-16);
  line-height: 2;
  font-size: var(--fs-pc-body);
  color: var(--c-pale-blue);
}

/* 数字行：三个等宽玻璃卡，span.timer 与 countTo 脚本结构保持不变 */
.global-map .desc.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-16);
  margin: var(--sp-32) 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--fs-body);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  min-width: 0;
  padding: var(--sp-20) var(--sp-10);
  border: 1px solid var(--c-white-20);
  border-radius: var(--r-card);
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.04));
  box-shadow: 0 10px 26px rgba(4,18,45,.18);
  text-align: center;
}
.global-map .timer,
.stat-year .stat-num {
  display: inline-block;
  margin-left: 0 !important;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--fs-num);
  font-weight: 800;
  line-height: 1.15;
  color: var(--c-card);
  text-shadow: 0 0 18px rgba(143,192,255,.7);
}
/* 1996 为四位数，略收字号以保持三块视觉均衡 */
.stat-year .stat-num { font-size: var(--fs-h1); }
.stat-label {
  font-size: var(--fs-aux);
  letter-spacing: 2px;
  color: var(--c-pale-blue);
}

/* VR全景展厅：嵌入 /vr/ 离线包 */
.middle-vr { margin-top: var(--sp-32); }
.vr-frame {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--c-ph);
  box-shadow: var(--sh-card);
}
@media (max-width: 1024px) {
  .vr-frame { height: 520px; }
}
@media (max-width: 768px) {
  .middle-vr { margin-top: var(--sp-20); }
  .vr-frame { height: 420px; }
}
@media (max-width: 480px) {
  .vr-frame { height: 360px; }
}

/* ⑧ 快速链接：覆盖 max-width:1160px */
.middle-link { padding: var(--sp-64) 0; background: var(--c-card); }
.middle-link > div { max-width: var(--wrap) !important; width: 100%; margin: 0 auto; padding: 0 var(--sp-gutter); }
.link-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-20); }
.single-link { min-width: 0; text-align: center; }
.link-img a { display: flex; align-items: center; justify-content: center; height: 64px; border: 1px solid var(--c-border); border-radius: var(--r-card); background-size: contain !important; background-position: center !important; background-repeat: no-repeat !important; }
.link-img a:hover { border-color: var(--c-primary); }
.single-link .txt { margin-top: var(--sp-10); font-size: var(--fs-aux); color: var(--c-text-2); }
.single-link .txt a:hover { color: var(--c-primary); }

/* 区块内部统一版心：桌面居中、左右至少 18px 留白，窄屏铺满不溢出 */
.middle-product > *,
.middle-table > *,
.middle-global > *,
.middle-link > * {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-gutter);
  padding-right: var(--sp-gutter);
}

/* ⑨ 断点 */
@media (max-width: 1199px) {
  .link-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .middleProductScroll ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .middle-table { gap: var(--sp-32); }
  .link-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desc-img { gap: var(--sp-10); }
}

@media (max-width: 768px) {
  #banner { aspect-ratio: 16 / 10; }
  #Ad { width: 100%; }
  #Ad > img { top: -20px !important; }
  /* 白卡下半伸入简介区，加大顶部留白避免压字 */
  .middle-desc { padding: 72px 0 var(--sp-28) !important; }
  .middle-product { padding: var(--sp-40) 0; }
  .middle-table, .middle-global, .middle-link { padding: var(--sp-48) 0; }
  /* 手机窄屏：两个视频上下堆叠，避免并排过窄 */
  .tabBar { grid-template-columns: minmax(0, 1fr); gap: var(--sp-16); }
  .middleProductScroll { padding: 0 var(--sp-28); }
  .middleProductScroll ul { gap: var(--sp-10); }
  .left-img, .right-img { min-height: 180px; padding: var(--sp-16); }
  .global-map .desc.stat-row { gap: var(--sp-10); }
  .stat-item { padding: var(--sp-14) var(--sp-6); }
  .global-map .timer, .stat-year .stat-num { font-size: var(--fs-h2); }
  .link-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-14); }
  .link-img a { height: 56px; }
}

@media (max-width: 480px) {
  #banner { aspect-ratio: 16 / 10; }
  #banner .prev, #banner .next { width: 28px; height: 28px; }
  #Ad > img { top: -16px !important; }
  .desc-img { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .left-img, .right-img { min-height: 150px; padding: var(--sp-12); }
  .middleProductScroll ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-product .txt a { padding: var(--sp-8); font-size: var(--fs-aux); }
  .news-table { padding: var(--sp-14); }
  .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-map .desc.stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
  .stat-item { flex-direction: column; gap: 2px; padding: var(--sp-10) var(--sp-4); }
  .stat-label { font-size: var(--fs-aux); letter-spacing: 0; }
  .global-map .timer, .stat-year .stat-num { font-size: 19px; }
}

/* 宽屏微调：内容不拉伸过宽，留白更从容 */
@media (min-width: 1440px) {
  .middle-desc, .middle-product, .middle-table, .middle-global, .middle-link { padding-top: var(--sp-80); padding-bottom: var(--sp-80); }
  .link-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* 宽屏：新闻两张卡左右并排；每张卡内部仍保持「图 + 文字列表」上下结构 */
@media (min-width: 1025px) {
  .left-news {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-20);
  }
  .left-news > .index-title { grid-column: 1 / -1; margin-bottom: 0; }
  .news-table { display: block; margin-bottom: 0; }
  .news-img .img img { max-height: 300px; }
}

/* ⑩ 资质证书：视频区下方、数字区上方，仅展示后台勾选推荐的证书 */
.middle-certs { padding: var(--sp-64) 0; background: var(--c-card); }
.middle-certs .index-title { margin-bottom: var(--sp-32); }
.cert-group + .cert-group { margin-top: var(--sp-32); }
.cert-group-title {
  position: relative;
  margin-bottom: var(--sp-20);
  padding-bottom: var(--sp-10);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--c-navy-3);
  text-align: center;
}
.cert-group-title::before { display: none; }
.cert-group-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-primary);
}
.cert-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-20); }
.cert-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-card);
  box-shadow: var(--sh-card);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cert-card:hover { transform: translateY(-2px); box-shadow: var(--sh-soft); }
.cert-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: var(--sp-12);
  background: var(--c-ph);
}
/* 证书图含文字，必须完整显示，禁止 cover 裁切 */
.cert-img img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.cert-body { padding: var(--sp-12) var(--sp-14) var(--sp-14); text-align: center; }
.cert-name {
  margin-bottom: var(--sp-8);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-navy-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cert-meta { font-size: var(--fs-date); line-height: 1.7; color: var(--c-text-2); overflow-wrap: anywhere; }
.cert-meta span { color: var(--c-text-3); }
.cert-link { margin-top: var(--sp-8); font-size: var(--fs-date); }
.cert-link a { color: var(--c-primary); font-weight: 600; }
.cert-empty {
  padding: var(--sp-40);
  border: 1px dashed var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-ph);
  text-align: center;
  font-size: var(--fs-body);
  color: var(--c-text-3);
}

@media (max-width: 1199px) { .cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .middle-certs { padding: var(--sp-48) 0; }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-12); }
}
@media (max-width: 480px) { .cert-grid { grid-template-columns: minmax(0, 1fr); } }
