/* ==========================================================================
   中家院门户 · 首页
   设计基准：1920px（内容区 1200px），断点 1600 / 1280 / 1024 / 768
   ========================================================================== */

/* 设计稿使用系统字体 / Inter，与 PSD 字形一致 */
@font-face {
  font-family: "Cert Inter";
  src: url("../../fonts/cert/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cert Inter";
  src: url("../../fonts/cert/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.home-page {
  background: #ffffff;
}

/* PSD 页脚高 388px，切片 372px，用同色上下留白补齐 */
.home-page .page-section--footer {
  background: #0147d3;
}

/* 顶部导航完全沿用 featured.css 的公共页头（高度 80、内边距、品牌尺寸、导航间距），
   右侧图标由 common.css 全站统一。首页不再单独覆写，避免与内页高度/品牌尺寸不一致，
   导致点击导航跳转时整条页头高度变化、看起来「抖一下」。 */

/* --------------------------------------------------------------------------
   区块标题（检测 / 认证 / 国际 / 特色 / 综合 / 友情链接 共用）
   -------------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head__title {
  margin: 0;
  color: #000000;
  font-size: 30px;
  font-weight: 700;
  line-height: 34px;
}

/* PSD 中标题下划线为 25×3 的圆角小条，距标题 17px */
.section-head__line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 17px 0 0 1px;
  border-radius: 1.5px;
  background: var(--featured-blue, #0147d3);
}

.section-head__more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  /* 行高 20px 的热区偏小：上下各补 2px 内边距抬到 24px，
     同时把外边距减 2px 抵消，标题区高度与视觉位置不变 */
  min-height: 24px;
  padding: 2px 0;
  margin-top: 6px;
  margin-bottom: -2px;
  color: #3d3d3d;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.section-head__more span {
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.24s cubic-bezier(0.34, 0.8, 0.3, 1);
}

/* 了解更多：文字转主蓝 + 箭头右移，和新闻公告那一处保持同一套手感 */
.section-head__more:hover,
.section-head__more:focus-visible {
  color: var(--featured-blue, #0147d3);
}

.section-head__more:hover span,
.section-head__more:focus-visible span {
  transform: translateX(5px) rotate(45deg);
}

.section-head__more:focus-visible {
  outline: 2px solid rgba(1, 71, 211, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
}

.section-head--light .section-head__title {
  color: #ffffff;
}

.section-head--light .section-head__line {
  background: #ffffff;
}

.section-head--light .section-head__more {
  color: #ffffff;
}

/* 深色底上的了解更多改用浅蓝提亮，主蓝压上去会发闷 */
.section-head--light .section-head__more:hover,
.section-head--light .section-head__more:focus-visible {
  color: #bfd4ff;
}

.section-head--light .section-head__more:focus-visible {
  outline-color: rgba(255, 255, 255, 0.55);
}

/* PSD 中各区标题 / 了解更多 相对 section-head 基线的偏移并不一致（2~5px），
   用 relative 偏移逐段微调，不改布局流与页高；仅在 1920 档生效。 */
@media (min-width: 1601px) {
  .home-cert .section-head__more { position: relative; top: 10px; }
  .home-intl .section-head__title-wrap { position: relative; top: -2px; }
  .home-intl .section-head__more { position: relative; top: 8px; }
  .home-service .section-head__title-wrap { position: relative; top: -2px; }
  .home-service .section-head__more { position: relative; top: -1px; }
}

/* --------------------------------------------------------------------------
   Hero：Banner + 信息查询/登录面板 + 新闻公告
   -------------------------------------------------------------------------- */
.home-hero {
  position: relative;
}

.home-hero__banner {
  position: relative;
  /* PSD 中 banner 内容比页面流起点高 1px */
  top: -1px;
}

.home-hero__banner-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 553;
  object-fit: cover;
}

.home-hero__panel {
  position: relative;
  z-index: 2;
  margin-top: -92px;
}

.home-hero__panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 92px;
  left: 50%;
  width: 100vw;
  height: calc(100% - 92px);
  background: #f5f5fa;
  transform: translateX(-50%);
}

.hero-panel {
  position: relative;
  /* 连通白底几何参数，需与两张卡片的外边距保持一致 */
  --hero-col-login: 378px;
  --hero-login-inset: 2px;
  --hero-query-bleed: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 378px;
  align-items: start;
}

/* 连通白底：查询卡与登录卡合为一整块外形，只投一层阴影（PSD：10px 模糊 / 10% #0147d3） */
.hero-panel__surface {
  position: absolute;
  z-index: 0;
  top: 1px;
  left: 0;
  width: 100%;
  height: 282px;
  filter: drop-shadow(0 0 6.2px rgba(1, 71, 211, 0.09));
  pointer-events: none;
}

.hero-panel__surface-card {
  position: absolute;
  display: block;
  background: #ffffff;
}

/* PSD 中查询卡左侧为圆角、右侧为直角（与登录卡相连） */
.hero-panel__surface-card--query {
  top: 10px;
  left: 0;
  width: calc(100% - var(--hero-col-login) + var(--hero-query-bleed));
  height: 262px;
  border-radius: 20px 0 0 20px;
}

/* PSD 中登录卡右侧为圆角、左侧为直角（与查询卡相连） */
.hero-panel__surface-card--login {
  top: 0;
  right: 0;
  width: calc(var(--hero-col-login) - var(--hero-login-inset));
  height: 282px;
  border-radius: 0 20px 20px 0;
}

/* 两卡相接处的浅蓝折角（PSD 实测：22×10 直角三角形，内部为垂直渐变，越贴近查询卡越深） */
.hero-panel__surface-fold {
  position: absolute;
  left: calc(100% - var(--hero-col-login) + var(--hero-login-inset));
  display: block;
  width: 22px;
  height: 10px;
}

.hero-panel__surface-fold::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
}

.hero-panel__surface-fold--top {
  top: 0;
}

