/* --- Banner --- */

.mes-subsidy-banner {
	overflow: hidden;
}

.mes-subsidy-banner::before {
	background:
		radial-gradient(ellipse at 20% 30%, rgba(3, 215, 244, 0.25) 0%, transparent 55%),
		radial-gradient(ellipse at 80% 70%, rgba(233, 51, 128, 0.25) 0%, transparent 55%),
		linear-gradient(135deg, rgba(11, 22, 60, 0.68) 0%, rgba(63, 29, 177, 0.58) 55%, rgba(11, 22, 60, 0.72) 100%);
}

.mes-subsidy-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	background-size: 3rem 3rem;
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
	pointer-events: none;
}

.mes-subsidy-banner .container-fluid {
	position: relative;
	z-index: 1;
}

.mes-subsidy-banner h1 {
	text-shadow:
		0 0.125rem 0.375rem rgba(0, 0, 0, 0.55),
		0 0.5rem 1.25rem rgba(0, 0, 0, 0.45);
}

/* --- 引言 --- */

.mes-intro-section {
	padding: 6rem 0;
}

.mes-intro {
	position: relative;
	max-width: 56rem;
	margin: 0 auto;
}

.mes-intro-support {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin: 0;
	padding: 0.75rem 0;
	font-size: 1rem;
	line-height: 1.85;
	color: var(--color-text);
}

.mes-intro-support > i.bi {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: linear-gradient(135deg, rgba(163, 230, 168, 0.55) 0%, rgba(94, 200, 138, 0.35) 100%);
	color: #2f8f3a;
	border-radius: 50%;
	font-size: 1.125rem;
}

.mes-intro-support > span {
	padding-top: 0.35rem;
}

.mes-intro-highlight {
	position: relative;
	margin: 1.5rem 0;
	padding: 2rem 2.5rem;
	background: linear-gradient(135deg, rgba(3, 215, 244, 0.08) 0%, rgba(63, 29, 177, 0.08) 100%);
}

.mes-intro-highlight::before,
.mes-intro-highlight::after {
	position: absolute;
	font-size: 4rem;
	font-weight: 700;
	line-height: 1;
	color: rgba(63, 29, 177, 0.2);
}

.mes-intro-highlight::before {
	content: "\201C";
	top: 0.25rem;
	left: 0.75rem;
}

.mes-intro-highlight::after {
	content: "\201D";
	bottom: -0.5rem;
	right: 0.75rem;
}

.mes-intro-highlight > p {
	margin: 0;
	font-size: clamp(1.125rem, 1.8vw, 1.375rem);
	line-height: 1.85;
	font-weight: 600;
	color: var(--color-main);
}

/* --- 痛點 --- */

.pain-section {
	padding: 5rem 0;
	background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}

.pain-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	height: 100%;
	background: #fce7e7;
	box-shadow: 0 0.375rem 1rem rgba(11, 53, 93, 0.06);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.pain-card:hover {
	transform: translateY(-0.25rem);
	box-shadow: 0 0.75rem 1.5rem rgba(11, 53, 93, 0.12);
}

.pain-card > i.bi {
	flex-shrink: 0;
	font-size: 1.5rem;
	color: #d42828;
}

.pain-card p {
	margin: 0;
	color: var(--color-text);
}

.pain-subtitle {
	margin: 1rem;
	font-size: 1.25rem;
	line-height: 1.75;
}

/* --- 循序導入 --- */

.stage-section {
	padding: 6rem 0;
	background: linear-gradient(135deg, #0b355d 0%, #3f1db1 100%);
}

.stage-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.stage-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 2rem 1.75rem 1.75rem;
	height: 100%;
	background: var(--color-white);
	border-radius: 0 1.25rem 0 1.25rem;
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.stage-1 {
	--stage-color: #03d7f4;
}
.stage-2 {
	--stage-color: #333333;
}
.stage-3 {
	--stage-color: #e93380;
}

.stage-number {
	font-size: 3rem;
	font-weight: 800;
	line-height: 1;
	color: #333333;
	opacity: 0.85;
}

.stage-card h3 {
	margin: 0;
	color: #007bff;
	font-weight: 700;
}

.stage-card p {
	margin: 0;
	color: var(--color-text);
	line-height: 1.75;
}

.stage-deliverable {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: auto;
	padding: 0.875rem 1rem;
	background: rgba(3, 215, 244, 0.1);
	border-left: 3px solid #03d7f4;
	border-radius: 0.5rem;
	font-size: 0.9375rem;
	color: var(--color-text);
}

.stage-deliverable > i.bi {
	flex-shrink: 0;
	color: #03d7f4;
	font-size: 1.125rem;
}

.stage-note {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: 48rem;
	margin: 1rem auto 0;
	padding: 0.25rem 0.75rem;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 0.5rem;
	color: var(--color-white);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.stage-note > i.bi {
	flex-shrink: 0;
	color: var(--color-white);
}

.stage-note p {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.9;
}

/* --- 核心功能 --- */

.feature-section {
	padding: 6rem 0;
	background: var(--color-white);
}

.feature-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.feature-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 2rem;
	height: 100%;
	background: var(--color-white);
	border: 1px solid var(--color-lightGray);
	border-radius: 1.25rem;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease,
		border-color 0.3s ease;
}

.feature-card:hover {
	transform: translateY(-0.375rem);
	border-color: transparent;
	box-shadow: 0 1rem 2rem rgba(63, 29, 177, 0.15);
}

.feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	background: var(--color-gradient-1);
	color: var(--color-white);
	border-radius: 0.875rem;
	font-size: 1.75rem;
}

