/* 模板级样式迁移（由各模板内联 <style> 迁移而来） */

/* header-help-center.php */
.doc-page .doc-nav {
	top: 0;
}
body.admin-bar .doc-nav {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar .doc-nav {
		top: 46px;
	}
}
@media (min-width: 1024px) {
	#mobile-menu-doc,
	#mobile-menu-toggle-doc,
	.mobile-accordion-toggle {
		display: none !important;
	}
}
#mobile-menu-doc,
#mobile-menu-doc * {
	background-color: #ffffff !important;
}
.mobile-accordion-menu .accordion-item {
	position: relative;
}
.mobile-accordion-menu .accordion-item a {
	text-decoration: none;
}
.mobile-accordion-menu .accordion-item .accordion-toggle {
	cursor: pointer;
	user-select: none;
}
.mobile-accordion-menu .accordion-item .accordion-icon {
	transition: transform 0.3s ease;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
.mobile-accordion-menu .accordion-item.active .accordion-icon {
	transform: rotate(180deg);
}
.mobile-accordion-menu .accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}
.mobile-accordion-menu .accordion-item.active .accordion-content {
	max-height: 500px;
}
#mobile-menu-doc .mobile-accordion-menu .accordion-content a {
	display: block;
	padding: 0.75rem 1rem 0.75rem 2rem;
	color: #64748b;
	font-size: 0.875rem;
	border-left: 2px solid transparent;
}
#mobile-menu-doc .mobile-accordion-menu .accordion-content a:hover {
	color: #003399;
	border-left-color: #003399;
	background-color: #f8fafc;
}
#mobile-menu-doc.-translate-x-full {
	transform: translateX(-100%) !important;
}

