/* ============================================================
 * GTG 广测集团 - 首页专属样式
 * ============================================================ */
html,
body {
  overflow-x: hidden;
}

/* 首页首屏外的板块延迟绘制，避免首次打开时一次性布局整页卡片和图片。 */
body:not(.robot-page) > .biz,
body:not(.robot-page) > .cert,
body:not(.robot-page) > .why,
body:not(.robot-page) > .lab,
body:not(.robot-page) > .company,
body:not(.robot-page) > .news {
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

/* ---------- Banner 轮播（视频 + 广告图） ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #3d4a5c;
}

/* Only mobile poster mode opts into horizontal gestures; vertical page scrolling remains native. */
.hero.hero-touch { touch-action: pan-y pinch-zoom; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide video,
.hero-slide .slide-bg,
.hero-slide .slide-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 视频首帧由后台图片提供，底层图片与 video/poster 采用相同裁切。 */
.slide-video {
  background: transparent;
}

/* 叠层：整体轻压暗，顶部略深一点衬出导航与 logo */
.hero-slide .overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.slide-video .overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, .44) 0%, rgba(0, 0, 0, .21) 45%, rgba(0, 0, 0, .31) 100%);
}

/* ---------- Banner 文案 ---------- */
.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

/* 视频：居中 */
.slide-video .hero-content { align-items: center; text-align: center; }
.slide-video .hero-title { max-width: 900px; }
.slide-video .hero-sub { max-width: 820px; }

/* 广告图：靠左 */
.slide-image .hero-content { align-items: flex-start; text-align: left; }

.hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .3);
}

.hero-sub {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}

.slide-image .hero-title {
  max-width: 760px;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.3;
  letter-spacing: 1px;
}
.slide-image .hero-sub {
  max-width: 620px;
  margin-top: 16px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .9);
}
.mobile-break { display: none; }
.slide-global .hero-content {
  color: #fff;
}
.slide-lab .hero-content {
  color: #1e2b25;
}
.slide-lab .hero-title {
  color: #1e2b25;
  text-shadow: none;
}
.slide-lab .hero-sub {
  color: #1e2b25;
  text-shadow: none;
}
.slide-lab .hero-btn {
  color: #1e2b25;
  border-color: rgba(30, 43, 37, .6);
}
.slide-lab .hero-btn::after {
  filter: brightness(.25);
}
.slide-lab .hero-btn:hover {
  color: #fff;
}
.slide-lab .hero-btn:hover::after {
  filter: none;
}
.slide-lab .hero-content {
  align-items: flex-start;
  justify-content: center;
  width: calc(40% - var(--side-gap));
  max-width: none;
  margin-left: var(--side-gap);
  padding: 0;
}
.slide-lab .hero-title,
.slide-lab .hero-sub,
.slide-lab .hero-btn {
  position: relative;
  z-index: 2;
}
.slide-lab .hero-sub {
  max-width: 780px;
  line-height: 1.7;
}
.lab-features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 32px 0;
}
.lab-feature {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 18px 12px 16px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 87, 45, .14);
  text-align: center;
}
.lab-feature-icon {
  flex: 0 0 68px;
  width: 68px;
  height: 76px;
  font-size: 60px;
  color: #fff;
}
.lab-feature > div { width: 100%; min-width: 0; }
.lab-feature h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.lab-feature p {
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0;
  font-size: 13px;
  line-height: 1.75;
  text-align: left;
  text-wrap: wrap;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, .94);
}
.slide-lab .hero-btn {
  margin-top: 0;
}
.slide-global .hero-title {
  max-width: 760px;
  color: #fff;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}
.slide-global .hero-sub {
  max-width: 620px;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}
.slide-global .hero-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}
.slide-global .hero-btn::after {
  filter: none;
}
.slide-global .hero-btn:hover {
  color: #fff;
  border-color: var(--green);
}
/* 深色地图背景：左侧文字区加一层轻微压暗渐变，保证可读 */
.slide-global .slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .12) 45%, transparent 70%);
}

/* 圆角胶囊按钮 */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 11px 54px;
  font-size: 14px;
  letter-spacing: 2px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 24px;
  position: relative;
  transition: all .3s ease;
}
/* 文字左移腾出位置 */
.hero-btn > span {
  display: inline-block;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.hero-btn:hover > span { transform: translateX(-10px); }
/* 箭头固定在右侧，宽度从 0 向右展开（占据的是按钮预留的内距，总宽不变） */
.hero-btn::after {
  content: "\e06c";
  font-family: "Phosphor";
  font-weight: 100;
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 15px;
  line-height: 9px;
  color: #fff;
  transition: width .3s cubic-bezier(.22, .61, .36, 1);
}
.hero-btn:hover::after { width: 16px; }
.hero-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* 进屏动效 */
.hero-slide.active .hero-title,
.hero-slide.active .hero-sub,
.hero-slide.active .hero-btn {
  animation: heroUp .9s ease both;
}
.hero-slide.active .hero-title { animation-delay: .1s; }
.hero-slide.active .hero-sub { animation-delay: .22s; }
.hero-slide.active .hero-btn { animation-delay: .34s; }
.hero-slide.active.slide-lab .lab-feature {
  animation: heroUp .75s ease both;
}
.hero-slide.active.slide-lab .lab-feature:nth-child(1) { animation-delay: .34s; }
.hero-slide.active.slide-lab .lab-feature:nth-child(2) { animation-delay: .42s; }
.hero-slide.active.slide-lab .lab-feature:nth-child(3) { animation-delay: .5s; }
.hero-slide.active.slide-lab .hero-btn { animation-delay: .58s; }

@keyframes heroUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 指示点（左下） ---------- */
.hero-dots {
  position: absolute;
  z-index: 5;
  left: var(--side-gap);
  bottom: 40px;
  display: flex;
  gap: 12px;
}
.hero-dots span {
  width: 56px;
  height: 4px;
  background: rgba(255, 255, 255, .35);
  border-radius: 2px;
  cursor: pointer;
  transition: background .3s ease;
}
.hero-dots span.active { background: #fff; }

/* ---------- 滚屏指引（中下） ---------- */
.hero-scroll {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: color .25s ease;
}
.hero-scroll:hover { color: #fff; }
.hero-scroll .mouse {
  position: relative;
  width: 24px;
  height: 38px;
  margin: 0 auto 8px;
  border: 1.5px solid rgba(255, 255, 255, .8);
  border-radius: 12px;
}
.hero-scroll .mouse i {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #fff;
  animation: wheel 1.8s ease infinite;
}
@keyframes wheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* ---------- 左右箭头（右下） ---------- */
.hero-arrows {
  position: absolute;
  z-index: 5;
  right: var(--side-gap);
  bottom: 30px;
  display: flex;
  gap: 10px;
}
.hero-arrows button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  color: #fff;
  transition: all .3s ease;
}
.hero-arrows button:hover {
  background: #fff;
  border-color: #fff;
  color: #222;
}
.hero-arrows .icon { width: 17px; font-size: 17px; height: 17px; }

@media (max-width: 992px) {
  .hero { min-height: 440px; }
  .hero-title { font-size: 32px; }
  .slide-image .hero-title {
    max-width: 100%;
    font-size: 28px;
  }
  .hero-sub { font-size: 15px; }
  .slide-image .hero-sub { font-size: 14px; line-height: 1.8; }
  .slide-image .hero-content { align-items: flex-start; text-align: left; }
  .slide-image .hero-sub { max-width: 520px; }
  .hero-scroll { display: none; }
}

/* ============================================================
 * 第二屏：业务板块（整版深色面板，一大一小）
 * ============================================================ */
.biz {
  position: relative;
  padding: 84px 0 96px;
  background: #fff;
}
.biz .container { position: relative; z-index: 1; }

/* 板块头：标题靠左 + 右侧镂空按钮 */
.biz-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 52px;
}
.biz-head-text,
.head-btn { position: relative; z-index: 1; }
.sec-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
}
.sec-desc { text-align: left; }
.head-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text);
  border: 1px solid #d4d4d4;
  border-radius: 24px;
  transition: all .3s ease;
}
.head-btn .icon {
  width: 15px; font-size: 15px;
  height: 15px;
  transition: transform .3s ease;
}
.head-btn:hover {
  border-color: var(--green);
  color: var(--green);
}
.head-btn:hover .icon { transform: translateX(4px); }
.biz-mark {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  background: var(--lime);
  box-shadow: 7px 7px 0 var(--green);
}
.sec-desc {
  margin-top: 6px;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--text-light);
}

