@charset "utf-8";

/* 顶部深蓝条 */
.site-topbar {
	background: #002b5e;
	color: #fff;
	text-align: left;
	padding: 0;
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
	font-size: 13px;
	line-height: 1.4;
}

.topbar-inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 10px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: nowrap;
}

.topbar-welcome {
	margin: 0;
	padding-left: 50px;
	flex: 0 1 auto;
	text-align: left;
	font-size: 13px;
	font-weight: 400;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.topbar-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
	flex: 0 0 auto;
	margin-left: auto;
	padding-right: 50px;
}

/* 圆角搜索框 */
.topbar-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 220px;
	height: 32px;
	margin: 0;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	overflow: hidden;
}

.topbar-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 36px 0 14px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 12px;
	font-family: inherit;
	outline: none;
}

.topbar-search input[type="search"]::placeholder {
	color: rgba(255, 255, 255, 0.75);
}

.topbar-search input[type="search"]::-webkit-search-cancel-button {
	display: none;
}

.topbar-search__btn {
	position: absolute;
	right: 0;
	top: 0;
	width: 34px;
	height: 100%;
	border: 0;
	padding: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.topbar-search__btn:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* 右侧链接 */
.topbar-links {
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.topbar-links a {
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	transition: opacity 0.2s ease;
}

.topbar-links a:hover {
	opacity: 0.85;
	text-decoration: underline;
}

.topbar-links__sep {
	color: rgba(255, 255, 255, 0.55);
	font-size: 12px;
	user-select: none;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 900px) {
	.topbar-inner {
		flex-wrap: wrap;
	}

	.topbar-welcome {
		flex: 1 1 100%;
		padding-left: 20px;
		text-align: left;
		white-space: normal;
	}

	.topbar-right {
		flex: 1 1 100%;
		justify-content: flex-end;
		margin-left: 0;
		padding-right: 20px;
		flex-wrap: wrap;
	}

	.topbar-search {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
	}
}
