/* =========================================
   1. Carousel (高度拉高，按钮已有)
   ========================================= */
.hero {
	margin-top: 80px;
	height: 700px;
	position: relative;
	overflow: hidden;
}

.carousel-track {
	display: flex;
	height: 100%;
	transition: transform 0.5s ease-in-out;
}

.carousel-slide {
	min-width: 100%;
	height: 100%;
	position: relative;
}

.carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.carousel-overlay {
	padding-left: 16%;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
	/* 渐变更利于文字阅读 */
	display: flex;
	align-items: center;
	color: var(--white);
}

.hero-content {
	max-width: 800px;
	animation: fadeIn 1s ease-out;
}

.hero-title {
	font-size: 3.5rem;
	font-weight: 800;
	margin-bottom: 20px;
	line-height: 1.2;
}

.hero-desc {
	font-size: 1.25rem;
	margin-bottom: 30px;
	opacity: 0.9;
	font-weight: 300;
}

.hero-content .btn {
	margin-right: 15px;
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(5px);
	color: white;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	transition: var(--transition);
}

.carousel-btn:hover {
	background: var(--primary);
}

.prev-btn {
	left: 20px;
}

.next-btn {
	right: 20px;
}

.carousel-dots {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: var(--transition);
}

.dot.active {
	background: var(--white);
	transform: scale(1.2);
}

/* =========================================
   2. Client Reviews (恢复：位于轮播图下方)
   ========================================= */
.reviews-section {
	background: var(--gray-light);
	padding: 30px 0;
	overflow: hidden;
	border-bottom: 1px solid #eee;
}

.reviews-container {
	display: flex;
	gap: 30px;
	width: max-content;
	animation: scrollLeft 20s linear infinite;
}

.review-card {
	background: var(--white);
	padding: 20px;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	width: 350px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-shrink: 0;
	border-left: 4px solid var(--primary);
}

.review-header {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
	color: var(--text-light);
	font-weight: 600;
}

.review-content {
	font-style: italic;
	color: var(--dark);
	font-size: 0.95rem;
}

.review-date {
	font-size: 0.8rem;
	color: #999;
	text-align: right;
	margin-top: auto;
}

@keyframes scrollLeft {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

.reviews-container:hover {
	animation-play-state: paused;
}

/* =========================================
   3. Advantages (修改：向上覆盖轮播图)
   ========================================= */
.advantages {
	background: transparent;
	/* 背景透明，或者白色，根据需求调整，这里为了覆盖效果通常设为透明或图片上方有白底卡片 */
	position: absolute;
	bottom: 0;
	z-index: 20;
	/* 确保在轮播图之上 */
	width: 100%;
	left: 0;
}

.advantages .card-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	background: rgba(0, 0, 0, 0.6);
}

.adv-card {
	display: flex;
	padding: 1rem;
	justify-content: center;
	position: relative;

}

.adv-card::before {
	content: '';
	display: block;
	width: 1px;
	top: 20px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.6);
	position: absolute;
	left: 0;
}

.icon-word {
	margin-left: 1rem;
	color: #fff;
}

.icon-box {
	
	display: flex;
	align-items: center;
	justify-content: center;

}



.adv-card h3 {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.adv-card p {
	font-size: 0.85rem;
}

/* =========================================
   4. Products & Cases (修改：Grid 4x2, 不滚动)
   ========================================= */
.products,
.cases {
	padding: var(--section-padding);
	background-color: var(--white);
}

/* 网格容器 */
.product-grid,
.case-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	/* 一行4个 */
	gap: 30px;
}
.product-grid .card-info span{
	display: -webkit-box;
	
	-webkit-box-orient: vertical;
	
	-webkit-line-clamp: 2;
	
	overflow: hidden;

}
.card {
	background: var(--white);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
	display: flex;
	flex-direction: column;
	border: 1px solid var(--gray-medium);
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-hover);
	border-color: var(--primary);
}

/* 正方形图片 */
.card-img {
	width: 100%;
	position: relative;
	overflow: hidden;
}

.card-img img {
	width: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.card:hover .card-img img {
	transform: scale(1.05);
}

.card-info {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.card-title {
	font-size: 1.1rem;
	color: var(--dark);
	margin-bottom: 8px;
	font-weight: 700;
	position: relative;
}

.card-meta {
	font-size: 0.9rem;
	color: var(--text-light);
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--gray-medium);
	padding-top: 10px;
	margin-top: 10px;
}

.card-title img {
	position: absolute;
	right: 0;
	top: 0;
}

/* =========================================
   5. Process & About & FAQ (保持之前逻辑)
   ========================================= */
.process {
	padding: var(--section-padding);
	background-color: var(--gray-light);
}

.process-container {
	display: flex;
	width: 100%;
	height: 400px;
	cursor: default;
}

.process-step {
	flex: 1;
	position: relative;
	transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
	overflow: hidden;
	border-left: 1px solid rgba(255, 255, 255, 0.8);
	background-size: cover;
	background-position: center;
}

.process-step:first-child {
	border-left: none;
}

.process-step:hover {
	flex: 3;
}

.process-bg-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 81, 50, 0.85);
	transition: background 0.5s;
	display: flex;
	flex-direction: column;

	padding: 40px;
	color: var(--white);
}

.process-step:hover .process-bg-overlay {
	background: rgba(15, 81, 50, 0.75);
}

.step-number {
	font-size: 5rem;
	font-weight: 800;
	position: absolute;
	bottom: 20px;
	right: 20px;
	opacity: 0.2;
	line-height: 1;
}

