@charset "utf-8";
/* 从左进入 */
.slide-from-left {
	opacity: 0;
	transform: translateX(-100px);
	animation: slideInLeft 0.8s ease forwards;
	animation-delay: 0.2s;
}

/* 从右进入 */
.slide-from-right {
	opacity: 0;
	transform: translateX(100px);
	animation: slideInRight 0.8s ease forwards;
	animation-delay: 0.2s;
}

/* 从上进入 */
.slide-from-top {
	opacity: 0;
	transform: translateY(-100px);
	animation: slideInTop 0.8s ease forwards;
	animation-delay: 0.2s;
}

/* 从下进入 */
.slide-from-bottom {
	opacity: 0;
	transform: translateY(100px);
	animation: slideInBottom 0.8s ease forwards;
	animation-delay: 0.2s;
}

/* 缩放进入 */
.zoom-in {
	opacity: 0;
	transform: scale(0.8);
	animation: zoomIn 0.8s ease forwards;
	animation-delay: 0.2s;
}

/* 旋转进入 */
.rotate-in {
	opacity: 0;
	transform: rotate(-180deg) scale(0.5);
	animation: rotateIn 1s ease forwards;
	animation-delay: 0.2s;
}

/* 关键帧动画 */
@keyframes slideInLeft {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInRight {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInTop {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInBottom {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes zoomIn {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes rotateIn {
	to {
		opacity: 1;
		transform: rotate(0) scale(1);
	}
}

/* 卡片样式 */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.card {
	background: white;
	border-radius: 15px;
	padding: 30px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card h3 {
	color: #2c3e50;
	margin-bottom: 15px;
	font-size: 1.4rem;
}

.card p {
	color: #7f8c8d;
	line-height: 1.6;
}

/* 交错动画延迟 */
.card:nth-child(2) { animation-delay: 0.3s; }
.card:nth-child(3) { animation-delay: 0.4s; }
.card:nth-child(4) { animation-delay: 0.5s; }
.card:nth-child(5) { animation-delay: 0.6s; }
.card:nth-child(6) { animation-delay: 0.7s; }