/*
	Theme Name: Hello Elementor Child
	Theme URI: https://elementor.com/hello-theme/
	Description: Hello Elementor 的子主题，用于安全地覆盖样式与 PHP，父主题更新时不会丢失自定义内容。
	Author: 
	Template: hello-elementor
	Version: 1.1.12
	Requires at least: 6.0
	Requires PHP: 7.4
	License: GNU General Public License v3 or later
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor-child
*/

/* 在此添加自定义 CSS，或通过外观 → 自定义 → 额外 CSS */

/* Language switcher (heb-product-publisher map based) */
.cs-form-1 .elementor-field-group {
    flex-wrap: nowrap;
    border: 1px solid #d1d5db;
    padding: 0 !important;
}
.cs-form-1 .elementor-field-label{
    max-width: 150px;
    width: 100%;
    font-size: 14px;
    font-weight: bold !important;
    color: #374151 !important;
    text-align: right;
    background: #f3f4f6;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 0 10px;
}
.cs-form-1 .elementor-field-group .elementor-field{
    border: 0;
}
.cs-form-1 .elementor-field-group.e-form__buttons{
    border: 0 !important;
    justify-content: center;
}
.cs-form-1 .elementor-field-group .elementor-button{
    width: min-content;
    max-width: max-content;
    padding: 0 60px;
}
.cs-form-1 .elementor-form-fields-wrapper{
    margin: 0 !important;
}
.page-numbers.prev{
    border: 1px solid #e9e9e9;
    padding: 5px 15px;
    border-radius: 6px;
}
.page-numbers.next{
    border: 1px solid #e9e9e9;
    padding: 5px 15px;
    border-radius: 6px;
}

.elementor-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-numbers{
    border-radius: 5px !important;
    height: 33px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    color: #666 !important;
    font-family: 'Noto Sans';
    cursor: pointer !important;
}

.page-numbers:hover{
    color: #fff !important;
    background: #003d82!important;
    border-color: #003d82 !important;
}

.page-numbers.current {
    background: #003d82;
    color: #fff !important;
}

.cs-cat-warp h2.elementor-heading-title.elementor-size-default a {
    display: block;
    padding: 14px 20px;
    border-left: solid 3px #ffffff;
    font-weight: 400 !important;
    transition: all .3s ease;
}
.cs-cat-warp h2.elementor-heading-title.elementor-size-default a:hover{
    background: #f0f7ff;
    font-weight: 700 !important;
    border-color:  #003d82;
    color: #003d82;
}
a.elementor-post-info__terms-list-item {
    background: #22c55e;
    color: #fff !important;
    padding: 5px;
    font-weight: 600;
}
.cs-item-info .elementor-icon-box-wrapper{
}
.cs-item-info .elementor-icon-box-content {
    display: flex;
    gap: 5px;
}
.cs-item-info .elementor-icon-box-content .elementor-icon-box-title{
    margin: 0 !important;
    display: flex;
    align-items: center;
}

.cs-item-info .elementor-icon-box-content .elementor-icon-box-title span{
}
.cs-fqa-warp .e-n-tabs-heading {
    background: #f8f9fa;
}
.cs-solutions-warp .elementor-heading-title.elementor-size-default > a {
    background: #22c55e;
    padding: 3px 10px;
}
.cs-product-item-warp .elementor-widget-image{
    overflow: hidden;
}
.cs-product-item-warp .elementor-widget-image a img{
    transition: all .2s ease;
}
.cs-product-item-warp:hover .elementor-widget-image a img {
    transform: scale(1.03);
}
.cs-certifications .heb-cert__cell {
    max-width: 140px;
    height: 140px;
    margin: 0 auto;
    width: 100%;
}
.cs-feature .heb-fvg__icon-wrap .heb-fvg__icon-el {
    padding: 10px;
    fill: #003d82;
}
.heb-lang-switcher {
	margin: 12px 0;
}
.heb-lang-switcher__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}
.heb-lang-switcher__item a,
.heb-lang-switcher__item span {
	display: inline-block;
	padding: 5px 10px;
	border: 1px solid #d0d7de;
	border-radius: 999px;
	font-size: 12px;
	line-height: 1;
	text-decoration: none;
}
.heb-lang-switcher__item a:hover {
	border-color: #2271b1;
	color: #2271b1;
}
.heb-lang-switcher__item.is-current span {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.heb-lang-switcher--custom {
	display: inline-flex;
	align-items: center;
	position: relative;
}

.heb-lang-switcher__details {
	position: relative;
}

.heb-lang-switcher__details > summary {
	list-style: none;
}

.heb-lang-switcher__details > summary::-webkit-details-marker {
	display: none;
}

.heb-lang-switcher__trigger {
	min-width: 140px;
	height: 36px;
	padding: 0 32px 0 12px;
	border: 1px solid #d5dde8;
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 34px;
	color: #1f2937;
	cursor: pointer;
	white-space: nowrap;
	user-select: none;
	transition: all 0.2s ease;
}

.heb-lang-switcher__trigger:hover {
	border-color: #b9c6d8;
}

.heb-lang-switcher__details[open] .heb-lang-switcher__trigger {
	border-color: #1f6feb;
	box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.12);
}

