/* ============================================================
   about-us.css - 关于我们
   Figma：指南车官网 / 关于我们  node 1700:8495
   仅本页使用，样式前缀 abu-
   ============================================================ */

/* ========== 公共 ========== */
.abu-banner,
.abu-intro,
.abu-history,
.abu-honors,
.abu-ip,
.abu-team,
.abu-contact {
  --abu-text: #57575C;
  --abu-muted: #93959D;
  --abu-red: #DA0029;
  --abu-gray: #F5F7FA;
  --abu-line: #DBDFE8;
  --abu-tag: #E9EEF3;
  /* 模块上下间距 78px，标题与内容间距 48px（移动端在断点内统一收窄） */
  --abu-section-gap: 78px;
  --abu-title-gap: 48px;
  color: var(--abu-text);
}

/* 栏目标题：左线 + 标题 + 右线（Figma 420×32，线 150×14，间距 12） */
.abu-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.abu-title img {
  width: 120px;
  height: 10px;
  display: block;
}

.abu-title h2 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: var(--abu-text);
  white-space: nowrap;
}

/* 各区块模块间距统一 78px */
.abu-history,
.abu-honors,
.abu-ip,
.abu-contact {
  padding-top: var(--abu-section-gap);
}

.abu-contact {
  padding-bottom: 96px;
}

[id^="abu-"] {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

/* 左右箭头按钮（Figma 56×56，hover 背景 #E9EEF3、圆角 4） */
.abu-nav-btn {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.abu-nav-btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.abu-nav-btn:hover:not(:disabled) {
  background: var(--abu-tag);
}

.abu-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 列表状态提示（加载中/空数据/加载失败，默认隐藏） */
.abu-status {
  padding: 32px 0;
  text-align: center;
  font-size: 16px;
  line-height: 26px;
  color: var(--abu-muted);
}

/* ============================================================
   1. Banner（Figma 1919×490）
   ============================================================ */
.abu-banner {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #1F1F1F;
}

.abu-banner-media,
.abu-banner-slide {
  position: absolute;
  inset: 0;
}

.abu-banner-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.abu-banner-slide.is-active {
  opacity: 1;
}

/* Figma 渐变：linear-gradient(90deg, rgba(31,31,31,.7) 17%, rgba(31,31,31,0) 100%) */
.abu-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(31, 31, 31, 0.7) 17%, rgba(31, 31, 31, 0) 100%);
  pointer-events: none;
}

.abu-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding-top: 214px;
  padding-bottom: 40px;
  text-align: left;
}

/* 标题：24px Medium 白色，左对齐（起点由脚本对齐 Logo 右边缘） */
.abu-banner-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  margin: 0;
  font-family: "Source Han Sans CN", "Microsoft YaHei", sans-serif;
  font-size: 24px;
  line-height: 36px;
  font-weight: 500;
  color: #FFFFFF;
  text-align: left;
}

.abu-banner-line {
  display: block;
}

.abu-banner-title i {
  width: 3px;
  height: 19px;
  background: #FFFFFF;
  display: block;
  flex: none;
}

/* 切换标签：18px Semibold，间距 196，选中白色，未选中 #93959D */
.abu-banner-tabs {
  display: flex;
  align-items: center;
  gap: 196px;
  margin-top: auto;
}

.abu-banner-tab {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--abu-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.abu-banner-tab.is-active {
  color: #FFFFFF;
}

/* ============================================================
   2. 锚点导航 + 3. 公司介绍（同一块 #F5F7FA 背景）
   ============================================================ */
.abu-intro {
  padding: 32px 0 48px;
  background: var(--abu-gray);
  border-radius: 8px 0 0 8px;
}

/* 锚点：16px，间距 88，底边框 1px #DBDFE8，选中 3px 红色下划线 */
.abu-anchor {
  position: relative;
  display: flex;
  align-items: center;
  gap: 88px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--abu-line);
}

.abu-anchor a {
  position: relative;
  font-size: 16px;
  line-height: 26px;
  color: var(--abu-text);
  text-decoration: none;
  white-space: nowrap;
}

