/* 宝梅智能 - 顶部栏 & 页脚 & 主导航 */

.baomei-header-wrap {
	position: relative;
	z-index: 100;
}

.baomei-topbar {
	background: #121a2e;
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.baomei-topbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.baomei-topbar-left,
.baomei-topbar-right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
}

.baomei-topbar-left span i,
.baomei-topbar-right a i {
	color: var(--primary-color, #ff5e3a);
	margin-right: 6px;
}

.baomei-topbar-right a {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
	transition: color 0.2s;
}

.baomei-topbar-right a:hover {
	color: var(--primary-color, #ff5e3a);
}

/* 主导航区域 */
.baomei-main-header,
#page-site-header.baomei-main-header {
	background: #fff !important;
	background-image: none !important;
	box-shadow: 0 2px 16px rgba(26, 35, 64, 0.08);
}

.baomei-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 0;
}

.baomei-header-brand {
	flex-shrink: 0;
}

.baomei-logo-link {
	display: flex;
	align-items: center;
	text-decoration: none !important;
	color: #1a2340;
}

.baomei-logo-img {
	display: block;
	height: 52px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

.baomei-primary-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.baomei-menu,
.baomei-primary-nav .menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.baomei-menu > li,
.baomei-primary-nav .menu > li {
	display: inline-block;
	margin: 0;
	position: relative;
}

.baomei-menu > li > a,
.baomei-primary-nav .menu > li > a {
	display: block;
	padding: 10px 16px;
	color: #1a2340;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: color 0.2s, background 0.2s;
}

.baomei-primary-nav.main-navigation ul li {
	display: inline-block;
	margin: 0;
}

.baomei-primary-nav.main-navigation ul li a {
	color: #1a2340;
	padding: 10px 16px;
}

.baomei-primary-nav.main-navigation ul li a:hover,
.baomei-primary-nav.main-navigation li.current-menu-item > a,
.baomei-primary-nav.main-navigation li.current_page_item > a,
.baomei-menu > li > a:hover,
.baomei-menu > li.current-menu-item > a,
.baomei-menu > li.current_page_item > a {
	color: var(--primary-color, #ff5e3a);
	background: rgba(255, 94, 58, 0.08);
}

.baomei-header-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--primary-color, #ff5e3a);
	color: #fff !important;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	flex-shrink: 0;
	transition: background 0.2s, transform 0.2s;
	box-shadow: 0 4px 14px rgba(255, 94, 58, 0.3);
}

.baomei-header-phone:hover {
	background: #e54e2a;
	transform: translateY(-1px);
}

/* 应用领域下拉 — 纯悬停，无点击 */
.baomei-nav-apps-trigger {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	color: #1a2340;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	cursor: default;
	user-select: none;
}

.baomei-nav-apps:hover .baomei-nav-apps-trigger {
	color: var(--primary-color, #ff5e3a);
	background: rgba(255, 94, 58, 0.08);
}

.baomei-nav-caret {
	font-size: 11px;
	transition: transform 0.25s;
}

.baomei-nav-apps:hover .baomei-nav-caret {
	transform: rotate(180deg);
}

.baomei-apps-dropdown {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	min-width: 560px;
	padding-top: 10px;
	background: transparent;
	box-shadow: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 200;
	pointer-events: none;
}

.baomei-nav-apps:hover .baomei-apps-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.baomei-apps-dropdown-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(26, 35, 64, 0.16);
	padding: 16px;
}

.baomei-apps-dropdown-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 8px;
	text-decoration: none !important;
	color: #1a2340;
	transition: background 0.2s;
}

.baomei-apps-dropdown-item:hover {
	background: #f4f6fa;
}

.baomei-apps-dropdown-icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--primary-color, #ff5e3a), #ff8060);
	border-radius: 10px;
	color: #fff;
	font-size: 16px;
}

.baomei-apps-dropdown-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.baomei-apps-dropdown-text strong {
	font-size: 14px;
	font-weight: 700;
	color: #1a2340;
	line-height: 1.3;
}