.feature-card h4 {
	margin: 0;
	color: var(--color-main);
	font-weight: 700;
}

.feature-card p {
	margin: 0;
	color: var(--color-text);
	line-height: 1.75;
}

/* --- 四步驟 --- */

.step-section {
	padding: 6rem 0;
	background: linear-gradient(180deg, #f6f8fc 0%, #eef1fb 100%);
}

.step-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.step-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 2rem 1.5rem;
	height: 100%;
	background: var(--color-white);
	border-radius: 1.25rem;
	box-shadow: 0 0.5rem 1.5rem rgba(11, 53, 93, 0.08);
	text-align: center;
	transition: transform 0.3s ease;
}

.step-card:hover {
	transform: translateY(-0.25rem);
}

.step-label {
	display: inline-block;
	align-self: center;
	padding: 0.375rem 1rem;
	background: var(--color-gradient-1);
	color: var(--color-white);
	border-radius: 2rem;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.step-card h4 {
	margin: 0.5rem 0 0;
	color: var(--color-main);
	font-weight: 700;
}

.step-card p {
	margin: 0;
	color: var(--color-text);
	line-height: 1.7;
}

/* --- 導入前後差異 --- */

.change-section {
	padding: 6rem 0;
	background: var(--color-white);
}

.change-block .section-heading,
.fit-block .section-heading {
	margin-bottom: 1.5rem;
}

.change-table-wrapper {
	overflow-x: auto;
}

.change-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--color-white);
	border: 1px solid var(--color-lightGray);
}

.change-table thead th {
	padding: 1rem 1.25rem;
	font-size: 1rem;
	font-weight: 700;
	color: #333333;
	text-align: left;
	background: #f0f2f5;
}

.change-table tbody th,
.change-table tbody td {
	padding: 1rem;
	color: var(--color-text);
	border-top: 1px solid var(--color-lightGray);
	vertical-align: middle;
}

.change-table tbody th.col-item {
	font-weight: 700;
	color: #333333;
	background: #f0f2f5;
	white-space: nowrap;
}

.change-table tbody td.col-before,
.change-table tbody td.col-after {
	display: table-cell;
}

.change-table tbody td .bi {
	flex-shrink: 0;
	margin-right: 0.5rem;
	font-size: 1.125rem;
	vertical-align: middle;
}

.change-table tbody td span {
	vertical-align: middle;
}

.change-table tbody td.col-before .bi {
	color: #e93380;
}

.change-table tbody td.col-after .bi {
	color: #03d7f4;
}

/* --- 適合企業 --- */

.fit-section {
	padding: 6rem 0;
	background: linear-gradient(180deg, #e2ddf3 0%, aliceblue 100%);
}

.fit-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
	gap: 1rem 2rem;
}

.fit-list > li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	line-height: 1.7;
	color: var(--color-text);
}

.fit-list > li > i.bi {
	flex-shrink: 0;
	font-size: 1.25rem;
	color: #e93380;
}

/* --- Responsive --- */

@media (max-width: 48rem) {
	.mes-intro-section,
	.stage-section,
	.feature-section,
	.step-section,
	.change-section,
	.fit-section {
		padding: 4rem 0;
	}

	.mes-intro-highlight {
		margin: 1.25rem 0;
		padding: 1.5rem 1.25rem;
	}

	.mes-intro-highlight::before,
	.mes-intro-highlight::after {
		font-size: 2.75rem;
	}

	.change-table thead {
		display: none;
	}

	.change-table,
	.change-table tbody,
	.change-table tr,
	.change-table th,
	.change-table td {
		display: block;
		width: 100%;
	}

	.change-table {
		background: transparent;
	}

	.change-table tbody tr {
		margin-bottom: 1.25rem;
		background: var(--color-white);
		border: 1px solid var(--color-lightGray);
	}

	.change-table tbody tr:last-child {
		margin-bottom: 0;
	}

	.change-table tbody th.col-item {
		padding: 0.75rem 1rem;
		background: #f0f2f5;
		color: #333333;
		border-top: 0;
		white-space: normal;
	}

	.change-table tbody td {
		position: relative;
		padding: 0.75rem 1rem 0.75rem 6.5rem;
		border-top: 1px solid var(--color-lightGray);
	}

	.change-table tbody td::before {
		content: attr(data-label);
		position: absolute;
		top: 0.75rem;
		left: 1rem;
		width: 5rem;
		font-weight: 700;
		font-size: 0.875rem;
	}

	.change-table tbody td.col-before::before {
		color: #b23a5c;
	}

	.change-table tbody td.col-after::before {
		color: #0a99b0;
	}
}