.heb-lang-switcher__trigger::after {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	pointer-events: none;
	background-color: #7b8796;
	transition: transform 0.2s ease, background-color 0.2s ease;
	-webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
	        mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
}
.heb-lang-switcher__details[open] .heb-lang-switcher__trigger::after {
	transform: rotate(180deg);
	background-color: #1f6feb;
}

.heb-lang-switcher__trigger-inner {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.heb-lang-switcher__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 200px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid #d5dde8;
	border-radius: 12px;
	box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
	z-index: 999;
}

.heb-lang-switcher__menu li {
	margin: 0;
}

.heb-lang-switcher__menu li a,
.heb-lang-switcher__menu li span {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	font-size: 13px;
	line-height: 1.3;
	border-radius: 8px;
	text-decoration: none;
	color: #1f2937;
}

.heb-lang-switcher__menu li a:hover {
	background: #f4f8ff;
	color: #0f4fbf;
}

.heb-lang-switcher__menu li.is-current span {
	background: #eff6ff;
	color: #0f4fbf;
	font-weight: 700;
}

.heb-lang-switcher__name {
	display: inline-block;
}

/* Flag chip — used in both switcher dropdown and header menu */
.heb-lang-flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 16px;
	flex: 0 0 22px;
	overflow: hidden;
	border-radius: 3px;
	background: #eef1f4;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
	line-height: 1;
}
/* 注意：选择器特异性必须 ≥ Elementor 的 `.elementor img`，
   否则 `.elementor img { height: auto }` 会把高度压成 0。 */
.heb-lang-flag img.heb-lang-flag__img {
	display: block;
	width: 22px;
	height: 16px;
	min-width: 22px;
	max-width: 22px;
	min-height: 16px;
	max-height: 16px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 3px;
	box-shadow: none;
	background: transparent;
	object-fit: cover;
	object-position: center;
}
/* CDN 加载失败时整个国旗隐藏（避免出现空灰块） */
.heb-lang-flag.heb-lang-flag--failed {
	display: none;
}

/* Header language menu */
.heb-lang-menu > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}
.heb-lang-menu .sub-menu {
	min-width: 168px;
}
.heb-lang-menu .sub-menu li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
}
.heb-lang-menu .sub-menu li.current-lang a {
	font-weight: 700;
	opacity: 0.85;
}
.heb-lang-menu__name {
	display: inline-block;
}

@media (max-width: 767px) {
	.heb-lang-switcher--custom {
		display: flex;
		width: 100%;
	}
	.heb-lang-switcher__details {
		width: 100%;
	}
	.heb-lang-switcher__trigger {
		width: 100%;
		min-width: 0;
		height: 38px;
		font-size: 13px;
		line-height: 36px;
	}
	.heb-lang-switcher__menu {
		left: 0;
		right: auto;
		width: 100%;
		min-width: 0;
	}
}

/* Product term badges (shortcode [heb_product_badges]) */
.heb-product-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.heb-product-badges__item {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 0;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 600;
	color: #fff;
	background-color: #22c55e;
	text-decoration: none;
	box-sizing: border-box;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

a.heb-product-badges__item:hover,
a.heb-product-badges__item:focus-visible {
	color: #fff;
	opacity: 0.92;
	background-color: #16a34a;
	text-decoration: none;
}
