html {
  overflow-y: scroll;        
  scroll-behavior: smooth;   
}

html,
body {
  overflow-x: hidden;        
padding: 0;
  margin: 0;
}


body {
  background-image: url('img/bg.webp');
  background-size: cover;     
  background-position: center center;   
  background-repeat: no-repeat;         
  background-attachment: fixed;         
  background-color: #f5f5f5;            
}


body.bg-fade-in {
  animation: bgFade 0.6s ease-in-out;
}

@keyframes bgFade {
  from { opacity: 0; }
  to { opacity: 1; }
}


body.fixed {
  position: fixed;
  overflow: hidden;
  width: 100%;
}


header {
	background: linear-gradient(90deg, #001a33, #004080, #001a33);
	background-size: 300% 100%;
	animation: headerFlow 3s ease infinite;
	color: white;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
	position: relative;
	z-index: 1000;
}

@keyframes headerFlow {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

.brand a {
	display: inline-block;
	transition: transform 0.2s ease-out;
}

.brand a:active {
	transform: scale(1.2) rotate(5deg);
}

.brand a:hover {
	transform: scale(1.05);
}


/* === 導覽列樣式 === */
nav {
	background-color: #001829;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	padding: 1rem;
}

nav a {
	color: white;
	text-decoration: none;
	margin: 0 1rem;
	padding: 0.4rem 0.6rem;
	font-weight: bold;
	font-size: 1rem;
	transition: border 0.3s ease, color 0.3s ease;
	border: 1px solid transparent;
	position: relative;
}

nav a::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 2px;
	bottom: -5px;
	left: 0;
	background: #00c3ff;
	transform: scaleX(0);
	transition: transform 0.3s ease;
	transform-origin: right;
}

nav a:hover {
	border: 1px solid #00c3ff;
	color: #00c3ff;
}

nav a:hover::before {
	transform: scaleX(1);
	transform-origin: left;
}

/* === 漢堡選單按鈕預設隱藏 === */
.menu-toggle {
	font-size: 1.5rem;
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	display: none;
}


/* 主要容器樣式 */

.container {
	background: rgba(255, 255, 255, 0.9);
	border-radius: 12px;
	padding: 1.8rem;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
	margin: 3rem auto;
	font-family: 'Noto Sans TC', sans-serif;
	line-height: 1.8;
	color: #333;
        max-width: 1200px;
        width: 90%;

}

/* 響應式*/
@media (max-width: 768px) {
	.container {
		max-width: 90vw;
		padding: 1rem;
		margin: 2rem auto;
	}
}


/* 標題樣式 */
.container h1,
.container h2 {
	color: #003865;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.container ul.vision-list {
	padding-left: 1.2rem;
	list-style: none;
}

.container ul.vision-list li::before {
	content: "➤ ";
	color: #0070b8;
}


footer {
	background: linear-gradient(90deg, #001f3f, #003865);
	color: white;
	text-align: center;
	padding: 2rem 1rem;
	margin-top: 2rem;
	font-size: 0.95rem;
	line-height: 1.6;
	box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
}

footer .contact-info {
	margin-top: 0.75rem;
	font-size: 0.85rem;
	color: #ccc;
}

footer .contact-info a {
	color: #ccc;
	text-decoration: none;
	margin: 0 0.25rem;
}

footer .contact-info a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
		position: fixed;
		top: 1rem;
		right: 1rem;
		z-index: 1100;
		background-color: rgba(0, 0, 0, 0.6);
		padding: 0.5rem 0.6rem;
		border-radius: 6px;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
		transition: background-color 0.3s ease;
	}

	.menu-toggle:hover {
		background-color: rgba(0, 0, 0, 0.85);
	}

	nav {
		flex-direction: column;
		overflow: hidden;
		max-height: 0;
		transition: max-height 0.3s ease;
	}

	nav.open {
		max-height: 500px;
	}

	nav a {
		margin: 1rem 0;
		text-align: center;
		font-size: 1.05rem;
	}

}

input[type="email"]:invalid:focus {
	outline: 2px solid red;
}

.contact-form {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 0.5rem;
	margin: 0.5rem 0;
	box-sizing: border-box;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
	border-color: #007acc;
	box-shadow: 0 0 5px rgba(0, 122, 204, 0.3);
	outline: none;
}

