/**
 * 全站分类左栏 — 与使用场景页 (yw-scene-sidebar) 一致
 */

.yw-cat-sidebar.yw-aside {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 14px;
	position: sticky;
	top: 88px;
	align-self: start;
	background: var(--yw-surface);
	border: 1px solid var(--yw-border);
	border-radius: var(--yw-radius);
	box-shadow: var(--yw-shadow);
}

.yw-cat-sidebar > * + * {
	margin-top: 0;
	padding-top: 12px;
	border-top: 1px solid var(--yw-border);
}

.yw-cat-sidebar > .yw-aside__block + .yw-aside__block,
.yw-cat-sidebar > .yw-aside__block + .yw-aside__cta,
.yw-cat-sidebar > .yw-aside__block + [class*='-sidebar__cta'],
.yw-cat-sidebar > .yw-aside__cta + .yw-aside__block,
.yw-cat-sidebar > [class*='-sidebar__cta'] + .yw-aside__block {
	margin-top: 0;
	padding-top: 12px;
	border-top-color: var(--yw-border);
}

.yw-cat-sidebar .yw-aside__block {
	margin: 0;
}

.yw-cat-sidebar .yw-aside__title,
.yw-cat-sidebar .yw-cat-sidebar__section-title {
	margin: 0 0 10px;
	padding-left: 0;
	border-left: none;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: #0f172a;
	letter-spacing: 0.01em;
}

.yw-cat-sidebar .yw-aside-list,
.yw-cat-sidebar .yw-cat-sidebar__list {
	gap: 6px;
}

.yw-cat-sidebar .yw-aside-list__link,
.yw-cat-sidebar .yw-cat-sidebar__link {
	padding: 8px 10px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
}

.yw-cat-sidebar .yw-aside-list__link.is-active,
.yw-cat-sidebar .yw-cat-sidebar__link.is-active {
	background: #eef2ff;
	color: var(--yw-primary-dark);
	font-weight: 700;
}

.yw-cat-sidebar .yw-aside-list__count {
	font-size: 12px;
	color: var(--yw-muted);
}

/* 顶部主按钮（投稿 / 发帖 / 发布） */
.yw-cat-sidebar > .yw-btn.yw-btn--block:first-child {
	width: 100%;
	font-weight: 700;
	border-radius: 12px;
}

/* CTA 区块（与场景页一致） */
.yw-cat-sidebar > .yw-aside__cta {
	margin-top: 0;
	padding: 14px;
	border-radius: 14px;
	background: linear-gradient(135deg, #7c3aed, var(--yw-primary));
	color: #fff;
	font-size: 13px;
	line-height: 1.55;
}

.yw-cat-sidebar .yw-aside__cta p {
	margin: 0 0 10px;
	color: rgba(255, 255, 255, 0.95);
}

.yw-cat-sidebar .yw-aside__cta .yw-btn {
	margin-top: 6px;
}

/* 热门标签云（资讯 / 搜索 / 投稿等复用） */
.yw-cat-sidebar .yw-news-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.yw-cat-sidebar .yw-news-tag-cloud__item {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	max-width: 100%;
	padding: 6px 11px 6px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	color: #475569;
	background: #f8fafc;
	border: 1px solid #e8edf3;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.yw-cat-sidebar .yw-news-tag-cloud__item:hover,
.yw-cat-sidebar .yw-news-tag-cloud__item.is-active {
	color: var(--yw-primary-dark);
	background: #eef2ff;
	border-color: #c7d2fe;
	text-decoration: none;
}

.yw-cat-sidebar .yw-news-tag-cloud__hash {
	font-size: 12px;
	font-weight: 800;
	color: var(--yw-primary);
	line-height: 1;
	flex-shrink: 0;
}

.yw-cat-sidebar .yw-news-tag-cloud__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 投稿门户 · 其他入口 */
.yw-cat-sidebar .yw-submit-tool-sidebar__entry-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 4px;
}

.yw-cat-sidebar .yw-submit-tool-sidebar__entry {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.yw-cat-sidebar .yw-submit-tool-sidebar__entry:hover {
	background: #f3f4f6;
	color: var(--yw-primary);
	text-decoration: none;
}

.yw-cat-sidebar .yw-submit-tool-sidebar__entry-ico {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #f1f5f9;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	flex-shrink: 0;
}

/* 社区左栏：纳入统一容器，保留导航结构 */
.yw-community-sidebar--left.yw-cat-sidebar > .yw-community-nav {
	border-top: none;
	padding-top: 0;
}

.yw-community-sidebar--left.yw-cat-sidebar > .yw-btn + .yw-community-nav {
	padding-top: 12px;
	border-top: 1px solid var(--yw-border);
}