.abu-anchor a:hover,
.abu-anchor a.is-active {
  color: var(--abu-red);
}

.abu-anchor-indicator {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 62px;
  height: 3px;
  background: var(--abu-red);
  transition: transform 0.25s ease, width 0.25s ease;
  pointer-events: none;
}

.abu-intro .abu-title {
  margin-top: 41px;
}

/* 公司介绍：左文 816 + 24 + 右图 663 */
.abu-intro-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: var(--abu-title-gap);
}

.abu-intro-text {
  order: 1;
  flex: 0 1 816px;
  max-width: 816px;
  min-width: 0;
  font-size: 16px;
  line-height: 30px;
  font-weight: 290;
  text-align: justify;
  color: var(--abu-text);
}

.abu-intro-text p {
  margin: 0;
}

.abu-intro-media {
  order: 2;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.abu-intro-media img {
  display: block;
  width: 100%;
  object-fit: cover;
  padding-bottom: 16px;
}

.abu-intro-media img:first-child {
  aspect-ratio: 590 / 400;
  /* border-radius: 8px 8px 0 0; */
}

.abu-intro-media img:last-child {
  aspect-ratio: 663 / 430;
  /* border-radius: 0 0 8px 8px; */
}

/* ============================================================
   4. 发展历程（Figma 时间轴 1505 宽、年份间距 167、内容卡 1038×315）
   ============================================================ */
.abu-timeline {
  --abu-slot: 167.2px;
  position: relative;
  margin-top: var(--abu-title-gap);
}

/* 上方内容卡：图片 542×315 + 88 + 文字 409 */
.abu-timeline-card {
  position: relative;
  width: 1038px;
  max-width: 100%;
  min-height: 315px;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 88px;
}

.abu-timeline-card-img {
  flex: 0 0 542px;
  width: 542px;
  max-width: 100%;
  height: 315px;
  object-fit: cover;
  border-radius: 4px;
}

.abu-timeline-card-text {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 78px;
}

.abu-timeline-card-text h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 30px;
  font-weight: 600;
  color: var(--abu-text);
}

.abu-timeline-card-text p {
  margin: 0;
  font-size: 16px;
  line-height: 30px;
  font-weight: 290;
  color: var(--abu-text);
}

/* 箭头：位于内容卡右侧（Figma x≈1518/1657，距卡顶 115） */
.abu-timeline-arrows {
  position: absolute;
  right: 0;
  top: 115px;
  display: flex;
  gap: 60px;
}

/* 时间轴轨道：可视区 1505，年份/圆点同步横向移动 */
/* padding-bottom 用于容纳货车超出轨道下方的车轮，避免被 overflow 裁掉 */
.abu-timeline-viewport {
  margin-top: 60px;
  padding-bottom: 9px;
  overflow: hidden;
}

.abu-timeline-track {
  display: flex;
  flex-direction: column;
  width: max-content;
  will-change: transform;
  transition: transform 0.45s ease;
}

.abu-years {
  display: flex;
}

.abu-year {
  flex: 0 0 var(--abu-slot);
  width: var(--abu-slot);
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  line-height: 26px;
  font-family: inherit;
  color: var(--abu-muted);
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.abu-year.is-past,
.abu-year.is-active {
  color: var(--abu-text);
}

.abu-bar {
  position: relative;
  width: 100%;
  height: 16px;
  margin-top: 15px;
  border-radius: 8px;
  background: var(--abu-gray);
}

.abu-bar-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 8px;
  background: var(--abu-red);
  transition: width 0.45s ease;
}

/* Figma：货车 123.56×28.5，车中心随红色进度末端移动 */
.abu-bar-truck {
  position: absolute;
  top: 50%;
  left: 0;
  width: calc(var(--abu-slot) * 0.739);
  height: calc(var(--abu-slot) * 0.1705);
  margin-top: 2px;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  user-select: none;
  transition: left 0.45s ease;
}

.abu-dots {
  position: absolute;
  inset: 0;
}

