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

.gm-company-history {
	width: 100%;
	min-height: 909px;
	background: linear-gradient(180deg, #f9f9f8 0%, #d0e4ff 100%);
	padding: 55px 0 0;
	box-sizing: border-box;
	overflow: hidden;
	position: relative;
}

/* 装饰性背景图：绝对定位于 section 内 */
.gm-company-history__bg {
	position: absolute;
	left: var(--gm-side-pad, 39px);
	top: 178px;
	width: calc( 100% - var(--gm-side-pad, 39px) * 2 );
	height: 660px;
	pointer-events: none;
	z-index: 0;
}

.gm-company-history__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gm-company-history__inner {
	max-width: var(--gm-max-width, 1280px);
	margin: 0 auto;
	padding: 0 var(--gm-side-pad, 39px);
	position: relative;
	z-index: 1;
}

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

/* ── 时间线容器 ── */
.gm-company-history__timeline {
	position: relative;
	width: 100%;
	min-height: 739px;
	display: flex;
	align-items: flex-end;
}

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

/* ── 时间线轨道（节点列表） ── */
.gm-company-history__nodes {
	position: relative;
	width: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding-bottom: 2px;
}

/* ── 单个节点 ── */
.gm-company-history__node {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* 竖线：高度由 PHP inline style 注入 */
.gm-company-history__node-line {
	width: 2px;
	background: #054fbd;
	margin-left: 0;
}

/* 节点内容块 */
.gm-company-history__node-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding-bottom: 16px;
}

/* 年份：Anton 48px #054fbd */
.gm-company-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 */
.gm-company-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 */
.gm-company-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: 768px ) and ( max-width: 1279px ) {
	.gm-company-history {
		padding: 56px 0 40px;
	}
	.gm-company-history__timeline {
		min-height: auto;
	}
	.gm-company-history__baseline {
		display: none;
	}
	.gm-company-history__nodes {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding-bottom: 0;
		border-left: 2px solid #054fbd;
	}
	.gm-company-history__node {
		flex-direction: row;
		align-items: flex-start;
		gap: 24px;
		padding-bottom: 40px;
	}
	.gm-company-history__node-line {
		width: 24px;
		height: 2px !important;
		min-height: 2px !important;
		align-self: center;
		flex-shrink: 0;
		margin-left: -2px;
	}
	.gm-company-history__node-inner {
		padding-bottom: 0;
	}
	.gm-company-history__title {
		font-size: 36px;
	}
	.gm-company-history__node-year {
		font-size: 36px;
	}
}

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

/* ── 标题防主题覆盖（客户站 heading 字号/颜色会被覆盖） ── */
.gm-company-history__title { font-size: 48px !important; color: #012f73 !important; font-weight: 400 !important; }
@media ( min-width: 768px ) and ( max-width: 1279px ) {
	.gm-company-history__title { font-size: 36px !important; }
}
@media ( max-width: 767px ) {
	.gm-company-history__title { font-size: 30px !important; }
}
