/**
 * 安全洞察与深度实践 - 通用样式
 * Insights Shared Styles
 */

/* ========= 页面头部 ========= */
.section-caption-fancy {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.section-descr {
	font-size: 16px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.7);
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

/* ========= 新闻卡片 ========= */
.insights-cards-container {
	animation: fadeInCards 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInCards {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.insight-card {
	background: rgba(255, 255, 255, 0.03);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.insight-card:hover {
	transform: translateY(-8px);
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(54, 201, 88, 0.2);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* 卡片图片 */
.insight-card-image {
	position: relative;
	overflow: hidden;
	padding-top: 60%;
	background: #0d0d0d;
}

.insight-card-image a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.insight-card-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.insight-card:hover .insight-card-image img {
	transform: scale(1.08);
}

.insight-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 1;
}

.insight-card:hover .insight-card-overlay {
	opacity: 1;
}

/* 卡片内容 */
.insight-card-content {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* 元信息 */
.insight-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 13px;
}

.insight-category {
	color: #36c958;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	background: rgba(54, 201, 88, 0.1);
	border-radius: 4px;
	display: inline-block;
}

.insight-date {
	color: rgba(255, 255, 255, 0.5);
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
}

.insight-date::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 50%;
}

/* 标题 */
.insight-card-title {
	font-family: "Noto Sans SC", "DM Sans", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 12px;
	min-height: 50px;
}

.insight-card-title a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.insight-card-title a:hover {
	color: #36c958;
}

/* 摘要 */
.insight-card-summary {
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 16px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 阅读按钮 */
.insight-card-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #36c958;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	margin-top: auto;
}

.insight-card-btn:hover {
	gap: 12px;
	color: #2da849;
}

.insight-card-btn i {
	font-size: 16px;
	transition: transform 0.3s ease;
}

.insight-card-btn:hover i {
	transform: translateX(4px);
}

/* ========= 咨询区域 ========= */
.consultation-section {
	position: relative;
	overflow: hidden;
	min-height: 600px;
}

.consultation-parallax-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(27, 27, 27, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
	z-index: 0;
}

.consultation-parallax-bg::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle at center, rgba(54, 201, 88, 0.05) 0%, transparent 70%);
	animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
		opacity: 0.5;
	}
	50% {
		transform: scale(1.1);
		opacity: 0.8;
	}
}

.consultation-content {
	position: relative;
	z-index: 2;
}

.consultation-title {
	font-size: 36px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 24px;
	line-height: 1.3;
}

.consultation-desc {
	font-size: 16px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 40px;
}

.text-highlight {
	color: #36c958;
	font-weight: 600;
}

/* 服务特性 */
.consultation-services {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 40px;
}

.service-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	background: rgba(255, 255, 255, 0.03);
	border-left: 3px solid #36c958;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.service-item:hover {
	background: rgba(255, 255, 255, 0.05);
	transform: translateX(8px);
}

.service-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(54, 201, 88, 0.15), rgba(45, 168, 73, 0.15));
	border-radius: 10px;
	color: #36c958;
}

.service-icon i {
	width: 24px;
	height: 24px;
}

.service-text h4 {
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 4px;
}

.service-text p {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

/* 联系方式 */
.consultation-contact {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 8px;
	transition: background 0.3s ease;
}

.contact-item:hover {
	background: rgba(255, 255, 255, 0.05);
}

.contact-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(54, 201, 88, 0.1);
	border-radius: 8px;
	color: #36c958;
}

.contact-icon i {
	width: 20px;
	height: 20px;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.contact-label {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.contact-value {
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
	transition: color 0.3s ease;
}

.contact-value:hover {
	color: #36c958;
}

/* 表单按钮容器 */
.consultation-form-wrapper {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	padding: 40px;
	background: linear-gradient(135deg, rgba(54, 201, 88, 0.05), rgba(45, 168, 73, 0.03));
	border: 1px solid rgba(54, 201, 88, 0.15);
	border-radius: 16px;
}

.consultation-modal-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 18px 36px;
	font-size: 16px;
	font-weight: 600;
	background: linear-gradient(135deg, #36c958, #2da849);
	border: none;
	color: #ffffff;
	box-shadow: 0 8px 24px rgba(54, 201, 88, 0.25);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.consultation-modal-btn:hover {
	background: linear-gradient(135deg, #2da849, #248a3d);
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(54, 201, 88, 0.35);
	color: #ffffff;
}

.consultation-modal-btn i {
	width: 20px;
	height: 20px;
}

.btn-icon-right {
	transition: transform 0.3s ease;
}

.consultation-modal-btn:hover .btn-icon-right {
	transform: translateX(4px);
}

/* ========= 响应式设计 ========= */
@media (max-width: 991px) {
	.consultation-title {
		font-size: 30px;
	}

	.service-item {
		padding: 16px;
	}

	.service-icon {
		width: 40px;
		height: 40px;
	}

	.service-icon i {
		width: 20px;
		height: 20px;
	}

	.service-text h4 {
		font-size: 16px;
	}

	.consultation-form-wrapper {
		min-height: 300px;
		padding: 30px;
	}
}

@media (max-width: 767px) {
	.section-descr {
		font-size: 15px;
	}

	.insight-card-content {
		padding: 20px;
	}

	.insight-card-title {
		font-size: 16px;
		min-height: auto;
	}

	.insight-card-summary {
		font-size: 13px;
		-webkit-line-clamp: 2;
	}

	.consultation-title {
		font-size: 24px;
	}

	.consultation-desc {
		font-size: 15px;
	}

	.consultation-services {
		gap: 16px;
	}

	.service-item {
		flex-direction: column;
		gap: 12px;
		padding: 16px;
	}

	.consultation-form-wrapper {
		min-height: 200px;
		padding: 24px;
	}

	.consultation-modal-btn {
		padding: 14px 28px;
		font-size: 15px;
	}
}

/* ========= 深色模式 ========= */
.dark-mode .insight-card {
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .insight-card:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(54, 201, 88, 0.2);
}
