/* ==========================================================================
   Yongtuo 主题补充样式（WordPress 动态输出部分）
   与设计稿 css/style.css 分离，方便后续升级设计稿而不丢定制。
   ========================================================================== */

:root {
	--yt-green: #03c588;
	--yt-dark: #0d2f26;
}

/* 首页 5 个产品分类横排 */
@media (min-width: 1200px) {
	.yt-cats-5 > .col-xl-3 {
		flex: 0 0 20%;
		max-width: 20%;
	}
}
.yt-cats-5 > div {
	margin-bottom: 0;
}

/* 分页 */
.yt-pagination,
.products-page .basic-pagination {
	margin-top: 48px;
}
.yt-pagination .nav-links {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}
.yt-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 50px;
	background: #f3f6f5;
	color: var(--yt-dark);
	font-weight: 600;
	text-decoration: none;
}
.yt-pagination .page-numbers.current,
.yt-pagination .page-numbers:hover {
	background: var(--yt-green);
	color: #fff;
}
.products-page .basic-pagination ul {
	display: flex;
	gap: 10px;
	justify-content: center;
	list-style: none;
	padding: 0;
}
.products-page .basic-pagination ul li a,
.products-page .basic-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 50px;
	background: #f3f6f5;
	color: var(--yt-dark);
	font-weight: 600;
}
.products-page .basic-pagination ul li span.current,
.products-page .basic-pagination ul li a:hover {
	background: var(--yt-green);
	color: #fff;
}

/* 分类页简介 */
.yt-cat-intro {
	max-width: 900px;
	margin-top: 16px;
	color: #55625d;
	line-height: 1.75;
}

/* 产品页快速参数 */
.yt-quick-facts {
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
	display: grid;
	gap: 8px;
}
.yt-quick-facts li {
	font-size: 15px;
	color: #44514c;
	padding: 10px 16px;
	background: #f4f8f6;
	border-left: 3px solid var(--yt-green);
	border-radius: 6px;
}
.yt-quick-facts li strong {
	color: var(--yt-dark);
}

/* 新闻摘要 */
.yt-post-excerpt {
	margin: 14px 0 18px;
	color: #5b6864;
	line-height: 1.75;
}

/* 询盘表单 */
.yt-inquiry-form .yt-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.yt-form-msg {
	display: none;
	margin-bottom: 14px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.6;
}
.yt-form-msg.is-success {
	display: block;
	background: #e8f8f1;
	color: #056347;
	border: 1px solid #b6e6d3;
}
.yt-form-msg.is-error {
	display: block;
	background: #fdecec;
	color: #9c2222;
	border: 1px solid #f3c2c2;
}
.yt-form-note {
	margin-top: 12px;
	font-size: 13px;
	color: #7a8783;
}
.yt-inquiry-form button[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

/* 通用页面内容区 */
.yt-page-content {
	padding: 110px 0 100px;
}
.yt-page-content h1,
.yt-page-content h2,
.yt-page-content h3 {
	margin-top: 28px;
	margin-bottom: 14px;
	color: var(--yt-dark);
}
.yt-page-content p,
.yt-page-content li {
	line-height: 1.85;
	color: #4d5a56;
}
.yt-page-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 22px 0;
}
.yt-page-content table th,
.yt-page-content table td {
	border: 1px solid #e3e9e6;
	padding: 12px 16px;
	text-align: left;
}
.yt-page-content table th {
	background: #f5f9f7;
	font-weight: 600;
}

/* 404 */
.yt-404 {
	padding: 120px 0 100px;
}
.yt-404-code {
	font-size: 120px;
	line-height: 1;
	color: var(--yt-green);
	margin-bottom: 10px;
	font-weight: 800;
}
.yt-404-title {
	font-size: 30px;
	margin-bottom: 18px;
	color: var(--yt-dark);
}
.yt-404 .btn-wrapper {
	gap: 14px;
	margin: 26px 0;
}
.yt-404-search {
	max-width: 460px;
	margin: 30px auto 0;
}

