/*
Theme Name: Bonahuanbao Website
Theme URI: https://example.com/bonahuanbao-website
Author: GPT-5.4
Author URI: https://openai.com/
Description: 基于静态页面开发的博纳环保 WordPress 主题。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: bonahuanbao-website
*/

.menu-item.current-menu-item > .menu-link div,
.menu-item.current_page_item > .menu-link div,
.menu-item.current-menu-ancestor > .menu-link div,
.menu-item.current > .menu-link div {
	color: #01572f;
}

.page-template-page-contact .contact-form-notice,
.page-template-page-contact .contact-form-error {
	padding: 14px 18px;
	margin-bottom: 24px;
	border-radius: 6px;
	font-size: 14px;
}

.page-template-page-contact .contact-form-notice {
	background: rgba(1, 87, 47, 0.1);
	color: #01572f;
}

.page-template-page-contact .contact-form-error {
	background: rgba(220, 53, 69, 0.1);
	color: #b42318;
}

.page-template-page-contact .visually-hidden-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.news-detail-content ul,
.entry-content ul {
	padding-left: 1.2rem;
}

.news-detail-content ul li,
.entry-content ul li {
	margin-bottom: 0.5rem;
}

body.admin-bar {
	--bona-adminbar-height: 32px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--bona-adminbar-height: 46px;
	}
}

body.admin-bar .sticky-header #header-wrap {
	top: var(--bona-adminbar-height);
}

.single #content .row > .col-lg-4,
.single-product #content .row > .col-lg-4 {
	padding-left: 2.5rem;
}

.bona-home-product-img {
	display: block !important;
	width: 100%;
	aspect-ratio: 508.2 / 434.5;
	object-fit: cover;
	object-position: center;
}

.blog .news-section .entry-title,
.page-template-page-news .news-section .entry-title {
	padding-top: 16px;
}
.blog .news-section .entry-title h3 a,
.archive .news-section .entry-title h3 a,
.search .news-section .entry-title h3 a,
.home .news-section .entry-title h3 a,
.page-template-front-page .news-section .entry-title h3 a,
.page-template-front-page-php .news-section .entry-title h3 a,
.page-template-page-news .news-section .entry-title h3 a {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.blog .news-section .entry-content p,
.archive .news-section .entry-content p,
.search .news-section .entry-content p,
.home .news-section .entry-content p,
.page-template-front-page .news-section .entry-content p,
.page-template-front-page-php .news-section .entry-content p,
.page-template-page-news .news-section .entry-content p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: 5.1em;
}