.primary-btn {
	background-color: #003d79;
	color: white;
	padding: 0.5rem 1rem;
	border: none;
	cursor: pointer;
	font-weight: bold;
}

.form-actions {
	margin-top: 1rem;
	display: flex;
	gap: 1rem;
}

.form-actions button {
	padding: 0.4rem 1rem;
	font-size: 0.95rem;
	cursor: pointer;
}

.contact-form.login {
	max-width: 400px;
}


.contact-section {
	background: #f9fbfd;
	padding: 3rem 1.5rem;
	border-radius: 16px;
	max-width: 800px;
	margin: 3rem auto;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
	font-family: 'Noto Sans TC', sans-serif;
}

.contact-title {
	font-size: 1.8rem;
	color: #003d79;
	text-align: center;
	margin-bottom: 2rem;
	border-bottom: 2px solid #00c3ff;
	display: inline-block;
	padding-bottom: 0.4rem;
}

.contact-info p {
	line-height: 1.8;
	color: #333;
	font-size: 1rem;
	margin-bottom: 1rem;
}

.contact-info a {
	color: #007acc;
	text-decoration: none;
	font-weight: 500;
}

.contact-info a:hover {
	text-decoration: underline;
}

.map-container {
	border-radius: 12px;
	overflow: hidden;
	margin: 1rem 0 2rem 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
	width: 100%;
	height: 300px;
	border: none;
}


.erp-section {
	background: rgba(255, 255, 255, 0.95);
	border-left: 6px solid #004080;
	border-radius: 12px;
	padding: 2rem;

	box-shadow: 0 0 20px rgba(0, 51, 102, 0.15);
	line-height: 1.9;
	color: #222;
}

.erp-section h2 {
	color: #003d79;
	font-size: 1.6rem;
	margin-bottom: 1rem;
	border-bottom: 2px solid #00c3ff;
	padding-bottom: 0.5rem;
}

.erp-section ul {
	padding-left: 1.5rem;
	margin: 1rem 0;
	list-style-type: disc;
}

.erp-section li {
	margin-bottom: 0.5rem;
}

.erp-section p {
	margin-bottom: 1.2rem;
}

.erp-section img {
	display: block;
	margin: 2rem auto;
	max-width: 100%;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.erp-accordion {
	margin-top: 2rem;
}






@keyframes fadeSlideRight {
	from {
		opacity: 0;
		transform: translateX(6px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}


.accordion-content img {
	display: block;
	max-width: 100%;
	max-height: 480px;
	margin: 1.2rem auto;
	border-radius: 8px;
	cursor: zoom-in;
	transition: transform 0.3s;
}

.accordion-content img:hover {
	transform: scale(1.03);
}

.image-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	animation: fadeIn 0.4s ease;
}


.image-overlay img {
	max-width: 90vw;
	max-height: 90vh;
	border-radius: 8px;
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
	cursor: zoom-out;
}


@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}


.accordion-item {
	border: 2px solid #005b9f;
	border-radius: 12px;
	margin-bottom: 1.5rem;
	background: #f9fcff;
	box-shadow: 0 2px 5px rgba(0, 91, 159, 0.1);
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
	box-shadow: 0 4px 12px rgba(0, 91, 159, 0.2);
}

.accordion-toggle {
	background: #005b9f;
	color: #fff;
	padding: 1rem 1.5rem;
	font-size: 1.25rem;
	font-weight: bold;
	width: 100%;
	border: none;
	text-align: left;
	position: relative;
	cursor: pointer;
	transition: background 0.3s ease;
}

.accordion-toggle::after {
	content: '▼';
	position: absolute;
	right: 1.5rem;
	font-size: 1rem;
	transition: transform 0.3s ease;
}

.accordion-toggle.open::after {
	transform: rotate(180deg);
}

.accordion-content {
	transform: scaleY(1);
	max-height: 0;
	overflow: hidden;
	padding: 0 1.5rem;
	background: #eaf4fb;
	font-size: 1.15rem;
	color: #003454;
	line-height: 1.8;
	border-top: 1px solid #c3e4f7;
	transition: max-height 0.4s ease, padding 0.4s ease;
}


.accordion-toggle.open::after {
	transform: rotate(180deg);
}

.accordion-content.open {
	max-height: 4000px;
	padding: 1rem 1.5rem;
}


#greeting {
	font-size: 1.5rem;
	font-weight: bold;
	color: #9999CC;
}


