.main-about-history { --ah-sticky-top: calc(var(--header-h) + 5rem); background: var(--color-white); min-height: 10vh; } .ah-page { padding-top: var(--ah-sticky-top); padding-bottom: 7.5rem; padding-left: 18.75rem; padding-right: 18.75rem; } .ah-layout { display: grid; grid-template-columns: max-content 2px minmax(0, 1fr); gap: 5rem; /* 80px:年份 / 轨道 / 内容 */ align-items: start; } .ah-nav__years { position: sticky; width: 12.5rem; top: var(--ah-sticky-top); display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; } .ah-nav__item { position: relative; display: block; color: var(--color-text-link); font-family: "D-DIN-PRO"; font-size: var(--font-24); font-weight: 400; line-height: var(--font-24); text-decoration: none; transition: color 0.25s ease, font-size 0.25s ease, font-weight 0.25s ease; } .ah-nav__item:hover { color: var(--color-text-muted); } .ah-nav__item.is-active { color: var(--color-text); font-size: var(--font-64); font-weight: 500; line-height: 1; } .ah-nav__rail { position: sticky; top: var(--ah-sticky-top); align-self: start; width: 2px; background: rgba(46, 53, 58, 0.1); border-radius: 1px; } /* 轨道原点:始终固定在顶部 */ .ah-nav__rail::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: 0; z-index: 2; width: .75rem; height: .75rem; border-radius: 50%; background: var(--color-primary); } /* 红线:从原点向下变长,不位移 */ .ah-nav__indicator { position: absolute; left: 50%; top: 0; width: 2px; height: 0; margin-left: -1px; background: var(--color-primary); border-radius: 1px; transform: none; transition: height 0.3s ease; } .ah-content { min-width: 0; } .ah-block + .ah-block { margin-top: 4.5rem; padding-top: 1rem; } .ah-block { scroll-margin-top: calc(var(--ah-sticky-top) + 1rem); } .ah-richtext { color: #666; font-family: "MiSans VF", "PingFang SC", sans-serif; font-size: var(--font-18); font-weight: 400; line-height: var(--font-32); } .ah-richtext p{ width: 100%!important; } .ah-richtext > *:first-child { margin-top: 0; } .ah-richtext > *:last-child { margin-bottom: 0; } .ah-richtext h1, .ah-richtext h2, .ah-richtext h3, .ah-richtext h4, .ah-richtext strong { color: var(--color-text); font-weight: 600; } .ah-richtext h1, .ah-richtext h2, .ah-richtext h3, .ah-richtext h4 { margin: 2rem 0 1rem; font-size: var(--font-20); line-height: var(--font-32); } .ah-richtext h1:first-child, .ah-richtext h2:first-child, .ah-richtext h3:first-child, .ah-richtext h4:first-child { margin-top: 0; } .ah-richtext p { margin: 0 0 0.75rem; } .ah-richtext ul, .ah-richtext ol { margin: 0 0 1.5rem; padding-left: 1.25rem; } .ah-richtext li + li { margin-top: 0.75rem; } .ah-richtext li::marker { color: #999; } .ah-richtext a { color: var(--color-primary); text-decoration: underline; } .ah-richtext img { max-width: 100%!important; height: auto!important; vertical-align: middle!important; } @media (max-width: 992px) { .main-about-history { --ah-years-h: 3.75rem; /* 移动端年份导航固定高度 */ } .ah-page { padding-top: calc(var(--header-h, 5.5rem) + 2rem); padding-bottom: 4rem; padding-left: var(--p-x); padding-right: var(--p-x); } .ah-layout { grid-template-columns: 1fr; gap: 2rem; } .ah-nav__years { position: sticky; top: var(--header-h, 5.5rem); z-index: 5; box-sizing: border-box; width: 100%; height: var(--ah-years-h); min-height: var(--ah-years-h); max-height: var(--ah-years-h); flex-direction: row; align-items: center; gap: 1.25rem; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 var(--p-x); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); } .ah-nav__years::-webkit-scrollbar { display: none; } .ah-nav__item { flex: 0 0 auto; font-size: var(--font-18); line-height: 1; transform: scale(1); transform-origin: center center; transition: color 0.25s ease, transform 0.25s ease; } .ah-nav__item.is-active { color: var(--color-text); font-size: var(--font-18); font-weight: 500; line-height: 1; transform: scale(1.45); transform-origin: center; } .ah-nav__rail { display: none; } /* 移动端:头部 + 固定年份导航,单独偏移 */ .ah-block { scroll-margin-top: calc(var(--header-h, 5.5rem) + var(--ah-years-h) + 0.75rem); } .ah-block + .ah-block { margin-top: 3rem; } }