/* ==========================================================================
   WordPress 兼容 + 主题补充样式
   不覆盖原站视觉，只补齐 WP 与表单所需
   ========================================================================== */

/* ---------- 可访问性 ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* ---------- 图片与对齐 ---------- */
img { max-width: 100%; height: auto; }
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter{ display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption { font-size: 13px; color: #999; text-align: center; }
.sticky {}
.bypostauthor {}

/* ---------- 已登录后台：给固定头部留位 ---------- */
body.admin-bar .mh-fixed-top { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .mh-fixed-top { top: 46px; }
}

/* ---------- 后台编辑链接不干扰前台 ---------- */
.post-edit-link { display: none; }

/* ---------- 产品 / 新闻：WP 列表兜底排版 ---------- */
.mh-list { list-style: none; margin: 0; padding: 0; }
.mh-list li { margin-bottom: 12px; }
.mh-entry-content { line-height: 1.9; color: #555; }
.mh-entry-content img { display: block; max-width: 100%; height: auto; }
.mh-entry-content h2,
.mh-entry-content h3,
.mh-entry-content h4 { margin: 1.2em 0 .6em; color: #333; }
.mh-entry-content p { margin: 0 0 1em; }
.mh-entry-content ul,
.mh-entry-content ol { margin: 0 0 1em 1.4em; padding: 0; }

/* ---------- 分页 ---------- */
.mh-pager { text-align: center; margin: 40px 0; clear: both; }
.mh-pager .page-numbers {
	display: inline-block; min-width: 34px; height: 34px; line-height: 34px;
	padding: 0 10px; margin: 0 3px;
	border: 1px solid #e3ddd2; color: #7a6a55; text-decoration: none;
	background: #fff; border-radius: 2px;
}
.mh-pager .page-numbers.current,
.mh-pager .page-numbers:hover { background: #b1874c; border-color: #b1874c; color: #fff; }

/* ---------- 在线留言表单 ---------- */
.mh-msg-form { margin: 0 auto; max-width: 900px; }
.mh-msg-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
.mh-msg-full { grid-column: 1 / -1; }
.mh-msg-field input,
.mh-msg-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #e3ddd2;
	background: #fff;
	font-size: 14px;
	color: #555;
	outline: none;
	border-radius: 2px;
	transition: border-color .2s;
}
.mh-msg-field textarea { min-height: 110px; resize: vertical; }
.mh-msg-field input:focus,
.mh-msg-field textarea:focus { border-color: #b1874c; }
.mh-msg-submit { margin-top: 16px; text-align: center; }
.mh-msg-btn {
	display: inline-block;
	min-width: 180px;
	padding: 12px 30px;
	border: 0;
	background: #b1874c;
	color: #fff;
	font-size: 15px;
	letter-spacing: 2px;
	cursor: pointer;
	border-radius: 2px;
	transition: background .2s;
}
.mh-msg-btn:hover { background: #96703a; }
.mh-msg-ok {
	margin-top: 14px; text-align: center;
	color: #3a7d3a; font-size: 14px;
}

@media (max-width: 600px) {
	.mh-msg-grid { grid-template-columns: 1fr; }
}

/* ---------- 移动端菜单展开 ---------- */
.navUl.open { display: block !important; }

/* ---------- 后台「外观-自定义」里上传按钮预览 ---------- */
.mh-preview img { max-width: 120px; display: block; margin-top: 6px; }

/* ---------- 无内容提示 ---------- */
.mh-empty { padding: 60px 0; text-align: center; color: #999; font-size: 15px; }

/* ==========================================================================
   头部 LOGO 正确显示（避免被拉伸变形）
   - 原站桌面端直接显示 <img>，本主题沿用；此处约束尺寸，保证比例正常
   ========================================================================== */
@media (min-width: 1025px) {
	#w_fimg-1623909430177 .p_dimage { display: flex; align-items: center; }
	#w_fimg-1623909430177 .p_dimage > img {
		width: auto !important;
		height: auto !important;
		max-width: 100%;
		max-height: 56px;
	}
}

/* ==========================================================================
   首页「新闻资讯」右侧标题完整显示（去除单行省略号截断）
   ========================================================================== */
#c_portalResNews_list-16982226134431963 .hon_name_text {
	white-space: normal !important;
	height: auto !important;
	line-height: 1.5 !important;
	padding: 6px 10px !important;
}
#c_portalResNews_list-16982226134431963 .hon_name_box1 .swiper-slide {
	height: auto !important;
}