.greeting-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	padding: 2rem;
	margin: 3rem auto;
	max-width: 1200px;
	border-radius: 12px;
	background: rgba(83, 87, 104, 0.6);
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(4px);
}

.greeting-section {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	padding: 0 0.5rem;
}

.greeting-image img {
	width: 100%;
	max-width: 450px;
	height: 300px;
	object-fit: cover;
	border-radius: 8px;
}

.greeting-text {
	flex: 1 1 300px;
	text-align: center;
}

#greeting {
	font-size: 0.9rem;
	color: #F5F7EA;
	font-weight: 700;
	text-align: center;
	margin: 2rem auto 1.5rem;
	display: block;
	max-width: 300px;
	white-space: normal;
	word-break: break-word;
	line-height: 1.6;
	transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
	.greeting-container {
		padding: 0.5rem;
		margin: 1.5rem auto;
	}

	.greeting-section {
		margin: 1rem 0;
		gap: 0.5rem;
	}

	.greeting-text {
		margin-bottom: 0.2rem;
	}

	#greeting {
		margin: 1rem auto;
	}
}


.assistant-widget {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999;
	display: flex;
	align-items: flex-end;
	gap: 0.5rem;
	animation: fadeIn 1.2s ease-in;
}

.assistant-widget img {
	width: 60px;
	height: auto;
	animation: floatY 3s ease-in-out infinite;
}

.speech-bubble {
	max-width: 250px;
	background: #ffffff;
	border: 2px solid #ccc;
	border-radius: 10px;
	padding: 10px 15px;
	font-size: 14px;
	color: #333;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: relative;
}

.speech-bubble::before {
	content: '';
	position: absolute;
	bottom: 10px;
	left: -10px;
	border: 10px solid transparent;
	border-right-color: #ffffff;
	transform: rotate(10deg);
}

@keyframes floatY {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-5px);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.8);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (max-width: 767px) {
	.assistant-widget {
		display: none;
	}
}


.speech-bubble {
	display: none;
	transition: opacity 0.3s ease;
}

.speech-bubble.show {
	display: block;
}


.hero-banner {
	position: relative;
	width: 70%;
	aspect-ratio: 16 / 6;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.hero-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	color: white;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	padding: 1rem;
}

.hero-text h1 {
	font-size: 2.2rem;
	margin: 0.5rem 0;
}

.hero-text p {
	font-size: 1.2rem;
	margin-bottom: 1.5rem;
}

.hero-btn {
	background-color: #005a9c;
	color: white;
	padding: 0.7rem 1.5rem;
	border-radius: 30px;
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.3s ease;
}

.hero-btn:hover {
	background-color: #004080;
}


@media (max-width: 767px) {
	.hero-banner {
		width: 100%;
		aspect-ratio: 3 / 4;
		background-image: url('img/main-img-small.webp');
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
	}

	.hero-image {
		display: none;
	}

	.hero-text {
		top: auto;
		bottom: 5%;
		left: 50%;
		transform: translateX(-50%);
		padding: 1rem;
		width: 90%;
	}

	.hero-text p {
		font-size: 1rem;
	}

	.hero-btn {
		padding: 0.5rem 1.2rem;
	}
}


.feature-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.2rem;
	padding: 0;
	margin: 1.5rem 0;
}

.feature-list li {
	background: #ffffff;
	border: 1px solid #dfe3e8;
	border-radius: 10px;
	padding: 1rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	font-size: 0.95rem;
	line-height: 1.6;
	transition: transform 0.2s ease;
}

.feature-list li:hover {
	transform: translateY(-4px);
}

.feature-section h3 {
	font-size: 1.5rem;
	color: #0288d1;
	font-weight: 600;
	background: #e1f5fe;
	display: inline-block;
	padding: 0.4rem 0.8rem;
	border-radius: 6px;
	margin-bottom: 1rem;
}


.erp-section {
	background: #f5faff;
	border: 1px solid #d0e8f7;
	border-radius: 12px;
	padding: 2.5rem;
	font-family: 'Segoe UI', sans-serif;
	color: #2b3e50;
	box-shadow: 0 6px 16px rgba(0, 150, 255, 0.08);
}

.erp-section h2 {
	font-size: 1.8rem;
	color: #0077c2;
	margin-bottom: 1rem;
}

