/* AI 能力宫格：移动端 Tab 横滑 + 下方详情（PC 仍为 hover 展开） */
@media (max-width: 900px) {
	#live-ai .ai-feature-grid.ai-layout-mobile {
		display: flex !important;
		flex-direction: column;
		gap: 14px;
		height: auto !important;
		min-height: 0;
		overflow: visible;
		position: relative;
		grid-template-columns: none;
		grid-template-rows: none;
	}

	#live-ai .ai-feature-grid.ai-layout-mobile .ai-feature-unit,
	#live-ai .ai-feature-grid.ai-layout-mobile .ai-feature-unit[data-active="true"] {
		display: none !important;
		position: absolute;
		width: 0;
		height: 0;
		overflow: hidden;
		pointer-events: none;
		transform: none !important;
	}

	#live-ai .ai-feature-tabs-scroll {
		margin: 0 calc(-1 * min(24px, (100vw - 100%) / 2));
		padding: 0 24px 6px;
		scroll-padding-inline: 24px;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	#live-ai .ai-feature-tabs-scroll::-webkit-scrollbar {
		display: none;
	}

	#live-ai .ai-feature-tabs-track {
		display: flex;
		flex-wrap: nowrap;
		gap: 10px;
		width: max-content;
		min-width: 100%;
		padding-inline: 10px 14px;
		box-sizing: content-box;
	}

	#live-ai .ai-feature-grid.ai-layout-mobile .ai-feature-tile {
		position: relative;
		flex: 0 0 calc((100vw - 48px - 30px) / 3.25);
		max-width: 92px;
		min-width: 82px;
		height: 102px;
		padding: 10px 6px 8px;
		border-radius: 14px;
		opacity: 1 !important;
		pointer-events: auto !important;
		inset: auto;
		width: auto;
		scroll-snap-align: start;
		transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.25s;
	}

	#live-ai .ai-feature-grid.ai-layout-mobile .ai-feature-tile .ai-glass-icon {
		width: 42px;
		height: 42px;
		background-size: 500% 200%;
	}

	#live-ai .ai-feature-grid.ai-layout-mobile .ai-feature-tile span {
		font-size: 11px;
		line-height: 1.25;
		font-weight: 600;
	}

	#live-ai .ai-feature-grid.ai-layout-mobile .ai-feature-tile[aria-selected="true"] {
		border-color: rgba(255, 225, 176, 0.95);
		background: linear-gradient(145deg, rgba(240, 199, 163, 0.88), rgba(156, 78, 73, 0.82));
		box-shadow: inset 0 1px rgba(255, 255, 255, 0.45), 0 10px 22px rgba(48, 0, 8, 0.22);
		transform: translateY(-2px);
	}

	#live-ai .ai-feature-mobile-stage {
		position: relative;
		width: 100%;
		min-height: 400px;
		border-radius: 20px;
		overflow: hidden;
	}

	#live-ai .ai-feature-grid.ai-layout-mobile .ai-feature-mobile-stage .ai-feature-panel {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		min-height: 400px;
		border-radius: 20px;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(10px);
		transition: opacity 0.38s cubic-bezier(0.22, 0.68, 0.26, 1),
			transform 0.38s cubic-bezier(0.22, 0.68, 0.26, 1),
			visibility 0.38s;
	}

	#live-ai .ai-feature-grid.ai-layout-mobile .ai-feature-mobile-stage .ai-feature-panel:not([hidden]) {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
		z-index: 1;
	}

	#live-ai .ai-feature-grid.ai-layout-mobile .ai-feature-mobile-stage .ai-feature-panel.ai-panel-entering:not([hidden]) {
		animation: ai-mobile-panel-in 0.4s cubic-bezier(0.22, 0.68, 0.26, 1) both;
	}

	@keyframes ai-mobile-panel-in {
		from {
			opacity: 0.35;
			transform: translateY(12px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
	#live-ai .ai-feature-grid.ai-layout-mobile .ai-feature-mobile-stage .ai-feature-panel,
	#live-ai .ai-feature-grid.ai-layout-mobile .ai-feature-tile {
		transition: none;
		animation: none !important;
	}
}