.step-title-main {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 10px;
	transform: rotate(-90deg);
	transform-origin: left bottom;
	width: 200px;
	white-space: nowrap;
	position: absolute;
	left: -70px;
	bottom: 50px;
	transition: all 0.4s;
}

.process-step:hover .step-title-main {
	transform: rotate(0);
	left: 40px;
	bottom: auto;
	top: 40px;
	font-size: 1.6rem;
}

.step-content {
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.4s ease 0.1s;
}

.process-step:hover .step-content {
	opacity: 1;
	transform: translateY(80px);
}

.about {
	padding: var(--section-padding);
	background: url('https://picsum.photos/seed/bg_about/1600/900.jpg') no-repeat center/cover;
	color: var(--white);
	position: relative;
	overflow: hidden;
}

#INdex {
	position: relative;
}

.map-bg {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 0;
}

.about-content {
	position: relative;
	z-index: 1;
	text-align: center;
}

.data-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
	margin-bottom: 60px;
}

.data-item h3 {
	font-size: 2.5rem;
	color: #4ade80;
	font-weight: 800;
	margin-bottom: 5px;
}

.data-item p {
	font-size: 0.9rem;
	color: #fff;
	text-transform: uppercase;
}

.flags-container {
	overflow: hidden;
	white-space: nowrap;
	padding: 20px 0;
	background: rgba(255, 255, 255, 0.05);
}

.flags-track {
	display: inline-block;
	animation: scrollLeft 5s linear infinite;
	
}

.country-flag {
	display: inline-block;
	width: 50px;
	height: 34px;
	margin: 0 20px;
	border-radius: 4px;
	vertical-align: middle;
}

@keyframes scrollFlags {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

.faq {
	padding: var(--section-padding);
	background-color: var(--gray-light);
}

.faq-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 20px;
}

.faq-grid a {
	display: flex;
}

.scenarios {
	height: 702px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Background Image */
.scenarios-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('../01.jpg');
	background-size: cover;
	background-position: center;
	z-index: 0;
}

/* Overlay to darken bg slightly for readability */
.scenarios-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1;
}

.scenarios-grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, 1fr);
	height: 100%;
	width: 100%;
}

.scenario-item {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 40px 20px;
	transition: var(--transition);
	border-right: 1px solid rgba(255, 255, 255, 0.2);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	background: transparent;
}

/* Remove borders for right and bottom edges */
.scenario-item:nth-child(4n) {
	border-right: none;
}

.scenario-item:nth-child(n+5) {
	border-bottom: none;
}

.scenario-item:hover {
	background: rgba(15, 81, 50, 0.85);
	/* Green tint on hover */
	backdrop-filter: blur(2px);
}

.scenario-item h3 {
	color: var(--white);
	font-size: 1.5rem;
	margin-bottom: 15px;
	font-weight: 700;
}

.scenario-item p {
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.95rem;
	margin-bottom: 25px;
	max-width: 300px;
	line-height: 1.4;
}

details {
	background: var(--white);
	border-radius: var(--radius-md);
	margin-bottom: 15px;
	border: 1px solid var(--gray-medium);
}

details[open] {
	box-shadow: var(--shadow-sm);
}

summary {
	padding: 15px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	color: var(--dark);
	position: relative;
	padding-right: 40px;
}

summary::after {
	content: '+';
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	font-weight: 400;
	font-size: 1.2rem;
	color: var(--primary);
}

.faq-answer {
	padding: 0 15px 15px;
	color: var(--text-light);
	font-size: 0.9rem;
	border-top: 1px solid var(--gray-medium);
	padding-top: 10px;
}

.faq-grid a {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 73%;
	display: block;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
	.card-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.product-grid,
	.case-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* 平板一行2个 */
	.data-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.faq-grid {
		grid-template-columns: 1fr 1fr;
	}

	.process-container {
		height: auto;
		flex-direction: column;
		display: -webkit-box;

		overflow-x: scroll;
	}

	.process-step {
		width: 100%;
		min-height: 400px;
		flex: none;
		border-bottom: 1px solid #ddd;
	}

	



	.step-content {
		position: relative;
		transform: none;
		opacity: 1;
		margin-top: 10px;
	}
}

@media (max-width: 768px) {
	.hero {
		height: 500px;
	}

	.hero-title {
		font-size: 1.5rem;
	}
.process-step:hover .step-content {
	opacity: 1;
	transform: translateY(0px);
}
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.advantages {
		margin-top: 0;
		display: none;
	}

	/* 手机端取消覆盖，避免布局错乱 */
	.product-grid,
	.case-grid {
		grid-template-columns: 1fr;
	}

	/* 手机端一行1个 */
	.faq-grid {
		grid-template-columns: 1fr;
		overflow: hidden;
	}

	.data-grid {
		grid-template-columns: 1fr;
	}

	.carousel-overlay {
		padding-left: 10%;
	}

	.scenarios {
		height: auto;
	}

	.scenario-item h3 {
		font-size: 1rem;
	}

	.scenarios-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.scenario-item p {
		display: none;
	}

	details {
		width: 100%;
	}
.step-title-main {
    transform: rotate(0deg);
    position: initial;
  
}
	.process-step:hover .step-title-main {
		font-size: 1.2rem;
		font-weight: 700;
		margin-bottom: 10px;
		transform: rotate(0deg);
		transform-origin: left bottom;
		width: 200px;
		white-space: nowrap;
		left: -70px;
		bottom: 50px;
		transition: all 0.4s;
	}    

.process-step:hover {
	flex: none;
}


}