/**
 * 蒋蓝宇 UIUE 作品集 - 自定义样式与动画
 * 创意动画：入场、悬停、微交互，风格契合且不改变结构
 */

/* ========== 顶部导航：各类作品后的 AI 标签 ========== */
.vlt-nav-tag {
	display: inline-block;
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 0.18em 0.5em;
	margin-left: 0.3em;
	border-radius: 999px;
	background: rgba(192, 57, 43, 0.22);
	color: #e8a5a0;
	vertical-align: middle;
	line-height: 1.2;
}

/* ========== 个人信息 Contact：一键拨号 / 一键发邮件 ========== */
[data-anchor="Contact"] .vlt-contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}
[data-anchor="Contact"] .vlt-contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
[data-anchor="Contact"] .vlt-contact-btn:hover {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.4);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
[data-anchor="Contact"] .vlt-contact-btn:active {
	transform: translateY(0);
}
[data-anchor="Contact"] .vlt-contact-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	opacity: 0.95;
}
[data-anchor="Contact"] .vlt-contact-btn__main {
	font-weight: 600;
}
[data-anchor="Contact"] .vlt-contact-btn__hint {
	font-size: 0.8em;
	font-weight: 400;
	opacity: 0.85;
}
[data-anchor="Contact"] .vlt-contact-btn--tel {
	color: #fff;
}
[data-anchor="Contact"] .vlt-contact-btn--email {
	color: rgba(255, 255, 255, 0.95);
}