.erp-section h3 {
	font-size: 1.3rem;
	color: #ed8d1f;
	margin-top: 2rem;
}


.issue-list,
.feature-list {
	list-style: none;
	padding-left: 0;
	margin: 1.5rem 0;
}

.issue-list li,
.feature-list li {
	background: #f0f0f3;
	border-radius: 14px;
	padding: 1.2rem;
	margin-bottom: 1rem;
	box-shadow:
		6px 6px 12px #d1d9e6,
		-6px -6px 12px #ffffff;
	font-size: 1rem;
	color: #333;
	transition: transform 0.2s ease;
}

.issue-list li:hover,
.feature-list li:hover {
	transform: translateY(-2px);
}


.red-bold {
	color: #d32f2f;
	font-weight: bold;
}

.erp-section a {
	color: #0288d1;
	font-weight: bold;
	text-decoration: none;
}

.erp-section a:hover {
	text-decoration: underline;
}


.gallery-section {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.6s ease, opacity 0.6s ease;
}

.gallery-section.open {
	max-height: 2000px;
	opacity: 1;
}

.photo-item img {
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.photo-item img:hover {
	transform: scale(1.05);
	opacity: 0.9;
}

.arrow {
	position: absolute;
	top: 50%;
	font-size: 2.5rem;
	color: white;
	padding: 0 1rem;
	cursor: pointer;
	user-select: none;
	transform: translateY(-50%);
}

.arrow.left {
	left: 0.5rem;
}

.arrow.right {
	right: 0.5rem;
}


#lightbox {
	display: none;
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.85);
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

#lightbox img {
	width: auto;
	height: auto;
	max-width: 100vw;
	max-height: 100vh;
	display: block;
	margin: auto;
	border-radius: 8px;
}


.gallery-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

.photo-item {
	opacity: 0;
	transform: scale(0.95);
	animation: fadeInUp 0.5s ease forwards;
	animation-delay: var(--delay);
}

.photo-item img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.photo-item:hover img {
	transform: scale(1.05);
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




@media (max-width: 768px) {
  .photo-item {
    width: 100%;
    height: auto;
  }

  .photo-item img {
    height: auto;
  }
}



.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
  animation: fadeInUp 0.3s ease-out;
}

.modal-content {
	background: #fdfdf8;
	border-left: 6px solid #6a994e;
	color: #333;
	font-family: 'Noto Sans TC', sans-serif;
	padding: 2.2rem 2rem;
	border-radius: 18px;
	max-width: 700px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
	position: relative;
	animation: slideIn 0.3s ease;
	line-height: 1.9;
	font-size: 1.05rem;
}

.modal-content h3 {
	color: #386641;
	font-size: 1.5rem;
	margin-top: 1rem;
	margin-bottom: 1rem;
	border-bottom: 2px solid #a7c957;
	padding-bottom: 0.5rem;
}

.modal-content p {
	margin: 0.8rem 0;
}

.modal-content ul {
	padding-left: 1.5rem;
	margin-top: 0.5rem;
	margin-bottom: 1.5rem;
}

.modal-content li {
	margin-bottom: 0.5rem;
	line-height: 1.8;
}

.modal-content .highlight {
	background-color: #ffe8cc;
	padding: 0.2em 0.4em;
	border-radius: 4px;
	font-weight: 600;
	color: #d1495b;
}


