/* =============================================
   聯絡我們 — 漢元技研有限公司
   配合首頁 style_new.css 風格
   ============================================= */

/* ---------- Share CSS Custom Properties ---------- */
:root {
	--color-primary: #0a1628;
	--color-primary-light: #132040;
	--color-accent: #2563eb;
	--color-accent-hover: #1d4ed8;
	--color-accent-light: rgba(37, 99, 235, 0.12);
	--color-accent-lighter: rgba(37, 99, 235, 0.06);
	--color-white: #ffffff;
	--color-light: #f1f5f9;
	--color-gray: #94a3b8;
	--color-dark: #1e293b;
	--color-text: #334155;
	--color-heading: #0f172a;
	--font-main: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
	--radius: 12px;
	--radius-sm: 8px;
	--transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-main);
	color: var(--color-text);
	line-height: 1.75;
	background: var(--color-white);
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	text-decoration: none;
	color: inherit;
	transition: var(--transition);
}

ul {
	list-style: none;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* =============================================
   NAVBAR (Shared with index)
   ============================================= */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 20px 0;
	transition: var(--transition);
}

.navbar.scrolled {
	background: rgba(10, 22, 40, 0.95);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	padding: 12px 0;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.logo-zh {
	font-size: 1.25rem;
	font-weight: 900;
	color: var(--color-white);
	letter-spacing: 0.04em;
}

.logo-en {
	font-size: 0.7rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.6);
	letter-spacing: 0.08em;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nav-links a {
	font-size: 0.9rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	padding: 8px 16px;
	border-radius: var(--radius-sm);
	transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
	color: var(--color-white);
	background: rgba(255, 255, 255, 0.1);
}

.nav-links a i {
	margin-right: 6px;
	font-size: 0.85rem;
}

.nav-cta {
	background: var(--color-accent) !important;
	color: var(--color-white) !important;
	padding: 10px 22px !important;
	border-radius: 50px !important;
	font-weight: 600 !important;
}

.nav-cta:hover {
	background: var(--color-accent-hover) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
}

.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-white);
	border-radius: 2px;
	transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
	opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   PAGE HERO
   ============================================= */
.page-hero {
	position: relative;
	min-height: 380px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	padding-top: 80px;
}

.page-hero-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #0a1628 0%, #132040 40%, #1a2a4a 100%);
	z-index: 0;
}

.page-hero-bg::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(ellipse 80% 60% at 70% 40%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
		radial-gradient(ellipse 60% 50% at 20% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
}

.page-hero-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 60px 60px;
	z-index: 1;
}

.page-hero-content {
	position: relative;
	z-index: 2;
}

.breadcrumb {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 20px;
}

.breadcrumb a {
	color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a:hover {
	color: var(--color-accent);
}

.breadcrumb-sep {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.3);
}

.page-hero-title {
	font-size: 2.5rem;
	font-weight: 900;
	color: var(--color-white);
	margin-bottom: 12px;
	letter-spacing: -0.01em;
}

.page-hero-subtitle {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.55);
	font-weight: 300;
}

/* =============================================
   CONTACT INFO SECTION
   ============================================= */
.contact-info {
	padding: 64px 0;
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 40px;
	align-items: start;
}

/* ===== Contact Card ===== */
.contact-card {
	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	padding: 40px 32px;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 32px;
}

.contact-card-header i {
	font-size: 1.5rem;
	color: var(--color-accent);
}

.contact-card-header h2 {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--color-heading);
}

.contact-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 24px;
}

.contact-item:last-child {
	margin-bottom: 0;
}

.contact-icon {
	width: 44px;
	height: 44px;
	border-radius: var(--radius-sm);
	background: var(--color-accent-light);
	color: var(--color-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	flex-shrink: 0;
}

.contact-text {
	flex: 1;
	padding-top: 2px;
}

.contact-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--color-gray);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
}