.hero-panel__surface-fold--top::before {
  /* 逐行取色：y=563 #ccdefd → y=571 #c2d7fb（越贴近查询卡顶边越深） */
  background: linear-gradient(
    180deg,
    #cee0fd 0%,
    #ccdefd 15%,
    #cbddfd 25%,
    #caddfd 35%,
    #caddfd 45%,
    #c9dcfc 55%,
    #c7dafc 65%,
    #c6dafc 75%,
    #c5d9fc 85%,
    #c2d7fb 100%
  );
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.hero-panel__surface-fold--bottom {
  bottom: 0;
}

.hero-panel__surface-fold--bottom::before {
  /* 逐行取色：y=834 #c2d7fb → y=842 #ccdefd（越贴近查询卡底边越深） */
  background: linear-gradient(
    180deg,
    #c2d7fb 0%,
    #c5d9fc 15%,
    #c6dafc 25%,
    #c7dafc 35%,
    #c9dcfc 45%,
    #caddfd 55%,
    #cbddfd 75%,
    #ccdefd 90%,
    #cee0fd 100%
  );
  clip-path: polygon(100% 0, 0 100%, 0 0);
}

/* --------------------------------------------------------------------------
   首屏入场：先是一整块被撑开 10% 的拉直白色方框，
   随后两端同时向中间收拢到最终宽度，收拢结束时接缝处拱出折角
   首次进入和刷新都会播放；整页上浮仍由 common.css 的 is-quiet-load 管，刷新时不播
   -------------------------------------------------------------------------- */
@keyframes hero-fold-squeeze {
  from {
    /* 起始是撑开的整块方框（默认 110%），像一张被拉直绷紧的纸 */
    transform: scaleX(var(--hero-fold-stretch, 1.1));
  }
  to {
    /* 两端向中间收拢到最终宽度 */
    transform: scaleX(1);
  }
}

@keyframes hero-fold-straight {
  0%,
  78% {
    /* 收拢期间查询卡与登录卡齐平，外形是一整块直边方框（262 → 282） */
    transform: scaleY(1.0763);
  }
  100% {
    /* 收拢结束，接缝处重新出现台阶 */
    transform: scaleY(1);
  }
}

@keyframes hero-fold-flap-unfold {
  from {
    /* 折角从接缝处展开：宽度 0 → 22px，像纸被折过来的那一角 */
    transform: scaleX(0);
    opacity: 0;
  }
}

.hero-panel {
  /* 入场起始宽度系数：撑开到 1.1 倍后向中间收拢 */
  --hero-fold-stretch: 1.1;
  /* 以面板中线为基准左右对称收拢 */
  transform-origin: center center;
  animation: hero-fold-squeeze 0.6s cubic-bezier(0.4, 0, 0.16, 1) backwards;
}

/* 1025~1399：卡片本身已贴近视口左右边缘，再撑 10% 会被视口切掉一条边 */
@media (max-width: 1399px) {
  .hero-panel {
    --hero-fold-stretch: 1.05;
  }
}

.hero-panel__surface-card--query {
  /* 以中线为基准上下对称拉伸 */
  transform-origin: center center;
  animation: hero-fold-straight 0.6s cubic-bezier(0.4, 0, 0.16, 1) backwards;
}

.hero-panel__surface-fold {
  /* 台阶重新出现后，折角贴着接缝展开，越过终点轻微回弹 */
  transform-origin: left center;
  animation: hero-fold-flap-unfold 0.4s cubic-bezier(0.34, 1.42, 0.5, 1) 0.5s backwards;
}

/* 两卡相接处的纵向浅蓝接缝（PSD：x=1206 起约 4px，峰值 #0147d3 @ 4.7%） */
.hero-panel__surface-seam {
  position: absolute;
  top: 10px;
  left: calc(100% - var(--hero-col-login) + var(--hero-query-bleed));
  display: block;
  width: 8px;
  height: 262px;
  background: linear-gradient(
    90deg,
    rgba(1, 71, 211, 0.051) 0%,
    rgba(1, 71, 211, 0.018) 50%,
    rgba(1, 71, 211, 0) 100%
  );
  /* 纵向淡入淡出：PSD 中首列由 y=572 的 #f9f9fa 渐到 y=580 的 #f3f3fa，末端对称渐隐 */
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0,
    rgba(0, 0, 0, 1) 8px,
    rgba(0, 0, 0, 1) calc(100% - 12px),
    rgba(0, 0, 0, 0.5) 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0,
    rgba(0, 0, 0, 1) 8px,
    rgba(0, 0, 0, 1) calc(100% - 12px),
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* 信息查询 */
.query-card {
  position: relative;
  z-index: 1;
  top: 2px;
  margin-top: 9px;
  margin-right: -24px;
  margin-left: -1px;
  min-height: 262px;
  padding: 29px 44px 30px 41px;
}

.query-card__header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.query-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.query-card__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background: #dde9fd;
  color: var(--featured-blue, #0147d3);
  flex: 0 0 auto;
}

.query-card__icon svg {
  width: 25px;
  height: 26px;
}

.query-card__title {
  margin: 0;
  color: #1a1a1a;
  font-size: 30px;
  font-weight: 700;
  line-height: 30px;
}

.query-card__tabs {
  position: relative;
  display: flex;
  gap: 58px;
  margin-left: auto;
  margin-right: 1px;
  padding-top: 14px;
  /* 底部横线相对页签盒向左多出的量；选中下划线由脚本按同一数值外扩，保证两者起点对齐 */
  --tab-line-pad: 3px;
}

/* 下划线：1px 淡蓝，向右延伸到卡片右边缘 */
.query-card__tabs::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--tab-line-pad));
  right: -45px;
  bottom: -2px;
  height: 1px;
  background: #99b5ed;
}

.query-card__tab {
  position: relative;
  padding: 0 0 18px;
  border: 0;
  background: transparent;
  color: #444444;
  font-size: 16px;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

/* 未选中页签的悬停提示：文字转蓝 + 底部长出一条浅蓝短线（与底部那条分割线同一条基线） */
.query-card__tab::before {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgba(1, 71, 211, 0.4);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}

.query-card__tab.is-active::before {
  content: none;
}

.query-card__tab:not(.is-active):hover,
.query-card__tab:not(.is-active):focus-visible {
  color: var(--featured-blue, #0147d3);
}

.query-card__tab:not(.is-active):hover::before,
.query-card__tab:not(.is-active):focus-visible::before {
  width: 100%;
}

.query-card__tab:not(.is-active):active {
  color: #02339a;
}

.query-card__tab:focus-visible {
  outline: 2px solid rgba(1, 71, 211, 0.35);
  outline-offset: 3px;
  border-radius: 4px;
}

.query-card__tab.is-active {
  color: var(--featured-blue, #0147d3);
  font-weight: 600;
}

.query-card__tab.is-active::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--featured-blue, #0147d3);
}

/* 脚本接管后改用下面的滑动下划线，隐藏每个页签自带的那条 */
.query-card__tabs.is-enhanced .query-card__tab.is-active::after {
  content: none;
}

/* 滑动下划线：位置与宽度由脚本按当前选中页签计算，切换时平滑滑过去 */
.query-card__tab-indicator {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--featured-blue, #0147d3);
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.34, 0.8, 0.3, 1),
    width 0.34s cubic-bezier(0.34, 0.8, 0.3, 1);
}

.query-card__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  gap: 30px;
  margin-top: 31px;
}

.query-card__input-wrap {
  display: block;
}

