/*
 * 首页横幅（2026 改版 v2）：深色图书馆场景 + 真实产品截图 + 功能标签
 * 字体：思源黑体（Noto Sans SC Variable，本地托管）
 * 场景图：images/banner/library_scene.svg（书架、吊灯，白色半透明）
 * 截图：images/banner/tsg_app.webp、bm_app.webp（已遮盖个人姓名）
 * 结构见 app/home/view/index/index.php 的 .m-banner；仍运行在 BS5 carousel 中
 */
.m-banner {
	position: relative;
	overflow: hidden;
	height: 520px;
	text-align: left !important;
	font-family: "Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei", sans-serif;
	color: #FFFFFF;
}
.m-banner-tsg {
	/* 与图书馆系统顶栏的青蓝色呼应 */
	background: linear-gradient(115deg, #052338 0%, #0A4466 48%, #0C6E96 100%);
	--bn-tag: #BFE9FF;
	--bn-glow: rgba(56, 189, 248, .35);
	--bn-chip-ico: #38BDF8;
}
.m-banner-bm {
	/* 与编目客户端的蓝紫色呼应 */
	background: linear-gradient(115deg, #0F1035 0%, #1D2470 50%, #3346B8 100%);
	--bn-tag: #D4DBFF;
	--bn-glow: rgba(129, 140, 248, .40);
	--bn-chip-ico: #818CF8;
}

/* 图书馆场景：书架 + 吊灯，向左渐隐 */
.m-banner-scene {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 72%;
	background: url(../../../images/banner/library_scene.svg) right center / cover no-repeat;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
	mask-image: linear-gradient(to right, transparent 0%, #000 45%);
	opacity: .9;
}
/* 截图背后的光晕 */
.m-banner::after {
	content: "";
	position: absolute;
	right: 12%;
	top: 50%;
	width: 640px;
	height: 420px;
	transform: translateY(-50%);
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--bn-glow), transparent);
	pointer-events: none;
}

.m-banner-inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	height: 100%;
	margin: 0 auto;
	/* 底部留白给首页叠放的产品卡片 */
	padding: 0 24px 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}
.m-banner-text {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 520px;
	flex-shrink: 0;
}
.m-banner-tag {
	align-self: flex-start;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: var(--bn-tag);
	font-size: 14px;
	font-weight: 500;
}
.m-banner-title {
	margin: 0;
	font-size: 48px;
	line-height: 1.22;
	font-weight: 900;
	letter-spacing: 1px;
	color: #FFFFFF;
}
.m-banner-sub {
	margin: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, .78);
}
.m-banner-cta {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 8px;
}
/* 多一层 .m-banner-cta，压过 index.css 的 .carousel .carousel-inner .item a{display:inline-block} */
.m-carousel .m-banner .m-banner-cta .m-banner-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	height: 52px;
	padding: 0 30px;
	border-radius: 12px;
	background: #E8590C;
	color: #FFFFFF;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(232, 89, 12, .35);
}
.m-carousel .m-banner .m-banner-btn:hover {
	background: #D9480F;
	color: #FFFFFF;
}
.m-carousel .m-banner .m-banner-btn:focus-visible {
	outline: 3px solid rgba(255, 255, 255, .6);
	outline-offset: 2px;
}
.m-banner-price {
	font-size: 15px;
	color: rgba(255, 255, 255, .75);
}
.m-banner-price strong {
	font-size: 26px;
	font-weight: 900;
	color: #FFB37A;
}

