/* =========================================================
   合并样式表（style.css）
   由 style.css 与 video.css 合并而来，统一了 footer 等共用样式。
   ========================================================= */

/* ===== 全局重置 ===== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
	background: #f6f8fb;
	color: #1e293b;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	line-height: 1.6;
}

/* ===== 容器 ===== */
.container {
	max-width: 820px;
	/* 适中宽度，让单列图片舒适展示 */
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

/* ===== 顶部导航 ===== */
.header {
	background: #ffffff;
	border-bottom: 1px solid #eef2f6;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
	padding: 16px 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #0f172a;
	flex-shrink: 0;
}

.logo-icon {
	width: 250px;
	max-width: 60vw;
	height: 42px;
	border-radius: 12px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
}

.logo-text {
	font-size: 22px;
	font-weight: 700;
	background: linear-gradient(135deg, #0f172a, #334155);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: 0.5px;
}

.header-extra {
	font-size: 14px;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.header-extra a {
	color: #475569;
	text-decoration: none;
	transition: color 0.2s;
	font-weight: 500;
}
.header-extra a:hover {
	color: #ea5503;
}

.header-extra a.active {
	color: #ea5503;
	font-weight: 600;
}

/* ===== 语言切换按钮组（教程视频页） ===== */
.lang-switch {
	display: flex;
	gap: 4px;
	background: #f1f4f9;
	padding: 4px;
	border-radius: 40px;
	flex-shrink: 0;
}

.lang-btn {
	border: none;
	background: transparent;
	padding: 6px 18px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 500;
	color: #64748b;
	cursor: pointer;
	transition: all 0.25s ease;
	letter-spacing: 0.3px;
	font-family: inherit;
}

.lang-btn:hover {
	color: #0f172a;
	background: rgba(255, 255, 255, 0.6);
}

.lang-btn.active {
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	font-weight: 600;
}

.lang-btn:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

/* ===== 页面标题区 ===== */
.page-head {
	margin-bottom: 4px;
}

.page-title {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: 0.3px;
}

.page-subtitle {
	margin-top: 6px;
	font-size: 14px;
	color: #64748b;
}

/* ===== 卡片列表（产品 / 视频） ===== */
.card-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	width: 100%;
}

.card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #f0f3f7;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.card-cover {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 1px;
}

.card-cover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-badge {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 3px 10px;
	border-radius: 20px;
	background: rgba(15, 23, 42, 0.55);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.5px;
	backdrop-filter: blur(4px);
}

.card-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.card-title {
	font-size: 17px;
	font-weight: 600;
	color: #0f172a;
}

.card-desc {
	font-size: 14px;
	color: #64748b;
	line-height: 1.6;
	flex: 1;
}

.card-more {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 500;
	color: #3b82f6;
}

/* ===== 内容面板（关于页） ===== */
.panel {
	background: #ffffff;
	border: 1px solid #f0f3f7;
	border-radius: 14px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	padding: 26px 28px;
}

.panel + .panel {
	margin-top: 20px;
}

.panel h3 {
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 10px;
}

.panel p {
	font-size: 15px;
	color: #475569;
	line-height: 1.8;
}

.panel p + p {
	margin-top: 10px;
}

.info-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.info-list li {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 15px;
	color: #475569;
}

.info-list .label {
	min-width: 84px;
	color: #94a3b8;
}

.info-list a {
	color: #3b82f6;
	text-decoration: none;
}

.info-list a:hover {
	text-decoration: underline;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
	margin-top: 4px;
}

.feature-item {
	padding: 16px 18px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #eef2f6;
}

.feature-item .feature-title {
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 4px;
}

.feature-item p {
	font-size: 14px;
	color: #64748b;
	line-height: 1.7;
}

/* ===== 主内容 ===== */
.main {
	flex: 1 0 auto;
	padding: 28px 0 48px;
}

.main .container {
	display: flex;
	flex-direction: column;
	gap: 8px;
	/* 整体间距，可调整 */
}

/* ===== 单列图片列表 ===== */
.gallery {
	display: flex;
	flex-direction: column;
	gap: 20px;
	/* 👈 图片之间的间距，可随时去掉或调整 */
	width: 100%;
}

.gallery-item {
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border: 1px solid #f0f3f7;
}

.gallery-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* 图片容器：宽度撑满，高度按图片原始比例自适应，完整显示不裁切 */
.img-wrapper {
	position: relative;
	width: 100%;
	background: #e8edf4;
}

.img-wrapper img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.4s ease;
}

