/* ============================================================
   中科普瑞 · 关于普瑞
   蓝白图文版面；仅在 about.html 通过 body.ab 生效
   ============================================================ */

body.ab {
  --ab-ink: #1d1d1f;
  --ab-body: #424245;
  --ab-mute: #86868b;
  --ab-line: #d2d2d7;
  --ab-line-2: #b8b8bf;
  --ab-hair: #e3e9f1;
}

/* ---------- 首屏：呼应原版 Logo 的黑色字标、叶片绿与少量红色 ---------- */
body.ab .ab-head {
  --ab-brand-ink: #211d19;
  --ab-brand-green: #008d45;
  --ab-brand-red: #e52316;
  --ab-cred-half-height: 58px;
  padding: 0 0 var(--ab-cred-half-height); background: #fff; scroll-margin-top: var(--header-h);
}
body.ab .ab-crumb {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 0;
  color: var(--ab-mute); font-size: 12px;
}
body.ab .ab-crumb a { color: inherit; }
body.ab .ab-crumb a:hover { color: var(--ab-brand-green); }
body.ab .ab-crumb span:last-child { color: var(--ab-ink); }
body.ab .ab-crumb a:focus-visible { outline: 2px solid var(--ab-brand-green); outline-offset: 4px; }

/* 企业实景：使用已保留三图裁切效果的合成图片，铺满屏幕宽度 */
body.ab .ab-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(272px, 22.4vw, 320px);
  background: #eaf0eb;
}
body.ab .ab-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
body.ab .ab-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 资质卡：水平中线与图片底边重合，首屏为下半部分预留空间 */
body.ab .ab-cred {
  position: absolute;
  bottom: 0;
  transform: translateY(50%);
  left: 0;
  right: 0;
  z-index: 2;
  width: var(--page-w);
  margin: 0 auto;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  box-shadow: 0 -2px 24px rgba(9, 36, 66, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
body.ab .ab-cred-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.ab .ab-cred-list li {
  display: grid;
  grid-template-rows: 22px 24px 20px;
  row-gap: 6px;
  min-width: 0;
  padding: 0 12px;
  text-align: center;
}
body.ab .ab-cred-list li + li { border-left: 1px solid rgba(29, 29, 31, 0.12); }
body.ab .ab-cred-icon {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  color: #0066cc;
}
body.ab .ab-cred-list b {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  color: var(--ab-ink);
}
body.ab .ab-cred-list span {
  display: block;
  font-size: 12px;
  line-height: 20px;
  color: var(--ab-body);
}

@media (max-width: 1200px) {
  body.ab .ab-cred-list b { font-size: 14px; }
}

/* ---------- 公司简介：横向标头 + 单列正文 ---------- */
body.ab .ab-intro { padding: 36px 0 36px; background: #fff; }
body.ab .ab-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ab-line);
}
body.ab .ab-sec-head h2 {
  color: var(--ab-ink);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.015em;
}
body.ab .ab-sec-note { margin: 0; color: var(--ab-mute); font-size: 13.5px; line-height: 1.6; letter-spacing: .08em; }
body.ab .ab-prose {
  margin-top: 28px;
  padding-left: 32px;
  border-left: 2px solid #b9d4ec;
}
body.ab .ab-prose p {
  margin: 0;
  font-size: 16.5px;
  line-height: 2;
  color: var(--ab-body);
  text-wrap: pretty;
}
body.ab .ab-prose p + p { margin-top: 18px; }
body.ab .ab-prose strong { font-weight: 600; color: var(--blue-900); }

/* ---------- 总经理寄语：白底，引文单列 ---------- */
body.ab .ab-msg {
  padding: 0;
  background: #fff;
}
body.ab .ab-msg-head { display: flex; align-items: center; gap: 26px; }
body.ab .ab-msg-head h2 {
  color: var(--ab-ink);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.015em;
  white-space: nowrap;
}
body.ab .ab-msg-head > span { flex: 1; height: 1px; background: #d7e3ef; }
body.ab .ab-msg-quote {
  max-width: none;
  margin: 28px 0 0;
  padding-left: 32px;
  border-left: 2px solid #b9d4ec;
}
body.ab .ab-msg-quote blockquote {
  margin: 0;
  color: var(--ab-body);
  font-size: 15.5px;
  line-height: 2;
  text-wrap: pretty;
}
body.ab .ab-msg-quote blockquote p { max-width: 1080px; margin: 0; }
body.ab .ab-msg-quote blockquote p:first-child { color: #173f63; font-size: 23px; line-height: 1.8; font-weight: 500; }
body.ab .ab-msg-quote blockquote p + p { margin-top: 18px; }
body.ab .ab-msg-quote figcaption {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid #d7e3ef;
}
body.ab .ab-msg-sign { color: var(--blue-900); font-size: 17px; font-weight: 500; letter-spacing: .12em; line-height: 1; }
body.ab .ab-msg-role { color: #6b7f92; font-size: 12px; letter-spacing: .04em; line-height: 1; }

/* ---------- 主营业务 ---------- */
body.ab .ab-biz {
  padding: 36px 0 36px;
  background: #fff;
}
/* 标头照搬首页 .ap-hm-head / .ap-hm-title：同细线、同间距、同字号 */
body.ab .ab-biz .ap-hm-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--ab-line);
}
body.ab .ab-biz .ap-hm-title {
  margin-top: 12px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ab-ink);
}

/* 四联业务卡 — 与首页 .ap-hm-biz-* 保持一致的版式（同图 3:2、同文案、同交互） */
body.ab .ap-hm-biz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
body.ab .ap-hm-biz-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(9, 36, 66, 0.04);
  transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s;
}
body.ab .ap-hm-biz-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 204, 0.28);
  box-shadow: 0 16px 36px rgba(0, 102, 204, 0.09);
}
body.ab .ap-hm-biz-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #eef2f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
body.ab .ap-hm-biz-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}
body.ab .ap-hm-biz-card:hover .ap-hm-biz-img img { transform: scale(1.03); }
body.ab .ap-hm-biz-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
body.ab .ap-hm-biz-body h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ab-ink);
  transition: color 0.3s;
}
body.ab .ap-hm-biz-card:hover h3 { color: #0066cc; }
body.ab .ap-hm-biz-body p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ab-mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.ab .ap-hm-biz-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0066cc;
}
body.ab .ap-hm-biz-more svg { width: 15px; height: 15px; transition: transform 0.3s; }
body.ab .ap-hm-biz-card:hover .ap-hm-biz-more svg { transform: translateX(4px); }