/* 产品线面板：固定卡片宽度，按一张卡片步进轮播 */
.biz-grid {
  overflow: hidden;
  background: #fff;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.biz-grid.is-dragging { cursor: grabbing; }
.biz-track {
  display: flex;
  gap: 14px;
  width: 100%;
  transition: transform .95s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
/* 桌面端两张同屏，每次移动一张；移动端在媒体查询中切换为单张 */
.biz-grid .biz-panel {
  flex: 0 0 calc((100% - 14px) / 2);
}
.biz-grid.is-dragging .biz-panel,
.biz-grid.is-dragging .biz-panel img { transition: none; }

/* 底部切换圆点 */
.biz-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.biz-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9d9d9;
  cursor: pointer;
  transition: all .3s ease;
}
.biz-dots span.on {
  background: var(--green);
  transform: scale(1.2);
}
.biz-panel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 600px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .12);
}
.biz-panel picture,
.biz-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.biz-panel img { transition: transform .9s cubic-bezier(.22, .61, .36, 1); }
.biz-panel:hover img { transform: scale(1.05); }

/* 压暗渐变：底部深、顶部微压 */
.panel-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(0, 0, 0, .14) 30%, rgba(0, 0, 0, .78) 100%);
}

/* 超大半透明编号 */
.panel-num {
  position: absolute;
  top: 30px;
  right: 42px;
  z-index: 2;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .16);
}

/* 面板内容：压底 */
.panel-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 46px 48px;
  color: #fff;
}
.panel-body h3 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
}
.panel-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .78);
}

/* 产品链接：大字 + 细分割线 */
.panel-subs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .28);
}
.panel-subs.single { grid-template-columns: 1fr; }
.panel-subs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  transition: color .25s ease, padding-left .3s ease;
}
.panel-subs a .icon {
  width: 15px; font-size: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: all .3s ease;
}
/* 分类前置图标（与导航一致）：常显，箭头仍右端悬停出现 */
.panel-subs a span { flex: 1; }
.panel-subs a .sub-ico {
  width: 18px;
  height: 18px;
  opacity: .8;
  transform: none;
}
.panel-subs a:hover { color: var(--lime); padding-left: 8px; }
.panel-subs a:hover .icon { opacity: 1; transform: translateX(0); }

/* 了解详情 + 圆形箭头图标 */
.biz-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: 1px;
  color: #fff;
}
.link-ico {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  transition: all .35s cubic-bezier(.22, .61, .36, 1);
}
.link-ico .icon {
  width: 14px; font-size: 14px;
  height: 14px;
  transition: transform .35s ease;
}
.biz-link:hover .link-ico {
  background: var(--green);
  border-color: var(--green);
  transform: translateX(4px);
}

/* 滚动进场（只触发一次）：位移 + 透明度
   注意：不要加 filter: blur / will-change，大面积模糊动画会导致滚动严重掉帧 */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1),
              transform .8s cubic-bezier(.16, 1, .3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.biz-panel.reveal:nth-child(2) { transition-delay: .15s; }

@media (max-width: 992px) {
  .biz { padding: 64px 0; }
  .sec-title { font-size: 26px; }
  .biz-grid .biz-panel { flex-basis: 100%; }
  .biz-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .biz-panel { min-height: 480px; }
  .panel-body { padding: 32px 26px; }
  .panel-body h3 { font-size: 26px; }
}

/* ============================================================
 * 第三屏：认证项目（热门认证，点击展开）
 * ============================================================ */
.cert {
  padding: 84px 0 100px;
  background: var(--bg-light);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

/* 认证卡 */
.hot-cert {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 30px 26px 24px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
  transition: box-shadow .35s ease, transform .35s ease;
}
.hot-cert:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .09);
}

/* 标志图 */
.hc-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}
.hc-logo picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.hc-logo img {
  max-height: 100%;
  max-width: 120px;
  object-fit: contain;
  transition: transform .35s ease;
}
.hot-cert:hover .hc-logo img { transform: scale(1.08); }

