/* case.css —— 成功案例页（case.html）配套样式
   约定：所有选择器均以 .case- 前缀限定，避免污染首页既有规则 */

/* ============ 1. 数据条 ============ */
.case-stats {
	background: #f8f8f8;
	padding: 50px 0;
	width: 100%;
	min-width: 1200px;
}

.case-stats ul {
	display: -webkit-box;
	display: -webkit-flex;
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
}

.case-stats li {
	-webkit-box-flex: 1;
	-webkit-flex: 1;
	flex: 1;
	text-align: center;
	padding: 24px 10px;
	border-right: 1px solid #e8edf0;
	-webkit-transition: background .3s;
	transition: background .3s;
}

.case-stats li:last-child {
	border-right: 0;
}

.case-stats li:hover {
	background: #fff;
}

.case-stats .num {
	font-size: 38px;
	color: #004e79;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 1px;
}

.case-stats .num span {
	font-size: 15px;
	color: #666;
	font-weight: normal;
	margin-left: 4px;
	letter-spacing: 0;
}

.case-stats .lbl {
	font-size: 13px;
	color: #999;
	margin-top: 12px;
	letter-spacing: 1px;
}

/* ============ 2. 段标题（案例名单 / 合作场景 共用） ============ */
.case-tit {
	text-align: center;
	padding: 50px 0 28px;
}

.case-tit p {
	font-size: 12px;
	color: #999;
	line-height: 24px;
	letter-spacing: 3px;
	margin-bottom: 0;
}

.case-tit span {
	font-size: 20px;
	color: #004e79;
	font-weight: normal;
	position: relative;
	display: inline-block;
	padding: 0 18px;
	background: #fff;
	z-index: 1;
}

.case-tit span:before {
	content: "";
	position: absolute;
	top: 13px;
	left: -90px;
	width: 90px;
	height: 1px;
	background: #ccc;
}

.case-tit span:after {
	content: "";
	position: absolute;
	top: 13px;
	left: 100%;
	width: 90px;
	height: 1px;
	background: #ccc;
}

/* ============ 3. 案例表格 ============ */
.case-table {
	background: #fff;
	padding-bottom: 60px;
	width: 100%;
	min-width: 1200px;
}

.case-table-wrap {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 6px 30px rgba(0, 0, 0, .06);
	overflow: hidden;
}