.abu-dot {
  position: absolute;
  top: 50%;
  width: 12.4px;
  height: 12.4px;
  margin-left: -6.2px;
  margin-top: -6.2px;
  border-radius: 50%;
  background: #FFFFFF;
  box-sizing: border-box;
}

.abu-dot.is-future {
  border: 1px solid var(--abu-red);
}

.abu-dot.is-active {
  background: var(--abu-red);
}

/* ============================================================
   5. 荣誉资质（每页 5 个，264×180 图 + 45 标签）
   ============================================================ */
.abu-honor-carousel,
.abu-ip-carousel {
  position: relative;
}

.abu-honor-viewport {
  margin-top: var(--abu-title-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.abu-honor-viewport::-webkit-scrollbar {
  display: none;
}

.abu-honor-track {
  --abu-per: 5;
  --abu-gap: 46px;
  display: flex;
  gap: var(--abu-gap);
}

.abu-honor-card {
  flex: 0 0 calc((100% - (var(--abu-per) - 1) * var(--abu-gap)) / var(--abu-per));
  min-width: 0;
}

.abu-honor-card img {
  display: block;
  width: 100%;
  aspect-ratio: 264 / 180;
  object-fit: cover;
  background: #FFFFFF;
}

/* Figma 补充的纸质证书为竖版，保持卡片尺寸不变，完整显示证书 */
.abu-honor-card.is-paper img {
  object-fit: contain;
}

.abu-honor-cap {
  margin-top: 8px;
  height: 45px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  line-height: 22px;
  font-weight: 300;
  color: var(--abu-text);
  background: var(--abu-tag);
}

/* 轮播底部控制条：页码 + 左右箭头 */
.abu-carousel-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.abu-page-text {
  margin-right: 8px;
  font-size: 16px;
  line-height: 26px;
  color: var(--abu-muted);
}

/* ============================================================
   6. 知识产权
   ============================================================ */
.abu-ip-viewport {
  margin-top: var(--abu-title-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.abu-ip-viewport::-webkit-scrollbar {
  display: none;
}

.abu-ip-track {
  display: flex;
}

.abu-ip-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin-right: 24px;
}

.abu-ip-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1504 / 304;
  object-fit: cover;
}

.abu-ip-desc {
  width: 789px;
  max-width: 100%;
  margin: 42px auto 0;
  font-size: 16px;
  line-height: 30px;
  font-weight: 290;
  text-align: center;
  color: var(--abu-text);
}

/* ============================================================
   7. 团队介绍（#F5F7FA，80px 上下）
   ============================================================ */
.abu-team {
  margin-top: var(--abu-section-gap);
  padding: 80px 0;
  background: var(--abu-gray);
  border-radius: 8px 0 0 8px;
}

.abu-team .abu-title {
  justify-content: center;
}

.abu-team-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
  margin-top: var(--abu-title-gap);
}

.abu-team-text {
  flex: 0 1 516px;
  max-width: 516px;
  min-width: 0;
  font-size: 16px;
  line-height: 30px;
  font-weight: 290;
  text-align: justify;
  color: var(--abu-text);
}

.abu-team-text p {
  margin: 0;
}

.abu-team-row img {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 690px;
  aspect-ratio: 690 / 294;
  object-fit: cover;
  display: block;
}

/* ============================================================
   8. 联系我们（左图 888 + 右信息卡 617）
   ============================================================ */
.abu-contact-row {
  display: flex;
  align-items: stretch;
  margin-top: var(--abu-title-gap);
}

.abu-contact-row>img {
  flex: 0 0 59%;
  width: 59%;
  aspect-ratio: 888 / 470;
  object-fit: cover;
  display: block;
}

.abu-contact-card {
  flex: 1 1 auto;
  min-width: 0;
  padding: 38px 54px 30px;
  background: var(--abu-gray);
}

.abu-contact-info {
  font-size: 16px;
  line-height: 37.76px;
  font-weight: 400;
  color: var(--abu-text);
}

.abu-contact-info p {
  margin: 0;
  white-space: pre-line;
}

.abu-contact-info strong {
  font-size: 22px;
  font-weight: 600;
}

.abu-contact-qr {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 10px;
}

.abu-contact-qr img {
  width: 127px;
  height: 127px;
  display: block;
}

.abu-contact-qr span {
  width: 153px;
  font-size: 16px;
  line-height: 27px;
  font-weight: 290;
  color: var(--abu-text);
}

/* ============================================================
   响应式：沿用站点断点 1440 / 1280 / 768 / 480
   ============================================================ */
@media (max-width: 1440px) {
  .abu-banner-tabs {
    gap: 120px;
  }

  .abu-intro-text {
    flex: 1 1 auto;
    max-width: none;
  }

  .abu-intro-media {
    flex: 0 0 42%;
  }

  .abu-team-row {
    gap: 48px;
  }

  .abu-honor-track {
    --abu-gap: 32px;
  }
}

/* 1281-1900：公司介绍文字半包围图片（图片右浮动，文字绕排左侧与下方，图片上方/右侧不留文字） */
@media (min-width: 1281px) and (max-width: 1900px) {
  .abu-intro-row {
    display: flow-root;
  }

  .abu-intro-text {
    flex: none;
    max-width: none;
  }

  .abu-intro-media {
    float: right;
    width: 42%;
    margin: 0 0 24px 32px;
    flex: none;
  }
}

@media (max-width: 1280px) {
  .abu-intro-row {
    flex-direction: column;
    gap: 32px;
  }

  .abu-intro-media {
    width: 100%;
    max-width: 663px;
    flex: none;
  }

  .abu-timeline-card {
    width: 100%;
    gap: 48px;
  }

  .abu-timeline-card-img {
    flex: 0 0 46%;
    width: 46%;
  }

  .abu-timeline-card-text {
    padding-top: 40px;
  }

  .abu-timeline-arrows {
    top: auto;
    bottom: calc(100% + 8px);
  }

  .abu-honor-track {
    --abu-gap: 24px;
  }

  .abu-team-row {
    gap: 40px;
  }

  .abu-contact-card {
    padding: 32px 32px 24px;
  }

  .abu-contact-info {
    line-height: 32px;
  }
}

/* 1025-1280：两张图片在文字下方左右排列，宽度合计与正文一致，两图高度相等（等比裁切） */
@media (min-width: 1025px) and (max-width: 1280px) {
  .abu-intro-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    max-width: none;
    flex: none;
  }

  .abu-intro-media img {
    height: 100%;
    border-radius: 8px;
  }
}