/* 个人信息区块背景图：悬停轻微放大（与作品卡片动效一致） */
.vlt-section[data-anchor="Contact"] .vlt-section__ken-burn-background img {
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.vlt-section[data-anchor="Contact"]:hover .vlt-section__ken-burn-background img {
	transform: scale(1.04);
}

/* 个人信息区块：鼠标跟随 Canvas 层（仅桌面端） */
.vlt-section[data-anchor="Contact"] .vlt-section__content--has-canvas {
	position: relative;
}
.vlt-contact-canvas {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	display: block;
	z-index: 0;
}
.vlt-section[data-anchor="Contact"] .container {
	position: relative;
	z-index: 1;
}
@media (max-width: 767px) {
	.vlt-contact-canvas {
		display: none;
	}
}

/* ========== 首页首屏：文案动画与精简版式 ========== */
.vlt-section[data-anchor="Home"] .vlt-home-hero__label,
.vlt-section[data-anchor="Home"] .vlt-home-hero__title {
	animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* 首屏打字机光标 */
.vlt-type-cursor {
	display: inline-block;
	margin-left: 1px;
	animation: vlt-type-cursor-blink 0.8s step-end infinite;
	opacity: 1;
}
.vlt-type-cursor.invisible {
	opacity: 0;
}
@keyframes vlt-type-cursor-blink {
	0%, 50% { opacity: 1; }
	51%, 100% { opacity: 0; }
}
.vlt-hero-dot {
	display: inline-block;
	animation: vlt-hero-dot-pulse 2s ease-in-out infinite;
}
@keyframes vlt-hero-dot-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.85; transform: scale(1.15); }
}
.vlt-home-hero__intro {
	overflow: hidden;
}
.vlt-home-hero__line {
	margin-bottom: 0.85em;
	opacity: 0;
	transform: translateY(20px);
	animation: vlt-home-hero-line-in 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.vlt-home-hero__line:last-child { margin-bottom: 0; }
.vlt-home-hero__line-1 { animation-delay: 0.35s; }
.vlt-home-hero__line-2 { animation-delay: 0.55s; }
.vlt-home-hero__line-3 { animation-delay: 0.75s; }
.vlt-home-hero__intro strong {
	color: #CD091C;
	font-weight: 600;
}
@keyframes vlt-home-hero-line-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========== 基础与可访问性 ========== */
a:focus-visible,
button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

img[loading="lazy"] {
	content-visibility: auto;
}

/* 尊重用户「减少动态」设置 */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ========== 详情页 / 内页：区块依次入场 ========== */
.vlt-is--single-post main section,
.vlt-is--single-product main section {
	opacity: 0;
	animation: vlt-section-reveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.vlt-is--single-post main section:nth-child(1) { animation-delay: 0.05s; }
.vlt-is--single-post main section:nth-child(2) { animation-delay: 0.12s; }
.vlt-is--single-post main section:nth-child(3) { animation-delay: 0.19s; }
.vlt-is--single-post main section:nth-child(4) { animation-delay: 0.26s; }
.vlt-is--single-post main section:nth-child(5) { animation-delay: 0.33s; }
.vlt-is--single-post main section:nth-child(6) { animation-delay: 0.4s; }
.vlt-is--single-post main section:nth-child(7) { animation-delay: 0.47s; }
.vlt-is--single-post main section:nth-child(8) { animation-delay: 0.54s; }
.vlt-is--single-post main section:nth-child(9) { animation-delay: 0.61s; }
.vlt-is--single-post main section:nth-child(10) { animation-delay: 0.68s; }
.vlt-is--single-post main section:nth-child(11) { animation-delay: 0.75s; }
.vlt-is--single-post main section:nth-child(12) { animation-delay: 0.82s; }
.vlt-is--single-post main section:nth-child(13) { animation-delay: 0.89s; }
.vlt-is--single-post main section:nth-child(14) { animation-delay: 0.96s; }
.vlt-is--single-post main section:nth-child(15) { animation-delay: 1.03s; }

.vlt-is--single-product main section:nth-child(1) { animation-delay: 0.05s; }
.vlt-is--single-product main section:nth-child(2) { animation-delay: 0.12s; }
.vlt-is--single-product main section:nth-child(3) { animation-delay: 0.19s; }
.vlt-is--single-product main section:nth-child(4) { animation-delay: 0.26s; }
.vlt-is--single-product main section:nth-child(5) { animation-delay: 0.33s; }
.vlt-is--single-product main section:nth-child(6) { animation-delay: 0.4s; }

@keyframes vlt-section-reveal {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========== 首页：作品卡片悬停 ========== */
.vlt-post,
.vlt-project,
.vlt-timeline-item {
	transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            box-shadow 0.35s ease;
}
.vlt-post:hover,
.vlt-project:hover,
.vlt-timeline-item:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* 卡片内图片悬停：轻微放大 */
.vlt-post-media,
.vlt-post-media img,
.vlt-simple-image img {
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	overflow: hidden;
}
.vlt-post:hover .vlt-post-media img,
.vlt-simple-image:hover img {
	transform: scale(1.04);
}

/* 作品摘选：卡片等高 */
[data-anchor="Blog"] .row {
	align-items: stretch;
}
[data-anchor="Blog"] .row > [class*="col-"] {
	display: flex;
}
[data-anchor="Blog"] .row .vlt-animated-block {
	flex: 1;
	display: flex;
	min-height: 0;
	width: 100%;
}
[data-anchor="Blog"] .row .vlt-post {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	width: 100%;
}
[data-anchor="Blog"] .row .vlt-post .vlt-post-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}
[data-anchor="Blog"] .row .vlt-post .vlt-post-excerpt {
	flex: 1;
}

/* UIUE 专题页：案例卡片去掉封面角标文案 */
.ui-cases .ai-case-card__cover::after {
	content: none;
}

/* UIUE 专题页：每行 3 个卡片，卡片放大 */
.ui-cases .ai-cases-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 2rem;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 992px) {
	.ui-cases .ai-cases-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 576px) {
	.ui-cases .ai-cases-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
.ui-cases .ai-case-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	border-radius: 8px;
	padding-bottom: 0;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            box-shadow 0.4s ease,
	            border-color 0.35s ease;
}
.ui-cases .ai-case-card__cover {
	aspect-ratio: 16/9.5;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	overflow: hidden;
	/* 封面上的覆盖文字不显示 */
	color: transparent;
	font-size: 0;
	line-height: 0;
}
.ui-cases .ai-case-card:hover .ai-case-card__cover {
	transform: scale(1.12);
}
.ui-cases .ai-case-card__tags {
	padding: 1.1rem 1.2rem 0.5rem;
	line-height: 1.5;
	gap: 0.5rem;
}
.ui-cases .ai-case-card__tag {
	font-size: 0.75rem;
	padding: 0.28rem 0.6rem;
	border-radius: 999px;
	transition: background 0.25s ease;
}
.ui-cases .ai-case-card__title {
	padding: 0.9rem 1.2rem;
	font-size: 1.12rem;
	line-height: 1.5;
	margin: 0;
}
/* 卡片内「查看详情」：默认文字按钮无边框，hover 填充与主按钮同色，不铺满整行 */
.ui-cases .ai-case-card__btn {
	display: inline-block;
	align-self: flex-start;
	width: max-content;
	margin: 0.85rem 1.2rem 1.2rem;
	padding: 0.55rem 1.1rem;
	font-size: 0.9rem;
	background-color: transparent !important;
	border: none !important;
	color: #CD091C !important;
	transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.ui-cases .ai-case-card__btn:hover {
	transform: translateY(-3px);
	background-color: #a80714 !important;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(205, 9, 28, 0.4);
}

/* single-post-3：卡片右下角红色轻微渐变动画（范围大、默认浅，hover 加深） */
.ui-cases--red-corner .ai-case-card {
	position: relative;
	overflow: hidden;
}
.ui-cases--red-corner .ai-case-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 75%;
	height: 75%;
	background: radial-gradient(ellipse 90% 90% at 100% 100%, rgba(192, 57, 43, 0.18) 0%, rgba(192, 57, 43, 0.06) 35%, transparent 65%);
	pointer-events: none;
	animation: ui-card-red-glow 4s ease-in-out infinite;
	transition: opacity 0.35s ease, background 0.35s ease;
}
.ui-cases--red-corner .ai-case-card:hover::after {
	background: radial-gradient(ellipse 90% 90% at 100% 100%, rgba(192, 57, 43, 0.4) 0%, rgba(192, 57, 43, 0.18) 35%, transparent 65%);
	animation: none;
	opacity: 1;
}
@keyframes ui-card-red-glow {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 0.85; }
}

