/* ==========================================================================
   About 平台页（技术力量 / 企业信息）公共样式

   设计规范：
   - 静态资源路径通过 {pboot:sitetplpath} 动态获取（见模板）
   - 所有卡片 / 按钮 / 容器一律直角，禁止 border-radius
   - 色彩围绕主题绿 #2e9c27，辅助色与状态色与主题协调
   ========================================================================== */

.about-page {
  --ap-primary: #2e9c27;
  --ap-primary-dark: #237d1e;
  --ap-primary-light: #f3faf2;
  --ap-tint: #cbe5be;
  --ap-ink: #161a17;
  --ap-text: #3a413c;
  --ap-muted: #788088;
  --ap-line: #e3e8ec;
  --ap-paper: #fff;

  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial,
    sans-serif;
  line-height: 1.7;
  color: var(--ap-text);
  padding-top: 84px;
}

.about-page *,
.about-page *::before,
.about-page *::after {
  box-sizing: border-box;
}

.about-container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

/* --------------------------------------------------------------------------
   1. 页面 Banner：后台幻灯图 + 白色主题标题
   -------------------------------------------------------------------------- */
.about-banner {
  position: relative;
  overflow: hidden;
  background: var(--ap-paper);
}

.about-banner__image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.about-banner__inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.about-banner__title {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------------------------
   2. 子导航条：左侧面包屑 + 右侧分类标签
   -------------------------------------------------------------------------- */
.about-subnav {
  border-top: 1px solid var(--ap-line);
  border-bottom: 1px solid var(--ap-line);
  background: var(--ap-paper);
}

.about-subnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  min-height: 64px;
}

.about-subnav__crumb {
  font-size: 13px;
  color: var(--ap-muted);
}

.about-subnav__crumb a {
  color: var(--ap-muted);
  transition: color 0.2s ease;
}

.about-subnav__crumb a:hover,
.about-subnav__crumb a:focus-visible {
  color: var(--ap-primary);
}

.about-subnav__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 0;
}

.about-subnav__link {
  display: block;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--ap-text);
  transition: color 0.2s ease, background 0.2s ease;
}

.about-subnav__link:hover,
.about-subnav__link:focus-visible {
  color: var(--ap-primary);
  background: var(--ap-primary-light);
}

.about-subnav__link.is-active {
  color: #fff;
  background: var(--ap-primary);
}

/* --------------------------------------------------------------------------
   3. 通用区块标题 + 交替底色
   -------------------------------------------------------------------------- */
.about-section {
  padding-block: clamp(48px, 7vw, 88px);
}

.about-section.is-tint {
  background: var(--ap-primary-light);
}

.about-head {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.about-head__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ap-primary);
}

.about-head__line {
  width: 48px;
  height: 2px;
  background: var(--ap-primary);
}

.about-head__title {
  margin-top: 14px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ap-ink);
}

.about-head__desc {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ap-muted);
}

/* --------------------------------------------------------------------------
   4. 引言引用块（右角、绿色左条）
   -------------------------------------------------------------------------- */
.about-quote {
  max-width: 860px;
  margin: clamp(32px, 5vw, 48px) auto 0;
  padding: 28px 32px;
  border-left: 4px solid var(--ap-primary);
  background: var(--ap-primary-light);
}

.about-quote p {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ap-primary-dark);
}

/* --------------------------------------------------------------------------
   5. 介绍段落
   -------------------------------------------------------------------------- */
.about-intro__body {
  max-width: 860px;
  margin: clamp(28px, 4vw, 42px) auto 0;
  font-size: 16px;
  line-height: 2;
  color: var(--ap-text);
}

.about-intro__body p + p {
  margin-top: 16px;
}

.about-intro__body strong {
  color: var(--ap-primary-dark);
}

/* --------------------------------------------------------------------------
   6. 能力卡片（核心技术 / 业务范围）
   -------------------------------------------------------------------------- */
.about-features {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-feature {
  padding: 32px 28px;
  border: 1px solid var(--ap-line);
  background: var(--ap-paper);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-feature:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 156, 39, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.about-feature__tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ap-primary);
}

.about-feature__title {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ap-ink);
}

.about-feature__desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ap-muted);
}

