/* 【主题层】（themes/tailwind）
   本文件是 HTMLy 主题 tailwind 的自定义补充样式，配合 tailwind.css 与 typography.css 使用，
   主要处理目录、导航、搜索面板、标签与缩略图等细节样式。
*/
/* 右侧内边距工具类补充。 */
.pr-6 {
	padding-right:1.5rem
}

/* 标题锚点图标：使锚点 SVG 与标题文字保持同行显示。 */
.anchor svg {
	display:inline;
}

/* 目录容器：深色模式与浅色模式下分别设置背景与边框配色。 */
.dark .toc-wrapper {
	background-color: var(--tw-prose-pre-bg)!important;
	border-color: rgb(55 65 81/var(--tw-divide-opacity))!important;
}

.light .toc-wrapper {
	border-color: rgb(229 231 235/var(--tw-divide-opacity))!important;
}

/* 目录、相关文章与最近文章中的链接统一去除下划线。 */
.toc-wrapper a, 
.related-posts a,
.recent-posts a {
	text-decoration: none;
}

/* 目录条目：默认隐藏链接文字，仅在鼠标悬停时显示。 */
.toc-link a {
	display:none;
}

.toc-link:hover a{
	display:inline-block;
}

/* 标签与分类：标签、分类链接的右边距与行高。 */
.tags a {
	margin-right: .75rem;
}

.category a {
	margin-right: .1rem;	
}

.category {
	line-height:3.2rem;
}

/* 阅读更多链接：继承父级文字装饰样式。 */
.read-more {
	text-decoration:inherit;
}

/* 顶部导航与移动端导航：菜单项的排列方式、字号与间距。 */
.nav-top li {
	display:inline-block;
    margin-left: 1.5rem;
	font-weight: 500;
}

.nav-mobile li{
	outline-width: 0;
	outline-style: solid;
	letter-spacing: .1em;
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 2rem;
	padding-right: 1rem;
	padding-top: .5rem;
	padding-bottom: .5rem;
	margin-bottom: 1rem;
}

/* 移动端菜单容器：默认隐藏，由 is-menu-open 类控制显示。 */
.menu-mobile {
	display:none;
}

/* 响应式：宽度小于 640px 时隐藏顶部导航，改用可展开的移动菜单。 */
@media (max-width: 640px) {
	.nav-top {
		display:none;
	}
	.is-menu-open .menu-mobile {
		display:block!important;
	}
}

/* 搜索表单：默认隐藏，点击搜索按钮后以弹性布局展开。 */
.search-form {
	display:none;
}

.is-search-open .search-form {
	display: flex;
}

/* 标签悬停色：浅色与深色模式下分别使用不同的强调色。 */
.tags a:hover {
	color:rgb(190 24 93);
}


.dark .tags a:hover {
	color:rgb(244 114 182);
}

/* 文章缩略图：相对定位的容器，悬停时显示遮罩图标。 */
.thumbnail {
	position:relative;
	display:block;
}

/* 导航中的二级子菜单默认隐藏。 */
.nav li > ul {
	display:none;
}

/* 脚注区域：去掉上边距与分隔线并调整内边距。 */
.footnotes {
	margin-top:0;
	border:none;
}

.footnotes ol {
	margin-bottom:0;
	padding-top: 1.5em;
}

.footnotes > hr {
	margin:0;
}

/* 缩略图遮罩图标：绝对居中定位、圆角与过渡动画。 */
.thumb-icon { 
	background: rgba(0,0,0,0.7); 
	color: #fff; 
	text-align: center; 
	display: block; 
	width: 32px; 
	height: 32px; 
	position: absolute; 
	bottom: 50%; 
	left: 50%; 
	margin-left: -16px; 
	margin-bottom: -16px;
	-webkit-border-radius: 4px; 
	border-radius: 4px;
	-moz-transition: all 0.7s ease; 
	-webkit-transition: all 0.7s ease; 
	transition: all 0.7s ease;
}

.thumb-icon svg {
  margin: 1px 0 0 2px;
}

/* 缩略图悬停时遮罩图标反转配色。 */
.thumbnail:hover .thumb-icon { 
	background: #fff; 
	color: #333; 
}

/* 最近文章列表：调整左侧缩进。 */
.recent-posts > ul {
	padding-left: 15px;
}