/*!
Theme Name: ruancang子主题
Template: ruancang
Version: 1.99,
Description:ruancang.net
*/

/*下面是你自己DIY的css样式代码*/
:root {
	--rc-color-dark: #15181d;
	--rc-color-dark-light-1: #202328;
	--rc-color-border: #43464b;
}
/** 黑色主题 */
body {
	background: var(--rc-color-dark);
}

.sidenav-wrap .box,
.sidenav-wrap .list .item,
.theme-header-wrap,
.theme-footer {
	color: #dfdfd6;
	background: var(--rc-color-dark-light-1);
}

.sidenav-wrap .list .item {
	border-color: var(--rc-color-dark);
}

@media screen and (max-width: 768px) {
	.sidenav-wrap .sidenav,
	.theme-header-wrap {
		border-color: var(--rc-color-border);
	}
}

/** 隐藏元素 */
.theme-footer .aside-wrap,
.post-wrap .post-header .post-meta {
	display: none;
}

@media screen and (max-width: 768px) {
	.mobile-menu {
		display: none;
	}
}

/** header优化 */
.theme-header-wrap .header {
	display: flex;
	justify-content: center;
}

/** sidenav 列表优化 */
.list .is-scale-thumbnail img {
	width: 50%;
	height: 50%;
	object-fit: scale-down;
	transform: translate(50%, 50%);
	transform-origin: center;
}

.list_g1 .info {
	padding: 15px;
}

.list_g1 .title {
	text-align: center;
}

.list_g1 .excerpt,
.list_n2 .excerpt {
	display: none !important;
}

.child-wrap .list {
	padding: 0 15px;
}

#list_n2 .thumbnail-wrap,
#list_n2 .thumbnail {
	width: 40px;
	height: 40px;
}

.child-wrap .list_n2 .main {
	padding: 17px 15px;
}

.child-wrap .list_n2 .thumbnail-wrap {
	display: none;
}

.sidenav-wrap .sidenav-content .child-section {
	margin: 8px 0;
}

.sidenav-wrap .sidenav-content .header h3 {
	font-size: 17px;
	font-weight: normal;
}

.sidenav-wrap .sidenav-content .arrow {
	color: var(--un-color-text-2);
}

.sidenav-wrap .sidenav-content .child-wrap h3 .icon {
	width: 32px;
	height: 32px;
	margin-right: 12px;
}

/** 不能有 margin-bottom ，否则有点一卡一卡的感觉 */
.sidenav-wrap .sidenav-content .child-section .collapse-item-header {
	margin-bottom: 0;
}

@media screen and (max-width: 768px) {
	.list_g1 .item-wrap {
		width: 50% !important;
	}

	.list_g1 .is-scale-thumbnail {
		padding-bottom: 50% !important;
	}
}

/** 文章页 */
#page-content:has(.post-wrap) {
	width: 950px;
}

.post-content > h3 {
	font-size: 22px;
	font-weight: 600;
	margin: 48px 0 18px;
}

.post-content > h2 + h3 {
	margin-top: 34px;
}