/* UIUE 专题页：卡片悬浮动效（加强上浮 + 光效） */
.ui-cases .ai-case-card:hover {
	transform: translateY(-20px) scale(1.04);
	box-shadow:
		0 32px 64px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(192, 57, 43, 0.35),
		0 0 32px rgba(192, 57, 43, 0.18),
		0 0 60px rgba(192, 57, 43, 0.08);
	border-color: rgba(192, 57, 43, 0.4);
}
/* ========== 按钮：悬停微动效 ========== */
.vlt-btn {
	transition: transform 0.25s ease,
	            box-shadow 0.25s ease,
	            opacity 0.25s ease;
}
.vlt-btn:hover {
	transform: scale(1.03);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.vlt-btn:active {
	transform: scale(0.98);
}

/* 主按钮（典型项目/查看项目详情）：色系 #CD091C，hover 加深 */
.vlt-btn--primary {
	background-color: #CD091C !important;
	border-color: #CD091C !important;
	color: #fff !important;
	transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.vlt-btn--primary:hover {
	background-color: #a80714 !important;
	border-color: #a80714 !important;
	color: #fff !important;
}

/* 内容页返回按钮：与主按钮同色系 #CD091C，hover 加深 */
.vlt-btn--back {
	background-color: #CD091C !important;
	border-color: #CD091C !important;
	color: #fff !important;
}
.vlt-btn--back:hover {
	background-color: #a80714 !important;
	border-color: #a80714 !important;
	color: #fff !important;
}

/* ========== 「查看详情」链接：箭头微移 ========== */
.vlt-read-more-link {
	transition: color 0.25s ease, transform 0.25s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}
.vlt-read-more-link svg {
	transition: transform 0.25s ease;
}
.vlt-read-more-link:hover {
	transform: translateX(4px);
}
.vlt-read-more-link:hover svg {
	transform: translateX(4px);
}

/* ========== 导航链接：下划线/透明度过渡 ========== */
.sf-menu a,
.vlt-offcanvas-menu__navigation a {
	transition: opacity 0.25s ease, color 0.25s ease;
	position: relative;
}
.sf-menu a:hover,
.vlt-offcanvas-menu__navigation a:hover {
	opacity: 0.85;
}

/* ========== 进度条区块：数字出现后的轻微脉冲（仅一次） ========== */
.vlt-progress-bar__bar span {
	transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== 引用块 / 设计理念：左侧装饰线动画 ========== */
.vlt-pullquote,
.vlt-testimonial__text {
	position: relative;
	padding-left: 14px;
}
.vlt-pullquote,
.vlt-testimonial {
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.vlt-pullquote::before,
.vlt-testimonial__text::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: currentColor;
	opacity: 0.4;
	transform: scaleY(0);
	transform-origin: bottom;
	animation: vlt-quote-line 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}
@keyframes vlt-quote-line {
	to { transform: scaleY(1); }
}

/* ========== 页脚：淡入 ========== */
.vlt-footer {
	animation: vlt-footer-in 0.6s ease 0.2s both;
}
@keyframes vlt-footer-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* ========== 标签云 / 关键标签：悬停轻微上浮 ========== */
.vlt-post-tags a {
	transition: transform 0.2s ease, opacity 0.2s ease;
	display: inline-block;
}
.vlt-post-tags a:hover {
	transform: translateY(-2px);
	opacity: 0.9;
}

/* ========== 首页 Hero 标题：点缀符延迟出现，色系统一为 #CD091C ========== */
.vlt-section[data-anchor="Home"] .has-accent-color {
	color: #CD091C;
}
.vlt-large-heading .has-accent-color {
	display: inline-block;
	animation: vlt-accent-blink 0.6s ease 0.5s both;
}
@keyframes vlt-accent-blink {
	0% { opacity: 0; transform: scale(0.9); }
	50% { opacity: 1; transform: scale(1.05); }
	100% { opacity: 1; transform: scale(1); }
}

/* ========== 导航 Logo：悬停轻微放大 ========== */
.vlt-navbar-logo img {
	transition: transform 0.3s ease;
}
.vlt-navbar-logo:hover img {
	transform: scale(1.05);
}

/* ========== 详情页 Hero 标题：标题淡入 ========== */
.vlt-post-hero-title .vlt-post-title {
	animation: vlt-hero-title-in 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s both;
}
.vlt-post-hero-title .vlt-post-date {
	animation: vlt-hero-title-in 0.6s ease 0s both;
}
@keyframes vlt-hero-title-in {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

/* single-post-2 / single-post-3：顶部背景图透明度循环动画 1 → 0.8 → 0.4 → 0.8 → 1 */
.vlt-post-hero-title--opacity-pulse .jarallax-img {
	animation: vlt-hero-bg-opacity-pulse 6s ease-in-out infinite;
}
@keyframes vlt-hero-bg-opacity-pulse {
	0%, 100% { opacity: 1; }
	25% { opacity: 0.8; }
	50% { opacity: 0.4; }
	75% { opacity: 0.8; }
}

/* ========== 重点项目：设计过程/信息架构表格（替代示意图） ========== */
.vlt-process-block {
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
}
.vlt-process-block__title {
	font-size: 1.05rem;
	font-weight: 600;
	color: rgba(255,255,255,0.95);
	margin-bottom: 10px;
	margin-top: 1.5rem;
}
.vlt-process-block__title:first-child {
	margin-top: 0;
}
.vlt-process-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	line-height: 1.5;
	color: rgba(255,255,255,0.88);
	margin-bottom: 1.75rem;
}
.vlt-process-table th,
.vlt-process-table td {
	border: 1px solid rgba(255,255,255,0.18);
	padding: 0.65rem 0.9rem;
	text-align: left;
	vertical-align: top;
}
.vlt-process-table th {
	background: #242b34;
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
}
.vlt-process-table tr:hover td {
	background: rgba(255,255,255,0.04);
}
.vlt-process-table ul {
	margin: 0;
	padding-left: 1.1rem;
}
.vlt-process-table li {
	margin-bottom: 0.25rem;
}
.vlt-process-table li:last-child {
	margin-bottom: 0;
}
.vlt-process-table .vlt-process-table--narrow th {
	width: 1%;
	white-space: nowrap;
}
@media (max-width: 768px) {
	.vlt-process-table { font-size: 0.85rem; }
	.vlt-process-table th,
	.vlt-process-table td { padding: 0.5rem 0.6rem; }
	.vlt-process-table th { white-space: normal; }
}