@media (max-width: 992px) {
  .abu-banner {
    height: 380px;
  }

  .abu-banner-inner {
    padding-top: 96px;
  }

  .abu-honor-track {
    --abu-per: 3;
  }

  .abu-team {
    margin-top: var(--abu-section-gap);
    padding: 56px 0;
  }

  .abu-team-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    margin-top: var(--abu-title-gap);
  }

  .abu-team-text {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .abu-team-row img {
    max-width: 100%;
  }

  .abu-contact-row {
    flex-direction: column;
  }

  .abu-contact-row>img {
    flex: none;
    width: 100%;
  }

  .abu-anchor {
    gap: 48px;
  }
}

@media (max-width: 768px) {

  /* 移动端正文内容区宽度统一为屏宽 83%（与桌面版心一致，仅本页生效） */
  main.page-main .abu-intro > .content-wrapper,
  main.page-main .abu-history > .content-wrapper,
  main.page-main .abu-honors > .content-wrapper,
  main.page-main .abu-ip > .content-wrapper,
  main.page-main .abu-team > .content-wrapper,
  main.page-main .abu-contact > .content-wrapper {
    width: 90%;
    max-width: 90%;
  }

  /* 移动端统一收窄：模块间距 48px，标题与内容间距 32px */
  .abu-intro,
  .abu-history,
  .abu-honors,
  .abu-ip,
  .abu-team,
  .abu-contact {
    --abu-section-gap: 48px;
    --abu-title-gap: 32px;
  }

  .abu-history,
  .abu-honors,
  .abu-ip,
  .abu-contact {
    padding-top: var(--abu-section-gap);
  }

  .abu-contact {
    padding-bottom: 56px;
  }

  /* 移动端 Banner：高度收紧（覆盖 banner-unified 的 521px），文字上下居中 */
  main.page-main .abu-banner.abu-banner {
    height: 300px;
  }

  .abu-banner .abu-banner-inner {
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .abu-banner-title {
    font-size: 20px;
    line-height: 30px;
    gap: 10px;
  }

  .abu-banner-tabs {
    gap: 56px;
  }

  .abu-banner-tab {
    font-size: 16px;
  }

  .abu-title img {
    width: 80px;
  }

  .abu-intro {
    padding: 24px 0 48px;
  }

  .abu-intro .abu-title {
    margin-top: 28px;
  }

  .abu-anchor {
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .abu-anchor::-webkit-scrollbar {
    display: none;
  }

  .abu-anchor a {
    font-size: 15px;
  }

  .abu-timeline-card {
    flex-direction: column;
    gap: 20px;
  }

  .abu-timeline-card-img {
    flex: none;
    width: 100%;
    height: 220px;
  }

  .abu-timeline-card-text {
    padding-top: 0;
  }

  .abu-timeline-arrows {
    bottom: calc(100% + 8px);
  }

  .abu-timeline-viewport {
    margin-top: 32px;
  }

  .abu-timeline {
    --abu-slot: 120px;
  }

  .abu-honor-track {
    --abu-per: 2;
  }

  .abu-ip-desc {
    margin-top: 24px;
  }

  /* 知识产权：整条证书图加高到与荣誉证书图等高，横向自动循环滚动 */
  .abu-ip-viewport {
    /* 高度 = 荣誉卡片图片高度（601-768px 两列：(83vw - 48 - 24) / 2 × 180 / 264） */
    height: calc((83vw - 72px) / 2 * 180 / 264);
  }

  .abu-ip-track {
    height: 100%;
  }

  .abu-ip-slide {
    flex: 0 0 auto;
    margin-right: 24px;
  }

  .abu-ip-slide img {
    width: auto;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .abu-contact-card {
    padding: 24px 20px;
  }

  .abu-contact-info {
    font-size: 15px;
    line-height: 28px;
  }

  .abu-contact-qr img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 600px) {
  /* 481-600px 两列：容器内边距 16px，高度对齐荣誉卡片图片 */
  .abu-ip-viewport {
    height: calc((83vw - 56px) / 2 * 180 / 264);
  }
}

@media (max-width: 480px) {

  /* 单列：知识产权高度对齐荣誉卡片图片 */
  .abu-ip-viewport {
    height: calc((83vw - 32px) * 180 / 264);
  }

  /* 小屏进一步收窄：模块间距 40px，标题与内容间距 24px */
  .abu-intro,
  .abu-history,
  .abu-honors,
  .abu-ip,
  .abu-team,
  .abu-contact {
    --abu-section-gap: 40px;
    --abu-title-gap: 24px;
  }

  main.page-main .abu-banner.abu-banner {
    height: 240px;
  }

  .abu-banner-title {
    font-size: 17px;
    line-height: 26px;
  }

  .abu-banner-title i {
    height: 15px;
  }

  .abu-banner-tabs {
    gap: 28px;
  }

  .abu-banner-tab {
    font-size: 15px;
  }

  .abu-title {
    gap: 8px;
  }

  .abu-title img {
    width: 56px;
    height: 12px;
  }

  .abu-title h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .abu-anchor {
    gap: 18px;
  }

  .abu-honor-track {
    --abu-per: 1;
    --abu-gap: 16px;
  }

  .abu-timeline {
    --abu-slot: 96px;
  }

  .abu-timeline-card-img {
    height: 180px;
  }

  .abu-nav-btn {
    width: 44px;
    height: 44px;
  }

  .abu-team {
    padding: 40px 0;
  }

  .abu-contact-qr {
    gap: 10px;
  }

  .abu-contact-qr span {
    width: auto;
  }
}