/* =========================================
   1. Carousel (高度拉高，按钮已有)
   ========================================= */
.hero {
	margin-top: 80px;
	height: 600px;
	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 80s 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: 380px;
	}

	.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;
}


}
/* BOXRUI Banner sizing: home page only (desktop/tablet/mobile). */
@media (min-width: 769px) and (max-width: 1024px) {
    #INdex .hero { height: 460px; }
}
@media (max-width: 480px) {
    #INdex .hero { height: 340px; }
}

/* ==========================================================
   BOXRUI 首页轮播文字宽度优化（2026-10-24）
   仅电脑端 >= 1025px：平衡中英文标题换行，不影响手机和平板
   ========================================================== */
@media screen and (min-width: 1025px) {
    #INdex .hero-content {
        max-width: 940px;
    }

    #INdex .hero-title {
        max-width: 940px;
        text-wrap: balance;
    }

    #INdex .hero-desc {
        max-width: 820px;
    }
}

/* ================================================================
   BOXRUI 首页轮播：手机专用图片与首屏排版（2026-10-24）
   仅影响 #INdex 内的首页轮播，不改变电脑端及其他页面。
   前台需同时使用 <picture class="bxr-hero-picture">。
   ================================================================ */
#INdex .carousel-slide .bxr-hero-picture {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
#INdex .carousel-slide .bxr-hero-picture > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
@media screen and (max-width: 768px) {
    /* 481–768px：沿用网站顶部50px信息栏 + 60px导航结构 */
    #INdex .hero {
        margin-top: calc(50px + var(--header-height, 60px));
        height: clamp(480px, calc(100svh - 72px), 720px);
    }
    #INdex .carousel-slide .bxr-hero-picture > img {
        object-position: center center;
    }
    #INdex .carousel-overlay {
        padding: 28px clamp(18px, 6vw, 32px) 70px;
        align-items: flex-end;
        background: linear-gradient(to bottom,
            rgba(0, 0, 0, .10) 0%,
            rgba(0, 0, 0, .07) 32%,
            rgba(0, 0, 0, .52) 64%,
            rgba(0, 0, 0, .82) 100%);
    }
    #INdex .hero-content {
        width: 100%;
        max-width: 560px;
        min-width: 0;
    }
    #INdex .hero-title {
        margin: 0 0 14px;
        max-width: 100%;
        font-size: clamp(24px, 6.2vw, 38px);
        font-weight: 800;
        line-height: 1.28;
        letter-spacing: -.015em;
        overflow-wrap: anywhere;
        text-wrap: wrap;
    }
    #INdex .hero-desc {
        margin: 0 0 22px;
        max-width: 100%;
        font-size: clamp(13px, 3.7vw, 16px);
        font-weight: 400;
        line-height: 1.65;
        opacity: .96;
        overflow-wrap: anywhere;
    }
    /* 中文轮播已有标题/简介分句脚本；让其换行符在手机端真正生效 */
    #INdex .hero-title-cn,
    #INdex .hero-desc-cn { white-space: pre-line; }
    #INdex .hero-content .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        vertical-align: top;
        width: calc(50% - 8px);
        max-width: 220px;
        min-height: 43px;
        margin: 0 8px 10px 0;
        padding: 10px 9px;
        font-size: clamp(12px, 3.1vw, 14px);
        font-weight: 650;
        line-height: 1.35;
        white-space: normal;
        text-align: center;
    }
    #INdex .carousel-btn {
        width: 34px;
        height: 34px;
        top: 45%;
        font-size: 18px;
        background: rgba(0, 0, 0, .32);
        backdrop-filter: none;
    }
    #INdex .prev-btn { left: 7px; }
    #INdex .next-btn { right: 7px; }
    #INdex .carousel-dots {
        bottom: 19px;
        gap: 9px;
    }
    #INdex .carousel-dots .dot {
        width: 9px;
        height: 9px;
    }
}
@media screen and (max-width: 480px) {
    /* <=480px：现有头部信息条隐藏，仅保留60px手机导航 */
    #INdex .hero { margin-top: var(--header-height, 60px); }
}
@media screen and (max-width: 359px) {
    #INdex .hero-content .btn { font-size: 12px; padding: 10px 5px; }
    #INdex .hero-title { font-size: 23px; }
}
@media screen and (max-height: 480px) and (orientation: landscape) {
    #INdex .hero { height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
    #INdex .carousel-track { transition-duration: .01ms; }
    #INdex .hero-content { animation: none; }
}

/* ================================================================
   BOXRUI FAQ ONLY - 2026-10-25, Home + Contact pages
   Purpose: compact cards, full-card navigation, safe mobile wrapping.
   This block affects only #faq.faq and not other page components.
   ================================================================ */
#faq.faq .faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    align-items: start;
}
#faq.faq .faq-grid > a.bxr-faq-card {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 14px;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e7e4;
    border-radius: 8px;
    color: #17251c;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}
#faq.faq .faq-grid > a.bxr-faq-card:hover {
    border-color: #a2c4b1;
    box-shadow: 0 4px 12px rgba(15,81,50,.10);
    color: #0f5132;
}
#faq.faq .faq-grid > a.bxr-faq-card:focus-visible {
    outline: 2px solid #0f5132;
    outline-offset: 2px;
}
#faq.faq .bxr-faq-card__title {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}
#faq.faq .bxr-faq-card__arrow {
    display: block;
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: #0f5132;
}
@media (max-width: 1024px) {
    #faq.faq .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    #faq.faq .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    #faq.faq .faq-grid > a.bxr-faq-card { min-height: 42px; padding: 8px 12px; }
    #faq.faq .bxr-faq-card__title { font-size: 13px; }
}
