@charset "UTF-8";

/* ============================================================
   首页 · 网站案例板块（参考 www.szweb.cn 首页案例排版与交互）
   配色体系严格对齐当前网站：纯白底 #fff / 墨黑 #222 #171717 / 冷灰 #f7f7f7 #e6e6e6 / 品牌红 #f10a0a
   ============================================================ */

.idxc-section {
	width: 100%;
	padding: 54px 0 84px;
	background: #fff;
}

.idxc-section *,
.idxc-section *::before,
.idxc-section *::after {
	box-sizing: border-box;
}

/* ---------- 头部标题与副标题 ---------- */
.idxc-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
}

.idxc-head-left {
	min-width: 0;
}

.idxc-title {
	display: flex;
	align-items: center;
	margin: 0;
	font-size: 36px;
	line-height: 1.2;
	font-weight: bold;
	color: #222;
	letter-spacing: .01em;
}

.idxc-title-plus {
	position: relative;
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 12px;
	flex-shrink: 0;
}

.idxc-title-plus::before,
.idxc-title-plus::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	background: #f10a0a;
	transform: translate(-50%, -50%);
	border-radius: 1px;
}

.idxc-title-plus::before {
	width: 100%;
	height: 3px;
}

.idxc-title-plus::after {
	width: 3px;
	height: 100%;
}

.idxc-sub {
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 26px;
	color: #666;
}

.idxc-head-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	height: 44px;
	padding: 0 22px;
	border-radius: 22px;
	background: #fff;
	border: 1px solid #e6e6e6;
	color: #222;
	font-size: 14px;
	transition: all .28s ease;
}

.idxc-head-more i {
	font-style: normal;
	font-size: 14px;
	line-height: 1;
	transition: transform .28s ease;
}

.idxc-head-more:hover {
	background: #f10a0a;
	border-color: #f10a0a;
	color: #fff;
}

.idxc-head-more:hover i {
	transform: rotate(45deg);
}

/* ---------- 行业分类胶囊 ---------- */
.idxc-menu {
	margin-top: 24px;
}

.idxc-menu ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.idxc-menu li {
	margin: 0;
}

.idxc-menu li a {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 18px;
	border-radius: 18px;
	background: #f7f7f7;
	border: 1px solid #e6e6e6;
	font-size: 14px;
	color: #555;
	transition: all .25s ease;
}

.idxc-menu li a:hover,
.idxc-menu li.on a {
	background: #222;
	border-color: #222;
	color: #fff;
}

/* ---------- 错落 Bento 案例网格（3 列对齐体系） ---------- */
.idxc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: clamp(68px, 4.9vw, 94px);
	gap: 24px;
	margin-top: 34px;
}

.idxc-card {
	position: relative;
	grid-column: span 1;
	grid-row: span 4;
	border-radius: 20px;
	overflow: hidden;
	background: #f5f5f5;
	border: 1px solid rgba(0, 0, 0, .05);
	transform: translateY(0);
	transition: transform .55s cubic-bezier(.16, 1, .3, 1), box-shadow .55s cubic-bezier(.16, 1, .3, 1);
}

.idxc-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .14);
}

/* 非对称错落编排（对标 szweb.cn 首页 11 张案例呼吸节奏） */
.idxc-card:nth-child(1) {
	grid-column: 1 / -1;
	grid-row: span 4;
}

.idxc-card:nth-child(2) {
	grid-column: 1 / span 2;
	grid-row: span 4;
}

.idxc-card:nth-child(3) {
	grid-column: 3 / span 1;
	grid-row: span 5;
}

.idxc-card:nth-child(4),
.idxc-card:nth-child(5) {
	grid-column: span 1;
	grid-row: span 4;
}

.idxc-card:nth-child(6) {
	grid-column: 3 / span 1;
	grid-row: span 3;
}

.idxc-card:nth-child(7) {
	grid-column: 1 / span 1;
	grid-row: span 4;
}

.idxc-card:nth-child(8) {
	grid-column: 2 / span 2;
	grid-row: span 4;
}

/* 封面链接与图片 */
.idxc-cover {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.idxc-cover img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
	display: block;
	transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}

.idxc-card:hover .idxc-cover img {
	transform: scale(1.05);
}

/* 底部轻柔渐变遮罩，保留案例图通透感的同时确保底部文字可读 */
.idxc-cover::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(
		180deg,
		rgba(17, 20, 26, 0) 56%,
		rgba(17, 20, 26, .16) 78%,
		rgba(17, 20, 26, .46) 100%
	);
	transition: background .45s ease;
	pointer-events: none;
}

.idxc-card:hover .idxc-cover::after {
	background: linear-gradient(
		180deg,
		rgba(17, 20, 26, 0) 46%,
		rgba(17, 20, 26, .26) 72%,
		rgba(17, 20, 26, .56) 100%
	);
}

/* 底部叠层内容区 */
.idxc-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	padding: 0 28px 26px;
	pointer-events: none;
}

.idxc-card:nth-child(1) .idxc-content,
.idxc-card:nth-child(2) .idxc-content,
.idxc-card:nth-child(8) .idxc-content {
	padding: 0 34px 30px;
}

.idxc-card-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.3;
	font-weight: bold;
	transform: translateY(3px);
	transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.idxc-card:nth-child(1) .idxc-card-title,
.idxc-card:nth-child(2) .idxc-card-title,
.idxc-card:nth-child(8) .idxc-card-title {
	font-size: 26px;
}

.idxc-card:hover .idxc-card-title {
	transform: translateY(0);
}

