:root {
/* 更有活力的綠色莫蘭迪色系 */
--page-bg: #E8F0E8; /* 淡綠背景 */
--container-bg: #FFFFFF; /* 純白容器 */
--hero-bg: #A8C5A0; /* 清新綠 */
--text-color: #2D3E2D; /* 深綠文字 */
--text-muted: #5A6B5A; /* 次要文字 */
--card-bg: #D8E5D3; /* 卡片底色淺綠 */
--card-border: #B8CDB0; /* 卡片邊框 */
--accent-primary: #7FA577; /* 主要強調色 */
--accent-secondary: #93B88B; /* 次要強調色 */
--accent-dark: #5D8555; /* 深綠強調 */
--cta-line: #06C755; /* LINE官方綠 */
--cta-phone: #E84C3D; /* 電話紅色 */
--shadow-light: rgba(45, 62, 45, 0.08);
--shadow-medium: rgba(45, 62, 45, 0.12);
--shadow-heavy: rgba(45, 62, 45, 0.18);
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Microsoft JhengHei', Arial, sans-serif;
background: var(--page-bg);
min-height: 100vh;
padding-bottom: 120px;
color: var(--text-color);
}
.container {
max-width: 1400px;
margin: 0 auto;
background: var(--container-bg);
}
/* 頂部大圖區 */
.hero {
background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.18)), url('img/LINE_ALBUM_鐵工專用_260306_47.jpg') center/cover no-repeat;
color: var(--container-bg);
padding: 100px 40px;
text-align: center;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
width: 300px;
height: 300px;
background: rgba(255, 255, 255, 0.12);
border-radius: 50%;
top: -150px;
left: -100px;
animation: float 6s ease-in-out infinite;
}
.hero::after {
content: '';
position: absolute;
width: 200px;
height: 200px;
background: rgba(255, 255, 255, 0.12);
border-radius: 50%;
bottom: -100px;
right: -50px;
animation: float 8s ease-in-out infinite reverse;
}
@keyframes float {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(20px);
}
}
.hero h1 {
font-size: 4em;
font-weight: bold;
margin-bottom: 20px;
position: relative;
z-index: 1;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.08);
}
.hero p {
font-size: 1.5em;
position: relative;
z-index: 1;
font-weight: 600;
}
.hero-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	max-width: 1200px;
	margin: 0 auto;
}
.hero-text {
	text-align: left;
}
.site-logo {
	height: 1em; /* match h1 size */
	width: auto;
	display: inline-block;
	flex-shrink: 0;
	vertical-align: middle;
	margin-right: 0.35em;
	transform: translateY(-0.08em); /* align with text */
}

/* Make hero text more legible: subtle dark panel + blur + shadow */
.hero-text {
	display: inline-block;
	background: rgba(0,0,0,0.18);
	padding: 18px 22px;
	border-radius: 12px;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	box-shadow: 0 8px 28px rgba(0,0,0,0.35);
	max-width: 92%;
	text-align: center;
}

