/**
 * 成功案例板块样式
 *
 * 配色跟随主题主色（#e21f2f，取自主题按钮），页面底色 #f5f5f5（主题首页同款）。
 * 卡片用白色 + 浅灰描边，和首页的区块卡片观感保持一致。
 *
 * 全部用 .hcase- 前缀，避免和主题或其它插件的样式打架。
 */

.hcase-block {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 20px 56px;
	box-sizing: border-box;
}

.hcase-block--home {
	padding-bottom: 60px;
}

/* ---------- 头部 ---------- */

.hcase-head {
	text-align: center;
	margin-bottom: 32px;
}

.hcase-head__title {
	position: relative;
	display: inline-block;
	margin: 0 0 10px;
	padding-bottom: 14px;
	font-size: 30px;
	line-height: 1.3;
	font-weight: 700;
	color: #1f2328;
}

.hcase-head__title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 52px;
	height: 3px;
	margin-left: -26px;
	background: #e21f2f;
	border-radius: 2px;
}

.hcase-head__sub {
	margin: 0;
	font-size: 15px;
	color: #6b7280;
}

.hcase-head--page {
	margin-bottom: 26px;
}

/* ---------- 网格 ---------- */

.hcase-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

/* ---------- 卡片 ---------- */

.hcase-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow .25s, transform .25s, border-color .25s;
}

.hcase-card:hover {
	transform: translateY(-4px);
	border-color: #f3c4c8;
	box-shadow: 0 10px 26px rgba(226, 31, 47, .12);
}

.hcase-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.hcase-card__media {
	position: relative;
	height: 168px;
	overflow: hidden;
	background: #f7f8fa;
}

.hcase-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hcase-card__media--empty {
	background: linear-gradient(135deg, #fdf1f2 0%, #f7f8fa 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hcase-card__initial {
	font-size: 46px;
	font-weight: 700;
	color: #e21f2f;
	opacity: .55;
}

.hcase-card__body {
	padding: 16px 18px 18px;
}

.hcase-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.hcase-tag {
	display: inline-block;
	padding: 2px 9px;
	font-size: 12px;
	line-height: 1.7;
	color: #8a6d3b;
	background: #fdf6e7;
	border-radius: 3px;
}

.hcase-tag--svc {
	color: #b31924;
	background: #fdeeef;
}

.hcase-card__title {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.45;
	font-weight: 600;
	color: #1f2328;
	/* 最多两行，保证多卡片时高度一致 */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.9em;
}

.hcase-card__client {
	margin: 0 0 12px;
	font-size: 13px;
	color: #6b7280;
}

.hcase-dot {
	margin: 0 6px;
	color: #d1d5db;
}

/* ---------- 成果数字（卡片内） ---------- */

.hcase-metrics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.hcase-metric {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hcase-metric__v {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
	color: #e21f2f;
}

.hcase-metric__u {
	display: inline-block;
	margin-left: 2px;
	font-size: 13px;
	font-weight: 600;
	color: #e21f2f;
}

.hcase-metric__l {
	font-size: 12px;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hcase-card__result {
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.7;
	color: #4b5563;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hcase-card__more {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: #e21f2f;
}

.hcase-card__more::after {
	content: " →";
}

.hcase-card__svc {
	display: block;
	margin-top: auto;
	padding: 11px 18px;
	font-size: 13px;
	color: #6b7280;
	text-decoration: none;
	border-top: 1px solid #f2f2f2;
	background: #fafafa;
	transition: color .2s, background .2s;
}

.hcase-card__svc:hover {
	color: #e21f2f;
	background: #fdeeef;
}

/* ---------- 底部按钮 ---------- */

.hcase-foot {
	margin: 34px 0 0;
	text-align: center;
}

.hcase-btn {
	display: inline-block;
	padding: 11px 34px;
	font-size: 15px;
	color: #e21f2f;
	text-decoration: none;
	border: 1px solid #e21f2f;
	border-radius: 24px;
	transition: color .22s, background .22s;
}

.hcase-btn:hover {
	color: #fff;
	background: #e21f2f;
}

/* ---------- 面包屑 ---------- */

.hcase-crumb {
	margin-bottom: 18px;
	font-size: 13px;
	color: #9ca3af;
}

.hcase-crumb a {
	color: #6b7280;
	text-decoration: none;
}

.hcase-crumb a:hover {
	color: #e21f2f;
}

.hcase-crumb__sep {
	margin: 0 7px;
	color: #d1d5db;
}

.hcase-crumb__cur {
	color: #374151;
}

/* ---------- 筛选 ---------- */

.hcase-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 28px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 8px;
}

.hcase-filter__item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hcase-filter__label {
	font-size: 13px;
	color: #6b7280;
}

.hcase-filter__select {
	max-width: 190px;
	padding: 7px 10px;
	font-size: 14px;
	color: #374151;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.hcase-filter__btn {
	padding: 8px 22px;
	font-size: 14px;
	color: #fff;
	background: #e21f2f;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background .2s;
}

.hcase-filter__btn:hover {
	background: #c8192a;
}

.hcase-filter__clear {
	font-size: 13px;
	color: #6b7280;
	text-decoration: none;
}

.hcase-filter__clear:hover {
	color: #e21f2f;
}

/* ---------- 单案例页 ---------- */

.hcase-single {
	max-width: 980px;
	margin: 0 auto;
	padding: 40px 20px 56px;
}

.hcase-single__head {
	margin-bottom: 28px;
}

.hcase-single__title {
	margin: 0 0 16px;
	font-size: 30px;
	line-height: 1.35;
	font-weight: 700;
	color: #1f2328;
}

.hcase-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 0;
	padding: 14px 18px;
	list-style: none;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 8px;
}

.hcase-fact {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 14px;
}

.hcase-fact__k {
	color: #9ca3af;
}

.hcase-fact__v {
	color: #374151;
	font-weight: 600;
}

/* 关键数字大卡 */

.hcase-bignum {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 0 0 34px;
}

.hcase-bignum__item {
	padding: 22px 18px;
	text-align: center;
	background: linear-gradient(160deg, #fff 0%, #fdf6f7 100%);
	border: 1px solid #f5dadd;
	border-radius: 10px;
}

.hcase-bignum__value {
	margin: 0 0 6px;
	font-size: 36px;
	font-weight: 800;
	line-height: 1.1;
	color: #e21f2f;
}

.hcase-bignum__unit {
	margin-left: 3px;
	font-size: 17px;
	font-weight: 600;
}

.hcase-bignum__label {
	margin: 0;
	font-size: 13.5px;
	color: #6b7280;
}

/* 痛点 / 方案 / 成果 */

.hcase-story {
	margin-bottom: 32px;
}

.hcase-story__item {
	margin-bottom: 26px;
}

.hcase-story__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 19px;
	font-weight: 600;
	color: #1f2328;
}

.hcase-story__no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: #e21f2f;
	border-radius: 50%;
}

