/* ========== 全站公共样式 ========== */

/* WorkSans 字体 */
@font-face {
	font-family: 'Work Sans';
	src: url('fonts/WorkSans-Light.woff') format('woff');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Work Sans';
	src: url('fonts/WorkSans-Regular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Work Sans';
	src: url('fonts/WorkSans-Medium.woff') format('woff');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Work Sans';
	src: url('fonts/WorkSans-SemiBold.woff') format('woff');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Work Sans';
	src: url('fonts/WorkSans-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

body, .header, .footer, .menu__wrapper, .wpml-ls-link, .datos, .titulo, nav {
	font-family: 'Work Sans', 'Noto Sans SC', sans-serif !important;
}

/* Cookie 弹窗隐藏 */
.cmplz-hidden {
	display: none !important;
}

/* WooCommerce 产品画廊 */
.woocommerce-product-gallery {
	opacity: 1 !important;
}

.woocommerce form .form-row .required {
	visibility: visible;
}

/* 防止数据加载前页面高度塌缩 */
#listContainer {
	min-height: 60vh;
}

#listContainer1 {
	min-height: 30vh;
}

/* 分页容器样式 */
#pagination {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	margin: 20px 0;
}

.page-btn {
	border: none;
	outline: none;
	background: transparent;
	font-size: 14px;
	padding: 6px 12px;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.2s;
}

.page-active {
	background: #8d8787;
	color: #fff;
}

.page-btn:disabled {
	color: #999;
	cursor: not-allowed;
}

.page-btn:hover:not(:disabled) {
	background: #f1f1f1;
}

/* 项目列表 hover 放大 - 使用内部图片缩放，避免容器重绘 */
.bloque-proyectos .posts--grid .post__portada {
	overflow: hidden;
}

.bloque-proyectos .posts--grid .post__portada img {
	transform: scale(1) translateZ(0);
	transition: transform .4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bloque-proyectos .posts--grid .post:hover .post__portada img {
	transform: scale(1.05) translateZ(0);
}

/* 固定 footer 在底部 */
#page {
	display: flex !important;
	flex-direction: column !important;
	min-height: 100vh !important;
}

.site-main, .themadesign-main {
	flex: 1 0 auto !important;
}

.footer {
	flex-shrink: 0 !important;
}

/* 英文介绍自适应 */
.datos__texto p,
#listContainer p {
	text-align: justify;
	word-break: normal;
	overflow-wrap: normal;
}

[lang="zh"] .datos__texto p,
[lang="zh"] #listContainer p {
	text-align: left;
}

/* 移动端减少底部空白 */
@media screen and (max-width: 768px) {
	#listContainer {
		min-height: auto;
	}
	#listContainer1 {
		min-height: auto;
	}
}
