/* 年份字号变量 (客户要求: 圆圈位置跟随字号, 任意屏幕尺寸都对齐) */
:root { --hty: 56px; }

/* ============================================================
   发展历程 (page-history) — 设计稿 762:7842, 1920 基准
   顶部banner + 中轴时间轴 (2026→2022 左右交替卡片)
   ============================================================ */

/* ---------- 顶部导航: 透明底白字, 滚动后白底深字 (同 page-about) ---------- */
body.page-history .site-header { background: transparent; }
body.page-history .site-header .navbar > li > a { color: #fff; }
body.page-history .site-header .navbar > li.active > a { color: #2168E5; }
body.page-history .site-header .navbar > li > a:hover { color: rgba(255, 255, 255, .75); }
body.page-history .site-header .vr-pill { border-color: rgba(255, 255, 255, .6); color: #fff; }
body.page-history .site-header:not(.is-scrolled):not(.dd-open) .icon-btn img { filter: brightness(0) invert(1); }
body.page-history .site-header:not(.is-scrolled):not(.dd-open) .nav-toggle span { background: #fff; }
body.page-history .site-header.is-scrolled,
body.page-history .site-header.dd-open { background: #fff; box-shadow: inset 0 -1px 0 0 #EBEBEB; }
body.page-history .site-header.is-scrolled .navbar > li > a,
body.page-history .site-header.dd-open .navbar > li > a { color: #2E3033; }
body.page-history .site-header.is-scrolled .navbar > li.active > a,
body.page-history .site-header.dd-open .navbar > li.active > a { color: #2168E5; }
body.page-history .site-header.is-scrolled .navbar > li > a:hover,
body.page-history .site-header.dd-open .navbar > li > a:hover { color: #2168E5; }
/* 滚动/下拉白底时 vr-pill 变深色 (否则白字白框在白底不可见) */
body.page-history .site-header.is-scrolled .vr-pill,
body.page-history .site-header.dd-open .vr-pill {
  border-color: #5C6066;
  color: #2E3033;
}

/* ============================================================
   区块1: banner (1920×480: 图片 + 深色遮罩 + 标题)
   ============================================================ */
.ht-banner {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #3D3D3D;
}
.ht-banner-img,
.ht-banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ht-banner-mask {
  position: absolute;
  inset: 0;
  background: rgba(12, 29, 58, .2);
}
.ht-banner-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ht-banner-title {
  font-size: 48px;
  font-weight: 749;
  line-height: 72px;
  color: #fff;
  text-align: center;
}

/* ============================================================
   区块2: 时间轴 (#F0F2F7, 中轴 + 左右交替卡片)
   ============================================================ */
.ht-timeline {
  position: relative;
  background: #F0F2F7;
  padding: 48px 0 72px;
  overflow: hidden;
}
/* 英文水印图 (设计稿 DREAM SOURCE HISTORY, 导出图已含淡出效果;
   右侧固定, 1920 下与设计稿坐标一致且任意宽度不溢出) */
.ht-watermark {
  position: absolute;
  left: auto;
  right: 72px;
  top: 100px;
  z-index: 0;
  display: block;
  width: 820px;
  height: auto;
  pointer-events: none;
}
.ht-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 47px;          /* 让中轴延伸到 查看更多 上方 */
}
/* 中轴: 灰色全高 + 顶部蓝色进度段 (初始 330px, 随滚动经 JS 延伸至整条中轴) */
.ht-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(138, 143, 153, .3);
}
.ht-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 330px;                  /* 固定长度段: 状态切换时整段下滑, 不上一位留存 */
  background: #2168E5;
  transition: top .5s var(--ease);
}
/* 蓝线跟随激活状态: 固定 330px 段移动到激活年份节点
   (--h1..--hN 由 JS 测量各节点到中轴顶距离; top = 激活节点 - 首节点) */
.ht-inner:has(.ht-item:nth-of-type(2).is-active) .ht-line::before { top: calc(var(--h2, 472px) - var(--h1, 152px)); }
.ht-inner:has(.ht-item:nth-of-type(3).is-active) .ht-line::before { top: calc(var(--h3, 792px) - var(--h1, 152px)); }
.ht-inner:has(.ht-item:nth-of-type(4).is-active) .ht-line::before { top: calc(var(--h4, 1112px) - var(--h1, 152px)); }
.ht-inner:has(.ht-item:nth-of-type(5).is-active) .ht-line::before { top: calc(var(--h5, 1432px) - var(--h1, 152px)); }
.ht-inner:has(.ht-item:nth-of-type(6).is-active) .ht-line::before { top: calc(var(--h6, 1752px) - var(--h1, 152px)); }
.ht-inner:has(.ht-item:nth-of-type(7).is-active) .ht-line::before { top: calc(var(--h7, 2072px) - var(--h1, 152px)); }
.ht-inner:has(.ht-item:nth-of-type(8).is-active) .ht-line::before { top: calc(var(--h8, 2392px) - var(--h1, 152px)); }
.ht-inner:has(.ht-item:nth-of-type(9).is-active) .ht-line::before { top: calc(var(--h9, 2712px) - var(--h1, 152px)); }
.ht-inner:has(.ht-item:nth-of-type(10).is-active) .ht-line::before { top: calc(var(--h10, 3032px) - var(--h1, 152px)); }
.ht-inner:has(.ht-item:nth-of-type(11).is-active) .ht-line::before { top: calc(var(--h11, 3352px) - var(--h1, 152px)); }
.ht-inner:has(.ht-item:nth-of-type(12).is-active) .ht-line::before { top: calc(var(--h12, 3672px) - var(--h1, 152px)); }
.ht-inner:has(.ht-item:nth-of-type(13).is-active) .ht-line::before { top: calc(var(--h13, 3992px) - var(--h1, 152px)); }
.ht-inner:has(.ht-item:nth-of-type(14).is-active) .ht-line::before { top: calc(var(--h14, 4312px) - var(--h1, 152px)); }
.ht-inner:has(.ht-item:nth-of-type(15).is-active) .ht-line::before { top: calc(var(--h15, 4632px) - var(--h1, 152px)); }
/* 折叠年份: 默认隐藏, 点击「查看更多」后逐批展开 */
.ht-item.is-folded { display: none; }
/* 时间项: 左右各占一半, 卡片顶距 320px (负 margin 交错重叠) */
.ht-item {
  position: relative;
  width: 50%;
}
.ht-item:nth-of-type(1) {
    padding-top: 120px;
}
.ht-item:nth-of-type(1) .ht-node {
    top: calc(120px + var(--hty) * .658 - 15px);   /* 首项 padding-top 120 + 字号跟随 */
}
.ht-item:nth-of-type(2) { margin-top: -96px; }
.ht-item:nth-of-type(3) { margin-top: -60px; }
.ht-item:nth-of-type(4) { margin-top: -52px; }
.ht-item:nth-of-type(5) { margin-top: -52px; }
.ht-item:nth-of-type(6) { margin-top: -96px; }
.ht-item:nth-of-type(n+7) { margin-top: -24px; }
.ht-item--left { padding: 0 51px 0 47px; }   /* 客户要求: 左侧左移 12px (59 → 47) */
.ht-item--right { margin-left: 50%; padding: 0 59px 0 51px; }
/* 节点: 压在中轴上 (激活态蓝色, 其余灰) */
.ht-node {
  position: absolute;
  top: calc(var(--hty) * .658 - 15px);   /* 客户要求: 圆心跟随年份字号自适对齐, 任意屏幕尺寸都准 */
  width: 30px;                      /* 客户要求: 圆圈 40 → 30 */
  height: 30px;
  border-radius: 50%;
  background: rgba(96, 108, 128, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .35s var(--ease);
}
.ht-node::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #525A66;
  transition: background .35s var(--ease);
}
.ht-item--left .ht-node { right: -15px; }    /* 客户要求: 30px 圆心仍在中轴 */
.ht-item--right .ht-node { left: -15px; }    /* 客户要求: 30px 圆心仍在中轴 */
.ht-item.is-active .ht-node { background: #2168E5; }
.ht-item.is-active .ht-node::after { background: #fff; }
/* 卡片 + 年份 */
.ht-body {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.ht-card {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 430px;
}
.ht-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 430 / 300;
  object-fit: cover;
  border-radius: 12px;
}
/* 折叠年份占位图: 灰色底 + 年份数字 (替换为真实图片后删除) */
.ht-card-img--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #E9EDF4 0%, #DCE3EE 100%);
  color: #A6AFC0;
  font-family: var(--font-num);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -2px;
}
/* 展开动画 */
.ht-item.is-enter {
  animation: htItemIn .6s var(--ease) both;
}
@keyframes htItemIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ht-desc {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.ht-desc li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-size: 16px;
  font-weight: 513;
  line-height: 28px;
  color: #2E3033;
}
.ht-desc li + li { margin-top: 8px; }
.ht-desc li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-radius: 50%;
  background: #B4BDCC;
}
.ht-year {
  flex: none;
  width: 140px;
  font-family: var(--font-num);
  font-size: var(--hty);
  font-weight: 500;
  line-height: 64px;
  letter-spacing: -2.8px;
  color: #363F4D;
  transition: color .35s var(--ease);
}
.ht-item.is-active .ht-year {
  font-weight: 600;
  color: #2168E5;
}
/* 查看更多 */
.ht-more {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 57px;
}
.ht-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 29px;
    font-size: 14px;
    font-weight: 489;
    color: #393C40;
    transition: background .3s var(--ease), color .3s var(--ease);
    border: 1px solid #676C73;
    border-radius: 18px;
}
.ht-more-btn:hover {
    background: #2168E5;
    color: #fff;
    border: 1px solid #2168E5;
}

/* ============================================================
   响应式
   ============================================================ */
/* 大屏收窄: 水印缩小, banner 略降 */
@media (max-width: 1440px) {
  .ht-banner { height: 440px; }
  .ht-watermark { width: 640px; }
}
/* 平板: 卡片/年份/间距收窄 */
@media (max-width: 1100px) {
  .ht-banner { height: 400px; }
  .ht-banner-title { font-size: 36px; line-height: 56px; }
  .ht-watermark { width: 480px; right: 32px; }
  .ht-timeline { padding: 24px 0 60px; }
  .ht-item--left { padding: 0 36px 0 20px; }    /* 客户要求: 左移 12px (32 → 20) */
  .ht-item--right { padding: 0 32px 0 36px; }
  .ht-body { gap: 24px; }
  :root { --hty: 44px; }
  .ht-year { width: 110px; font-size: var(--hty); line-height: 52px; letter-spacing: -2px; }
  .ht-more { margin-top: 48px; }
}
/* 小平板: 进一步收窄, 卡片不至于过小 */
@media (max-width: 900px) {
  .ht-banner { height: 360px; }
  .ht-banner-title { font-size: 30px; line-height: 46px; }
  .ht-item--left { padding: 0 24px 0 8px; }     /* 客户要求: 左移 12px (20 → 8) */
  .ht-item--right { padding: 0 20px 0 24px; }
  .ht-body { gap: 16px; }
  :root { --hty: 36px; }
  .ht-year { width: 88px; font-size: var(--hty); line-height: 44px; letter-spacing: -1.5px; }
  .ht-desc li { font-size: 16px; line-height: 28px; }   /* 客户要求: 16px */
  .ht-desc li::before { margin-top: 9px; }
  .ht-card-img--ph { font-size: 40px; }
}
/* 移动端: 单列堆叠, 中轴移左, 节点与中轴对齐, 年份统一置顶 */
@media (max-width: 767px) {
  .ht-banner { height: 320px; }
  .ht-banner-title { font-size: 26px; line-height: 40px; padding: 0 20px; }
  .ht-timeline { padding: 24px 0 56px; }
  .ht-watermark { display: none; }
  .ht-inner { padding-bottom: 32px; }
  .ht-line { left: 24px; }
  .ht-line::before { height: 120px; }
  .ht-item,
  .ht-item--left,
  .ht-item--right {
    width: 100%;
    margin-left: 0;
    padding: 0 0 0 24px;   /* 客户要求: 左移 12px (36 → 24) */
  }
  .ht-item:nth-of-type(1) { padding-top: 0; margin-top: 0; }   /* 首个年号不再额外下推 28px */
  .ht-item:nth-of-type(1) .ht-node { top: calc(var(--hty) * .658 - 15px); }   /* 移动端首项无 padding-top */
  .ht-item:nth-of-type(n+2) { margin-top: 44px; }   /* 客户要求: 48 → 44 */
  .ht-body { flex-direction: column; gap: 12px; }
  .ht-card { max-width: none; width: 100%; }
  :root { --hty: 40px; }
  .ht-year { order: -1; width: auto; font-size: var(--hty); line-height: 48px; letter-spacing: -2px; }
  .ht-node { left: -15px; right: auto; top: calc(var(--hty) * .658 - 15px); }
  .ht-desc { margin-top: 12px; }
  .ht-desc li { font-size: 16px; line-height: 28px; }
  .ht-desc li::before { margin-top: 8px; }
  .ht-more { margin-top: 32px; }
  .ht-card-img--ph { font-size: 32px; }
}
/* 小屏手机: 紧凑收尾 */
@media (max-width: 400px) {
  .ht-banner { height: 280px; }
  .ht-banner-title { font-size: 22px; line-height: 34px; padding: 0 16px; }
  .ht-timeline { padding: 16px 0 48px; }   /* 客户要求: 顶部空隙收紧 (原 32px) */
  .ht-item,
  .ht-item--left,
  .ht-item--right { padding-left: 24px; }   /* 客户要求: 左移 12px (36 → 24) */
  :root { --hty: 34px; }
  .ht-year { font-size: var(--hty); line-height: 42px; letter-spacing: -1.5px; }
  .ht-desc li { font-size: 16px; line-height: 28px; }
  .ht-card-img--ph { font-size: 28px; }
}