/* 小尺寸卡（tab 面板内） */
.hot-cert.sm { padding: 22px 16px 20px; }
.hot-cert.sm .hc-logo { height: 76px; }
.hot-cert.sm .hc-logo img { max-width: 130px; }
.hot-cert.sm .hc-name { margin-top: 12px; font-size: 14px; }
.hot-cert.sm .hc-region { margin-top: 4px; font-size: 11px; }
.hot-cert.sm .hc-detail p { font-size: 12px; line-height: 1.8; }
.hot-cert.sm .hc-toggle { top: 8px; right: 8px; width: 20px; height: 20px; }

/* 名称与地区 */
.hc-name {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}
.hc-region {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-light);
}

/* 展开详情 */
.hc-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s cubic-bezier(.22, .61, .36, 1), opacity .35s ease;
}
.hc-detail p {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  line-height: 1.9;
  color: #666;
  text-align: left;
}
.hc-detail a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
.hc-detail a .icon { width: 13px; font-size: 13px; height: 13px; }
.hot-cert.open .hc-detail {
  max-height: 240px;
  opacity: 1;
}

/* 展开指示箭头 */
.hc-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  transition: transform .35s ease, color .25s ease;
}
.hc-toggle .icon { width: 14px; font-size: 14px; height: 14px; }
.hot-cert:hover .hc-toggle { color: var(--green); }
.hot-cert.open .hc-toggle { transform: rotate(180deg); color: var(--green); }

@media (max-width: 1200px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* ---------- 全部认证专区（一整卡四列） ---------- */
.cert-all {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
  overflow: hidden;
}
.ca-col { padding: 24px 26px 28px; }
.ca-col + .ca-col { border-left: 1px solid #f0f0f0; }

.ca-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--green);
}
.ca-head > .icon {
  width: 16px; font-size: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
}
.ca-head h3 {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}
.ca-head a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--text-light);
  transition: color .25s ease;
}
.ca-head a .icon { width: 11px; font-size: 11px; height: 11px; }
.ca-head a:hover { color: var(--green); }

.ca-group { margin-top: 12px; }
.ca-group h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #222;
}
.ca-group h4::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--green);
}
.ca-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
  margin-top: 3px;
}
.ca-links a {
  padding: 3.5px 0;
  font-size: 12.5px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .25s ease, padding-left .25s ease;
}
.ca-links a:hover { color: var(--green); padding-left: 4px; }

@media (max-width: 1200px) {
  .cert-all { grid-template-columns: repeat(2, 1fr); }
  .ca-col:nth-child(3) { border-left: none; }
  .ca-col:nth-child(n+3) { border-top: 1px solid #f0f0f0; }
}
@media (max-width: 640px) {
  .cert-all { grid-template-columns: 1fr; }
  .ca-col + .ca-col { border-left: none; border-top: 1px solid #f0f0f0; }
}

/* ---------- 认证项目：左 Tab 右卡片 ---------- */
.cert-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

/* 左侧 Tab 列 */
.cert-tabs {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
  overflow: hidden;
}
.cert-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 24px;
  cursor: pointer;
  transition: background .3s ease, padding-left .35s cubic-bezier(.22, .61, .36, 1);
}
.cert-tab + .cert-tab { border-top: 1px solid #f2f2f2; }
.cert-tab-text { flex: 1; }
.cert-tab-text h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: color .3s ease;
}
.cert-tab-text p {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-light);
}
.cert-tab > .icon {
  width: 15px; font-size: 15px;
  height: 15px;
  color: #ccc;
  transition: all .3s ease;
}
.cert-tab:hover { background: #fafafa; }
.cert-tab.on { background: var(--bg-light); padding-left: 34px; }
.cert-tab.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green);
}
.cert-tab.on h3 { color: var(--green); }
.cert-tab.on > .icon { color: var(--green); transform: translateX(3px); }

