/*
Theme Name:   Astra Child
Theme URI:    https://wpastra.com/
Description:  Astra子主题，用于自定义Elementor小部件
Author:       Your Name
Author URI:   https://wpastra.com/about/
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* 在这里添加你的自定义样式 */

body.home {
	overflow-x: hidden;
}

body.home #page,
body.home .swiper,
body.home .swiper-container,
body.home .elementor-widget-image-carousel,
body.home .elementor-widget-nested-carousel {
	overflow-x: hidden;
}

.yhy-light-header.ast-theme-transparent-header #masthead,
.yhy-light-header.ast-theme-transparent-header .site-header {
	position: relative !important;
	background: rgba(255, 255, 255, 0.96) !important;
	backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.yhy-light-header.ast-theme-transparent-header .main-header-bar,
.yhy-light-header.ast-theme-transparent-header .ast-primary-header-bar,
.yhy-light-header.ast-theme-transparent-header .ast-builder-grid-row {
	background: transparent !important;
}

.yhy-light-header .main-header-menu > .menu-item > .menu-link,
.yhy-light-header .main-header-menu > .menu-item > .ast-menu-toggle,
.yhy-light-header .ast-builder-menu-1 .menu-link,
.yhy-light-header .ast-builder-menu-1 .sub-menu .menu-link,
.yhy-light-header .ast-mobile-popup-drawer .menu-link,
.yhy-light-header .ast-menu-toggle,
.yhy-light-header .ast-search-menu-icon,
.yhy-light-header .search-submit,
.yhy-light-header .ast-builder-menu .icon-arrow,
.yhy-light-header .ast-builder-menu .menu-item > .ast-menu-toggle {
	color: #0f172a !important;
}

.yhy-light-header .main-header-menu > .menu-item > .menu-link:hover,
.yhy-light-header .main-header-menu > .current-menu-item > .menu-link,
.yhy-light-header .main-header-menu > .current-menu-ancestor > .menu-link,
.yhy-light-header .ast-builder-menu-1 .menu-link:hover,
.yhy-light-header .ast-builder-menu-1 .menu-item:hover > .menu-link {
	color: #0055B8 !important;
}

.yhy-light-header .submenu-with-border .sub-menu,
.yhy-light-header .ast-builder-menu-1 .sub-menu,
.yhy-light-header .main-header-menu .sub-menu {
	background: #fff;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.yhy-light-header .ast-header-search .search-form,
.yhy-light-header .ast-search-menu-icon .search-form {
	background: #fff;
	border: 1px solid #d7e0ea;
	border-radius: 2px;
}

.yhy-light-header .search-field {
	background: transparent !important;
	color: #0f172a !important;
}

.yhy-light-header .search-field::placeholder {
	color: #7b8794;
}

.yhy-light-header .ast-custom-button-link,
.yhy-light-header .menu-item > .ast-custom-button-link,
.yhy-light-header .ast-custom-button .menu-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 8px 10px;
	color: #0055B8 !important;
	border: 1px solid rgba(0, 85, 184, 0.28);
	background: #fff;
}

.yhy-light-header .ast-custom-button-link .ast-custom-button,
.yhy-light-header .menu-item > .ast-custom-button-link .ast-custom-button,
.yhy-light-header .ast-custom-button .menu-link .ast-custom-button,
.yhy-light-header a .ast-custom-button {
	display: block;
	color: inherit !important;
	background: transparent !important;
	border: 0 !important;
	padding: 0;
}

.yhy-light-header .ast-custom-button-link:hover,
.yhy-light-header .menu-item > .ast-custom-button-link:hover,
.yhy-light-header .ast-custom-button .menu-link:hover {
	color: #fff !important;
	border-color: #0055B8;
	background: #0055B8;
}

/* WhatsApp floating widget alignment fix */
.wa__btn_popup,
.wa__btn_popup_txt,
.wa__popup_chat_box {
	line-height: 1.2;
}

/* Hide WhatsApp floating trigger icon and text bubble */
#wa .wa__btn_popup,
#wa .wa__btn_popup_icon,
#wa .wa__btn_popup_txt {
	display: none !important;
}

/* 统一右下角按钮组对齐 */
.wa__btn_popup .wa__btn_popup_txt {
	margin-right: 10px !important;
	padding: 10px 12px !important;
	border-radius: 8px !important;
	white-space: nowrap;
}

.wa__popup_chat_box .wa__popup_content_list,
.wa__popup_chat_box .wa__popup_content_item {
	margin: 0 !important;
}

.wa__popup_chat_box .wa__popup_content_item {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px !important;
}

.wa__popup_chat_box .wa__popup_content_item a,
.wa__popup_chat_box .wa__popup_content_item .wa__cs_info_wrap {
	border-radius: 999px !important;
}

/* WeChat row styling inside WhatsApp popup */
.yhy-wechat-item .yhy-wechat-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: #07c160;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

/* WeChat QR modal */
.yhy-wechat-modal[hidden] {
	display: none !important;
}

.yhy-wechat-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
}

.yhy-wechat-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
}

.yhy-wechat-modal-dialog {
	position: relative;
	z-index: 1;
	max-width: 420px;
	margin: 10vh auto 0;
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.yhy-wechat-modal-close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.yhy-wechat-qr-wrap {
	margin-top: 10px;
	text-align: center;
}

.yhy-wechat-qr-wrap img {
	max-width: 100%;
	height: auto;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 6px;
	background: #fff;
}

.yhy-wechat-empty-guide {
	margin-top: 10px;
	padding: 12px;
	border-radius: 8px;
	background: #f8fafc;
	border: 1px solid #dbeafe;
}

body.yhy-wechat-modal-open {
	overflow: hidden;
}

