/* ============================================================
   taoflow-ui-motion.css · 克制动效（L2.5）
   ------------------------------------------------------------
   三处：(1) Hero 文案入场 (2) 分类项 hover 金线/位移
         (3) 商品图 hover 轻缩放。
   prefers-reduced-motion: reduce 时全部关闭。
   ============================================================ */

@keyframes tf-rise-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.tf-hero__eyebrow,
	.tf-hero__title,
	.tf-hero__lead,
	.tf-hero__actions {
		animation: tf-rise-in 0.7s ease both;
	}

	.tf-hero__eyebrow { animation-delay: 0.05s; }
	.tf-hero__title { animation-delay: 0.14s; }
	.tf-hero__lead { animation-delay: 0.24s; }
	.tf-hero__actions { animation-delay: 0.34s; }

	.tf-cat-link {
		transition: transform 0.28s ease, color 0.22s ease;
	}

	.tf-cat-link__icon {
		transition: border-bottom-color 0.22s ease, color 0.22s ease,
			transform 0.28s ease;
	}

	.tf-cat-link:hover .tf-cat-link__icon,
	.tf-cat-link:focus .tf-cat-link__icon {
		transform: translateY(-2px);
	}

	.tf-home .products .product .product-image-link img,
	.tf-home .products .product .wd-product-grid-slide img,
	.woocommerce ul.products li.product .product-image-link img,
	.woocommerce ul.products li.product .wd-product-grid-slide img {
		transition: transform 0.45s ease;
	}

	.tf-home .products .product:hover .product-image-link img,
	.tf-home .products .product:hover .wd-product-grid-slide img,
	.woocommerce ul.products li.product:hover .product-image-link img,
	.woocommerce ul.products li.product:hover .wd-product-grid-slide img {
		transform: scale(1.04);
	}

	.tf-home .products .product .product-element-top,
	.woocommerce ul.products li.product .product-element-top {
		overflow: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tf-hero__eyebrow,
	.tf-hero__title,
	.tf-hero__lead,
	.tf-hero__actions {
		animation: none !important;
	}

	.tf-cat-link,
	.tf-cat-link__icon,
	.tf-home .products .product .product-image-link img,
	.tf-home .products .product .wd-product-grid-slide img,
	.woocommerce ul.products li.product .product-image-link img,
	.woocommerce ul.products li.product .wd-product-grid-slide img {
		transition: none !important;
		transform: none !important;
	}
}
