/* ==========================================================================
   关于观境 about.html · 页面专属样式
   --------------------------------------------------------------------------
   仅使用 style.css 中的设计令牌；选择器统一加 .about- 前缀（排版兜底除外）。
   ========================================================================== */

/* 0. 横幅 about-office：海景办公室，右边圆桌旁三个人是主角，左边是工位。
      桌面和平板：照片铺满，遮罩左深右透（和首页同一组渐变），取景往上提，人头顶不被页头切；
      平板把字收窄放左边，不压圆桌那三个人。手机：上图下文，字不压脸。 */
.page-hero {
  background: linear-gradient(120deg, #1E1B4B 0%, #1E1B4B 40%, #172554 100%);
}

.page-hero__bg img {
  object-position: 50% 34%;
}

.page-hero__bg::after {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, .82) 0%, rgba(15, 23, 42, .74) 30%, rgba(30, 27, 75, .44) 56%, rgba(30, 27, 75, .25) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, .1) 0%, rgba(15, 23, 42, 0) 45%, rgba(15, 23, 42, .22) 100%);
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .page-hero__title {
    max-width: 9em;
  }

  .page-hero__sub {
    max-width: 24em;
  }
}

@media (max-width: 767.98px) {
  .page-hero {
    display: block;
    min-height: 0;
  }

  .page-hero__bg {
    position: relative;
    z-index: 0;
    aspect-ratio: 16 / 10;
  }

  .page-hero__bg img {
    object-position: 50% 42%;
  }

  .page-hero__bg::after {
    background: linear-gradient(180deg, rgba(30, 27, 75, 0) 62%, rgba(30, 27, 75, .6) 100%);
  }

  .page-hero__inner {
    padding-block: 22px 34px;
  }

  .page-hero__title {
    margin-top: 12px;
  }
}

/* 1. 公司介绍：正文用正文色，不发灰；小数据标签一行放得下 */
#intro .split__body p {
  color: var(--c-text);
}

#intro .split__body strong {
  color: var(--c-title);
  font-weight: 700;
}

/* 两段介绍在桌面、平板只有 2–3 行，按「短文字不拆词」处理：词与词之间放 <wbr>，keep-all 只在 <wbr>、空格处换行。
   改这两段时，词与词之间照样补 <wbr>（标点后面放，前面不放） */
#intro .split__body p {
  word-break: keep-all;
}

.about-facts .mini-stat__label {
  white-space: nowrap;
}

/* 2. 主视频：手机上封面改 4:3，播放钮和标题错开 */
@media (max-width: 767.98px) {
  #video .video-stage {
    aspect-ratio: 4 / 3;
  }
}

/* 3. FDE 方法论：照片格和文字格交错（照 leader_06 / 首页服务优势），格子之间 1px 细线
      桌面 3 列：[照片][文][文] / [文][文][照片]；平板 2 列；手机 1 列（两张照片各领两条） */
.about-way {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--c-border);
  border: 1px solid var(--c-card-border);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 44px rgba(15, 23, 42, .07);
}

.about-way__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 30px 28px;
  background: #fff;
  transition: background-color .35s;
}

.about-way__title {
  margin-top: 18px;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-title);
}

.about-way__desc {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-desc);
}

/* 和传统外包的对比：放在最下面，灰色小字带一个叉 */
.about-way__vs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-muted);
}

.about-way__vs::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F1F3F8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M17 7 7 17M7 7l10 10'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.about-way__photo {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #DCD7FE, #CFEFFC);
}

.about-way__photo img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

/* 「按月陪跑」旁的照片（工程师和咖啡店老板看月度图表）：两个人的头在上半部，裁的时候贴上 */
.about-way__photo--last img {
  object-position: 50% 15%;
}

@media (hover: hover) {
  .about-way__item:hover {
    background: #FBFAFF;
  }

  .about-way__photo:hover img {
    transform: scale(1.05);
  }
}

/* 平板：两列，[照片][文] / [文][文] / [文][照片] */
@media (max-width: 1023.98px) {
  .about-way {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-way__item {
    padding: 28px 24px 24px;
  }
}

/* 4. 交付流程：七道闸时间线（圆圈里写 1–7，下面不再写「第 N 步」）。≥768 一律排成 4 + 3 两排，第二排居中 */
.about-steps .step__title {
  font-size: 18px;
}

.about-steps .step__desc {
  max-width: none;
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text);
}

@media (min-width: 768px) {
  .steps.about-steps {
    --about-step-gap: 24px;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 48px;
  }

  /* 每两步之间单独连一条虚线（换行后行尾不再连到下一行） */
  .steps.about-steps::before {
    display: none;
  }

  .about-steps .step {
    grid-column: span 2;
    padding: 0 8px;
  }

  .about-steps .step:nth-child(5) {
    grid-column: 2 / span 2;
  }

  .about-steps .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 26px;
    left: 50%;
    width: calc(100% + var(--about-step-gap));
    border-top: 2px dashed var(--brand-200);
  }

  .about-steps .step:nth-child(4)::after {
    display: none;
  }

  .about-steps .step__title {
    margin-top: 18px;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .steps.about-steps {
    --about-step-gap: 16px;
    column-gap: 16px;
    row-gap: 44px;
  }

  .about-steps .step {
    padding: 0 2px;
  }
}

/* 交付流程底部：中途加需求的提示卡 */
.about-callout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 920px;
  margin: 48px auto 0;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--c-card-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.about-callout__body {
  min-width: 0;
}

.about-callout__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-title);
}

.about-callout__desc {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
}

