/* SEO & UX Enhancements - 省钱兄科技 */

:root {
	--sqx-primary: #ff6400;
	--sqx-primary-dark: #e85500;
	--sqx-primary-light: #fff4ed;
	--sqx-ai-gradient: linear-gradient(135deg, #ff6400 0%, #ff8c42 50%, #ffb347 100%);
	--sqx-glass: rgba(255, 255, 255, 0.08);
	--sqx-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

html {
	scroll-behavior: smooth;
}

/* Hero AI 粒子层 + 全屏蒙层 */
.ai-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	overflow: hidden;
	background: linear-gradient(
		180deg,
		rgba(8, 11, 20, 0.82) 0%,
		rgba(8, 11, 20, 0.58) 32%,
		rgba(8, 11, 20, 0.52) 52%,
		rgba(8, 11, 20, 0.68) 78%,
		rgba(8, 11, 20, 0.88) 100%
	);
}

#aiParticleCanvas {
	width: 100%;
	height: 100%;
	opacity: 0.35;
}

.ai-hero-badge {
	position: absolute;
	top: 18%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	background: rgba(8, 12, 22, 0.78);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 140, 60, 0.55);
	border-radius: 50px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
	animation: aiBadgeFloat 3s ease-in-out infinite;
}

.ai-hero-badge > span:not(.ai-dot) {
	color: rgba(255, 255, 255, 0.96);
}

.ai-hero-badge .ai-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff6400, #ffb347);
	box-shadow: 0 0 10px rgba(255, 100, 0, 0.85);
	animation: aiPulse 1.5s ease-in-out infinite;
	flex-shrink: 0;
}

.ai-hero-badge .ai-text-gradient {
	background: none;
	-webkit-text-fill-color: #ffc266;
	color: #ffc266;
	font-weight: 700;
	text-shadow: 0 0 12px rgba(255, 140, 60, 0.45);
}

@keyframes aiBadgeFloat {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(-6px); }
}

@keyframes aiPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(1.4); }
}

/* 打字机效果 */
.typing-cursor::after {
	content: '|';
	animation: blink 0.8s step-end infinite;
	color: var(--sqx-primary);
	margin-left: 2px;
}

@keyframes blink {
	50% { opacity: 0; }
}

/* 首屏蒙层：覆盖整屏背景，内容浮于蒙层之上 */
.sqx-hero-section .ai-hero-overlay,
#intro .ai-hero-overlay {
	z-index: 3;
	pointer-events: none;
}

#intro .header-container {
	z-index: 1;
}

#intro .ai-hero-badge {
	z-index: 6;
}

#intro .ai-hero-overlay #aiParticleCanvas {
	opacity: 0.28;
	animation: none;
}

#intro.top-header::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 220px;
	z-index: 4;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		transparent 0%,
		rgba(8, 11, 20, 0.35) 45%,
		rgba(8, 11, 20, 0.72) 100%
	);
}

.sqx-hero-headline {
	text-align: center;
	margin-bottom: 8px;
}