.baomei-apps-dropdown-text small {
	font-size: 12px;
	color: #778;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.baomei-apps-dropdown-item:hover .baomei-apps-dropdown-text strong {
	color: var(--primary-color, #ff5e3a);
}

/* 新闻中心下拉 */
.baomei-nav-dropdown-link {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
}

.baomei-nav-news:hover .baomei-nav-dropdown-link {
	color: var(--primary-color, #ff5e3a);
	background: rgba(255, 94, 58, 0.08);
}

.baomei-nav-news:hover .baomei-nav-caret {
	transform: rotate(180deg);
}

.baomei-nav-news:hover .baomei-apps-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.baomei-news-dropdown {
	min-width: 360px;
}

.baomei-news-dropdown-grid {
	grid-template-columns: 1fr;
}

/* 隐藏主题默认顶栏 */
.top-header {
	display: none !important;
}

.header-menu-inner {
	padding: 0 !important;
}

.header-img-bg:not(.baomei-main-header) {
	background: #fff !important;
}

#page-site-header {
	background-color: #fff !important;
	background-image: none !important;
	box-shadow: 0 2px 16px rgba(26, 35, 64, 0.08);
}

#page-site-header .site-header {
	background: transparent;
}

/* 页脚 */
.baomei-footer-main {
	background: #121a2e !important;
	padding: 56px 0 40px;
}

.site-footer {
	background: #121a2e !important;
}

.baomei-footer-title {
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 18px;
	position: relative;
	padding-bottom: 10px;
}

.baomei-footer-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 2px;
	background: var(--primary-color, #ff5e3a);
}

.baomei-footer-desc {
	color: rgba(255, 255, 255, 0.65);
	font-size: 14px;
	line-height: 1.75;
	margin: 0;
}

.baomei-footer-links,
.baomei-footer-contact {
	list-style: none;
	padding: 0;
	margin: 0;
}

.baomei-footer-links li,
.baomei-footer-contact li {
	padding: 5px 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
}

.baomei-footer-links a,
.baomei-footer-contact a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color 0.2s;
}

.baomei-footer-links a:hover,
.baomei-footer-contact a:hover {
	color: var(--primary-color, #ff5e3a);
}

.baomei-footer-contact i {
	color: var(--primary-color, #ff5e3a);
	width: 18px;
	margin-right: 6px;
}

.baomei-footer-bottom {
	background: #0d1220;
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.baomei-footer-bottom p {
	margin: 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.45);
	font-size: 13px;
}

.baomei-footer-icp {
	display: inline-block;
	margin-left: 12px;
}

.baomei-footer-icp a {
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
	transition: color 0.2s;
}

.baomei-footer-icp a:hover {
	color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 575px) {
	.baomei-footer-icp {
		display: block;
		margin: 8px 0 0;
	}
}

.baomei-footer-col {
	margin-bottom: 24px;
}

@media (max-width: 991px) {
	.baomei-topbar .container {
		justify-content: center;
		text-align: center;
	}

	.baomei-topbar-left,
	.baomei-topbar-right {
		justify-content: center;
	}

	.baomei-header-inner {
		flex-wrap: wrap;
		justify-content: center;
	}

	.baomei-primary-nav {
		order: 3;
		width: 100%;
		justify-content: center;
	}

	.baomei-menu,
	.baomei-primary-nav .menu {
		justify-content: center;
	}

	.baomei-menu > li > a,
	.baomei-primary-nav .menu > li > a {
		padding: 8px 12px;
		font-size: 14px;
	}

	.baomei-header-phone {
		order: 2;
	}

	.baomei-logo-img {
		height: 44px;
		max-width: 180px;
	}

	.baomei-nav-apps-trigger {
		cursor: pointer;
	}

	.baomei-nav-apps:hover .baomei-apps-dropdown,
	.baomei-nav-news:hover .baomei-apps-dropdown {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	.baomei-apps-dropdown {
		position: static;
		transform: none;
		min-width: 0;
		width: 100%;
		box-shadow: none;
		padding: 8px 0 0;
		opacity: 1;
		visibility: visible;
		display: none;
		pointer-events: auto;
	}

	.baomei-nav-apps.is-open .baomei-apps-dropdown,
	.baomei-nav-news.is-open .baomei-apps-dropdown {
		display: block;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.baomei-apps-dropdown-grid {
		grid-template-columns: 1fr;
	}
}