.gallery-item:hover .img-wrapper img {
	transform: scale(1.02);
}

/* ===== 视频区块（教程视频页） ===== */
.video-section {
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.video-section:hover {
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
}

.video-wrapper {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	/* 16:9 */
	background: #0a0a0a;
	overflow: hidden;
}

.video-wrapper video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	background: #0a0a0a;
	object-fit: contain;
}

/* 视频加载中的占位提示 */
.video-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	font-size: 14px;
	background: #0f172a;
	pointer-events: none;
	transition: opacity 0.4s ease;
}
.video-wrapper.loaded .video-placeholder {
	opacity: 0;
}

/* 视频信息 */
.video-info {
	padding: 28px 30px 30px;
}

.video-title {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 8px;
	line-height: 1.3;
	transition: opacity 0.2s ease;
}

.video-desc {
	font-size: 15px;
	color: #64748b;
	line-height: 1.7;
	transition: opacity 0.2s ease;
}

.video-meta {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	padding-top: 16px;
	border-top: 1px solid #f1f4f9;
}

.meta-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #94a3b8;
}

.meta-tag .dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #3b82f6;
}

.meta-tag .dot.green {
	background: #22c55e;
}
.meta-tag .dot.orange {
	background: #f59e0b;
}

/* ===== 底部（统一浅色风格） ===== */
.footer {
	background: #ffffff;
	border-top: 1px solid #e9edf4;
	color: #64748b;
	padding: 28px 0 32px;
	flex-shrink: 0;
	margin-top: auto;
}

.footer .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 20px;
	font-size: 15px;
}

.footer-links a {
	color: #64748b;
	text-decoration: none;
	transition: color 0.2s;
	position: relative;
	padding: 4px 0;
}

.footer-links a:hover {
	color: #0f172a;
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px 12px;
	font-size: 13px;
	color: #94a3b8;
	border-top: 1px solid #eef2f6;
	padding-top: 16px;
	margin-top: 4px;
}

.footer-legal span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.footer-legal .sep {
	color: #d1d5db;
	user-select: none;
}

.footer-legal a {
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.2s;
}

.footer-legal a:hover {
	color: #0f172a;
}

/* ===== 工具 & 提示 ===== */
.hint {
	font-size: 13px;
	color: #94a3b8;
	text-align: center;
	margin-top: 12px;
}
code {
	background: #eef2f6;
	padding: 0 6px;
	border-radius: 4px;
	font-size: 12px;
}

/* ===== 响应式微调 ===== */
@media (max-width: 640px) {
	.header .container {
		flex-wrap: wrap;
		gap: 8px;
	}

	.logo-text {
		font-size: 19px;
	}
	.logo-icon {
		width: 200px;
		max-width: 50vw;
		height: 38px;
	}

	.header-extra {
		font-size: 13px;
		gap: 12px;
	}

	.main {
		padding: 20px 0 32px;
	}

	.gallery {
		gap: 16px;
		/* 小屏间距稍微缩小 */
	}

	.footer {
		padding: 24px 0 28px;
	}
	.footer-links {
		gap: 4px 16px;
		font-size: 14px;
	}
	.footer-legal {
		font-size: 12px;
		gap: 2px 12px;
		flex-direction: column;
		align-items: center;
	}
	.footer-legal .sep {
		display: none;
	}

	.card-list {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.panel {
		padding: 20px 18px;
	}

	.page-title {
		font-size: 20px;
	}

	/* 视频页语言切换在小屏居中 */
	.lang-switch {
		justify-content: center;
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
	}
	.lang-btn {
		padding: 5px 14px;
		font-size: 13px;
		flex: 1;
		text-align: center;
	}
}

@media (max-width: 600px) {
	.header .container {
		flex-wrap: wrap;
		gap: 6px;
	}

	.footer {
		padding: 28px 0 20px;
	}
}

@media (max-width: 400px) {
	.gallery {
		gap: 12px;
	}
	.logo-text {
		font-size: 17px;
	}
	.logo-icon {
		width: 160px;
		max-width: 44vw;
		height: 34px;
		border-radius: 10px;
	}

	.lang-btn {
		padding: 4px 10px;
		font-size: 12px;
	}

	.video-title {
		font-size: 18px;
	}
}

/* ===== 工具类 ===== */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* 切换过渡 */
.fade-transition {
	transition: opacity 0.25s ease;
}
