/* ==========================================================================
   官网响应式修正层  responsive-site.css
   必须在 style.css 之后加载。

   解决的问题（参考页原有实现）：
   1. .hero__item 用 height:770px + flex 居中，而 .hero__text 内的
      h2/h4/h5/.primary-btn 全部 position:relative + top:100px —— PC 默认态即错位，
      移动端必然溢出。本层全部归零为 static，仅用 transform 做入场动画。
   2. 高度写死：Hero / 客户轮播 / 案例卡在小屏溢出。
   3. slicknav 与 offcanvas 两套移动菜单并存：启用自研抽屉，禁用 slicknav。
   4. 图片无上限、容器留白固定，小屏出现横向滚动。
   ========================================================================== */

/* ---------------------------------------------------------------- 变量 */
:root {
	--site-brand: #4c57d6;
	--site-brand-2: #b82dff;
	--site-accent: #fe7840;
	--site-ink: #111111;
	--site-radius: 12px;
	--site-gutter: clamp(15px, 3vw, 30px);
	--site-section-y: clamp(40px, 6vw, 90px);
	--site-header-h: 72px;
}

/* ---------------------------------------------------------------- 基础 */
html { -webkit-text-size-adjust: 100%; }
/* style.css 的 html/body{height:100%} 配合 overflow-x:hidden 会让 body 变成独立滚动容器，
   导致 window.scrollY 恒为 0：吸顶白底不生效、锚点滚动失效。这里恢复窗口正常滚动。 */
html { height: auto; overflow-x: hidden; }
body { height: auto; overflow: visible; }

img,
svg { max-width: 100%; }
img { height: auto; }

iframe,
video { max-width: 100%; }

/* 触屏上取消 hover 才出现的内容 */
@media (hover: none) {
	.kfbtn:hover .scrolltop_ewms { display: none; }
}

/* 键盘可访问性：可见焦点 */
a:focus-visible,
button:focus-visible,
label:focus-visible,
input:focus-visible {
	outline: 2px solid var(--site-brand);
	outline-offset: 2px;
}

/* 尊重系统的减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.hero__item .hero__text h2,
	.hero__item .hero__text h4,
	.hero__item .hero__text h5,
	.hero__item .hero__text .primary-btn,
	.hero__text .site-reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ==========================================================================
   1. Hero：彻底去掉 relative + top 错位
   ========================================================================== */
