/* 资讯文章详情页 —— 左栏侧边栏 + 右栏正文，仿 zing 文章页 */

.jby-post-layout {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 44px;
	align-items: start;
	margin: 6px 0 0;
}

.jby-post { max-width: 860px; min-width: 0; grid-column: 2; grid-row: 1; }
.jby-post-side { grid-column: 1; grid-row: 1; }

/* ---------- 侧边栏 ---------- */
.jby-post-side {
	display: flex; flex-direction: column; gap: 26px;
	position: sticky; top: 16px;
}

.jby-widget {
	background: #fff;
	border: 1px solid var(--jby-border);
	border-radius: 10px;
	padding: 18px 18px 20px;
}
.jby-widget-title {
	margin: 0 0 14px; padding: 0 0 12px;
	font-size: 16px; font-weight: 600; color: var(--jby-primary);
	border-bottom: 2px solid var(--jby-accent);
	display: inline-block;
}

/* 最新资讯列表 */
.jby-widget-posts { list-style: none; margin: 0; padding: 0; }
.jby-widget-posts li { border-bottom: 1px solid var(--jby-border); }
.jby-widget-posts li:last-child { border-bottom: none; }
.jby-wp-item {
	display: flex; gap: 12px; align-items: center;
	padding: 11px 2px; text-decoration: none; color: inherit;
}
.jby-wp-thumb {
	width: 72px; height: 54px; flex: 0 0 72px;
	object-fit: cover; border-radius: 5px; background: var(--jby-bg-soft);
}
.jby-wp-thumb--empty { display: block; background: var(--jby-bg-soft); }
.jby-wp-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jby-wp-title {
	font-size: 14px; line-height: 1.5; color: #2B3540; font-weight: 500;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	transition: color .15s;
}
.jby-wp-item:hover .jby-wp-title { color: var(--jby-accent); }
.jby-wp-date { font-size: 12px; color: var(--jby-muted); }
.jby-widget-empty { margin: 4px 0; font-size: 13px; color: var(--jby-muted); line-height: 1.8; }

/* 业务咨询卡片 */
.jby-widget-cta { background: var(--jby-bg-soft); border-color: transparent; }
.jby-widget-cta .jby-widget-title { border-bottom-color: var(--jby-accent); }
.jby-widget-cta-text {
	margin: 0 0 14px; font-size: 13.5px; line-height: 1.85; color: #4A5560;
}
.jby-widget-cta-btn {
	display: block; text-align: center; padding: 10px 0;
	border-radius: 5px; background: var(--jby-accent); color: #fff;
	font-size: 14px; text-decoration: none; transition: background .15s;
}
.jby-widget-cta-btn:hover { background: var(--jby-primary); }

