/* 紫尚轩站点补充样式，在模板 style.css / responsive.css 之后加载 */

/* 首页中部图片：替换为方形主题大图后，让其随列宽自适应，避免超出容器/把区块撑高 */
.slider-thumb img,
.new-food-thumb img,
.about-thumb img {
	max-width: 100%;
	height: auto;
}

/* 三大特色：参考模板原设计，仅在右上方显示一张小产品图 */
.feature-single-box {
	overflow: hidden;
}

.feature-box-thumb {
	text-align: right;
	padding: 0 30px 10px;
	max-width: 100%;
}

.feature-box-thumb img {
	max-width: 260px;
	height: auto;
	display: inline-block;
}

.new-food-thumb {
	text-align: center;
}

.new-food-thumb img {
	margin-left: 0;
}

:root {
	--brand: #7fbd43;
	--brand-dark: #5f9a2c;
	--ink: #333333;
	--ink-light: #797979;
}

/* ---------- 通用咨询条 ---------- */
.cta-section {
	padding: 90px 0;
	background: #f4f7ee;
}

.cta-section .cta-inner {
	text-align: center;
}

.cta-section .cta-desc {
	max-width: 760px;
	margin: 0 auto 28px;
	color: var(--ink-light);
}

.cta-section .about-btn a {
	display: inline-block;
}

/* ---------- 文章正文 ---------- */
.article-body h2 {
	font-size: 24px;
	color: var(--ink);
	margin: 30px 0 14px;
	font-weight: 700;
}

.article-body p {
	margin-bottom: 16px;
}

.article-list {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.article-list li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 10px;
	color: var(--ink-light);
}

.article-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--brand);
}

.article-quote {
	border-left: 4px solid var(--brand);
	background: #f7f9f4;
	padding: 18px 22px;
	margin: 24px 0;
	font-style: normal;
	color: var(--ink);
}

/* ---------- 食谱：食材 / 步骤 / 小贴士 ---------- */
.recipe-panel {
	background: #f9fbf6;
	border: 1px solid #e8eee0;
	padding: 28px 30px;
	margin: 26px 0;
}

.recipe-panel h3 {
	font-size: 20px;
	margin-bottom: 16px;
	color: var(--ink);
}

.recipe-panel ul,
.recipe-panel ol {
	margin: 0;
	padding-left: 20px;
}

.recipe-panel li {
	margin-bottom: 10px;
	color: var(--ink-light);
}

.recipe-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: step;
}

.recipe-steps li {
	position: relative;
	padding-left: 46px;
	margin-bottom: 18px;
	counter-increment: step;
}

.recipe-steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	border-radius: 50%;
	background: var(--brand);
	color: #fff;
	font-weight: 700;
}

.recipe-steps .step-title {
	display: block;
	font-weight: 700;
	color: var(--ink);
	margin-bottom: 4px;
}

/* ---------- 产品参数表 ---------- */
.spec-table {
	width: 100%;
	border: 1px solid #e8eee0;
	margin-top: 20px;
}

.spec-table tr + tr {
	border-top: 1px solid #e8eee0;
}

.spec-table th,
.spec-table td {
	padding: 12px 18px;
	font-size: 15px;
	text-align: left;
}

.spec-table th {
	width: 30%;
	background: #f7f9f4;
	color: var(--ink);
	font-weight: 600;
}

.spec-table td {
	color: var(--ink-light);
}

/* ---------- 产品详情卖点 ---------- */
.detail-list {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.detail-list li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 10px;
	color: var(--ink-light);
}

.detail-list li::before {
	content: '\f26a';
	font-family: 'bootstrap-icons';
	position: absolute;
	left: 0;
	top: 1px;
	color: var(--brand);
}

/* ---------- 关于我们：数据统计 ---------- */
.about-counter-number h1 {
	display: inline-block;
}

.about-counter-number .counter-suffix {
	font-size: 26px;
	font-weight: 700;
	color: var(--brand);
	margin-left: 4px;
}

/* ---------- 关于我们：历程时间线 ---------- */
.timeline {
	margin-top: 30px;
	padding: 0;
	list-style: none;
}

.timeline li {
	position: relative;
	padding: 0 0 28px 34px;
	border-left: 2px solid #e3ead9;
}

.timeline li:last-child {
	border-left-color: transparent;
	padding-bottom: 0;
}

