/* ============================================================
 * 文章底部操作栏（点赞/分享/收藏）+ 分享弹层 + 海报生成
 * 配套 inc/poster-share.php 与 assets/js/poster-share.js
 * 样式参照 Zibll 操作栏：24px 图标 + 12.6px 文字竖排，主色 #4e5358
 * ============================================================ */

/* ---------- 1. 操作栏 ---------- */
.entry-social {
	position: relative;
}

.zb-act-bar {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 40px;
	list-style: none;
	margin: 18px 0 4px;
	padding: 0;
}

.zb-act-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	color: #4e5358;
	font-size: 12.6px;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	padding: 4px 2px;
	transition: color .2s ease;
}

.zb-act-btn:hover,
.zb-act-btn:focus {
	color: #2d8cf0;
	text-decoration: none;
}

.zb-act-btn .iconfont {
	font-size: 24px;
	line-height: 1;
}

.zb-act-label {
	white-space: nowrap;
}

.zb-act-btn.zb-liked {
	color: #f04a4a;
}

.zb-act-btn.zb-faved {
	color: #ffb800;
}

@media (max-width: 575px) {
	.zb-act-bar {
		gap: 34px;
	}
}

/* ---------- 2. 分享弹层（海报分享 / 复制链接） ---------- */
.zb-share-pop {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	border-radius: 10px;
	padding: 12px 15px;
	box-shadow: 0 0 10px 8px rgba(116, 116, 116, .08);
	min-width: 150px;
	z-index: 90;
	display: none;
}

.zb-share-pop.zb-open {
	display: block;
}

.zb-share-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 7px 6px;
	font-size: 14px;
	color: #4e5358;
	border-radius: 7px;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}

.zb-share-item:hover {
	background: rgba(50, 50, 50, .06);
	color: #4e5358;
	text-decoration: none;
}

.zb-share-ico {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #fff;
}

.zb-share-ico .iconfont {
	font-size: 20px;
	line-height: 1;
	color: #fff;
}

.zb-ico-poster {
	background: linear-gradient(135deg, #ffb14d, #ff8a3d);
}

.zb-ico-copy {
	background: linear-gradient(135deg, #58a6ff, #2d8cf0);
}

/* ---------- 3. 海报弹窗 ---------- */
.zb-poster-mask {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 20px;
	overflow: auto;
}

.zb-poster-card {
	width: 320px;
	max-width: 86vw;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
	flex: 0 0 auto;
}

.zb-poster-thumb {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.zb-poster-body {
	padding: 16px 16px 14px;
}

.zb-poster-title {
	font-size: 16.5px;
	font-weight: 700;
	color: #2b2f33;
	line-height: 1.45;
	border-left: 4px solid #2d8cf0;
	padding-left: 10px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.zb-poster-meta {
	margin-top: 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: #ff7a45;
}

.zb-poster-excerpt {
	margin-top: 10px;
	font-size: 13px;
	color: #6a7076;
	line-height: 1.75;
	text-align: justify;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}

.zb-poster-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 16px;
	border-top: 1px solid #f0f2f4;
	background: #fafbfc;
}

.zb-poster-brand {
	display: flex;
	align-items: center;
	min-width: 0;
}

/* LOGO 原始比例完整显示：不限宽高裁切，只做等比缩放约束 */
.zb-poster-brand img {
	width: auto;
	height: auto;
	max-height: 46px;
	max-width: 170px;
	object-fit: contain;
}

.zb-poster-qr {
	width: 72px;
	height: 72px;
	display: block;
	flex: 0 0 72px;
}

.zb-poster-cap {
	padding: 0 16px 12px;
	text-align: center;
	font-size: 11px;
	color: #9aa0a6;
	background: #fafbfc;
}

/* ---------- 4. 海报弹窗按钮（下载 / 关闭） ---------- */
.zb-poster-btns {
	display: flex;
	gap: 22px;
	flex: 0 0 auto;
}

.zb-poster-dl,
.zb-poster-close {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	transition: transform .15s ease, opacity .15s ease;
}

.zb-poster-dl:hover,
.zb-poster-close:hover {
	transform: translateY(-2px);
	opacity: .92;
}

.zb-poster-dl {
	background: linear-gradient(135deg, #4aa1f3, #2d8cf0);
}

.zb-poster-close {
	background: linear-gradient(135deg, #ff9a5a, #ff7a45);
}

.zb-poster-dl .iconfont,
.zb-poster-close .iconfont {
	font-size: 22px;
	line-height: 1;
	color: #fff;
}

.zb-poster-dl.zb-busy {
	opacity: .6;
	pointer-events: none;
}