.close-modal {
	position: absolute;
	top: 1rem;
	right: 1.2rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	color: #666;
	cursor: pointer;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(40px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}




/* === 主容器區 === */
.service-section {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin: 2rem auto;
	max-width: 1200px;
	padding: 0 1rem;
}

/* === 主卡片樣式 === */
.main-card {
	background: #f5fdf7;
	border-left: 6px solid #2a9d8f;
	padding: 2rem;
	border-radius: 30px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: default;
	text-align: center;
}

.main-card img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.main-card h3 {
	margin: 0.5rem 0;
	font-size: 1.3rem;
	color: #003d79;
}

.main-card p {
	color: #555;
	font-size: 1rem;
}

.main-card button {
	margin-top: 1rem;
	padding: 0.5rem 1rem;
	border: none;
	background-color: #003d79;
	color: white;
	border-radius: 6px;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background-color 0.3s;
}

.main-card button:hover {
	background-color: #005ea6;
}

/* === 次卡片群組 === */
.sub-card-group {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

/* === 卡片樣式=== */
.card {
	background-color: #ffffff;
	border-radius: 30px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	padding: 1.5rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: default;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.card:hover {
	transform: translateY(-6px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.card img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.card h3 {
	margin: 0.5rem 0;
	font-size: 1.1rem;
	color: #003d79;
}

.card p {
	color: #555;
	font-size: 0.95rem;
	flex-grow: 1;
}

.card button {
	margin-top: 1rem;
	padding: 0.5rem 1rem;
	border: none;
	background-color: #003d79;
	color: white;
	border-radius: 6px;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background-color 0.3s;
}

.card button:hover {
	background-color: #005ea6;
}

@media (max-width: 1024px) {
	.sub-card-group {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.sub-card-group {
		grid-template-columns: 1fr;
	}

	.main-card,
	.card {
		padding: 1.2rem;
		border-radius: 16px;
	}

	.main-card h3 {
		font-size: 1.15rem;
	}

	.main-card p {
		font-size: 0.95rem;
	}

	.main-card img {
		width: 100%;
		height: auto;
		object-fit: cover;
		border-radius: 8px;
		margin-bottom: 1rem;
		max-width: 100%;
	}
}


.toggle-gallery-btn {
	background-color: #003d79;
	color: white;
	padding: 0.6rem 1.2rem;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	margin: 1.5rem 0;
	transition: background-color 0.3s ease;
}

.toggle-gallery-btn:hover {
	background-color: #005ea6;
}


/* === 導覽列：桌機版=== */
#navMenu {
	display: flex;
	justify-content: center;
	padding: 1rem;
	background-color: #001829;
}

#navMenu a {
	color: white;
	text-decoration: none;
	margin: 0 1rem;
	padding: 0.4rem 0.6rem;
	font-weight: bold;
	font-size: 1rem;
	position: relative;
	transition: color 0.3s ease, border 0.3s ease;
	border: 1px solid transparent;
}

#navMenu a::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 2px;
	bottom: -5px;
	left: 0;
	background: #00c3ff;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease;
}

#navMenu a:hover {
	color: #00c3ff;
	border: 1px solid #00c3ff;
}

#navMenu a:hover::before {
	transform: scaleX(1);
	transform-origin: left;
}

/* === 漢堡選單=== */
.menu-toggle {
	font-size: 1.5rem;
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	display: none;
}

/* === LOGO === */
.logo-img {
	max-width: 600px;
	height: auto;
	vertical-align: middle;
	transition: all 0.3s ease;
}

/* === 響應式 === */
@media (max-width: 768px) {
	.logo-img {
		width: auto;
		max-height: 80px;
	}

	.menu-toggle {
		display: block;
		position: fixed;
		top: 1rem;
		right: 1rem;
		z-index: 1100;
		background-color: rgba(0, 0, 0, 0.6);
		padding: 0.5rem 0.6rem;
		border-radius: 6px;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
		transition: background-color 0.3s ease;
	}

	.menu-toggle:hover {
		background-color: rgba(0, 0, 0, 0.85);
	}

	#navMenu {
		display: none;
		flex-direction: column;
		width: 100%;
		background-color: #001829;
	}

	#navMenu.open {
		display: flex;
	}


	#navMenu a {
		display: block;
		width: 100%;
		margin: 0;
		padding: 1rem;
		text-align: center;
		box-sizing: border-box;
		position: static;
	}

	nav a::before {
		display: none;
	}
}


.scroll-timeline {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	padding: 1rem;
	scroll-snap-type: x mandatory;
}

.scroll-timeline::-webkit-scrollbar {
	height: 8px;
}

.scroll-timeline::-webkit-scrollbar-thumb {
	background-color: #bbb;
	border-radius: 4px;
}

.clean-shadow .timeline-card {
	flex: 0 0 220px;
	scroll-snap-align: start;
	background: #fff;
	border-radius: 12px;
	padding: 1.2rem;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s;
}

.clean-shadow .timeline-card:hover {
	transform: translateY(-6px);
}

.clean-shadow h3 {
	color: #0070b8;
	margin-bottom: 0.5rem;
}


#lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 16px;
	background-color: rgba(0, 0, 0, 0.5);
	padding: 6px 12px;
	border-radius: 20px;
	font-weight: bold;
	pointer-events: none;
}


.news-section {
	background-color: #eef3f9;
	padding: 2rem 0;
}

