/* ============================================================
   About History — Section 03（Company History 时间线）
   Figma 746:1060 区域
   背景渐变 #f9f9f8 → #d0e4ff（竖向），min-height 909px
   标题左对齐，时间线 6 个节点，节点高度错落，底部基线横贯全宽
   设计基准 1280px
   ============================================================ */

.sparta-about-history {
	width: 100%;
	/* Figma: 909px 高 */
	min-height: 909px;
	/* 渐变底色 */
	background: linear-gradient(180deg, #f9f9f8 0%, #d0e4ff 100%);
	padding: 55px 0 0;
	box-sizing: border-box;
	overflow: hidden;
	position: relative;
}

/* 装饰性背景地图图片：绝对定位于 section 内，Figma: left 39px, top 178px, 1202×660px */
/* 用 <img> 标签（非 background-image）还原 Figma 的实现方式 */
.sparta-about-history__bg {
	position: absolute;
	left: 39px;
	top: 178px;
	width: calc( 100% - 78px );
	height: 660px;
	pointer-events: none;
	z-index: 0;
}

.sparta-about-history__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 1; /* 图片本身已带透明/低饱和效果；如需降低可改为 0.7 */
}

.sparta-about-history__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 39px;
	position: relative;
	z-index: 1;
}

/* ── 左对齐标题 ── */
.sparta-about-history__title {
	font-family: 'Anton', sans-serif;
	font-size: 48px;
	font-weight: 400;
	line-height: 60px;
	color: #012f73;
	margin: 0 0 60px;
}

/* ── 时间线容器 ── */
/* Figma: 标题 top 55px + 标题高 60px + 间距 = inner 从 ~178px 开始 */
/* 节点内容 + 竖线总高度 = ~750px（最高节点 531px 线 + ~220px 内容） */
/* section min-height 909px - padding-top 55px - 标题区 ~115px = ~739px */
.sparta-about-history__timeline {
	position: relative;
	width: 100%;
	min-height: 739px;
	display: flex;
	align-items: flex-end;
}

/* 基线：横向细线，贯穿全宽，在节点底部 */
.sparta-about-history__baseline {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: #054fbd;
}

/* ── 时间线轨道（节点列表） ── */
.sparta-about-history__nodes {
	position: relative;
	width: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	/* padding-bottom 为基线高度，节点坐于基线上 */
	padding-bottom: 2px;
}

/* ── 单个节点 ── */
.sparta-about-history__node {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	/* 节点竖线高度由 CSS 变量 --node-height 或 data-height 控制 */
	/* 通过 inline style 在 PHP 中注入 --line-h */
}

/* 竖线：从基线向上延伸，高度由 PHP 注入的 CSS 变量控制 */
.sparta-about-history__node-line {
	width: 2px;
	background: #054fbd;
	margin-left: 0;
	/* 高度动态，在 PHP 的 style 属性里注入 */
}

/* 节点内容块：绝对定位到竖线底部，向上排列 */
/* 实际上我们让内容在竖线上方，通过 flex-direction: column-reverse 实现 */
.sparta-about-history__node-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding-bottom: 16px;
}

/* 年份：Anton 48px #054fbd */
.sparta-about-history__node-year {
	font-family: 'Anton', sans-serif;
	font-size: 48px;
	font-weight: 400;
	line-height: 1;
	color: #054fbd;
	margin: 0;
	white-space: nowrap;
}

/* 小标题：Montserrat Bold 20px #053b8c */
.sparta-about-history__node-subtitle {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 25px;
	color: #053b8c;
	margin: 0;
	max-width: 170px;
}

/* 描述：Montserrat Medium 16px #012f73 */
.sparta-about-history__node-desc {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 25px;
	color: #012f73;
	margin: 0;
	max-width: 170px;
}

/* ── 响应式 ── */
@media ( min-width: 1800px ) {
	.sparta-about-history__inner {
		max-width: 1600px;
	}
	.sparta-about-history__bg {
		left: 60px;
		width: calc( 100% - 120px );
		height: 780px;
	}
	.sparta-about-history__title {
		font-size: 56px;
	}
	.sparta-about-history__node-year {
		font-size: 56px;
	}
}

/* 平板：时间线改为竖向排列 */
@media ( min-width: 768px ) and ( max-width: 1279px ) {
	.sparta-about-history {
		padding: 56px 0 0;
	}
	.sparta-about-history__timeline {
		min-height: auto;
	}
	.sparta-about-history__baseline {
		display: none;
	}
	.sparta-about-history__nodes {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding-bottom: 0;
		border-left: 2px solid #054fbd;
		padding-left: 0;
	}
	.sparta-about-history__node {
		flex-direction: row;
		align-items: flex-start;
		gap: 24px;
		padding-bottom: 40px;
	}
	.sparta-about-history__node-line {
		width: 24px;
		height: 2px !important;
		min-height: 2px !important;
		align-self: center;
		flex-shrink: 0;
		margin-left: -2px;
	}
	.sparta-about-history__node-inner {
		padding-bottom: 0;
	}
	.sparta-about-history__title {
		font-size: 36px;
	}
	.sparta-about-history__node-year {
		font-size: 36px;
	}
}

/* 手机：竖向排列 */
@media ( max-width: 767px ) {
	.sparta-about-history {
		padding: 48px 0 48px;
	}
	.sparta-about-history__inner {
		padding: 0 16px;
	}
	.sparta-about-history__timeline {
		min-height: auto;
	}
	.sparta-about-history__baseline {
		display: none;
	}
	.sparta-about-history__nodes {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding-bottom: 0;
		border-left: 2px solid #054fbd;
	}
	.sparta-about-history__node {
		flex-direction: row;
		align-items: flex-start;
		gap: 16px;
		padding-bottom: 32px;
	}
	.sparta-about-history__node-line {
		width: 16px;
		height: 2px !important;
		min-height: 2px !important;
		align-self: center;
		flex-shrink: 0;
		margin-left: -2px;
	}
	.sparta-about-history__node-inner {
		padding-bottom: 0;
	}
	.sparta-about-history__title {
		font-size: 30px;
		margin-bottom: 32px;
	}
	.sparta-about-history__node-year {
		font-size: 32px;
	}
	.sparta-about-history__node-subtitle {
		font-size: 16px;
		max-width: 100%;
	}
	.sparta-about-history__node-desc {
		font-size: 14px;
		max-width: 100%;
	}
}