.cert-tab-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  border-top: 1px solid #f2f2f2;
  transition: background .25s ease;
}
.cert-tab-all .icon { width: 14px; font-size: 14px; height: 14px; }
.cert-tab-all:hover { background: #e8f3ec; }

/* 右侧面板 */
.cert-pane { display: none; }
.cert-pane.on {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  animation: paneIn .4s ease both;
  align-content: start;
}

@media (max-width: 1200px) {
  .cert-pane.on { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .cert-wrap { grid-template-columns: 1fr; }
  .cert-tabs { display: flex; overflow-x: auto; }
  .cert-tab { flex-shrink: 0; padding: 16px 20px; }
  .cert-tab + .cert-tab { border-top: none; border-left: 1px solid #f2f2f2; }
  .cert-tab-all { flex-shrink: 0; border-top: none; border-left: 1px solid #f2f2f2; }
  .cert-pane.on { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 左侧：国家子类（手风琴展开） ---------- */
.cert-countries {
  max-height: 0;
  overflow: hidden;
  background: #fafafa;
  transition: max-height .45s cubic-bezier(.22, .61, .36, 1);
}
.cert-countries.on { max-height: 480px; }
.country {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px 10px 34px;
  font-size: 13px;
  color: #666;
  transition: color .25s ease, padding-left .25s ease;
}
.country i {
  font-style: normal;
  font-size: 11px;
  color: #bbb;
}
.country:first-of-type { padding-top: 14px; }
.country:last-of-type { padding-bottom: 14px; }
.country:hover { color: var(--green); padding-left: 40px; }
.country.on { color: var(--green); font-weight: 600; }
.country.on i { color: var(--green); }

/* 国家过滤时隐藏的卡 */
.hot-cert.hide { display: none; }

@media (max-width: 992px) {
  .cert-countries { display: none; }
}

/* ---------- 认证项目：左专区 + 右固定卡 + 浮层 ---------- */
.cert-zones {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
  overflow: hidden;
}
.cert-zone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px;
  cursor: pointer;
  transition: background .3s ease, padding-left .35s cubic-bezier(.22, .61, .36, 1);
}
.cert-zone + .cert-zone { border-top: 1px solid #f2f2f2; }
.cert-zone > .icon {
  width: 15px; font-size: 15px;
  height: 15px;
  color: #ccc;
  transition: all .3s ease;
}
.cert-zone:hover,
.cert-zone.on { background: var(--bg-light); padding-left: 34px; }
.cert-zone:hover::before,
.cert-zone.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green);
}
.cert-zone:hover h3,
.cert-zone.on h3 { color: var(--green); }
.cert-zone:hover > .icon,
.cert-zone.on > .icon { color: var(--green); transform: translateX(3px); }

/* 右侧固定 16 卡 */
.cert-right { position: relative; }
.cert-fixed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 桌面左右栏等高，专区均分剩余空间，底部申请卡与认证网格对齐。 */
@media (min-width: 993px) {
  .cert-wrap { align-items: stretch; }
  .cert-left { display: flex; flex-direction: column; }
  .cert-left > .cert-zones { display: flex; flex-direction: column; flex: 1; }
  .cert-left .cert-zone { flex: 1; }
  .cert-left > .cta-card { flex-shrink: 0; }
  .cert-fixed { height: 100%; grid-auto-rows: 1fr; }
}

/* 浮层：盖在右侧上层（导航下拉同款进场） */
.cert-float {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, .14);
  padding: 30px 34px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.cert-float.on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .32s cubic-bezier(.22, .61, .36, 1) .06s,
              transform .32s cubic-bezier(.22, .61, .36, 1) .06s;
}
.cf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
/* 色块标题 */
.cf-head h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 16px;
  color: #fff;
  background: var(--green);
  border-radius: 4px;
}
.cf-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
.cf-head a .icon { width: 14px; font-size: 14px; height: 14px; }

.cf-head { flex-shrink: 0; gap: 16px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #e8eee9; }
.cf-total { font-size: 13px; color: #76867d; white-space: nowrap; }
/* 国家卡片按行排列，利用整个面板高度，避免多列排版挤在顶部。 */
.cf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 14px;
  flex: 1 0 auto;
}
.cf-group {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #e2ebe5;
  border-radius: 12px;
  background: #f8fbf9;
}
.cf-group:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cf-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cf-group h4 { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 700; color: #254535; overflow-wrap: anywhere; }
.cf-group-head > span { flex-shrink: 0; font-size: 12px; color: #89968f; }
.cf-links { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.cf-links a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid #e0e9e3;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: #4d5c53;
  background: #fff;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.cf-links a:hover { color: #fff; border-color: var(--green); background: var(--green); }
.cf-links a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (min-width: 1280px) {
  .cf-grid-many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cf-grid-many .cf-group:last-child { grid-column: auto; }
  .cf-grid-many .cf-group { padding: 14px 16px; }
  .cf-grid-many .cf-group-head { margin-bottom: 10px; }
  .cf-grid-many .cf-links a { min-height: 32px; padding: 5px 9px; font-size: 13px; }
}

@media (max-width: 1200px) {
  .cert-fixed { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .cert-wrap { grid-template-columns: 1fr; }
  .cert-zones { display: flex; overflow-x: auto; }
  .cert-zone { flex-shrink: 0; padding: 16px 20px; }
  .cert-zone + .cert-zone { border-top: none; border-left: 1px solid #f2f2f2; }
  .cert-tab-all { flex-shrink: 0; border-top: none; border-left: 1px solid #f2f2f2; }
  .cert-fixed { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 认证卡：标志 + 分割线 + 名称 ---------- */
.hot-cert.sm { cursor: default; }
.hot-cert.sm .hc-name {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  font-size: 14px;
}

/* ---------- 左栏转化卡（两行独立卡片） ---------- */
.cert-left > .cta-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: 12px;
  transition: all .35s cubic-bezier(.22, .61, .36, 1);
}
.cta-card > .icon:not(.cta-arrow) { width: 32px; font-size: 32px; height: 32px; flex-shrink: 0; }
.cta-text { flex: 1; }
.cta-text b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}
.cta-text span {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  opacity: .75;
}
.cta-card > .icon.cta-arrow { width: 14px; font-size: 14px; height: 14px; flex-shrink: 0; transition: transform .3s ease; }
.cta-card:hover .cta-arrow { transform: translateX(4px); }

.cta-card.solid {
  background: #fff;
  color: var(--green);
  border: 1px solid #eee;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
}
.cta-card.solid .cta-text b { color: #222; }
.cta-card.solid .cta-text span { color: var(--text-light); opacity: 1; }
.cta-card.solid:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 155, 76, .22);
}
.cta-card.solid:hover .cta-text b { color: #fff; }
.cta-card.solid:hover .cta-text span { color: rgba(255, 255, 255, .8); }
.cta-card.hollow {
  background: #fff;
  color: var(--green);
  border: 1px solid #eee;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
}
.cta-card.hollow .cta-text b { color: #222; }
.cta-card.hollow .cta-text span { color: var(--text-light); opacity: 1; }
.cta-card.hollow:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 155, 76, .22);
}
.cta-card.hollow:hover .cta-text b { color: #fff; }
.cta-card.hollow:hover .cta-text span { color: rgba(255, 255, 255, .8); }

@media (max-width: 992px) {
  .cert-left > .cta-card { margin-top: 12px; }
}

/* ============================================================
 * 第四屏：实验基地（全宽滚动图墙）
 * ============================================================ */
.lab {
  padding: 44px 0 100px;
  background: #fff;
  overflow: hidden;
}

/* 滚动图墙：左右边缘渐隐 */
.lab-marquee {
  position: relative;
}
.lab-marquee::before,
.lab-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 3;
  pointer-events: none;
}
.lab-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-light) 0%, rgba(247, 248, 247, 0) 100%);
}
.lab-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-light) 0%, rgba(247, 248, 247, 0) 100%);
}

.lab-row { overflow: hidden; }
.lab-row + .lab-row { margin-top: 20px; }

.lab-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 20px 0 28px;
  will-change: transform;
}

/* 头部右侧：手动控制 + 查看详情 */
.lab-controls {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lab-prev,
.lab-next {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4d4d4;
  border-radius: 50%;
  color: var(--text);
  transition: all .3s ease;
}
.lab-prev:hover,
.lab-next:hover { border-color: var(--green); color: var(--green); }
.lab-prev .icon,
.lab-next .icon { width: 16px; font-size: 16px; height: 16px; }
.lab-controls .head-btn { margin-left: 8px; }

/* 图片卡 */
.lab-card {
  position: relative;
  flex-shrink: 0;
  width: 520px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}
.lab-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}
.lab-card:hover img { transform: scale(1.06); }

.lab-name {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 16px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  border-radius: 17px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #fff;
}

@media (max-width: 992px) {
  .lab { padding: 64px 0; }
  .lab-card { width: 320px; }
  .lab-marquee::before,
  .lab-marquee::after { width: 50px; }
}

/* ============================================================
 * 第五屏：合作客户（logo 墙）
 * ============================================================ */





/* ---------- 合作客户：横向滚动 ---------- */
.client-marquee {
  position: relative;
  overflow: hidden;
  /* 用 mask 让 logo 两端自然渐隐，不依赖底色 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
}
.client-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 24px 0 30px;
  will-change: transform;
}

.client-chip {
  flex-shrink: 0;
  width: 270px;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
}
.client-chip picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.client-chip img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* 仅缩小 logo：在原 .7 比例基础上再缩小 30%，外框不变。 */
  transform: scale(.49);
  transition: transform .35s ease;
}
.client-chip:hover img {
  transform: scale(.5194);
}

@media (max-width: 992px) {
  .client-chip { width: 170px; height: 82px; }
}


/* ============================================================
 * 为什么选择广测（四图手风琴）
 * ============================================================ */
.why {
  padding: 84px 0 60px;
  background: #fff;
}

.why-acc {
  display: flex;
  gap: 14px;
  height: 560px;
}
.why-panel {
  position: relative;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  contain: layout;
  transition: flex .6s cubic-bezier(.22, .61, .36, 1);
}
/* 手风琴：.on 为展开块（JS 控制，移出保持状态） */
.why-panel.on { flex: 2.1; }

.why-panel picture,
.why-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-panel img { transition: transform .8s cubic-bezier(.22, .61, .36, 1); }

/* 底部压暗 */
.why-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, rgba(0, 0, 0, .1) 30%, rgba(0, 0, 0, .68) 100%);
  transition: background .4s ease;
}