.sqx-hero-headline .title {
	font-size: 48px;
	color: #fff;
	margin: 0 0 12px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.sqx-hero-headline .under-title {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.92);
	min-height: 28px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.sqx-hero-headline .typing-cursor::after {
	color: #ffb347;
}

@media (max-width: 767px) {
	.ai-hero-badge {
		top: 12%;
		font-size: 12px;
		padding: 8px 14px;
		max-width: 92%;
		text-align: center;
		justify-content: center;
	}

	.sqx-hero-extra {
		bottom: 72px;
		padding-top: 12px;
	}
}

/* 图片懒加载占位 - 灰色 */
img[data-src],
img.lazy-pending {
	background: var(--sqx-border-light, #f3f4f6);
	background-size: auto;
	animation: none;
	min-height: 60px;
}

img.lazy-loaded {
	animation: fadeInImg 0.4s ease forwards;
	background: none;
}

@keyframes shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

@keyframes fadeInImg {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* 右侧悬浮客服 */
.sqx-float-actions {
	position: fixed;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sqx-float-item {
	position: relative;
}

.sqx-float-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
}

.sqx-float-btn-wechat {
	background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
}

.sqx-float-btn-ai {
	background: linear-gradient(135deg, #ff6400 0%, #e85500 100%);
}

.sqx-float-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.sqx-float-tip {
	position: absolute;
	right: calc(100% + 10px);
	top: 50%;
	transform: translateY(-50%);
	padding: 6px 12px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 12px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s;
	pointer-events: none;
}

.sqx-float-tip::after {
	content: '';
	position: absolute;
	right: -4px;
	top: 50%;
	margin-top: -4px;
	border: 4px solid transparent;
	border-left-color: rgba(0, 0, 0, 0.72);
}

.sqx-float-btn:hover .sqx-float-tip {
	opacity: 1;
	visibility: visible;
}

.sqx-qrcode-panel {
	position: absolute;
	right: calc(100% + 14px);
	top: 50%;
	transform: translateY(-50%) scale(0.95);
	width: 210px;
	padding: 20px 16px 16px;
	background: var(--sqx-bg-card, #fff);
	border: 1px solid var(--sqx-border, #e5e7eb);
	border-radius: 12px;
	box-shadow: var(--sqx-shadow);
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	pointer-events: none;
}

.sqx-qrcode-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) scale(1);
	pointer-events: auto;
}

.sqx-qrcode-close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 24px;
	height: 24px;
	border: none;
	background: transparent;
	color: var(--sqx-text-light, #9ca3af);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.sqx-qrcode-close:hover {
	color: var(--sqx-text, #1f2937);
}

.sqx-qrcode-title {
	font-size: 14px;
	color: var(--sqx-text, #1f2937);
	font-weight: 600;
	margin-bottom: 12px;
}

.sqx-qrcode-img {
	display: block;
	width: 160px;
	height: 160px;
	margin: 0 auto 10px;
	border-radius: 8px;
	border: 1px solid var(--sqx-border, #e5e7eb);
}

.sqx-qrcode-phone {
	font-size: 16px;
	color: var(--sqx-primary);
	font-weight: 700;
	margin-bottom: 4px;
}

.sqx-qrcode-desc {
	font-size: 12px;
	color: var(--sqx-text-muted, #6b7280);
}

@media (max-width: 767px) {
	.sqx-float-actions {
		right: 12px;
		top: auto;
		bottom: 80px;
		transform: none;
		gap: 10px;
	}
	.sqx-float-btn {
		width: 46px;
		height: 46px;
		font-size: 20px;
	}
	.sqx-qrcode-panel {
		right: calc(100% + 10px);
		width: 190px;
		padding: 16px 12px 12px;
	}
	.sqx-qrcode-img {
		width: 140px;
		height: 140px;
	}
	.sqx-float-tip {
		display: none;
	}
	.header .navbar .navbar-nav > li > .dropdown-toggle:hover{
		color: #666;
	}
}

/* 产品滚动区：保持 main.css 原有 hover 与尺寸，不额外覆盖 */
.latest-works-section .scroll-pane .scroll-content-item,
.latest-works-section .scroll-pane2 .scroll-content-item2,
.latest-works-section .scroll-pane3 .scroll-content-item3,
.latest-works-section .scroll-pane4 .scroll-content-item4,
.latest-works-section .scroll-pane5 .scroll-content-item5 {
	transition: none;
}

.latest-works-section .scroll-pane .scroll-content-item:hover,
.latest-works-section .scroll-pane2 .scroll-content-item2:hover,
.latest-works-section .scroll-pane3 .scroll-content-item3:hover,
.latest-works-section .scroll-pane4 .scroll-content-item4:hover,
.latest-works-section .scroll-pane5 .scroll-content-item5:hover {
	transform: none;
}

.latest-works-section .scroll-pane .scroll-content-item img,
.latest-works-section .scroll-pane2 .scroll-content-item2 img,
.latest-works-section .scroll-pane3 .scroll-content-item3 img,
.latest-works-section .scroll-pane4 .scroll-content-item4 img,
.latest-works-section .scroll-pane5 .scroll-content-item5 img {
	transition: all 0.3s ease-out;
}

.latest-works-section .scroll-pane .scroll-content-item:hover img,
.latest-works-section .scroll-pane2 .scroll-content-item2:hover img,
.latest-works-section .scroll-pane3 .scroll-content-item3:hover img,
.latest-works-section .scroll-pane4 .scroll-content-item4:hover img,
.latest-works-section .scroll-pane5 .scroll-content-item5:hover img {
	transform: none;
	filter: brightness(0.55);
	opacity: 1;
}

/* Feature 卡片 AI 光效 */
.feature-item {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--sqx-shadow);
}

.feature-item.active .feature-icon,
.feature-item:hover .feature-icon {
	box-shadow: 0 0 20px rgba(255, 100, 0, 0.35);
}

/* AI 赋能区块 */
.ai-capabilities-section {
	padding: var(--sqx-section-pad) 0;
	background: linear-gradient(180deg, var(--sqx-bg) 0%, var(--sqx-bg-secondary) 100%);
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--sqx-border-light);
}

.ai-capabilities-section::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(255, 100, 0, 0.06) 0%, transparent 70%);
	animation: aiOrb 8s ease-in-out infinite;
}

@keyframes aiOrb {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(-30px, 20px); }
}

.ai-cap-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: center;
	margin-top: 40px;
}

.ai-cap-card {
	flex: 1 1 260px;
	max-width: 320px;
	padding: 32px 24px;
	background: var(--sqx-bg-card, #fff);
	border-radius: 16px;
	border: 1px solid var(--sqx-border, #e5e7eb);
	text-align: center;
	transition: all 0.35s ease;
	position: relative;
	overflow: hidden;
	box-shadow: var(--sqx-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.06));
}

.ai-cap-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--sqx-ai-gradient);
	transform: scaleX(0);
	transition: transform 0.35s ease;
}

.ai-cap-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--sqx-shadow);
	border-color: var(--sqx-primary-light, #fff4ed);
}