/* --------------------------------------------------------------------------
   7. 章节卡片（技术成长史 / 发展历程）
   -------------------------------------------------------------------------- */
.about-chapters {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-chapter {
  padding: 28px 26px;
  border: 1px solid var(--ap-line);
  background: var(--ap-paper);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.about-chapter:hover {
  border-color: var(--ap-primary);
  background: var(--ap-primary-light);
}

.about-chapter h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ap-ink);
}

.about-chapter p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ap-muted);
}

/* --------------------------------------------------------------------------
   8. 高亮块（如「高级研究」）
   -------------------------------------------------------------------------- */
.about-highlight {
  max-width: 860px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding: 30px 32px;
  border: 1px solid rgba(46, 156, 39, 0.35);
  background: var(--ap-paper);
}

.about-highlight h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ap-ink);
}

.about-highlight p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 2;
  color: var(--ap-text);
}

/* --------------------------------------------------------------------------
   9. 栏目正文（单页内容）
   -------------------------------------------------------------------------- */
.about-content-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 2;
  color: var(--ap-text);
}

.about-content-body > * + * {
  margin-top: 18px;
}

.about-content-body h2,
.about-content-body h3,
.about-content-body h4 {
  color: var(--ap-ink);
  font-weight: 700;
  line-height: 1.45;
}

.about-content-body h2 {
  font-size: 24px;
}

.about-content-body h3 {
  margin-top: 30px;
  padding-left: 12px;
  border-left: 4px solid var(--ap-primary);
  font-size: 20px;
}

.about-content-body h4 {
  font-size: 17px;
}

.about-content-body p {
  text-align: justify;
}

.about-content-body strong {
  color: var(--ap-primary-dark);
}

.about-content-body ul,
.about-content-body ol {
  padding-left: 22px;
}

.about-content-body ul {
  list-style: disc;
}

.about-content-body ol {
  list-style: decimal;
}

.about-content-body li + li {
  margin-top: 8px;
}

.about-content-body blockquote {
  margin: 26px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--ap-primary);
  background: var(--ap-primary-light);
  color: var(--ap-primary-dark);
  font-weight: 700;
}

.about-content-body img {
  max-width: 100%;
  height: auto;
}

.about-content-img {
  display: block;
  width: 100%;
  margin-bottom: 24px;
  border: 1px solid var(--ap-line);
}

.about-content-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.about-content-figures img {
  display: block;
  width: 100%;
  border: 1px solid var(--ap-line);
}

/* --------------------------------------------------------------------------
   10. 子页面入口卡片
   -------------------------------------------------------------------------- */
