/* =========================================
   Timeline 時間軸
   ========================================= */



/* 時間軸容器 */
.timeline-container {
	max-width: 1200px;
	margin: 80px auto;
	position: relative;
	z-index: 1;
}

/* 中央主軸線 */
.timeline-container::before {
	content: '';
	position: absolute;
	left: 50%;
	top: -20px;
	bottom: -20px;
	width: 4px;
	background: linear-gradient(180deg,
			transparent 0%,
			rgba(0, 217, 255, .8) 10%,
			rgba(100, 147, 250, .9) 50%,
			rgba(0, 217, 255, .8) 90%,
			transparent 100%);
	transform: translateX(-50%);
	box-shadow:
		0 0 20px rgba(0, 217, 255, .6),
		0 0 40px rgba(0, 217, 255, .4),
		0 0 60px rgba(100, 147, 250, .3);
	z-index: 0;
}

/* 時間軸項目 */
.timeline-item {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 50px;
	margin-bottom: 80px;
	align-items: center;
	position: relative;
	z-index: 1;
}

.timeline-item::before,
.timeline-item::after {
	content: '';
	display: block;
}

/* 奇數項目：左側內容 */
.timeline-item:nth-child(odd) {
	grid-template-areas: "content year empty";
}

.timeline-item:nth-child(odd) .timeline-content {
	grid-area: content;
	text-align: right;
}

.timeline-item:nth-child(odd) .timeline-year {
	grid-area: year;
}

.timeline-item:nth-child(odd)::after {
	grid-area: empty;
}

/* 偶數項目：右側內容 */
.timeline-item:nth-child(even) {
	grid-template-areas: "empty year content";
}

.timeline-item:nth-child(even) .timeline-content {
	grid-area: content;
	text-align: left;
}

.timeline-item:nth-child(even) .timeline-year {
	grid-area: year;
}

.timeline-item:nth-child(even)::before {
	grid-area: empty;
}

/* 年份標籤 */
.timeline-year {
	position: relative;
	font-size: 22px;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(135deg,
			rgba(0, 217, 255, .15) 0%,
			rgba(100, 147, 250, .08) 100%);
	padding: 12px 20px;
	border-radius: 30px;
	border: 2px solid rgba(0, 217, 255, .6);
	width: max-content;
	min-width: 120px;
	text-align: center;
	z-index: 2;
	backdrop-filter: blur(10px);
	box-shadow:
		0 0 20px rgba(0, 217, 255, .3),
		0 0 40px rgba(0, 217, 255, .15),
		inset 0 0 15px rgba(0, 217, 255, .08);
	transition: all .3s ease;
	text-shadow: 0 0 8px rgba(0, 217, 255, .5);
	margin: 0 auto;
}

.timeline-year:hover {
	transform: scale(1.05);
	box-shadow:
		0 0 30px rgba(0, 217, 255, .5),
		0 0 60px rgba(0, 217, 255, .25),
		inset 0 0 20px rgba(0, 217, 255, .15);
	border-color: var(--c-cyan);
}

/* 年份連接線 */
.timeline-year::before {
	content: '';
	position: absolute;
	top: 50%;
	width: 50px;
	height: 2px;
	background: linear-gradient(90deg, rgba(0, 217, 255, .6), transparent);
	transform: translateY(-50%);
	box-shadow: 0 0 8px rgba(0, 217, 255, .4);
	z-index: -1;
}

.timeline-item:nth-child(odd) .timeline-year::before {
	right: 100%;
	left: auto;
}

.timeline-item:nth-child(even) .timeline-year::before {
	left: 100%;
	right: auto;
}

/* 內容卡片 */
.timeline-content {
	position: relative;
	background: rgba(255, 255, 255, .08);
	padding: 28px;
	border: 1px solid rgba(0, 217, 255, .35);
	border-radius: 16px;
	backdrop-filter: blur(12px) saturate(120%);
	box-shadow:
		0 10px 28px rgba(0, 0, 0, .28),
		0 0 18px rgba(0, 217, 255, .45);
	transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	z-index: 3;
}

.timeline-content:hover {
	transform: translateY(-5px);
	border-color: rgba(0, 217, 255, .6);
	background: rgba(255, 255, 255, .12);
	box-shadow:
		0 16px 38px rgba(0, 0, 0, .35),
		0 0 28px rgba(0, 217, 255, .6);
}


/* 內容文字 */
.timeline-content h3 {
	color: #ffffff;
	margin-bottom: 10px;
	font-size: 22px;
	font-weight: 700;
	text-shadow: 0 0 10px rgba(0, 217, 255, .4);
	transition: color .3s;
	position: relative;
	z-index: 1;
}

.timeline-content:hover h3 {
	color: var(--c-cyan);
	text-shadow: 0 0 15px rgba(0, 217, 255, .6);
}