/* ---------- 上一篇 / 下一篇 ---------- */
.jby-post-nav {
	display: flex; gap: 14px; margin: 40px 0 0;
}
.jby-post-nav a {
	flex: 1 1 0; min-width: 0;
	padding: 14px 16px; border: 1px solid var(--jby-border); border-radius: 8px;
	text-decoration: none; color: inherit; background: #fff; transition: border-color .15s;
}
.jby-post-nav a:hover { border-color: var(--jby-accent); }
.jby-post-nav .lbl { display: block; font-size: 12px; color: var(--jby-muted); margin-bottom: 4px; }
.jby-post-nav .tt {
	display: block; font-size: 14.5px; color: var(--jby-primary); font-weight: 500; line-height: 1.5;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jby-post-nav-next { text-align: right; }

.jby-post-head { padding: 8px 0 28px; }
.jby-post-head .eb { font-size: 12px; letter-spacing: .14em; color: var(--jby-accent); font-weight: 500; }
.jby-post-head h1 {
	font-size: 32px; line-height: 1.42; color: var(--jby-primary);
	margin: 10px 0 14px; font-weight: 600; text-wrap: balance;
}
.jby-post-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--jby-muted); }
.jby-post-head .sep { color: #C3CCD6; }

.jby-post-cover { margin: 0 0 34px; }
.jby-post-cover img {
	display: block; width: 100%; height: auto; max-height: 520px;
	object-fit: cover; object-position: 50% 45%;
	border-radius: 4px;
}

.jby-post-body { font-size: 16.5px; line-height: 1.95; color: #2B3540; }
.jby-post-body > p { margin: 0 0 22px; }
.jby-post-body h2 { font-size: 21px; line-height: 1.5; color: var(--jby-primary); margin: 36px 0 14px; font-weight: 600; }
.jby-post-body h3 { font-size: 18px; line-height: 1.55; color: var(--jby-primary); margin: 28px 0 12px; font-weight: 600; }
.jby-post-body ul,
.jby-post-body ol { margin: 0 0 22px; padding-left: 22px; }
.jby-post-body li { margin: 6px 0; }
.jby-post-body a { color: var(--jby-accent); }
.jby-post-body blockquote {
	margin: 26px 0; padding: 14px 22px; border-left: 3px solid var(--jby-border);
	background: var(--jby-bg-soft); color: #46525E; font-size: 15.5px;
}

/* 正文图：尺寸统一由这里管，正文 HTML 不写内联 style。
 * width:auto + max-width:100% —— 原图窄就按原尺寸居中，不放大、不糊。 */
.jby-post-body figure { margin: 30px 0; }
.jby-post-body figure img {
	display: block; width: auto; max-width: 100%; height: auto;
	margin: 0 auto; border: 1px solid var(--jby-border); border-radius: 3px;
}
.jby-post-body figcaption { margin-top: 8px; text-align: center; font-size: 12.5px; line-height: 1.7; color: var(--jby-muted); }

/* 文章标签（参照猎者式：上下细线夹住、浅灰填充胶囊、无描边、7px 圆角） */
.jby-post-tags {
	margin: 34px 0 0; padding: 18px 0;
	border-top: 1px solid var(--jby-border); border-bottom: 1px solid var(--jby-border);
	font-size: 13px; color: var(--jby-muted);
}
.jby-post-tags .lbl { color: var(--jby-muted); margin-right: 4px; }
.jby-post-tags a {
	display: inline-block; margin: 0 6px 5px 0; padding: 5px 12px;
	background: var(--jby-bg-soft); border-radius: 7px;
	color: var(--jby-text); font-size: 12.5px; text-decoration: none; transition: .14s;
}
.jby-post-tags a:hover { background: #E8F0F8; color: var(--jby-accent); }

.jby-post-foot {
	margin: 44px 0 0; padding: 22px 26px; background: var(--jby-bg-soft);
	border-left: 3px solid var(--jby-accent); border-radius: 0 6px 6px 0;
}
.jby-post-foot b { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 600; color: var(--jby-primary); }
.jby-post-foot p { margin: 0 0 12px; font-size: 14px; line-height: 1.85; color: #4A5560; }
.jby-post-foot a {
	display: inline-block; padding: 9px 20px; border-radius: 4px;
	background: var(--jby-accent); color: #fff; font-size: 14px; text-decoration: none;
}
.jby-post-foot a:hover { background: var(--jby-primary); }

.jby-post-more { margin: 52px 0 0; }
.jby-post-more > h2 {
	font-size: 19px; font-weight: 600; color: var(--jby-primary);
	margin: 0 0 16px; padding-left: 11px; border-left: 4px solid var(--jby-accent);
}

.jby-post-back { margin: 30px 0 40px; font-size: 14px; }
.jby-post-back a { color: var(--jby-muted); text-decoration: none; }
.jby-post-back a:hover { color: var(--jby-accent); }

/* 侧边栏在平板/手机端收起，正文满宽，侧边栏置于正文下方 */
@media (max-width: 900px) {
	.jby-post-layout { grid-template-columns: 1fr; gap: 30px; }
	.jby-post { grid-column: 1; grid-row: auto; order: 1; max-width: 100%; }
	.jby-post-side { grid-column: 1; grid-row: auto; position: static; order: 2; }
}

@media (max-width: 768px) {
	.jby-post-head { padding-bottom: 22px; }
	.jby-post-head h1 { font-size: 24px; }
	.jby-post-cover { margin-bottom: 26px; }
	.jby-post-cover img { max-height: 320px; }
	.jby-post-body { font-size: 16px; line-height: 1.9; }
	.jby-post-body h2 { font-size: 19px; margin-top: 30px; }
	.jby-post-nav { flex-direction: column; gap: 10px; }
	.jby-post-nav-next { text-align: left; }
}