.timeline li::before {
	content: '';
	position: absolute;
	left: -8px;
	top: 4px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--brand);
}

.timeline .timeline-year {
	display: inline-block;
	font-size: 15px;
	font-weight: 700;
	color: var(--brand);
	margin-bottom: 6px;
}

.timeline h4 {
	font-size: 19px;
	margin-bottom: 6px;
	color: var(--ink);
}

.timeline p {
	color: var(--ink-light);
	margin: 0;
}

/* ---------- 产品筛选 ---------- */
.product-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: -10px 0 40px;
}

.product-filter a {
	display: inline-block;
	padding: 10px 26px;
	border: 1px solid #e3ead9;
	border-radius: 30px;
	color: var(--ink);
	background: #fff;
	transition: all .3s;
}

.product-filter a:hover,
.product-filter a.active {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

/* ---------- 产品图库（venobox） ---------- */
.gallery-grid {
	margin-top: 16px;
}

.gallery-grid a.venobox {
	display: block;
	margin: 6px 0;
	position: relative;
	overflow: hidden;
}

.gallery-grid img {
	width: 100%;
}

/* 移动端：让 iOS Safari 稳定派发 click（否则首 tap 可能不触发、链接被直接导航） */
.gallery-grid a.venobox,
.gallery-grid a.venobox img {
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

/* hover（桌面）/ 手指触摸（移动端）时立即浮现"+"遮罩，提示可点击放大 */
.gallery-grid a.venobox::after {
	content: '+';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 56px;
	font-weight: 300;
	line-height: 1;
	opacity: 0;
	transition: opacity 0.15s ease;
	/* 伪元素不拦截点击，保证灯箱正常触发 */
	pointer-events: none;
}

/* 桌面（有 hover 能力）：鼠标移入即显示 */
@media (hover: hover) {
	.gallery-grid a.venobox:hover::after {
		opacity: 1;
	}
}

/* 触摸设备：手指按下立即显示（走 :active，避免 iOS 点击后 :hover 粘滞
   导致关闭灯箱后 "+" 仍残留在该图上） */
.gallery-grid a.venobox:active::after {
	opacity: 1;
}

/* ---------- 产品详情页左侧主图：限制大小并居中 ---------- */
.shop-details-thumb img {
	display: block;
	max-width: 420px;
	margin: 0 auto;
}

/* ---------- 标签 ---------- */
.tag-list {
	margin-top: 26px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tag-list li a {
	display: inline-block;
	padding: 7px 18px;
	background: #f4f7ee;
	border-radius: 4px;
	color: var(--ink-light);
	font-size: 14px;
	transition: all .3s;
}

.tag-list li a:hover {
	background: var(--brand);
	color: #fff;
}

@media (max-width: 767px) {
	.cta-section {
		padding: 60px 0;
	}

	.article-body h2 {
		font-size: 20px;
	}
}

/* ---------- 品牌 Logo ---------- */
.brand-logo-slot img {
	width: auto;
	height: 64px;
	object-fit: contain;
}

/* Footer 用浅色版 zi-logo2.png（底色深墨绿 #2f3529），本身已为浅色，无需反色 */

@media (max-width: 767px) {
	.brand-logo-slot img {
		width: auto;
		height: 48px;
	}
}

/* ---------- 首页关于简介：优势标题单行展示 ---------- */
.about-items {
	flex-wrap: wrap;
	row-gap: 16px;
}

.about-item-title {
	flex-shrink: 0;
}

.about-item-title h4 {
	white-space: nowrap;
}

/* ---------- 食谱详情：右侧栏与左栏等高对齐 ---------- */
.blog-details > .container > .row {
	align-items: stretch;
}

.blog-details > .container > .row > .col-lg-4 {
	display: flex;
}

.blog-details > .container > .row > .col-lg-4 > .row {
	flex: 1;
	display: flex;
}

.blog-details > .container > .row > .col-lg-4 > .row > .col-lg-12 {
	flex: 1;
	display: flex;
}

.blog-details .col-lg-4 .servicing.style-two {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 22px;
	background: #f8f9f7;
	border-radius: 5px;
	padding: 28px 26px;
}

.blog-details .col-lg-4 .servicing.style-two > .shop-categories {
	background: transparent;
	padding: 0;
	border-radius: 0;
	margin-top: 0;
}

.blog-details .col-lg-4 .servicing.style-two > .shop-categories + .shop-categories {
	padding-top: 22px;
	border-top: 1px solid #e8eee0;
}

/* ---------- 侧栏搜索框 ---------- */
.blog-details .col-lg-4 .servicing.style-two > .search-catagory {
	margin-bottom: 22px;
}

.blog-details .col-lg-4 .servicing.style-two > .search-catagory + .shop-categories {
	padding-top: 22px;
	border-top: 1px solid #e8eee0;
}

/* ---------- 轮播悬浮装饰：模板蔬菜图替换为燕窝 / 榴莲小图 ---------- */
.slider-shape1,
.slider-shape2,
.slider-shape {
	width: 110px;
	height: 110px;
	/* border-radius: 50%;
	overflow: hidden;
	background: #fff;
	border: 4px solid #fff;
	box-shadow: 0 10px 24px rgba(51, 51, 51, 0.12); */
}

.slider-shape1 img,
.slider-shape2 img,
.slider-shape img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

@media (max-width: 991px) {
	.slider-shape1,
	.slider-shape2,
	.slider-shape {
		display: none;
	}
}



/* ---------- 搜索无结果 ---------- */
.search-empty {
	text-align: center;
	padding: 20px 0 10px;
}

.search-empty h4 {
	font-size: 20px;
	color: var(--ink);
	margin-bottom: 10px;
}

.search-empty p {
	color: var(--ink-light);
	margin-bottom: 20px;
}

/* ---------- 轮播左右箭头：背景图改为燕窝礼盒 ---------- */
.owl-prev i,
.owl-next i {
	background-repeat: no-repeat, no-repeat;
	background-position: center, center;
	background-size: cover, cover;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.owl-prev i {
	background-image: linear-gradient(rgba(47, 53, 41, 0.35), rgba(47, 53, 41, 0.35)),
		url('/static/theme/product-giftbox.webp');
}

.owl-next i {
	background-image: linear-gradient(rgba(47, 53, 41, 0.35), rgba(47, 53, 41, 0.35)),
		url('/static/theme/promo-giftbox.webp');
}

/* ---------- 产品图库：统一为正方形（以 1.webp 1254x1254 为基准） ---------- */
.footer-gallary li {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 5px;
}



.footer-gallary img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 只展示 3 行（9 张），超出纵向滚动；滚动条默认隐藏，鼠标进入才显示 */
.footer-gallary ul {
	aspect-ratio: 1 / 2; /* 3 行正方形 + 2 个间距，正好等于容器宽度 */
	align-content: start;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 6px;
	scrollbar-width: none; /* Firefox：默认隐藏，仍可滚动 */
	scrollbar-color: transparent transparent;
}

.footer-gallary ul:hover {
	scrollbar-width: thin;
	scrollbar-color: var(--brand) rgba(255, 255, 255, 0.15);
}

.footer-gallary ul::-webkit-scrollbar {
	width: 6px;
}

.footer-gallary ul::-webkit-scrollbar-track {
	background: transparent;
	border-radius: 3px;
	transition: background 0.3s;
}

.footer-gallary ul::-webkit-scrollbar-thumb {
	background: transparent;
	border-radius: 3px;
	transition: background 0.3s;
}

.footer-gallary ul:hover::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.12);
}

.footer-gallary ul:hover::-webkit-scrollbar-thumb {
	background: var(--brand);
}

/* ---------- 灯箱（venobox）：图片固定 600x600 并上下居中 ---------- */
.vbox-container {
	max-width: 600px;
	padding: 0;
}

.vbox-content {
	display: flex;
	align-items: center;
	justify-content: center;
	float: none;
	min-height: 600px;
}

/* 灯箱打开时锁定背景滚动：JS 用 overflow:hidden 锁定（不改动文档高度，
   避免 iOS/移动端关闭后跳回顶部），此处与之一致。 */
body.vbox-open {
	overflow: hidden;
}

.vbox-overlay {
	overscroll-behavior: contain;
}

.vbox-container img {
	width: 600px;
	height: 600px;
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	margin: 0 auto;
}

@media (max-width: 767px) {
	.vbox-content {
		min-height: 320px;
	}

	.vbox-container img {
		width: 90vw;
		height: 90vw;
	}
}
