body {
	transition: background-color 0.5s ease, color 0.3s ease;
	padding: 30px;
}

.ming-an {
	cursor: pointer;
	user-select: none;
	/* 禁止文字选中 */
	font-size: 24px !important;
	/* 确保表情符号大小 */
}

/* 明暗主题变量 */
:root {
	--bg-color: #f3e9ff;
	--text-color: #2d1949;
	--primary-color: #7c3aed;
	--dark-bg: #2d1a5f;
	--dark-text: #e9d5ff;
	--gradient: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 100%);
	--particle-light: rgba(196, 181, 253, 0.5);
	--particle-dark: rgba(139, 92, 246, 0.8);
	--transition-speed: 0.3s;
}

/* 添加星空背景容器 */
body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background: var(--gradient);
	opacity: 0.1;
	transition: all 0.5s ease;
}

.dark-mode body::before {
	opacity: 0.2;
}
.mascot {
    position: absolute;
    right: 10%;
    top: 50px;
    width: 100px;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.mascot:hover {
    transform: scale(1.05) rotate(-10deg) !important;
    filter: drop-shadow(0 0 10px rgba(189, 147, 249, 0.5));
}
.side-nav {
	background-color: var(--dark-bg);
	color: var(--dark-text);
	box-shadow: 2px 0 5px var(--shadow-color);
}

.nav-toggle {
	background-color: var(--primary-color);
}

.menu-button {
	background-color: var(--primary-color);
	box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.3);
}

@media (max-width: 768px) {
	.side-nav {
		background-color: var(--dark-bg);
	}
}

.ming-an {
	background-color: var(--bg-color);
	color: var(--text-color);
	transition: background-color 0.3s, color 0.3s;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in {
	animation: fadeIn 0.8s ease-out forwards;
	opacity: 0;
}

.loading {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #f3f4f6;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.loading-spinner {
	width: 50px;
	height: 50px;
}

.loading-spinner::after,
.loading-spinner::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: #3498db;
	animation: pulse 1.5s ease-in-out infinite;
}

.loading-spinner::after {
	animation-delay: 0.75s;
}

@keyframes pulse {
	0% {
		transform: translate(-50%, -50%) scale(0);
		opacity: 1;
	}

	100% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 0;
	}
}
.side-nav {
	position: fixed;
	top: 0;
	left: -300px;
	width: 300px;
	height: 100%;
	background-color: #2c3e50;
	transition: left 0.3s ease-in-out;
	overflow-y: auto;
	z-index: 1000;
	color: #ecf0f1;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.side-nav.open {
	left: 0;
}

.side-nav h2 {
	padding: 20px;
	margin: 0;
	background-color: #34495e;
	color: #ecf0f1;
}

.side-nav ul {
	list-style-type: none;
	padding: 0;
	margin: 0;

}

.side-nav ul li {
	border-bottom: 1px solid #34495e;
}

.side-nav ul li a {
	display: block;
	padding: 15px 20px;
	color: #aaaaff;
	text-decoration: none;
	transition: background-color 0.2s;
}

.side-nav ul li a:hover {
	background-color: #ffffff;
}

.close-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	color: #ecf0f1;
	font-size: 24px;
	cursor: pointer;
}

