:root {
	--primary: #174ea6;
	--secondary: #2196f3;
	--accent: #a7c7f9;
	--background: #101c2c;
	--card-bg: #fff;
	--footer-bg: #14213d;
	--text-main: #fff;
	--text-main-b: #000;
	--text-secondary: #a7c7f9;
	--shadow: 0 24px 24px rgba(32, 102, 215, 0.15);
	--radius: 18px;
}

html,
body {
	position: relative;
	margin: 0;
	padding: 0;
	font-family: 'Inter', 'Noto Sans TC', Arial, sans-serif;
	font-size: 16px;
	background: linear-gradient(135deg, var(--background) 0%, var(--primary) 100%);
	color: var(--text-main);
	min-height: 100vh;
	overflow-x: hidden;
	z-index: -100;
}

.main-shape {
	transition: filter 0.3s;
	z-index: -1;
	opacity: .3;
	position: fixed;
	display: flex;
}

.main-shape:hover {
	filter: brightness(1.5);
	opacity: .9;
}

.wap-lang-container {
	margin-bottom: 16px;
}

body,
.wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a{
	text-decoration:none;
}
main {
	flex: 1 0 auto;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
}

.hero {
	margin-top: 50px;
	padding-top: 96px;
	padding-bottom: 48px;
	text-align: center;
	background: none;
}

.hero h1 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: 2px;
}

.hero p {
	color: var(--text-secondary);
	font-size: 1.15rem;
	margin-bottom: 0;
}


.content {
	z-index: 2;
	width: 100vw;
	min-height: 400px;
	/* padding: 48px 0; */
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.content section {
	width: 70%;
}

.carousel {
	position: relative;
	max-width: 1400px;
	max-height: 560px;
	width: 100%;
	height: auto;
	margin: 40px auto;
	overflow: hidden;
	border-radius: 12px;
}

.carousel-track {
	display: flex;
	width: 100%;
	transition: transform 0.5s ease;
	/* height: auto; */
}

.carousel-item {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	max-width: 1400px;
	max-height: 560px;
	width: 80%;
	height: auto;
	padding-left: 100px;
	padding-right: 100px;
	background: #00000000;
}

.carousel-content {
	display: flex;
	flex-direction: row;
	align-items: center;
	max-width: 600px;
	max-height: 560px;
	width: 600px;
	height: auto;
}

.carousel-content a {
	width: 100%;
	height: 60%;
	object-fit: contain;
	border-radius: 8px;
	background: #ffffff00;
	margin-top: 0%;
}

.carousel-content img {
	transform-origin: left center;
	/* object-fit: cover; */
	width: 100%;
	height: auto;
	border-radius: 8px;
	background: #ffffff00;
	/* margin-top: 25%; */
}

.carousel-caption {
	flex: 1;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 500;
	background: none;
	padding: 0;
	width: 100%;
	height: auto;
	margin-left: 32px;
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0);
	color: #ffffff;
	border: none;
	font-size: 5rem;
	padding: 0 0px;
	cursor: pointer;
	z-index: 10;
	border-radius: 50%;
	user-select: none;
}

.carousel-btn.prev {
	left: 0px;
}

.carousel-btn.next {
	right: 0px;
}

.carousel-btn:active {
	background: rgba(0, 0, 0, 0);
}

.section-title {
	color: var(--text-main);
	font-size: 1.7em;
	margin-bottom: 24px;
	font-weight: 700;
	letter-spacing: 1px;
	/* text-align: center; */
}

.slogan {
	color: var(--text-main);
	margin-bottom: 50px;
}

.slogan div {
	font-size: 2.5em;
}

.slogan p {
	margin-top: 50px;
	font-size: 1.5em;
}

/* 卡片區塊 */
.card {
	margin-bottom: 10%;
}

.card-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 50px;
	max-width: 100%;
	margin: 0 auto;
	align-items: stretch;
}

.card-list a {
	display: block;
	height: 100%;
}

.card-sublist {
	background: var(--card-bg);
	border-radius: 16px;
	padding: 32px 20px;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
	text-align: center;
	transition: transform 0.2s;
	color: var(--text-main-b);
	text-decoration: none;
	height: 300px;
	display: flex;
	flex-direction: column;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.card-sublist:hover {
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.16);
	transform: translateY(-6px) scale(1.03);
}

.card-icon {
	background: #e7f0fa;
	border-radius: 50%;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.4rem;
	margin: -50px auto 20px auto;
	box-shadow: 0 2px 8px 0 rgba(30, 78, 150, 0.10);
}

.card-sublist h3 {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 12px 0;
}

.card-sublist p {
	color: #374151;
	font-size: 1rem;
	margin: 6px 0 0 0;
	line-height: 1.7;
	text-align: center;
}

/* --- 平板 --- */
@media (max-width: 991px) {
	body {
		font-size: 14px;
	}

	.carousel-caption {
		font-size: 1.2rem;
	}

	.content section {
		width: 80%;
	}
}

/* --- 手機 --- */
@media (max-width: 767px) {
	body {
		font-size: 12px;
	}

	.main-shape {
		opacity: 0;
	}

	.card-list {
		width: 90%;
	}

	.highlight-layer {
		opacity: 0 !important;
	}

	.carousel-item {
		display: block;
		width: 100%;
		height: auto;
		padding-left: 5%;
		padding-right: 5%;
	}

	.carousel-content {
		width: 90vw;
		max-width: 100vw;
		flex-direction: column;
		align-items: center;
	}

	.carousel-content img {
		width: 100%;
		max-width: 100vw;
		max-height: 400px;
		height: auto;
		display: block;
		margin: 0 auto;
	}

	.carousel-caption {
		font-size: 0.8rem;
		margin-left: 0px;
		word-wrap: break-word;
		overflow-wrap: break-word;
		padding: 10px;
	}

	.content section {
		width: 90%;
	}

	.carousel-btn {
		font-size: 3rem;
	}

	.service-list {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 0 20px;
	}

	.service-item {
		margin: 0 auto;
		height: auto;
		min-height: 300px;
	}
}
