@charset "utf-8";

/* ========== 发展历程 · 纵向时间轴 ========== */
.history-section {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 40px rgba(28, 73, 142, .08);
	overflow: hidden;
	padding: 48px 40px 56px;
}

.history-head {
	padding-bottom: 40px;
	position: relative;
}
.history-head::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 120px;
	height: 3px;
	background: linear-gradient(90deg, var(--primary), var(--secondary));
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}
.history-section.in-view .history-head::after {
	transform: scaleX(1);
}
.history-title-en {
	font-size: 42px;
	font-weight: 800;
	line-height: 1.1;
	margin: 0;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(28, 73, 142, .4);
	text-stroke: 1.5px rgba(28, 73, 142, .4);
	font-family: Arial, Helvetica, sans-serif;
	text-transform: lowercase;
	opacity: 0;
	transform: translateY(20px);
	transition: all .8s cubic-bezier(.22, 1, .36, 1);
}
.history-section.in-view .history-title-en {
	opacity: 1;
	transform: translateY(0);
}
.history-title-cn {
	font-size: 22px;
	color: var(--secondary);
	font-weight: 700;
	margin: 8px 0 0;
	opacity: 0;
	transform: translateY(16px);
	transition: all .8s cubic-bezier(.22, 1, .36, 1) .15s;
}
.history-section.in-view .history-title-cn {
	opacity: 1;
	transform: translateY(0);
}

/* 时间轴容器 */
.tl-wrap {
	position: relative;
	padding: 20px 0 0;
}

/* 中央竖线 */
.tl-line {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 4px;
	transform: translateX(-50%);
	background: linear-gradient(180deg, rgba(28, 73, 142, .08), rgba(28, 73, 142, .15), rgba(28, 73, 142, .08));
	border-radius: 2px;
	z-index: 0;
	overflow: hidden;
}
.tl-line-progress {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	background: linear-gradient(180deg, var(--primary), var(--secondary));
	border-radius: 2px;
	transition: height .2s ease-out;
	box-shadow: 0 0 12px rgba(211, 38, 41, .35);
}

.tl-list {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* 单项：三栏网格 左 | 轴 | 右 */
.tl-item {
	display: grid;
	grid-template-columns: 1fr 64px 1fr;
	gap: 32px;
	align-items: center;
	padding: 0 0 56px;
	opacity: 0;
	transform: translateY(40px);
	transition: opacity .75s cubic-bezier(.22, 1, .36, 1), transform .75s cubic-bezier(.22, 1, .36, 1);
}
.tl-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.tl-item:last-child {
	padding-bottom: 0;
}

.tl-item--left .tl-card { grid-column: 1; }
.tl-item--left .tl-axis { grid-column: 2; }
.tl-item--left .tl-spacer { display: none; }

.tl-item--right .tl-spacer { grid-column: 1; }
.tl-item--right .tl-axis { grid-column: 2; }
.tl-item--right .tl-card { grid-column: 3; }

/* 入场方向 */
.tl-item--left .tl-card {
	transform: translateX(-30px);
	opacity: 0;
	transition: transform .7s cubic-bezier(.22, 1, .36, 1) .15s, opacity .7s ease .15s, box-shadow .4s ease;
}
.tl-item--right .tl-card {
	transform: translateX(30px);
	opacity: 0;
	transition: transform .7s cubic-bezier(.22, 1, .36, 1) .15s, opacity .7s ease .15s, box-shadow .4s ease;
}
.tl-item.is-visible .tl-card {
	transform: translateX(0);
	opacity: 1;
}

/* 轴心节点 */
.tl-axis {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
}
.tl-dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 4px solid var(--primary);
	box-shadow: 0 0 0 4px rgba(211, 38, 41, .12), 0 4px 16px rgba(211, 38, 41, .25);
	transform: scale(0);
	transition: transform .5s cubic-bezier(.22, 1, .36, 1) .05s;
}
.tl-item.is-visible .tl-dot {
	transform: scale(1);
}
.tl-item.is-visible .tl-dot {
	animation: tlDotGlow 2.5s ease-in-out infinite 1s;
}
@keyframes tlDotGlow {
	0%, 100% { box-shadow: 0 0 0 4px rgba(211, 38, 41, .12), 0 4px 16px rgba(211, 38, 41, .25); }
	50% { box-shadow: 0 0 0 8px rgba(211, 38, 41, .08), 0 4px 24px rgba(211, 38, 41, .4); }
}