/* template-about.php */
.page-template-template-about .chip-grid-light {
	background-image: radial-gradient(rgba(0, 51, 153, 0.05) 1px, transparent 1px);
	background-size: 24px 24px;
}
.page-template-template-about .chip-grid {
	background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
	background-size: 32px 32px;
}
.page-template-template-about .hover-lift {
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-template-template-about .hover-lift:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px -10px rgba(0, 51, 153, 0.12);
}
.page-template-template-about .glass-effect {
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
.page-template-template-about details > summary {
	list-style: none;
}
.page-template-template-about details > summary::-webkit-details-marker {
	display: none;
}
.page-template-template-about details[open] summary ~ * {
	animation: about-slide-down 0.3s ease-in-out;
}
@keyframes about-slide-down {
	0% {
		opacity: 0;
		transform: translateY(-10px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}
.page-template-template-about details[open] summary .arrow-icon {
	transform: rotate(180deg);
}
.page-template-template-about .overflow-wrap-anywhere {
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* template-solutions.php */
.page-template-template-solutions .chip-grid-light {
	background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
	background-size: 24px 24px;
}
.page-template-template-solutions .hover-lift {
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-template-template-solutions .hover-lift:hover {
	transform: translateY(-10px);
}
.page-template-template-solutions .solution-card-bg {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	width: 100%;
	height: 100%;
}
.page-template-template-solutions .glass-card {
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
@keyframes solution-scan {
	0% {
		transform: translateY(-100%);
		opacity: 0;
	}
	50% {
		opacity: 0.5;
	}
	100% {
		transform: translateY(100%);
		opacity: 0;
	}
}
.page-template-template-solutions .scan-line {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.2), transparent);
	height: 50%;
	width: 100%;
	opacity: 0;
	pointer-events: none;
	z-index: 5;
}
.page-template-template-solutions .group:hover .scan-line {
	animation: solution-scan 2s linear infinite;
}
.page-template-template-solutions .tech-specs {
	transform: translateY(20px);
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 10;
}
.page-template-template-solutions .group:hover .tech-specs {
	transform: translateY(0);
	opacity: 1;
}
.page-template-template-solutions .group:hover .main-desc {
	opacity: 0;
	transform: translateY(-10px);
}
.page-template-template-solutions .main-desc {
	transition: all 0.4s ease;
}
.page-template-template-solutions .bento-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 1.5rem;
}
@media (min-width: 768px) {
	.page-template-template-solutions .bento-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.page-template-template-solutions .bento-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.page-template-template-solutions .card-industrial {
		grid-column: span 2;
	}
	.page-template-template-solutions .card-automotive {
		grid-row: span 2;
		height: 100% !important;
	}
}

/* template-doc-list.php */
.page-template-template-doc-list .chip-grid-light {
	background-image: radial-gradient(rgba(0, 51, 153, 0.05) 1px, transparent 1px);
	background-size: 24px 24px;
}
.page-template-template-doc-list .filter-item.active {
	background-color: #f8fafc;
	color: #003399;
	font-weight: 700;
	border-right: 3px solid #003399;
}
.page-template-template-doc-list .hover-lift {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-template-template-doc-list .hover-lift:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

/* template-developer-community.php */
.page-template-template-developer-community .partner-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

/* archive-agmcn_product.php + taxonomy-product_category.php */
.product-pagination .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
}
.product-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.5rem;
	border-radius: 0.75rem;
	background-color: #fff;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-size: 0.875rem;
	font-weight: 600;
	transition: all 0.2s;
}
.product-pagination .page-numbers:hover {
	border-color: #003399;
	color: #003399;
	background-color: #f8fafc;
}
.product-pagination .page-numbers.current {
	background-color: #003399;
	border-color: #003399;
	color: #fff;
}
.product-pagination .page-numbers.dots {
	border: none;
	background: transparent;
	cursor: default;
}
.product-pagination .prev,
.product-pagination .next {
	padding: 0;
	width: 2.5rem;
}
.product-pagination .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* template-developer-support.php */
.page-template-template-developer-support details > summary {
	list-style: none;
}
.page-template-template-developer-support details > summary::-webkit-details-marker {
	display: none;
}
.page-template-template-developer-support details[open] summary ~ * {
	animation: faq-slide-down 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes faq-slide-down {
	0% {
		opacity: 0;
		transform: translateY(-10px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}
.page-template-template-developer-support details[open] summary .arrow-icon {
	transform: rotate(180deg);
}

/* template-parts/single-help-center.php */
.single-agmcn_help_center .article-content pre {
	background-color: #0f172a !important;
	color: #cbd5e1 !important;
	padding: 1.5rem !important;
	border-radius: 0.75rem !important;
	overflow-x: auto !important;
	margin: 1.5rem 0 !important;
}
.single-agmcn_help_center .article-content pre code {
	background-color: transparent !important;
	color: inherit !important;
	padding: 0 !important;
	border-radius: 0 !important;
	font-size: 0.875rem !important;
	line-height: 1.7142857 !important;
	border: none !important;
}
.single-agmcn_help_center .article-content :not(pre) > code {
	background-color: #eff6ff !important;
	color: #2563eb !important;
	padding: 0.2rem 0.4rem !important;
	border-radius: 0.25rem !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
}
.single-agmcn_help_center .article-content code::before,
.single-agmcn_help_center .article-content code::after {
	content: "" !important;
}
.single-agmcn_help_center .article-content h2[id] {
	scroll-margin-top: 5rem !important;
}
.single-agmcn_help_center .article-content img {
	border: none !important;
	box-shadow: none !important;
	background-color: transparent !important;
}

/* front-page.php — 首页英雄区：留白加大，避免图文与上下区块贴太紧（不显拥挤） */
.agmcn-home-hero {
	min-height: 480px;
	height: auto;
	padding-top: clamp(1.5rem, 4vw, 2.25rem);
	padding-bottom: clamp(2rem, 5vw, 3.25rem);
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
	box-sizing: border-box;
}
@media (min-width: 640px) {
	.agmcn-home-hero {
		min-height: 520px;
		padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
		padding-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
	}
}
@media (min-width: 1024px) {
	.agmcn-home-hero {
		min-height: 560px;
		padding-top: 2rem;
		padding-bottom: 3rem;
		margin-bottom: 3.5rem;
	}
}

/* front-page.php — 首页浅色 Hero（天蓝渐变 + 轻网格 + 左侧可读衬底） */
.agmcn-home-hero-bg {
	background: linear-gradient(
		90deg,
		#bfdbfe 0%,
		#f8fafc 42%,
		#e0f2fe 100%
	);
}
.agmcn-home-hero-grid {
	background-image: radial-gradient(rgba(0, 51, 153, 0.07) 1px, transparent 1px);
	background-size: 28px 28px;
}
.agmcn-home-hero-text-veil {
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.72) 0%,
		rgba(255, 255, 255, 0.30) 55%,
		rgba(255, 255, 255, 0) 100%
	);
}
@media (max-width: 1023px) {
	.agmcn-home-hero-text-veil {
		background: linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.82) 0%,
			rgba(255, 255, 255, 0.40) 45%,
			rgba(255, 255, 255, 0) 72%
		);
	}
}

/* 首页 Hero 芯片图：编译版 Tailwind 未含 object-contain 等任意类，在此补齐 */
/* 铺满并裁切（cover），让右侧区域“整块都是图”的观感 */
.agmcn-home-hero-visual {
	top: 0;
	bottom: 0;
}

.agmcn-home-hero-chip-img {
	max-height: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	opacity: 1;
}

/* 首页 Hero：Banner 图片轮播（cover 铺满 + opacity 淡入淡出） */
.agmcn-home-hero-carousel {
	position: absolute;
	inset: 0;
	z-index: 10;
}

.agmcn-home-hero-carousel-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1);
}

.agmcn-home-hero-carousel-slide.is-active {
	opacity: 1;
}

.agmcn-home-hero-dots {
	position: absolute;
	left: 50%;
	bottom: clamp(1.25rem, 3.2vw, 2rem);
	transform: translateX(-50%);
	z-index: 30;
	display: flex;
	gap: 10px;
}

.agmcn-home-hero-dot {
	width: 10px;
	height: 10px;
	border-radius: 9999px;
	border: 1px solid rgba(37, 99, 235, 0.35);
	background: rgba(37, 99, 235, 0.18);
	padding: 0;
	cursor: pointer;
}

.agmcn-home-hero-dot.is-active {
	background: #2563eb;
	border-color: #2563eb;
}

@media (prefers-reduced-motion: reduce) {
	.agmcn-home-hero-carousel-slide {
		transition: none;
	}
}

/* 英雄区主内容：与右侧配图留出「呼吸缝」，桌面略收窄左栏可读宽 */
.agmcn-home-hero-inner {
	padding-bottom: 0.5rem;
}
@media (min-width: 1024px) {
	.agmcn-home-hero-inner {
		padding-right: clamp(1.5rem, 4vw, 3rem);
		max-width: 36rem;
	}
}

@media (min-width: 1024px) {
	.agmcn-home-hero-shell {
		padding-left: 2.25rem;
		padding-right: 2.25rem;
		padding-bottom: 3.25rem;
	}
}
