/* 导航栏 */
.header {
	background: var(--dark-color);
	/* height: calc(var(--ratio) * 80); */
	left: 0;
	/* padding: calc(var(--ratio) * 19) 0; */
	position: fixed;
	top: 0;
	transition-duration: .4s;
	transition-property: all;
	transition-timing-function: ease-in-out;
	width: 100%;
	z-index: 1000;
}

.container-header {
	align-items: center;
	display: flex;
	margin: 0 auto;
	max-width: var(--max-viewport-width);
	padding: 0 calc(var(--ratio) * 144);
	margin: 0 auto;
	/* padding: 0 20px; */
	backdrop-filter: blur(10px);
	/* border-radius: 20px; */
}

.logo {
	/* 
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--primary-color); 
	*/
	/* padding-top: 0.425rem; */
	text-decoration: none;
}

.log_img {
	display: block;
	margin-right: calc(var(--ratio) * 64);
	width: calc(var(--ratio) * 140);
}

.navbar {
	width: auto;
	margin-right: 3.125rem;
}

.navbar ul {
	display: flex;
	list-style: none;
}

.navbar ul li a {
	padding: 10px 20px;
	text-decoration: none;
	color: var(--dark-color);
	font-weight: 500;
	transition: color 0.3s;
	color: white;
}

.navbar ul li a:hover {
	color: var(--primary-color);
}

.menu-toggle {
	border: none;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	overflow: hidden;
	position: relative;
	text-align: center;
	z-index: 1;
	background-color: #4CAF50;
}

.menu-toggle a {
	text-decoration: none;
	color: #fff;
	padding: 5px 15px;
	border: 0px solid #ccc;
	border-radius: 5px;
	transition: background-color 0.3s;
}

.menu-toggle a:hover {
	background-color: #f5f5f5;
}

.customize-btn {
	display: inline-block;
	padding: 5px 20px;
	color: white;
	text-align: center;
	text-decoration: none;
	font-family: Arial, sans-serif;
	font-size: 16px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.customize-btn:hover {
	background-color: #45a049;
}

.customize-btn:active {
	background-color: #3e8e41;
	transform: translateY(1px);
}

.nav-buttons {
	display: flex;
	align-items: center;
	position: absolute;
	right: 80px;
	z-index: 1;
}

.btn {
	padding: 5px 15px;
	border-radius: 5px;
	/* font-weight: 400; */
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	/* fonnt-size: 10px; */
}

.btn-outline {
	background: linear-gradient(270deg, #2563eb, 21.15%, #2563eb);
	border: 1px solid var(--primary-color);
	color: var(--text);
	margin-right: 15px;
}

.btn-outline:hover {
	background: linear-gradient(270deg, #fff, 21.15%, #fff);
	color: #0e1628;
	border: 0px solid var(--accent);
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 198, 255, 0.3);
}

.btn-primary {
	background: linear-gradient(135deg, var(--accent-dark), var(--accent));
	color: white;
	border: none;
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4);
}

.nav-links {
	display: flex;
	list-style: none;
	height: 100%;
}

.nav-item {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
	padding: 0 20px;
	transition: all 0.3s ease;
}

.nav-link {
	color: #e0e0ff;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.3s ease;
	padding: 28px 15px;
}

.nav-link i {
	font-size: 14px;
	transition: transform 0.3s ease;
}

.nav-item:hover .nav-link {
	color: var(--text);
	background: linear-gradient(90deg, rgba(78, 137, 255, 0.2), rgba(142, 68, 173, 0.2));
}

.nav-item:hover .nav-link i {
	transform: rotate(180deg);
}

/* 子菜单样式 */
.dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	width: 180px;
	background: rgba(20, 25, 45, 0.95);
	border-radius: 0 0 8px 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.4s ease;
	z-index: 1000;
	border-top: 2px solid #4e89ff;
}

.nav-item:hover .dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-item {
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-link {
	display: flex;
	padding: 14px 20px;
	color: #d0d0ff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 400;
	transition: all 0.3s ease;
}

.dropdown-link i {
	margin-right: 12px;
	color: #4e89ff;
	font-size: 14px;
	width: 20px;
	text-align: center;
}

.dropdown-link:hover {
	background: rgba(78, 137, 255, 0.2);
	color: #ffffff;
	padding-left: 25px;
}