@media (max-width: 1080px) {
  body.ab .ab-head { --ab-cred-half-height: 125.5px; }
  body.ab .ap-hm-biz-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body.ab .ap-hm-biz-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   荣誉资质 — 与首页 .hm-cert 保持一致的呈现
   白底 + 标题细线 + 圆角证书 + 竖版证书统一宽高比
   ============================================================ */
body.ab .ab-cert { background: #fff; }
body.ab .ab-cert .ab-cert-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ap-line);
}
body.ab .ab-cert .ap-sec-title {
  margin-top: 12px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
}
body.ab .ab-cert .ap-cert-frame img { border-radius: 12px; }
body.ab .ab-cert .ap-cert-frame.landscape img { max-height: 300px; }
/* 竖版证书：块级卡片 + 统一宽高比外框，图片按各自比例等高拉伸，零裁切 */
body.ab .ab-cert .ap-cert-card { display: block; }
body.ab .ab-cert .ap-cert-frame.portrait { aspect-ratio: 555 / 754; }
body.ab .ab-cert .ap-cert-frame.portrait img {
  max-height: none;
  width: auto;
  height: auto;
  align-self: stretch;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* ---------- 专利与创新：标头与其他内容块一致，卡片样式见 style.css ---------- */
body.ab .ab-innovation {
  background: #fff;
  scroll-margin-top: calc(var(--header-h, 76px) + 20px);
}
body.ab .ab-innovation-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ab-line);
}
/* ============================================================
   新闻资讯 (#news) — 垂直时间轴：年份分组 + 轴点 + 条目
   与关于普瑞同语言：白底、细线轴、无卡片
   ============================================================ */
