/* ==========================================================================
   可视化建站 - 前端全站样式
   轻量化:无框架依赖,全部样式基于 --sztx-* CSS 变量,三端响应式。
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--sztx-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
	font-size: var(--sztx-font-size, 16px);
	line-height: var(--sztx-line-height, 1.7);
	color: var(--sztx-text, #1f2937);
	background: var(--sztx-bg, #ffffff);
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--sztx-primary, #2563eb); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sztx-secondary, #0f766e); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; color: var(--sztx-heading, #111827); line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
table { border-collapse: collapse; width: 100%; }
iframe { max-width: 100%; }

.sztx-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 容器 ---------- */
.sztx-container {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding: 0 100px;
}

/* ---------- 页头 ---------- */
.sztx-header {
	background: var(--sztx-bg, #fff);
	border-bottom: 1px solid rgba(0, 0, 0, .06);
	position: relative;
	z-index: 90;
}
.sztx-header-sticky.sztx-header-scrolled { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.sztx-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.sztx-header-logo { display: flex; align-items: center; }
.sztx-header-title { font-size: 22px; font-weight: 700; color: var(--sztx-heading, #111827); }
.sztx-header-logo img { max-height: 48px; width: auto; }
.sztx-header-centered { text-align: center; }
.sztx-header-centered .sztx-header-inner { flex-direction: column; padding: 12px 0; }

.sztx-nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: var(--sztx-nav-gap, 4px); }
.sztx-nav-menu li { position: relative; }
.sztx-nav-menu a {
	display: block; padding: 10px 14px; color: var(--sztx-text, #1f2937);
	font-size: var(--sztx-nav-size, 15px); border-radius: 6px; transition: color .2s, background .2s;
}
.sztx-nav-menu a:hover, .sztx-nav-menu .current-menu-item > a { color: var(--sztx-nav-hover, var(--sztx-primary, #2563eb)); background: var(--sztx-nav-hover-bg, rgba(37, 99, 235, .06)); }
.sztx-nav-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff;
	border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08);
	list-style: none; margin: 0; padding: 6px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; z-index: 99;
}
.sztx-nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sztx-nav-menu .sub-menu a { padding: 8px 12px; }

.sztx-nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.sztx-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--sztx-heading, #111); margin: 4px 0; border-radius: 2px; transition: transform .2s; }
.sztx-nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sztx-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.sztx-nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 页脚 ---------- */
.sztx-footer { background: #111827; color: #9ca3af; padding: 28px 0; margin-top: 0; }
.sztx-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sztx-footer a { color: #9ca3af; }
.sztx-footer a:hover { color: #fff; }
.sztx-footer-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 16px; }

/* ---------- 构建器区块与栅格 ---------- */
.sztx-section { padding: 48px 0; }
.sztx-section-full .sztx-container { max-width: none; }
.sztx-section-bgimg { background-size: cover; background-position: center; }
.sztx-section-align-center .sztx-container { text-align: center; }
.sztx-section-align-right .sztx-container { text-align: right; }

.sztx-container[style*="gap"] { display: flex; flex-wrap: wrap; align-items: stretch; }
.sztx-container.sztx-flex { display: flex; flex-wrap: wrap; align-items: stretch; }
.sztx-column { flex: 1 1 0; min-width: 0; }
.sztx-col-full { flex: 1 1 100%; }
.sztx-col-1_2 { flex-basis: 50%; max-width: 50%; }
.sztx-col-1_3 { flex-basis: 30%; max-width: 30%; }
.sztx-col-2_3 { flex-basis: 66.6667%; max-width: 66.6667%; }
.sztx-col-1_4 { flex-basis: 23%; max-width: 23%; }
.sztx-col-3_4 { flex-basis: 75%; max-width: 75%; }

/* 三端显隐 */
.sztx-hide-desktop { display: none; }

/* ---------- 组件通用 ---------- */
.sztx-component { position: relative; }
.sztx-component-shadow { box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }

/* ---------- 标题 / 段落 ---------- */
.sztx-heading { margin-bottom: .5em; }
.sztx-heading a { color: inherit; }
.sztx-text p:last-child { margin-bottom: 0; }

/* ---------- 按钮 ---------- */
.sztx-btn {
	display: inline-block; border-radius: var(--sztx-btn-radius, 6px);
	font-size: 15px; font-weight: 500; line-height: 1.4; text-align: center;
	padding: 10px 24px; cursor: pointer; border: 2px solid transparent;
	transition: all .2s; text-decoration: none;
}
.sztx-btn-primary { background: var(--sztx-primary, #2563eb); color: #fff; border-color: var(--sztx-primary, #2563eb); }
.sztx-btn-primary:hover { background: var(--sztx-secondary, #0f766e); border-color: var(--sztx-secondary, #0f766e); color: #fff; }
.sztx-btn-secondary { background: var(--sztx-secondary, #0f766e); color: #fff; border-color: var(--sztx-secondary, #0f766e); }
.sztx-btn-secondary:hover { filter: brightness(1.1); color: #fff; }
.sztx-btn-outline { background: transparent; color: var(--sztx-primary, #2563eb); border-color: var(--sztx-primary, #2563eb); }
.sztx-btn-outline:hover { background: var(--sztx-primary, #2563eb); color: #fff; }
.sztx-btn-link { background: none; border-color: transparent; color: var(--sztx-primary, #2563eb); padding: 6px 8px; }
.sztx-btn-link:hover { text-decoration: underline; }
.sztx-btn-sm { padding: 6px 16px; font-size: 13px; }
.sztx-btn-lg { padding: 14px 32px; font-size: 16px; }
.sztx-btn-block { display: block; width: 100%; }

/* ---------- 图片 ---------- */
.sztx-image-wrap { margin: 0; }
.sztx-image-wrap img { border-radius: var(--sztx-radius, 0); }
.sztx-image-wrap figcaption { margin-top: 8px; font-size: 13px; color: #6b7280; text-align: center; }
.sztx-image-shadow img { box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }

/* 图片:向左循环(跑马灯) */
.sztx-image-loop-wrap { overflow: hidden; }
.sztx-image-loop { display: flex; width: 200%; animation: sztx-loop-left 10s linear infinite; }
.sztx-image-loop img, .sztx-image-loop a { flex: 0 0 50%; width: 50%; display: block; }
@keyframes sztx-loop-left {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* 图片:悬停放大 */
.sztx-image-zoom { overflow: hidden; }
.sztx-image-zoom img { transition: transform .5s ease; }
.sztx-image-zoom:hover img { transform: scale(1.08); }

/* ---------- 视频 ---------- */
.sztx-video-box { position: relative; padding-top: 56.25%; border-radius: inherit; }
.sztx-video-box video, .sztx-video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 分割线 / 空白 ---------- */
.sztx-divider { border: 0; margin-left: auto; margin-right: auto; }
.sztx-component-spacer { background: transparent; }

/* ---------- 内容组件通用卡片 ---------- */
.sztx-card {
	background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden;
	transition: box-shadow .25s, transform .25s;
}
.sztx-card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, .1); transform: translateY(-3px); }
.sztx-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sztx-card-body { padding: 16px; }
.sztx-card-title { font-size: 16px; margin: 0 0 6px; }
.sztx-card-text { font-size: 14px; color: #6b7280; margin: 0; }
.sztx-card-meta { font-size: 12px; color: #9ca3af; margin-top: 8px; }

/* 列表栅格 */
.sztx-grid { display: grid; gap: 24px; }
.sztx-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sztx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sztx-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sztx-grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Banner 轮播(多效果) ---------- */
.sztx-banner { position: relative; overflow: hidden; border-radius: 12px; }
.sztx-banner-viewport { position: relative; width: 100%; height: 100%; }
.sztx-banner-track { position: relative; width: 100%; height: 100%; }
.sztx-banner-slide { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.sztx-banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sztx-banner-h-compact { aspect-ratio: 21 / 7; }
.sztx-banner-h-standard { aspect-ratio: 21 / 9; }
.sztx-banner-h-tall { aspect-ratio: 16 / 9; }
/* 左右滑动:track 平移,slides 并排 */
.sztx-banner[data-effect="slide"] .sztx-banner-track { display: flex; transition: transform .5s ease; }
.sztx-banner[data-effect="slide"] .sztx-banner-slide { position: relative; flex: 0 0 100%; }
/* 淡入淡出 */
.sztx-banner[data-effect="fade"] .sztx-banner-slide { opacity: 0; transition: opacity .8s ease; }
.sztx-banner[data-effect="fade"] .sztx-banner-slide.is-active { opacity: 1; }
/* 缩放切换 */
.sztx-banner[data-effect="zoom"] .sztx-banner-slide { opacity: 0; transform: scale(1.08); transition: opacity .7s ease, transform .7s ease; }
.sztx-banner[data-effect="zoom"] .sztx-banner-slide.is-active { opacity: 1; transform: scale(1); }
/* 3D 翻转:旧图向右翻出,新图从左翻入 */
.sztx-banner[data-effect="flip3d"] .sztx-banner-slide {
	opacity: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform: perspective(1400px) rotateY(-90deg);
	transform-origin: left center;
	transition: transform .6s ease, opacity .6s ease;
}
.sztx-banner[data-effect="flip3d"] .sztx-banner-slide.is-active {
	opacity: 1;
	transform: perspective(1400px) rotateY(0);
	transform-origin: center;
}
.sztx-banner[data-effect="flip3d"] .sztx-banner-slide.is-leaving {
	opacity: 0;
	transform: perspective(1400px) rotateY(90deg);
	transform-origin: right center;
}
/* 通栏:banner 本体拉伸到视口全宽(突破内容容器),去掉圆角 */
.sztx-banner-full { width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; }

/* 擦除展开 */
.sztx-banner[data-effect="curtain"] .sztx-banner-slide { clip-path: inset(0 0 0 100%); transition: clip-path .7s ease; }
.sztx-banner[data-effect="curtain"] .sztx-banner-slide.is-active { clip-path: inset(0 0 0 0); }

/* 最新内容:网格卡片样式(多列),标题+分类+日期同行 */
.sztx-latest-grid { gap: 16px; }
.sztx-latest-card {
	display: flex; align-items: baseline; gap: 10px;
	padding: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
	transition: border-color .2s, box-shadow .2s;
}
.sztx-latest-card:hover { border-color: var(--sztx-primary, #2563eb); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.sztx-latest-card > a { flex: 1; min-width: 0; font-weight: 600; line-height: 1.45; }
.sztx-latest-card .sztx-latest-cat,
.sztx-latest-card .sztx-latest-date { flex-shrink: 0; font-size: 12px; color: #9ca3af; }
.sztx-latest-cat { color: var(--sztx-primary, #2563eb); }

/* ---------- FAQ ---------- */
.sztx-faq-item { border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.sztx-faq-q { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; font-weight: 500; }
.sztx-faq-q::after { content: "+"; font-size: 20px; color: var(--sztx-primary); transition: transform .2s; }
.sztx-faq-item.is-open .sztx-faq-q::after { transform: rotate(45deg); }
.sztx-faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s; color: #4b5563; font-size: 14px; }
.sztx-faq-item.is-open .sztx-faq-a { padding: 0 18px 14px; max-height: 500px; }

/* FAQ:两列显示 */
.sztx-faq-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.sztx-faq-cols-2 .sztx-faq-item { margin-bottom: 10px; }

/* FAQ:一直展开 */
.sztx-faq-open-all .sztx-faq-a { max-height: none; padding: 0 18px 14px; }
.sztx-faq-open-all .sztx-faq-q { cursor: default; }
.sztx-faq-open-all .sztx-faq-q::after { display: none; }

/* ---------- 轮播 ---------- */
.sztx-slider { position: relative; overflow: hidden; border-radius: 12px; }
.sztx-slider-track { display: flex; transition: transform .45s ease; }
.sztx-slider-slide { flex: 0 0 100%; position: relative; }
.sztx-slider-slide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.sztx-slider-slide-bg { width: 100%; aspect-ratio: 21 / 9; background: linear-gradient(135deg, var(--sztx-primary, #2563eb), #111827); }
.sztx-slider-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 32px 24px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; }
.sztx-slider-caption h3 { color: #fff; margin-bottom: 4px; }
.sztx-slider-caption p { margin: 0; font-size: 14px; opacity: .9; }
.sztx-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); cursor: pointer; font-size: 18px; color: #111; z-index: 5; }
.sztx-slider-arrow:hover { background: #fff; }
.sztx-slider-arrow.prev { left: 12px; }
.sztx-slider-arrow.next { right: 12px; }
.sztx-slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.sztx-slider-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.sztx-slider-dots button.is-active { background: #fff; }

/* ---------- 表单 ---------- */
.sztx-form { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; }
.sztx-form label { display: block; margin-bottom: 12px; font-size: 14px; }
.sztx-form input[type="text"],
.sztx-form input[type="tel"],
.sztx-form input[type="email"],
.sztx-form textarea {
	width: 100%; padding: 10px 12px; margin-top: 4px; border: 1px solid #d1d5db; border-radius: 6px;
	font-size: 14px; font-family: inherit; transition: border-color .2s, box-shadow .2s; background: #fff;
}
.sztx-form input:focus, .sztx-form textarea:focus { outline: none; border-color: var(--sztx-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.sztx-form-row { display: flex; gap: 12px; }
.sztx-form-row label { flex: 1; }
.sztx-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.sztx-form-msg { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.sztx-form-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.sztx-form-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* 表单 AJAX 提交浮层提示 */
.sztx-toast {
	position: fixed; top: 50%; left: 50%; transform: translate(-50%, calc(-50% - 12px));
	z-index: 99999; max-width: 90%; padding: 14px 28px; border-radius: 8px;
	font-size: 15px; line-height: 1.5; color: #fff; text-align: center;
	background: rgba(17, 24, 39, .92); box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
	opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility .3s;
	pointer-events: none;
}
.sztx-toast-show { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.sztx-toast-success { background: rgba(5, 150, 105, .95); }
.sztx-toast-error { background: rgba(220, 38, 38, .95); }

/* ---------- 404 ---------- */
.sztx-404 { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 16px; }
.sztx-404-code { font-size: 96px; font-weight: 800; color: var(--sztx-primary); line-height: 1; opacity: .9; }
.sztx-404-title { font-size: 26px; margin: 12px 0 8px; }
.sztx-404-text { color: #6b7280; margin-bottom: 24px; }

/* ---------- 回退内容 ---------- */
.sztx-container.sztx-fallback-content { padding: 48px 0; }
.sztx-fallback-content article { width: 80%; margin: 0 auto; }
.sztx-fallback-title { font-size: 28px; }

/* ---------- 表单 placeholder 风格 ---------- */
.sztx-form ::placeholder { color: #9ca3af; }

/* ---------- 动画 ---------- */
@media (prefers-reduced-motion: no-preference) {
	.sztx-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
	.sztx-reveal.is-visible { opacity: 1; transform: none; }
	.sztx-reveal-fade-in { transform: none; }
	.sztx-reveal-zoom-in { transform: scale(.92); }
	.sztx-reveal-slide-left { transform: translateX(-40px); }
	.sztx-reveal-slide-right { transform: translateX(40px); }
}

/* ---------- 平板 ---------- */
@media (max-width: 991px) {
	.sztx-container { padding: 0 48px; }
	.sztx-hide-tablet { display: none !important; }
	.sztx-col-1_2, .sztx-col-1_3, .sztx-col-2_3, .sztx-col-1_4, .sztx-col-3_4 { flex-basis: 100%; max-width: 100%; }
	/* 自定义百分比列:平板下也恢复整列(需 !important 覆盖内联宽度) */
	.sztx-col-custom { flex-basis: 100% !important; max-width: 100% !important; }
	.sztx-grid-3, .sztx-grid-4, .sztx-grid-5 { grid-template-columns: repeat(2, 1fr); }
	.sztx-section { padding: 36px 0; }
}

/* ---------- 手机 ---------- */
@media (max-width: 767px) {
	.sztx-container { padding: 0 20px; }
	.sztx-hide-mobile { display: none !important; }
	.sztx-banner-h-standard, .sztx-banner-h-tall { aspect-ratio: 4 / 3; }
	.sztx-grid-2, .sztx-grid-3, .sztx-grid-4, .sztx-grid-5 { grid-template-columns: 1fr; }
	.sztx-faq-cols-2 { grid-template-columns: 1fr; }
	.sztx-nav-toggle { display: block; }
	.sztx-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e5e7eb;
		display: none; box-shadow: 0 8px 24px rgba(0,0,0,.08);
	}
	.sztx-nav.is-open { display: block; }
	.sztx-nav-menu { flex-direction: column; padding: 8px 16px 16px; }
	.sztx-nav-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 12px; }
	.sztx-form-row { flex-direction: column; gap: 0; }
	.sztx-slider-slide img { aspect-ratio: 4 / 3; }
}

/* ---------- 内容组件补充样式 ---------- */
.sztx-block-title { font-size: 28px; margin: 0 0 24px; text-align: center; }
.sztx-block-desc { color: #6b7280; margin: -12px 0 24px; text-align: center; }
.sztx-empty { padding: 40px 16px; text-align: center; color: #9ca3af; background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 8px; }
.sztx-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.sztx-filter-link { padding: 6px 16px; border: 1px solid #e5e7eb; border-radius: 999px; font-size: 13px; color: #4b5563; background: #fff; }
.sztx-filter-link:hover { border-color: var(--sztx-primary); color: var(--sztx-primary); }
.sztx-card-meta { font-size: 13px; }
.sztx-card-meta a { font-weight: 500; }

/* ---------- 分页导航 ---------- */
.sztx-pagination { margin-top: 32px; }
.sztx-pagination-list { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sztx-pagination-item { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; text-decoration: none; color: inherit; transition: color .15s, border-color .15s; }
.sztx-pagination-item:hover { border-color: var(--sztx-primary); color: var(--sztx-primary); }
.sztx-pagination-item.current { background: var(--sztx-primary); border-color: var(--sztx-primary); color: #fff; pointer-events: none; }
.sztx-pagination-item.disabled { opacity: .45; pointer-events: none; background: #f9fafb; }
.sztx-pagination-dots { display: inline-flex; align-items: center; padding: 0 4px; color: inherit; }

/* ---------- 图文介绍 ---------- */
.sztx-feature { display: flex; gap: 32px; align-items: center; padding: 24px; }
.sztx-feature-right { flex-direction: row-reverse; }
.sztx-feature-media { flex: 1 1 46%; min-width: 0; }
.sztx-feature-media img { width: 100%; border-radius: 10px; object-fit: cover; }
.sztx-feature-content { flex: 1 1 54%; }
.sztx-feature-title { font-size: 24px; margin-bottom: 12px; }
.sztx-feature-text { color: #4b5563; margin-bottom: 20px; }
.sztx-feature-text p:last-child { margin-bottom: 0; }

/* ---------- 灯箱(点击新窗口看大图) ---------- */
.sztx-lightbox { display: block; }
.sztx-lightbox img { transition: transform .2s; }
.sztx-lightbox:hover img { transform: scale(1.03); }

/* ---------- 参数表格 ---------- */
.sztx-spec-table { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.sztx-spec-table th, .sztx-spec-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid #f3f4f6; }
.sztx-spec-table th { background: var(--sztx-primary, #2563eb); color: #fff; font-weight: 500; }
.sztx-spec-table tbody tr:last-child td { border-bottom: 0; }
.sztx-spec-table tbody tr:nth-child(even) td { background: #f9fafb; }

/* ---------- 参数徽章 ---------- */
.sztx-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sztx-badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(37, 99, 235, .08); color: var(--sztx-primary); }

/* ---------- 版权 ---------- */
.sztx-copyright { font-size: 14px; color: #6b7280; }
.sztx-copyright-inner { line-height: 1.6; }

/* ---------- 导航菜单组件对齐 ---------- */
.sztx-nav-align-center { justify-content: center; }
.sztx-nav-align-right { justify-content: flex-end; }

/* ---------- 工艺步骤条 ---------- */
.sztx-process-steps { display: flex; gap: 16px; align-items: stretch; }
.sztx-process-step { flex: 1; text-align: center; position: relative; padding: 0 8px; }
.sztx-process-step::before { content: ""; position: absolute; top: 22px; left: -8px; right: -8px; height: 2px; background: #e5e7eb; z-index: 0; }
.sztx-process-step:first-child::before { left: 50%; }
.sztx-process-step:last-child::before { right: 50%; }
.sztx-process-num { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sztx-primary, #2563eb); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.sztx-process-body h4 { margin: 0 0 6px; font-size: 16px; }
.sztx-process-body p { margin: 0; font-size: 13px; color: #6b7280; }

/* ---------- 轮播高度档位 ---------- */
.sztx-slider-h-compact .sztx-slider-slide img { aspect-ratio: 21 / 7; }
.sztx-slider-h-standard .sztx-slider-slide img { aspect-ratio: 21 / 9; }
.sztx-slider-h-tall .sztx-slider-slide img { aspect-ratio: 16 / 9; }

@media (max-width: 767px) {
	.sztx-feature, .sztx-feature-right { flex-direction: column; }
	.sztx-process-steps { flex-direction: column; }
	.sztx-process-step::before { display: none; }
}

/* ---------- 多语言切换器(页头右上角) ---------- */
.sztx-lang-switcher { position: relative; margin-left: 12px; }
.sztx-lang-toggle {
	display: inline-flex; align-items: center; gap: 4px;
	background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px;
	color: var(--sztx-text, #1f2937); font-size: 13px; font-weight: 600;
	padding: 6px 10px; cursor: pointer; transition: border-color .2s, background .2s;
}
.sztx-lang-toggle:hover { border-color: var(--sztx-primary, #2563eb); color: var(--sztx-primary, #2563eb); }
.sztx-lang-list {
	position: absolute; top: calc(100% + 6px); right: 0; z-index: 120;
	min-width: 110px; list-style: none; margin: 0; padding: 6px;
	background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s;
}
.sztx-lang-switcher:hover .sztx-lang-list,
.sztx-lang-switcher.is-open .sztx-lang-list { opacity: 1; visibility: visible; transform: translateY(0); }
.sztx-lang-item a {
	display: block; padding: 7px 10px; border-radius: 6px;
	font-size: 13px; font-weight: 600; color: var(--sztx-text, #1f2937); text-align: left;
	transition: background .15s, color .15s;
}
.sztx-lang-item a:hover { background: rgba(37, 99, 235, .06); color: var(--sztx-primary, #2563eb); }
.sztx-lang-item.sztx-lang-current a { color: var(--sztx-primary, #2563eb); background: rgba(37, 99, 235, .06); cursor: default; }
@media (max-width: 767px) {
	.sztx-lang-switcher { margin-left: 4px; }
	.sztx-lang-toggle { font-size: 12px; padding: 5px 8px; }
}

/* ---------- 站点级布局:动态组件 ---------- */
/* 站点Logo */
.sztx-logo-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.sztx-logo-link img { max-height: 60px; width: auto; }
.sztx-logo-text { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--sztx-heading, #111827); }
.sztx-logo-slogan { display: block; font-size: 12px; font-weight: 400; color: #6b7280; margin-top: 2px; }

/* 面包屑 */
.sztx-breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; gap: 6px; font-size: 13px; color: #6b7280; }
.sztx-breadcrumb-item a { color: var(--sztx-primary, #2563eb); text-decoration: none; }
.sztx-breadcrumb-item a:hover { text-decoration: underline; }
.sztx-breadcrumb-item.current { color: #9ca3af; }
.sztx-breadcrumb-sep { color: #cbd5e1; user-select: none; }

/* 动态内容占位(编辑器镜像画布) */
.sztx-dynamic-hint { padding: 22px 14px; text-align: center; border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; color: #64748b; font-size: 13px; }

/* 分类树(内容模板左栏) */
.sztx-cat-list { list-style: none; margin: 0; padding: 0; }
.sztx-cat-list li { margin: 0; }
.sztx-cat-list a { display: block; padding: 8px 12px; border-radius: 6px; color: #374151; font-size: 14px; text-decoration: none; transition: background .15s, color .15s; }
.sztx-cat-list a:hover { background: rgba(37, 99, 235, .06); color: var(--sztx-primary, #2563eb); }
.sztx-cat-list .current > a { background: rgba(37, 99, 235, .08); color: var(--sztx-primary, #2563eb); font-weight: 600; }
.sztx-cat-count { float: right; font-size: 12px; color: #9ca3af; }
.sztx-cat-children { list-style: none; margin: 0; padding-left: 14px; }

/* 最新内容(内容模板左栏) */
.sztx-latest-list { list-style: none; margin: 0; padding: 0; }
.sztx-latest-item { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f3f4f6; }
.sztx-latest-item:last-child { border-bottom: 0; }
.sztx-latest-item a { flex: 1; min-width: 0; color: #374151; font-size: 14px; text-decoration: none; line-height: 1.5; }
.sztx-latest-item a:hover { color: var(--sztx-primary, #2563eb); }
.sztx-latest-cat, .sztx-latest-date { flex-shrink: 0; font-size: 12px; color: #9ca3af; }
.sztx-latest-cat { color: var(--sztx-primary, #2563eb); }

/* 内容模板正文区 */
.sztx-post-title { margin: 0 0 8px; font-size: 30px; line-height: 1.3; color: var(--sztx-heading, #111827); }
.sztx-post-thumb { margin: 0; }
.sztx-post-thumb img { width: 100%; height: auto; border-radius: 10px; display: block; }
.sztx-post-content { font-size: 16px; line-height: 1.9; color: var(--sztx-text, #1f2937); word-break: break-word; }
.sztx-post-content img { max-width: 100%; height: auto; border-radius: 8px; }
.sztx-post-content p { margin: 0 0 1.2em; }
.sztx-post-content h2, .sztx-post-content h3, .sztx-post-content h4 { line-height: 1.4; margin: 1.4em 0 .6em; }

/* 上一篇/下一篇导航 */
.sztx-post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #f3f4f6; }
.sztx-post-nav-item { flex: 1 1 0; min-width: 0; }
.sztx-post-nav-item a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 8px; color: var(--sztx-text, #1f2937); text-decoration: none; transition: border-color .2s, box-shadow .2s, color .2s; }
.sztx-post-nav-item a:hover { border-color: var(--sztx-primary, #2563eb); box-shadow: 0 6px 18px rgba(37, 99, 235, .08); color: var(--sztx-primary, #2563eb); }
.sztx-post-nav-next { text-align: right; }
.sztx-post-nav-next a { justify-content: flex-end; }
.sztx-post-nav-thumb { flex-shrink: 0; width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.sztx-post-nav-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sztx-post-nav-label { font-size: 12px; color: #9ca3af; }
.sztx-post-nav-title { font-size: 14px; font-weight: 500; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sztx-post-nav-empty { color: #cbd5e1; padding: 12px 14px; border: 1px dashed #e5e7eb; border-radius: 8px; }

/* 内容模板左栏侧边栏 */
.sztx-template-sidebar { background: #f9fafb; border: 1px solid #eef0f3; border-radius: 12px; padding: 20px 18px; align-self: flex-start; }
.sztx-template-sidebar .sztx-heading { margin-top: 0; }

/* ---------- 构建器页眉移动端导航 ---------- */
.sztx-header .sztx-nav-block { display: flex; }
.sztx-header .sztx-nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: var(--sztx-nav-gap, 4px); }
.sztx-header .sztx-nav-block.sztx-nav-align-right .sztx-nav-menu { margin-left: auto; }
.sztx-header .sztx-nav-block.sztx-nav-align-center .sztx-nav-menu { margin-left: auto; margin-right: auto; }
.sztx-header .sztx-nav-menu a { display: block; padding: 10px 14px; border-radius: 6px; font-size: var(--sztx-nav-size, 14px); font-weight: 500; color: var(--sztx-text, #1f2937); text-decoration: none; transition: color .15s, background .15s; }
.sztx-header .sztx-nav-menu a:hover,
.sztx-header .sztx-nav-menu .current-menu-item > a { color: var(--sztx-nav-hover, var(--sztx-primary, #2563eb)); background: var(--sztx-nav-hover-bg, rgba(37, 99, 235, .06)); }
.sztx-header .sztx-nav-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 180px; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s; z-index: 100; }
.sztx-header .sztx-nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sztx-header .sztx-nav-menu .sub-menu a { padding: 8px 12px; font-size: 13px; }

/* 导航菜单组件:链接字号跟随组件设置。默认页眉14px/其他15px(与原硬编码一致);
   组件设置了文字字号时,由 wrapper 内联 font-size 覆盖默认值,链接通过 inherit 跟随。 */
.sztx-component-nav_menu { font-size: 15px; }
.sztx-header .sztx-component-nav_menu { font-size: 14px; }
.sztx-component-nav_menu .sztx-nav-menu a,
.sztx-component-nav_menu .sztx-nav-menu .sub-menu a { font-size: var(--sztx-nav-size, inherit); }

/* 导航菜单图标:大小/位置由组件设置,图片垂直对齐文字 */
.sztx-nav-menu .sztx-menu-icon { width: var(--sztx-nav-icon-size, 16px); height: auto; max-height: 20px; vertical-align: -2px; margin-right: 6px; }
.sztx-nav-menu.sztx-nav-icons-top > li > a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.sztx-nav-menu.sztx-nav-icons-top .sztx-menu-icon { margin-right: 0; }
.sztx-header .sztx-nav-menu .sztx-menu-icon { width: var(--sztx-nav-icon-size, 16px); height: auto; max-height: 20px; vertical-align: -2px; margin-right: 6px; }

/* 构建器页眉自带的汉堡按钮(由 frontend.js 注入) */
.sztx-nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sztx-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.sztx-nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 767px) {
	/* 构建器页眉:移动端折叠导航 */
	.sztx-header .sztx-nav-block { display: none; }
	.sztx-header .sztx-nav-block.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 90; }
	.sztx-header .sztx-nav-block.is-open .sztx-nav-menu { flex-direction: column; padding: 8px 16px 16px; }
	.sztx-header .sztx-nav-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 12px; }
}

/* ===== 返回顶部组件 ===== */
.sztx-backtop { position: fixed; z-index: 998; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.sztx-backtop svg { width: 55%; height: 55%; }
.sztx-backtop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.sztx-backtop-arrow-circle { border-radius: 50%; }
.sztx-backtop-arrow-square { border-radius: 10px; }
.sztx-backtop-chevron { border-radius: 50% 50% 12px 12px; }
.sztx-backtop-txt { padding: 0 8px; }

/* ===== 悬浮客服组件 ===== */
.sztx-service { position: fixed; right: 24px; z-index: 997; display: flex; flex-direction: column; align-items: flex-end; }
.sztx-service.is-left { left: 24px; right: auto; align-items: flex-start; }
.sztx-service-toggle { display: flex; align-items: center; gap: 6px; border: 0; cursor: pointer; color: #fff; background: var(--sztx-svc-bg, #2563eb); border-radius: 24px; padding: 10px 16px; box-shadow: 0 4px 14px rgba(0,0,0,.15); font-size: 14px; font-weight: 500; }
.sztx-service-toggle svg { width: 20px; height: 20px; flex: none; }
.sztx-service-toggle:hover { background: var(--sztx-svc-hover, #1d4ed8); }
.sztx-service-list { list-style: none; margin: 10px 0 0; padding: 0; display: none; width: 100%; }
.sztx-service.is-open .sztx-service-list { display: block; }
.sztx-service-item { display: flex; align-items: center; gap: 8px; box-sizing: border-box; width: 100%; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: 13px; color: #1f2937; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: border-color .15s, color .15s; }
.sztx-service-item:hover { border-color: var(--sztx-svc-hover, #2563eb); color: var(--sztx-svc-hover, #2563eb); }
.sztx-service-item:hover svg { color: var(--sztx-svc-hover, #2563eb); }
.sztx-service-item svg { width: 18px; height: 18px; flex: none; color: var(--sztx-svc-bg, #2563eb); }
.sztx-service-item .sztx-service-tip { display: none; color: #94a3b8; font-size: 12px; }
.sztx-service-wechat:hover .sztx-service-tip { display: inline; }
.sztx-service-item .sztx-service-meta { margin-left: auto; color: #94a3b8; font-size: 12px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 首页弹窗组件 ===== */
.sztx-popup-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 9990; }
.sztx-popup-panel { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.28); z-index: 9991; max-height: 86vh; overflow: auto; }
.sztx-popup-full { inset: 0; top: 0; left: 0; transform: none; width: 100%; height: 100%; border-radius: 0; max-height: none; }
.sztx-popup-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0,0,0,.06); cursor: pointer; font-size: 18px; line-height: 1; color: #475569; z-index: 2; }
.sztx-popup-close:hover { background: rgba(0,0,0,.12); }
.sztx-popup-content { padding: 24px; }
.sztx-popup-content img { max-width: 100%; height: auto; }
.sztx-popup-panel.is-center .sztx-popup-content { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 100%; box-sizing: border-box; }
@media (max-width: 767px) { .sztx-popup-panel { width: 92% !important; } }

/* ===== 顶部广告组件 ===== */
.sztx-topbar { position: relative; font-size: 14px; }
.sztx-topbar-inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; padding-right: 44px; }
.sztx-topbar-inner a { color: inherit; text-decoration: underline; }
.sztx-topbar img { max-height: 34px; width: auto; display: block; }
.sztx-topbar-media { display: flex; align-items: center; gap: 10px; flex: none; }
.sztx-topbar-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(255,255,255,.22); color: inherit; cursor: pointer; font-size: 15px; line-height: 1; }
.sztx-topbar-close:hover { background: rgba(255,255,255,.35); }

/* ===== 友情链接组件 ===== */
.sztx-friend-links-title { font-size: 15px; font-weight: 600; color: var(--sztx-heading, #111827); margin-bottom: 10px; }
.sztx-friend-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sztx-friend-link a { color: #64748b; text-decoration: none; font-size: 13px; transition: color .15s; }
.sztx-friend-link a:hover { color: var(--sztx-primary, #2563eb); }
.sztx-friend-link-desc { display: block; color: #94a3b8; font-size: 12px; margin-top: 2px; }
.sztx-friend-links-empty { color: #94a3b8; font-size: 13px; }