.timeline-content .company {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--c-cyan);
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 14px;
	padding: 4px 12px;
	background: rgba(0, 217, 255, .1);
	border-radius: 20px;
	border: 1px solid rgba(0, 217, 255, .3);
	position: relative;
	z-index: 1;
	transition: all .3s ease;
}

.timeline-content .company::before {
	content: '📍';
	font-size: 14px;
}

.timeline-content:hover .company {
	background: rgba(0, 217, 255, .15);
	border-color: rgba(0, 217, 255, .5);
}

.timeline-content p,
.timeline-content ul {
	color: rgba(230, 241, 255, .9);
	line-height: 1.8;
	font-size: 15px;
	margin: 0;
	position: relative;
	z-index: 1;
}

.timeline-content ul {
	margin-top: 12px;
	padding-left: 20px;
}

.timeline-content ul li {
	margin-bottom: 8px;
}

.timeline-content ul li::marker {
	color: var(--c-cyan);
}

/* RWD：平板 */
@media (max-width: 1024px) {
	.timeline-item {
		gap: 40px;
		margin-bottom: 70px;
	}

	.timeline-year {
		font-size: 20px;
		padding: 11px 18px;
		min-width: 110px;
	}

	.timeline-content {
		padding: 24px;
	}

	.timeline-content h3 {
		font-size: 20px;
	}

	.timeline-content .company {
		font-size: 14px;
	}

	.timeline-content p,
	.timeline-content ul {
		font-size: 14px;
		line-height: 1.7;
	}
}

/* RWD：手機版 */
@media (max-width: 768px) {
	#timeline {
		padding: 80px 5% 60px;
	}

	.timeline-container {
		margin: 60px auto;
	}

	.timeline-container::before {
		left: 60px;
	}

	.timeline-container::after {
		left: 60px;
		width: 6px;
	}

	.timeline-item {
		grid-template-columns: auto 1fr !important;
		grid-template-areas: "year content" !important;
		gap: 18px;
		margin-bottom: 50px;
	}

	.timeline-item::before,
	.timeline-item::after {
		display: none;
	}

	.timeline-year {
		grid-area: year !important;
		font-size: 18px;
		padding: 10px 14px;
		margin: 0;
		min-width: 95px;
	}

	.timeline-year::before {
		display: none;
	}

	.timeline-content {
		grid-area: content !important;
		text-align: left !important;
		padding: 20px;
	}

	.timeline-content h3 {
		font-size: 18px;
		margin-bottom: 8px;
	}

	.timeline-content .company {
		font-size: 13px;
		padding: 3px 10px;
		margin-bottom: 12px;
	}

	.timeline-content .company::before {
		font-size: 12px;
	}

	.timeline-content p,
	.timeline-content ul {
		font-size: 14px;
		line-height: 1.7;
	}

	.timeline-content ul {
		margin-top: 10px;
		padding-left: 18px;
	}

	.timeline-content ul li {
		margin-bottom: 6px;
	}
}

/* RWD：小手機 */
@media (max-width: 480px) {
	#timeline {
		padding: 70px 4% 50px;
	}

	.timeline-container {
		margin: 50px auto;
	}

	.timeline-container::before {
		left: 50px;
	}

	.timeline-container::after {
		left: 50px;
		height: 60px;
	}

	.timeline-item {
		gap: 15px;
		margin-bottom: 45px;
	}

	.timeline-year {
		font-size: 16px;
		padding: 8px 12px;
		min-width: 85px;
		border-width: 1.5px;
	}

	.timeline-content {
		padding: 16px;
		border-radius: 12px;
	}

	.timeline-content h3 {
		font-size: 16px;
		margin-bottom: 6px;
	}

	.timeline-content .company {
		font-size: 12px;
		padding: 3px 8px;
		margin-bottom: 10px;
		gap: 6px;
	}

	.timeline-content .company::before {
		font-size: 11px;
	}

	.timeline-content p,
	.timeline-content ul {
		font-size: 13px;
		line-height: 1.65;
	}

	.timeline-content ul {
		margin-top: 8px;
		padding-left: 16px;
	}

	.timeline-content ul li {
		margin-bottom: 5px;
	}
}

/* RWD：極小螢幕 */
@media (max-width: 375px) {
	#timeline {
		padding: 60px 3% 40px;
	}

	.timeline-container {
		margin: 40px auto;
	}

	.timeline-container::before,
	.timeline-container::after {
		left: 45px;
	}

	.timeline-item {
		gap: 12px;
		margin-bottom: 40px;
	}

	.timeline-year {
		font-size: 15px;
		padding: 7px 10px;
		min-width: 75px;
	}

	.timeline-content {
		padding: 14px;
	}

	.timeline-content h3 {
		font-size: 15px;
	}

	.timeline-content .company {
		font-size: 11px;
	}

	.timeline-content p,
	.timeline-content ul {
		font-size: 12px;
		line-height: 1.6;
	}
}