/* BowiAI landing: bosofts header/footer + page overrides */

/* Wide screens: hide mobile nav controls */
@media (min-width: 1200px) {
	#hd > .bosofts-nav-cb,
	#hd > label.nav-menu-btn {
		display: none !important;
	}
}

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

/* Fixed site header — align with bosofts.com public.css */
#hdw {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99999;
	width: 100%;
	height: 85px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#hd {
	z-index: 2;
	position: relative;
	max-width: 1200px;
	min-width: 750px;
	margin: 0 auto;
	height: 85px;
}

.blank85 {
	display: block;
	width: 100%;
	height: 85px;
}

/* Desktop: same logo layout as https://www.bosofts.com/ */
@media (min-width: 1200px) {
	#hd .logo {
		position: absolute !important;
		top: 8px;
		left: 0;
		overflow: visible !important;
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
	}

	#hd .logo a.link {
		display: block;
		line-height: 0;
	}

	#hd .logo img {
		width: auto !important;
		height: auto !important;
		max-width: none !important;
		max-height: 70px;
		display: block;
		vertical-align: middle;
	}

	#hd .nav {
		position: absolute !important;
		top: 0 !important;
		right: 0 !important;
		float: none !important;
	}
}

/* Match public.css: medium screens crop logo width */
@media (min-width: 980px) and (max-width: 1199.98px) {
	#hd .logo {
		position: absolute !important;
		top: 8px;
		left: 0;
		overflow: hidden;
		width: 210px;
	}

	#hd .logo img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 70px;
	}

	#hd .nav {
		position: absolute !important;
		top: 0 !important;
		right: 0 !important;
	}
}

/* Desktop nav dropdowns (no jQuery) */
#hd .nav li:hover .cp_list2 {
	width: 130px;
	height: 207px;
	opacity: 1;
}
#hd .nav li:hover .cp_list1 {
	width: 454px;
	min-height: 370px;
	opacity: 1;
}
#hd .nav li:hover .nav_list {
	min-height: 190px;
}
#hd .nav li:hover .navjj {
	display: block;
}

/* Mobile / narrow screens */
@media (max-width: 1199.98px) {
	body {
		min-width: 0 !important;
		overflow-x: hidden;
	}

	.blank85 {
		height: clamp(56px, 14vw, 72px);
	}

	#hdw {
		height: auto;
		min-height: 56px;
	}

	#hd {
		width: 100%;
		max-width: 100% !important;
		min-width: 0 !important;
		margin: 0 auto;
		padding: 8px 12px 10px;
		box-sizing: border-box;
		min-height: 0;
		position: relative;
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"logo toggle"
			"nav nav";
		align-items: center;
		column-gap: 10px;
		row-gap: 0;
	}

	#hd > .bosofts-nav-cb {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		margin: -1px !important;
		padding: 0 !important;
		overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important;
		white-space: nowrap !important;
		border: 0 !important;
		appearance: none !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}

	#hd > label.nav-menu-btn {
		grid-area: toggle;
		justify-self: end;
		align-self: center;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		box-sizing: border-box;
		border: 1px solid #ddd;
		border-radius: 8px;
		background: #fff;
		cursor: pointer;
		touch-action: manipulation;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	}

	#hd > label.nav-menu-btn::before {
		content: "";
		width: 20px;
		height: 2px;
		background: #333;
		box-shadow: 0 6px 0 #333, 0 -6px 0 #333;
		border-radius: 1px;
	}

	#hd .logo {
		grid-area: logo;
		position: static !important;
		display: block;
		text-align: left !important;
		margin: 0 !important;
		justify-self: start;
		overflow: hidden;
		width: min(210px, 58vw);
	}

	#hd .logo img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 56px;
		vertical-align: middle;
	}

	#hd .nav {
		grid-area: nav;
		position: static !important;
		float: none !important;
		right: auto !important;
		top: auto !important;
		display: none;
		flex-direction: column;
		flex-wrap: nowrap;
		width: 100%;
		max-width: 100%;
		margin: 8px 0 0;
		padding: 8px 0 4px;
		border-top: 1px solid #eee;
		overflow: visible;
		gap: 0;
		box-sizing: border-box;
	}

	#bosofts-nav-cb:checked ~ ul.nav {
		display: flex !important;
	}

	#hd .nav li {
		float: none !important;
		width: 100%;
		border-top: 0;
		border-bottom: 1px solid #f0f0f0;
	}

	#hd .nav li .a_top {
		padding: 0;
	}

	#hd .nav li a {
		line-height: 48px;
		height: auto;
		min-height: 48px;
		font-size: 15px;
		padding: 0 4px;
		white-space: normal;
		display: block;
		text-align: left;
	}

	#hd .nav li .cp_list {
		display: none !important;
	}
}