/* 图上文字 */
.why-info {
  position: absolute;
  left: 30px;
  right: 26px;
  bottom: 48px;
  z-index: 2;
  min-width: 240px; /* 面板展开时文字不重排，避免闪烁感 */
  color: #fff;
}
.why-info b {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  color: #fff;
}
.why-info b i {
  font-style: normal;
  font-size: 24px;
  font-weight: 700;
  margin-left: 4px;
}
.why-info h4 {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}
/* 描述只在展开时显示 */
.why-info p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.9;
  color: #fff;
  opacity: 0;
  transition: opacity .35s ease .3s;
}
.why-panel.on .why-info p { opacity: 1; }

@media (max-width: 992px) {
  .why { padding: 64px 0; }
  .why-acc { flex-direction: column; height: auto; }
  .why-panel { height: 200px; }
  .why-panel,
  .why-panel.on { flex: none; cursor: default; transition: none; }
  .why-info { bottom: 22px; }
  .why-info p { opacity: 1; transform: none; }
  .why-info b { font-size: 32px; }
}

/* ============================================================
 * 走进广测（bento 网格）+ 合作客户标注
 * ============================================================ */
.company {
  padding: 84px 0 100px;
  background: var(--bg-light);
}
.company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* 大图卡 */
.co-photo {
  position: relative;
  display: block;
  grid-column: span 2;
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .1);
}
.co-photo picture,
.co-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.co-photo img { transition: transform .8s cubic-bezier(.22, .61, .36, 1); }
.co-photo:hover img { transform: scale(1.05); }
.co-photo-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .6) 100%);
}
.co-photo-text {
  position: absolute;
  left: 20px;
  right: 38px;
  bottom: 34px;
  z-index: 2;
  color: #fff;
}
.co-photo-text h3 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
}
.co-photo-text p {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
}
.co-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 30px;
  background: var(--green);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  transition: background .3s ease;
}
.co-photo:hover .co-btn { background: var(--green-dark); }
.co-btn .icon { width: 19px; font-size: 19px; height: 19px; }

/* ===== 宣传视频弹窗 ===== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.video-modal.show { opacity: 1; visibility: visible; }
.vm-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
}
.vm-box {
  position: relative;
  width: min(960px, 90vw);
  transform: translateY(16px) scale(.97);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
.video-modal.show .vm-box { transform: none; }
.vm-box video {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  background: #000;
}
.vm-close {
  position: absolute;
  top: -46px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  color: #fff;
  transition: all .25s ease;
}
.vm-close .icon { width: 16px; font-size: 16px; height: 16px; }
.vm-close:hover { background: #fff; color: #111; transform: rotate(90deg); }

/* 色块卡 */
.co-card {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
}
.co-card-green {
  background: #fff;
  padding: 34px 34px 30px;
}
.co-card-green > .icon {
  width: 30px; font-size: 30px;
  height: 30px;
  color: var(--green);
}
.co-card-green h3 {
  margin-top: 16px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
}
.co-card-green p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.9;
  color: #555;
}
.co-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}
.co-link .icon { width: 15px; font-size: 15px; height: 15px; transition: transform .3s ease; }
.co-link:hover .icon { transform: translateX(4px); }

/* 三小卡 */
.co-mini {
  position: relative;
  display: block;
  grid-column: span 1;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
  transition: all .35s ease;
}
.co-mini-img {
  aspect-ratio: 2 / 1;
  overflow: hidden;
}
.co-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}
.co-mini:hover .co-mini-img img { transform: scale(1.06); }
.co-mini-body { padding: 20px 24px 24px; }
.co-mini h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #222;
}
.co-mini p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-light);
}
.co-circle {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: rgba(255, 255, 255, .8);
  transition: all .3s ease;
}
.co-circle .icon { width: 15px; font-size: 15px; height: 15px; }
.co-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .1);
}
.co-mini:hover .co-circle {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* 合作客户小标注 */
.client-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 64px 0 30px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}
.client-caption i { color: var(--text-light); }
.client-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.client-controls button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4d4d4;
  border-radius: 50%;
  color: var(--text);
  transition: all .3s ease;
}
.client-controls button:hover { border-color: var(--green); color: var(--green); }
.client-controls button .icon { width: 15px; font-size: 15px; height: 15px; }
.client-controls .head-btn { margin-left: 8px; }
.client-caption .biz-mark {
  width: 12px;
  height: 12px;
  box-shadow: 6px 6px 0 var(--green);
}
.client-caption i {
  font-style: normal;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 1px;
}

@media (max-width: 992px) {
  .company { padding: 64px 0; }
  .company-title { font-size: 26px; margin-bottom: 28px; }
  .company-grid { grid-template-columns: 1fr; }
  .co-photo { grid-column: auto; min-height: 320px; }
  .co-mini p { padding-right: 70px; }
}


/* ============================================================
 * 认证资讯（tab 切换：双图卡 + 侧列表）
 * ============================================================ */
.news {
  padding: 84px 0 100px;
  background: #fff;
}

