:root {
	/* 浅色模式颜色 */
	--primary: #d23669;
	--secondary: #ff758c;
	--accent: #7f7fd5;
	--text: #5a2a3e;
	--bg: #fff9fb;
	--card-bg: rgba(255, 255, 255, 0.95);
	--success: #4CAF50;
	--warning: #FF9800;
	--danger: #E91E63;
	--info: #2196F3;
	--gradient: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

/* 暗色模式颜色 */
[data-theme="dark"] {
	--primary: #ff6b9e;
	--secondary: #ff8da1;
	--accent: #9d9dff;
	--text: #f8f9fa;
	--bg: #1a1a1a;
	--card-bg: rgba(40, 40, 40, 0.95);
	--success: #66BB6A;
	--warning: #FFA726;
	--danger: #F48FB1;
	--info: #81D4FA;
	--gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	transition: background-color 0.3s ease, color 0.3s ease;
}

body {
	font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
	background: var(--gradient);
	color: var(--text);
	line-height: 1.6;
	min-height: 100vh;
	overflow-x: hidden;
	padding: 1rem;
}

.container {
	max-width: 1000px;
	margin: 2rem auto;
	padding: 2.5rem;
	background: var(--card-bg);
	border-radius: 1.5rem;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
	animation: fadeIn 0.8s ease-out;
}

.container::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
	transform: rotate(30deg);
	z-index: -1;
}

[data-theme="dark"] .container::before {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

header {
	text-align: center;
	margin-bottom: 3rem;
	position: relative;
}

.logo {
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

.logo:hover {
	transform: rotate(15deg) scale(1.1);
}

.logo i {
	font-size: 2.5rem;
	color: white;
}

h1,
h2,
h3 {
	color: var(--primary);
	margin: 1.5rem 0;
	font-weight: 700;
	position: relative;
}

h1 {
	font-size: 2.2rem;
	margin-bottom: 1rem;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.subtitle {
	font-size: 1.2rem;
	color: var(--text);
	opacity: 0.8;
	margin-bottom: 2rem;
}

.divider {
	height: 3px;
	background: linear-gradient(to right, transparent, var(--primary), transparent);
	margin: 2.5rem auto;
	width: 80%;
	max-width: 400px;
	border-radius: 3px;
	opacity: 0.7;
}

.resource-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
	margin: 3rem 0;
}

.resource-card {
	background: var(--card-bg);
	padding: 1.8rem;
	border-radius: 1.2rem;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(210, 54, 105, 0.1);
}

.resource-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(210, 54, 105, 0.05), transparent);
	z-index: -1;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.resource-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.resource-card:hover::before {
	opacity: 1;
}

.resource-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 1.5rem;
	background: linear-gradient(135deg, var(--accent), #86a8e7);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.8rem;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.resource-title {
	font-size: 1.4rem;
	color: var(--primary);
	margin-bottom: 1rem;
	font-weight: 600;
}

.resource-desc {
	color: var(--text);
	opacity: 0.8;
	margin-bottom: 2rem;
	min-height: 60px;
	font-size: 0.95rem;
	line-height: 1.7;
}

.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	padding: 1rem 1.5rem;
	color: white;
	text-decoration: none;
	border-radius: 1rem;
	font-size: 1rem;
	font-weight: 600;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	position: relative;
	overflow: hidden;
	z-index: 1;
	border: none;
	cursor: pointer;
	width: 100%;
	max-width: 220px;
	margin: 0 auto;
}

.btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
	z-index: -1;
	transition: opacity 0.3s ease;
	opacity: 0;
}

.btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn:hover::before {
	opacity: 1;
}

.btn:active {
	transform: translateY(1px);
}

.btn i {
	font-size: 1.1rem;
}

.btn-primary {
	background: linear-gradient(135deg, var(--accent), #86a8e7);
}

.btn-secondary {
	background: linear-gradient(135deg, #8e44ad, #9b59b6);
	margin-top: 3rem;
	max-width: 200px;
}

.footer {
	margin-top: 4rem;
	text-align: center;
	font-size: 0.9rem;
	color: var(--text);
	opacity: 0.7;
}

.footer a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 600;
}

.footer a:hover {
	text-decoration: underline;
}

/* 主题切换按钮 */
.theme-toggle {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--card-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	z-index: 100;
	border: none;
	color: var(--primary);
	transition: all 0.3s ease;
}

.theme-toggle:hover {
	transform: scale(1.1) rotate(30deg);
	box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

/* 动画效果 */
.animate-delay-1 {
	animation-delay: 0.2s;
}

.animate-delay-2 {
	animation-delay: 0.4s;
}

.animate-delay-3 {
	animation-delay: 0.6s;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}

	100% {
		transform: scale(1);
	}
}

@keyframes bounce {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

/* 响应式设计 */
@media (max-width: 768px) {
	.container {
		margin: 1rem;
		padding: 2rem;
		border-radius: 1.2rem;
	}

	h1 {
		font-size: 1.8rem;
	}

	.resource-grid {
		grid-template-columns: 1fr;
		gap: 1.2rem;
	}

	.resource-card {
		padding: 1.5rem;
	}

	.resource-icon {
		width: 50px;
		height: 50px;
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 1.5rem;
	}

	h1 {
		font-size: 1.6rem;
	}

	.subtitle {
		font-size: 1rem;
	}

	.resource-title {
		font-size: 1.2rem;
	}

	.resource-desc {
		font-size: 0.9rem;
		min-height: auto;
	}

	.btn {
		padding: 0.9rem 1.2rem;
		font-size: 0.95rem;
	}

	.theme-toggle {
		width: 36px;
		height: 36px;
		top: 15px;
		right: 15px;
	}
}