/* ==========================================================================
   沙盘可视化建站 - 前端全站样式
   轻量化:无框架依赖,全部样式基于 --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: 4px; }
.sztx-nav-menu li { position: relative; }
.sztx-nav-menu a {
	display: block; padding: 10px 14px; color: var(--sztx-text, #1f2937);
	font-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-primary, #2563eb); background: 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-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: 33.3333%; max-width: 33.3333%; }
.sztx-col-2_3 { flex-basis: 66.6667%; max-width: 66.6667%; }
.sztx-col-1_4 { flex-basis: 25%; max-width: 25%; }
.sztx-col-3_4 { flex-basis: 75%; max-width: 75%; }

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

/* ---------- 组件通用 ---------- */
.sztx-component { position: relative; }

/* ---------- 标题 / 段落 ---------- */
.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-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); }

/* ---------- 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; }

/* ---------- 轮播 ---------- */
.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; }

/* ---------- 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-fallback-content { padding: 48px 0; }
.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; }
}

/* ---------- 平板 ---------- */
@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%; }
	.sztx-grid-3, .sztx-grid-4 { 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-grid-2, .sztx-grid-3, .sztx-grid-4 { 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-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; }
}