.news-item {
	background-color: #ffffff;
	border: 1px solid #cfdce8;
	border-radius: 10px;
	padding: 1.5rem;
	transition: box-shadow 0.3s ease;
}

.news-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-meta {
	margin-bottom: 0.5rem;
}

.news-category {
	background-color: #007acc;
	color: #fff;
	font-size: 0.75rem;
	padding: 3px 8px;
	border-radius: 6px;
	font-weight: 500;
}

.tag-new {
	background-color: #ff7043;
	color: #fff;
	font-size: 0.75rem;
	padding: 2px 6px;
	border-radius: 6px;
	margin-left: 6px;
	font-weight: bold;
}

.news-item h3 {
	font-size: 1.15rem;
	color: #1a2b4c;
	margin-bottom: 0.4rem;
}

.news-item p {
	color: #333;
	line-height: 1.65;
	font-size: 1rem;
}


.greeting-card {
	margin: 2rem auto;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 1rem 1rem;
	border-radius: 20px;
	color: #ffffff;
	font-size: 1.1rem;
	width: 90vw;
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	text-align: center;
}

/* 響應式*/
@media (max-width: 768px) {
	.greeting-card {
		width: 70vw;
	}
}



/* 各頁h1標題 */

.gradient-text {
  font-size: 1.8rem;
  font-weight: 600;
  position: relative;
  text-align: center;
  color: transparent;
  background: linear-gradient(to right, #d1b361, #f7f3dd, #d1b361);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow: hidden;
}

.gradient-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
  transform: skewX(-25deg);
  opacity: 0;
  transition: left 0.75s ease, opacity 0.3s ease;
}

.gradient-text:hover::after {
  left: 125%;
  opacity: 1;
}




/* === 產品特色 === */

.features-container {
  box-sizing: border-box;
  width: 90%;
  max-width: 1200px;
  margin: 3rem auto 4rem;
  padding: 2.5rem; 
  background: rgba(240, 240, 245, 0.4); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}


.features-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem; 
}


.feature-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}


.feature-card__media {
  border-radius: 12px; 
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  height: 320px; 
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.feature-card__content {
  padding: 0.5rem; 
}

.feature-card__content h3 {
  font-size: 1.7rem; 
  color: #003d79;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
}

.feature-card__content p {
  font-size: 1.05rem;
  line-height: 1.9; 
  color: #333;
  margin-bottom: 0;
}


/* === 左右交錯佈局=== */
.feature-card:nth-child(even) .feature-card__media {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.feature-card:nth-child(even) .feature-card__content {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}


/* === 響應式=== */

/* 平板尺寸 (寬度小於 992px) */
@media (max-width: 992px) {
  .feature-card,
  .feature-card:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* 單欄重置左右交錯 */
  .feature-card:nth-child(even) .feature-card__media,
  .feature-card:nth-child(even) .feature-card__content {
    grid-column: auto;
    grid-row: auto;
  }

  .feature-card__content {
    text-align: center;
  }

  .feature-card__media {
    height: 250px; 
  }
}

/* 手機尺寸 (寬度小於 768px) */
@media (max-width: 768px) {
  .features-container {
    width: 95%;
    padding: 1.5rem 1rem;
    margin: 2rem auto;
  }

  .features-list {
    gap: 3rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }

  .feature-card__content h3 {
    font-size: 1.5rem; 
  }

  .feature-card__content p {
    font-size: 1rem;
  }
}

/* === ERP 優勢=== */


.accordion-content {
    font-size: 1.05rem; 
}

/* 引言文字 */
.accordion-content .erp-intro-text {
    font-size: 1.1rem;
    text-align: center;
    margin: 1rem auto 2.5rem;
    max-width: 80%;
    color: #2b3e50;
    line-height: 1.9;
}

/* 核心示意圖 */
.accordion-content .erp-main-diagram {
    cursor: default; 
    border: 1px solid #deeaf2;
}
.accordion-content .erp-main-diagram:hover {
    transform: none; 
}

/* 流程步驟區塊 */
.accordion-content .erp-process-step {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* 步驟標題 (h3) */
.accordion-content .erp-process-step h3 {
    font-size: 1.6rem;
    color: #0077c2;
    border-bottom: 2px solid #a7c957; 
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* 優點卡片網格佈局 */
.accordion-content .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* 優點卡片樣式 */
.accordion-content .benefit-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border-top: 5px solid #005b9f; 
    box-shadow: 0 5px 18px rgba(0, 91, 159, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.accordion-content .benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 91, 159, 0.18);
}

/* 卡片標題 (h4) */
.accordion-content .benefit-card h4 {
    font-size: 1.25rem;
    color: #003d79; 
    margin-top: 0;
    margin-bottom: 0.8rem;
}

/* 卡片內文 */
.accordion-content .benefit-card p {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
    margin-bottom: 0;
    flex-grow: 1; 
}

/* 結論區塊 */
.accordion-content .erp-summary-box {
    background-color: #f5faff; 
    border-left: 6px solid #ed8d1f; 
    padding: 2rem;
    margin: 4rem 0 2rem;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 6px 16px rgba(0, 150, 255, 0.08);
}

.accordion-content .erp-summary-box h4 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #003454; 
    margin-bottom: 1rem;
}

.accordion-content .erp-summary-box p {
    font-size: 1.05rem;
    color: #2b3e50; 
    line-height: 1.9;
}


.link-highlight {
  color: #005a9c;
  font-weight: bold;
  text-decoration: none;
}

.link-highlight:hover {
  text-decoration: underline; }



.intro-section {
  padding: 1rem;
  text-align: center;
}

.intro-main-title {
  font-size: 1.8rem;
  color: #003d79; 
  margin-bottom: 2rem;
}

/* 雙欄網格佈局 */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 2rem; 
  text-align: left;
}

.problem-card,
.solution-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); 
  border-top: 4px solid;
}


