/* =============================================
   CANBUS 產品 — 漢元技研有限公司
   配合首頁 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;
	--color-warning-bg: #fffbeb;
	--color-warning-border: #fbbf24;
	--color-warning-text: #92400e;
	--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;
	border-radius: var(--radius-sm);
}

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)
   ============================================= */
.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;
}

/* =============================================
   TECH SPECS BANNER
   ============================================= */
.tech-specs-banner {
	background: var(--color-primary);
	padding: 28px 0;
	position: relative;
	overflow: hidden;
}

.tech-specs-banner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
}

.specs-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

.spec-item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.9rem;
	font-weight: 500;
}

.spec-item i {
	font-size: 1.2rem;
	color: var(--color-accent);
}

.spec-item.highlight i {
	color: #fbbf24;
}

.spec-item.highlight {
	color: #fbbf24;
}

/* =============================================
   PRODUCTS
   ============================================= */
.products {
	padding: 80px 0;
	background: var(--color-light);
}

.product-block {
	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	padding: 48px;
	margin-bottom: 48px;
	transition: var(--transition);
}

.product-block:hover {
	box-shadow: var(--shadow-lg);
}

.product-header {
	margin-bottom: 32px;
}

.product-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-accent);
	background: var(--color-accent-light);
	padding: 6px 16px;
	border-radius: 50px;
	margin-bottom: 16px;
}

.product-tag i {
	font-size: 0.85rem;
}

.product-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--color-heading);
}

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

.product-block-reverse .product-body {
	direction: rtl;
}

.product-block-reverse .product-body > * {
	direction: ltr;
}

.product-content p {
	font-size: 1rem;
	color: var(--color-text);
	line-height: 1.85;
	margin-bottom: 16px;
}

.product-content p:last-child {
	margin-bottom: 0;
}

.product-content strong {
	color: var(--color-heading);
}

.product-content a {
	color: var(--color-accent);
	font-weight: 500;
}

.product-content a:hover {
	text-decoration: underline;
}

/* Product note */
.product-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: var(--color-accent-lighter);
	border: 1px solid rgba(37, 99, 235, 0.15);
	padding: 14px 18px;
	border-radius: var(--radius-sm);
	margin-bottom: 20px;
	font-size: 0.9rem;
	color: var(--color-text);
}

.product-note i {
	color: var(--color-accent);
	font-size: 1rem;
	margin-top: 2px;
	flex-shrink: 0;
}

/* Product contents */
.product-contents {
	margin-top: 24px;
}

.product-contents h3 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--color-heading);
	margin-bottom: 14px;
}

.product-contents h3 i {
	color: var(--color-accent);
	margin-right: 8px;
}

.product-contents ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.product-contents li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	color: var(--color-text);
}

.product-contents li i {
	color: var(--color-accent);
	font-size: 0.85rem;
}

/* Gallery */
.product-gallery {
	display: grid;
	gap: 12px;
	align-items: start;
}

.product-gallery:has(.gallery-item:nth-child(2)) {
	grid-template-columns: 1fr 1fr;
}

.gallery-item {
	border-radius: var(--radius-sm);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	aspect-ratio: 4 / 3;
	transition: var(--transition);
}

.gallery-item.wide {
	aspect-ratio: 16 / 9;
}

.gallery-item:hover {
	transform: scale(1.03);
	box-shadow: var(--shadow-md);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-sm);
}

/* Feature list */
.feature-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.feature-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	background: var(--color-light);
	border-radius: var(--radius-sm);
	transition: var(--transition);
}

.feature-item:hover {
	background: var(--color-accent-lighter);
}

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

.feature-text strong {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-heading);
	margin-bottom: 4px;
}

.feature-text span {
	font-size: 0.9rem;
	color: var(--color-gray);
	line-height: 1.6;
}

/* Case examples */
.case-examples {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-top: 24px;
}

.example-block h4 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--color-heading);
	margin-bottom: 14px;
	padding-left: 12px;
	border-left: 3px solid var(--color-accent);
}

.example-block h4 i {
	color: var(--color-accent);
	margin-right: 6px;
}

.example-desc {
	font-size: 0.9rem;
	color: var(--color-gray);
	margin-bottom: 12px;
}

.example-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.example-gallery.single {
	grid-template-columns: 1fr;
}

.example-gallery .gallery-item {
	aspect-ratio: 4 / 3;
}

.example-gallery.single .gallery-item {
	aspect-ratio: 16 / 9;
}

/* =============================================
   WARNING BANNER
   ============================================= */
.warning-banner {
	background: var(--color-warning-bg);
	border-top: 3px solid var(--color-warning-border);
	padding: 48px 0;
}

.warning-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 32px;
	align-items: center;
}

.warning-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--color-warning-border);
	color: var(--color-warning-text);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	flex-shrink: 0;
}

.warning-content h3 {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--color-warning-text);
	margin-bottom: 14px;
}

.warning-content ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.warning-content li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.95rem;
	color: var(--color-warning-text);
	line-height: 1.6;
}

.warning-content li i {
	margin-top: 3px;
	flex-shrink: 0;
	font-size: 0.9rem;
}

.warning-content li i.fa-times-circle {
	color: #ef4444;
}

.warning-content li i.fa-users {
	color: var(--color-warning-border);
}

.warning-content li strong {
	color: #78350f;
}

.warning-contact {
	text-align: center;
	flex-shrink: 0;
}

.contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-white);
	background: var(--color-accent);
	padding: 14px 28px;
	border-radius: 50px;
	transition: var(--transition);
	margin-bottom: 8px;
}

.contact-btn:hover {
	background: var(--color-accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.contact-email {
	font-size: 0.85rem;
	color: var(--color-gray);
}

/* =============================================
   ANIMATIONS
   ============================================= */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
	opacity: 1;
	transform: translateY(0);
}

.product-block:nth-child(2) { transition-delay: 0.1s; }
.product-block:nth-child(3) { transition-delay: 0.2s; }
.product-block:nth-child(4) { transition-delay: 0.3s; }
.product-block:nth-child(5) { transition-delay: 0.4s; }

/* =============================================
   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) {
	.product-body {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.product-block-reverse .product-body {
		direction: ltr;
	}

	.warning-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.warning-icon {
		margin: 0 auto;
	}

	.warning-content ul {
		align-items: center;
	}

	.warning-content li {
		justify-content: center;
	}

	.example-gallery {
		grid-template-columns: repeat(2, 1fr);
		max-width: 480px;
	}
}

@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;
	}

	.products {
		padding: 48px 0;
	}

	.product-block {
		padding: 32px 24px;
		margin-bottom: 32px;
	}

	.product-title {
		font-size: 1.4rem;
	}

	.specs-row {
		gap: 20px;
	}

	.spec-item {
		font-size: 0.8rem;
	}

	.product-gallery:has(.gallery-item:nth-child(2)) {
		grid-template-columns: 1fr;
		max-width: 320px;
	}

	.example-gallery {
		grid-template-columns: 1fr;
		max-width: 480px;
	}

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

	.warning-banner {
		padding: 32px 0;
	}
}

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

	.product-title {
		font-size: 1.25rem;
	}

	.product-block {
		padding: 24px 20px;
	}

	.example-gallery {
		grid-template-columns: 1fr;
		max-width: 400px;
	}

	.product-gallery:has(.gallery-item:nth-child(2)) {
		grid-template-columns: 1fr;
		max-width: 320px;
	}
}
