@import url("/wp-content/themes/bigboom/css/rfj-red-swatches.css?v=1787855429");

.rfj-post-sidebar-layout {
	position: sticky;
	top: 78px;
	min-width: 0;
	z-index: 98;
}

.admin-bar .rfj-post-sidebar-layout {
	top: 110px;
}

.rfj-post-sidebar {
	display: grid;
	gap: 18px;
}

/* 广告通过统一排期动态加载，空位不占空间；图片按原始宽高比自适应。 */
.rfj-post-sidebar > .rfj-ad-dynamic-slot {
	display: none;
}

.rfj-post-sidebar > .rfj-ad-position {
	min-width: 0;
	overflow: hidden;
	border-radius: 0;
}

.rfj-post-sidebar > .rfj-ad-position a,
.rfj-post-sidebar > .rfj-ad-position img {
	display: block;
	width: 100%;
}

.rfj-post-sidebar > .rfj-ad-position img {
	height: auto;
	border-radius: 0 !important;
}

.rfj-post-sidebar__section {
	overflow: hidden;
	padding: 16px;
	border: 1px solid #e8e8ed;
	border-radius: 12px;
	background: #fff;
}

.rfj-post-sidebar__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: -2px 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.rfj-post-sidebar__heading h2 {
	margin: 0;
	color: var(--rfj-text-primary);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

/* 联系厂商模块在其他详情页沿用原有标题装饰。 */
.rfj-post-sidebar__section--company_contact .rfj-post-sidebar__heading h2 {
	display: flex;
	align-items: center;
	gap: 9px;
}

.rfj-post-sidebar__section--company_contact .rfj-post-sidebar__heading h2::before {
	display: block;
	width: 4px;
	height: 22px;
	background: var(--rfj-red-e51c23);
	content: "";
}

/* 文章、活动和视频详情页的联系厂商标题使用普通标题样式，不添加装饰竖线。 */
body.single-post .rfj-post-sidebar__section--company_contact .rfj-post-sidebar__heading h2,
body.rfj-single-event-page-body .rfj-post-sidebar__section--company_contact .rfj-post-sidebar__heading h2,
body.rfj-single-video-page-body .rfj-post-sidebar__section--company_contact .rfj-post-sidebar__heading h2 {
	display: block;
	gap: 0;
}

body.single-post .rfj-post-sidebar__section--company_contact .rfj-post-sidebar__heading h2::before,
body.rfj-single-event-page-body .rfj-post-sidebar__section--company_contact .rfj-post-sidebar__heading h2::before,
body.rfj-single-video-page-body .rfj-post-sidebar__section--company_contact .rfj-post-sidebar__heading h2::before {
	display: none;
	content: none;
}

/* 文章、活动和视频侧栏的厂商信息直接融入模块，不再套用列表卡片边框。 */
body.single-post .rfj-post-sidebar .rfzj_company_card_directory,
body.rfj-single-event-page-body .rfj-post-sidebar .rfzj_company_card_directory,
body.rfj-single-video-page-body .rfj-post-sidebar .rfzj_company_card_directory {
	margin-bottom: 0;
}

body.single-post .rfj-post-sidebar .rfzj_company_card_directory > .rfzj_company_card--list,
body.single-post .rfj-post-sidebar .rfzj_company_card_directory > .rfzj_company_card--mobile_list,
body.rfj-single-event-page-body .rfj-post-sidebar .rfzj_company_card_directory > .rfzj_company_card--list,
body.rfj-single-event-page-body .rfj-post-sidebar .rfzj_company_card_directory > .rfzj_company_card--mobile_list,
body.rfj-single-video-page-body .rfj-post-sidebar .rfzj_company_card_directory > .rfzj_company_card--list,
body.rfj-single-video-page-body .rfj-post-sidebar .rfzj_company_card_directory > .rfzj_company_card--mobile_list {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body.single-post .rfj-post-sidebar .rfzj_company_card_directory > .rfzj_company_card--list:hover,
body.single-post .rfj-post-sidebar .rfzj_company_card_directory > .rfzj_company_card--mobile_list:hover,
body.rfj-single-event-page-body .rfj-post-sidebar .rfzj_company_card_directory > .rfzj_company_card--list:hover,
body.rfj-single-event-page-body .rfj-post-sidebar .rfzj_company_card_directory > .rfzj_company_card--mobile_list:hover,
body.rfj-single-video-page-body .rfj-post-sidebar .rfzj_company_card_directory > .rfzj_company_card--list:hover,
body.rfj-single-video-page-body .rfj-post-sidebar .rfzj_company_card_directory > .rfzj_company_card--mobile_list:hover {
	border: 0;
	box-shadow: none;
	transform: none;
}

/* 活动报名主按钮复用全站统一的渐变红色，不再使用旧的纯色红按钮。 */
body.rfj-single-event-page-body .rfj-single-event-button--primary,
body.rfj-single-event-page-body .rfj-single-event-desktop-action-bar__primary .rfj-post-actions-container .rfj-single-event-button--primary {
	border-color: transparent;
	background: var(--rfj-action-gradient);
	background-size: var(--rfj-action-gradient-size);
	box-shadow: var(--rfj-action-gradient-shadow);
	color: #fff;
}

body.rfj-single-event-page-body .rfj-single-event-button--primary:hover,
body.rfj-single-event-page-body .rfj-single-event-button--primary:focus,
body.rfj-single-event-page-body .rfj-single-event-desktop-action-bar__primary .rfj-post-actions-container .rfj-single-event-button--primary:hover,
body.rfj-single-event-page-body .rfj-single-event-desktop-action-bar__primary .rfj-post-actions-container .rfj-single-event-button--primary:focus {
	border-color: transparent;
	background: var(--rfj-action-gradient-hover);
	background-size: var(--rfj-action-gradient-hover-size);
	box-shadow: var(--rfj-action-gradient-shadow-hover);
	color: #fff;
}

body.rfj-single-event-page-body .rfj-single-event-mobile-nav__action:not(.rfj-single-event-mobile-nav__action--secondary):not(.is-disabled) {
	background: var(--rfj-action-gradient);
	background-size: var(--rfj-action-gradient-size);
}

.rfj-post-sidebar__heading a {
	flex: 0 0 auto;
	color: var(--rfj-text-tertiary);
	font-size: 12px;
	text-decoration: none;
}

.rfj-post-sidebar__heading a:hover,
.rfj-post-sidebar__heading a:focus {
	color: var(--rfj-red-legacy-brand);
}

.rfj-post-sidebar__post-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rfj-post-sidebar__post-list li {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 8px;
	align-items: start;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.rfj-post-sidebar__post-list li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.rfj-post-sidebar__post-list a {
	display: -webkit-box;
	overflow: hidden;
	color: var(--rfj-text-primary);
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.rfj-post-sidebar__post-list a:hover,
.rfj-post-sidebar__post-list a:focus {
	color: var(--rfj-red-legacy-brand);
}

.rfj-post-sidebar__rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 5px;
	background: #f2f2f2;
	color: #666;
	font-size: 12px;
	font-weight: 700;
}

.rfj-post-sidebar__software-list .rfzj_software_card:first-child {
	padding-top: 0;
}

.rfj-post-sidebar__software-list .rfzj_software_card:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.rfj-post-sidebar__section--related_software .rfzj_software_card--compact {
	grid-template-columns: 42px minmax(0, 1fr) auto;
}

.rfj-post-sidebar__section--related_software .rfzj_software_card--compact .rfzj_software_card__cta {
	display: inline-flex;
}

.rfj-post-sidebar__post-list li:nth-child(1) .rfj-post-sidebar__rank {
	background: var(--rfj-red-legacy-brand);
	color: #fff;
}

.rfj-post-sidebar__post-list li:nth-child(2) .rfj-post-sidebar__rank {
	background: var(--rfj-red-e95d54);
	color: #fff;
}

.rfj-post-sidebar__post-list li:nth-child(3) .rfj-post-sidebar__rank {
	background: #f9953e;
	color: #fff;
}

.rfj-post-sidebar .rfzj_company_card--sidebar {
	grid-template-columns: 58px minmax(0, 1fr);
	gap: 12px;
	min-height: 0;
	padding: 0;
	border: 0;
}

.rfj-post-sidebar .rfzj_company_card--sidebar .rfzj_company_card__icon {
	width: 58px;
	height: 58px;
	border-radius: 12px;
	box-shadow: none;
}

.rfj-post-sidebar .rfzj_company_card--sidebar .rfzj_company_card__title {
	font-size: 15px;
}

.rfj-post-sidebar .rfzj_company_card--sidebar .rfzj_company_card__cta {
	grid-column: 1 / -1;
	width: 100%;
	margin-top: 4px;
	text-align: center;
}

.rfj-post-sidebar .rfzj_advisor_card {
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 10px;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.rfj-post-sidebar .rfzj_advisor_card__avatar {
	width: 56px;
	height: 56px;
	border-radius: 12px;
}

.rfj-post-sidebar .rfzj_advisor_card__name {
	font-size: 15px;
}

.rfj-post-sidebar .rfzj_advisor_card__badge {
	display: none;
}

.rfj-post-sidebar .rfzj_advisor_card__actions {
	gap: 6px;
}