.hero__item {
	height: auto;
	min-height: clamp(480px, 62vh, 770px);
	display: flex;
	align-items: center;
	padding: calc(var(--site-header-h) + 24px) 0 56px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.hero__item .hero__text { padding-top: 0; }

/* 关键修正：所有子元素回到正常文档流 */
.hero__item .hero__text h2,
.hero__item .hero__text h3,
.hero__item .hero__text h4,
.hero__item .hero__text h5,
.hero__item .hero__text h6,
.hero__item .hero__text .primary-btn,
.hero__item .hero__text .hero__btn,
.hero__item .hero__text > * {
	position: static;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
}

.hero__item .hero__text h2 {
	opacity: 1;
	margin-bottom: 22px;
	font-size: clamp(26px, 4.4vw, 48px);
	line-height: 1.25;
	transform: translateY(14px);
	transition: opacity .6s ease-out, transform .6s ease-out;
}

.hero__item .hero__text h4,
.hero__item .hero__text h5 {
	padding-top: 0;
	padding-bottom: 0;
	margin-bottom: 12px;
	font-size: clamp(15px, 1.5vw, 18px);
	line-height: 1.7;
	transform: translateY(14px);
	transition: opacity .6s ease-out, transform .6s ease-out;
}

.hero__item .hero__text .primary-btn,
.hero__item .hero__text .hero__btn {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .9s ease-out, transform .9s ease-out;
}

/* 入场：owl 激活项 + 自研 reveal 类 */
.hero__slider.owl-carousel .owl-item.active .hero__item .hero__text h2,
.hero__slider.owl-carousel .owl-item.active .hero__item .hero__text h4,
.hero__slider.owl-carousel .owl-item.active .hero__item .hero__text h5,
.hero__slider.owl-carousel .owl-item.active .hero__item .hero__text .primary-btn,
.hero__slider.owl-carousel .owl-item.active .hero__item .hero__text .hero__btn,
.hero__item.site-active .hero__text h2,
.hero__item.site-active .hero__text h4,
.hero__item.site-active .hero__text h5,
.hero__item.site-active .hero__text .primary-btn,
.hero__item.site-active .hero__text .hero__btn {
	opacity: 1;
	transform: translateY(0);
}

/* Hero 内的统计行（第二屏）
   原页内联 margin:50px 80px 0，在窄屏把内容挤成窄柱、导致该屏高度暴涨到 1000px+ */
.hero__item .hero__text .row {
	margin: 30px 0 10px !important;
	max-width: 720px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.hero__item .hero__text .row > [class*="col-"] {
	margin-bottom: 14px;
}

@media (max-width: 991.98px) {
	.hero__item .achievement__item { text-align: center; }
}

@media (max-width: 767.98px) {
	.hero__item .hero__text .row { max-width: 100%; }
	.hero__item .achievement__item h2 { font-size: 22px !important; }
	.hero__item .achievement__item p { font-size: 13px; }
}

.hero__item .achievement__item h2 {
	margin-bottom: 5px !important;
	font-size: clamp(24px, 3vw, 36px) !important;
	line-height: 1.2 !important;
	text-transform: none;
}

.hero__item .achievement__item p {
	color: #ffffff;
	opacity: .75;
	font-size: 14px;
}

.hero__btn { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px auto; justify-content: center; }
.hero__btn .primary-btn { margin: 0; }

/* 左对齐的 SaaS 屏 */
.hero__item .hero__text[style*="text-align: left"] .hero__btn,
.hero__item .hero__text[style*="text-align:left"] .hero__btn { justify-content: flex-start; }

.hero__slider.owl-carousel .owl-dots { bottom: 26px !important; }

/* ==========================================================================
   2. 通用区块：纵向留白与容器
   ========================================================================== */
.spad { padding-top: var(--site-section-y); padding-bottom: var(--site-section-y); }

.section-title { position: relative; z-index: 1; }
.section-title h3 { font-size: clamp(22px, 2.6vw, 34px); }

.viewport-head-en {
	position: static;
	font-size: clamp(26px, 5vw, 50px);
	line-height: 1.3;
	opacity: .08;
	letter-spacing: .02em;
	pointer-events: none;
}

.viewport-head-img { position: static; width: 34px; height: 34px; margin: 0 8px 0 0; }

/* ==========================================================================
   3. 无限可能：18 个图标
   ========================================================================== */
.function-icon { margin-bottom: 26px; }
.icon-section__item { text-align: center; }

.icon-section__item svg,
.icon-section__item .icon {
	width: 40px;
	height: 40px;
	vertical-align: middle;
}

.icon-section__item p {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--site-ink);
}

@media (max-width: 575.98px) {
	.icon-section__item svg,
	.icon-section__item .icon { width: 34px; height: 34px; }
	.icon-section__item p { font-size: 13px; }
}

/* ==========================================================================
   4. 标签切换（企飞版四大特性 / 案例分类）
   ========================================================================== */
.kehuanli__swipe-btn {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	height: auto;
	min-height: 52px;
	padding: 6px;
	border-radius: 50px;
}

.kehuanli__swipe-btn label {
	position: static;
	top: auto;
	left: auto;
	margin: 0;
	padding: 10px 22px;
	border-radius: 50px;
	font-size: 15px;
	line-height: 1.4;
}

.kehuanli__swipe-btn label input { position: absolute; opacity: 0; pointer-events: none; }

/* 面板显隐交给 JS（.site-tab-panel.is-active），兼顾触摸与动画 */
.case__plans,
#gaoyanzhi__plans,
#quanyunying__plans,
#gaofuzai__plans,
#genganquan__plans { display: none; }

.case__plans.is-active,
.case__plans.active,
#gaoyanzhi__plans.is-active,
#quanyunying__plans.is-active,
#gaofuzai__plans.is-active,
#genganquan__plans.is-active { display: block; }

@media (max-width: 767.98px) {
	.kehuanli__swipe-btn { border-radius: 14px; padding: 8px; }
	.kehuanli__swipe-btn label { flex: 1 1 auto; padding: 8px 14px; font-size: 14px; text-align: center; }
}

/* ==========================================================================
   5. 案例卡片
   ========================================================================== */
.kehuanli_image { margin-bottom: 16px; }

.kehuanli__item {
	position: relative;
	min-height: clamp(180px, 24vw, 300px);
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	border-radius: var(--site-radius);
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
}

.kehuanli__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45));
	pointer-events: none;
}

