:root {
	--color-primary-dark: #1A2B42; /* Dark Blue/Navy for background/footer */
	--color-accent: #007bff; /* Professional Blue for links/buttons */
	--color-light-bg: #FFFFFF; /* Pure white background */
	--color-text-dark: #333333; /* Dark gray for main text */
	--color-text-light: #666666; /* Lighter gray for secondary text */
	--color-border: #E0E0E0; /* Light gray for borders */
}

body {
	font-family: 'Inter', sans-serif;
	color: var(--color-text-dark);
	background-color: var(--color-light-bg);
}
.section-title {
	position: relative;
	padding-bottom: 0.75rem;
	margin-bottom: 3rem; /* More whitespace */
	text-align: center;
	font-weight: 700;
	color: var(--color-primary-dark);
	font-size: 2.5rem; /* Larger title */
}
.section-title::after {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
	width: 60px; /* Shorter underline */
	height: 3px; /* Thinner underline */
	background-color: var(--color-accent);
	border-radius: 9999px;
}
.btn-primary {
	background-color: var(--color-accent);
	color: white;
	padding: 0.8rem 2rem;
	border-radius: 0.25rem; /* Sharper corners */
	font-weight: 600;
	transition: background-color 0.3s ease, box-shadow 0.2s ease;
	box-shadow: none; /* No shadow by default */
	border: 1px solid var(--color-accent); /* Subtle border */
}
.btn-primary:hover {
	background-color: #0056b3; /* Darker blue */
	box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3); /* Subtle shadow on hover */
}
.card {
	background-color: white;
	border-radius: 0.5rem; /* Sharper corners */
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Lighter shadow */
	padding: 2rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border: 1px solid var(--color-border); /* Subtle border */
}
.card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.nav-link {
	color: var(--color-text-dark);
	font-weight: 500;
	transition: color 0.3s ease;
}
.nav-link:hover {
	color: var(--color-accent);
}
.footer-link {
	color: var(--color-text-light);
	transition: color 0.3s ease;
}
.footer-link:hover {
	color: white;
}

/* Styles for product unit representative images */
.product-unit-image {
	height: 107.3px;
	width: auto;
	object-fit: contain;
	margin-bottom: 1.5rem;
	max-width: 100%;
	border-radius: 0.25rem; /* Sharper corners for images */
}

/* Styles for case study logos */
.case-study-logo {
	height: 70px; /* Slightly smaller */
	width: auto;
	object-fit: contain;
	margin-bottom: 1rem;
	max-width: 100%;
	border-radius: 0.25rem;
}

/* Styles for partner logos */
.partner-logo {
	max-height: 180px; /* Adjust size as needed */
	width: auto;
	object-fit: contain;
	margin: 1rem; /* Spacing between logos */
	max-width: 100%;
	/* 移除原有灰階和透明度設定，保持原色 */
	transition: transform 0.3s ease, box-shadow 0.3s ease; /* 新增過渡效果 */
	cursor: pointer; /* 滑鼠游標變為手型 */
}
.partner-logo:hover {
	filter: grayscale(0%); /* 保持原色，這裡也可以直接移除這行 */
	opacity: 1; /* 保持不透明，這裡也可以直接移除這行 */
	transform: translateY(-5px); /* 滑鼠懸停時圖片向上移動一點，增加立體感 */
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* 增加立體陰影 */
}

/* Hero section background */
.hero-background {
	background-color: var(--color-primary-dark); /* Fallback solid color */
	background-image: url('images/banner.jpg'); /* New background image */
	background-size: cover; /* Cover the entire area */
	background-position: center center; /* Center the image */
	background-repeat: no-repeat; /* Do not repeat */
	color: white; /* Ensure text is readable on dark background */
}