.about-entry {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.about-entry__card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 20px 18px;
  border: 1px solid var(--ap-line);
  background: var(--ap-paper);
  color: var(--ap-ink);
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.about-entry__card:hover,
.about-entry__card:focus-visible {
  border-color: var(--ap-primary);
  background: var(--ap-primary-light);
  color: var(--ap-primary-dark);
}

.about-entry__name {
  font-size: 16px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   10b. 服务项目入口卡片（客户支持）
   -------------------------------------------------------------------------- */
.service-grid {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
}

.service-grid__item {
  min-width: 0;
}

.service-grid__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
  padding: 20px 22px;
  border: 1px solid var(--ap-line);
  background: var(--ap-paper);
  color: var(--ap-ink);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.service-grid__card:hover,
.service-grid__card:focus-visible {
  border-color: var(--ap-primary);
  background: var(--ap-primary-light);
  color: var(--ap-primary-dark);
}

.service-grid__name {
  font-size: 18px;
  font-weight: 700;
}

.service-grid__arrow {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ap-line);
  color: var(--ap-primary);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-grid__arrow svg {
  width: 15px;
  height: 15px;
}

.service-grid__card:hover .service-grid__arrow,
.service-grid__card:focus-visible .service-grid__arrow {
  border-color: var(--ap-primary);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   11. 滚动入场动画（复用 [data-reveal] 机制）
   -------------------------------------------------------------------------- */
html.js .about-page [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
  transition-delay: var(--ap-delay, 0ms);
}

html.js .about-page [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.about-feature:nth-child(2) { --ap-delay: 60ms; }
.about-feature:nth-child(3) { --ap-delay: 120ms; }
.about-feature:nth-child(4) { --ap-delay: 60ms; }
.about-feature:nth-child(5) { --ap-delay: 120ms; }
.about-feature:nth-child(6) { --ap-delay: 180ms; }
.about-chapter:nth-child(2) { --ap-delay: 60ms; }
.about-chapter:nth-child(3) { --ap-delay: 120ms; }
.about-chapter:nth-child(4) { --ap-delay: 180ms; }
.about-entry__card:nth-child(2) { --ap-delay: 60ms; }
.about-entry__card:nth-child(3) { --ap-delay: 120ms; }
.about-entry__card:nth-child(4) { --ap-delay: 180ms; }
.service-grid__item:nth-child(2) { --ap-delay: 60ms; }
.service-grid__item:nth-child(3) { --ap-delay: 120ms; }

/* --------------------------------------------------------------------------
   12. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .about-chapters {
    grid-template-columns: 1fr;
  }

  .about-banner__image {
    height: 180px;
  }
}

@media (max-width: 767.98px) {
  .about-page {
    padding-top: 64px;
  }

  .about-banner__image {
    height: 140px;
  }

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

  .about-entry {
    grid-template-columns: 1fr;
  }

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

  .about-quote {
    padding: 24px 22px;
  }

  .about-content-figures {
    grid-template-columns: 1fr;
  }

  .about-subnav__inner {
    align-items: flex-start;
  }

  .about-subnav__tabs {
    width: 100%;
  }

  .about-subnav__link {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   13. 无障碍：尊重系统“减弱动态效果”设置
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html.js .about-page [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   14. 侧边导航栏（新闻 / 客户支持 / 技术力量 / 企业信息 通用）
      复刻产品中心 .pl-aside 的视觉语言：直角、主题绿、绿色选中条
   -------------------------------------------------------------------------- */
.ap-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 26px 0 70px;
}

.ap-aside {
  position: sticky;
  top: 104px;
  width: 248px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--ap-line);
  background: var(--ap-paper);
}

.ap-aside__title {
  margin: 0;
  padding: 15px 20px;
  background: var(--ap-primary);
  color: #fff;
  font-size: 17px;
  letter-spacing: 0.08em;
}

.ap-aside__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.ap-aside__link {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  padding: 13px 16px;
  color: #4a5259;
  font-size: 14.5px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

/* 左侧选中指示条：向内缩进并垂直居中，避免与标题左缘连成一片 */
.ap-aside__link::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 3px;
  height: 18px;
  transform: translateY(-50%);
  background: transparent;
  transition: background-color 0.25s ease;
}

.ap-aside__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-aside__arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.ap-aside__link:hover,
.ap-aside__link:focus-visible {
  background: var(--ap-primary);
  color: #fff;
}

.ap-aside__link:hover::before,
.ap-aside__link:focus-visible::before {
  background: var(--ap-primary-dark);
}

.ap-aside__link:hover .ap-aside__arrow,
.ap-aside__link:focus-visible .ap-aside__arrow {
  transform: translateX(3px);
}

.ap-aside__link.is-active {
  background: var(--ap-primary-light);
  color: var(--ap-primary);
  font-weight: 600;
}

.ap-aside__link.is-active::before {
  background: var(--ap-primary);
}

.ap-main {
  flex: 1;
  min-width: 0;
}

/* 侧边栏存在时，正文区不再水平居中，改为贴左铺满 */
.ap-main .about-content-body {
  max-width: none;
  margin: 0;
}

/* 新闻列表网格放置在侧边栏主区内，缩小顶部留白 */
.ap-main .news-list__grid,
.ap-main .news-detail__card,
.ap-main .news-detail__nav,
.ap-main .news-detail__back,
.ap-main .news-detail__related {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* --------------------------------------------------------------------------
   15. 响应式：窄屏时侧边栏折叠为顶部两列横向导航
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .ap-layout {
    flex-direction: column;
    margin: 22px 0 54px;
  }

  .ap-aside {
    position: static;
    width: 100%;
  }

  .ap-aside__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-aside__link {
    min-height: 46px;
    padding: 12px 14px;
  }
}

@media (max-width: 767.98px) {
  .ap-aside__nav {
    grid-template-columns: minmax(0, 1fr);
  }
}
