/* 全局重置 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	height: 100%;
}

body {
	background: #eef2f7;
	height: 100%;
}

.center_box {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* 导航栏容器 - 白色圆角背景 */
.navbar-custom {
	background: #ffffff;
	border-radius: 50px;
	padding: 0.93rem 1rem;
	margin: 1rem auto;
	max-width: 80%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	/* 👇 新增：固定顶部的核心样式 */
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	/* 层级最高 */
	z-index: 999;
}

/* ====================== 左中右三栏布局核心 ====================== */
.navbar-left {
	flex: 0 0 auto;
}

.navbar-center {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.navbar-right {
	flex: 0 0 auto;
}


/* Logo样式 */
.navbar-brand {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	font-size: 2.2rem;
	font-weight: 700;
	color: #000000 !important;
}

/* 魔方Logo */
.logo-icon {
	width: 30px;
	height: 30px;
	background: url(../image/logo.png);
	background-size: 100%;
}

/* 导航菜单 - 居中 + 宽松间距 */
.navbar-nav {
	gap: 3.5rem;
	/* 这里扩大了菜单间距，不再紧凑！ */
	align-items: center;
	flex-direction: row;
}

.nav-link {
	font-size: 16px;
	color: #333333;
	padding: 0.5rem 0 !important;
	position: relative;
}

.nav-link.active {
	color: #1D2939 !important;
	font-weight: 600;
}


/* 激活态圆点 - PC + 移动端 统一显示在左侧 */
.nav-link.active::before {
	content: '';
	position: absolute;
	left: -1.2rem;
	top: 50%;
	transform: translateY(-50%);
	width: 10px;
	height: 10px;
	background: #1D2939;
	border-radius: 50%;
}

/* 下拉菜单 */
.dropdown-menu {
	border: none;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
	font-size: 1rem;
	padding: 0.6rem 1.2rem;
}

.dropdown-item:hover {
	background: #f0f8ff;
	color: #0072ff;
}

/* 按钮组 */
.btn-group-nav {
	display: flex;
	gap: 0.8rem;
	align-items: center;
}

/* 注册按钮 */
.btn-register {
	background: transparent;
	color: #01ABF4;
	border-radius: 22px;
	padding: 0.37rem 1.6rem;
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 2px solid #00AAF3;
}

.btn-register:hover {
	background: #00c6ff;
	color: #fff;
}

/* 登录按钮 */
.btn-login {
	color: #fff;
	border: none;
	border-radius: 22px;
	padding: 0.5rem 1.6rem;
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.3s ease;
	background: linear-gradient(90deg, #00AAF3 5.05%, #17E4E7 93.99%), #17E4E7;
}

.btn-login:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

/* ====================== 响应式核心 ====================== */
/* 平板 + 移动端适配 */
@media (max-width: 991px) {
	.navbar-custom {
		border-radius: 24px;
		padding: 0.8rem 1.2rem;
	}

	.navbar-brand {
		font-size: 1.6rem;
	}

	.logo-icon {
		width: 38px;
		height: 38px;
	}

	/* 移动端菜单垂直居中 */
	.navbar-collapse {
		margin-top: 1rem;
		text-align: center;
	}

	.navbar-nav {
		flex-direction: column;
		gap: 0.5rem;
	}

	.nav-link {
		font-size: 16px;
		padding: 0.8rem 0 !important;
	}

	.btn-group-nav {
		margin-top: 1rem;
		justify-content: center;
	}
}

/* 手机小屏优化 */
@media (max-width: 576px) {
	.navbar-custom {
		border-radius: 20px;
		padding: 0.6rem 1rem;
	}

	.navbar-brand {
		font-size: 1.4rem;
	}

	.logo-icon {
		width: 34px;
		height: 34px;
	}

	.btn-register,
	.btn-login {
		padding: 0.5rem 1.2rem;
		font-size: 1rem;
	}
}

.right-name {
	cursor: pointer;
	position: relative;
}

.right-name img {
	width: 16px;
	height: 16px;
}

.btn-group-nav .avatar {
	width: 40px;
	height: 40px;
}

.show-block {
	position: absolute;
	z-index: 5;
	top: 60px;
	right: -5px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.right-name:hover .show-block {
	opacity: 1;
	visibility: visible;
}

.show-block .list {
	background: #FFF;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 135px;
	height: 49px;
	transition: all 0.3s ease;
}

.show-block .list a {
	text-decoration: none !important;
	color: inherit !important;
	cursor: pointer !important;
	background: none !important;
	border: none !important;
	outline: none !important;
}

.show-block .list:hover {
	color: #12D6EA;
	background: #FAFAFA;
}

/* ========== 空数据状态（前台 header_index 页面共用） ========== */
.table-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 280px;
	padding: 40px 16px;
	box-sizing: border-box;
	text-align: center;
}

.table-empty__img {
	display: block;
	width: 400px;
	max-width: 100%;
	height: auto;
	aspect-ratio: 400 / 212;
	padding: 4px 31.69px 0 31px;
	box-sizing: border-box;
}

.table-empty__text {
	color: #4D6173;
	font-family: "DM Sans", sans-serif;
	font-size: 19.428px;
	font-weight: 500;
	line-height: normal;
	margin-top: 39px;
}

@media (max-width: 576px) {
	.table-empty {
		min-height: 220px;
		padding: 24px 12px;
	}

	.table-empty__img {
		width: 240px;
		padding: 0;
	}

	.table-empty__text {
		font-size: 16px;
		margin-top: 20px;
	}
}