/**
 * Lucky POS 产品介绍页面样式
 */

/* 产品介绍头部 */
.product-hero {
	padding: 160px 0 80px;
	background: linear-gradient(135deg, #0d234d 0%, #1a3a7a 100%);
	color: white;
	text-align: center;
}

.product-hero-content {
	max-width: 800px;
	margin: 0 auto;
}

.product-hero h1 {
	font-size: 3rem;
	margin-bottom: 20px;
	line-height: 1.2;
}

.product-hero p {
	font-size: 1.2rem;
	opacity: 0.9;
	margin-bottom: 30px;
}

/* 产品矩阵 */
.product-matrix {
	padding: 80px 0;
	background-color: #fff;
}

.matrix-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 50px;
}

.matrix-item {
	background: white;
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border: 1px solid #f0f0f0;
}

.matrix-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
	border-color: #fe5b00;
}

.matrix-icon {
	margin-bottom: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 80px;
}

.matrix-icon img {
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.matrix-item h3 {
	color: #0d234d;
	font-size: 1.3rem;
	margin-bottom: 15px;
	font-weight: 600;
}

.matrix-item p {
	color: #666;
	line-height: 1.6;
	margin-bottom: 20px;
	font-size: 0.95rem;
}

.matrix-features {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.feature-tag {
	background: linear-gradient(135deg, #fe5b00, #ff7a2b);
	color: white;
	padding: 6px 12px;
	border-radius: 15px;
	font-size: 0.8rem;
	font-weight: 500;
	white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.matrix-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.matrix-item {
		padding: 25px 20px;
	}

	.matrix-icon {
		height: 70px;
	}

	.matrix-icon img {
		width: 56px;
		height: 56px;
	}

	.matrix-item h3 {
		font-size: 1.2rem;
	}
}

/* 功能模块卡片 */
.product-modules {
	padding: 80px 0;
	background-color: #f8f9fa;
	position: relative;
}

.product-modules::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	width: 2px;
	height: 100%;
	background: linear-gradient(180deg, transparent, #fe5b00, transparent);
	transform: translateX(-50%);
	opacity: 0.3;
}

.product-modules::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(254, 91, 0, 0.2), transparent);
	transform: translateY(-50%);
	animation: horizontalFlow 6s infinite;
}

@keyframes horizontalFlow {
	0%,
	100% {
		opacity: 0.2;
		transform: translateY(-50%) scaleX(0.5);
	}
	50% {
		opacity: 0.6;
		transform: translateY(-50%) scaleX(1);
	}
}

.module-card {
	display: flex;
	align-items: center;
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	margin-bottom: 40px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.module-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.module-card.reverse {
	flex-direction: row-reverse;
}

.module-icon {
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.module-icon::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 80px;
	height: 80px;
	border: 2px solid #fe5b00;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	animation: iconPulse 4s infinite;
}

.module-icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	border: 2px solid #fe5b00;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	animation: iconPulse 4s infinite 0.5s;
}

@keyframes iconPulse {
	0% {
		transform: translate(-50%, -50%) scale(0.8);
		opacity: 0;
	}
	50% {
		opacity: 0.6;
	}
	100% {
		transform: translate(-50%, -50%) scale(1.2);
		opacity: 0;
	}
}

.module-icon img {
	width: 80px;
	height: 80px;
}

.module-content {
	flex: 1;
	padding: 30px;
}

.module-content h3 {
	color: #0d234d;
	font-size: 1.8rem;
	margin-bottom: 15px;
	position: relative;
}

.module-content h3::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 3px;
	background: linear-gradient(90deg, #fe5b00, #ff8c42);
	transition: width 0.5s ease;
}

.module-card:hover .module-content h3::after {
	width: 60px;
}

.module-content p {
	color: #555;
	margin-bottom: 20px;
	line-height: 1.7;
}

.module-features {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.feature-item {
	display: flex;
	align-items: center;
	background-color: #f8f9fa;
	padding: 8px 15px;
	border-radius: 20px;
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.feature-item::before {
	content: '';
	position: absolute;
	top: 50%;
	left: -20px;
	width: 4px;
	height: 4px;
	background: #fe5b00;
	border-radius: 50%;
	transform: translateY(-50%);
	opacity: 0;
	animation: featureDataFlow 3s infinite;
	animation-delay: calc(var(--delay, 0) * 0.2s);
}

@keyframes featureDataFlow {
	0% {
		left: -20px;
		opacity: 0;
	}
	20% {
		opacity: 1;
	}
	80% {
		opacity: 1;
	}
	100% {
		left: calc(100% + 20px);
		opacity: 0;
	}
}

.feature-item:nth-child(1) {
	--delay: 0;
}
.feature-item:nth-child(2) {
	--delay: 1;
}
.feature-item:nth-child(3) {
	--delay: 2;
}
.feature-item:nth-child(4) {
	--delay: 3;
}
.feature-item:nth-child(5) {
	--delay: 4;
}
.feature-item:nth-child(6) {
	--delay: 5;
}

.feature-item i {
	color: #fe5b00;
	margin-right: 8px;
}

.module-image {
	flex: 1;
	padding: 20px;
}

.module-image img {
	width: 100%;
	max-width: 500px;
	height: 280px;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	display: block;
	margin: 0 auto;
	background-color: #f8f9fa;
	position: relative;
	overflow: hidden;
}

/* 数据流动动效 */
.module-card {
	position: relative;
	overflow: visible;
}

.module-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: calc(50% - 30px);
	width: 60px;
	height: 2px;
	background: linear-gradient(90deg, transparent, #fe5b00, transparent);
	animation: dataFlow 3s infinite;
	z-index: 1;
}

.module-card.reverse::before {
	left: calc(50% - 30px);
	right: auto;
	animation: dataFlowReverse 3s infinite;
}

.module-card:last-child::before {
	display: none;
}

@keyframes dataFlow {
	0% {
		transform: translateX(-100%) translateY(-50%);
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	100% {
		transform: translateX(100%) translateY(-50%);
		opacity: 0;
	}
}

@keyframes dataFlowReverse {
	0% {
		transform: translateX(100%) translateY(-50%);
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	100% {
		transform: translateX(-100%) translateY(-50%);
		opacity: 0;
	}
}

/* 数据点动效 */
.module-image::after {
	content: '';
	position: absolute;
	top: 20px;
	right: 20px;
	width: 8px;
	height: 8px;
	background: #fe5b00;
	border-radius: 50%;
	animation: dataPulse 2s infinite;
	box-shadow: 0 0 10px rgba(254, 91, 0, 0.5);
}

@keyframes dataPulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.5);
		opacity: 0.7;
	}
}

/* 特性项目悬停动效 */
.feature-item {
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.feature-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(254, 91, 0, 0.1), transparent);
	transition: left 0.5s ease;
}

.feature-item:hover::before {
	left: 100%;
}

.feature-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(254, 91, 0, 0.2);
}

