/* ═══════════════════════════════════════════════════════════════
   创始人时间线 – Founder Timeline Widget
   ═══════════════════════════════════════════════════════════════ */

.hbc-ftl-wrap {
	background-color: #f8f8f8;
	padding: 50px 20px;
	width: 100%;
	box-sizing: border-box;
}

.hbc-ftl-inner {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.hbc-ftl-timeline {
	position: relative;
}

/* ── 节点区域 ────────────────────────────────────────────────── */

.hbc-ftl-nodes {
	display: flex;
	justify-content: space-between;
	position: relative;
	z-index: 2;
}

.hbc-ftl-node {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* ── 轨道线（仅从第一个到最后一个节点中心） ───────────────────── */

.hbc-ftl-track-wrap {
	position: absolute;
	top: 24px;
	height: 2px;
	z-index: 1;
	/* JS 会动态计算 left 和 width */
	left: 0;
	right: 0;
}

.hbc-ftl-track {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #e0e0e0;
	border-radius: 1px;
}

.hbc-ftl-progress {
	position: absolute;
	top: 0;
	left: 0;
	height: 2px;
	width: 0;
	background-color: #2563eb;
	border-radius: 1px;
}

/* 不再使用 CSS animation，完全由 JS requestAnimationFrame 控制 */

/* ── 图标圆圈 ────────────────────────────────────────────────── */

.hbc-ftl-icon {
	width: var(--hbc-ftl-icon-size, 48px);
	height: var(--hbc-ftl-icon-size, 48px);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #c8a86b;
	color: #c8a86b;
	font-size: var(--hbc-ftl-icon-font, 18px);
	background: #ffffff;
	margin-bottom: 12px;
	position: relative;
	z-index: 3;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hbc-ftl-icon i,
.hbc-ftl-icon svg {
	font-size: var(--hbc-ftl-icon-font, 18px);
	width: var(--hbc-ftl-icon-font, 18px);
	height: var(--hbc-ftl-icon-font, 18px);
	color: #c8a86b;
	fill: #c8a86b;
	transition: color 0.3s ease, fill 0.3s ease;
}

.hbc-ftl-icon svg path {
	fill: #c8a86b;
	transition: fill 0.3s ease;
}

/* ── 点亮状态 ────────────────────────────────────────────────── */

.hbc-ftl-node.is-lit .hbc-ftl-icon {
	background-color: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
	transform: scale(1.1);
}

.hbc-ftl-node.is-lit .hbc-ftl-icon i,
.hbc-ftl-node.is-lit .hbc-ftl-icon svg {
	color: #ffffff;
	fill: #ffffff;
}

.hbc-ftl-node.is-lit .hbc-ftl-icon svg path {
	fill: #ffffff;
}

/* ── 年份 & 描述 ─────────────────────────────────────────────── */

.hbc-ftl-text-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hbc-ftl-year {
	font-size: 16px;
	font-weight: 700;
	color: #222222;
	margin-bottom: 4px;
}

.hbc-ftl-label {
	font-size: 12px;
	color: #888888;
	max-width: 140px;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: center;
}

/* ── 响应式：手机端竖向布局，左线右内容 ─────────────────────── */

@media (max-width: 768px) {
	.hbc-ftl-timeline {
		position: relative;
	}

	.hbc-ftl-timeline::before,
	.hbc-ftl-timeline::after {
		display: none;
	}

	.hbc-ftl-nodes {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding-left: 0;
		position: relative;
		z-index: 3;
	}

	.hbc-ftl-node {
		flex-direction: row;
		align-items: center;
		text-align: left;
		padding: 0 0 48px 0;
		position: relative;
		padding-left: 0;
		margin-left: 0;
	}

	.hbc-ftl-node:last-child {
		padding-bottom: 0;
	}

	/* 用图标的 ::after 来画连接线，自动居中 */
	.hbc-ftl-node .hbc-ftl-icon {
		margin-bottom: 0;
		margin-right: 20px;
		flex-shrink: 0;
		position: relative;
		z-index: 3;
	}

	.hbc-ftl-node .hbc-ftl-icon::after {
		content: '';
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		width: 3px;
		height: 48px;
		background-color: #e0e0e0;
		z-index: 1;
	}

	.hbc-ftl-node:last-child .hbc-ftl-icon::after {
		display: none;
	}

	.hbc-ftl-node.is-lit .hbc-ftl-icon::after {
		background-color: #2563eb;
	}

	/* 右侧文字 */
	.hbc-ftl-text-wrap {
		align-items: flex-start !important;
		padding-top: 4px;
	}

	.hbc-ftl-node .hbc-ftl-year {
		margin-bottom: 2px;
		font-size: 20px;
	}

	.hbc-ftl-label {
		white-space: normal;
		max-width: none;
		font-size: 14px;
		text-align: left;
	}

	/* 隐藏横向轨道线 */
	.hbc-ftl-track-wrap {
		display: none;
	}
}