/* Main content */
.bowi-main {
	display: block;
	min-height: 50vh;
	overflow-x: hidden;
}

.bowi-main .pixel-blast-container {
	display: none;
}

/* Hero — Agent 应用搭建系统 */
.bowi-hero-shell {
	width: 100%;
}

.bowi-hero {
	position: relative;
	/* extra line below fixed header */
	padding: calc(clamp(1.5rem, 3.5vw, 2.25rem) + 3lh) clamp(1.25rem, 4vw, 2rem) 0;
	display: block;
}

.bowi-hero__bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.12), transparent 55%),
		radial-gradient(ellipse 50% 40% at 100% 50%, rgba(22, 93, 255, 0.06), transparent),
		linear-gradient(180deg, #fafbff 0%, #ffffff 42%, #f8f9fc 100%);
	pointer-events: none;
}

.bowi-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 clamp(0.5rem, 2vw, 1rem);
	text-align: center;
}

.bowi-hero__eyebrow {
	/* extra line: tagline → title */
	margin: 0 0 calc(0.75rem + 1lh);
	font-size: 0.8125rem;
	color: #5a6578;
}

.bowi-hero__tag {
	display: inline-block;
	margin-right: 0.35rem;
	padding: 0.2rem 0.55rem;
	border-radius: 6px;
	background: linear-gradient(135deg, #4f46e5, #6366f1);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	vertical-align: middle;
}

.bowi-hero__title {
	/* extra line: title → subtitle */
	margin: 0 0 calc(0.65rem + 1lh);
	font-size: clamp(1.625rem, 3.8vw, 2.35rem);
	font-weight: 800;
	line-height: 1.22;
	color: #1a1a2e;
	letter-spacing: -0.02em;
}

.bowi-hero__accent {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.bowi-hero__lead {
	/* extra line: subtitle → goal cards */
	margin: 0 auto calc(1.15rem + 1lh);
	max-width: 38em;
	font-size: clamp(0.9375rem, 1.9vw, 1.0625rem);
	line-height: 1.65;
	color: #5a6578;
}

.bowi-hero__lead strong {
	color: #1a1a2e;
	font-weight: 600;
}

.bowi-hero__goals {
	list-style: none;
	margin: 0 auto 1.15rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.6rem;
	max-width: 100%;
	text-align: left;
}

.bowi-hero__goal {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.75rem 0.7rem;
	border-radius: 12px;
	border: 1px solid rgba(79, 70, 229, 0.12);
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 1px 3px rgba(26, 26, 46, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bowi-hero__goal:hover {
	border-color: rgba(79, 70, 229, 0.35);
	box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
	transform: translateY(-2px);
}

.bowi-hero__goal-num {
	font-size: 0.7rem;
	font-weight: 700;
	color: #6366f1;
	letter-spacing: 0.08em;
}

.bowi-hero__goal-body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.bowi-hero__goal-body strong {
	font-size: 0.9375rem;
	color: #1a1a2e;
	font-weight: 700;
}

.bowi-hero__goal-body span {
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #64748b;
}

.bowi-hero__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.5rem;
}

.bowi-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 1.75rem;
	border-radius: 9999px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.bowi-hero__btn--primary {
	background: linear-gradient(135deg, #4f46e5, #6366f1);
	color: #fff;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.bowi-hero__btn--primary:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.bowi-hero__btn--secondary {
	background: #1a1a2e;
	color: #fff;
}

.bowi-hero__btn--secondary:hover {
	background: #2d2d44;
	transform: translateY(-1px);
}

.bowi-hero__note {
	margin: 0;
	font-size: 0.8125rem;
	color: #94a3b8;
}

.bowi-hero__note a {
	color: #6366f1;
	text-decoration: none;
}

.bowi-hero__note a:hover {
	text-decoration: underline;
}

.bowi-hero__strip {
	position: relative;
	z-index: 1;
	/* extra line: CTA → bottom strip */
	margin-top: calc(1.25rem + 3lh);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: #e8ecf4;
	border-top: 1px solid #e8ecf4;
}

.bowi-hero__strip-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	min-height: 56px;
	padding: 0.5rem 0.4rem;
	background: #fff;
	text-align: center;
}

.bowi-hero__strip-item--brand {
	background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
}

.bowi-hero__strip-label {
	font-size: 0.7rem;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.bowi-hero__strip-val {
	font-size: 0.9rem;
	font-weight: 700;
	color: #1a1a2e;
}

.bowi-hero__strip-item--brand .bowi-hero__strip-val {
	color: #4f46e5;
}

@media (max-width: 1024px) {
	.bowi-hero__goals {
		grid-template-columns: repeat(2, 1fr);
	}
	.bowi-hero__goal:nth-child(5) {
		grid-column: 1 / -1;
		max-width: 50%;
		justify-self: center;
		width: 100%;
	}
}

/* Space before Vibe Coding section (after testimonials) */
.bowi-main .bowi-vibe-intro-row {
	margin-top: 2lh;
}

@media (max-width: 640px) {
	.bowi-hero {
		padding-bottom: 0;
	}

	.bowi-hero__strip {
		margin-top: calc(1rem + 3lh);
	}
	.bowi-hero__goals {
		grid-template-columns: 1fr;
	}
	.bowi-hero__goal:nth-child(5) {
		grid-column: auto;
		max-width: none;
	}
	.bowi-hero__strip {
		grid-template-columns: repeat(2, 1fr);
	}
	.bowi-hero__strip-item--brand {
		grid-column: 1 / -1;
	}
}

/* FAQ — native details/summary accordion (no JS, CSP-safe) */
.bowi-faq-shell {
	background: #fff;
	padding: 1.5rem 1.25rem;
}

.bowi-faq {
	display: grid;
	gap: 1.75rem 2.5rem;
	align-items: start;
}

@media (min-width: 768px) {
	.bowi-faq {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
		gap: 2rem 3rem;
		padding: 0.5rem 0;
	}

	.bowi-faq-shell {
		padding: 2.5rem 3rem 2.75rem;
	}
}

.bowi-faq__title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	color: #0f172a;
}

@media (min-width: 640px) {
	.bowi-faq__title {
		font-size: 1.875rem;
	}
}

.bowi-faq__subtitle {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #64748b;
}

@media (min-width: 640px) {
	.bowi-faq__subtitle {
		font-size: 1rem;
	}
}

.bowi-faq__list {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	background: #fafbfc;
}

.bowi-faq-item {
	border-bottom: 1px solid #e2e8f0;
	background: #fff;
}

.bowi-faq-item:last-child {
	border-bottom: none;
}

.bowi-faq-item summary {
	list-style: none;
	cursor: pointer;
}

.bowi-faq-item summary::-webkit-details-marker {
	display: none;
}

.bowi-faq__question {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.125rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
	color: #0f172a;
	transition: background-color 0.2s ease;
}

@media (min-width: 640px) {
	.bowi-faq__question {
		padding: 1.125rem 1.25rem;
		font-size: 1rem;
	}
}

.bowi-faq-item summary:hover .bowi-faq__question,
.bowi-faq-item[open] .bowi-faq__question {
	background: #f8fafc;
}

.bowi-faq-item[open] .bowi-faq__question {
	color: #1d4ed8;
}

.bowi-faq-chevron {
	flex-shrink: 0;
	margin-top: 0.15rem;
	color: #94a3b8;
	transition: transform 0.25s ease, color 0.2s ease;
}

.bowi-faq-item[open] .bowi-faq-chevron {
	transform: rotate(180deg);
	color: #1d4ed8;
}

.bowi-faq__answer {
	margin: 0;
	padding: 0 1.125rem 1rem;
	font-size: 0.8125rem;
	line-height: 1.65;
	color: #64748b;
}

@media (min-width: 640px) {
	.bowi-faq__answer {
		padding: 0 1.25rem 1.125rem;
		font-size: 0.875rem;
	}
}

.bowi-faq-item[open] .bowi-faq__answer {
	padding-bottom: 1.125rem;
}

@media (min-width: 640px) {
	.bowi-faq-item[open] .bowi-faq__answer {
		padding-bottom: 1.25rem;
	}
}

/* Footer — match https://www.bosofts.com/erp/ ; reset tpl/public.css conflicts */
.bosofts-footer {
	display: block;
	box-sizing: border-box;
	padding: 56px 24px 28px;
	border-top: 1px solid #e2e8f0;
	background: #1a1a2e;
	color: #e0e0e0;
	width: 100%;
	max-width: none;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
}

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

.bosofts-footer #ftbox {
	background: transparent !important;
	width: 100% !important;
	border-bottom: none !important;
	margin-bottom: 30px;
}

.bosofts-footer #ftbox2 {
	background: transparent !important;
	width: 100% !important;
	border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
	padding-top: 20px;
	margin-top: 30px;
}

.bosofts-footer .ftw {
	max-width: 1400px;
	margin: 0 auto;
	position: static;
	font-size: 14px;
}

.bosofts-footer #ft {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 60px;
	align-items: start;
	max-width: none !important;
	margin: 0 auto !important;
	padding: 0 !important;
	float: none !important;
}