table.case-list {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.case-list thead tr {
	background: #004e79;
}

.case-list th {
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	padding: 18px 14px;
	text-align: left;
	border: 0;
}

.case-list th.c-no {
	width: 70px;
	text-align: center;
}

.case-list th.c-co {
	width: 26%;
	min-width: 260px;
}

.case-list th.c-amt {
	width: 140px;
	text-align: right;
}

.case-list td {
	padding: 16px 14px;
	border-bottom: 1px solid #eef0f2;
	font-size: 13px;
	color: #444;
	vertical-align: middle;
	word-break: break-all;
}

.case-list td.c-no {
	text-align: center;
	color: #999;
	font-weight: 500;
}

.case-list td.c-co {
	font-weight: 500;
	color: #222;
}

.case-list td.c-amt {
	text-align: right;
	color: #004e79;
	font-weight: 500;
}

.case-list tbody tr:nth-child(even) td {
	background: #fafbfc;
}

.case-list tbody tr:hover td {
	background: #f0f7fb;
}

.case-list tbody tr:last-child td {
	border-bottom: 0;
}

.case-list .tag {
	display: inline-block;
	padding: 2px 10px;
	font-size: 12px;
	/*color: #2cb6ec;
	background: rgba(44, 182, 236, .10);*/
	border-radius: 10px;
	line-height: 1.6;
	white-space: nowrap;
}

/* ============ 4. 案例图片 ============ */
.case-gallery {
	background: #f8f8f8;
	padding: 10px 0 60px;
	width: 100%;
	min-width: 1200px;
}

/* 灰底区块：标题底色需与区块一致，避免露出白块 */
.case-gallery .case-tit span {
	background: #f8f8f8;
}

.case-gallery-list {
	display: -webkit-box;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* 一行三个 */
.case-gallery-list li {
	-webkit-box-flex: 0;
	-webkit-flex: 0 0 calc((100% - 40px) / 3);
	flex: 0 0 calc((100% - 40px) / 3);
	display: -webkit-box;
	display: -webkit-flex;
	display: flex;
	overflow: hidden;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
	background: #fff;
}

/* 卡片内列布局：标题固定贴底，同一行标题高度对齐 */
.case-gallery-list li a {
	-webkit-box-flex: 1;
	-webkit-flex: 1;
	flex: 1;
	display: -webkit-box;
	display: -webkit-flex;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-flex-direction: column;
	flex-direction: column;
	overflow: hidden;
	cursor: zoom-in;
}

/* 统一图片显示区：完整显示不裁剪，图片大小一致 */
.case-gallery-list li img {
	width: 100%;
	height: 250px;
	object-fit: contain;
	display: block;
	background: #fff;
	-webkit-transition: -webkit-transform .5s ease;
	transition: transform .5s ease;
}

.case-gallery-list li:hover img {
	-webkit-transform: scale(1.06);
	transform: scale(1.06);
}

.case-cap {
	display: block;
	text-align: center;
	font-size: 14px;
	color: #444;
	padding: 12px 10px 4px;
	margin-top: auto;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ============ 4.1 图片放大预览层 ============ */
.case-lightbox {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, .85);
	display: none;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	z-index: 9999;
}

.case-lightbox.on {
	display: block;
}

.case-lightbox-inner {
	box-sizing: border-box;
	min-height: 100%;
	padding: 40px 3%;
	display: -webkit-box;
	display: -webkit-flex;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-flex-direction: column;
	flex-direction: column;
}

.case-lightbox img {
	margin: auto auto 0;
	max-width: 100%;
	max-height: 78vh;
	display: block;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
	cursor: zoom-in;
}

/* 再点一次大图：按原始尺寸显示，可滚动查看细节 */
.case-lightbox.grow img {
	max-width: none;
	max-height: none;
	cursor: zoom-out;
}

.case-lightbox-cap {
	margin: 18px auto 0;
	color: #fff;
	font-size: 15px;
	line-height: 1.6;
	letter-spacing: 1px;
	text-align: center;
}

.case-lightbox-close {
	position: fixed;
	top: 14px;
	right: 22px;
	width: 46px;
	height: 46px;
	line-height: 44px;
	text-align: center;
	font-size: 32px;
	color: #fff;
	opacity: .75;
	cursor: pointer;
	z-index: 2;
}

.case-lightbox-close:hover {
	opacity: 1;
}

/* ============ 5. 移动端适配 ============ */
@media only screen and (max-width: 750px) {

	/* 通用 .container 是固定 1200px，common.css 只覆盖了 header / footer 两处，
	   这里对本页三个区块内的 .container 单独改为流式，写法对齐 footer .container */
	.case-stats .container,
	.case-table .container,
	.case-gallery .container {
		width: 100%;
		padding: 0 4%;
		min-width: 100%;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
	}

	.banner {
		min-width: 100%;
	}

	.banner img {
		width: 100%;
	}

	.case-stats {
		min-width: 100%;
	}

	.case-stats ul {
		-webkit-flex-wrap: wrap;
		flex-wrap: wrap;
		gap: 0;
	}

	.case-stats li {
		-webkit-box-flex: 0;
		-webkit-flex: 0 0 50%;
		flex: 0 0 50%;
		border-right: 0;
		border-bottom: 1px solid #e8edf0;
		padding: .2rem .08rem;
	}

	.case-stats .num {
		font-size: .28rem;
	}

	.case-stats .lbl {
		font-size: .12rem;
		margin-top: .08rem;
	}

	.case-tit {
		padding: .3rem 0 .2rem;
	}

	.case-tit p {
		font-size: .12rem;
		letter-spacing: .02rem;
	}

	.case-tit span {
		font-size: .17rem;
		padding: 0 .12rem;
	}

	.case-tit span:before {
		width: .36rem;
		left: -.36rem;
	}

	.case-tit span:after {
		width: .36rem;
		left: 100%;
	}

	.case-tit span:before,
	.case-tit span:after {
		top: .09rem;
	}

	.case-table {
		min-width: 100%;
	}

	.case-table-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	table.case-list {
		min-width: 6.9rem;
	}

	.case-list th {
		font-size: .13rem;
		padding: .14rem .1rem;
	}

	.case-list td {
		font-size: .12rem;
		padding: .12rem .1rem;
	}

	.case-list .tag {
		font-size: .11rem;
		padding: .02rem .08rem;
	}

	.case-gallery {
		min-width: 100%;
	}

	.case-gallery-list {
		-webkit-flex-wrap: wrap;
		flex-wrap: wrap;
		gap: .14rem;
	}

	.case-gallery-list li {
		-webkit-box-flex: 0;
		-webkit-flex: 0 0 calc(50% - .07rem);
		flex: 0 0 calc(50% - .07rem);
	}

	.case-gallery-list li img {
		height: 1.5rem;
	}

	.case-cap {
		font-size: .12rem;
		padding: .08rem .06rem 0;
	}

	.case-lightbox-inner {
		padding: .5rem 4%;
	}

	.case-lightbox img {
		max-height: 70vh;
	}

	.case-lightbox-cap {
		font-size: .13rem;
		margin-top: .12rem;
	}

	.case-lightbox-close {
		top: .1rem;
		right: .12rem;
		font-size: .26rem;
		width: .36rem;
		height: .36rem;
		line-height: .34rem;
	}

}
