/**
 * 全站公共层（layout 第一个 CSS）— 无 lanyun 类名
 * :root 变量 · 页眉 · 页脚 · 语言 · 搜索（留言表单见 message_form.html + 页面包裹样式）
 */

:root {
	--color: #333;
	--font-size: 14px;
	--container-width: 1330px;
    --hight-color: #047ebe; /*高亮色*/
	--theme-color: #1969bc; /*主色调*/
    --comple-color: #31457e; /*辅色掉*/ 
    --theme-title:#000; /*主标题颜色*/
    --comple-title:#F2F2F2; /*辅标题颜色*/
	--nav-color: #000;
	--nav-active-color: var(--hight-color);
	--background-color: #fff;
	--page-hero-bg: var(--comple-color);
	--page-hero-min-height: 140px;
	--header-main-height: 120px;
	--header-logo-max-height: 80px;
	--footer-bg: var(--theme-color);
	--footer-copy-bg: var(--comple-color);
	--topbar-bg: #f5f8fc;

    /*按钮*/
    --button-bg-color: var(--hight-color); 
    --button-color: #FFF; 

}

/* 内容碎片视频预览：fragment_video('碎片别名') → .videoPlay.videoPlay--{别名} */
.videoPlay {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	background: #dbe4f2;
}

.videoPlay > img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 200px;
	object-fit: cover;
}

.videoPlay > a {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	margin: -35px 0 0 -35px;
	border: 2px solid #fff;
	border-radius: 50%;
	color: #fff;
	font-size: 24px;
	text-decoration: none;
	background: rgba(0, 0, 0, 0.15);
	transition: background 0.2s ease, transform 0.2s ease;
}

.videoPlay > a:hover {
	background: rgba(0, 0, 0, 0.28);
	color: #fff;
	transform: scale(1.04);
}

.videoPlay > a .fa-play {
	margin-left: 4px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}



html {
	font-family: Arial, Helvetica, "Microsoft YaHei", sans-serif;
	overflow-x: hidden;
}

body {
	margin: 0;
	color: var(--color);
	font-size: var(--font-size);
	background: var(--background-color);
	overflow-x: hidden;
}

ul,
ol,
p {
	margin: 0;
}

ul {
	list-style: none;
	padding: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.site-container {
	width: 100%;
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.text-direction {
	/* RTL 语言由 html[lang] 控制时可扩展 */
}

/* —— 移动顶栏 —— */
.site-mobile-bar {
	position: relative;
	z-index: 1003;
	background: var(--topbar-bg);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-mobile-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px;
}

.site-mobile-bar__social {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

/* —— 桌面顶栏联系信息 —— */
.site-topbar {
	background: var(--topbar-bg);
}

.site-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 20px;
	min-height: 44px;
}

.site-topbar__contacts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	flex: 1;
	min-width: 0;
	font-size: 14px;
	color: var(--theme-color);
}

.site-topbar__contacts li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.site-topbar__contacts i {
	flex-shrink: 0;
}

.site-topbar__social {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.site-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--theme-color);
	font-size: 18px;
}

@media (max-width: 767px) {
	.site-topbar {
		display: none;
	}
}

/* —— 主导航头 —— */
.site-header {
	position: relative;
	z-index: 1002;
	background: #fff;
}

.site-header__inner {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 12px 20px;
	min-height: var(--header-main-height);
	padding: 10px 20px;
}

.site-logo {
	flex: 0 0 auto;
	max-width: 350px;
	line-height: 0;
}

.site-logo__img {
	display: block;
	width: auto;
	height: auto;
	max-height: var(--header-logo-max-height);
	max-width: 100%;
	object-fit: contain;
}

.site-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.site-nav__toggle {
	display: none;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 24px 32px;
}

.site-nav__item {
	position: relative;
}

.site-nav__item:hover {
	z-index: 50;
}

.site-nav__link {
	display: inline-block;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nav-color);
	padding: 8px 2px;
	line-height: 1.3;
	white-space: nowrap;
}

.site-nav__item.is-active .site-nav__link,
.site-nav__item:hover .site-nav__link {
	color: var(--nav-active-color);
}

.site-nav__item.is-active .site-nav__link {
	box-shadow: inset 0 -3px 0 var(--nav-active-color);
}

/* —— 二级菜单（桌面下拉） —— */
.site-nav__item:has(.site-nav__sub) > .site-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.site-nav__item:has(.site-nav__sub) > .site-nav__link::after {
	content: "";
	flex-shrink: 0;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform 0.2s ease;
}

.site-nav__item:has(.site-nav__sub):hover > .site-nav__link::after {
	transform: rotate(180deg);
}

