/* Apexto Case Tabs — 与站点现有案例卡片视觉保持一致 */

.axct-wrap {
	--axct-green: #25c385;
	--axct-green-soft: rgba(37, 195, 133, 0.1);
	--axct-border: #f2f2f2;
	--axct-text: #242424;
	--axct-text-soft: #54595f;
	--axct-radius: 10px;
	--axct-gap: 30px;
	width: 100%;
	box-sizing: border-box;
}

.axct-wrap *,
.axct-wrap *::before,
.axct-wrap *::after {
	box-sizing: border-box;
}

/* 标签栏 */
.axct-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 30px;
}

.axct-tab {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 15px 20px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	color: #000;
	background: #fff;
	border: 1px solid var(--axct-border);
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.axct-tab:hover {
	border-color: rgba(37, 195, 133, 0.45);
}

.axct-tab:focus-visible {
	outline: 2px solid rgba(37, 195, 133, 0.6);
	outline-offset: 2px;
}

.axct-tab[aria-selected="true"] {
	background: rgba(37, 195, 133, 0.78);
	border-color: transparent;
	color: #fff;
	box-shadow: none;
}

/* 网格 */
.axct-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--axct-gap);
}

.axct-wrap.axct-cols-2 .axct-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.axct-wrap.axct-cols-1 .axct-grid {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1024px) {
	.axct-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.axct-grid,
	.axct-wrap.axct-cols-2 .axct-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.axct-tabs {
		gap: 10px;
	}

	.axct-tab {
		padding: 12px 16px;
	}
}

/* 卡片 */
.axct-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--axct-border);
	border-radius: var(--axct-radius);
	box-shadow: 0 4px 44px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	min-width: 0;
}

.axct-card[hidden] {
	display: none !important;
}

.axct-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	min-height: 56px;
}

.axct-card__loc {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--axct-text);
	line-height: 1.3;
}

.axct-card__loc span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.axct-card__badge {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: -0.24px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--axct-green);
	background: var(--axct-green-soft);
	padding: 5px 10px;
	border-radius: 4px;
	white-space: nowrap;
}

.axct-card__media {
	display: block;
	width: 100%;
	overflow: hidden;
	background: #f7f7f7;
}

.axct-card__media a {
	display: block;
}

.axct-card__media img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.4s ease;
}

.axct-card:hover .axct-card__media img {
	transform: scale(1.03);
}

.axct-ico {
	flex: 0 0 auto;
	color: var(--axct-green);
}

.axct-card__meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 16px 20px 20px;
}

.axct-meta {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

.axct-meta__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.axct-meta__label {
	font-size: 14px;
	font-weight: 400;
	color: var(--axct-text-soft);
	line-height: 1.3;
}

.axct-meta__value {
	font-size: 16px;
	font-weight: 600;
	color: #000;
	line-height: 1.3;
	word-break: break-word;
}

.axct-card__desc {
	padding: 0 20px 20px;
	margin-top: -4px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--axct-text-soft);
}

.axct-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 40px 0;
	text-align: center;
	color: var(--axct-text-soft);
}

/* 可点击卡片 */
.axct-card--popup {
	cursor: pointer;
}

.axct-card--popup:focus-visible {
	outline: 2px solid rgba(37, 195, 133, 0.6);
	outline-offset: 3px;
}

/* 分页 */
.axct-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 34px 0 0;
}

.axct-pager[hidden] {
	display: none;
}