.kehuanli__item .kehuanli__text {
	position: relative;
	z-index: 2;
	padding: 18px;
	text-align: center;
}

.kehuanli__item .kehuanli__text h2 {
	color: #ffffff;
	font-size: clamp(16px, 1.6vw, 24px);
	line-height: 1.3;
	margin: 0;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.kehuanli__item[onclick],
.kehuanli__item.zixun_modal_btn { cursor: pointer; }

@media (hover: hover) {
	.kehuanli__item:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
}

/* 分类说明文字 */
.kehuanli__text__item h4 {
	font-size: clamp(18px, 2.4vw, 30px) !important;
	line-height: 1.5;
	padding: 24px 8px 8px !important;
}

.kehuanli__text__item pre {
	white-space: pre-wrap;
	word-break: break-word;
	font-family: inherit;
	font-size: inherit;
	background: none;
	border: 0;
	padding: 0 8px;
	margin: 0 0 18px;
}

.kehuanli__text__item pre p { margin: 0; line-height: 1.9; }

/* ==========================================================================
   6. 团队 / 客户评价 / 服务
   ========================================================================== */
.testimonial-section .testimonial__item { margin-bottom: 24px; }

.footer__top-call h2 { font-size: clamp(18px, 2vw, 26px); }
.footer__top-call h4 { font-size: clamp(14px, 1.4vw, 18px); font-weight: 400; }

.footer__top-auth .erweima { margin-bottom: 14px; text-align: center; }
.footer__top-auth .erweima img { max-width: 120px; }

/* ==========================================================================
   7. 移动端抽屉导航（替代 slicknav + offcanvas 双套实现）
   ========================================================================== */
#mobile-menu-wrap,
.slicknav_menu { display: none !important; }

/* 头图之上透明、向下滚动后转白底（与原站 header-section 的 absolute 定位意图一致） */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: transparent;
	transition: background-color .25s ease, box-shadow .25s ease;
}

.site-header.is-stuck {
	background: #ffffff;
	box-shadow: 0 1px 12px rgba(0, 0, 0, .08);
}

/* 站点根节点需要为固定头留出空间（首页/案例页的首屏是深色 Hero） */
.site-body { padding-top: 0; }

/* header-section 原为 absolute 覆盖在首屏上；此处固定头已承担布局，改回 static
   否则父级 .site-header 高度为 0，吸顶白底无实际面积，下方深色区块会透出 */
.site-header .header-section { position: static; padding: 0; }

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--site-header-h);
}