.site-nav__sub {
	display: none;
	position: absolute;
	left: 0;
	top: calc(100% + 8px);
	min-width: 100%;
	width: max-content;
	max-width: 260px;
	padding: 8px 0 12px;
	background: #fff;
	border-top: 2px solid var(--hight-color);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	z-index: 60;
	text-align: center;
}

.site-nav__item:hover .site-nav__sub {
	display: block;
}

.site-nav__sub::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 10px;
}

.site-nav__sub li {
	margin: 0;
}

.site-nav__sublink {
	display: block;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #333;
	text-align: center;
	white-space: nowrap;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav__sublink:hover {
	background: #fafafa;
	color: var(--hight-color);
}

@media (min-width: 768px) {
	.site-nav__item:last-child .site-nav__sub,
	.site-nav__item:nth-last-child(2) .site-nav__sub {
		left: auto;
		right: 0;
	}
}

.site-header__tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	flex: 0 0 auto;
}

/* —— 搜索（线框放大镜，对齐参考图形式） —— */
.site-search {
	position: relative;
}

.site-search__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	color: var(--nav-color);
	background: transparent;
	border: none;
	cursor: pointer;
}

.site-search__trigger:hover {
	color: var(--theme-color);
}

.site-search__icon {
	display: block;
	position: relative;
	width: 22px;
	height: 22px;
}

.site-search__icon::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 1px;
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-radius: 50%;
	box-sizing: border-box;
}

.site-search__icon::after {
	content: "";
	position: absolute;
	right: 1px;
	bottom: 0;
	width: 9px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transform: rotate(45deg);
	transform-origin: 100% 100%;
}

.site-search__panel {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 8px;
	min-width: 260px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	z-index: 300;
}

.site-search.is-open .site-search__panel {
	display: flex;
	align-items: center;
	gap: 8px;
}

.site-search__input {
	flex: 1;
	min-width: 0;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #ddd;
	border-radius: 2px;
	font-size: 14px;
}

.site-search__close {
	flex-shrink: 0;
	padding: 6px;
	border: none;
	background: transparent;
	cursor: pointer;
	color: #666;
}

/* —— 语言切换 —— */
.site-lang {
	position: relative;
	z-index: 200;
}

.site-lang__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--nav-color);
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 2px;
	cursor: pointer;
	white-space: nowrap;
}

.site-lang__flag {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.site-lang__menu {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 4px;
	min-width: 150px;
	background: #fff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 300;
}

.ftw-lang-switch.open .site-lang__menu,
.site-lang.open .site-lang__menu {
	display: block;
}

.site-lang__option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	color: #333;
}

.site-lang__option:hover {
	background: #f0f4ff;
}

/* —— 页脚 —— */
.site-footer__main {
	background: var(--footer-bg);
	color: #fff;
	padding: 80px 0 60px;
}

.site-footer__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 28px 24px;
}

.site-footer__brand {
	flex: 1 1 320px;
	max-width: 48%;
}

.site-footer__logo {
	display: block;
	max-width: 280px;
	width: 100%;
	height: auto;
	margin-bottom: 20px;
}

.site-footer__contact {
	font-size: 16px;
	line-height: 1.85;
}

.site-footer__contact strong {
	font-weight: 700;
}

.site-footer__cates,
.site-footer__nav {
	flex: 1 1 200px;
}

.site-footer__cate-list a,
.site-footer__nav-list a {
	display: block;
	padding: 4px 0;
	font-size: 16px;
	line-height: 1.8;
	color: #fff;
}

.site-footer__cate-list a:hover,
.site-footer__nav-list a:hover {
	color: var(--hight-color);
}

.site-footer__copy {
	background: var(--footer-copy-bg);
	padding: 14px 0;
}

.site-footer__copyright {
	margin: 0;
	text-align: center;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.92);
}