body.ab .ab-news {
  padding: 36px 0 36px;
  background: #fff;
  scroll-margin-top: calc(var(--header-h, 76px) + 14px);
}

body.ab .ab-news-tl {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

/* 年份分组：年份靠轴右对齐，条目挂在轴的右侧 */
body.ab .ab-news-group {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  column-gap: 44px;
}
body.ab .ab-news-year {
  align-self: start;
  margin: 0;
  padding-top: 1px;
  text-align: right;
  color: var(--blue-900);
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
body.ab .ab-news-group-list {
  --tl-pad: 42px;
  --tl-dot: 9px;
  position: relative;
  margin: 0;
  padding: 0 0 0 var(--tl-pad);
  list-style: none;
  border-left: 1px solid var(--ab-hair);
}

/* 条目 */
body.ab .ab-news-item {
  position: relative;
  padding: 0 0 30px;
  scroll-margin-top: calc(var(--header-h, 76px) + 22px);
}
body.ab .ab-news-group:last-child .ab-news-item:last-child { padding-bottom: 2px; }

/* 轴点：统一实心蓝 */
body.ab .ab-news-item::before {
  content: "";
  position: absolute;
  top: 4px;
  left: calc(-1 * var(--tl-pad) - var(--tl-dot) / 2 - 0.5px);
  width: var(--tl-dot);
  height: var(--tl-dot);
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--blue-600);
}

/* 类型 · 标题 · 摘要 · 关联 */
body.ab .ab-news-kind {
  margin: 0;
  color: var(--ab-mute);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .08em;
}
body.ab .ab-news-title {
  margin: 5px 0 0;
  color: var(--blue-900);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: .005em;
  text-wrap: pretty;
}
body.ab .ab-news-desc {
  margin: 7px 0 0;
  color: var(--ab-body);
  font-size: 14.5px;
  line-height: 1.85;
  text-wrap: pretty;
}
body.ab .ab-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  margin: 11px 0 0;
}
body.ab .ab-news-meta > * {
  color: var(--ab-mute);
  font-size: 12.5px;
  line-height: 1.6;
}

