/**
 * AI赋能设计专题页 - 专用样式
 * 深色主题、红色强调、图谱、对比、数据看板、提示词实验室
 */
/* 手机端：禁止下拉刷新（滑动触发的页面刷新） */
.vlt-ai-page {
	overscroll-behavior-y: none;
	-webkit-overflow-scrolling: touch;
}

/* ========== 1. 开场：AI设计宣言（通栏） ========== */
.ai-hero {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: relative;
	overflow: hidden;
	/* 拉大与顶部导航的距离 */
	padding-top: 12vh;
	padding-bottom: 4rem;
}
/* 背景图层：悬停时轻微放大 */
.ai-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background: url(../img/ai-1.png) center / cover no-repeat;
	transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ai-hero:hover::before {
	transform: scale(1.06);
}
/* 深色遮罩，保证文字可读 */
.ai-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(135deg, rgba(13, 17, 23, 0.88) 0%, rgba(22, 27, 34, 0.85) 50%, rgba(13, 17, 23, 0.88) 100%);
	pointer-events: none;
}
.ai-hero__video-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	object-fit: cover;
	opacity: 0.2;
	pointer-events: none;
}
/* Canvas 动画层：不阻挡点击 */
.ai-canvas {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	display: block;
}
.ai-canvas--hero {
	z-index: 1.2;
}
.ai-canvas--toolchain {
	z-index: 0;
	opacity: 0.5;
}
.ai-hero__content { position: relative; z-index: 2; width: 100%; max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }
.ai-hero__slogan {
	font-size: clamp(1.25rem, 4vw, 1.75rem);
	line-height: 1.5;
	color: #e6edf3;
	margin-bottom: 0.5em;
	min-height: 1.5em;
}
.ai-hero__slogan .typing-cursor {
	display: inline-block;
	width: 2px;
	height: 1.1em;
	background: var(--vlt-accent-color, #c0392b);
	vertical-align: text-bottom;
	animation: ai-cursor-blink 0.8s step-end infinite;
	margin-left: 2px;
}
@keyframes ai-cursor-blink { 50% { opacity: 0; } }
.ai-hero__sub {
	font-size: clamp(0.875rem, 2.5vw, 1rem);
	color: rgba(230, 237, 243, 0.85);
	line-height: 1.7;
	margin-top: 1.5rem;
}
/* Hero 区嵌入视频 */
.ai-hero-video {
	margin-top: 2rem;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	aspect-ratio: 16/9;
	box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.ai-hero-video__player {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ai-hero-video__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 0.6rem 1rem;
	background: linear-gradient(transparent, rgba(0,0,0,0.75));
	color: rgba(255,255,255,0.95);
	font-size: 0.85rem;
	text-align: center;
}

/* ========== 2. AI工具链全景（网格） ========== */
.ai-toolchain { padding: 4rem 0; background: #0d1117; }
.ai-toolchain .section-title { text-align: center; margin-bottom: 0.5rem; }
.ai-toolchain .section-badge {
	display: inline-block;
	font-size: 0.75rem;
	color: var(--vlt-accent-color, #c0392b);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 2rem;
}
.ai-tool-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1rem;
	max-width: 900px;
	margin: 0 auto 2rem;
}
.ai-tool-card {
	background: rgba(22, 27, 34, 0.8);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	padding: 1.25rem;
	text-align: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	cursor: default;
}
.ai-tool-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0,0,0,0.3);
	border-color: rgba(192, 57, 43, 0.3);
}
.ai-tool-card__icon { font-size: 1.75rem; margin-bottom: 0.5rem; color: #e6edf3; }
.ai-tool-card__name { font-size: 0.9rem; font-weight: 600; color: #e6edf3; }
.ai-tool-card__use {
	font-size: 0.75rem;
	color: rgba(230, 237, 243, 0.7);
	margin-top: 0.5rem;
	display: none;
}
.ai-tool-card:hover .ai-tool-card__use { display: block; }

/* ========== 3. 传统 vs AI 流程对比 ========== */
.ai-compare {
	padding: 4.5rem 0;
	background: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
	position: relative;
}
.ai-compare__header {
	text-align: center;
	margin-bottom: 2.5rem;
}
.ai-compare__badge {
	display: inline-block;
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--vlt-accent-color, #c0392b);
	margin-bottom: 0.5rem;
}
.ai-compare__header .ai-section-title { margin-bottom: 0.35rem; }
.ai-compare__header .ai-section-sub { font-size: 0.95rem; }
.ai-compare__cols {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0;
	align-items: stretch;
	max-width: 920px;
	margin: 0 auto;
}
.ai-compare__col {
	padding: 1.75rem 1.5rem;
	border-radius: 12px;
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ai-compare__col:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.ai-compare__col--left {
	background: rgba(48, 54, 61, 0.5);
	border: 1px solid rgba(255,255,255,0.08);
}
.ai-compare__col--right {
	background: linear-gradient(135deg, rgba(192, 57, 43, 0.06) 0%, rgba(192, 57, 43, 0.02) 100%);
	border: 1px solid rgba(192, 57, 43, 0.25);
	box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.05);
}
.ai-compare__col-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ai-compare__col--right .ai-compare__col-head { border-bottom-color: rgba(192, 57, 43, 0.2); }
.ai-compare__col-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(230, 237, 243, 0.85);
}
.ai-compare__col-label--accent { color: var(--vlt-accent-color, #c0392b); }
.ai-compare__col-days {
	font-size: 0.8rem;
	color: rgba(230, 237, 243, 0.5);
}
.ai-compare__col-days--accent {
	color: var(--vlt-accent-color, #c0392b);
	font-weight: 600;
}
.ai-compare__steps {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ai-compare__steps li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.9rem;
	line-height: 1.7;
	color: rgba(230, 237, 243, 0.9);
	padding: 0.35rem 0;
}
.ai-compare__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	font-size: 0.7rem;
	font-weight: 600;
	background: rgba(255,255,255,0.12);
	color: rgba(230, 237, 243, 0.9);
	border-radius: 50%;
	flex-shrink: 0;
}
.ai-compare__step-num--accent {
	background: rgba(192, 57, 43, 0.25);
	color: var(--vlt-accent-color, #c0392b);
}
.ai-compare__vs {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0 1.25rem;
	min-width: 48px;
}
.ai-compare__vs-line {
	width: 1px;
	flex: 1;
	min-height: 24px;
	background: linear-gradient(to bottom, transparent, rgba(192, 57, 43, 0.4), transparent);
}
.ai-compare__vs-text {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--vlt-accent-color, #c0392b);
	opacity: 0.9;
}
.ai-compare__result {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255,255,255,0.06);
	text-align: center;
}
.ai-compare__result-title {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(230, 237, 243, 0.5);
	margin-bottom: 1rem;
}
.ai-compare__nodes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}
.ai-compare__node {
	font-size: 0.85rem;
	padding: 0.5rem 1rem;
	background: rgba(192, 57, 43, 0.1);
	border: 1px solid rgba(192, 57, 43, 0.2);
	border-radius: 8px;
	color: rgba(230, 237, 243, 0.9);
	transition: background 0.2s ease, border-color 0.2s ease;
}
.ai-compare__node:hover {
	background: rgba(192, 57, 43, 0.18);
	border-color: rgba(192, 57, 43, 0.35);
}
.ai-compare__node strong { color: var(--vlt-accent-color, #c0392b); font-weight: 600; }
@media (max-width: 768px) {
	.ai-compare__cols { grid-template-columns: 1fr; gap: 1.5rem; }
	.ai-compare__vs { flex-direction: row; padding: 0.5rem 0; min-width: auto; }
	.ai-compare__vs-line { width: 40px; height: 1px; min-height: 0; background: linear-gradient(to right, transparent, rgba(192,57,43,0.4), transparent); }
}

/* ========== 4. 案例实证卡片 ========== */
.ai-cases { padding: 4rem 0; background: #0d1117; }
.ai-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.ai-case-card {
	background: #161b22;
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ai-case-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,0.25); }
.ai-case-card__cover {
	aspect-ratio: 16/10;
	background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.4);
	font-size: 0.8rem;
	position: relative;
}
.ai-case-card__cover::after {
	content: '因保密协议仅展示概念还原';
	position: absolute;
	bottom: 8px;
	right: 8px;
	font-size: 0.7rem;
	opacity: 0.8;
}
.ai-case-card__tags { padding: 0.75rem 1rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ai-case-card__tag { font-size: 0.7rem; padding: 0.2rem 0.5rem; background: rgba(192,57,43,0.2); border-radius: 4px; color: #c0392b; }
.ai-case-card__title { padding: 0 1rem; font-size: 1rem; font-weight: 600; color: #e6edf3; }
.ai-case-card__points { padding: 1rem; font-size: 0.85rem; line-height: 1.7; color: rgba(230,237,243,0.85); }
.ai-case-card__points li { margin-bottom: 0.5rem; }
.ai-case-card__btn {
	display: inline-block;
	margin: 0 1rem 1rem;
	padding: 0.4rem 0.8rem;
	font-size: 0.8rem;
	color: var(--vlt-accent-color, #c0392b);
	border: 1px solid rgba(192,57,43,0.4);
	border-radius: 6px;
	transition: background 0.2s ease, color 0.2s ease;
}
.ai-case-card__btn:hover { background: rgba(192,57,43,0.15); color: #e6edf3; }
.ai-case-card__meta { padding: 0 1rem 0.75rem; font-size: 0.8rem; }

/* 案例弹窗 */
.ai-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0,0,0,0.85);
	align-items: center;
	justify-content: center;
	padding: 2rem;
	overflow: auto;
}
.ai-modal.is-open { display: flex; }
.ai-modal__inner {
	background: #161b22;
	border-radius: 12px;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	padding: 1.5rem;
	position: relative;
}
.ai-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 32px;
	height: 32px;
	border: none;
	background: rgba(255,255,255,0.1);
	color: #e6edf3;
	border-radius: 6px;
	cursor: pointer;
	font-size: 1.2rem;
	line-height: 1;
}
.ai-modal__close:hover { background: rgba(255,255,255,0.2); }
.ai-modal h4 { margin-bottom: 1rem; font-size: 1rem; }
.ai-modal p, .ai-modal img { margin-bottom: 1rem; font-size: 0.9rem; color: rgba(230,237,243,0.9); }
.ai-modal img { width: 100%; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }

/* ========== 5. AI+代码 设计研发一体 ========== */
.ai-code { padding: 4rem 0; background: #161b22; }
.ai-code__split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-top: 2rem;
	align-items: start;
}
@media (max-width: 768px) { .ai-code__split { grid-template-columns: 1fr; } }
.ai-code__design img, .ai-code__code pre { border-radius: 8px; overflow: hidden; }
.ai-code__code pre {
	background: #0d1117;
	padding: 1rem;
	font-size: 0.8rem;
	line-height: 1.5;
	color: #e6edf3;
	margin: 0;
	overflow: auto;
	max-height: 320px;
}
.ai-code__iframe-wrap {
	margin-top: 2rem;
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.ai-code__iframe-wrap iframe { width: 100%; height: 280px; border: none; display: block; }
.ai-code__note { font-size: 0.8rem; color: rgba(230,237,243,0.6); margin-top: 1rem; }
.ai-code__note a { color: var(--vlt-accent-color, #c0392b); text-decoration: underline; }
.ai-code__pdf-wrap {
	margin-top: 1rem;
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 8px;
	overflow: hidden;
	background: #0d1117;
	min-height: 660px;
}
.ai-code__pdf { width: 100%; height: 660px; border: none; display: block; }

/* ========== 6. AI驱动数据可视化 ========== */
.ai-viz { padding: 4rem 0; background: #0d1117; }
.ai-viz__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 768px) { .ai-viz__steps { grid-template-columns: 1fr; } }
.ai-viz__step {
	background: #161b22;
	border-radius: 12px;
	padding: 1.25rem;
	border: 1px solid rgba(255,255,255,0.06);
}
.ai-viz__step h5 { font-size: 0.9rem; margin-bottom: 0.75rem; color: #c0392b; }
.ai-viz__step p { font-size: 0.85rem; line-height: 1.6; color: rgba(230,237,243,0.85); }
.ai-viz__step img { width: 100%; border-radius: 8px; margin-top: 0.5rem; }
.ai-viz__chart-demo {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}
.ai-viz__chart-demo button {
	padding: 0.5rem 1rem;
	font-size: 0.85rem;
	background: rgba(192,57,43,0.15);
	border: 1px solid rgba(192,57,43,0.3);
	color: #e6edf3;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease;
}
.ai-viz__chart-demo button:hover, .ai-viz__chart-demo button.is-active { background: rgba(192,57,43,0.3); }
.ai-viz__chart-desc { text-align: center; font-size: 0.85rem; color: rgba(230,237,243,0.7); margin-top: 1rem; }

/* ========== 7. 量化AI效能 数据看板 ========== */
.ai-metrics { padding: 4rem 0; background: #161b22; }
.ai-metrics__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
	margin-top: 2rem;
}
.ai-metric-card {
	background: #0d1117;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	padding: 1.25rem;
	text-align: center;
}
.ai-metric-card__value { font-size: 1.75rem; font-weight: 700; color: var(--vlt-accent-color, #c0392b); line-height: 1.2; }
.ai-metric-card__label { font-size: 0.8rem; color: rgba(230,237,243,0.7); margin-top: 0.25rem; }
.ai-metric-card__desc { font-size: 0.75rem; color: rgba(230,237,243,0.5); margin-top: 0.5rem; }

/* ========== 8. 提示词实验室 ========== */
.ai-prompt-lab { padding: 4rem 0; background: #0d1117; }
.ai-prompt-lab__scenarios { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2rem; }
.ai-prompt-lab__scenarios button {
	padding: 0.6rem 1.2rem;
	font-size: 0.9rem;
	background: rgba(192,57,43,0.12);
	border: 1px solid rgba(192,57,43,0.35);
	color: #e6edf3;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.ai-prompt-lab__scenarios button:hover { background: rgba(192,57,43,0.25); }
.ai-prompt-lab__result {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-top: 1.5rem;
	align-items: start;
}
@media (max-width: 768px) { .ai-prompt-lab__result { grid-template-columns: 1fr; } }
.ai-prompt-lab__prompt {
	background: #161b22;
	border-radius: 8px;
	padding: 1rem;
	font-size: 0.85rem;
	line-height: 1.6;
	color: rgba(230,237,243,0.9);
	border: 1px solid rgba(255,255,255,0.08);
	position: relative;
}
.ai-prompt-lab__copy {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	padding: 0.35rem 0.7rem;
	font-size: 0.75rem;
	background: rgba(192,57,43,0.2);
	border: 1px solid rgba(192,57,43,0.4);
	color: #c0392b;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s ease;
}
.ai-prompt-lab__copy:hover { background: rgba(192,57,43,0.35); }
.ai-prompt-lab__preview { font-size: 0.85rem; color: rgba(230,237,243,0.8); }
.ai-prompt-lab__preview img { max-width: 100%; border-radius: 8px; margin-top: 0.5rem; }
.ai-prompt-lab__coze-placeholder {
	margin-top: 2rem;
	padding: 2rem;
	background: rgba(0,0,0,0.2);
	border: 1px dashed rgba(255,255,255,0.15);
	border-radius: 12px;
	text-align: center;
	color: rgba(255,255,255,0.5);
	font-size: 0.9rem;
}

/* ========== 9. 未来思考 ========== */
.ai-future { padding: 4rem 0; background: #161b22; }
.ai-future__content { max-width: 720px; margin: 0 auto; }
.ai-future__text { font-size: 0.95rem; line-height: 1.85; color: rgba(230,237,243,0.9); margin-bottom: 1.5rem; }
.ai-future__img { margin-top: 2rem; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.ai-future__img img { width: 100%; display: block; }

/* 通用区块标题 */
.ai-section-title { font-size: 1.5rem; color: #e6edf3; margin-bottom: 0.5rem; }
.ai-section-sub { font-size: 0.9rem; color: rgba(230,237,243,0.65); }
