/* 搜索页的样式 */
.joe_archive {
    border-radius: var(--radius-wrap); /* 设置搜索页容器的圆角，使用变量 */
    /* padding: 0 15px; */ /* 注释掉的内边距，当前未生效 */
    background: transparent; /* 背景设置为透明 */
}

.joe_archive__title {
    display: flex; /* 使用弹性布局 */
    align-items: center; /* 垂直居中对齐 */
    color: var(--main-color); /* 文字颜色使用主色调变量 */
    margin-bottom: 20px; /* 底部外边距20px */
}

.joe_archive__title-icon {
    width: 20px; /* 图标宽度20px */
    height: 20px; /* 图标高度20px */
    min-width: 20px; /* 最小宽度20px，防止缩小 */
    min-height: 20px; /* 最小高度20px，防止缩小 */
    margin-right: 5px; /* 右侧外边距5px，与标题文字分隔 */
}

.joe_archive__title-title {
    display: flex; /* 使用弹性布局 */
    align-items: center; /* 垂直居中对齐 */
}

.joe_archive__title-title .muted {
    color: var(--theme); /* 静默文字颜色使用主题色变量 */
    margin: 0 5px; /* 左右外边距5px，与周围元素分隔 */
}

.joe_archive__empty {
    display: flex; /* 使用弹性布局 */
    align-items: center; /* 垂直居中对齐 */
    justify-content: center; /* 水平居中对齐 */
    flex-direction: column; /* 元素垂直排列 */
    padding: 50px 0; /* 上下内边距50px，左右0 */
    color: var(--routine); /* 文字颜色使用常规色变量 */
}

.joe_archive__empty-icon {
    margin-bottom: 30px; /* 底部外边距30px，与下方文字分隔 */
    fill: var(--routine); /* 图标填充颜色使用常规色变量 */
}

.joe_archive__category-hero,
.joe_category_hub__hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 14px;
	padding: 22px;
	color: #fff;
	background: linear-gradient(135deg, #1683f7 0%, #23b7a9 52%, #ffb84d 100%);
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(22, 131, 247, .18);
}

.joe_archive__category-hero .eyebrow,
.joe_category_hub__hero .eyebrow {
	display: inline-flex;
	margin-bottom: 8px;
	padding: 4px 9px;
	color: rgba(255, 255, 255, .92);
	font-size: 12px;
	font-weight: 700;
	background: rgba(255, 255, 255, .18);
	border-radius: 999px;
}

.joe_archive__category-hero h1,
.joe_category_hub__hero h1 {
	margin: 0;
	font-size: 28px;
	font-weight: 900;
	line-height: 1.2;
}

.joe_archive__category-hero p,
.joe_category_hub__hero p {
	max-width: 560px;
	margin: 8px 0 0;
	color: rgba(255, 255, 255, .88);
	font-size: 14px;
	line-height: 1.7;
}

.joe_archive__category-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.joe_archive__category-meta span,
.joe_archive__category-all {
	display: inline-flex;
	height: 32px;
	padding: 0 12px;
	align-items: center;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	background: rgba(255, 255, 255, .18);
	border-radius: 999px;
}

.joe_archive__category-all {
	flex-shrink: 0;
	height: 38px;
	background: rgba(255, 255, 255, .24);
}

.joe_archive__category-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 18px;
	padding: 2px 0 6px;
	overflow-x: auto;
}

.joe_archive__category-tabs a {
	display: inline-flex;
	height: 34px;
	padding: 0 12px;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	color: var(--routine);
	font-size: 13px;
	font-weight: 700;
	background: var(--background);
	border: 1px solid var(--classC);
	border-radius: 999px;
}

.joe_archive__category-tabs a.active {
	color: var(--theme);
	background: var(--classD);
}

.joe_archive__category-tabs span {
	color: var(--minor);
	font-weight: 600;
}

.joe_category_hub {
	display: grid;
	gap: 16px;
}

.joe_category_hub__search {
	display: flex;
	width: min(310px, 100%);
	height: 42px;
	padding: 0 13px;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, .2);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
}

.joe_category_hub__search .svg {
	width: 16px;
	height: 16px;
	fill: rgba(255, 255, 255, .9);
}

.joe_category_hub__search input {
	width: 100%;
	min-width: 0;
	color: #fff;
	background: transparent;
	border: 0;
	outline: 0;
}

.joe_category_hub__search input::placeholder {
	color: rgba(255, 255, 255, .72);
}

.joe_category_hub__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.joe_category_hub__stats div {
	padding: 16px;
	background: var(--background);
	border: 1px solid var(--classC);
	border-radius: 14px;
}

.joe_category_hub__stats strong {
	display: block;
	color: var(--main);
	font-size: 24px;
	line-height: 1;
}

.joe_category_hub__stats span {
	display: block;
	margin-top: 6px;
	color: var(--minor);
	font-size: 13px;
}

.joe_category_hub__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.joe_category_card {
	background: var(--background);
	border: 1px solid var(--classC);
	border-radius: 16px;
	overflow: hidden;
}

.joe_category_card__main {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	gap: 12px;
	padding: 16px;
	align-items: center;
	color: var(--main);
}

.joe_category_card__main .icon {
	display: inline-flex;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	color: var(--theme);
	font-weight: 900;
	background: var(--classD);
	border-radius: 14px;
}

.joe_category_card__main .body {
	min-width: 0;
}

.joe_category_card__main .title,
.joe_category_card__main .desc {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.joe_category_card__main .title {
	font-size: 16px;
	font-weight: 800;
}

.joe_category_card__main .desc {
	margin-top: 5px;
	color: var(--minor);
	font-size: 13px;
}

.joe_category_card__main .count {
	color: var(--theme);
	font-weight: 800;
}

.joe_category_card__children {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 16px 16px;
}

.joe_category_card__children a {
	display: inline-flex;
	height: 30px;
	padding: 0 10px;
	align-items: center;
	gap: 6px;
	color: var(--routine);
	font-size: 13px;
	background: var(--classA);
	border-radius: 999px;
}

.joe_category_card__children span {
	color: var(--theme);
	font-size: 12px;
}

.joe_category_hub__empty {
	padding: 28px 0;
	color: var(--minor);
	text-align: center;
}

.joe_category_hub__empty[hidden] {
	display: none !important;
}

.joe_category_hub [hidden] {
	display: none !important;
}

@media (max-width: 768px) {
	.joe_archive__category-hero,
	.joe_category_hub__hero {
		display: grid;
		padding: 18px;
		border-radius: 16px;
	}

	.joe_archive__category-hero h1,
	.joe_category_hub__hero h1 {
		font-size: 24px;
	}

	.joe_category_hub__stats,
	.joe_category_hub__grid {
		grid-template-columns: 1fr;
	}

	.joe_category_hub__stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.joe_category_hub__stats div {
		padding: 13px 10px;
		text-align: center;
	}

	.joe_category_hub__stats strong {
		font-size: 20px;
	}
}