.axct-pager__nums {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.axct-pager__btn {
	-webkit-appearance: none;
	appearance: none;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	color: var(--axct-text);
	background: #fff;
	border: 1px solid var(--axct-border);
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.axct-pager__btn:hover:not(:disabled) {
	border-color: rgba(37, 195, 133, 0.5);
	color: var(--axct-green);
}

.axct-pager__btn[aria-current="page"] {
	background: rgba(37, 195, 133, 0.78);
	border-color: transparent;
	color: #fff;
}

.axct-pager__btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.axct-pager__gap {
	color: #9aa0a6;
	line-height: 40px;
	padding: 0 2px;
}

/* 详情弹窗 */
body.axct-modal-open {
	overflow: hidden;
}

.axct-modal {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
}

.axct-modal[hidden] {
	display: none;
}

.axct-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(18, 18, 18, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.axct-modal__dialog {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	width: min(1180px, 100%);
	max-height: 88vh;
	overflow: hidden;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.axct-modal__close {
	position: absolute;
	top: 22px;
	right: 22px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	font-size: 20px;
	line-height: 1;
	color: #1f2328;
	background: #f2f3f5;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.axct-modal__close:hover {
	background: #e6e8eb;
}

.axct-modal__body {
	overflow-y: auto;
	padding: 40px 44px 44px;
	-webkit-overflow-scrolling: touch;
}

.axct-modal__loc {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--axct-green);
}

.axct-modal__title {
	margin: 0 0 26px;
	font-size: clamp(26px, 2.6vw, 40px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #16181d;
}

.axct-modal__grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 34px;
	align-items: start;
}

.axct-modal__grid--solo {
	grid-template-columns: 1fr;
}

.axct-modal__media {
	overflow: hidden;
	border-radius: 16px;
	background: #f7f7f7;
}

.axct-modal__media img {
	display: block;
	width: 100%;
	height: 340px;
	object-fit: cover;
}

.axct-modal__side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.axct-modal__status {
	display: inline-flex;
	align-items: center;
	padding: 9px 20px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: rgba(37, 195, 133, 0.78);
	border-radius: 999px;
}

.axct-modal__stat {
	width: 100%;
	padding: 26px 26px 22px;
	background: #f6f8fb;
	border-radius: 16px;
}

.axct-modal__stat-label {
	display: block;
	font-size: 14px;
	line-height: 1.4;
	color: #7c8595;
}

.axct-modal__stat-value {
	display: block;
	margin-top: 6px;
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 700;
	line-height: 1.1;
	color: #16181d;
}

.axct-modal__bars {
	display: flex;
	gap: 8px;
	margin-top: 20px;
}

.axct-modal__bars i {
	flex: 1 1 0;
	height: 6px;
	background: rgba(37, 195, 133, 0.75);
	border-radius: 3px;
}

.axct-modal__bars i:nth-child(2) {
	opacity: 0.8;
}

.axct-modal__bars i:nth-child(3) {
	opacity: 0.6;
}

.axct-modal__bars i:nth-child(4) {
	opacity: 0.4;
}

.axct-modal__divider {
	width: 110px;
	height: 4px;
	margin: 36px 0 24px;
	background: var(--axct-green);
	border-radius: 2px;
}

.axct-modal__section {
	margin: 0 0 18px;
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 700;
	line-height: 1.25;
	color: #16181d;
}

.axct-modal__desc {
	font-size: 16.5px;
	line-height: 1.9;
	color: #4b5563;
}

.axct-modal__desc p {
	margin: 0 0 18px;
}

.axct-modal__desc p:last-child {
	margin-bottom: 0;
}

.axct-modal__loading {
	padding: 60px 0;
	text-align: center;
	color: var(--axct-text-soft);
}

@media (max-width: 1024px) {
	.axct-modal__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.axct-modal__media img {
		height: 260px;
	}
}

@media (max-width: 767px) {
	.axct-modal {
		padding: 14px;
	}

	.axct-modal__dialog {
		max-height: 92vh;
		border-radius: 18px;
	}

	.axct-modal__body {
		padding: 26px 20px 30px;
	}

	.axct-modal__close {
		top: 14px;
		right: 14px;
		width: 32px;
		height: 32px;
	}

	.axct-modal__title {
		margin-bottom: 18px;
		font-size: 24px;
	}

	.axct-modal__media img {
		height: 210px;
	}

	.axct-modal__stat {
		padding: 20px 20px 18px;
	}

	.axct-modal__divider {
		margin: 26px 0 18px;
	}

	.axct-modal__desc {
		font-size: 15px;
		line-height: 1.75;
	}

	.axct-pager__btn {
		height: 36px;
		min-width: 36px;
	}
}