/* =====================================================
   信用中国 · 关于我们页专属样式（css/pages/about.css）
   -----------------------------------------------------
   组织约定：
   1. 整站公共样式见 /static/website/css/styles.css（base.html 全局引入）；
   2. 本文件只放「关于我们」页独有板块：
      单位介绍(about__*) / 大事记横向时间轴(timeline__*) / 客户Logo墙(clients__*)
   3. 样式来源：html效果图/styles.css（权威母本），响应式断点与母本一致。
===================================================== */

/* ---------- 单位介绍（左引言印章块 + 右正文） ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--red-50) 0%, var(--paper-2) 100%);
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.about__visual::before {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid var(--red-200);
  border-radius: var(--r);
}
.about__quote {
  padding: 2rem;
  text-align: center;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: 0.05em;
  z-index: 2;
}
.about__quote .seal-mini {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  background: var(--red-500);
  color: #fff;
  font-size: 1.25rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 0.6rem;
}
.about__source {
  margin-top: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  color: var(--muted);
}
/* 正文排版类 .about__body / .about__heading / .about__text 及联系信息卡片
   .about__grid / .about__feat* 已上移至公共 styles.css（联系我们等页也使用），
   本文件不再重复定义。 */

/* =====================================================
   大事记 — 横向时间轴（timeline__*）
   节点圆圈在轴线上；年份紧贴轴线；事件描述在年份外侧
   ===================================================== */
.timeline {
  position: relative;
  padding: 1.5rem 0 2rem;
}
.timeline__track {
  position: relative;
  width: 100%;
  padding: 0 2rem;
}
.timeline__track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 4%, var(--line) 96%, transparent);
}
.timeline__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 0;
  position: relative;
  height: 13rem;
}
.timeline__item {
  position: relative;
  height: 100%;
}
/* 圆点精确压在轴线上 */
.timeline__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--red-500);
  z-index: 2;
  transition: transform 200ms;
}
.timeline__dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--red-500);
  transform: scale(0);
  transition: transform 200ms;
}
.timeline__item:hover .timeline__dot::after { transform: scale(1); }
.timeline__item:hover .timeline__dot { transform: translate(-50%, -50%) scale(1.2); }
.timeline__dot--end { background: var(--red-500); }
/* 年份: 小字贴近轴线, 与轴线保留一点留白 */
.timeline__year {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red-500);
  letter-spacing: 0.05em;
  line-height: 1;
}
/* 上方组(odd): 事件描述在轴上方外层, 年份在其下方贴近轴线 */
.timeline__item:nth-child(odd) .timeline__year {
  bottom: calc(50% + 0.8rem);
}
.timeline__item:nth-child(odd) .timeline__text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(50% + 2.4rem);
}
/* 下方组(even): 与上方对称 */
.timeline__item:nth-child(even) .timeline__year {
  top: calc(50% + 0.8rem);
}
.timeline__item:nth-child(even) .timeline__text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(50% + 2.4rem);
}
/* 事件描述: 通屏后按列自适应, 宽度约两列, 超出自动换行, 至多两行, 短文字单行 */
.timeline__text {
  width: min(12rem, calc(200% - 3rem));
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.timeline__item:hover .timeline__year { color: var(--red-600, var(--red-500)); }
.timeline__item:hover .timeline__text { color: var(--ink); }

@media (max-width: 900px) {
  .timeline { padding: 1.5rem 0; }
  .timeline__track { padding: 0 0.75rem; }
  .timeline__list { height: 12rem; }
  .timeline__year { font-size: 0.7rem; }
  .timeline__text {
    font-size: 0.85rem;
    width: min(12rem, calc(300% - 1rem));
  }
  .timeline__item:nth-child(odd) .timeline__text { bottom: calc(50% + 2.2rem); }
  .timeline__item:nth-child(even) .timeline__text { top: calc(50% + 2.2rem); }
  .about { grid-template-columns: 1fr; gap: 2rem; }
}

/* =====================================================
   合作客户 Logo 墙（clients__*）
   4 列网格，移动端(900px)自动降为 2 列
   ===================================================== */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.client-logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: default;
  min-height: 110px;
}
.client-logo:nth-child(4n) { border-right: none; }
.client-logo:nth-last-child(-n+4) { border-bottom: none; }
.client-logo svg,
.client-logo img {
  width: 100%;
  max-width: 180px;
  height: 50px;
  display: block;
  object-fit: contain;
}
.client-logo:hover {
  background: #fff;
  z-index: 1;
}
.client-logo img,
.client-logo svg {
  transition: transform 520ms var(--ease-out-quart);
}
.client-logo:hover img,
.client-logo:hover svg {
  transform: scale(1.07);
}
.client-logo__name {
  display: none;
}

@media (max-width: 900px) {
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .client-logo:nth-child(4n) { border-right: 1px solid var(--line); }
  .client-logo:nth-child(2n) { border-right: none; }
  .client-logo:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .client-logo:nth-last-child(-n+2) { border-bottom: none; }
}
