/* ===== css/software.css
   模块组成：software.css + software-banner.css
   ===== */
.software-hero-copy{max-width:820px}
.software-hero-copy>p.software-hero-kicker{line-height:32px;color:var(--color-brand);margin:0 0 24px}
.software-hero-copy>p:not(.software-hero-kicker){max-width:769px;line-height:27px;color:#d9dedd;margin-top:22px}
.software-chapters{position:relative}
.software-timeline{position:absolute;left:50%;top:0;bottom:0;width:1px;background:#d9dedd40}
.software-timeline::before{content:'';position:absolute;inset:0 -1px;background-image:radial-gradient(circle,#d9dedd 1.5px,transparent 1.5px);background-size:3px 20px;background-repeat:repeat-y;background-position:center top}
.software-timeline-progress{position:absolute;inset:0;width:1px;background:var(--color-brand);clip-path:inset(0 0 100%);opacity:.8}
.software-timeline-cursor{position:absolute;top:0;left:-5px;width:11px;height:11px;background:var(--color-brand);opacity:0;transition:opacity 400ms}
.software-chapter{min-height:800px;position:relative;--chapter-line:#d9dedd70}
.software-chapter-inner{min-height:800px;display:grid;grid-template-columns:1fr 1fr;column-gap:10%;align-items:start;padding-block:112px}
.software-value{max-width:640px;padding-top:3px}
.software-kicker{line-height:28px;color:var(--color-brand);font-weight:700;margin-bottom:20px}
.software-value h2{line-height:1.55;font-weight:700;margin:0 0 20px;overflow-wrap:normal}
.software-value>p:last-child{line-height:1.55;color:#d9dedd;max-width:620px}
.software-card-wrap{position:relative;min-width:0;width:100%;max-width:720px;justify-self:end}
.software-card{background:#181b1d;border:1px solid var(--chapter-line);transition:border-color 500ms var(--ease-nav)}
.software-card-header{display:flex;align-items:center;gap:24px;min-height:90px;padding:16px 26px;border-bottom:1px solid var(--chapter-line)}
.software-card-number{display:grid;place-items:center;width:52px;height:52px;flex:none;border:1px solid var(--chapter-line);color:var(--color-brand);font-family:Arial,sans-serif;font-weight:700;line-height:32px}
.software-card-header h3{line-height:1.45;font-weight:700}
.software-card-visual{position:relative;min-height:380px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:40px 32px 24px}
.software-diagram{position:relative;max-width:100%;width:var(--diagram-width);aspect-ratio:var(--diagram-ratio);isolation:isolate}
.software-diagram img{display:block;max-width:100%;height:auto}
.software-card-footer{display:flex;align-items:center;gap:22px;min-height:100px;padding:24px 34px;border-top:1px solid var(--chapter-line)}
.software-card-footer strong{font-family:Arial,sans-serif;font-weight:700;line-height:56px;color:var(--color-brand)}
.software-card-footer>span{line-height:28px;color:#d9dedd}
.software-reversed .software-value{grid-column:2;grid-row:1;justify-self:end}
.software-reversed .software-card-wrap{grid-column:1;grid-row:1;justify-self:start}
.software-chapter.is-active{--chapter-line:#d9dedd}
@media(max-width:1599px){.software-value h2{line-height:1.5}.software-value>p:last-child{line-height:1.6}.software-card-header h3{}.software-card-visual{min-height:320px}.software-chapter,.software-chapter-inner{min-height:736px}.software-card-footer>span{}}
@media(max-width:1199px){.software-chapter-inner{column-gap:8%;padding-block:96px}.software-value h2{line-height:48px}.software-value>p:last-child{line-height:28px}.software-card-header{padding:16px;gap:16px;min-height:80px}.software-card-number{width:40px;height:40px;}.software-card-header h3{}.software-card-visual{min-height:280px;padding:32px 24px}.software-card-footer{padding:24px;gap:16px;min-height:88px;flex-wrap:wrap}.software-card-footer strong{line-height:40px}.software-card-footer>span{line-height:24px}}
@media(max-width:767px){.software-hero>.container{padding-block:184px 64px}.software-hero-copy>p.software-hero-kicker{line-height:24px;margin-bottom:16px}.software-hero-copy>p:not(.software-hero-kicker){line-height:28px;margin-top:24px}.software-chapters{padding-left:16px}.software-timeline{left:16px}.software-chapter,.software-chapter-inner{min-height:0}.software-chapter-inner{display:flex;flex-direction:column;gap:40px;padding-block:64px}.software-chapter-inner.container{width:calc(100% - 48px);margin-left:24px;margin-right:24px}.software-value h2{line-height:48px}.software-value{padding:0}.software-kicker{line-height:24px;margin-bottom:16px}.software-value>p:last-child{line-height:28px}.software-card-wrap{max-width:none}.software-card-header{padding:16px;gap:16px}.software-card-header h3{line-height:32px}.software-card-visual{min-height:240px;padding:24px 16px}.software-card-footer{padding:16px;gap:16px}.software-card-footer strong{}.software-card-footer>span{line-height:24px}.software-card-visual .software-diagram{max-width:100%}.software-hero .inner-breadcrumb{top:104px}}

/* Preserve source diagrams; whole groups move through a sequential folding handoff. */
.software-card-visual-inner{display:flex;align-items:center;justify-content:center;width:100%;min-width:0}
.software-timeline{position:sticky;top:calc(var(--header-height) + (100svh - var(--header-height) - 320px)/2);bottom:auto;height:320px;width:2px;margin-bottom:-320px;background:none;z-index:2;pointer-events:none}
.software-timeline::before{display:block;inset:0;width:2px;background:repeating-linear-gradient(to bottom,#d9dedd80 0 2px,transparent 2px 12px);mask-image:linear-gradient(transparent,#000 16% 84%,transparent)}
.software-timeline-progress{background:repeating-linear-gradient(to bottom,var(--color-brand) 0 2px,transparent 2px 12px);width:2px;clip-path:inset(0 0 calc(100% - 7px - (100% - 14px)*var(--timeline-progress,0)) 0)}
/* 光标上限 --timeline-cursor-max 由非钉住模式的 JS 写入：章节下沿把轨道裁掉后，
   光标跟着贴到可见末端，不会先于轨道消失。默认值就是轨道自身的可用高度。 */
.software-timeline-cursor{top:min(calc((100% - 14px)*var(--timeline-progress,0)),var(--timeline-cursor-max,calc(100% - 14px)));left:-6px;width:14px;height:14px;opacity:1}
.software-chapters.is-pinned{height:var(--sequence-height);padding:0}
.is-pinned .software-stage{height:var(--stage-height);position:sticky;top:var(--header-height);isolation:isolate;overflow:hidden;--software-visual-height:clamp(240px,calc(var(--stage-height) - 272px),380px)}
.is-pinned .software-timeline{position:absolute;left:50%;top:50%;margin:0;transform:translateY(-50%)}
.is-pinned .software-chapter{position:absolute;inset:0;height:100%;min-height:0}
.is-pinned .software-chapter:not(.is-visible){visibility:hidden;pointer-events:none}
.is-pinned .software-chapter-inner{height:100%;min-height:0;align-items:center;padding-block:32px}
.is-pinned .software-value{opacity:var(--copy-opacity,1)}
.is-pinned .software-card-wrap{opacity:var(--card-opacity,1)}
.is-pinned .software-card-visual{min-height:0;height:calc(var(--fold,1)*var(--software-visual-height));padding:0;display:block}
.is-pinned .software-card-visual-inner{height:var(--software-visual-height);padding:24px 32px;box-sizing:border-box}
.is-pinned .software-card-footer{min-height:88px}
.is-pinned .software-card-visual .software-diagram{max-height:100%}
.is-pinned .software-card-visual .software-diagram img{max-height:100%;object-fit:contain}
@media(max-width:767px){.software-timeline{height:240px;margin-bottom:-240px;top:calc(var(--header-height) + (100svh - var(--header-height) - 240px)/2)}}
/* 非钉住模式（移动端 / 平板 / 矮视口）：进度轨道用 sticky 跟随视口，配合负 margin-bottom 不占位，
   结果是它停在容器下沿时仍有 240px 高度画到章节外面（压到下一个板块）。
   用 overflow:clip 在章节容器边缘裁掉溢出部分；clip 不生成滚动容器，sticky 照常生效。 */
.software-chapters:not(.is-pinned){overflow:clip}

/* Approved photographic banner; independent from the existing chapter animation. */
.software-hero .inner-hero-image{object-position:center}
.software-hero-copy>p:not(.software-hero-kicker){text-align:justify;text-align-last:left;text-justify:inter-ideograph}
.software-hero .inner-hero-shade{background:linear-gradient(90deg,rgba(13,20,26,.18),rgba(13,20,26,.12))}
@media(max-width:1023px){.software-hero .inner-hero-shade{background:linear-gradient(90deg,rgba(13,20,26,.82),rgba(13,20,26,.4))}}
@media(max-width:767px){.software-hero .inner-hero-image{object-position:65% center}.software-hero .inner-hero-shade{background:rgba(13,20,26,.76)}}