.tl-year-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 20px;
	white-space: nowrap;
	box-shadow: 0 4px 16px rgba(28, 73, 142, .3);
	transition: transform .5s cubic-bezier(.22, 1, .36, 1) .2s;
	z-index: 3;
	pointer-events: none;
}
.tl-item.is-visible .tl-year-badge {
	transform: translate(-50%, -50%) scale(1);
}

/* 卡片 */
.tl-card {
	background: #fff;
	border-radius: 12px;
	border: 1px solid rgba(28, 73, 142, .08);
	box-shadow: 0 4px 24px rgba(28, 73, 142, .06);
	overflow: hidden;
	transition: box-shadow .4s ease, transform .4s ease;
}
.tl-card:hover {
	box-shadow: 0 12px 40px rgba(28, 73, 142, .14);
	transform: translateY(-4px) !important;
}
.tl-card-inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}
.tl-card-media {
	flex: 0 0 42%;
	position: relative;
	overflow: hidden;
	min-height: 160px;
}
.tl-card-media img {
	width: 100%;
	height: 100%;
	display: block;
	transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.tl-card:hover .tl-card-media img {
	transform: scale(1.06);
}
.tl-card-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(28, 73, 142, .2), transparent 60%);
	opacity: 0;
	transition: opacity .4s ease;
}
.tl-card:hover .tl-card-media::after {
	opacity: 1;
}
.tl-card-year {
	position: absolute;
	bottom: 12px;
	left: 12px;
	font-size: 26px;
	font-weight: 800;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
	line-height: 1;
	letter-spacing: 1px;
}
.tl-card-body {
	flex: 1;
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.tl-desc-cn {
	font-size: 16px;
	line-height: 1.75;
	color: var(--text);
	font-weight: 600;
	margin: 0 0 10px;
}
.tl-desc-en {
	font-size: 13px;
	line-height: 1.65;
	color: var(--text-light);
	margin: 0;
	word-break: keep-all;
}
.tl-card-index {
	display: inline-block;
	font-size: 12px;
	color: var(--primary);
	font-weight: 700;
	letter-spacing: 2px;
	margin-bottom: 8px;
	opacity: .7;
}

/* ========== 响应式 ========== */
@media (max-width: 991px) {
	.history-section {
		padding: 36px 24px 44px;
	}
	.history-title-en {
		font-size: 32px;
	}
	.tl-item {
		grid-template-columns: 48px 1fr;
		gap: 20px;
		padding-bottom: 40px;
	}
	.tl-item--left .tl-card,
	.tl-item--right .tl-card {
		grid-column: 2;
		grid-row: 1;
	}
	.tl-item--left .tl-axis,
	.tl-item--right .tl-axis {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
		padding-top: 24px;
	}
	.tl-item--left .tl-spacer,
	.tl-item--right .tl-spacer {
		display: none;
	}
	.tl-line {
		left: 24px;
		transform: none;
	}
	.tl-year-badge {
		display: none;
	}
	.tl-card-inner {
		flex-direction: column;
	}
	.tl-card-media {
		flex: none;
		min-height: 180px;
	}
}

@media (max-width: 767px) {
	.history-section {
		padding: 28px 16px 36px;
		border-radius: 12px;
	}
	.history-title-en {
		font-size: 26px;
	}
	.tl-line {
		left: 15px;
	}
	.tl-item {
		grid-template-columns: 32px 1fr;
		gap: 16px;
		padding-bottom: 32px;
	}
	.tl-dot {
		width: 14px;
		height: 14px;
		border-width: 3px;
	}
	.tl-card-body {
		padding: 18px 20px;
	}
	.tl-card-year {
		font-size: 22px;
	}
	.tl-desc-cn {
		font-size: 15px;
	}
}
