/* Tailwind CSS 配置 */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* 自定义工具类 */
@layer utilities {
	.recipe-btn {
		@apply px-6 py-3 border border-white/30 rounded-full bg-white/5 backdrop-blur-sm 
               text-center text-white font-medium tracking-wide transition-all duration-300
               hover:bg-white/15 hover:border-white/50 hover:scale-105 hover:shadow-lg
               focus:outline-none focus:ring-2 focus:ring-white/30;
		/* 鼠标移入特效增强 */
		position: relative;
		overflow: hidden;
		isolation: isolate;
		transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	}
	/* 流光扫过效果 */
	.recipe-btn::before {
		content: "";
		position: absolute;
		top: 0;
		left: -100%;
		width: 60%;
		height: 100%;
		background: linear-gradient(
			120deg,
			transparent,
			rgba(255, 255, 255, 0.45),
			transparent
		);
		transform: skewX(-20deg);
		z-index: 0;
		transition: left 0.6s ease;
		pointer-events: none;
	}
	.recipe-btn:hover::before {
		left: 120%;
	}
	.recipe-btn > *,
	.recipe-btn span {
		position: relative;
		z-index: 1;
	}
	/* 鼠标跟随光晕 */
	.recipe-btn .btn-glow {
		position: absolute;
		width: 120px;
		height: 120px;
		border-radius: 50%;
		background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
		transform: translate(-50%, -50%);
		opacity: 0;
		transition: opacity 0.3s ease;
		pointer-events: none;
		z-index: 0;
	}
	.recipe-btn:hover .btn-glow {
		opacity: 1;
	}
	/* 鼠标移入发光 + 上浮 */
	.recipe-btn:hover {
		border-color: rgba(255, 255, 255, 0.75);
		box-shadow:
			0 0 18px rgba(255, 255, 255, 0.25),
			0 0 42px rgba(147, 197, 253, 0.35);
		transform: translateY(-4px) scale(1.05);
	}
}

/* 备案号鼠标移入特效（黑色背景适配） */
.footer-icp a {
	position: relative;
	color: #9ca3af;
	text-decoration: none;
	display: inline-block;
	padding: 0 2px 2px;
	transition: color 0.3s ease, letter-spacing 0.3s ease;
}
/* 下划线从左向右展开 */
.footer-icp a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, #60a5fa, #34d399);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.35s ease;
}
.footer-icp a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}
.footer-icp a:hover {
	color: #60a5fa;
	letter-spacing: 0.05em;
}

/* 全局样式 */
body {
	font-family:
		'Inter',
		system-ui,
		-apple-system,
		sans-serif;
}

/* 页面加载动画 */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in {
	animation: fadeIn 0.8s ease-out forwards;
}

.animate-delay-100 {
	animation-delay: 0.1s;
}

.animate-delay-200 {
	animation-delay: 0.2s;
}

.animate-delay-300 {
	animation-delay: 0.3s;
}

.logo {
	--tw-translate-y: -0.3rem;
	transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
		scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
	--tw-translate-x: -1.9rem;
}
