/*
Theme Name: JiTuiGEO Wenzhang
Theme URI: https://www.jituigeo.cn/
Description: GeneratePress child theme with the same navigation as frontend/home.html.
Author: OpenAI
Template: generatepress
Version: 1.0.0
Text Domain: jituigeowenzhang
*/

:root {
	--jtgw-header-height: 5rem;
	--jtgw-header-border: #f1f5f9;
	--jtgw-text: #0f172a;
	--jtgw-text-soft: #475569;
	--jtgw-surface: #ffffff;
	--jtgw-surface-soft: #f8fafc;
	--jtgw-primary: #4f46e5;
	--jtgw-primary-soft: #eef2ff;
}

.jtgw-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--jtgw-header-height);
	border-bottom: 1px solid var(--jtgw-header-border);
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.jtgw-header__container {
	max-width: 1200px;
	height: 100%;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.jtgw-navbar {
	display: flex;
	align-items: center;
	height: 100%;
	gap: 1rem;
}

.jtgw-logo-link {
	margin-right: 1rem;
	text-decoration: none;
	flex-shrink: 0;
}

.jtgw-logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: transform 200ms ease;
}

.jtgw-logo:hover {
	transform: translateY(-2px);
}

.jtgw-logo-icon,
.jtgw-logo-fallback {
	width: 2rem;
	height: 2rem;
	border-radius: 0.375rem;
	flex-shrink: 0;
}

.jtgw-logo-icon {
	display: block;
	object-fit: contain;
}

.jtgw-logo-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--jtgw-primary), #3b82f6);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 800;
}

.jtgw-brand {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.jtgw-brand-name {
	color: var(--jtgw-text);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.jtgw-brand-subtitle {
	margin-top: 0.375rem;
	color: var(--jtgw-primary);
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.jtgw-nav-menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	flex: 1 1 auto;
	min-width: 0;
}

.jtgw-nav-link {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	border-radius: 0.75rem;
	color: var(--jtgw-text-soft);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: all 200ms ease;
	white-space: nowrap;
}

.jtgw-nav-link:hover,
.jtgw-nav-link:focus {
	background: var(--jtgw-surface-soft);
	color: var(--jtgw-primary);
}

.jtgw-nav-link--active {
	background: var(--jtgw-primary-soft);
	color: var(--jtgw-primary);
}

.jtgw-nav-link__icon,
.jtgw-mobile-toggle__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.jtgw-nav-link__icon {
	margin-left: 0.25rem;
}

.jtgw-nav-link__icon svg,
.jtgw-mobile-toggle__icon svg {
	display: block;
	width: 1em;
	height: 1em;
}

.jtgw-nav-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.jtgw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.25rem;
	border: 0;
	border-radius: 0.75rem;
	background: var(--jtgw-primary);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: all 200ms ease;
	white-space: nowrap;
}

.jtgw-button:hover,
.jtgw-button:focus {
	background: #4338ca;
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.22);
	color: #fff;
}

.jtgw-mobile-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	border: 0;
	border-radius: 0.75rem;
	background: transparent;
	color: var(--jtgw-text-soft);
	cursor: pointer;
}

.jtgw-mobile-toggle:hover,
.jtgw-mobile-toggle:focus {
	background: var(--jtgw-surface-soft);
	color: var(--jtgw-text);
}

body.admin-bar .jtgw-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .jtgw-header {
		top: 46px;
	}
}

@media (max-width: 768px) {
	.jtgw-header__container {
		padding: 0 1rem;
	}

	.jtgw-navbar {
		justify-content: space-between;
	}

	.jtgw-nav-menu {
		position: fixed;
		top: var(--jtgw-header-height);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		padding: 1rem;
		background: var(--jtgw-surface);
		border-bottom: 1px solid #e2e8f0;
		box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
		transform: translateY(-110%);
		opacity: 0;
		pointer-events: none;
		transition: all 300ms ease;
		z-index: 999;
	}

	.jtgw-nav-menu.is-active {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	body.admin-bar .jtgw-nav-menu {
		top: calc(var(--jtgw-header-height) + 46px);
	}

	.jtgw-nav-link,
	.jtgw-button {
		width: 100%;
		justify-content: center;
	}

	.jtgw-nav-actions .jtgw-button {
		display: none;
	}

	.jtgw-mobile-toggle {
		display: inline-flex;
	}
}
