@charset "utf-8";
/* CSS Document */
/* ===== 马钢模块 ===== */
.magang-main {
	background-color: #000000;
	color: #fff;
	min-height: 900px;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	margin:30px 0;
	z-index:1;
}
.magang-bg {
	position: absolute;
	inset: 0;
	background-image: url("../images/magangbg.jpg");
	background-size: auto;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 1;
	z-index: 1;
	pointer-events: none;
}
.magang-wrap {
	position: relative;
	z-index: 2;
	text-align: center;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 10px;
}

/* ===== 中式边框标题 ===== */
.magang-title-box {
	width: 150px;
	height: 150px;
	margin: 0 auto 24px;
	padding: 12px;
	position: relative;
	background: url("../images/magangsc.png") center / cover no-repeat;
	flex-shrink: 0;
}
.magang-title-box::before,
.magang-title-box::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	/*border: 2px solid #d4af68;*/
}
.magang-title-box::before {
	top: -2px;
	left: -2px;
	border-right: none;
	border-bottom: none;
}
.magang-title-box::after {
	bottom: -2px;
	right: -2px;
	border-left: none;
	border-top: none;
}
.magang-title-box span {
	font-family: "Kaiti SC", "KaiTi", "楷体", "楷体_GB2312", serif;
	font-size: 72px;
	background: -webkit-linear-gradient(#f2e9d8, #ceb694, #8e7156);
	background: -o-linear-gradient(#f2e9d8, #ceb694, #8e7156);
	background: linear-gradient(#f2e9d8, #ceb694, #8e7156);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-weight: bold;
	line-height: 110px;
	display: block;
}

.magang-logo-img {
	width: 60px;
	margin-bottom: 10px;
}
.magang-name {
	font-size: 18px;
	letter-spacing: 3px;
	color: #cccccc;
	margin: 20px auto;
}

/* ===== 播放按钮 ===== */
.magang-play-btn {
	border: 1px solid #d4af68;
	background-color: transparent;
	color: #fff;
	padding: 14px 200px;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 auto;
	transition: background 0.3s;
	border-radius: 2px;
}
.magang-play-btn:hover {
	background-color: rgba(212, 175, 104, 0.15);
}

.magang-icon-triangle {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #d4af68;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.magang-btn-desc {
	font-size: 14px;
	letter-spacing: 3px;
	color: #aaa;
	margin-top: 12px;
}

/* ===== 全屏视频弹窗 ===== */
.video-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0.45s ease;
	/* 点击遮罩背景关闭（备用） */
	cursor: default;
}
.video-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* 视频包装器 — 点击视频本身触发暂停+关闭 */
.video-overlay .video-wrapper {
	width: 80vw;
	position: relative;
	cursor: pointer;
	/* 点击视频触发暂停+关闭 */;
}

.video-overlay video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 90vh;
	background: #000000;
	border-radius: 4px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
	cursor: pointer;
	/* 视频本身也可点击 */;
}

/* ===== 关闭按钮（右上角） ===== */
.video-close-btn {
	position: absolute;
	top: 15px;
	right: 36px;
	background: rgb(0 0 0 / 25%);
	border: 2px solid #d4af6840;
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s, transform 0.2s;
	backdrop-filter: blur(4px);
	font-family: "Arial", sans-serif;
	user-select: none;
	z-index: 10;
}
.video-close-btn:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: scale(1.08);
}

/* ===== 视频加载中的占位提示 ===== */
.video-overlay .video-placeholder {
	display: none;
	color: #888;
	font-size: 18px;
	letter-spacing: 2px;
}

@media (max-width: 1530px) {
	.magang-main {
		min-height: 800px;
	}
	.magang-bg {
		background-size:120%;
	}
}
@media (max-width: 1440px) {
	.magang-main {
		min-height: 700px;
	}
}
@media (max-width: 1280px) {
	.magang-main {
		min-height: 650px;
	}
}
@media (max-width: 1024px) {
	.magang-main {
		min-height: auto !important;
	}
}
/* ===== 响应式微调 ===== */
@media (max-width: 768px) {
	.magang-play-btn {
		padding: 14px 60px;
	}
	.magang-title-box {
		width: 120px;
		height: 120px;
	}
	.magang-title-box span {
		font-size: 58px;
		line-height: 88px;
	}
	.magang-logo-img {
		width: 48px;
	}
	.magang-name {
		font-size: 15px;
	}
	.video-overlay .video-wrapper {
		width: 92vw;
	}
	.video-close-btn {
		top: -42px;
		right: -4px;
		width: 36px;
		height: 36px;
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.magang-play-btn {
		padding: 10px 100px;
		font-size: 12px;
	}
	.magang-title-box {
		width: 100px;
		height: 100px;
	}
	.magang-title-box span {
		font-size: 48px;
		line-height: 74px;
	}
	.magang-logo-img {
		width: 40px;
	}
	.magang-name {
		font-size: 13px;
	}
	.magang-btn-desc {
		font-size: 12px;
	}
	.video-overlay .video-wrapper {
		width: 96vw;
	}
	.video-close-btn {
		top: -36px;
		right: 0px;
		width: 32px;
		height: 32px;
		font-size: 16px;
	}
}

/* 小屏手机额外优化 */
@media (max-width: 400px) {
	.video-overlay .video-wrapper {
		width: 98vw;
	}
	.video-close-btn {
		top: -32px;
		right: 2px;
		width: 28px;
		height: 28px;
		font-size: 14px;
	}
}