.contact-text p {
	font-size: 0.95rem;
	color: var(--color-text);
	line-height: 1.6;
}

.contact-text a {
	font-size: 0.95rem;
	color: var(--color-accent);
	font-weight: 500;
}

.contact-text a:hover {
	color: var(--color-accent-hover);
	text-decoration: underline;
}

.contact-divider {
	height: 1px;
	background: var(--color-light);
	margin: 24px 0;
}

/* ===== Map Card ===== */
.map-card {
	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	padding: 40px 32px;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.map-group {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.map-item {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.map-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.map-header i {
	color: var(--color-accent);
	font-size: 1.1rem;
}

.map-header h3 {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--color-heading);
}

.map-header span {
	font-size: 0.85rem;
	color: var(--color-gray);
}

.map-embed {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	border-radius: var(--radius-sm);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.map-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ===== Map divider ===== */
.map-group .map-item:not(:last-child) {
	padding-bottom: 32px;
	border-bottom: 1px solid var(--color-light);
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
	background: linear-gradient(135deg, #0a1628 0%, #132040 50%, #1a2a4a 100%);
	padding: 60px 0;
	position: relative;
	overflow: hidden;
}

.cta-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 60px 60px;
}

.cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	position: relative;
	z-index: 1;
}

.cta-text h2 {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 8px;
}

.cta-text p {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.6);
}

.cta-actions {
	display: flex;
	gap: 16px;
	flex-shrink: 0;
}

.cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 50px;
	font-size: 0.95rem;
	font-weight: 600;
	transition: var(--transition);
	white-space: nowrap;
}

.cta-btn.primary {
	background: var(--color-accent);
	color: var(--color-white);
}

.cta-btn.primary:hover {
	background: var(--color-accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.cta-btn.outline {
	background: transparent;
	color: var(--color-white);
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn.outline:hover {
	border-color: var(--color-white);
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
	background: var(--color-primary);
	padding: 60px 0 0;
	color: rgba(255, 255, 255, 0.6);
}

.footer-content {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 60px;
	padding-bottom: 48px;
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer-logo {
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--color-white);
	letter-spacing: 0.04em;
}

.footer-brand p {
	font-size: 0.95rem;
}

.footer-tagline {
	font-size: 0.9rem !important;
	color: rgba(255, 255, 255, 0.4) !important;
	font-style: italic;
}

.footer-links h4 {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-white);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 20px;
}

.footer-links ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-links a {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.5);
	transition: var(--transition);
}

.footer-links a:hover {
	color: var(--color-accent);
	padding-left: 4px;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 24px 0;
	text-align: center;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.3);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
	.contact-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 768px) {
	.nav-toggle {
		display: flex;
	}

	.nav-links {
		position: fixed;
		top: 0;
		right: -100%;
		width: 280px;
		height: 100vh;
		background: var(--color-primary);
		flex-direction: column;
		padding: 80px 32px 32px;
		gap: 4px;
		transition: right 0.35s ease;
		box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
	}

	.nav-links.active {
		right: 0;
	}

	.nav-links a {
		width: 100%;
		padding: 12px 16px;
		font-size: 1rem;
	}

	.nav-cta {
		margin-top: 16px;
		text-align: center;
	}

	.page-hero {
		min-height: 300px;
		padding-top: 100px;
	}

	.page-hero-title {
		font-size: 2rem;
	}

	.contact-info {
		padding: 48px 0;
	}

	.contact-card {
		padding: 32px 24px;
	}

	.cta-inner {
		flex-direction: column;
		text-align: center;
		gap: 24px;
	}

	.cta-actions {
		flex-direction: column;
		width: 100%;
	}

	.cta-btn {
		justify-content: center;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 480px) {
	.page-hero-title {
		font-size: 1.6rem;
	}

	.contact-card {
		padding: 24px 20px;
	}

	.contact-item {
		gap: 12px;
	}

	.cta-text h2 {
		font-size: 1.3rem;
	}
}