.hero h1 {
    color: var(--container-bg);
    text-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.hero p {
    color: var(--container-bg);
    text-shadow: 0 6px 18px rgba(0,0,0,0.5);
    font-weight: 700;
}
@media (max-width: 768px) {
	.hero-inner {
		flex-direction: column;
		gap: 12px;
	}
	.hero-text {
		text-align: center;
	}
	/* logo height uses 1em so it matches the h1 font-size when inline */
}
.content {
padding: 60px 40px;
}
.section {
margin-bottom: 60px;
animation: fadeInUp 0.8s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(40px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.section-title {
font-size: 2.5em;
color: var(--text-color);
text-align: center;
margin-bottom: 40px;
position: relative;
padding-bottom: 20px;
font-weight: bold;
}
.section-title::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100px;
height: 4px;
background: var(--accent-primary);
border-radius: 2px;
}
/* About card */
.about-card {
	background: var(--card-bg);
	padding: 40px;
	border-radius: 20px;
	line-height: 2;
	font-size: 1.15em;
	color: var(--text-color);
}
.about-card p { margin-bottom: 20px; }
.about-card .about-title { color: var(--text-color); font-size: 1.2em; display: inline-block; margin-bottom: 8px; font-weight: 700; }
.text-accent-dark { color: var(--accent-dark); font-weight: 600; }

/* Service / Process */
.process-card {
	background: var(--container-bg);
	padding: 40px;
	border-radius: 20px;
	box-shadow: 0 5px 20px var(--shadow-light);
	border: 1px solid var(--card-border);
}
.process-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	text-align: center;
}
.process-step { padding: 20px; }
.process-icon { font-size: 3em; margin-bottom: 10px; }
.process-icon.primary { color: var(--accent-primary); }
.process-icon.secondary { color: var(--accent-secondary); }
.process-icon.dark { color: var(--accent-dark); }
.process-title { color: var(--text-color); margin-bottom: 10px; font-size: 1.3em; }
.process-desc { color: var(--text-muted); }

/* Footer tweaks */
.footer .lead { font-size: 1.3em; font-weight: bold; margin-bottom: 15px; }
.footer .copyright { margin-top: 20px; opacity: 0.8; }
/* 統計數據 */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 30px;
margin-bottom: 60px;
}
.stat-card {
background: var(--card-bg);
padding: 40px 30px;
border-radius: 20px;
text-align: center;
box-shadow: 0 10px 30px var(--shadow-medium);
transition: transform 0.3s ease;
border: 1px solid var(--card-border);
}
.stat-card:hover {
transform: translateY(-10px) scale(1.02);
box-shadow: 0 15px 40px var(--shadow-heavy);
}
.stat-card .number {
font-size: 3.5em;
font-weight: bold;
color: var(--text-color);
display: block;
}
.stat-card .label {
color: var(--text-color);
font-size: 1.2em;
margin-top: 10px;
font-weight: 600;
}
/* 服務項目卡片 */
.service-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-top: 40px;
}
.service-card {
background: var(--container-bg);
border-radius: 20px;
padding: 35px;
box-shadow: 0 5px 20px var(--shadow-light);
transition: all 0.3s ease;
border: 2px solid var(--card-border);
}
.service-card:hover {
box-shadow: 0 15px 40px var(--shadow-medium);
transform: translateY(-5px);
border-color: var(--accent-primary);
}
.service-card .icon {
font-size: 4em;
margin-bottom: 20px;
}
.service-card h3 {
color: var(--text-color);
font-size: 1.8em;
margin-bottom: 15px;
font-weight: bold;
}
.service-card ul {
list-style: none;
padding: 0;
}
.service-card li {
padding: 10px 0;
color: var(--text-color);
font-size: 1.1em;
border-bottom: 1px dashed var(--card-border);
}
.service-card li:last-child {
border-bottom: none;
}
.service-card li::before {
content: '✓';
color: var(--accent-dark);
font-weight: bold;
margin-right: 10px;
font-size: 1.2em;
}
/* 相片輪播 */
.gallery-wrapper {
background: var(--card-bg);
padding: 50px 20px;
border-radius: 20px;
margin-top: 40px;
}
.gallery-container {
position: relative;
max-width: 900px;
margin: 0 auto;
overflow: hidden;
border-radius: 20px;
box-shadow: 0 15px 50px var(--shadow-medium);
}
.gallery-slides {
display: flex;
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-slide {
min-width: 100%;
height: 500px;
position: relative;
background: var(--accent-primary);
}
.gallery-slide img {
width: 100%;
height: 100%;
object-fit: cover;
}
.slide-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
background: var(--accent-secondary);
color: var(--container-bg);
padding: 40px;
text-align: center;
}
.slide-icon {
font-size: 6em;
margin-bottom: 20px;
animation: bounce 2s infinite;
}
@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
}
.slide-caption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(45, 62, 45, 0.92);
color: var(--container-bg);
padding: 30px;
}
.slide-caption h3 {
font-size: 1.8em;
margin-bottom: 10px;
font-weight: bold;
}
.slide-caption p {
font-size: 1.1em;
opacity: 0.95;
}
.gallery-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: var(--accent-primary);
border: none;
width: 60px;
height: 60px;
border-radius: 50%;
font-size: 2em;
color: var(--container-bg);
cursor: pointer;
transition: all 0.3s ease;
z-index: 10;
font-weight: bold;
}
.gallery-arrow:hover {
background: var(--accent-dark);
transform: translateY(-50%) scale(1.1);
box-shadow: 0 8px 20px var(--shadow-medium);
}
.gallery-arrow:active {
transform: translateY(-50%) scale(1.05);
}
.gallery-arrow.prev {
left: 20px;
}
.gallery-arrow.next {
right: 20px;
}
.gallery-dots {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 12px;
margin-top: 25px;
max-width: 100%;
padding: 6px 8px;
box-sizing: border-box;
}
.dot {
width: 14px;
height: 14px;
border-radius: 50%;
background: #B8CDB0;
cursor: pointer;
transition: all 0.3s ease;
border: 2px solid transparent;
}
.dot.active {
background: var(--accent-dark);
width: 40px;
border-radius: 7px;
border-color: var(--accent-primary);
}
.dot:hover {
background: var(--accent-primary);
}
/* 優勢列表 */
.advantages {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 25px;
margin-top: 40px;
}
.advantage-item {
background: var(--card-bg);
padding: 30px;
border-radius: 15px;
border-left: 5px solid var(--accent-dark);
transition: all 0.3s ease;
}
.advantage-item:hover {
transform: translateX(10px);
box-shadow: 0 8px 25px var(--shadow-light);
}
.advantage-item strong {
color: var(--text-color);
font-size: 1.4em;
font-weight: bold;
}
.advantage-item p {
color: var(--text-color);
line-height: 1.8;
margin-top: 10px;
font-size: 1.1em;
}
/* 置底聯絡按鈕 - 統一浮動樣式 */
.bottom-contact-bar {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 15px;
z-index: 999;
padding: 0;
}
.bottom-btn {
padding: 20px 40px;
border: none;
font-size: 1.3em;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
text-decoration: none;
color: white;
font-family: 'Microsoft JhengHei', Arial, sans-serif;
border-radius: 50px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
min-width: 200px;
}
.bottom-btn .icon {
font-size: 1.5em;
animation: wiggle 1.5s ease-in-out infinite;
}
@keyframes wiggle {
0%, 100% {
transform: rotate(0deg);
}
25% {
transform: rotate(-8deg);
}
75% {
transform: rotate(8deg);
}
}
.bottom-btn.line {
background: var(--cta-line);
}
.bottom-btn.phone {
background: var(--cta-phone);
}
.bottom-btn:hover {
filter: brightness(1.1);
transform: translateY(-5px) scale(1.05);
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}
.bottom-btn:active {
transform: translateY(-2px) scale(1.02);
}
.footer {
background: var(--hero-bg);
color: var(--text-color);
text-align: center;
padding: 40px 20px 120px 20px; /* 底部多留空間給按鈕 */
margin-top: 60px;
}
.footer p {
margin: 10px 0;
font-size: 1.1em;
font-weight: 500;
}
/* 手機版樣式 */
@media (max-width: 768px) {
body {
padding-bottom: 100px;
}
.hero {
padding: 60px 20px;
}

	/* Shrink hero-text padding on small screens */
	.hero-text {
		padding: 12px 14px;
		border-radius: 10px;
	}
.hero h1 {
font-size: 2.5em;
}
.hero p {
font-size: 1.2em;
}
.content {
padding: 40px 20px;
}
.section-title {
font-size: 2em;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}
.stat-card {
padding: 25px 15px;
}
.stat-card .number {
font-size: 2.5em;
}
.stat-card .label {
font-size: 1em;
}
.service-cards {
grid-template-columns: 1fr;
gap: 20px;
}
.gallery-slide {
height: 350px;
}
.slide-icon {
font-size: 4em;
}
.gallery-arrow {
width: 45px;
height: 45px;
font-size: 1.5em;
}
.gallery-arrow.prev {
left: 10px;
}
.gallery-arrow.next {
right: 10px;
}
/* 手機版調整：讓點點換行並縮小尺寸，避免水平溢出 */
.gallery-dots {
	gap: 8px;
}
.dot {
	width: 10px;
	height: 10px;
}
.dot.active {
	width: 28px;
	border-radius: 6px;
}
/* 手機版：浮動置底按鈕 */
.bottom-contact-bar {
bottom: 15px;
left: 50%;
transform: translateX(-50%);
flex-direction: row;
gap: 10px;
width: auto;
padding: 0 10px;
}
.bottom-btn {
padding: 18px 25px;
font-size: 1.05em;
min-width: 150px;
}
.bottom-btn .icon {
font-size: 1.3em;
}
.bottom-btn .text {
font-size: 0.95em;
}
.footer {
padding-bottom: 100px;
}
}
/* 桌面版樣式 */
@media (min-width: 769px) {
/* 桌面版：也是浮動置底 */
.bottom-contact-bar {
position: fixed;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
}
body {
padding-bottom: 120px;
}
.footer {
padding-bottom: 140px;
}
}