/* 搜索结果提示 */
.yt-search-summary {
	margin-bottom: 30px;
	color: #5b6864;
}

/* 侧栏 CTA 卡片 */
.yt-widget-cta-inner {
	background: var(--yt-dark);
	border-radius: 14px;
	padding: 28px 24px;
	color: #fff;
}
.yt-widget-cta-inner h4 {
	color: #fff;
	font-size: 20px;
	margin-bottom: 10px;
}
.yt-widget-cta-inner p {
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px;
	line-height: 1.7;
	margin-bottom: 16px;
}
.yt-widget-cta-inner .theme-btn {
	padding: 14px 26px;
	font-size: 15px;
	display: inline-block;
}

/* 移动端微调 */
@media (max-width: 767px) {
	.yt-page-content {
		padding: 70px 0 60px;
	}
	.yt-404-code {
		font-size: 84px;
	}
}

/* ===== 产品详情页 · 相关产品 ===== */
.yt-related {
	margin-top: 70px;
	padding-top: 56px;
	border-top: 1px solid #e8eeeb;
}
.yt-related-title {
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: -0.4px;
	margin-bottom: 26px;
	color: #16211d;
}
@media (max-width: 767px) {
	.yt-related {
		margin-top: 52px;
		padding-top: 40px;
	}
	.yt-related-title {
		font-size: 24px;
		margin-bottom: 18px;
	}
}

/* ===== 内联 SVG 图标（替代 Font Awesome 图标字体） =====
   刻意保留 <i> 包裹层：设计样式表里有大量 `.xxx i { font-size; transform }`
   选择器（例如圆形箭头按钮的 -45deg 旋转），换成别的标签会让这些规则失效。
   尺寸完全由 font-size 控制，与原来图标字体的行为一致。 */
.yt-i {
	display: inline-block;
	width: 1em;
	height: 1em;
	line-height: 1;
	font-style: normal;
	vertical-align: -0.125em;
	flex: none;
}
.yt-i svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ===== 伪元素图标改造 =====
   设计样式表里有 15 处 `font-family: "Font Awesome 6 Pro"`，靠字符码（\f054、\f107 等）
   显示小图标。移除 Icon Font 后，其中真正会被渲染的只有两处（主导航下拉箭头、
   面包屑分隔符），这里用 CSS mask + 内联 SVG 重做，颜色继续跟随 currentColor。
   其余 13 处对应的选择器（手风琴、评分、RSS 日期、区块最新文章等）本站模板并未输出。 */

/* 主导航：下拉箭头（原 \f107） */
.main-menu ul li a:before {
	content: "";
	width: 10px;
	height: 10px;
	padding: 0;
	line-height: 0;
	margin-top: -5px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206l6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206l6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 面包屑：分隔符（原 \f054） */
.breadcrumb-list ul li:before {
	content: "";
	width: 8px;
	height: 8px;
	font-size: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%206l6%206l-6%206'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%206l6%206l-6%206'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 侧栏产品分类：右侧方形箭头
   原样式用的是模板自带图标字体的自定义码 \e09f（不是 Font Awesome 标准图标），
   字体移除后只剩一个空框。这里改用内联 SVG mask 重画。 */
.widget_service_categories ul li a:after {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2016l4-4l-4-4'/%3E%3Cpath%20d='M8%2012h8'/%3E%3Cpath%20d='M12%203c7.2%200%209%201.8%209%209s-1.8%209-9%209s-9-1.8-9-9s1.8-9%209-9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2016l4-4l-4-4'/%3E%3Cpath%20d='M8%2012h8'/%3E%3Cpath%20d='M12%203c7.2%200%209%201.8%209%209s-1.8%209-9%209s-9-1.8-9-9s1.8-9%209-9z'/%3E%3C/svg%3E") center / contain no-repeat;
}
