@charset "utf-8";

/* 网站开发案例详情页样式 */

/* 基础重置 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* 主容器 */
.case-detail-wrapper {
	position: relative;
	width: 100%;
	min-height: 100vh;
	background: #f8f9fa;
	padding: 40px 0 80px;
	overflow: hidden;
}

/* 背景图层 */
.case-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: blur(40px);
	opacity: 0.3;
	z-index: 0;
	transform: scale(1.1);
}

/* 黑色渐变遮罩层 */
.case-background::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
	z-index: 1;
}

.case-detail-wrapper .w {
	position: relative;
	z-index: 1;
	width: 90%;
	max-width: 1300px;
	margin: 0 auto;
}

/* 案例头部信息区域 */
.case-header-section {
	background: transparent;
	padding: 50px 60px;
	margin-bottom: 30px;
	display: flex;
	gap: 60px;
	align-items: flex-start;
}

/* 左侧：标题和描述 */
.case-header-left {
	flex: 1;
	min-width: 0;
}

.case-title {
	font-size: 36px;
	font-weight: 600;
	color: #fff;
	line-height: 1.4;
	margin-bottom: 20px;
}

.case-summary {
	font-size: 16px;
	color: #fff;
	line-height: 1.8;
	margin-bottom: 25px;
}

/* 右侧：客户信息 */
.case-header-right {
	flex-shrink: 0;
	width: 320px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.info-item {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.8;
}

.info-label {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 500;
	white-space: nowrap;
	flex-shrink: 0;
}

.info-value {
	font-size: 15px;
	color: #fff;
	font-weight: 400;
	line-height: 1.8;
	flex: 1;
}

.website-link {
	color: #fff;
	text-decoration: none;
	transition: all 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	word-break: break-all;
}

.website-link:hover {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: underline;
}

.website-link i {
	font-size: 14px;
	flex-shrink: 0;
}

/* 服务标签 */
.tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-item {
	display: inline-block;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s;
	border: 1px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(10px);
}

.tag-item:hover {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.5);
}

/* 案例详细内容 */
.case-content-card {
	background: #fff;
	padding: 50px 60px;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	margin-bottom: 30px;
}

.content-title {
	font-size: 28px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #e5e7eb;
}

.content-body {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
}

.content-body p {
	margin-bottom: 20px;
	text-align: justify;
}

.content-body img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 30px auto;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
	margin-top: 30px;
	margin-bottom: 15px;
	color: #1a1a1a;
	font-weight: 600;
}

.content-body ul,
.content-body ol {
	margin: 20px 0;
	padding-left: 30px;
}

.content-body li {
	margin-bottom: 10px;
	line-height: 1.8;
}

/* 案例导航 */
.case-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	background: #fff;
	padding: 30px 40px;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	margin-bottom: 40px;
}

.case-navigation a,
.case-navigation .nav-disabled {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	color: #666;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.3s;
	font-size: 14px;
	flex: 1;
	max-width: 48%;
}

.case-navigation a:hover {
	background: #f3f4f6;
	color: #2563eb;
}

.case-navigation .nav-disabled {
	color: #ccc;
	cursor: not-allowed;
}

.nav-prev span,
.nav-next span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}



/* 响应式样式 - 平板 */
@media screen and (max-width: 1024px) {
	.case-detail-wrapper .w {
		width: 95%;
	}

	.case-header-section {
		padding: 40px 30px;
		gap: 40px;
	}

	.case-header-right {
		width: 280px;
	}

	.case-title {
		font-size: 28px;
	}

	.case-main-layout {
		gap: 20px;
	}

	.case-left-section {
		width: 380px;
		padding: 30px;
	}

	.case-content-card {
		padding: 30px;
	}
}