/* 新闻资讯 · 响应式 */
@media (max-width: 900px) {
  body.ab .ab-news-group { grid-template-columns: 68px minmax(0, 1fr); column-gap: 36px; }
  body.ab .ab-news-year { font-size: 22px; }
}
@media (max-width: 760px) {
  body.ab .ab-news { padding: 32px 0 32px; }
  body.ab .ab-news-tl { margin-top: 30px; }
  body.ab .ab-news-group { grid-template-columns: 1fr; column-gap: 0; }
  body.ab .ab-news-year { padding: 0 0 14px; text-align: left; font-size: 20px; }
  body.ab .ab-news-group-list { --tl-pad: 24px; }
  body.ab .ab-news-item { padding-bottom: 24px; }
  body.ab .ab-news-item::before { top: 3px; }
  body.ab .ab-news-title { font-size: 16px; line-height: 1.55; }
  body.ab .ab-news-desc { font-size: 14px; line-height: 1.8; }
  body.ab .ab-news-meta { gap: 4px 14px; }
}
@media (max-width: 640px) {
  body.ab .ab-news { padding: 26px 0 26px; }
  body.ab .ab-news-desc { font-size: 13.5px; }
  body.ab .ab-news-meta > * { font-size: 12px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  body.ab .ab-msg-quote { max-width: none; }
}
@media (max-width: 900px) {
  body.ab .ab-intro { padding: 32px 0 32px; }
  body.ab .ab-biz { padding: 26px 0 26px; }
}
@media (max-width: 640px) {
  body.ab .ap-section { padding: 26px 0; }
  body.ab .ab-crumb { padding: 16px 0; }
  body.ab .ab-intro { padding: 26px 0 26px; }
  body.ab .ab-sec-head { gap: 12px; padding-bottom: 13px; }
  body.ab .ab-sec-head h2 { font-size: 23px; }
  body.ab .ab-sec-note { font-size: 12px; letter-spacing: .04em; }
  body.ab .ab-prose { margin-top: 22px; padding-left: 20px; }
  body.ab .ab-prose p { font-size: 15.5px; line-height: 1.95; }
  body.ab .ab-prose p + p { margin-top: 16px; }
  body.ab .ab-msg-head { gap: 16px; }
  body.ab .ab-msg-head h2 { font-size: 21px; }
  body.ab .ab-msg-quote { margin-top: 20px; padding-left: 20px; }
  body.ab .ab-msg-quote blockquote { font-size: 14.5px; line-height: 1.95; }
  body.ab .ab-msg-quote blockquote p:first-child { font-size: 18.5px; line-height: 1.8; }
  body.ab .ab-msg-quote blockquote p + p { margin-top: 14px; }
  body.ab .ab-msg-quote figcaption { margin-top: 20px; padding-top: 12px; }
  body.ab .ab-msg-sign { font-size: 16px; }
  body.ab .ab-biz .ap-hm-head { flex-wrap: wrap; gap: 6px; }
  body.ab .ab-biz .ap-hm-title { margin-top: 0; font-size: 22px; }
}
@media (max-width: 640px) {
  /* 单列时无需统一宽高比：恢复自然高度，避免竖版图固有宽度撑破栅格 */
  body.ab .ab-cert .ap-cert-frame.portrait { aspect-ratio: auto; }
  body.ab .ab-cert .ap-cert-frame.portrait img {
    width: 100%;
    height: auto;
    align-self: auto;
    min-width: 0;
  }
}

/* 与首页保持一致的四联卡响应式布局 */
@media (max-width: 1080px) {
  body.ab .ab-hero { min-height: 304px; }
  body.ab .ab-cred-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ab .ab-cred-list li { padding: 14px 12px; }
  body.ab .ab-cred-list li:nth-child(3) { border-left: none; }
  body.ab .ab-cred-list li:nth-child(n+3) { border-top: 1px solid rgba(0, 0, 0, 0.08); }
}
@media (max-width: 640px) {
  body.ab .ab-head { --ab-cred-half-height: 58.5px; }
  body.ab .ab-hero { min-height: 256px; }
  body.ab .ab-cred {
    width: calc(100% - 16px);
    padding: 4px 8px;
    border-radius: 8px;
  }
  body.ab .ab-cred-list { grid-template-columns: 1fr; }
  body.ab .ab-cred-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    column-gap: 6px;
    padding: 2px 0;
    text-align: left;
  }
  body.ab .ab-cred-list li + li {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  body.ab .ab-cred-icon { display: none; }
  body.ab .ab-cred-list b { justify-content: flex-start; font-size: 12px; line-height: 22px; white-space: nowrap; }
  body.ab .ab-cred-list span { font-size: 11px; line-height: 22px; text-align: right; white-space: nowrap; }
}

/* ============================================================
   板块标题统一字号
   公司简介 / 总经理寄语 / 主营业务 / 发展历程 / 荣誉资质 /
   专利与创新 / 主要合作客户 / 新闻资讯 —— 统一字号、字重、行高
   ============================================================ */
body.ab { --ab-sec-fs: clamp(24px, 2.6vw, 32px); }
body.ab .ab-sec-head h2,
body.ab .ab-msg-head h2,
body.ab .ab-biz .ap-hm-title,
body.ab .ap-sec-head .ap-sec-title,
body.ab .ap-cl2-head .ap-cl2-title {
  font-size: var(--ab-sec-fs);
  font-weight: 600;
  line-height: 1.25;
}