/* 5. 资质与证书：两条保障（图标在左、字在右的横排卡）+ 证书墙（竖版证书缩略图样式，内容为占位） */
.about-assure .icon-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
  align-content: start;   /* 两张卡等高时，多出来的高度不分给行，说明文字紧跟标题 */
  padding: 26px 28px;
}

.about-assure .icon-card .icon-box {
  grid-row: 1 / span 2;
}

.about-assure .icon-card__title {
  margin-top: 0;
}

.about-assure .icon-card__desc {
  margin-top: 6px;
}

.about-certs {
  margin-top: 48px;
  padding: 32px 32px 28px;
  background: #fff;
  border: 1px solid var(--c-card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.about-certs__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 28px;
}

.about-certs__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-title);
}

.about-certs__note {
  font-size: 13px;
  color: var(--c-weak);
}

.about-certs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.about-cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-cert__paper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 188px;
  aspect-ratio: 3 / 4;
  padding: 22px 18px 18px;
  background: #fff;
  border: 1px solid #E3E6EE;
  border-radius: 6px;
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .28);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

/* 证书内框 */
.about-cert__paper::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--brand-100);
  border-radius: 3px;
  pointer-events: none;
}

@media (hover: hover) {
  .about-cert:hover .about-cert__paper {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -16px rgba(79, 70, 229, .35);
  }
}

.about-cert__paper-title {
  text-wrap: balance;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .04em;
  color: var(--c-title);
}

.about-cert__lines {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

/* 左下角落款：两道短线 */
.about-cert__sign {
  position: absolute;
  left: 18px;
  bottom: 24px;
  display: grid;
  gap: 8px;
  width: 38%;
}

.about-cert__sign i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #ECEEF3;
}

.about-cert__sign i + i {
  width: 70%;
}

.about-cert__lines i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #ECEEF3;
}

.about-cert__lines i:nth-child(2) { width: 86%; }
.about-cert__lines i:nth-child(3) { width: 94%; }
.about-cert__lines i:nth-child(4) { width: 78%; }
.about-cert__lines i:nth-child(5) { width: 90%; }
.about-cert__lines i:nth-child(6) { width: 82%; }
.about-cert__lines i:nth-child(7) { width: 52%; }

.about-cert__seal {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 50px;
  height: 50px;
  color: #D7263D;
  opacity: .82;
  transform: rotate(-14deg);
}

.about-cert__name {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-title);
}

/* 6. 新闻：和首页同款竖卡，≥1392 一排 4 张（更窄的屏见下面 2×2） */
.news-grid.about-news {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 新闻摘要（11-28）：不再整句包 nowrap（会提早换行、被两行截断），改成词与词之间放 <wbr>；
   keep-all 让浏览器只在 <wbr>、空格处换行，词不会被拆开。改摘要时词与词之间照样补 <wbr> */
.about-news .news-card__desc {
  word-break: keep-all;
}

/* 新闻详情弹窗内的元信息行 */
.about-news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--c-muted);
}

.about-news-meta time {
  font-family: var(--font-num);
  font-weight: 600;
}

.about-news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ≤1391：新闻 2×2（内容区不到 1248 宽时 4 张一排太挤，标题、摘要会被截断；≥1392 才一排 4 张） */
@media (max-width: 1391.98px) {
  .news-grid.about-news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 平板与更窄屏幕 */
@media (max-width: 1023.98px) {
  .about-certs__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .about-cert__paper {
    padding: 18px 12px 14px;
  }

  .about-cert__lines {
    gap: 8px;
    margin-top: 12px;
  }

  .about-cert__sign {
    left: 12px;
    bottom: 16px;
  }

  .about-cert__seal {
    right: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
  }
}

/* 手机 390px 适配 */
@media (max-width: 767.98px) {
  .about-facts .mini-stat__label {
    font-size: 12px;
  }

  /* FDE 方法论：单列，两张照片各领两条：[照片][文][文][照片][文][文] */
  .about-way {
    grid-template-columns: minmax(0, 1fr);
    border-radius: var(--r-card);
  }

  .about-way__photo {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .about-way__photo--last {
    order: 1;
  }

  .about-way__item:nth-of-type(n + 3) {
    order: 2;
  }

  .about-way__item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 20px 18px;
  }

  .about-way__item .icon-box {
    grid-row: 1 / span 3;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .about-way__item .icon-box .i {
    width: 20px;
    height: 20px;
  }

  .about-way__title {
    margin-top: 0;
    font-size: 17px;
    line-height: 1.45;
  }

  .about-way__desc {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.65;
  }

  .about-way__vs {
    padding-top: 8px;
    font-size: 13px;
  }

  /* 资质与证书两条保障：单列，图标收小 */
  .about-assure .icon-card {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    padding: 20px;
  }

  .about-assure .icon-card .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .about-assure .icon-card .icon-box .i {
    width: 20px;
    height: 20px;
  }

  .about-assure .icon-card__title {
    font-size: 17px;
    line-height: 1.45;
  }

  .about-assure .icon-card__desc {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.65;
  }

  .about-callout {
    gap: 12px;
    padding: 18px 16px;
    margin-top: 32px;
  }

  .about-callout__title {
    font-size: 16px;
  }

  .about-callout__desc {
    font-size: 14px;
  }

  .about-certs {
    margin-top: 32px;
    padding: 22px 16px 20px;
  }

  .about-certs__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 18px;
  }

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

  .about-cert__paper {
    max-width: 150px;
  }

  .about-cert__lines i:nth-child(n + 6) {
    display: none;
  }

  .about-cert__paper-title {
    font-size: 12px;
  }

  .about-cert__name {
    margin-top: 10px;
    font-size: 14px;
  }
}