/* 截图 + 标签 */
.m-banner-art {
	position: relative;
	flex: 0 1 660px;
	min-width: 0;
	height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
}
/* 三张截图斜面立体重叠：整体倾斜，后两张沿 Z 轴后退 */
.m-banner-art {
	perspective: 2200px;
}
.m-stack {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transform: rotateX(12deg) rotateY(-22deg) rotateZ(4deg);
}
.m-shot {
	position: absolute;
	width: 74%;
	overflow: hidden;
	border-radius: 10px;
	background: #FFFFFF;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .14);
}
.m-shot-3 {
	right: -8%;
	top: -6%;
	transform: translateZ(-220px);
}
.m-shot-2 {
	right: 6%;
	top: 11%;
	transform: translateZ(-110px);
}
.m-shot-1 {
	left: -2%;
	top: 28%;
	transform: translateZ(0);
	box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .18);
}
/* 云图书馆：四层（最后一层为智慧墙） */
.m-stack-4 .m-shot {
	width: 68%;
}
.m-stack-4 .m-shot-4 {
	right: -6%;
	top: -11%;
	transform: translateZ(-300px);
}
.m-stack-4 .m-shot-3 {
	right: 2%;
	top: 2%;
	transform: translateZ(-200px);
}
.m-stack-4 .m-shot-2 {
	right: 10%;
	top: 15%;
	transform: translateZ(-100px);
}
.m-stack-4 .m-shot-1 {
	left: -4%;
	top: 29%;
}
.m-shot-4::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(6, 20, 40, .4);
	pointer-events: none;
}
/* 后排略暗，拉开层次 */
.m-shot-2::after,
.m-shot-3::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(6, 20, 40, .18);
	pointer-events: none;
}
.m-shot-3::after {
	background: rgba(6, 20, 40, .32);
}
.m-shot img {
	display: block;
	width: 100%;
	height: auto;
}
.m-shot-bar {
	height: 30px;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 0 12px;
	background: #1F2937;
}
.m-shot-bar i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #F87171;
}
.m-shot-bar i:nth-child(2) {
	background: #FBBF24;
}
.m-shot-bar i:nth-child(3) {
	background: #34D399;
}
.m-shot-bar b {
	flex: 1;
	max-width: 260px;
	height: 18px;
	margin-left: 10px;
	padding: 0 10px;
	border-radius: 9px;
	background: #374151;
	color: #9CA3AF;
	font-size: 11px;
	font-weight: 400;
	line-height: 18px;
}

.m-chip {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .96);
	color: #1F2329;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
	animation: m-chip-float 6s ease-in-out infinite;
}
.m-chip .bi {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--bn-chip-ico);
	color: #FFFFFF;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.m-chip-1 {
	left: -28px;
	top: 34px;
}
.m-chip-2 {
	right: -12px;
	top: 120px;
	animation-delay: -2s;
}
.m-chip-3 {
	left: 24px;
	bottom: 22px;
	animation-delay: -4s;
}
@keyframes m-chip-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
	.m-chip {
		animation: none;
	}
}

/* 深色横幅上的轮播控件 */
.m-home-page .m-carousel .carousel-control.left,
.m-home-page .m-carousel .carousel-control.right {
	width: 5%;
	background-image: none;
}
.m-home-page .m-carousel .carousel-control-prev .bi,
.m-home-page .m-carousel .carousel-control-next .bi {
	color: #FFFFFF;
	text-shadow: none;
	opacity: .6;
}
.m-home-page .m-carousel .carousel-indicators [data-bs-target] {
	border-color: rgba(255, 255, 255, .6);
}
.m-home-page .m-carousel .carousel-indicators .active {
	background-color: #FFFFFF;
	border-color: #FFFFFF;
}

/* 中等屏幕：截图缩小、标签减少 */
@media (max-width: 1199.98px) {
	.m-banner-title {
		font-size: 40px;
	}
	.m-banner-text {
		max-width: 420px;
	}
	.m-chip-2 {
		display: none;
	}
}
/* 平板：隐藏截图，保留场景 */
@media (max-width: 991.98px) {
	.m-banner-art {
		display: none;
	}
	.m-banner-scene {
		width: 100%;
		opacity: .55;
	}
}
/* 手机：仅文字 */
@media (max-width: 767.98px) {
	.m-banner {
		height: 340px;
	}
	.m-banner::after {
		display: none;
	}
	.m-banner-inner {
		padding: 32px 24px 40px;
		align-items: stretch;
	}
	.m-banner-text {
		gap: 12px;
		flex-shrink: 1;
	}
	.m-banner-tag {
		padding: 4px 10px;
		font-size: 12px;
	}
	.m-banner-title {
		font-size: 28px;
		line-height: 1.28;
	}
	.m-banner-sub {
		font-size: 14px;
	}
	.m-banner-cta {
		margin-top: auto;
		gap: 12px;
	}
	.m-carousel .m-banner .m-banner-cta .m-banner-btn {
		height: 44px;
		padding: 0 22px;
		border-radius: 10px;
		font-size: 15px;
	}
	.m-banner-price {
		font-size: 13px;
	}
	.m-banner-price strong {
		font-size: 20px;
	}
	.m-home-page .m-carousel .carousel-control-prev,
	.m-home-page .m-carousel .carousel-control-next {
		display: none;
	}
}