.bosofts-footer #ft::after {
	content: none;
	display: none;
}

.bosofts-footer .f_1 {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

.bosofts-footer #ft dl.dl1,
.bosofts-footer #ft dl.dl2,
.bosofts-footer #ft dl.dl3 {
	width: auto !important;
	float: none !important;
}

.bosofts-footer dl,
.bosofts-footer dt,
.bosofts-footer dd {
	margin: 0;
}
.bosofts-footer .dl1,
.bosofts-footer .dl2,
.bosofts-footer .dl3 {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.bosofts-footer .end_1,
.bosofts-footer .end_2 {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 15px;
	float: none !important;
	margin-top: 0 !important;
	background: none !important;
}

.bosofts-footer .end_2 {
	align-items: flex-start;
	text-align: left;
}

.bosofts-footer .end_1 p,
.bosofts-footer .end_2 p {
	margin: 0;
}
.bosofts-footer .wechat-qrcode {
	margin-top: 5px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.bosofts-footer .wechat-qrcode img {
	width: 160px;
	height: 160px;
	max-width: 100%;
	display: block;
	object-fit: contain;
	border-radius: 12px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	padding: 10px;
	padding-left: 10px !important;
	background: rgba(255, 255, 255, 0.08);
	transition: all 0.3s ease;
	box-sizing: border-box;
}
.bosofts-footer .wechat-qrcode img:hover {
	border-color: #7eb8ff;
	transform: scale(1.05);
}
.bosofts-footer ._link {
	font-size: 18px;
	font-weight: 600;
	color: #7eb8ff !important;
	margin-bottom: 20px;
	letter-spacing: 1px;
	position: relative;
	display: inline-block;
	padding: 0 !important;
	padding-top: 0 !important;
	padding-left: 0 !important;
	line-height: 1.4 !important;
	background: none !important;
}
.bosofts-footer ._link::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 40px;
	height: 2px;
	background: #7eb8ff;
}
.bosofts-footer .lianxi_1 {
	font-size: 28px;
	font-weight: 700;
	color: #fff !important;
	margin: 15px 0;
	letter-spacing: 2px;
	padding-top: 0 !important;
	text-indent: 0 !important;
	height: auto !important;
	line-height: 1.3 !important;
}

.bosofts-footer .shouqian {
	color: #b0b0b0 !important;
	font-size: 14px;
	line-height: 1.8 !important;
	margin: 8px 0;
}

.bosofts-footer .shouqian span {
	display: block;
	color: #b0b0b0 !important;
}

.bosofts-footer ._link_1 {
	margin-top: 0;
	padding-top: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
	line-height: 1.8 !important;
}

.bosofts-footer .footqq,
.bosofts-footer .footemail,
.bosofts-footer .footadd {
	background: none !important;
	padding-left: 0 !important;
}
.bosofts-footer .dl3 {
	align-items: flex-end;
	text-align: right;
}
.bosofts-footer .dl3 ._link_1 {
	align-items: flex-end;
}
.bosofts-footer .footqq a {
	color: #b0b0b0;
	text-decoration: none;
	transition: color 0.3s ease;
}
.bosofts-footer .footqq a:hover {
	color: #7eb8ff;
}
.bosofts-footer .footemail span,
.bosofts-footer .footadd span {
	color: #b0b0b0;
}
.bosofts-footer .clear {
	clear: both;
}
.bosofts-footer #ftbox2 {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 20px;
	margin-top: 30px;
}
.bosofts-footer #ftbox2 .box {
	text-align: center;
	max-width: none !important;
	margin: 0 auto !important;
	height: auto !important;
	line-height: 1.8 !important;
	font-size: 14px !important;
	color: #a0a0a0 !important;
}

.bosofts-footer #ftbox2 .box p {
	color: #a0a0a0;
	font-size: 14px;
	line-height: 1.8;
	margin: 0;
}
.bosofts-footer #ftbox2 .box a {
	color: #a1a0a0;
	text-decoration: none;
	transition: color 0.3s ease;
}
.bosofts-footer #ftbox2 .box a:hover {
	color: #7eb8ff;
}
.bosofts-footer #ftbox2 .box a[href*="bosofts.com"] {
	color: #c0c0c0;
}
.bosofts-footer #ftbox2 .box a[href*="bosofts.com"]:hover {
	color: #7eb8ff;
	text-decoration: underline;
}
.bosofts-footer .footer-slogan {
	margin-top: 12px;
	font-size: 13px;
	color: #888;
}
@media (max-width: 968px) {
	.bosofts-footer #ft {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.bosofts-footer .end_2,
	.bosofts-footer .dl3,
	.bosofts-footer .dl3 ._link_1 {
		align-items: center;
		text-align: center;
	}
	.bosofts-footer .lianxi_1 {
		font-size: 24px;
	}
	.bosofts-footer .wechat-qrcode img {
		width: 140px;
		height: 140px;
	}
}