.site-header__logo img { max-height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
/* 透明态：白字（对齐原站 .header__menu ul li a{color:#fff}） */
.site-nav a {
	display: block;
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
	border-radius: 6px;
	white-space: nowrap;
	transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover { color: #ffffff; background: rgba(255, 255, 255, .16); }
.site-nav li.active > a { color: #ffffff; background: rgba(255, 255, 255, .18); }

/* 吸顶白底态：深字 */
.site-header.is-stuck .site-nav a { color: var(--site-ink); }
.site-header.is-stuck .site-nav a:hover { color: var(--site-brand); background: rgba(76, 87, 214, .08); }
.site-header.is-stuck .site-nav li.active > a { color: var(--site-brand); background: rgba(76, 87, 214, .1); }
.site-header.is-stuck .site-nav__toggle { color: var(--site-ink); border-color: rgba(0, 0, 0, .12); }

.site-nav__toggle {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	font-size: 18px;
	color: #ffffff;
}

@media (max-width: 991.98px) {
	.site-nav { display: none; }
	.site-nav__toggle { display: inline-flex; }
}

/* 抽屉 */
.site-drawer {
	position: fixed;
	inset: 0;
	z-index: 1200;
	visibility: hidden;
	pointer-events: none;
}

.site-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	opacity: 0;
	transition: opacity .25s ease;
}

.site-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(86vw, 340px);
	height: 100%;
	background: #fff;
	box-shadow: -8px 0 28px rgba(0, 0, 0, .18);
	transform: translateX(100%);
	transition: transform .28s ease;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.site-drawer.is-open { visibility: visible; pointer-events: auto; }
.site-drawer.is-open .site-drawer__overlay { opacity: 1; }
.site-drawer.is-open .site-drawer__panel { transform: translateX(0); }

.site-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid #eee;
}

.site-drawer__close {
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #444;
}

.site-drawer__nav { padding: 8px 0; }
.site-drawer__nav a {
	display: block;
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 600;
	color: var(--site-ink);
	text-decoration: none;
	border-bottom: 1px solid #f4f4f4;
}
.site-drawer__nav a:hover { color: var(--site-brand); background: #f8f9ff; }

body.site-drawer-open { overflow: hidden; }

/* ==========================================================================
   8. 返回顶部 / 图片懒加载占位
   ========================================================================== */
.site-backtop {
	position: fixed;
	right: 18px;
	bottom: 88px;
	z-index: 900;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--site-brand);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
	box-shadow: 0 6px 18px rgba(76, 87, 214, .35);
}
.site-backtop.is-show { opacity: 1; visibility: visible; transform: translateY(0); }

img[loading="lazy"] { background: #f2f3f5; }

/* ==========================================================================
   9. 小屏细节收敛
   ========================================================================== */
@media (max-width: 767.98px) {
	.hero__item { min-height: auto; padding: calc(var(--site-header-h) + 18px) 0 44px; }
	.hero__item .hero__text { text-align: center; }
	.hero__item .hero__text h2,
	.hero__item .hero__text h4,
	.hero__item .hero__text h5 { text-align: center !important; }
	.primary-btn { font-size: 13px; padding: 11px 18px 10px; }
	.hero__btn { margin: 24px auto; }
	.footer__text-widget { margin-bottom: 22px; }
	.site-backtop { bottom: 76px; right: 12px; }
}

@media (max-width: 575.98px) {
	.hero__item .hero__text h4 br,
	.hero__item .hero__text h5 br { display: none; }
	.kehuanli__text__item h4 { padding: 16px 4px 6px !important; }
}

/* ==========================================================================
   10. 内联 SVG 图标精灵：必须隐藏，否则 <symbol> 会以块级元素占位
   ========================================================================== */
.site-icon-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
	visibility: hidden;
}

/* ==========================================================================
   11. Hero 轮播必须保持单行：owl 默认 flex 布局会被 Bootstrap 干扰而上下堆叠
   ========================================================================== */
.hero__slider.owl-carousel,
.kehu__slider.owl-carousel,
.testimonial__slider.owl-carousel,
.x5__slider.owl-carousel {
	display: block;
	width: 100%;
}

.hero__slider.owl-carousel .owl-stage-outer,
.kehu__slider.owl-carousel .owl-stage-outer,
.testimonial__slider.owl-carousel .owl-stage-outer,
.x5__slider.owl-carousel .owl-stage-outer {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.hero__slider.owl-carousel .owl-stage,
.kehu__slider.owl-carousel .owl-stage,
.testimonial__slider.owl-carousel .owl-stage,
.x5__slider.owl-carousel .owl-stage {
	display: block;
	white-space: nowrap;
	font-size: 0;
}

.hero__slider.owl-carousel .owl-item,
.kehu__slider.owl-carousel .owl-item,
.testimonial__slider.owl-carousel .owl-item,
.x5__slider.owl-carousel .owl-item {
	display: inline-block;
	float: none;
	vertical-align: top;
	white-space: normal;
}