.ai-cap-card:hover::before {
	transform: scaleX(1);
}

.ai-cap-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 14px;
	background: var(--sqx-ai-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 24px;
	animation: aiIconGlow 3s ease-in-out infinite;
}

@keyframes aiIconGlow {
	0%, 100% { box-shadow: 0 4px 15px rgba(255, 100, 0, 0.25); }
	50% { box-shadow: 0 4px 25px rgba(255, 100, 0, 0.4); }
}

.ai-cap-card h4 {
	font-size: 17px;
	font-weight: 700;
	color: var(--sqx-text-heading, #0f172a);
	margin-bottom: 10px;
}

.ai-cap-card p {
	font-size: 14px;
	color: var(--sqx-text-secondary, #475569);
	line-height: 1.8;
	margin: 0;
}

/* GEO FAQ 区块 - 浅色 */
.geo-faq-section {
	padding: var(--sqx-section-pad) 0;
	background: var(--sqx-bg-secondary);
	color: var(--sqx-text-secondary);
	border-top: 1px solid var(--sqx-border-light);
}

.geo-faq-section .section-title {
	color: var(--sqx-text-heading);
	font-weight: 800;
}

.geo-faq-section .section-subtitle {
	color: var(--sqx-text-muted, #6b7280);
}

.geo-faq-list {
	max-width: 860px;
	margin: 40px auto 0;
}

.geo-faq-item {
	border-bottom: 1px solid var(--sqx-border, #e5e7eb);
	padding: 0;
}

.geo-faq-item summary {
	padding: 20px 0;
	cursor: pointer;
	font-size: 15px;
	color: var(--sqx-text, #1f2937);
	font-weight: 600;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: color 0.2s;
}

.geo-faq-item summary::-webkit-details-marker {
	display: none;
}

.geo-faq-item summary::after {
	content: '+';
	font-size: 20px;
	color: var(--sqx-primary);
	transition: transform 0.3s;
}

.geo-faq-item[open] summary::after {
	transform: rotate(45deg);
}

.geo-faq-item summary:hover {
	color: var(--sqx-primary);
}

.geo-faq-answer {
	padding: 0 0 20px;
	font-size: 14px;
	line-height: 2;
	color: var(--sqx-text-secondary, #4b5563);
}

/* AI 客服弹窗 */
.ai-consult-modal { position: fixed; inset: 0; z-index: 10000; }
/* 导航增强 */
.header .navbar .navbar-nav > li > a {
	transition: color 0.3s, border-color 0.3s, transform 0.2s;
}

.header .navbar .navbar-nav > li > a:hover {
	transform: translateY(-1px);
}

/* 成就数字动画 */
.achieve-item .count {
	transition: transform 0.3s ease;
}

.achieve-item:hover .count {
	transform: scale(1.08);
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	html { scroll-behavior: auto; }
}

@media (max-width: 767px) {
	.ai-hero-badge {
		top: 8%;
		font-size: 11px;
		padding: 6px 14px;
	}
	.ai-cap-card {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

/* 跳过导航 */
.sqx-skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100000;
	padding: 10px 18px;
	background: var(--sqx-primary);
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
	font-size: 14px;
	transition: top 0.2s;
}

.sqx-skip-link:focus {
	top: 16px;
	color: #fff;
}

/* 返回顶部 */
.sqx-back-to-top {
	position: fixed;
	right: 20px;
	bottom: 24px;
	z-index: 9998;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: var(--sqx-primary);
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: all 0.3s ease;
	box-shadow: 0 4px 16px rgba(255, 100, 0, 0.35);
}

.sqx-back-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.sqx-back-to-top:hover {
	background: var(--sqx-primary-dark);
	transform: translateY(-2px);
}

/* 行业关键词 GEO 区块 */
.geo-keywords-section {
	padding: 60px 0;
	background: var(--sqx-bg, #fff);
}

.geo-keywords-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 30px;
}

.geo-keyword-tag {
	display: inline-block;
	padding: 8px 18px;
	background: var(--sqx-bg-card, #fff);
	border: 1px solid var(--sqx-border, #e5e7eb);
	border-radius: 50px;
	font-size: 13px;
	color: var(--sqx-text-secondary, #4b5563);
	transition: all 0.25s ease;
	text-decoration: none;
}

.geo-keyword-tag:hover {
	background: var(--sqx-primary);
	border-color: var(--sqx-primary);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 100, 0, 0.25);
	text-decoration: none;
}

.geo-keywords-desc {
	max-width: 780px;
	margin: 20px auto 0;
	text-align: center;
	font-size: 14px;
	color: var(--sqx-text-muted, #6b7280);
	line-height: 2;
}