.hcase-story__body {
	font-size: 15px;
	line-height: 1.9;
	color: #374151;
}

.hcase-story__body p {
	margin: 0 0 10px;
}

.hcase-story__body p:last-child {
	margin-bottom: 0;
}

/* 客户评价 */

.hcase-quote {
	position: relative;
	margin: 0 0 32px;
	padding: 24px 28px;
	background: #fff;
	border-left: 4px solid #e21f2f;
	border-radius: 0 8px 8px 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.hcase-quote__text {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.9;
	color: #374151;
}

.hcase-quote__by {
	font-size: 13.5px;
	font-style: normal;
	color: #9ca3af;
}

/* 编辑器正文 */

.hcase-body {
	margin-bottom: 32px;
	font-size: 15px;
	line-height: 1.9;
	color: #374151;
}

.hcase-body img {
	max-width: 100%;
	height: auto;
}

/* ---------- CTA ---------- */

.hcase-cta {
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 28px;
	align-items: center;
	margin-top: 34px;
	padding: 30px 32px;
	background: linear-gradient(120deg, #fff5f5 0%, #fff 65%);
	border: 1px solid #f5dadd;
	border-radius: 12px;
}

.hcase-cta__title {
	margin: 0 0 8px;
	font-size: 21px;
	font-weight: 700;
	color: #1f2328;
}

.hcase-cta__sub {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.8;
	color: #6b7280;
}

.hcase-cta__form {
	min-width: 0;
}

/* 主插件的留资表单在这个容器里要去掉自带的白底边框，避免两层框 */
.hcase-cta__form .hefu-lead {
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.hcase-cta__form .hefu-lead__title {
	text-align: left;
}

.hcase-svc-link {
	margin: 22px 0 0;
	font-size: 14.5px;
	color: #6b7280;
}

.hcase-svc-link a {
	color: #e21f2f;
	text-decoration: none;
	font-weight: 600;
}

.hcase-svc-link a:hover {
	text-decoration: underline;
}

/* ---------- 相关案例 ---------- */

.hcase-related {
	margin-top: 46px;
	padding-top: 30px;
	border-top: 1px solid #ececec;
}

.hcase-related__title {
	margin: 0 0 20px;
	font-size: 20px;
	font-weight: 600;
	color: #1f2328;
}

.hcase-back {
	margin: 34px 0 0;
	text-align: center;
}

.hcase-back a {
	font-size: 14px;
	color: #6b7280;
	text-decoration: none;
}

.hcase-back a:hover {
	color: #e21f2f;
}

/* ---------- 空态 ---------- */

.hcase-empty {
	margin: 40px 0;
	padding: 46px 20px;
	text-align: center;
	font-size: 15px;
	color: #6b7280;
	background: #fff;
	border: 1px dashed #dcdcdc;
	border-radius: 10px;
}

/* ---------- 分页 ---------- */

.hcase-block .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
}

.hcase-block .page-numbers li {
	margin: 0;
}

.hcase-block .page-numbers a,
.hcase-block .page-numbers span {
	display: inline-block;
	min-width: 36px;
	padding: 8px 12px;
	font-size: 14px;
	text-align: center;
	color: #4b5563;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 5px;
	transition: color .2s, background .2s, border-color .2s;
}

.hcase-block .page-numbers a:hover {
	color: #fff;
	background: #e21f2f;
	border-color: #e21f2f;
}

.hcase-block .page-numbers .current {
	color: #fff;
	background: #e21f2f;
	border-color: #e21f2f;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
	.hcase-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hcase-cta {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

@media (max-width: 640px) {
	.hcase-block {
		padding: 32px 14px 40px;
	}

	.hcase-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.hcase-head__title {
		font-size: 24px;
	}

	.hcase-single {
		padding: 26px 14px 40px;
	}

	.hcase-single__title {
		font-size: 23px;
	}

	.hcase-bignum {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.hcase-bignum__value {
		font-size: 30px;
	}

	.hcase-cta {
		padding: 22px 18px;
	}

	.hcase-filter {
		flex-direction: column;
		align-items: stretch;
	}

	.hcase-filter__select {
		max-width: none;
		width: 100%;
	}
}