.problem-card {
  border-color: #d32f2f;
}

.solution-card {
  border-color: #2a9d8f; 
}

.problem-card h3,
.solution-card h3 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.problem-card h3 {
  color: #d32f2f;
}

.solution-card h3 {
  color: #2a9d8f;
}



.compact-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; 
}


.compact-list li {
  background-color: #ffffff; 
  border: 1px solid #e9ecef;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* text-align: center; */ /* 取消註解會使內容都置中*/
}

.compact-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


.compact-list li::before {
  display: block; 
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.5rem; 
  margin-bottom: 0.5rem; 
}


.compact-list li strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.6rem; 
}



.problem-list li::before {
 content: '\f126';
  color: 	#C63300;
}
.problem-list li strong {
  color: #007acc;
}


.solution-list li::before {
  content: '\f0eb'; /* FontAwesome 的 'lightbulb' 圖示 */
  color: #fbc02d;   
}
.solution-list li strong {
  color: #28a745;
}



/* 行動呼籲區塊 */
.intro-cta {
  background: #eaf4fb; 
  margin-top: 2.5rem;
  padding: 1.2rem;
  border-radius: 12px;
  font-size: 1.1rem;
}

.intro-cta p {
  margin: 0;
}

/* === 響應式=== */
@media (max-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr; 
    gap: 1.5rem;
  }

  .intro-main-title {
    font-size: 1.5rem;
  }
}


.style-minimalist .problem-card,
.style-minimalist .solution-card {
  background: none; 
  box-shadow: none; 
  border-top: none; 
  border-radius: 0;
  padding: 0 0 0 1.5rem;
  border-left: 4px solid;
}

.style-minimalist .intro-main-title {
  margin-bottom: 2.5rem;
}

.style-minimalist .intro-cta {
  background: none; 
  border-top: 1px solid #dfe3e8;
  border-radius: 0;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}



.features-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem; 
  margin-top: 1.5rem;
}


.feature-item {
  display: flex;
  align-items: center; 
  gap: 1rem;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef; 
  border-radius: 12px; 
  padding: 1.2rem; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}


.feature-icon {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  background-color: #2a9d8f;
  color: #ffffff;
  border-radius: 8px; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.feature-text h4 {
  font-size: 1.15rem;
  color: #003d79;
  margin: 0 0 0.3rem 0;
}

.feature-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}


/* === 回到頂部按鈕 === */
#backToTopBtn {
  display: none; 
  position: fixed; 
  bottom: 15px; 
  right: 80px;   
  z-index: 99; 
  border: none;
  outline: none;
  background-color: #0099cc;
  color: white;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  font-size: 18px;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
}

#backToTopBtn:hover {
  background-color: #005ea6;
  transform: translateY(-3px);
}