.idxc-card-title a {
	display: inline-block;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .32);
	pointer-events: auto;
	transition: color .25s ease;
}

.idxc-card-title a:hover {
	color: #ffd3d3;
}

/* 简介默认收起，悬停卡片顺滑展开 2 行 */
.idxc-desc {
	margin-top: 8px;
	max-width: 720px;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	font-size: 13px;
	line-height: 22px;
	color: rgba(255, 255, 255, .92);
	text-shadow: 0 1px 6px rgba(0, 0, 0, .28);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
	transition: max-height .6s cubic-bezier(.16, 1, .3, 1), opacity .45s ease;
}

.idxc-desc:empty {
	display: none;
}

.idxc-card:hover .idxc-desc {
	max-height: 46px;
	opacity: 1;
}

/* 胶囊标签组 */
.idxc-labels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.idxc-tag {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	height: 27px;
	padding: 0 14px;
	border-radius: 14px;
	font-size: 12px;
	line-height: 1;
	color: rgba(255, 255, 255, .95);
	border: 1px solid rgba(255, 255, 255, .48);
	background: rgba(255, 255, 255, .16);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: all .28s ease;
}

.idxc-tag:hover {
	background: #f10a0a;
	border-color: #f10a0a;
	color: #fff;
}

/* ---------- 底部「更多案例 +」横线贯穿胶囊按钮 ---------- */
.idxc-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 54px;
	position: relative;
}

.idxc-more-wrap::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: #e6e6e6;
	transform: translateY(-50%);
}

.idxc-more-btn {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: min(460px, 100%);
	height: 46px;
	border-radius: 46px;
	background: #f7f7f7;
	border: 1px solid #e6e6e6;
	color: #222;
	font-size: 14px;
	font-weight: 500;
	transition: all .35s ease;
}

.idxc-more-btn i {
	position: relative;
	display: block;
	width: 11px;
	height: 11px;
	margin-left: 10px;
	transition: transform .35s ease;
}

.idxc-more-btn i::before,
.idxc-more-btn i::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	background: #222;
	transform: translate(-50%, -50%);
	transition: background .35s ease;
}

.idxc-more-btn i::before {
	width: 11px;
	height: 1px;
}

.idxc-more-btn i::after {
	width: 1px;
	height: 11px;
}

.idxc-more-btn:hover {
	background: #f10a0a;
	border-color: #f10a0a;
	color: #fff;
}

.idxc-more-btn:hover i {
	transform: rotate(90deg);
}

.idxc-more-btn:hover i::before,
.idxc-more-btn:hover i::after {
	background: #fff;
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 1024px) {
	.idxc-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.idxc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: auto;
		gap: 18px;
	}

	.idxc-card,
	.idxc-card:nth-child(2),
	.idxc-card:nth-child(3),
	.idxc-card:nth-child(4),
	.idxc-card:nth-child(5),
	.idxc-card:nth-child(6),
	.idxc-card:nth-child(7),
	.idxc-card:nth-child(8) {
		grid-column: span 1;
		grid-row: auto;
		aspect-ratio: 4 / 3;
	}

	.idxc-card:nth-child(1) {
		grid-column: 1 / -1;
		grid-row: auto;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 767px) {
	.idxc-section {
		padding: 44px 0 54px;
	}

	.idxc-title {
		font-size: 24px;
	}

	.idxc-title-plus {
		width: 13px;
		height: 13px;
		margin-left: 8px;
	}

	.idxc-title-plus::before {
		height: 2.5px;
	}

	.idxc-title-plus::after {
		width: 2.5px;
	}

	.idxc-sub {
		margin-top: 8px;
		font-size: 13px;
		line-height: 22px;
	}

	.idxc-head-more {
		height: 36px;
		padding: 0 16px;
		font-size: 13px;
	}

	.idxc-menu {
		margin-top: 16px;
	}

	.idxc-menu ul {
		gap: 8px;
	}

	.idxc-menu li a {
		height: 32px;
		padding: 0 14px;
		font-size: 12px;
	}

	.idxc-grid {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-top: 22px;
	}

	.idxc-card,
	.idxc-card:nth-child(1),
	.idxc-card:nth-child(2),
	.idxc-card:nth-child(3),
	.idxc-card:nth-child(4),
	.idxc-card:nth-child(5),
	.idxc-card:nth-child(6),
	.idxc-card:nth-child(7),
	.idxc-card:nth-child(8) {
		grid-column: span 1;
		aspect-ratio: 4 / 3;
		border-radius: 14px;
	}

	.idxc-content,
	.idxc-card:nth-child(1) .idxc-content,
	.idxc-card:nth-child(2) .idxc-content,
	.idxc-card:nth-child(8) .idxc-content {
		padding: 0 18px 18px;
	}

	.idxc-card-title,
	.idxc-card:nth-child(1) .idxc-card-title,
	.idxc-card:nth-child(2) .idxc-card-title,
	.idxc-card:nth-child(8) .idxc-card-title {
		font-size: 18px;
		transform: none;
	}

	/* 移动端无 hover，简介默认显示两行 */
	.idxc-desc {
		max-height: 40px;
		opacity: 1;
		font-size: 12px;
		line-height: 20px;
	}

	.idxc-tag {
		height: 24px;
		padding: 0 11px;
		font-size: 11px;
	}

	.idxc-more-wrap {
		margin-top: 32px;
	}

	.idxc-more-btn {
		width: 210px;
		height: 40px;
		font-size: 13px;
	}
}
