/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ============ 字体 ============ */
body {
	--theme-font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
	letter-spacing: -0.01em;
}

/* ============ Hero 区：深色渐变遮罩（白字可读） ============ */
.elementor-element-b460453,
.elementor-element-79ee1ff,
.elementor-element-98ec681,
.elementor-element-004343b {
	position: relative;
}

.elementor-element-b460453::before,
.elementor-element-79ee1ff::before,
.elementor-element-98ec681::before,
.elementor-element-004343b::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(160deg, rgba(15, 23, 42, 0.62) 0%, rgba(15, 23, 42, 0.30) 55%, rgba(15, 23, 42, 0.55) 100%);
	z-index: 1;
	pointer-events: none;
}

.elementor-element-b460453 > *,
.elementor-element-79ee1ff > *,
.elementor-element-98ec681 > *,
.elementor-element-004343b > * {
	position: relative;
	z-index: 2;
}

/* ============ 案例卡：底部渐变 + 圆角阴影 ============ */
.elementor-element-a6f9694,
.elementor-element-f4c41eb,
.elementor-element-da5f4ca,
.elementor-element-ffd6f37,
.elementor-element-616c4d2,
.elementor-element-c299f3c {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
}

.elementor-element-a6f9694::after,
.elementor-element-f4c41eb::after,
.elementor-element-da5f4ca::after,
.elementor-element-ffd6f37::after,
.elementor-element-616c4d2::after,
.elementor-element-c299f3c::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0) 38%, rgba(15, 23, 42, 0.62) 100%);
	z-index: 1;
	pointer-events: none;
}

.elementor-element-a6f9694 > *,
.elementor-element-f4c41eb > *,
.elementor-element-da5f4ca > *,
.elementor-element-ffd6f37 > *,
.elementor-element-616c4d2 > *,
.elementor-element-c299f3c > * {
	position: relative;
	z-index: 2;
}

/* ============ 图片统一（圆角 + 柔和阴影 + hover 缩放） ============ */
.elementor-widget-image,
.elementor-widget-image-box .elementor-image-box-img {
	overflow: hidden;
}

.elementor-widget-image img,
.elementor-widget-image-box .elementor-image-box-img img {
	border-radius: 14px;
	transition: transform 0.5s ease;
}

.elementor-widget-image img:not([src$=".svg"]),
.elementor-widget-image-box .elementor-image-box-img img:not([src$=".svg"]) {
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}

.elementor-widget-image:hover img,
.elementor-widget-image-box:hover .elementor-image-box-img img {
	transform: scale(1.035);
}

/* 团队卡 */
.elementor-element-b9c3f82 img,
.elementor-element-72420bd img,
.elementor-element-21bb89e img,
.elementor-element-b056b59 img,
.elementor-element-9b239d3 img,
.elementor-element-597a191 img {
	border-radius: 14px !important;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}

/* 客户头像保持圆形 */
.elementor-element-a6f030d img,
.elementor-element-346051f img {
	border-radius: 50% !important;
}

/* ============ 按钮 ============ */
.elementor-button,
.woocommerce .button,
.wp-element-button {
	border-radius: 10px !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.elementor-button:hover,
.woocommerce .button:hover,
.wp-element-button:hover {
	transform: translateY(-2px);
}

.ct-woo-card-actions .button + .button {
	margin-top: 10px;
}

/* ============ 询盘弹窗 ============ */
.honson-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.honson-modal.is-open {
	display: flex;
}

.honson-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(4px);
}

.honson-modal-card {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow: auto;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.30);
	padding: 32px;
	animation: honson-pop 0.25s ease;
}

@keyframes honson-pop {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.honson-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: #f1f5f9;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #475569;
	transition: background 0.2s ease;
}

.honson-modal-close:hover {
	background: #e2e8f0;
}

.honson-modal-body h3 {
	margin: 0 0 6px;
	font-size: 24px;
	color: #1e293b;
}

.honson-modal-sub {
	margin: 0 0 22px;
	font-size: 14px;
	color: #64748b;
}

.honson-field {
	margin-bottom: 14px;
}

.honson-field label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.honson-req {
	color: #f97316;
}

.honson-field input,
.honson-field textarea {
	width: 100%;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	color: #1e293b;
	background: #ffffff;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.honson-field input:focus,
.honson-field textarea:focus {
	border-color: #f97316;
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.honson-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

.honson-submit {
	width: 100%;
	border: none;
	border-radius: 10px;
	background: #f97316;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	padding: 13px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s ease, transform 0.2s ease;
}

.honson-submit:hover {
	background: #ea580c;
	transform: translateY(-1px);
}

.honson-msg {
	margin-top: 12px;
	font-size: 14px;
	text-align: center;
	display: none;
}

.honson-msg.is-success {
	display: block;
	color: #16a34a;
	font-weight: 600;
}

.honson-msg.is-error {
	display: block;
	color: #dc2626;
}

.honson-msg.is-info {
	display: block;
	color: #64748b;
}

/* ============ Get A Quote 弹窗触发按钮 ============ */
.honson-open-quote {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9999;
	border: none;
	border-radius: 999px;
	background: #f97316;
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	padding: 14px 26px;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.honson-open-quote:hover {
	background: #ea580c;
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(249, 115, 22, 0.40);
}

/* ============ Get A Quote 弹窗：左图右表 ============ */
.ct-popup-content .wp-block-columns {
	margin: 0;
	align-items: stretch;
}

.ct-popup-content .wp-block-column:first-child {
	display: flex;
	align-items: stretch;
}

.ct-popup-content .wp-block-image {
	height: 100%;
	margin: 0;
}

.ct-popup-content .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.ct-popup-content .wp-block-column:last-child {
	padding: 8px 8px 8px 24px;
}

.ct-popup-content h2 {
	margin: 0 0 10px;
	font-size: 28px;
}

.ct-popup-content > .wp-block-columns > .wp-block-column > p {
	margin: 0 0 18px;
	color: #64748b;
}

@media (max-width: 690px) {
	.ct-popup-content .wp-block-column:first-child img {
		height: 220px;
	}

	.ct-popup-content .wp-block-column:last-child {
		padding: 20px 4px;
	}
}


/* ============ 产品徽章折扣居中 ============ */
.elementor-products-grid ul.products.elementor-grid li.product .onsale,
.elementor-wc-products ul.products li.product .onsale {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 5px 7px !important;
}


/* Mobile product-card actions: keep Add to Cart and Get A Quote on one compact row. */
@media (max-width: 767px) {
  .ct-woo-card-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .ct-woo-card-actions .button,
  .ct-woo-card-actions .honson-quote-link {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 8px 6px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}


/* Final mobile product-card action polish: exactly two compact, equal buttons. */
@media (max-width: 767px) {
  .ct-woo-card-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .ct-woo-card-actions .add_to_cart_button::after {
    content: none !important;
  }

  .ct-woo-card-actions .add_to_cart_button,
  .ct-woo-card-actions .honson-quote-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 6px 4px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }
}