.nav-toggle {
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 1001;
	color: white;
	border: none;
	padding: 10px;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.nav-toggle.hidden {
	display: none;
}

@media (max-width: 768px) {
	.mascot {
        width: 70px;
        right: 0;
        top: 0;
    }
	.side-nav {
		position: static;
		width: 100%;
		height: auto;
		left: -100%;
	}

	.side-nav.open {
		left: 0;
	}

	.close-btn {
		display: none;
	}

	.nav-toggle {
		display: block;
	}

	.content {
		margin-left: 0;
	}

	.content nav {
		display: none;
	}

}

.content {
	transition: margin-left 0.3s ease-in-out;
}

.content.shifted {
	margin-left: 300px;
}

.menu-box {
	/* 固定定位 右下角 */
	position: fixed;
	bottom: 40px;
	right: 40px;
}

/* 菜单按钮 */
.menu-button {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	z-index: 1;
	cursor: pointer;
	transition: 0.2s ease-in;
}

.menu-button:hover {
	background-color: #4854ff;
	box-shadow: 0 0 0 8px rgba(92, 103, 255, 0.3);
}

.menu-button .line-box {
	width: 20px;
	height: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	cursor: pointer;
	transition: transform 0.3s ease-out;
}

/* 菜单按钮图标（三条杠） */
.menu-button .line {
	background-color: #fff;
	width: 100%;
	height: 2px;
	border-radius: 2px;
}

/* 前后两条短，中间的长 */
.menu-button .line:first-child {
	width: 50%;
	/* 设置变换的基点 */
	transform-origin: right;
	/* 过渡效果 */
	transition: transform 0.3s ease-in-out;
}

.menu-button .line:last-child {
	width: 50%;
	align-self: flex-end;
	transform-origin: left;
	transition: transform 0.3s ease-in-out;
}

/* 菜单列表 */
.menu-list {
	width: 140px;
	height: 160px;
	background-color: #fff;
	border-radius: 8px;
	list-style: none;
	box-shadow: 0 0 4px 4px rgba(92, 103, 255, 0.15);
	position: absolute;
	right: 15px;
	bottom: 15px;
	/* 默认隐藏 */
	opacity: 0;
	transform: scale(0);
	/* 设置变换的基点 */
	transform-origin: bottom right;
	/* 过渡效果 */
	transition: 0.3s ease;
	/* 过渡延迟 */
	transition-delay: 0.1s;
}

/* 菜单项 */
.menu-list li {
	display: flex;
	align-items: center;
	padding: 10px;
	color: #1c3991;
	cursor: pointer;
	position: relative;
	/* 默认隐藏 */
	opacity: 0;
	transform: translateX(-10px);
	transition: 0.2s ease-in;
}

.menu-list li:hover {
	color: #5c67ff;
}

/* 菜单项下边框 */
.menu-list li::before {
	content: "";
	width: calc(100% - 24px);
	height: 1px;
	background-color: rgba(92, 103, 255, 0.1);
	position: absolute;
	bottom: 0;
	left: 12px;
}

/* 最后一项不用下边框 */
.menu-list li:last-child::before {
	display: none;
}

/* 菜单项图标 */
.menu-list .fa {
	font-size: 18px;
	width: 18px;
	height: 18px;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* 菜单项文本 */
.menu-list span {
	font-size: 14px;
	margin-left: 8px;
}

/* 活动态下的部分样式变化 */
/* 三条杠的变化 */
.active .line-box {
	transform: rotate(-45deg);
}

.active .line-box .line:first-child {
	transform: rotate(-90deg) translateX(1px);
}

.active .line-box .line:last-child {
	transform: rotate(-90deg) translateX(-1px);
}

/* 菜单列表的变化 */
.active .menu-list {
	opacity: 1;
	transform: scale(1);
}

.active .menu-list li {
	/* 执行动画：动画名 时长 线性 停留在最后一帧 */
	animation: fade-in-item 0.4s linear forwards;
}

/* 接下来为每一项设置动画延迟时间 */
.active .menu-list li:nth-child(1) {
	animation-delay: 0.1s;
}

.active .menu-list li:nth-child(2) {
	animation-delay: 0.2s;
}

.active .menu-list li:nth-child(3) {
	animation-delay: 0.3s;
}

.active .menu-list li:nth-child(4) {
	animation-delay: 0.4s;
}

.ming-an {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(170, 170, 170, 0.3);
	color: #050505;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	z-index: 1;
	cursor: pointer;
	/* 过渡 */
	transition: 0.2s ease-in;
}

.ming-an:hover {
	box-shadow: 0 0 0 8px rgba(112, 112, 112, 0.178);
	color: #ffffff;
}

/* 定义动画 */
@keyframes fade-in-item {
	100% {
		transform: translateX(0);
		opacity: 1;
	}
}

/* 移除body的tailwind背景色 */
body {
	background-color: var(--bg-color) !important;
}

/* 确保内容在粒子上方 */
.content {
	position: relative;
	z-index: 1;
}

#particles-js {
	z-index: 0;
}
.card{
	/* 卡片样式 */
	/* 样式居中 */
	margin: 0 auto;
	width: 80%;
	background-color: white;
	padding: 20px;
	margin-top: 20px;
	border-radius: 10px;
	padding: 25px;
}
/* 卡片标题 */
.card h2 {
	font-size: 24px;
	margin-bottom: 10px;
}

/* 卡片内容 */
.card p {
	font-size: 16px;
	line-height: 1.5;
}
/* 卡片标题 */
.card h1 {
	text-align: center;
	font-size: 35px;
}