/* 模块卡片悬停时的数据流加速 */
.module-card:hover::before {
	animation-duration: 1s;
}

.module-card:hover .module-image::after {
	animation-duration: 1s;
}

/* 产品视频部分 */
.product-video {
	padding: 80px 0;
	background-color: #fff;
}

.video-tabs {
	max-width: 900px;
	margin: 0 auto;
}

.tabs-nav {
	display: flex;
	justify-content: center;
	margin-bottom: 30px;
	border-bottom: 1px solid #ddd;
}

.tab-btn {
	padding: 12px 20px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	color: #555;
	position: relative;
	transition: all 0.3s ease;
}

.tab-btn:after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 0;
	height: 3px;
	background-color: #fe5b00;
	transition: width 0.3s ease;
}

.tab-btn.active {
	color: #fe5b00;
}

.tab-btn.active:after {
	width: 100%;
}

.tab-pane {
	display: none;
}

.tab-pane.active {
	display: flex;
	flex-direction: column;
}

.video-container {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
	width: 100%;
	height: 500px;
	border: none;
	display: block;
}

.video-description {
	margin-top: 30px;
	text-align: center;
}

.video-description h3 {
	color: #0d234d;
	margin-bottom: 15px;
	font-size: 1.6rem;
	font-weight: 600;
}

.video-description p {
	color: #555;
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.6;
	font-size: 1.1rem;
}

/* ROI计算器 */
.roi-calculator {
	padding: 80px 0;
	background-color: #f8f9fa;
}

.section-description {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 40px;
	color: #555;
}

.calculator-container {
	display: flex;
	max-width: 900px;
	margin: 0 auto;
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.calculator-form {
	flex: 1;
	padding: 30px;
	border-right: 1px solid #eee;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: #0d234d;
	font-weight: 500;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}

.calculator-results {
	flex: 1;
	padding: 30px;
	background-color: #f8f9fa;
}

.calculator-results h3 {
	color: #0d234d;
	margin-bottom: 20px;
	text-align: center;
	font-size: 1.5rem;
}

.result-item {
	display: flex;
	justify-content: space-between;
	padding: 15px 0;
	border-bottom: 1px solid #eee;
}

.result-item.total {
	margin-top: 10px;
	border-top: 2px solid #ddd;
	border-bottom: none;
	font-weight: 700;
	color: #fe5b00;
	font-size: 1.2rem;
}

.roi-note {
	margin-top: 20px;
	font-size: 0.9rem;
	color: #777;
	font-style: italic;
}

/* 演示账号申请弹窗 */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1100;
	align-items: center;
	justify-content: center;
}

.modal.active {
	display: flex;
}

.modal-content {
	background-color: white;
	padding: 30px;
	border-radius: 8px;
	max-width: 500px;
	width: 100%;
	position: relative;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 1.5rem;
	cursor: pointer;
	color: #777;
}

.modal-content h3 {
	margin-bottom: 20px;
	color: #0d234d;
	text-align: center;
}

/* 响应式设计 */
@media (max-width: 992px) {
	.overview-content {
		flex-direction: column;
	}

	.module-card,
	.module-card.reverse {
		flex-direction: column;
	}

	.module-content {
		order: 2;
	}

	.module-image {
		order: 1;
	}

	.module-image img {
		height: 250px;
	}

	.calculator-container {
		flex-direction: column;
	}

	.calculator-form {
		border-right: none;
		border-bottom: 1px solid #eee;
	}
}

@media (max-width: 768px) {
	.product-hero h1 {
		font-size: 2.5rem;
	}

	.tabs-nav {
		flex-wrap: wrap;
	}

	.tab-btn {
		flex: 1;
		min-width: 120px;
		text-align: center;
		padding: 10px;
	}

	.video-container {
		max-width: 100%;
		margin: 0 10px;
	}

	.video-container iframe {
		height: 350px;
	}

	.video-description h3 {
		font-size: 1.4rem;
	}

	.video-description p {
		font-size: 1rem;
		padding: 0 15px;
	}
}

@media (max-width: 480px) {
	.module-features {
		flex-direction: column;
		gap: 10px;
	}

	.feature-item {
		width: 100%;
	}

	.module-image img {
		height: 200px;
	}

	.tab-btn {
		font-size: 0.9rem;
		padding: 8px;
	}

	.video-container {
		margin: 0 5px;
		border-radius: 8px;
	}

	.video-container iframe {
		height: 280px;
	}

	.video-description h3 {
		font-size: 1.2rem;
	}

	.video-description p {
		font-size: 0.95rem;
		padding: 0 10px;
	}
}