/* 响应式样式 - 手机 */
@media screen and (max-width: 768px) {
	.case-detail-wrapper {
		padding: 20px 0 40px;
	}

	.case-detail-wrapper .w {
		width: 100%;
	}

	/* 案例头部信息区域 - 手机端改为上下结构 */
	.case-header-section {
		flex-direction: column;
		gap: 25px;
		padding: 25px 20px;
		border-radius: 0;
		margin-bottom: 15px;
	}

	.case-header-left {
		width: 100%;
	}

	.case-header-right {
		width: 100%;
		padding-top: 20px;
		border-top: 1px solid #e5e7eb;
	}

	/* 手机端改为上下结构 */
	.case-main-layout {
		flex-direction: column;
		gap: 15px;
	}

	.case-left-section {
		width: 100%;
		padding: 25px 20px;
		border-radius: 0;
		border-left: none;
		border-right: none;
	}

	.case-right-section {
		width: 100%;
	}

	.case-content-card {
		padding: 25px 20px;
		border-radius: 0;
		border-left: none;
		border-right: none;
		min-height: auto;
	}

	.case-title {
		font-size: 22px;
		margin-bottom: 15px;
	}

	.case-summary {
		font-size: 14px;
		margin-bottom: 20px;
		padding-bottom: 20px;
	}

	.service-tags {
		flex-direction: column;
		gap: 10px;
		margin-bottom: 20px;
	}

	.tags-label {
		padding-top: 0;
	}

	.tag-item {
		font-size: 13px;
		padding: 5px 14px;
	}

	.client-info {
		margin-top: 20px;
		padding-top: 20px;
	}

	.info-item {
		margin-bottom: 15px;
	}

	.info-label {
		font-size: 12px;
	}

	.info-value {
		font-size: 14px;
	}

	.content-body {
		font-size: 14px;
	}

	.case-navigation {
		padding: 25px 20px;
		border-radius: 0;
		margin-bottom: 15px;
	}

	.content-title {
		font-size: 20px;
		margin-bottom: 20px;
		padding-bottom: 15px;
	}

	.content-body {
		font-size: 15px;
	}

	.content-body p {
		margin-bottom: 15px;
	}

	.content-body img {
		margin: 20px auto;
	}

	.case-navigation {
		flex-direction: column;
		gap: 10px;
		padding: 20px 15px;
	}

	.case-navigation a,
	.case-navigation .nav-disabled {
		max-width: 100%;
		width: 100%;
		font-size: 13px;
		padding: 10px 15px;
	}

	.nav-prev,
	.nav-next {
		justify-content: space-between;
	}
}

/* 离开站点确认弹窗 */
.leave-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(4px);
}

.leave-modal-content {
	background: #fff;
	border-radius: 16px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: modalSlideIn 0.3s ease-out;
	overflow: hidden;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-50px) scale(0.9);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.leave-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 30px;
	border-bottom: 1px solid #e5e7eb;
}

.leave-modal-header h3 {
	font-size: 20px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0;
}

.leave-modal-close {
	font-size: 32px;
	color: #999;
	cursor: pointer;
	line-height: 1;
	transition: all 0.3s;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.leave-modal-close:hover {
	color: #333;
	background: #f3f4f6;
}

.leave-modal-body {
	padding: 40px 30px;
	text-align: center;
}

.leave-modal-body p {
	font-size: 16px;
	color: #333;
	margin: 10px 0;
	line-height: 1.6;
}

.leave-url {
	color: #2563eb;
	font-weight: 500;
	word-break: break-all;
	background: #f0f7ff;
	padding: 12px 16px;
	border-radius: 8px;
	margin: 20px 0 !important;
	font-size: 14px !important;
}

.leave-modal-footer {
	display: flex;
	gap: 12px;
	padding: 20px 30px;
	background: #f9fafb;
	border-top: 1px solid #e5e7eb;
}

.leave-btn {
	flex: 1;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s;
}

.leave-btn-cancel {
	background: #fff;
	color: #666;
	border: 1px solid #d1d5db;
}

.leave-btn-cancel:hover {
	background: #f3f4f6;
	border-color: #9ca3af;
}

.leave-btn-confirm {
	background: #2563eb;
	color: #fff;
}

.leave-btn-confirm:hover {
	background: #1d4ed8;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 响应式 - 移动端 */
@media screen and (max-width: 768px) {
	.leave-modal-content {
		width: 95%;
		margin: 20px;
	}

	.leave-modal-header {
		padding: 20px;
	}

	.leave-modal-header h3 {
		font-size: 18px;
	}

	.leave-modal-body {
		padding: 30px 20px;
	}

	.leave-modal-body p {
		font-size: 14px;
	}

	.leave-modal-body i {
		font-size: 40px !important;
	}

	.leave-modal-footer {
		padding: 15px 20px;
		flex-direction: column;
	}

	.leave-btn {
		width: 100%;
		padding: 14px 24px;
	}
}