/* —— 移动端 —— */
@media (max-width: 767px) {
	.site-header__inner {
		padding: 10px 12px;
		min-height: 0;
	}

	.site-logo {
		flex: 1 1 auto;
		min-width: 0;
		max-width: 200px;
	}

	.site-nav {
		flex: 0 0 auto;
	}

	.site-nav__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 8px 10px;
		font-size: 22px;
		color: var(--theme-color);
		background: transparent;
		border: none;
		cursor: pointer;
	}

	.site-nav__toggle .site-nav__icon-close {
		display: none;
	}

	.site-nav.is-open .site-nav__toggle .site-nav__icon-open {
		display: none;
	}

	.site-nav.is-open .site-nav__toggle .site-nav__icon-close {
		display: inline;
	}

	.site-nav__list {
		display: none;
		position: fixed;
		left: 0;
		right: 0;
		top: var(--site-mobile-header-h, 56px);
		z-index: 1001;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: calc(100vh - var(--site-mobile-header-h, 56px));
		overflow-y: auto;
		background: #fff;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
		padding: 8px 0 16px;
	}

	.site-nav.is-open .site-nav__list {
		display: flex;
	}

	.site-nav__item {
		width: 100%;
	}

	.site-nav__link {
		display: block;
		width: 100%;
		padding: 14px 20px;
		font-size: 14px;
		box-shadow: none;
	}

	.site-nav__item.is-active .site-nav__link {
		color: var(--nav-active-color);
	}

	.site-nav__item:has(.site-nav__sub) > .site-nav__link::after {
		display: none;
	}

	.site-nav__sub {
		position: static;
		display: block;
		left: auto;
		transform: none;
		min-width: 0;
		width: 100%;
		max-width: none;
		margin-top: 0;
		padding: 0;
		border-top: none;
		box-shadow: none;
		background: #f5f8fc;
		text-align: left;
	}

	.site-nav__sublink {
		padding: 10px 20px 10px 36px;
		font-size: 13px;
		text-align: left;
		white-space: normal;
	}

	body.site-mobile-nav-open {
		overflow: hidden;
	}

	.site-footer__main {
		padding: 32px 0 24px;
	}

	.site-footer__brand {
		max-width: 100%;
		flex: 1 1 100%;
	}

	.site-footer__logo {
		max-width: 220px;
		margin: 0 auto 16px;
	}

	.site-footer__contact {
		text-align: center;
	}

	.site-footer__cates,
	.site-footer__nav {
		flex: 1 1 100%;
	}

}

@media (min-width: 768px) {
	.site-mobile-bar {
		display: none;
	}
}

@media (min-width: 1200px) {
	.site-nav__list {
		gap: 32px;
	}

	.site-nav__link {
		font-size: 17px;
	}
}

/* —— 全站留言表单（default/public/message_form.html + site-form-shell.css）—— */
.site-form-shell .site-form__label {
	display: block;
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: #333;
}

.site-form-shell .site-form__required {
	color: var(--hight-color, #e53935);
	font-weight: 700;
}

.site-form-shell .site-form__input,
.site-form-shell .site-form__textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: #333;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
}

.site-form-shell .site-form__input {
	min-height: 44px;
}

.site-form-shell .site-form__textarea {
	min-height: 140px;
	resize: vertical;
}

.site-form-shell .site-form__input::placeholder,
.site-form-shell .site-form__textarea::placeholder {
	color: #999;
}

.site-form-shell .site-form__input:focus,
.site-form-shell .site-form__textarea:focus {
	outline: none;
	border-color: var(--theme-color, #1969bc);
	box-shadow: 0 0 0 2px rgba(25, 105, 188, 0.15);
}

.site-form-shell .site-form__field.is-invalid .site-form__input,
.site-form-shell .site-form__field.is-invalid .site-form__textarea {
	border-color: var(--hight-color, #e53935);
	box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.12);
}

.site-form-shell .site-form__error {
	color: var(--hight-color, #e53935);
}

.site-form-shell .site-form__feedback.is-success {
	background: #e8f5e9;
	color: #1b5e20;
}

.site-form-shell .site-form__feedback.is-error {
	background: #ffebee;
	color: #b71c1c;
}

.site-form-shell .site-form__submit-row {
	padding-top: 8px;
	text-align: left;
}

.site-form-shell .site-form__submit {
	display: inline-block;
	min-width: 140px;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 32px;
	border: none;
	border-radius: 4px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	background: var(--button-bg-color, var(--hight-color, #e53935));
	color: var(--button-color, #fff);
	transition: opacity 0.2s ease, filter 0.2s ease;
}

.site-form-shell .site-form__submit:hover {
	filter: brightness(1.05);
	opacity: 0.95;
}

.site-form-shell .site-form__submit:focus-visible {
	outline: 2px solid var(--theme-color, #1969bc);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.site-form-shell .site-form__submit {
		width: 100%;
	}
}

/* —— 文章/案例列表：上图下文卡片（3 列网格） —— */
.site-feed-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 1024px) {
	.site-feed-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 24px;
	}
}

@media (max-width: 767px) {
	.site-feed-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.site-feed-grid__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-feed-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-feed-card:hover {
	border-color: #e0e0e0;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.site-feed-card__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f3f4f6;
}

.site-feed-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.site-feed-card__media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #f3f4f6;
}

.site-feed-card__body {
	flex: 1;
	padding: 16px 18px 20px;
	box-sizing: border-box;
}

.site-feed-card__title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
	color: #111;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.site-feed-card:hover .site-feed-card__title {
	color: var(--theme-color, #1969bc);
}

.site-feed-card__time {
	display: block;
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.4;
	color: #999;
}

.site-feed-card__summary {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: #666;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