/* 头部 tab */
.news-tabs {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
}
.news-tab {
  padding: 9px 22px;
  border: 1px solid #d8d8d8;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text);
  transition: all .3s ease;
}
.news-tab:hover { border-color: var(--green); color: var(--green); }
.news-tab.on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* 面板：两卡 + 侧列表 */
.news-pane { display: none; }
.news-pane.on {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  animation: paneIn .4s ease both;
}

/* 图文卡 */
.news-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .1);
}
.news-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 7px 18px;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  border-radius: 0 0 10px 0;
  font-size: 12px;
  letter-spacing: 1px;
  color: #fff;
}
.news-card-body { padding: 22px 26px 26px; }
.news-card-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 1px;
}
.news-card-body h3 {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  transition: color .3s ease;
}
.news-card:hover .news-card-body h3 { color: var(--green); }
.news-card-body p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-light);
}

/* 侧列表 */
.news-side {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px 26px;
}
.news-side-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 0;
}
.news-side-item + .news-side-item { border-top: 1px solid #f0f0f0; }
.news-side-item h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  transition: color .3s ease;
}
.news-side-item span {
  margin-top: 7px;
  font-size: 12.5px;
  color: #aaa;
  letter-spacing: 1px;
}
/* 常见问题：一问一答摘要 */
.news-side-item .qa-a {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.65;
  color: #888;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-side-item:hover h4 { color: var(--green); }

/* 底部更多 */
.news-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

@media (max-width: 1200px) {
  .news-pane.on { grid-template-columns: 1fr 1fr; }
  .news-side { grid-column: 1 / -1; }
  #news-standard.news-pane.on { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #news-standard .news-qa-column { grid-column: auto; }
}
@media (max-width: 992px) {
  .news { padding: 64px 0; }
  .news-tabs { flex-wrap: wrap; }
  .news-pane.on { grid-template-columns: 1fr; }
  #news-standard.news-pane.on { grid-template-columns: 1fr; }
}

/* ============================================================
 * 首页自适应精细调整
 * 断点按内容密度分层，保留桌面版结构并优化触屏阅读
 * ============================================================ */
@media (max-width: 1200px) {
  .biz-head { gap: 22px; }
  .sec-title { font-size: clamp(26px, 2.8vw, 34px); }
  .panel-body { padding-left: 34px; padding-right: 34px; }
  .cert-wrap { gap: 22px; }
  .why-info { left: 24px; right: 20px; }
  .company-grid { gap: 18px; }
}

@media (max-width: 992px) {
  /* Banner：给导航和底部指示点预留空间，避免文字贴边 */
  .hero {
    height: min(100svh, 760px);
    min-height: 560px;
  }
  .hero-content {
    justify-content: center;
    padding-top: 44px;
    padding-bottom: 78px;
  }
  .slide-image .hero-title {
    max-width: 680px;
    font-size: clamp(28px, 4.5vw, 40px);
    line-height: 1.35;
  }
  .slide-image .hero-sub {
    max-width: 620px;
    font-size: 15px;
    line-height: 1.8;
  }
  .slide-lab .hero-content {
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding-left: var(--side-gap);
    padding-right: var(--side-gap);
    padding-top: 44px;
    padding-bottom: 78px;
  }
  .lab-features { gap: 12px; margin: 24px 0; }
  .lab-feature { min-height: 0; gap: 8px; padding: 16px 12px 14px; }
  .lab-feature-icon { flex-basis: 54px; width: 54px; height: 60px; }
  .lab-feature h3 { font-size: 16px; }
  .lab-feature p { font-size: 13px; }
  .hero-btn { margin-top: 28px; }
  .hero-dots { bottom: 28px; }

  /* 所有板块标题统一允许按钮落到下一行 */
  .biz-head { margin-bottom: 34px; }
  .biz-head-text { min-width: 0; }
  .sec-title { line-height: 1.35; }
  .sec-desc { font-size: 14px; line-height: 1.8; }
  .head-btn { padding: 10px 20px; }

  /* 产品卡：移动端保持一张卡，同屏内容不被挤压 */
  .biz { padding-top: 64px; padding-bottom: 70px; }
  .biz-grid { margin-left: 0; margin-right: 0; }
  .biz-panel { min-height: 560px; }
  .panel-body { padding: 34px 26px 30px; }
  .panel-body h3 { font-size: clamp(24px, 4vw, 30px); line-height: 1.35; }
  .panel-desc { font-size: 14px; line-height: 1.75; }
  .panel-subs { gap: 0 20px; margin-top: 20px; }
  .panel-subs a { min-height: 42px; padding: 10px 0; font-size: 14px; }
  .biz-dots { margin-top: 24px; }

  /* GMA：移动端先显示完整专区列表，再以弹层展示详情 */
  .cert { padding-top: 64px; padding-bottom: 72px; }
  .cert-wrap { display: flex; flex-direction: column; gap: 22px; }
  .cert-left,
  .cert-right { width: 100%; }
  .cert-zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-zone { min-width: 0; padding: 18px 20px; }
  .cert-zone + .cert-zone { border-top: 1px solid #f2f2f2; border-left: 0; }
  .cert-zone:nth-child(even) { border-left: 1px solid #f2f2f2; }
  .cert-tab-all { grid-column: 1 / -1; border-left: 0; }
  .cert-fixed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hot-cert.sm { padding: 18px 12px 16px; }
  .hot-cert.sm .hc-logo { height: 64px; }
  .hot-cert.sm .hc-name { font-size: 13px; }
  .cert-float { position: fixed; inset: 76px 20px 20px; padding: 24px 22px; max-height: none; overflow-y: auto; }
  .cert-float.on { z-index: 350; }

  /* 实验基地图墙：标题、控制器和卡片分层显示 */
  .lab { padding-top: 60px; padding-bottom: 72px; }
  .lab .biz-head { align-items: flex-start; }
  .lab-controls { width: 100%; margin-top: -4px; }
  .lab-controls .head-btn { margin-left: auto; }
  .lab-card { width: min(440px, calc(100vw - 80px)); }
  .lab-track { gap: 14px; padding-top: 14px; padding-bottom: 22px; }
  .lab-row + .lab-row { margin-top: 14px; }

  /* Why：纵向卡片增加高度，说明文字不再挤在底部 */
  .why { padding-top: 64px; padding-bottom: 72px; }
  .why-acc { gap: 12px; }
  .why-panel,
  .why-panel.first { height: 230px; }
  .why-info { left: 24px; right: 22px; bottom: 24px; min-width: 0; }
  .why-info b { font-size: 38px; }
  .why-info b i { font-size: 20px; }
  .why-info h4 { font-size: 17px; }
  .why-info p { font-size: 13px; line-height: 1.7; }

  /* 走进广测：移动端大图、介绍卡、三张小卡自然单列 */
  .company { padding-top: 64px; padding-bottom: 72px; }
  .company-grid { gap: 16px; }
  .co-photo { min-height: 340px; }
  .co-photo-text { left: 24px; right: 24px; bottom: 26px; }
  .co-photo-text h3 { font-size: 26px; }
  .co-card-green { padding: 28px 24px 26px; }
  .co-card-green p { font-size: 13px; line-height: 1.85; }
  .co-mini-body { padding: 18px 20px 22px; }
  .client-caption { margin-top: 48px; margin-bottom: 22px; }
  .client-caption { flex-wrap: wrap; }
  .client-controls { width: 100%; margin-left: 0; }
  .client-controls .head-btn { margin-left: auto; }
  .client-marquee { margin-left: -20px; margin-right: -20px; }

  /* 资讯：卡片和侧列表改为全宽纵向排列 */
  .news { padding-top: 64px; padding-bottom: 72px; }
  .news .biz-head { align-items: flex-start; }
  .news-tabs { width: 100%; gap: 8px; }
  .news-tab { padding: 8px 16px; }
  .news-pane.on { gap: 16px; }
  .news-card-body { padding: 18px 20px 22px; }
  .news-side { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 768px) {
  .hero { height: 680px; min-height: 0; }
  .hero-content { padding-top: 36px; padding-bottom: 72px; }
  .slide-image .hero-title,
  .slide-image .hero-sub {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .slide-image .hero-title { max-width: 560px; font-size: clamp(26px, 5.5vw, 34px); }
  .slide-image .hero-sub { max-width: 560px; font-size: 14px; }
  .slide-lab .hero-content { padding-top: 72px; padding-bottom: 54px; }
  .slide-lab .hero-sub { word-break: normal; overflow-wrap: break-word; }
  .lab-features { gap: 8px; margin: 20px 0; }
  .lab-feature {
    padding: 12px 8px;
    border-radius: 9px;
    text-align: center;
  }
  .lab-feature-icon { width: 44px; height: 48px; margin: 0 auto; }
  .lab-feature h3 { font-size: 13px; }
  .lab-feature p { margin-top: 6px; font-size: 11px; line-height: 1.65; }
  .slide-lab .hero-btn { margin-top: 0; }
  .hero-dots span { width: 42px; height: 3px; }

  .sec-title { font-size: 28px; }
  .biz-head { gap: 16px; }
  .biz-head .head-btn { align-self: flex-start; }
  .panel-num { top: 22px; right: 24px; font-size: 56px; }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hot-cert { padding: 24px 16px 20px; }
  .cert-all { margin-top: 18px; }
  .ca-col { padding: 20px 20px 22px; }
  .cert-zones { grid-template-columns: 1fr; }
  .cert-zone:nth-child(even) { border-left: 0; }
  .cert-tab-all { border-top: 1px solid #f2f2f2; }
  .cert-fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-grid { grid-template-columns: minmax(0, 1fr); }
  .cf-head h3 { font-size: 17px; }

  .lab-card { width: min(420px, calc(100vw - 56px)); }
  .client-chip { width: 166px; height: 80px; }
  .why-panel,
  .why-panel.first { height: 220px; }
  .co-photo { min-height: 300px; }
  .news-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .news-tab { flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 560px) {
  .site-header .lang-switch { display: none; }
  .site-header .header-right { gap: 0; }
  .mobile-break { display: block; }
  .slide-image .hero-title { font-size: 22px; }
}

@media (max-width: 480px) {
  .hero { height: 640px; }
  .hero-content { padding-top: 30px; padding-bottom: 68px; }
  .slide-image .hero-title,
  .slide-image .hero-sub {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .slide-image .hero-title { max-width: 100%; font-size: 22px; letter-spacing: 0; line-height: 1.45; }
  .slide-image .hero-title br { display: none; }
  .slide-image .hero-sub { max-width: 100%; margin-top: 12px; font-size: 13px; line-height: 1.8; letter-spacing: .5px; }
  .slide-lab .hero-content { padding-top: 62px; padding-bottom: 48px; }
  .slide-lab .hero-title { font-size: 22px; }
  .slide-lab .hero-sub { margin-top: 10px; font-size: 12px; line-height: 1.7; word-break: normal; overflow-wrap: break-word; }
  .lab-features { gap: 6px; margin: 16px 0; }
  .lab-feature { padding: 10px 6px; }
  .lab-feature-icon { width: 38px; height: 42px; }
  .lab-feature h3 { font-size: 11px; }
  .lab-feature p { font-size: 11px; line-height: 1.65; }
  .slide-lab .hero-btn { margin-top: 0; padding: 8px 34px; font-size: 12px; }
  .hero-btn { margin-top: 22px; padding: 10px 42px; }
  .hero-arrows { display: none; }
  .hero-dots { left: 16px; bottom: 24px; gap: 7px; }
  .hero-scroll { display: none; }

  .biz,
  .cert,
  .lab,
  .why,
  .company,
  .news { padding-top: 52px; padding-bottom: 60px; }
  .sec-title { gap: 12px; font-size: 24px; }
  .biz-mark { width: 10px; height: 10px; box-shadow: 5px 5px 0 var(--green); }
  .sec-desc { margin-top: 5px; font-size: 13px; line-height: 1.75; }
  .biz-head { margin-bottom: 24px; }
  .biz-panel { min-height: 590px; border-radius: 12px; }
  .panel-body { padding: 28px 18px 24px; }
  .panel-body h3 { font-size: 23px; letter-spacing: 1px; }
  .panel-desc { margin-top: 8px; font-size: 13px; }
  .panel-subs { gap: 0 10px; margin-top: 16px; }
  .panel-subs a { min-height: 40px; padding: 8px 0; font-size: 12px; gap: 5px; letter-spacing: 0; }
  .panel-subs a .sub-ico { width: 15px; height: 15px; }
  .panel-subs a .icon:not(.sub-ico) { width: 12px; font-size: 12px; height: 12px; }
  .biz-link { margin-top: 16px; }

  .cert-grid { grid-template-columns: 1fr; }
  .cert-fixed { gap: 10px; }
  .hot-cert.sm { padding-left: 8px; padding-right: 8px; }
  .hot-cert.sm .hc-logo { height: 58px; }
  .hot-cert.sm .hc-name { font-size: 12px; letter-spacing: 0; }
  .cert-float { inset: 72px 16px 16px; padding: 20px 16px; border-radius: 12px; }
  .cf-head { margin-bottom: 16px; }

  .lab-controls { gap: 7px; }
  .lab-prev,
  .lab-next { width: 38px; height: 38px; }
  .lab-controls .head-btn { margin-left: auto; padding-left: 16px; padding-right: 16px; }
  .lab-card { width: calc(100vw - 40px); }
  .lab-marquee::before,
  .lab-marquee::after { width: 26px; }
  .lab-name { left: 12px; bottom: 12px; padding: 6px 12px; font-size: 12px; }

  .why-panel,
  .why-panel.first { height: 210px; }
  .why-info { left: 18px; right: 18px; bottom: 18px; }
  .why-info b { font-size: 34px; }
  .why-info h4 { margin-top: 7px; font-size: 16px; }
  .why-info p { margin-top: 7px; font-size: 12px; line-height: 1.65; }

  .co-photo { min-height: 280px; border-radius: 12px; }
  .co-photo-text { left: 18px; right: 18px; bottom: 20px; }
  .co-photo-text h3 { font-size: 23px; }
  .co-photo-text p { font-size: 13px; }
  .co-btn { margin-top: 14px; padding: 9px 20px; font-size: 13px; }
  .co-card-green { padding: 24px 20px; }
  .co-card-green h3 { margin-top: 12px; font-size: 19px; }
  .co-card-green p { font-size: 12px; line-height: 1.8; }
  .client-caption { gap: 9px; margin-top: 38px; font-size: 19px; }
  .client-caption i { font-size: 12px; }
  .client-controls .head-btn { padding-left: 14px; padding-right: 14px; }
  .client-marquee { margin-left: -16px; margin-right: -16px; }
  .client-marquee { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); }

  .news-tab { padding-left: 14px; padding-right: 14px; font-size: 13px; }
  .news-card-body { padding: 16px 16px 20px; }
  .news-card-body h3 { font-size: 16px; }
  .news-side { padding-left: 16px; padding-right: 16px; }
  .news-side-item { padding: 13px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .biz-track,
  .why-panel,
  .reveal,
  .lab-track,
  .client-track { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 动态导航遵循后台排序，覆盖旧静态菜单的双栏倒序。 */
.mega-flat.backend-nav-order .flat-group {
  order: 0;
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}
.mega-flat.backend-nav-order .flat-group + .flat-group {
  margin-left: 48px;
  padding-left: 48px;
  border-left: 1px solid var(--line);
}

/* 后台文字颜色同时控制标题、摘要、按钮及顶部导航的配色。 */
.hero-slide.banner-text-dark .hero-title,
.hero-slide.banner-text-dark .hero-sub { color: #1e2b25; text-shadow: none; }
.hero-slide.banner-text-dark .hero-btn { color: #1e2b25; border-color: rgba(30,43,37,.6); }
.hero-slide.banner-text-dark .hero-btn::after { filter: brightness(.25); }
.hero-slide.banner-text-light .hero-title { color: #fff; }
.hero-slide.banner-text-light .hero-sub { color: rgba(255,255,255,.9); }
.hero-slide.banner-text-light .hero-btn { color: #fff; border-color: rgba(255,255,255,.7); }
.hero-slide.banner-text-light .hero-btn::after { filter: none; }
.hero-slide .hero-btn:hover { color: #fff; }
.hero-slide .hero-btn:hover::after { filter: none; }

/* 首页亚洲专区：多项目国家在上，单项目国家紧凑分行，独立于其他专区。 */
@media (min-width: 993px) {
  .cert-float-asia { padding: 18px 24px; }
  .cert-float-asia .cf-head { margin-bottom: 12px; padding-bottom: 12px; }
  .cert-float-asia .cf-grid { flex: 0 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cert-float-asia .cf-group { padding: 12px 14px; border-radius: 10px; }
  .cert-float-asia .cf-group:last-child { grid-column: auto; }
  .cert-float-asia .cf-group-head { margin-bottom: 8px; gap: 8px; }
  .cert-float-asia .cf-group h4 { font-size: 14px; }
  .cert-float-asia .cf-links { gap: 6px; }
  .cert-float-asia .cf-links a { min-height: 29px; padding: 4px 7px; font-size: 13px; }
  .cert-float-asia .cf-single-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; flex: 1 0 auto; }
  .cert-float-asia .cf-single { padding: 10px 12px; }
  .cert-float-asia .cf-single .cf-group-head { margin-bottom: 6px; }
}
@media (min-width: 1280px) {
  .cert-float-asia .cf-single-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* 手机首页四张轮播统一标题与紧凑高度，后台文案仍保留。 */
@media (max-width: 768px) {
  .hero { height: clamp(360px, 60vw, 460px); min-height: 0; }
  .hero .hero-content { padding-top: calc(var(--header-h) + 20px); padding-bottom: 54px; }
  .hero .hero-title { font-size: clamp(26px, 5.5vw, 34px); line-height: 1.45; letter-spacing: 0; overflow-wrap: anywhere; }
  .hero .hero-content p { display: none; }
  .hero .hero-btn { margin-top: 20px; }
  .hero .lab-features { display: none; }
  .hero .lab-features + .hero-btn { margin-top: 20px; }
}
@media (max-width: 560px) {
  .hero .hero-title { font-size: 22px; }
}

/* 保留这张广告后台标题的语义断行，第二行完整显示助力产品文案。 */
@media (max-width: 768px) {
  .hero [data-banner-id="2553"] .hero-title br { display: inline; }
}
@media (max-width: 380px) {
  .hero [data-banner-id="2553"] .hero-title { font-size: clamp(18px, 5.8vw, 22px); }
}

/* 手机广告轮播与首屏文案水平居中；浅色文字的两张图增加黑色遮罩。 */
@media (max-width: 768px) {
  .hero .slide-image .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero [data-banner-id="2553"] .slide-bg::after,
  .hero [data-banner-id="2555"] .slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .45);
    pointer-events: none;
  }
}