/* Loading spinner for AI generation (removed from HTML, but keeping CSS in case it's re-added) */
.loader {
	border: 4px solid #f3f3f3;
	border-top: 4px solid var(--color-accent);
	border-radius: 50%;
	width: 30px;
	height: 30px;
	animation: spin 1s linear infinite;
	display: inline-block;
	vertical-align: middle;
	margin-left: 10px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Social icons styling */
.social-icon {
	font-size: 1.5rem; /* Adjust size as needed */
	color: var(--color-text-light);
	transition: color 0.3s ease;
}
.social-icon:hover {
	color: var(--color-accent); /* Hover color for social icons */
}

/* --- Styles from platform-architecture-web --- */
.architecture-container { /* Renamed from .container to avoid conflict */
	max-width: 1000px;
	margin: auto;
	background-color: white;
	border-radius: 0.75rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	padding: 2.5rem;
}
.architecture-subtitle { /* Renamed from .subtitle */
	font-size: 1.25rem;
	color: #666;
	text-align: center;
	margin-bottom: 2.5rem;
}
.box {
	background-color: #DBEAFE; /* Light blue */
	border-radius: 0.5rem;
	padding: 1.5rem;
	text-align: center;
	height: 100%; /* Ensure boxes in flex grow to same height */
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.box.dark {
	background-color: #1A2B42; /* Dark blue */
	color: white;
}
.box-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	color: #1E40AF; /* Darker blue for titles */
}
.box.dark .box-title {
	color: white;
}
.description-list {
	list-style: none;
	padding: 0;
	text-align: left;
	margin-top: 1rem;
}
.description-list li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.5rem;
	color: #4B5563;
}
.description-list li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: #1E40AF;
	font-weight: bold;
}
.box.dark .description-list li {
	color: #ECF0F1;
}
.box.dark .description-list li::before {
	color: #00C8C8; /* Teal for dark box arrows */
}

.arrow-down {
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 20px solid #1A2B42; /* Dark blue arrow */
	margin: 1.5rem auto;
}
.plus-sign {
	font-size: 3rem;
	font-weight: 700;
	color: #1A2B42;
	text-align: center;
	margin: 0 1rem;
	line-height: 1;
}

/* Specific styling for LCA section to match image */
.lca-section {
	background-color: #1A2B42;
	color: white;
	border-radius: 0.5rem;
	padding: 2rem;
	margin-top: 2rem;
	text-align: center;
}
.lca-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: white;
}
.lca-subtitle {
	font-size: 1.125rem;
	color: #ECF0F1;
	margin-bottom: 1.5rem;
}
.lca-description {
	font-size: 1.0rem;
	color: #ECF0F1;
	line-height: 1.6;
}

.lca-bottom-box {
	background-color: #E0E0E0; /* Light gray for bottom boxes */
	color: #333;
	border-radius: 0.5rem;
	padding: 1.5rem;
	text-align: center;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.lca-bottom-box-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: #1A2B42;
}
.lca-bottom-box-description {
	font-size: 0.9rem;
	color: #4B5563;
}
.lca-bottom-arrow {
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 16px solid #1A2B42;
	margin: 1rem auto;
}

/* cookie 同意條 */
.cookie-consent {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: #222;
	color: #fff;
	display: flex; /* 保持 flex 以供顯示 */
	justify-content: space-between;
	align-items: center;
	z-index: 9999;
	font-size: 14px;

	/* 將預設狀態設為隱藏，等待 JS 決定是否顯示 */
	max-height: 0;
	padding: 0 16px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: max-height 0.6s ease, opacity 0.6s ease, padding 0.6s ease, visibility 0.6s ease;
}

.cookie-consent a {
	color: #ffcc00;
	text-decoration: underline;
}

.cookie-button {
	background-color: #ffcc00;
	color: #000;
	border: none;
	padding: 10px 18px;
	cursor: pointer;
	border-radius: 30px;
	font-weight: bold;
	display: flex;
	align-items: center;
}

.cookie-button .arrow {
	margin-left: 8px;
}

.cookie-consent.show {
	max-height: 200px; /* 顯示時的高度 */
	padding: 16px; /* 顯示時的 padding */
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* 🔥 淡出 + 上滑 */
.cookie-consent.hidden {
	max-height: 0; /* 過渡到零高度 */
	padding: 0 16px; /* 保持左右 padding，垂直 padding 歸零 */
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}