.query-card__input {
  width: 100%;
  height: 50px;
  padding: 1px 17px 0 15px;
  border: 1px solid var(--featured-blue, #0147d3);
  border-radius: 10px;
  outline: none;
  color: #1f1f1f;
  font-size: 16px;
}

.query-card__input::placeholder {
  color: #999999;
}

.query-card__input:focus {
  box-shadow: 0 0 0 3px rgba(1, 71, 211, 0.12);
}

.query-card__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border: 0;
  border-radius: 10px;
  background: var(--featured-blue, #0147d3);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.query-card__submit:hover {
  background: #033ec0;
  box-shadow: 0 8px 18px rgba(1, 71, 211, 0.28);
  transform: translateY(-1px);
}

.query-card__submit:active {
  background: #02339a;
  box-shadow: 0 2px 6px rgba(1, 71, 211, 0.22);
  transform: translateY(0) scale(0.99);
}

.query-card__submit:focus-visible {
  outline: 3px solid rgba(1, 71, 211, 0.28);
  outline-offset: 3px;
}

.query-card__note {
  margin: 23px 0 0 -1px;
  color: #666666;
  font-size: 16px;
  line-height: 25px;
}

/* PSD 备注两行行距 26px、首行再下移 1px；标题组比左内边距再靠左 2px */
@media (min-width: 1601px) {
  .query-card__icon {
    margin-left: -2px;
  }

  .query-card__note {
    margin-top: 22px;
    line-height: 26px;
  }
}

/* 登录入口 */
.login-card {
  position: relative;
  z-index: 1;
  min-height: 282px;
  margin-top: 1px;
  margin-left: 2px;
  padding: 29px 37px 39px 59px;
}

.login-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.login-card__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background: #dde9fd;
  color: var(--featured-blue, #0147d3);
  flex: 0 0 auto;
}

.login-card__icon svg {
  width: 23px;
  height: 26px;
}

.login-card__title {
  margin: 0;
  color: #1a1a1a;
  font-size: 30px;
  font-weight: 700;
  line-height: 30px;
}

.login-card__actions {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.login-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 0 24px;
  min-height: 54px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  /* 去掉浏览器默认的蓝色选中反馈：点按高亮、文字拖选蓝底、焦点框 */
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
  /* 与认证服务页「认证申请入口」按钮同一手感 */
  transition:
    transform 0.34s cubic-bezier(0.34, 0.8, 0.3, 1),
    box-shadow 0.34s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

/* 悬停时填色主蓝并轻抬，图标右移 */
.login-card__button:hover {
  background: var(--featured-blue, #0147d3);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(1, 71, 211, 0.24);
}

.login-card__button:hover .login-card__button-icon {
  transform: translateX(4px);
}

.login-card__button:active {
  transform: translateY(0) scale(0.97);
}

.login-card__button:focus-visible {
  /* 仅键盘聚焦时给一圈中性灰描边，不再出现浏览器默认的蓝色焦点框 */
  outline: 2px solid rgba(17, 24, 39, 0.4);
  outline-offset: 3px;
}

.login-card__button-icon {
  flex: 0 0 auto;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.login-card__button-icon--building {
  width: 26px;
  height: 23px;
}

/* PSD 中次按钮图标比主按钮再右移 4px */
.login-card__button-icon--doc {
  width: 23px;
  height: 21px;
  margin-left: 4px;
}

/* 认证业务按钮不再默认填蓝：初始态与另一个登录入口同为白底描边，
   悬停、按下时统一填蓝反馈，避免「默认选中」的观感 */
.login-card__button--primary,
.login-card__button--secondary {
  border: 1px solid var(--featured-blue, #0147d3);
  background: #ffffff;
  color: var(--featured-blue, #0147d3);
}

/* 新闻公告 */
.home-hero__news {
  background: #f5f5fa;
  padding: 54px 0 78px;
}

.news-board__header {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.news-board__title-wrap {
  flex: 0 0 auto;
}

.news-board__title {
  margin: 3px 0 0;
  color: #1a1a1a;
  font-size: 30px;
  font-weight: 700;
  line-height: 34px;
}

.news-board__line {
  display: block;
  width: 25px;
  height: 3px;
  margin-top: 11px;
  border-radius: 1.5px;
  background: var(--featured-blue, #0147d3);
}

.news-board__tabs {
  display: flex;
  gap: 18px;
  margin-top: 2px;
}

.news-board__tab {
  height: 36px;
  padding: 0 21px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #3a3a3a;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.news-board__tab.is-active {
  background: var(--featured-blue, #0147d3);
  color: #ffffff;
}

.news-board__tab:not(.is-active):hover {
  background: #eef3ff;
  color: var(--featured-blue, #0147d3);
}

.news-board__tab:not(.is-active):active {
  background: #e0e9fd;
  color: #02339a;
}

.news-board__tab:focus-visible {
  outline: 2px solid rgba(1, 71, 211, 0.35);
  outline-offset: 2px;
}

.news-board__more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  /* 同「了解更多」：24px 触控热区 + 负外边距抵消，不推移下方内容 */
  min-height: 24px;
  padding: 2px 0;
  margin-top: 6px;
  margin-bottom: -2px;
  margin-left: auto;
  color: #3d3d3d;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.news-board__more span {
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.24s cubic-bezier(0.34, 0.8, 0.3, 1);
}

/* 悬停：文字转蓝、箭头右移，暗示“进去看看” */
.news-board__more:hover,
.news-board__more:focus-visible {
  color: var(--featured-blue, #0147d3);
}

.news-board__more:hover span,
.news-board__more:focus-visible span {
  transform: translateX(5px) rotate(45deg);
}

.news-board__more:focus-visible {
  outline: 2px solid rgba(1, 71, 211, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
}

.news-board__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 58px;
  padding-top: 30px;
}

/* 页签切换：面板先整体淡入，四条新闻再自上而下错峰上浮入场 */
.news-board__panel[hidden] {
  display: none;
}

.news-board__panel.is-entering {
  animation: newsPanelIn 0.32s ease both;
}

.news-board__panel.is-entering .news-item {
  animation: newsItemIn 0.46s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

.news-board__panel.is-entering .news-item:nth-child(2) {
  animation-delay: 0.06s;
}

.news-board__panel.is-entering .news-item:nth-child(3) {
  animation-delay: 0.12s;
}

.news-board__panel.is-entering .news-item:nth-child(4) {
  animation-delay: 0.18s;
}

@keyframes newsPanelIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes newsItemIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-board__panel.is-entering,
  .news-board__panel.is-entering .news-item {
    animation: none;
  }
}

.news-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 207px;
  align-items: center;
  gap: 39px;
  transition: transform 0.26s cubic-bezier(0.34, 0.8, 0.3, 1);
}

.news-item__content {
  min-width: 0;
}

.news-item__title {
  position: relative;
  top: -4px;
  display: -webkit-box;
  overflow: hidden;
  color: #2b2b2b;
  font-size: 18px;
  line-height: 27px;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

/* 悬停整条新闻：整行微抬、标题转蓝、缩略图轻放大并浮起 */
.news-item:hover {
  transform: translateY(-2px);
}

.news-item:hover .news-item__title,
.news-item:focus-within .news-item__title {
  color: var(--featured-blue, #0147d3);
}

.news-item:hover .news-item__thumb,
.news-item:focus-within .news-item__thumb {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(1, 71, 211, 0.18);
}

.news-item__title:focus-visible {
  outline: 2px solid rgba(1, 71, 211, 0.35);
  outline-offset: 3px;
  border-radius: 3px;
}

.news-item__summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: #6f737c;
  font-size: 14px;
  line-height: 22px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-item__date {
  position: relative;
  top: -5px;
  display: block;
  margin-top: 14px;
  color: #7f8086;
  font-size: 13px;
  line-height: 12px;
}

/* PSD 新闻标题笔画更宽、核心色约 #444；Medium 字重 + 稍浅色最接近。 */
@media (min-width: 1601px) {
  .news-item__title {
    color: #4a4a4a;
    font-weight: 500;
  }
}

.news-item__thumb {
  width: 207px;
  height: 147px;
  border-radius: 20px;
  object-fit: cover;
  /* 源图 207×155，PSD 中裁掉顶部 8px（底部对齐） */
  object-position: 50% 100%;
  transition: transform 0.34s cubic-bezier(0.34, 0.8, 0.3, 1), box-shadow 0.34s ease;
}

/* --------------------------------------------------------------------------
   检测服务
   -------------------------------------------------------------------------- */
.home-inspection {
  padding: 78px 0 80px;
  background: #ffffff;
}

/* 标题与卡片间距在 PSD 中为 30px */
.home-inspection .section-head {
  margin-bottom: 28px;
}

.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.776fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.svc-card {
  position: relative;
  height: 570px;
  overflow: hidden;
  border-radius: 20px;
  background: #dfe6f2;
  /* 手风琴改宽度时会逐帧重排重绘，把影响范围锁在卡片内部，避免整页跟着重绘 */
  contain: layout paint;
  transition: transform 0.4s cubic-bezier(0.34, 0.8, 0.3, 1), box-shadow 0.4s ease;
}

/* 悬停压暗改用一层纯色遮罩做透明度过渡：比 filter 逐帧重算整张照片便宜得多 */
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.svc-card:hover::before {
  opacity: 1;
}

.svc-card::after {
  content: "";
  position: absolute;
  inset: 68% 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.svc-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 顶部黑色半透明遮罩：压暗标签背后的照片，让白色标签在浅色画面上也能看清；
   悬停时遮罩加深并向下延展，只过渡 opacity / transform，避免触发重排 */
.svc-card__shade {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 210px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.88;
  transform-origin: top center;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.svc-card:hover .svc-card__shade {
  opacity: 1;
  transform: scaleY(1.12);
}

/* 悬停整卡：照片缓慢推近、整卡轻抬并浮起一圈主色柔光 */
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(1, 71, 211, 0.18);
}

.svc-card:hover .svc-card__img {
  transform: scale(1.05);
}

/* 按 PSD 图层坐标定位每张卡片的照片裁切位置 */
.svc-card--wide .svc-card__img {
  object-position: 96% center;
}

.svc-card:nth-child(2) .svc-card__img {
  object-position: 64% center;
}

.svc-card:nth-child(3) .svc-card__img {
  object-position: 44% center;
}

.svc-card:nth-child(4) .svc-card__img {
  object-position: 8% center;
}

/* 手风琴：悬停某张卡片时该卡加宽、其余收窄（仅桌面端且支持悬停时启用） */
@media (min-width: 1025px) and (hover: hover) {
  /* 用 flex-grow 过渡代替 grid-template-columns，浏览器可以直接对数值做插值，收放更线性柔和 */
  .svc-grid {
    display: flex;
    gap: 32px;
  }

  .svc-card {
    flex: 1 1 0;
    min-width: 0;
    /* 起步更快、收尾更稳：指针一移入立刻就有明显反馈，缩短整体时长减少拖沓感；
       柔光阴影延后出现，避免和宽度动画逐帧抢重绘预算 */
    transition: flex-grow 0.42s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 0.34s cubic-bezier(0.34, 0.8, 0.3, 1),
      box-shadow 0.3s ease 0.14s;
  }

  .svc-card--wide {
    flex-grow: 1.776;
  }

  /* 手风琴的「宽位」只有一个：激活卡拿走 1.776，其余三张回到 1，
     任意状态下 4 张卡的 flex-grow 之和恒为 4.776，与初始布局一致。
     若总和发生变化，浏览器会按当前总和重新归一化，未参与过渡的卡片宽度
     也会跟着变（最右侧卡片尤其明显）。

     激活态改用 JS 打上的 .svc-card--active，而不是 :hover：卡片之间有
     32px 间距，指针从一张滑向另一张时必然有一小段不落在任何卡片上，
     若用 :hover，这段空白会先触发一次「回到静止态」的过渡；等指针进入
     下一张卡时过渡被中途改写，两张卡的新过渡起点差一两帧，总和短暂失衡，
     卡 4 就会被摊宽再收回，视觉上就是抖一下。改用「最后进入的卡片」后，
     间距里保持上一张卡的状态，状态切换只发生在进入另一张卡的同一帧，
     两张卡的 grow 严格一增一减，总和不变，未参与切换的卡片纹丝不动。 */
  /* 状态类 is-accordion / is-narrow-active 由 common.js 写在 .svc-grid 上，
     不用 :has()：Safari 15.4 之前与老版本 Firefox 不支持 :has()，整条规则
     会被丢弃，手风琴会退化成静止布局。 */
  .svc-grid.is-accordion .svc-card {
    flex-grow: 1;
  }

  .svc-grid.is-accordion .svc-card--active {
    flex-grow: 1.776;
  }

  /* 标签容器宽度固定：手风琴收放时卡片宽度在逐帧变化，若标签按卡片宽度换行，
     每帧都会重排、标签在行间来回跳，视觉上就是抖动。固定宽度后换行结果恒定，
     展开过程中标签位置纹丝不动，只做淡入淡出 */
  .svc-card--wide .svc-card__tags {
    width: 236px;
    transition: opacity 0.2s ease, visibility 0.2s;
  }

  /* 悬停窄卡时宽卡会被压窄，此时把宽卡标签淡出，保持画面干净 */
  .svc-grid.is-narrow-active .svc-card--wide .svc-card__tags {
    opacity: 0;
    visibility: hidden;
  }

  /* 遮罩跟随标签显隐：宽卡标签收起时同步淡出 */
  .svc-grid.is-narrow-active .svc-card--wide .svc-card__shade {
    opacity: 0;
  }

  /* 窄卡标签默认收起，遮罩一并淡出；展开后随标签淡入 */
  .svc-card:not(.svc-card--wide):not(.svc-card--active) .svc-card__shade {
    opacity: 0;
  }

  .svc-card--active .svc-card__shade {
    opacity: 1;
    transform: scaleY(1.12);
    transition: opacity 0.4s ease 0.12s, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.12s;
  }

  /* 窄卡标签默认收起，卡片展开后再淡入 */
  .svc-card:not(.svc-card--wide) .svc-card__tags {
    left: 24px;
    width: 236px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
  }

  /* 卡片展开后再淡入，只变色不位移，避免标签上下浮动 */
  .svc-card--active:not(.svc-card--wide) .svc-card__tags {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease 0.16s, visibility 0.3s;
  }

  /* 标题大小只取决于「当前是不是宽位卡」：宽位卡 24px，收窄的卡一律 0.75。
     之前是看「激活卡是否窄卡」，指针进到第一张（它本身就在宽位、是宽卡）时
     该条件不成立，其余三张的标题就会从 0.75 弹回 24，和悬停其它卡不一致；
     现在按卡片实际宽窄判断，静止态与四种悬停态完全一致。走 transform 合成层，
     不触发布局与字形重绘 */
  .svc-grid:not(.is-accordion) .svc-card:not(.svc-card--wide) .svc-card__title,
  .svc-grid.is-accordion .svc-card:not(.svc-card--active) .svc-card__title {
    transform: translateX(var(--svc-title-nudge, 0px)) scale(0.75);
  }

  .svc-grid:not(.is-accordion) .svc-card--wide .svc-card__title,
  .svc-grid.is-accordion .svc-card--active .svc-card__title {
    transform: translateX(var(--svc-title-nudge, 0px));
  }

  /* 标题缩放提前进合成层，逐帧只做合成不再重新光栅化文字 */
  .svc-card__title {
    will-change: transform;
  }

  /* 整卡的视觉态（压暗遮罩、轻抬、柔光、图片推近、标题抬高）同样交给
     --active：若仍由 :hover 驱动，指针穿过 32px 间距时上一张卡会先落下
     4px、阴影消失、标题回落、图片缩回，进入下一张卡再抬起，形成与宽度
     无关的二次上下抖动。以下值与原 :hover 规则一致，仅换触发源。 */
  .svc-card--active {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(1, 71, 211, 0.18);
  }

  .svc-card--active::before {
    opacity: 1;
  }

  .svc-card--active .svc-card__img {
    transform: scale(1.05);
  }

  .svc-card--active .svc-card__title {
    bottom: 32px;
  }
}


.svc-card__title {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 30px;
  right: 30px;
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 26px;
  /* 手风琴收窄时用 transform 缩放，不再逐帧改字号：改字号每帧都要重排文字、
     并对每个中间字号重新光栅化字形，是首帧卡顿和字体边缘发虚的根源 */
  white-space: nowrap;
  transform-origin: 0 100%;
  transform: translateX(var(--svc-title-nudge, 0px));
  transition: bottom 0.4s cubic-bezier(0.34, 0.8, 0.3, 1),
    transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 标题也随卡片一起轻抬，用 bottom 做位移，避免和 1601 档的 translateX 校正打架 */
.svc-card:hover .svc-card__title {
  bottom: 32px;
}

/* PSD 中窄卡标题为整卡居中排版；缩放也以中轴为基准，避免收窄时文字左右游移 */
.svc-card:not(.svc-card--wide) .svc-card__title {
  left: 0;
  right: 0;
  text-align: center;
  transform-origin: 50% 100%;
}

/* 宽卡标题按 PSD 字面左对齐位置微调 2px */
.svc-card--wide .svc-card__title {
  left: 28px;
}

/* 1025–1300px 手风琴下卡片明显更窄，标题按可视宽度收敛字号，避免 nowrap 被卡片边缘裁掉。
   算式：卡片可用宽 = 100vw − 两侧 64px 内边距 − 3×32px 间距，除以 4.776 份即窄卡宽；
   最长标题「消费产品&综合业务」约 8.75 字宽，故字号上限为 (100vw − 160px) / 41.79 */
@media (min-width: 1025px) and (hover: hover) {
  .svc-card__title {
    font-size: min(24px, calc((100vw - 160px) / 41.79));
  }
}

/* 1920 档下居中标题的取整偏差各不相同（-1 / +2 / +1），逐个校正；
   PSD 字面比浏览器渲染更粗，补 0.3px 描边。 */
@media (min-width: 1601px) {
  .svc-card__title { -webkit-text-stroke: 0.3px #ffffff; }
  .svc-card:nth-child(2) .svc-card__title { --svc-title-nudge: -1px; }
  .svc-card:nth-child(3) .svc-card__title { --svc-title-nudge: 2px; }
  .svc-card:nth-child(4) .svc-card__title { --svc-title-nudge: 1px; }
}

.svc-card__arrow {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 0.8, 0.3, 1);
}

.svc-card__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--featured-blue, #0147d3);
  border-right: 2px solid var(--featured-blue, #0147d3);
  transform: translate(-62%, -50%) rotate(45deg);
  transition: border-color 0.3s ease,
    transform 0.46s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 悬停卡片时圆钮浮起一点点并透出淡淡主色光 */
.svc-card:hover .svc-card__arrow {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(1, 71, 211, 0.22);
}

.svc-card .svc-card__arrow:active {
  transform: scale(0.92);
}

.svc-card__tags {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 236px;
}

.svc-card__tag {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #ffffff;
  border-radius: 16px;
  color: #ffffff;
  font-size: 15px;
  line-height: 30px;
  white-space: nowrap;
  text-decoration: none;
  background: rgba(255, 255, 255, 0);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease, transform 0.25s ease;
}

/* 标签本身是链接：悬停反白填充，同时轻微上浮，明确可点 */
.svc-card__tag:hover,
.svc-card__tag:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--featured-blue, #0147d3);
  box-shadow: 0 6px 16px rgba(0, 32, 96, 0.28);
  transform: translateY(-1px);
}

.svc-card__tag:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   认证服务
   -------------------------------------------------------------------------- */
.home-cert {
  padding: 78px 0 44px;
  background: #f5f5fa;
}

.home-cert .section-head {
  margin-bottom: 31px;
}

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

.cert-card {
  display: grid;
  grid-template-rows: 80px 1fr;
  justify-items: center;
  align-content: start;
  height: 194px;
  padding: 24px 8px 0;
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  transition: transform 0.34s cubic-bezier(0.34, 0.8, 0.3, 1), box-shadow 0.34s ease;
}

.cert-card__icon {
  width: auto;
  max-width: 86px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  align-self: center;
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cert-card__title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin: 0;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
  letter-spacing: 1.8px;
  -webkit-font-smoothing: antialiased;
  transition: color 0.2s ease;
}

@media (min-width: 1281px) {
  .cert-card__title {
    top: 18px;
    white-space: nowrap;
  }

  .cert-card:nth-child(n + 7) .cert-card__title {
    top: 22px;
  }

  .cert-card:nth-child(n + 7) .cert-card__icon {
    position: relative;
    top: 4px;
  }

  /* 第三张卡片标题文案较长，PSD 中字号略小 */
  .cert-card:nth-child(3) .cert-card__title {
    top: 22px;
    font-size: 15px;
    letter-spacing: 1.5px;
  }
}

/* PSD 认证标题字面核心色为 #444 */
@media (min-width: 1601px) {
  .cert-card__title {
    color: #444444;
  }
}

/* 悬停认证项：卡片轻抬并浮起主色柔光、图标缓缓推近、标题转蓝，与检测服务卡片同一手感 */
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(1, 71, 211, 0.16);
}

.cert-card:hover .cert-card__icon {
  transform: scale(1.08);
}

.cert-card:hover .cert-card__title {
  color: var(--featured-blue, #0147d3);
}

/* --------------------------------------------------------------------------
   国际业务
   -------------------------------------------------------------------------- */
.home-intl {
  padding: 82px 0 83px;
  background:
    url("../../images/pages/home/intl-map.png") no-repeat -117px -102px / 2139px 1281px,
    linear-gradient(105deg, #d4e6f2 0%, #f8fdfa 100%);
}

.intl-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 17px 23px;
}

.intl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 101px;
  border: 1px solid rgba(1, 71, 211, 0);
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  transition:
    transform 0.34s cubic-bezier(0.34, 0.8, 0.3, 1),
    box-shadow 0.34s ease,
    border-width 0.28s ease,
    border-color 0.28s ease;
}

.intl-card__mark {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 30px;
  height: 3px;
  background: var(--featured-blue, #0147d3);
  transform: translateX(-50%);
  transition: opacity 0.24s ease;
}

.intl-card__icon {
  width: auto;
  height: 26px;
  object-fit: none;
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.intl-card__title {
  position: relative;
  top: -3px;
  color: #1a1a1a;
  font-size: 19px;
  line-height: 24px;
  white-space: nowrap;
}

/* 箭头：静态时不占位（负 margin 抵掉 flex gap），悬停时卡片让出一行，箭头淡入并向右归位 */
.intl-card__arrow {
  position: relative;
  z-index: 2;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 8px;
  max-height: 0;
  margin-top: -9px;
  overflow: hidden;
  color: var(--featured-blue, #0147d3);
  opacity: 0;
  transform: translate(-4px, -3px);
  transition:
    max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    margin-top 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease,
    transform 0.34s cubic-bezier(0.34, 0.8, 0.3, 1) 0.06s;
}

.intl-card:hover {
  border-width: 3px;
  border-color: var(--featured-blue, #0147d3);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(1, 47, 140, 0.16);
}

.intl-card:hover .intl-card__mark {
  opacity: 0;
}

.intl-card:hover .intl-card__icon {
  transform: scale(1.06);
}

.intl-card:hover .intl-card__arrow {
  max-height: 8px;
  margin-top: 0;
  opacity: 1;
  transform: translate(4px, 0);
}

/* --------------------------------------------------------------------------
   特色平台
   -------------------------------------------------------------------------- */
.home-platform {
  padding: 84px 0 100px;
  background:
    url("../../images/pages/home/featured-platform-bg.png?v=20261129") center / cover no-repeat,
    linear-gradient(104deg, #0483e7 0%, #0165e0 74%, #0147d4 100%);
}

/* 本区块标题下划线在 PSD 中为 27×5 的圆角条，距标题 13px */
.home-platform .section-head {
  margin-bottom: 28px;
}

.home-platform .section-head__line {
  width: 27px;
  height: 5px;
  margin-top: 13px;
  border-radius: 2.5px;
}

.plat-grid {
  display: grid;
  grid-template-columns: 297fr 285fr 281fr 285fr;
  grid-template-rows: 241px 242px;
  grid-template-areas:
    "tall smart capital quality"
    "tall electronics electronics cloud";
  column-gap: 18px;
  row-gap: 19px;
}

.plat-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.34s cubic-bezier(0.34, 0.8, 0.3, 1), box-shadow 0.34s ease;
}

.plat-card--tall {
  grid-area: tall;
}

.plat-card--smart {
  grid-area: smart;
}

.plat-card--quality {
  grid-area: quality;
}

.plat-card--electronics {
  grid-area: electronics;
}

.plat-card--plain {
  grid-area: capital;
  display: flex;
  flex-direction: column;
  padding: 30px 24px 0 25px;
  background: linear-gradient(135deg, #ffffff 0%, #e1e4f0 100%);
}

.plat-card--blue {
  grid-area: cloud;
  display: flex;
  flex-direction: column;
  padding: 31px 24px 0 30px;
  background: linear-gradient(180deg, #00bffa 0%, #005fea 100%);
}

.plat-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.plat-card--photo .plat-card__img {
  position: absolute;
  inset: 0;
}

/* 照片卡压暗：按 PSD 压暗层的 alpha 曲线拟合，保证标题始终清晰 */
.plat-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 21%, rgba(0, 0, 0, 0.86) 100%);
}

.plat-card--tall::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.82) 100%);
}

.plat-card--electronics::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.86) 100%);
}

.plat-card--photo .plat-card__body {
  position: absolute;
  z-index: 2;
  right: 70px;
  bottom: 31px;
  left: 21px;
}

.plat-card--quality .plat-card__body {
  left: 20px;
}

.plat-card--electronics .plat-card__body {
  right: 120px;
  bottom: 36px;
  left: 31px;
}

.plat-card--plain .plat-card__icon {
  width: 52px;
  height: 54px;
  /* PSD 中图标底片比文字左 5px */
  margin-left: -5px;
  object-fit: contain;
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.plat-card__icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 53px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 云课堂的书本图标：白色描边png，居中放在 22% 白的圆角底片上 */
.plat-card__icon-tile img {
  display: block;
  width: 27px;
  height: 25px;
  object-fit: contain;
}

.plat-card__title {
  margin: 0;
  color: #222222;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.plat-card--photo .plat-card__title,
.plat-card--blue .plat-card__title {
  color: #ffffff;
}

.plat-card--plain .plat-card__title {
  margin-top: 10px;
  white-space: nowrap;
}

.plat-card__desc {
  margin: 8px 0 0;
  color: #6b6b73;
  font-size: 13.5px;
  line-height: 20px;
}

.plat-card--photo .plat-card__desc,
.plat-card--blue .plat-card__desc {
  color: #ffffff;
}

.plat-card--electronics .plat-card__desc {
  margin-top: 10px;
  font-size: 14px;
}

.plat-card--plain .plat-card__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 22px;
}

/* 1025~1279：四列时卡片内宽不足 280px，照片卡的长标题会折成 3 行以上，
   这一区间提前切成两列；1280 起回到设计稿的四列排布。 */
@media (min-width: 1025px) and (max-width: 1279px) {
  .plat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 240px 220px 220px 200px;
    grid-template-areas:
      "tall smart"
      "tall capital"
      "quality cloud"
      "electronics electronics";
  }
}

.plat-card--blue .plat-card__title {
  margin-top: 8px;
}

.plat-card--blue .plat-card__desc {
  margin-top: 11px;
}

.plat-card__arrow {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* PSD 中圆点为 70% 白，透出卡片底色 */
  background: rgba(255, 255, 255, 0.7);
}

.plat-card--plain .plat-card__arrow {
  right: 31px;
  background: #d0dbf3;
}

.plat-card__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  /* PSD 中所有卡片的箭头都是主色蓝 */
  border-top: 2px solid #0147d3;
  border-right: 2px solid #0147d3;
  transform: translate(-62%, -50%) rotate(45deg);
}

/* 悬停特色平台卡片：整卡轻抬，蓝底上主色柔光不明显，改用深色投影；
   照片缓缓推近、图标微放大，与上方认证/国际业务同一手感。
   卡片整体是一个链接，鼠标移入即为小手，不再改动标题与箭头 */
.plat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 32, 96, 0.34);
}

.plat-card--photo:hover .plat-card__img {
  transform: scale(1.05);
}

.plat-card--plain:hover .plat-card__icon,
.plat-card--blue:hover .plat-card__icon-tile {
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   综合服务
   -------------------------------------------------------------------------- */
.home-service {
  padding: 79px 0 81px;
  background: #ffffff;
}

/* 综合服务的标题下划线在 PSD 中比通用样式更宽更厚：27×5 的圆角条 */
.home-service .section-head__line {
  width: 27px;
  height: 5px;
  margin-top: 15px;
  border-radius: 2.5px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* PSD：每卡 587×172、间距 28；1px #CBD9F5 描边 + 5px 10% 主蓝柔光 */
.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: 28px auto;
  align-content: start;
  column-gap: 23px;
  min-height: 172px;
  padding: 39px 100px 0 29px;
  overflow: hidden;
  border: 1px solid #cbd9f5;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 0 5px rgba(1, 71, 211, 0.10);
}

.service-card__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 54px;
  height: 53px;
  margin-top: -10px;
  object-fit: contain;
}

/* 图标/标题/描述分别定位，标题与图标同行、描述占满整行 */
.service-card__body {
  display: contents;
}

.service-card__title {
  position: relative;
  top: 3px;
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 0 -5px;
  color: #222222;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.service-card__desc {
  grid-column: 1 / span 2;
  grid-row: 2;
  max-width: 330px;
  margin: 33px 0 0;
  color: #666666;
  font-size: 14px;
  line-height: 18px;
}

.service-card__arrow {
  position: absolute;
  right: 31px;
  bottom: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e6effe;
  cursor: pointer;
}

.service-card__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--featured-blue, #0147d3);
  border-right: 2px solid var(--featured-blue, #0147d3);
  transform: translate(-62%, -50%) rotate(45deg);
}

/* 卡片内容在 PSD 中逐张手工摆放，横向/纵向有 1~3px 差异；
   首卡整体右移约 8~10px，且描述占满整行（两行） */
.service-card:nth-child(1) .service-card__icon {
  margin-left: 9px;
}

.service-card:nth-child(1) .service-card__title {
  margin-left: 3px;
}

.service-card:nth-child(1) .service-card__desc {
  max-width: 445px;
  margin-left: 8px;
}

.service-card:nth-child(1) .service-card__arrow {
  right: 29px;
  bottom: 27px;
}

.service-card:nth-child(3) .service-card__title {
  top: 2px;
  margin-left: -8px;
}

.service-card:nth-child(4) .service-card__title {
  margin-left: -4px;
}

.service-card:nth-child(3) .service-card__desc {
  margin-left: 1.5px;
}

/* 悬停综合服务卡片：与上方认证/国际业务/特色平台同一手感 —— 整卡轻抬、
   图标微放大、标题提亮、圆箭头轻放大 */
.service-card {
  transition:
    transform 0.34s cubic-bezier(0.34, 0.8, 0.3, 1),
    box-shadow 0.34s ease;
}

.service-card__icon {
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.service-card__title {
  transition: color 0.2s ease;
}

.service-card__arrow {
  transition: transform 0.34s cubic-bezier(0.34, 0.8, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(20, 52, 120, 0.16);
}

.service-card:hover .service-card__icon {
  transform: scale(1.08);
}

.service-card:hover .service-card__title {
  color: var(--featured-blue, #0147d3);
}

.service-card:hover .service-card__arrow {
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   友情链接
   -------------------------------------------------------------------------- */
.home-friend {
  padding: 71px 0 70px;
  background: #f5f5fa;
}

/* PSD 中标题与卡片间距为 28px */
.home-friend .section-head {
  margin-bottom: 28px;
}

/* 标题整体较 PSD 低 4px，只上移标题块，保持网格与翻页器位置不变 */
.home-friend .section-head__title-wrap {
  margin-top: -4px;
}

.friend-pager {
  display: flex;
  gap: 13px;
  margin-top: 8px;
}

.friend-pager__prev,
.friend-pager__next {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition:
    transform 0.34s cubic-bezier(0.34, 0.8, 0.3, 1),
    box-shadow 0.34s ease,
    background-color 0.2s ease;
}

.friend-pager__prev {
  border: 0;
  background: #ffffff;
}

.friend-pager__next {
  border: 0;
  background: var(--featured-blue, #0147d3);
}

.friend-pager__prev::after,
.friend-pager__next::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #b7bfcc;
  border-right: 2px solid #b7bfcc;
  transform: translate(-38%, -50%) rotate(-135deg);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.friend-pager__next::after {
  border-color: #ffffff;
  transform: translate(-62%, -50%) rotate(45deg);
}

.friend-pager__prev::after {
  border-color: var(--featured-blue, #0147d3);
}

/* 翻页按钮与卡片箭头同一手感：悬停轻放大 + 柔光，箭头朝翻页方向微移，按下回缩 */
.friend-pager__prev:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(20, 52, 120, 0.16);
}

.friend-pager__next:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(20, 32, 96, 0.34);
}

.friend-pager__prev:hover::after {
  transform: translate(-48%, -50%) rotate(-135deg);
}

.friend-pager__next:hover::after {
  transform: translate(-52%, -50%) rotate(45deg);
}

.friend-pager__prev:active,
.friend-pager__next:active {
  transform: scale(0.94);
}

.friend-pager__prev:disabled,
.friend-pager__next:disabled {
  cursor: default;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}

.friend-pager__prev:disabled::after,
.friend-pager__next:disabled::after {
  transform: translate(-38%, -50%) rotate(-135deg);
}

.friend-pager__next:disabled::after {
  transform: translate(-62%, -50%) rotate(45deg);
}

.friend-pager__prev:focus-visible,
.friend-pager__next:focus-visible {
  outline: 2px solid var(--featured-blue, #0147d3);
  outline-offset: 2px;
}

.friend-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 13px;
  margin: 0 0 0 -1px;
  padding: 0;
  list-style: none;
  transition:
    opacity 0.32s ease,
    transform 0.4s cubic-bezier(0.34, 0.8, 0.3, 1);
}

/* 翻页：先朝翻页方向淡出，换位后从反方向柔和滑回 */
.friend-grid.is-leaving-next {
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.3, 0, 0.2, 1);
}

.friend-grid.is-leaving-prev {
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.3, 0, 0.2, 1);
}

.friend-grid.is-enter-from-next {
  opacity: 0;
  transform: translateX(18px);
  transition: none;
}

.friend-grid.is-enter-from-prev {
  opacity: 0;
  transform: translateX(-18px);
  transition: none;
}

.friend-card {
  height: 76px;
  border-radius: 12px;
  background: #ffffff;
}

.friend-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  /* padding: 0 18px 1px; */
}

/* 后台友情链接 logo 尺寸和留白不统一，这里按“自然比例 + 最大显示尺寸”收口，
   让动态数据尽量贴近静态稿的视觉重量和居中效果 */
.friend-card__logo {
  display: block;
  width: 100%;
  /* height: 44px;
  border-radius: 4px; */
  object-fit: contain;
  object-position: center;
}

/* --------------------------------------------------------------------------
   1600 及以下
   -------------------------------------------------------------------------- */
@media (max-width: 1600px) {
  /* 两卡在 1025px 以上始终保持左右并排，交叠区（折角 + 接缝）不作取消 */
  .query-card {
    /* 保留 1920 基准的 -24px 交叠量；内边距同步加减，使内容位置与原先一致 */
    padding: 34px 54px 30px 31px;
  }

  .query-card__tabs {
    gap: 40px;
    margin-right: 0;
    --tab-line-pad: 0px;
  }

  .query-card__tabs::after {
    left: 0;
    right: 0;
  }

  .login-card {
    /* 保留 1920 基准的 2px 内缩，内边距同步减去，使内容位置与原先一致 */
    padding: 21px 28px 30px 38px;
  }

  .svc-card__tags {
    width: 210px;
  }
}

/* --------------------------------------------------------------------------
   1280 及以下
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .hero-panel {
    grid-template-columns: minmax(0, 1fr) 340px;
    --hero-col-login: 340px;
  }

  .query-card {
    /* 右侧 +24、左侧 +1，抵消交叠区的负外边距 */
    padding: 28px 50px 26px 27px;
  }

  .query-card__title-wrap {
    padding-top: 0;
  }

  .query-card__tabs {
    gap: 26px;
  }

  .query-card__tab {
    font-size: 14px;
  }

  .login-card {
    /* 左侧 -2，抵消白底的 2px 内缩 */
    padding: 24px 26px 26px 28px;
  }

  .news-board__tabs {
    gap: 4px;
  }

  .news-board__tab {
    padding: 0 16px;
    font-size: 14px;
  }

  .news-item {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 26px;
  }

  .news-item__thumb {
    width: 180px;
    height: 128px;
  }

  .svc-card {
    height: 500px;
  }

  .intl-card {
    height: 92px;
  }

  .service-card {
    padding-right: 84px;
  }
}

/* --------------------------------------------------------------------------
   1024 及以下
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .home-hero__panel {
    margin-top: -60px;
  }

  .home-hero__panel::before {
    top: 60px;
    height: calc(100% - 60px);
  }

  .hero-panel {
    /* 折角尺寸同时决定登录卡左右内缩量：折角内尖正好落在台阶转角上 */
    --fold-w: 30px;
    --fold-h: 13px;
    grid-template-columns: minmax(0, 1fr);
    /* 单列时整块收窄到 2/3，避免宽屏下卡片过宽、留白失衡 */
    width: 66.667%;
    margin: 0 auto;
  }

  /* 单列布局下两卡上下相接：外形仍为一整块，折角改到横向接缝两端 */
  .hero-panel__surface {
    display: none;
  }

  .query-card {
    top: 0;
    margin: 0;
    min-height: 0;
    padding: 30px 32px 28px;
    border-radius: 20px 20px 0 0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 36, 95, 0.06);
  }

  /* 收窄后标题与页签改为上下两行 */
  .query-card__header {
    flex-wrap: wrap;
    gap: 18px 24px;
    min-width: 0;
  }

  .query-card__title-wrap {
    gap: 14px;
  }

  .query-card__icon {
    width: 42px;
    height: 42px;
  }

  .query-card__icon svg {
    width: 22px;
    height: 23px;
  }

  .query-card__title {
    font-size: 26px;
    line-height: 26px;
  }

  .query-card__tabs {
    width: 100%;
    min-width: 0;
    gap: 22px;
    margin: 0;
    padding-top: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .query-card__tabs::-webkit-scrollbar {
    display: none;
  }

  /* 溢出滚动会裁剪超出容器的装饰线，改为贴齐页签可视区 */
  .query-card__tabs::after {
    left: 0;
    right: 0;
  }

  .query-card__tab {
    padding-bottom: 14px;
    font-size: 15px;
  }

  /* 收窄后输入框与按钮改为上下排列 */
  .query-card__search {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 26px;
  }

  .query-card__input,
  .query-card__submit {
    height: 48px;
  }

  .query-card__note {
    margin-top: 18px;
    font-size: 14px;
    line-height: 22px;
  }

  .login-card {
    /* 登录卡左右各让出一个折角宽度：接缝处形成台阶，折角有了翻折的落点 */
    width: calc(100% - var(--fold-w) * 2);
    margin: 0 auto;
    min-height: 0;
    padding: 30px 32px 32px;
    border-radius: 0 0 20px 20px;
    /* 横向接缝：上方 1px 折痕线、下方 8px 折痕阴影，两端淡出 */
    background:
      linear-gradient(180deg, rgba(11, 36, 95, 0.045) 0, rgba(11, 36, 95, 0) 8px) top / 100%
        8px no-repeat,
      linear-gradient(
          90deg,
          rgba(1, 71, 211, 0) 0%,
          rgba(1, 71, 211, 0.07) 26px,
          rgba(1, 71, 211, 0.07) calc(100% - 26px),
          rgba(1, 71, 211, 0) 100%
        )
        top / 100% 1px no-repeat,
      #ffffff;
    box-shadow: 0 4px 12px rgba(11, 36, 95, 0.06);
  }

  /* 接缝两端的浅蓝折角：位于查询卡内侧底角（与横排同侧），
     沿用横排折角的取色规律——背离接缝一侧最深，向接缝方向淡出 */
  .query-card::before,
  .query-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: var(--fold-w);
    height: var(--fold-h);
    pointer-events: none;
    background: linear-gradient(180deg, #bcd3fa 0%, #c3d8fb 35%, #cfe1fd 70%, #dfeafd 100%);
  }

  .query-card::before {
    left: 0;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
  }

  .query-card::after {
    right: 0;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
  }

  /* 首屏入场：单列时整块先被撑开（--hero-fold-stretch），收拢的同时登录卡收到台阶宽度，
     收拢结束时接缝两端折出折角 */
  @keyframes hero-fold-narrow {
    0%,
    78% {
      width: 100%;
    }
    100% {
      width: calc(100% - var(--fold-w) * 2);
    }
  }

  @keyframes hero-fold-flap-grow {
    from {
      width: 0;
      height: 0;
    }
  }

  .hero-panel {
    /* 单列时卡片几乎贴满视口，起始宽度系数由 1399 断点统一收窄到 1.05 */
    --hero-fold-stretch: 1.05;
  }

  .login-card {
    animation: hero-fold-narrow 0.6s cubic-bezier(0.4, 0, 0.16, 1) backwards;
  }

  .query-card::before,
  .query-card::after {
    animation: hero-fold-flap-grow 0.4s cubic-bezier(0.34, 1.42, 0.5, 1) 0.5s backwards;
  }

  .login-card__header {
    gap: 14px;
    margin-bottom: 24px;
  }

  .login-card__icon {
    width: 42px;
    height: 42px;
  }

  .login-card__icon svg {
    width: 21px;
    height: 24px;
  }

  .login-card__title {
    font-size: 26px;
    line-height: 26px;
  }

  .login-card__actions {
    flex-direction: column;
    gap: 20px;
  }

  .login-card__button {
    min-height: 52px;
    padding: 0 22px;
    gap: 12px;
    font-size: 16px;
  }

  .home-hero__news {
    padding: 48px 0 60px;
  }

  .news-board__header {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .news-board__tabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
    margin-top: 0;
    scrollbar-width: none;
  }

  .news-board__tabs::-webkit-scrollbar {
    display: none;
  }

  .news-board__more {
    order: 2;
  }

  .news-board__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 26px;
  }

  .news-item {
    grid-template-columns: minmax(0, 1fr) 207px;
  }

  .news-item__thumb {
    width: 207px;
    height: 147px;
  }

  .news-item__summary {
    font-size: 13px;
    line-height: 20px;
  }

  .home-inspection {
    padding: 56px 0 60px;
  }

  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .svc-card {
    height: 380px;
  }

  .svc-card--wide {
    grid-column: 1 / -1;
    height: 420px;
  }

  .svc-card__tags {
    width: auto;
    max-width: calc(100% - 120px);
  }

  .home-cert {
    padding: 56px 0 40px;
  }

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

  .cert-card {
    height: 190px;
    padding: 26px 12px 0;
  }

  .home-intl {
    padding: 56px 0 40px;
  }

  .intl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .intl-card__title {
    font-size: 14px;
  }

  .home-platform {
    padding: 64px 0 60px;
  }

  .plat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 240px 220px 220px 200px;
    grid-template-areas:
      "tall smart"
      "tall capital"
      "quality cloud"
      "electronics electronics";
    gap: 16px;
  }

  .home-service {
    padding: 56px 0 60px;
  }

  .service-grid {
    gap: 20px;
  }

  .service-card {
    padding-left: 24px;
    padding-right: 76px;
  }

  .service-card__arrow {
    right: 22px;
    bottom: 22px;
  }

  .home-friend {
    padding: 56px 0;
  }

  .friend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

/* --------------------------------------------------------------------------
   768 及以下
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .section-head {
    margin-bottom: 18px;
  }

  .section-head__title {
    font-size: 24px;
    line-height: 28px;
  }

  .section-head__line {
    margin-top: 10px;
  }

  .section-head__more {
    margin-top: 4px;
    font-size: 14px;
  }

  .home-hero__banner-img {
    min-height: 220px;
    object-fit: cover;
  }

  .home-hero__panel {
    margin-top: -36px;
  }

  .home-hero__panel::before {
    top: 36px;
    height: calc(100% - 36px);
  }

  .query-card {
    padding: 24px 20px 22px;
  }

  .query-card__header {
    flex-direction: column;
    gap: 16px;
  }

  .query-card__title-wrap {
    gap: 12px;
  }

  .query-card__icon {
    width: 38px;
    height: 38px;
  }

  .query-card__icon svg {
    width: 20px;
    height: 21px;
  }

  .query-card__title {
    font-size: 22px;
    line-height: 22px;
  }

  .query-card__tabs {
    width: 100%;
    gap: 18px;
    margin-left: 0;
  }

  .query-card__tab {
    padding-bottom: 12px;
    font-size: 14px;
  }

  .query-card__search {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
  }

  .query-card__note {
    margin-top: 16px;
  }

  .login-card {
    padding: 24px 20px 26px;
  }

  .login-card__header {
    gap: 12px;
    margin-bottom: 20px;
  }

  .login-card__icon {
    width: 38px;
    height: 38px;
  }

  .login-card__icon svg {
    width: 19px;
    height: 21px;
  }

  .login-card__title {
    font-size: 22px;
    line-height: 22px;
  }

  .login-card__actions {
    flex-direction: column;
    gap: 12px;
  }

  .login-card__button {
    min-height: 48px;
    padding: 0 16px;
    gap: 10px;
    font-size: 15px;
    white-space: normal;
  }

  .home-hero__news {
    padding: 36px 0 44px;
  }

  .news-board__title {
    font-size: 24px;
    line-height: 28px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news-item__title {
    font-size: 16px;
    line-height: 24px;
  }

  .news-item__date {
    margin-top: 12px;
  }

  .news-item__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 207 / 147;
  }

  .home-inspection,
  .home-cert,
  .home-intl,
  .home-platform,
  .home-service,
  .home-friend {
    padding: 40px 0;
  }

  .svc-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .svc-card,
  .svc-card--wide {
    height: 300px;
  }

  .svc-card__tags {
    max-width: calc(100% - 90px);
  }

  .svc-card__shade {
    height: 150px;
  }

  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cert-card {
    height: 168px;
    padding: 20px 10px 0;
  }

  .cert-card__icon {
    max-height: 62px;
  }

  .cert-card__title {
    height: 44px;
    margin: 0;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0;
  }

  .intl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .intl-card {
    height: 88px;
  }

  .intl-card__title {
    font-size: 13px;
  }

  .home-platform {
    background: linear-gradient(180deg, #2f7fe8 0%, #026de3 8%, #026de3 100%);
  }

  .plat-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 320px 220px 200px 200px 180px 200px;
    grid-template-areas:
      "tall"
      "smart"
      "capital"
      "quality"
      "electronics"
      "cloud";
    gap: 12px;
  }

  .plat-card--tall .plat-card__title {
    font-size: 22px;
  }

  .plat-card--electronics .plat-card__body {
    right: 70px;
  }

  .plat-card__desc {
    font-size: 13px;
    line-height: 20px;
  }

  /* 白卡描述在窄屏会折成两行，右侧让出箭头的位置 */
  .plat-card--plain .plat-card__desc {
    padding-right: 58px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 16px;
    padding: 22px 80px 22px 20px;
  }

  .service-card__icon {
    width: 46px;
    height: 46px;
  }

  .service-card__title {
    font-size: 18px;
  }

  .friend-pager {
    margin-top: 4px;
  }

  .friend-pager__prev,
  .friend-pager__next {
    width: 36px;
    height: 36px;
  }

  .friend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .friend-card {
    height: 66px;
  }

  .friend-card img {
    height: 34px;
  }
}

/* --------------------------------------------------------------------------
   640 及以下：收窄的卡片会让内容过挤，恢复满宽，折角随之等比缩小
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-panel {
    --fold-w: 20px;
    --fold-h: 10px;
    width: 100%;
  }

  /* 窄屏下页签改为换行，避免最后一个被裁切 */
  .query-card__tabs {
    flex-wrap: wrap;
    row-gap: 10px;
    overflow: visible;
  }

  .query-card__tabs::after {
    right: 0;
  }
}

/* 系统开启「减少动态效果」时，折角入场直接呈现最终形态 */
@media (prefers-reduced-motion: reduce) {
  .hero-panel,
  .hero-panel__surface-card--query,
  .hero-panel__surface-fold,
  .login-card,
  .query-card::before,
  .query-card::after {
    animation: none;
  }
}
