/**
 * Book Skin for Riven Theme
 * 第一部分：Book 原版 CSS（仅改图片路径）
 * 第二部分：Riven 最小适配
 */
a,abbr,acronym,address,applet,big,blockquote,body,caption,cite,code,dd,del,dfn,div,dl,dt,em,fieldset,font,form,h1,h2,h3,h4,h5,h6,html,iframe,ins,kbd,label,legend,li,object,ol,p,pre,q,s,samp,small,span,strike,sub,sup,table,tbody,td,tfoot,th,thead,tr,tt,ul,var {

	border: 0;

	font-family: inherit;

	font-size: 100%;

	font-style: inherit;

	font-weight: inherit;

	margin: 0;

	outline: 0;

	padding: 0;

	vertical-align: baseline;

}



::selection {

	background: #099;

	color: #fff

}



::-moz-selection {

	background: #099;

	color: #fff

}



::-webkit-selection {

	background: #099;

	color: #fff

}



body {

	font-family: "微软雅黑",Helvetica,Arial,sans-serif

}



img {

	margin: 0;

	padding: 0;

	border: 0

}



a {

	color: #099;

	text-decoration: none

}



a:active,a:hover {

	color: #333

}



a:focus {

	outline: 0

}



code,pre {

	font-family: Menlo,Monaco,Consolas,"Lucida Console","Courier New",monospace;

	font-size: .98em;

	padding: 3px;

	color: #444;

	overflow: auto;

	

}

pre {

	padding: 10px;

	overflow: auto;

	max-height: 300px;

	border:1px dashed #2d2d2d;

	/* background: rgba(245,242,240,0.3); */

}

blockquote {

	margin: 1em 1.5em;

	padding-left: 1.5em;

	border-left: 4px solid #099;

	background: rgba(159,156,144,.15);

	margin-right: 0;

	padding-right: 1em;

	color: #222;

	padding-top: 1em;

	padding-bottom: 1em;

}

h1,h2,h3,h4,h5,h6 {

	font-family: "微软雅黑",Helvetica,Arial,sans-serif

}



input[type=text],input[type=email],input[type=url],input[type=password],textarea {

	padding: 5px;

	border: 1px solid #E9E9E9;

	width: 100%;

	border-radius: 2px;

	-webkit-box-sizing: border-box;

	-moz-box-sizing: border-box;

	box-sizing: border-box;

	font-family: '微软雅黑';

}



textarea {

	resize: vertical

}



.site-name {

	display: block;

	z-index: 100;

	color: #000;

	position: fixed;

	bottom: 20px;

	width: 480px;

	text-align: right;

	z-index: 1;

	font-size: 48px;

}



#rightSchedule{

	position: absolute;

	bottom:20px;

	right: 50px;

	/* font-family:"Candara"; */

	font-size: 16px;

	z-index: 2;

}

#editpost{

	position: absolute;

	bottom:20px;

	left: 50px;

	/* font-family:"Candara"; */

	z-index: 2;

	font-size: 14px;

	

}

#editpost>a{

	color:#999!important;

}

.site-name .description {

	margin-bottom: 1.5em;

	margin-top: 1.5em;

	font-size: 18px

}



.nav-box {

	position: absolute;

	left: 590px;

	bottom: 150px;

	z-index: 1;

	transition: all 1.5s;

	opacity: 0;

}



#nav-menu {

	transition: all 1.5s;

	margin-left: -50px

}



#nav-menu>a>span {

	position: absolute;

	background: #352315;

	width: 6px;

	height: 6px;

	top: 18px;

	right: 6px;

	border-radius: 3px

}



#nav-menu a {

	position: relative;

	display: block;

	width: 80px;

	height: 40px;

	line-height: 40px;

	text-align: center;

	background: #077 ;

	color: #ccc;

	margin: 20px 0 0 0;

	box-shadow: 5px 5px 10px rgba(0,0,0,.2);

	border-left: 1px solid #666;

	border-top-right-radius: 5px;

	border-bottom-right-radius: 5px;

	z-index: 3;

	transition: all .6s;

	margin-left: -50px

}



#nav-menu a:hover {

	text-align: center;

	margin-left: 0;

	color: #fff

}



.nav-z {

	position: absolute;

	width: 40px;

	top: -470px;

	height: 860px;

	left: -40px;

	background: #f1eee3 url(../static/book-img/book-bg2.png) repeat-y -550px 0;

	z-index: 4

}



.page-s {

	background-color: rgba(0,0,0,.25);

	width: 10px;

	height: 10px;

	transform: skew(0deg,40deg);

	position: absolute;

	z-index: 2;

	margin-top: -5px

}



#closed {

	position: fixed;

	z-index: 1;

	width: 100%;

	height: 100%;

	top: 0;

	bottom: 0

}



.closed_txt {

	position: fixed;

	right: 0;

	bottom: 30px;

	border-top-left-radius: 8px;

	border-bottom-left-radius: 8px;

	height: 60px;

	width: 200px;

	text-align: center;

	color: #666;

	pointer-events: none;

	transition: all 1s;

	pointer-events: none;

}



.closed_txt>P {

	padding: 3px 0

}



#body-bg {

	position: fixed;

	top: 0;

	left: 0;

	width: 100%;

	height: 100%;

	background: #26190f url(../static/book-img/woodbg.jpg);

	overflow: hidden

}



#body {

	position: relative;

	display: block;

	width: 1200px;

	top: 0;

	margin: 0 auto;

	top: calc(50% - 430px)

}



#secondary {

	position: relative;

	width: 500px;

	height: 750px;

	margin-left: 60px;

	margin-top: 60px;

	z-index: 9

}



#secondary .post {

	padding-left: 20px;

	color: #000

}









#secondary .post a {

	color: #000

}



.widget {

	padding: 20px 0 20px 0

}



.widget-list li {

	font-size: .8em;

	padding: 2px 0 2px 0

}

.browsehappy{

	position: fixed;

	width: 100%;

	height: 100%;

	text-align: center;

	font-size: 40px;

	z-index: 1999;

	background:#444;

	color:#fff;

	padding-top: 100px;

}

#footer {

	text-align: center;

	font-size: .9em;

	color: #666;

	position: fixed;

	right: 30px;

	bottom: 5px;

z-index: 4

	

}



#footer a {

	color: #999;

}



#fullScreen {

	color: #888;

	cursor: pointer;

	position: absolute;

	background: rgba(0,0,0,.3);

	top: 20px;

	right: 20px;

	padding: 10px;

	z-index: 1

}



.mains {

	position: relative;

	display: flex;

	perspective: 8000px;

	margin-left: -300px;

	z-index: 2;

	pointer-events: none

}

#axjx_box {

	height: 860px;

	width: 600px;

	position: relative;

	display: inline-block;

}

#book-right {

	position: relative;

	box-shadow: 0 0 20px rgba(0,0,0,.4);

	height: 860px;

	width: 600px;

	background: #f1eee3 url(../static/book-img/book-bg2.png) repeat-y left;

	z-index: 4;

	pointer-events: auto

}



#book-left {

	transform: rotateY(180deg);

	transform-origin: right 0;

	box-shadow: 0 0 20px rgba(0,0,0,.4);

	height: 860px;

	width: 600px;

	box-sizing: border-box;

	background: #f1eee3 url(../static/book-img/book-bg.png) repeat-y right;

	position: relative;

	z-index: 9;

	pointer-events: auto;

}

.book-left-z {

	height: 860px;

	width: 600px;

	box-sizing: border-box;

	background: #f1eee3 url(../static/book-img/book-bg.png) repeat-y right;

	position: absolute;

	z-index: 9;

	top: 0;

	display: none;

	pointer-events: auto

}



.book-shadow {

	position: absolute;

	height: 45px;

	top: 815px;

	z-index: 0;

	width: 600px;

	transition: all 2s

}

.book-shadow-on{

	box-shadow: 0px 20px 20px rgba(0,0,0,0.5);

}

#Book-cover {

	position: absolute;

	height: 100%;

	width: 100%;

	cursor: pointer;

	transform: rotateY(180deg);

         -webkit-user-select:none;

    -moz-user-select:none;

    -ms-user-select:none;

    user-select:none;

	z-index: 6

}



.Book-cover-c {

	position: absolute;

	z-index: 6;

	left: 0;

	top: 0;

	width: 23px;

	height: 100%;

	background: url(../static/book-img/book-bg4.png) repeat-y left;

	pointer-events: none

}





#img_top_box{

	position:absolute;

	background:rgba(0,0,0,0.5);

	z-index:999;

	display:inline-block;

	transition: all 0.5s;

	padding: 0;

	background-color: transparent;

	box-shadow: none;

	border-radius: 3px;

	-moz-border-radius: 3px;

	-webkit-border-radius: 3px;

	/* overflow:hidden; */

	line-height:0;

	/* box-shadow: 0 1px 5px rgba(0,0,0,.3); */

}

#img_top_box_bg{

	position:fixed;

	background:rgba(0,0,0,0.0);

	left:0;

	top:0;

	z-index:996;

	width:100%;

	height:100%;

	transition: all 0.5s;

	display:none;

}

#img_top_box_bg2{

	position:fixed;

	left:0;

	top:0;

	width:100%;

	height:100%;

	z-index:997;

	display:none;

}

#img_top_box img{

	max-width: 100%;

	height: auto;

	border-radius: 2px;

	-moz-border-radius: 2px;

	-webkit-border-radius: 2px;

}

#img_title_q{

	position: absolute;

	bottom: 0;

	right: 20px;

	text-align: right;

	font-size: 11px;

	line-height: 25px;

	/* z-index: 1000; */

	color: #aaa

}

#music-url-box{

	display: none;

}

#music_box_bj{

	height: 300px;

	width: 300px;

	background: url(../static/book-img/music1.png) no-repeat;

	background-size: 100% 100%;

	position: absolute;

	top: 0;

	right: 0;

	z-index: 3;

	box-sizing: border-box;

	pointer-events:none;

}

#music_volume{

	height: 136px;

	width: 33px;

	background: url(../static/book-img/music_volume.png) no-repeat;

	background-size: 100% 100%;

	position: absolute;

	top: 80px;

	right: 40px;

	z-index: 2;

	box-sizing: border-box;

	padding: 18px 5px 50px 5px;

}

#music_v_box{

	/* background:#cc000050; */

	width: 20px;

	height:94px;

	position: absolute;

	/* cursor: pointer; */

	top: 21px;

	left: 6px;

}

#music_volume_c{

	height: 32px;

	width: 23px;

	background: url(../static/book-img/music_volume_c.png) no-repeat;

	background-size: 100% 100%;

	position: relative;

	box-sizing: border-box;

	cursor: pointer;

	top:70%;

}

#music_box {

	height:145px;

	width: 145px;

	cursor: pointer;

	position: absolute;

	top: 78px;

	right: 78px;
z-index: 2;
	box-sizing: border-box;

}

.music_record{

	top:96px!important;

	right:96px!important;

}

#music_record{

	width: 106px;

	height: 106px;

	background-image:url(../static/book-img/music2.png);

	background-repeat: no-repeat;

	background-size: cover;

	position: absolute;

	top:96px;

	right:96px ;

	animation: infinite linear;

	animation-duration:30s;

	transition:all 1s;
	pointer-events:none;
	box-sizing: border-box;

	z-index: 4;

	/* display: none; */

	/* animation-name: */

}

.music_record_temp{

	width: 106px;

	height: 106px;

	top:96px;

	right:96px;

	background-image:url(../static/book-img/music2.png);

	background-repeat: no-repeat;

	background-size: cover;

	position: absolute;

	animation: infinite linear;

	animation-duration:30s;

	transition:all 1s;

	box-sizing: border-box;

	z-index: 4;

	/* display: none; */

	/* animation-name: */

}



.music_record_img{

	width: 60px;

	height: 60px;

	position: absolute;

	left: 22px;

	top: 24px;

	box-sizing: border-box;

	background-size:cover;

    /* background-image:url(../static/book-img/cover.png); */

	background-repeat: no-repeat;

	border-radius: 30px;

}

.music_record_nocover{

	background-image:url(../static/book-img/cover.png)!important;

}

.post-music .fa{

	display: inherit;

}

.post-music{

	width: 21px;

	height: 21px;

	display:block;

	/* position: absolute; */



	left: 0px;

	top: 21px;

	animation: infinite linear;

	animation-duration:30s;

	transition:all 1s;

	/* animation-name:lds-gear; */

}

.music-link{

	display: block;

	width: 106px;

	height: 106px;

	box-sizing: border-box;

	padding-left: 106px;

	background-image: url(../static/book-img/music2.png);

	position: relative;

	cursor: pointer;

}

.music-link-desk{

	display: block;

	width: 106px;

	height: 106px;

	box-sizing: border-box;

	padding-left: 106px;

	background-image: url(../static/book-img/music2.png);

	position: absolute;

	cursor: pointer;

	transition:all 1s;

	animation: infinite linear;

	animation-duration:30s;

	z-index: 4;

}

.music_record_desk_temp{

	top:96px!important;

	right:96px!important;

	z-index: 4;

}

@keyframes lds-gear {

	0% {

	  -webkit-transform: rotate(0deg);

	  transform: rotate(0deg);

	}

	50% {

	  -webkit-transform: rotate(180deg);

	  transform: rotate(180deg);

	}

	100% {

	  -webkit-transform: rotate(360deg);

	  transform: rotate(360deg);

	}

  }

@-webkit-keyframes lds-gear {

	0% {

	  -webkit-transform: rotate(0deg);

	  transform: rotate(0deg);

	}

	50% {

	  -webkit-transform: rotate(180deg);

	  transform: rotate(180deg);

	}

	100% {

	  -webkit-transform: rotate(360deg);

	  transform: rotate(360deg);

	}

}

#music_rod{

	width: 210px;

	height: 210px;

	background: url(../static/book-img/music3.png) no-repeat;

	background-size: 100% 100%;

	position: absolute;

	top:-6px;

	right:-5px ;

	transform:rotate(-13deg); 

	transition:all 0.5s;

	z-index: 5;

	pointer-events:none;

}

#music_name{

	width: 90px;

	background: #ddd9ca;

	text-align: center;

	font-size: 14px;

	color: #666;

	position: absolute;

	right: 28px;

	top: 80px;

	padding: 10px;

	box-sizing: border-box;

	transition:all 1s;

}





#music-ku{

	position: relative;

	z-index: 5;

}

#chiji_box {

	height: 452px;

	width: 386px;

	background: url(../static/book-img/chiji.png) no-repeat;

	background-size: cover;

	position: absolute;

	top: 0;

z-index: 20;

	left: -200px;

	transition: all 1s

}



#tea_box {

	height: 206px;

	width: 206px;

	background: url(../static/book-img/tea.png) no-repeat;

	background-size: cover;

	position: absolute;

	bottom: 60px;

z-index: 20;

	right: -120px;



	transition: all 1s

}



.mainy {

	transform: rotateY(90deg)!important;

	transition: all 1s ease-in

}



.mainy2 {

	transform: rotateY(0)!important;

	transition: all 1s ease-out

}



.mainx {

	transform: rotateY(90deg)!important;

	transition: all 1s ease-in

}



.mainx2 {

	transform: rotateY(180deg)!important;

	transition: all 1s ease-out

}



.mainy3 {

	transform: rotateY(0)!important

}



.post {

	margin-bottom: 50px

}



#postbox {

	position: relative;

	width: 575px;

	height: 750px;

	padding-left: 60px;

	padding-right: 35px;

	margin: 60px 0 50px 0;

	left: 0;

	box-sizing: border-box;

	z-index: 5;

	background: #f1eee3 url(../static/book-img/book-bg2.png) repeat-y;

	overflow: hidden;

}

#postbox-2 {

	position: relative;

	width: 575px;

	height: 750px;

	padding-left: 80px;

	padding-right: 35px;

	margin: 60px 0 50px 0;

	left: 0;

	box-sizing: border-box;

	z-index: 5;

	background: #f1eee3 url(../static/book-img/book-bg.png) repeat-y

}

.archive-title {

	font-size: 1.5em;

	display:inline-block;

}

.back-catalog{

	display:inline-block;

	font-size: 1.2em;

}

.post-title-2 {

	

	font-size: 1.1em;

	border-bottom: 1px solid #afd5d5;

	padding: 12px 0 10px 0

}

.post-2 a{

	color: #666;

}

.post-title {

	border-bottom: 1px solid #afd5d5;

	border-top: 1px solid #afd5d5;

	margin-bottom: 15px;

	padding: 25px 0 25px 0;

	color: #333;

	font-size: 28px;

	font-size: 1.8rem

}



.post-meta {

	font-size: 16px;

	color: #aaa;

	list-style-type: none;

	height:20px;

}



.post-meta li {

	float: left;

	padding-right: 5px

}



.post-content {

	position: relative;

	clear: both;

	margin: 20px 0 0 0;

	line-height: 1.5em

}



.post-content p {

	position: relative;

	text-indent: 2em;

	padding: 1em 0 1em 0;

	line-height: 2em

}



.post-content .img_box {

	text-indent: 0;

	max-width: calc(100% - 1em);

	display: block;

	position: relative;

	margin: 20px auto;

	padding: 0;

	box-sizing: border-box;
	border: 8px solid #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.15);

	background-color: transparent;	

	box-shadow: none;

	border-radius: 3px;

	-moz-border-radius: 3px;

	-webkit-border-radius: 3px;

	line-height:0;

}

.post-content .img_tape {

	position: absolute;

	height: 25px;

	width: 100px;

	z-index: 0;

	background-color: rgba(255,228,127,.4);

	transform: rotate(-40deg);

	-ms-transform: rotate(-40deg);

	-moz-transform: rotate(-40deg);

	-webkit-transform: rotate(-40deg);

	-o-transform: rotate(-40deg);

	pointer-events: none;

	box-shadow: 0 0 1px rgba(0,0,0,.1)

}



.post-content .img_tape_top {

	top: 5px;

	left: -30px

}



.post-content .img_tape_buttom {

	bottom: 5px;

	right: -35px

	

}



.post-content .img_title {

	position: absolute;

	bottom: 0;

	right: 20px;

	text-align: right;

	font-size: 11px;

	line-height: 25px;

	z-index: 0;

	color: #aaa

}



.post-content video {

	max-width: 100%;

	height: auto

}



.post-content img {

	max-width: 100%;

	height: auto;

	border-radius: 2px;

	-moz-border-radius: 2px;

	-webkit-border-radius: 2px;

	/* cursor:url(../static/book-img/big.cur),auto; */

}



.page-navigator {

	float: right;

	list-style-type: none;

	margin-top: 20px

}



.page-navigator .current>a{

	font-weight:bold;

	color:#333!important;

	text-decoration:underline;

	/* font-size:18px; */

}

.page-navigator li {

	float: left;

	padding-right: 1em

}



.post-near {

	list-style-type: none;

	margin-top: 30px

}



.widget-list li {

	list-style-type: none

}



.plzpwz {

	text-align: center;

	display: block;

	background: #099;

	color: #fff

}



.tags a {

	margin: auto 5px;

	padding: 2px 6px;

	text-align: center;

	font-size: .9em;

	width: 5em;

	background: #099;

	color: #fff

}



.al_year {

	width: 90px;

	padding: 30px 0;

	font-size: 1.1em;

	font-weight: 100

}



.al_age {

	font-size: .8em;

	height: 20px;

	line-height: 20px

}



.al_mon_list {

	margin-left: 90px;

	margin-top: -84px;

	border-left: 1px solid #ddd;

	display: block

}



.al_mon_list_mid {

	border-left-style: dashed

}



.al_mon_list li {

	list-style: none;

	line-height: 2;

	padding-left: 10px

}



.al_mon_list>li>a {

	display: block;

	padding-left: 10px;

	width: 280px;

	white-space: nowrap;

	overflow: hidden;

	text-overflow: ellipsis

}



.al_mon_list>li>span {

	margin-top: -32px;

	position: absolute;

	right: 0;

	margin-right: 15px

}

#comments{

	font-size: 14px;

	line-height: 35px;

	border: 1px dashed rgba(255, 0, 0, 0.4);

	background: #fcfdef35 url(../static/book-img/comments-bg.png);

	box-sizing: border-box;

	padding:0 20px;

	color: #666;

}

.comment-children{

	margin-left: 35px;

	position: relative;

}

.comment-body{

	/* display: inline; */

	position: relative;

	/* border: 1px dashed red; */

	

	box-sizing: border-box;

}



.comment-author{

	height: 35px;

	/* display: inline-block; */

	line-height: 35px;

	overflow: hidden;

	/* width: 50%; */

	float: left;

	display: flex;

	/* padding-left: 10px; */

	

	box-sizing: border-box;

}

.comment-author .fn{

	/* display: inherit; */

	height: 35px;

	margin-left: 10px;

	/* margin-top: -15px; */

}

.comment-author a{

	color:#333;

	font-weight: bold;

	height: 35px;

}

.comment-author img{

	width: 32px;

	height: 32px;

	border-radius: 32px;

}

.comment-meta{

	height: 35px;

	/* width: 50%; */

	/* display: inline-block; */

	float: right;

}

.comment-meta a{

	color:#aaa;

	font-size: 11px;

}

.comment-content{

	clear: both;

	padding-left: 10px;

	border-left: 1px dashed rgba(255, 0, 0, 0.4);

}

.comment-child .comment-author a{

	font-weight: normal;

}

.comment-list{

	list-style: none;

	position: relative;

	/* margin-top: -35px; */

}

.comment-reply{

	/* position: absolute; */

	bottom: 0px;

	right: 0px;

}

#comments textarea{

	border: 1px dashed rgba(255, 0, 0, 0.5);

	line-height: 35px;

	background: #ffffff4d;

	padding: 0 20px;

	resize:none;

	box-sizing: border-box;

	height: 105px;

	/* box-shadow: 0 26px 40px -24px rgba(0, 36, 100, 0.3); */

	/* font-size: 16px; */

	/* line-height: 25px; */

	/* padding: 20px; */

	/* box-shadow: 0px 0px 5px rgb(0, 0, 0,0.4); */

}

.comment-textarea{

	height: 139px;

}

#comments .submit {

	/* background-color: #4CAF50;  */

	background: #468846d7;

    border: none;

	color: white;

	/* border: 1px dashed rgba(255, 0, 0, 0.5); */

	padding: 7px 16px;

	width: 100%;

	text-align: center;

    text-decoration: none;

	font-size: 16px;

	box-sizing: border-box;

	margin: 17px 0 17px 0;

}

.comment-reply>a,.cancel-comment-reply>a{

	cursor:pointer;

}

.clear{

	clear: both;

}

#comment-form .required:after {

	content: " *";

	color: #C00;

}

.comment-sf input{

	border: 1px dashed rgba(255, 0, 0, 0.5);

	line-height: 35px;

	background: #ffffff4d;

	padding: 0 5px;

	resize:none;

	box-sizing: border-box;



}

.comment-sf p{

	width: calc(33.33333% - 5px);

	/* justify-content: space-between; */

}

.comment-sf{

	display: flex;

	justify-content: space-between;

	width: 100%;

}

.ps .ps__rail-x.ps--clicking,

.ps .ps__rail-x:focus,

.ps .ps__rail-x:hover,

.ps .ps__rail-y.ps--clicking,

.ps .ps__rail-y:focus,

.ps .ps__rail-y:hover {

    background-color: #ffffff00!important;

}

#footer-admin{

	position: fixed;

	left: 5px;

	bottom: 5px;

	font-size: 11px;

	color: #666!important;

}
#shoujizhuye{
	display: none;
}
@media screen and (max-width: 768px) {
	#body-bg{
		overflow:auto;
		overflow-x: hidden;
	}
	#shoujizhuye{
		position: fixed;
		right: 10px;
		bottom: 40px;
		z-index: 5;
		display: block;
	}
	#shoujizhuye a{
		display: block;
		background:rgba(0, 0, 0, 0.1);
		border-radius: 5px;
		width: 80px;
		height: 80px;
		text-align: center;
		padding-top: 12px;
		box-sizing: border-box;
		font-size: 1.3em;
		font-weight: 900;
	}
	body,html{
		width: 100%;
		height: 100%;
	}
	#closed,#fullScreen,#tea_box,#chiji_box,#muisc-ku,#music_record,#music_rod,#music_box_bj,#music_volume{
		display: none;
	}
	.book-left-z{
		display: inherit;
		background-image: none;
		width: 100%;
		height: 100%;
		min-height: 100%;
		position: relative;
	}
	#book-left{
		transform: rotateY(0)!important;
		background-image: none;
		width: 100%;
		height: 100%;
		box-shadow:0 0 0;
		top:50px;
	}
	#Book-cover{
		display: none;
	}
	.nav-box{
		display: none;
	}
	.mains{
		margin-left: 0px;
		width: 100%;
		height: 100%;
		pointer-events:auto;
	}
	#body{
		width: 100%;
		top:0;
		height: 100%;
	}
	#secondary{
		margin: 0;
		width: 100%;
		height: 100%;
	}
	#body-bg{
		background: #f1eee3;
	}
	.post{
		width: 100%;
	}
	#postbox-2{
		background-image: none;
		width: 100%;
		height: 100%;
		padding-left: 20px;
		padding-right: 20px;
	}
	.closed_txt{
		display: none;
	}
	.al_mon_list>li{
		margin-left: 10px;
		border-bottom: 1px dotted #009999;
	}
	.al_mon_list>li>a{
		display: block;
		width: calc(100% - 70px);
		font-size: 18px;
		line-height: 60px;
		padding-left:0;
		overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
	}
	.al_mon_list>li>span{
		margin-right:20px;
		font-size: 18px;
		margin-top:-48px;
		
	}
	#axjx_box{
		width: 100%;
		height: 100%;
	}
	#postbox{
		width: 100%;
		height: 100%;
		box-sizing: border-box;
		padding-left:20px;
		padding-right: 20px;
		background-image: none;
		margin:0;
	}
	#book-right{
		background-image: none;
		width: 100%;
		height: 100%;
		box-shadow:0 0 0;
		position:absolute;
		z-index: 1;
	}
	.book-shadow{
		display: none;
	}
	.site-name{
		display: none;
	}
	.al_mon_list{
		width: calc(100% - 130px);
		margin-left:70px;
		margin-top:-95px
	}
	.post-content-pages{
		width: 100%;
	}
	#archives{
		width: 100%;
	}
	.al_mon_list li{
		width: 100%;
	}
	#footer{
		opacity: 0.5;
	}
}
/* ========================================================
   Riven 最小适配层（不与Book原版冲突）
   ======================================================== */

/* 隐藏Riven原有布局 */
.main_screen { display: none !important; }

/* Riven文章内容区域适配 - 使用Book原版的.post-content选择器 */
.post-content .post_content { position: relative; clear: both; }
.post-content .post_content p { text-indent: 2em; padding: 1em 0; line-height: 2em; }
.post-content .post_content img { max-width: 100%; height: auto; }

/* 复选框 */
.task-list-item { list-style: none; display: flex; align-items: flex-start; gap: 8px; }
.task-list-item-checkbox { margin-top: 6px; accent-color: #099; }

/* 提醒框 - 隔离作用域避免冲突 */
.post-content .mx_notice { display: flex; gap: 12px; padding: 16px 20px; border-radius: 8px; margin: 16px 0; }
.post-content .mx_notice_icon { flex-shrink: 0; width: 22px; height: 22px; }
.post-content .mx_notice_icon circle { fill: none; stroke: currentColor; stroke-width: 2; }
.post-content .mx_notice_icon path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.post-content .mx_notice_red { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.post-content .mx_notice_green { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.post-content .mx_notice_orange { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.post-content .mx_notice_blue { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

/* 文章卡片 */

/* 图片居中 */
.post-content p > img,




/* 文章卡片 - 参考Riven原版 */
.post-content .mx_post_card {
    display: block;
    position: relative;
    width: 50%;
    margin: 16px auto;
    padding: 10px 10px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9f7f3;
    color: #333;
    text-decoration: none;
}
.post-content .mx_post_card_badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 1px 5px;
    border-radius: 999px;
    background: #f0ebe3;
    color: #8b7355;
    font: 600 10px/1.4 sans-serif;
}
.post-content .mx_post_card:hover {
    border-color: #099;
    box-shadow: 0 2px 8px rgba(0,153,153,0.1);
}
.post-content .mx_post_card_main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.post-content .mx_post_card_main > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.post-content .mx_post_card_icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    fill: none;
    stroke: #099;
    stroke-width: 1.5;
}
.post-content .mx_post_card strong {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    display: block;
}
.post-content .mx_post_card em {
    font-size: 11px;
    color: #6b7280;
    font-style: normal;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-content .mx_post_card small {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: #9ca3af;
    margin-top: 4px;
}

/* 下载按钮 */
.post-content .mx_download {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 12px auto;
    width: 50%;
}
.post-content .mx_download_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.post-content .mx_download_file {
    display: flex;
    align-items: center;
    gap: 8px;
}
.post-content .mx_download_icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.post-content .mx_download_name {
    font-weight: 500;
    font-size: 13px;
}
.post-content .mx_download_action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 6px;
    background: #099;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
}
.post-content .mx_download_action:hover {
    background: #077;
}

/* 隐藏内容 */
.post-content .mx-hide-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    margin: 12px auto;
    width: auto;
}
.post-content .mx-hide-content {
    padding: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin: 12px 0;
}

/* 提醒框 */
.post-content .mx_notice {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 12px 0;
}
.post-content .mx_notice_red { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.post-content .mx_notice_green { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.post-content .mx_notice_orange { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.post-content .mx_notice_blue { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

/* 画廊图片居中 */

/* 复选框 */
.task-list-item {
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.task-list-item-checkbox {
    margin-top: 6px;
    accent-color: #099;
}

/* 选项卡 */
.post-content .cat_tabs { margin: 16px 0; }
.post-content .cat_tab_nav { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; padding-bottom: 8px; }
.post-content .cat_tab_btn { padding: 4px 10px; border: none; background: none; cursor: pointer; font-size: 13px; color: #6b7280; border-radius: 6px; }
.post-content .cat_tab_btn.active { background: #099; color: #fff; }
.post-content .cat_tab_panel { display: none; }
.post-content .cat_tab_panel.active { display: block; }

/* 折叠面板 */
.post-content .cat_collapse { margin: 12px 0; border: 1px solid #e5e7eb; border-radius: 8px; }
.post-content .collapse-btn { width: 100%; padding: 10px 14px; border: none; background: #f9fafb; cursor: pointer; text-align: left; font-size: 13px; font-weight: 500; border-radius: 8px; }
.post-content .collapse { padding: 14px; display: none; }
.post-content .cat_collapse.open .collapse { display: block; }

/* 时间线 */
.post-content .mx_timeline { position: relative; padding-left: 24px; margin: 16px 0; }
.post-content .mx_timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: #e5e7eb; }
.post-content .mx_timeline_item { position: relative; margin-bottom: 16px; }
.post-content .mx_timeline_dot { position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #099; }
.post-content .mx_timeline_time { font-size: 13px; color: #6b7280; margin-bottom: 4px; }
.post-content .mx_timeline_content { font-size: 14px; }

/* 画廊 - 每行3张，超过自动换行 */
.post-content .mx-photo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.post-content .mx-photo-item {
    flex: 0 0 calc(33.333% - 6px);
    max-width: calc(33.333% - 6px);
}
.post-content .mx-photo-img {
    width: 100%;
    display: block;
    border-radius: 2px;
    cursor: pointer;
}

/* ========================================================
   目录树样式
   ======================================================== */
#catalog-tree {
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1.6;
}
.tree-year {
    margin-bottom: 5px;
}
.tree-year-h {
    display: flex;
    align-items: center;
    padding: 10px 5px;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    font-size: 15px;
    color: #444;
    border-bottom: 1px solid #e0d6c6;
}
.tree-year-h:hover {
    color: #099;
}
.tree-year-h .tree-arrow {
    display: inline-block;
    width: 18px;
    font-size: 11px;
    color: #999;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.tree-year-text {
    flex: 1;
}
.tree-year-count {
    font-size: 11px;
    font-weight: normal;
    color: #aaa;
    background: #f0ebe3;
    padding: 1px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}
.tree-year.open > .tree-year-h .tree-arrow {
    transform: rotate(90deg);
}
.tree-months {
    display: none;
    padding-left: 18px;
    border-left: 1px solid #e0d6c6;
    margin-left: 8px;
}
.tree-year.open > .tree-months {
    display: block;
}
.tree-month {
    margin-bottom: 3px;
}
.tree-month-h {
    display: flex;
    align-items: center;
    padding: 7px 5px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: #555;
    border-bottom: 1px dashed #eee;
}
.tree-month-h:hover {
    color: #099;
}
.tree-month-h .tree-arrow {
    display: inline-block;
    width: 16px;
    font-size: 11px;
    color: #aaa;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.tree-month-text {
    flex: 1;
}
.tree-month-count {
    font-size: 10px;
    color: #bbb;
    flex-shrink: 0;
}
.tree-month.open > .tree-month-h .tree-arrow {
    transform: rotate(90deg);
}
.tree-articles {
    display: none;
    list-style: none;
    padding: 0 0 0 14px;
    margin: 0;
    border-left: 1px dashed #e0d6c6;
    margin-left: 7px;
}
.tree-month.open > .tree-articles {
    display: block;
}
.tree-article {
    position: relative;
}
.tree-article::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 11px;
    width: 6px;
    height: 6px;
    background: #f1eee3;
    border: 1.5px solid #c8bfb0;
    border-radius: 50%;
}
.tree-article a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 6px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    border-radius: 3px;
    transition: all 0.15s;
    line-height: 1.5;
}
.tree-article a:hover {
    color: #099;
}
.tree-article.active > a {
    color: #099 !important;
    font-weight: 700 !important;
}
.tree-article.active::before {
    background: #099;
    border-color: #099;
}
.tree-day {
    flex-shrink: 0;
    width: 20px;
    text-align: right;
    font-size: 11px;
    color: #bbb;
}
.tree-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================================
   文章卡片标题单行省略号
   ======================================================== */
.post-content .mx_post_card strong {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.post-content .mx_post_card em {
    font-size: 11px;
    color: #6b7280;
    font-style: normal;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 单张图片 - 不缩小，保持原始比例 */
.post-content .item_image {
    display: block;
    margin: 12px 0;
    text-align: center;
}
.post-content .item_image img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

/* ========== Riven短代码CSS（音乐/视频/B站） ========== */

/* CSS变量 - Book主题没有定义Riven的配色变量 */
:root {
    --bg-card: #FBFAF7;
    --bg-soft: #F2EEE8;
    --text-primary: #3E3934;
    --text-body: #4B463F;
    --text-secondary: #8C857D;
    --text-muted: #A49D95;
    --line-primary: #DDD6CC;
    --line-secondary: #E7E1D8;
    --line-soft: #EEE9E2;
    --accent-brown: #6E4F2F;
    --accent-gold: #A78C63;
    --font-main: "LXGW WenKai Screen", "霞鹜文楷 屏幕阅读版", "Noto Serif SC", "Songti SC", "Microsoft YaHei", sans-serif;
}

/* --- 音乐卡片 --- */
.post-content mx_music {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 22px;
    width: 100%;
    margin: 18px 0;
    padding: 18px 20px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-body);
}

.post-content .mx-music-cover,
.post-content .mx-music-play {
    appearance: none;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
}

.post-content .mx-music-cover {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #2e2d30 0 11%, transparent 12%), radial-gradient(circle at 47% 42%, rgba(255, 255, 255, .38) 0 4%, transparent 5%), radial-gradient(circle at 60% 58%, #6d5f65 0 20%, #2c2b2f 21% 56%, #151518 57% 100%);
    box-shadow: 0 7px 16px rgba(31, 28, 26, .16);
}

.post-content .mx-music-cover span {
    position: absolute;
    inset: 19px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a6b7c9, #76616e 55%, #292c35);
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22);
}

.post-content .mx-music-cover span.has-cover {
    inset: 10px;
}

.post-content mx_music.is-playing .mx-music-cover {
    animation: mx-music-spin 5s linear infinite;
}

.post-content .mx-music-body {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.post-content .mx-music-title {
    display: block;
    overflow: hidden;
    color: #2f435a;
    font-size: 14px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-content .mx-music-status {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-content .mx-music-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.post-content .mx-music-progress {
    width: 100%;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(to right, #9b9b9b var(--mx-progress, 0%), #d5d5d5 0);
    cursor: pointer;
    appearance: none;
}

.post-content .mx-music-progress::-webkit-slider-thumb {
    width: 0;
    height: 0;
    appearance: none;
}

.post-content .mx-music-progress::-moz-range-thumb {
    width: 0;
    height: 0;
    border: 0;
}

.post-content .mx-music-time {
    color: #9b9b9b;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.post-content .mx-music-play {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #2f435a;
}

.post-content .mx-music-play svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.post-content mx_music.is-playing .mx-music-play svg path {
    d: path("M7 5h4v14H7zM13 5h4v14h-4z");
}

.post-content mx_music audio {
    display: none;
}

/* --- 音乐分组 --- */
.post-content .mx-music-group {
    display: grid;
    gap: 0;
    margin: 18px 0;
    padding: 8px 18px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--bg-card);
}

.post-content .mx-music-group-title {
    padding: 8px 0 10px;
    color: #2f435a;
    font-size: 15px;
    font-weight: 700;
}

.post-content .mx-music-playlist-status {
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.post-content .mx-music-playlist {
    max-height: 460px;
    overflow: auto;
    overscroll-behavior: contain;
}

.post-content .mx-music-group mx_music {
    grid-template-columns: 44px minmax(0, 1fr) 30px;
    gap: 14px;
    margin: 0;
    padding: 10px 0;
    border: 0;
    border-top: 1px solid var(--line-soft);
    border-radius: 0;
    background: transparent;
}

.post-content .mx-music-playlist mx_music:first-of-type {
    border-top: 0;
}

.post-content .mx-music-group mx_music.is-playing {
    grid-template-columns: 64px minmax(0, 1fr) 34px;
    gap: 18px;
    margin: 8px 0;
    padding: 14px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(47, 67, 90, .045);
}

.post-content .mx-music-group .mx-music-cover {
    width: 34px;
    height: 34px;
}

.post-content .mx-music-group mx_music.is-playing .mx-music-cover {
    width: 56px;
    height: 56px;
}

.post-content .mx-music-group .mx-music-cover span {
    inset: 10px;
}

.post-content .mx-music-group .mx-music-cover span.has-cover {
    inset: 4px;
}

.post-content .mx-music-group mx_music.is-playing .mx-music-cover span {
    inset: 15px;
}

.post-content .mx-music-group mx_music.is-playing .mx-music-cover span.has-cover {
    inset: 7px;
}

.post-content .mx-music-group .mx-music-body {
    gap: 8px;
}

.post-content .mx-music-group mx_music.is-playing .mx-music-body {
    gap: 12px;
}

.post-content .mx-music-group mx_music.is-playing .mx-music-title {
    font-size: 14px;
    font-weight: 700;
}

/* --- 视频/B站卡片 --- */
.post-content cat_article_video {
    display: block;
    cursor: pointer;
}

.post-content .card:not(cat_article_video) {
    display: block;
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid var(--line-secondary);
    border-radius: 9px;
    background: var(--bg-card);
    box-shadow: none;
    color: var(--text-body);
    text-align: left;
    text-indent: 0;
}

.post-content cat_article_video iframe,
.post-content cat_article_video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: rgba(47, 42, 38, 0.12);
}

/* --- 旋转动画 --- */
@keyframes mx-music-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== 选项卡组件 ========== */
.post-content .cat_tabs {
    margin: 20px 0;
    border: 1px solid var(--line-secondary);
    border-radius: 10px;
    background: var(--bg-card);
    overflow: hidden;
}

.post-content .cat_tab_nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 8px 10px 0;
    border-bottom: 1px solid var(--line-secondary);
    background: var(--bg-soft);
}

.post-content .cat_tab_btn {
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--text-secondary);
    font: 600 14px/22px var(--font-main);
    padding: 7px 14px;
    cursor: pointer;
}

.post-content .cat_tab_btn.active {
    border-color: var(--line-secondary);
    background: var(--bg-card);
    color: var(--accent-brown);
    transform: translateY(1px);
}

.post-content .cat_tab_panel {
    display: none;
}

.post-content .cat_tab_panel.active {
    display: block;
    padding: 18px 20px;
}

/* ========== 折叠面板组件 ========== */
.post-content .cat_collapse {
    margin: 20px 0;
    border: 1px solid color-mix(in srgb, var(--accent-brown) 26%, var(--line-secondary));
    border-radius: 8px;
    background: var(--bg-card);
    overflow: hidden;
}

.post-content .collapse-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 11px 15px;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-brown) 18%, var(--line-secondary));
    background: color-mix(in srgb, var(--accent-gold) 10%, var(--bg-card));
    color: var(--accent-brown);
    font: 600 15px/22px var(--font-main);
    text-align: left;
    cursor: pointer;
    transition: background-color .2s ease;
}

.post-content .collapse-btn:after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%221.5%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20color%3D%22%23000000%22%3E%0A%20%20%3Cpath%20d%3D%22M6%2013L12%2019L18%2013%22%20stroke%3D%22%23000000%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C/path%3E%0A%20%20%3Cpath%20d%3D%22M6%205L12%2011L18%205%22%20stroke%3D%22%23000000%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C/path%3E%0A%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform .2s ease;
}

.post-content .collapse-btn:not(.collapsed):after {
    transform: rotate(-180deg);
}

.post-content .collapse {
    max-height: 0;
    padding: 0 16px;
    background: transparent;
    opacity: 0;
    overflow: hidden;
    transition: max-height .28s ease, padding .28s ease, opacity .2s ease;
}

.post-content .collapse.show,
.post-content .cat_collapse.open .collapse {
    max-height: 1200px;
    padding: 14px 16px;
    opacity: 1;
}

/* ========== 评论可见（隐藏内容）组件 ========== */
.post-content .mx-hide-notice,
.post-content .mx-hide-content,
.post-content .card:not(cat_article_video) {
    display: block;
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid var(--line-secondary);
    border-radius: 9px;
    background: var(--bg-card);
    box-shadow: none;
    color: var(--text-body);
    text-align: left;
    text-indent: 0;
}

.post-content .mx-hide-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.post-content .mx-hide-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: #6C543B;
}

/* ========== 表格样式 ========== */
.post-content table {
    width: 100%;
    margin: 22px 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    border: 1px solid var(--line-secondary);
    border-radius: 9px;
    background: var(--bg-card);
    overflow: hidden;
}

.post-content thead {
    background: var(--bg-soft);
    color: #3D3128;
}

.post-content th,
.post-content td {
    padding: 11px 14px;
    border-right: 1px solid var(--line-secondary);
    border-bottom: 1px solid var(--line-secondary);
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.68;
    text-align: left;
    vertical-align: top;
}

.post-content th {
    color: #3B3028;
    font-weight: 600;
}

.post-content th[align="center"],
.post-content td[align="center"],
.post-content th[style*="text-align:center"],
.post-content td[style*="text-align:center"],
.post-content th[style*="text-align: center"],
.post-content td[style*="text-align: center"] {
    text-align: center !important;
}

.post-content th[align="right"],
.post-content td[align="right"],
.post-content th[style*="text-align:right"],
.post-content td[style*="text-align:right"],
.post-content th[style*="text-align: right"],
.post-content td[style*="text-align: right"] {
    text-align: right !important;
}

.post-content tr > :last-child {
    border-right: 0;
}

.post-content tbody tr:last-child > td {
    border-bottom: 0;
}

.post-content tbody tr:nth-child(even) {
    background: var(--bg-card);
}

.post-content td code {
    margin: 0 2px;
    padding: 2px 6px;
    border: 1px solid var(--line-secondary);
    border-radius: 5px;
    background: var(--bg-soft);
    color: #7A4B3A;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.88em;
    font-weight: 500;
    letter-spacing: 0;
    vertical-align: baseline;
}

/* === 代码块样式（Riven 原版） === */

/* 行内代码 */
.post-content code:not([class]),
.post-content p code,
.post-content li code {
    margin: 0 2px;
    padding: 2px 6px;
    border: 1px solid var(--line-secondary);
    border-radius: 5px;
    background: var(--bg-soft);
    color: #7A4B3A;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.88em;
    font-weight: 500;
    letter-spacing: 0;
    vertical-align: baseline;
}

/* 代码块容器（code-toolbar） */
.post-content div.code-toolbar {
    position: relative;
    margin: 24px 0;
    padding-top: 36px;
    border: 1px solid var(--text-secondary);
    border-radius: 10px;
    background: var(--bg-soft);
    box-shadow: 0 8px 24px rgba(62, 57, 52, 0.05);
    overflow: hidden;
}

.post-content div.code-toolbar::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #DD5F58;
    box-shadow: 18px 0 #D9A94E, 36px 0 #6E9B73;
}

.post-content div.code-toolbar>.toolbar {
    position: absolute;
    inset: 7px 10px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 22px;
    padding: 0;
    text-align: center;
    opacity: 1;
    pointer-events: none;
}

.post-content div.code-toolbar>.toolbar .toolbar-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    color: #80756C;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    pointer-events: auto;
}

.post-content div.code-toolbar>.toolbar button {
    position: absolute;
    top: 1px;
    right: 0;
    height: 20px;
    padding: 0 6px;
    border: 1px solid color-mix(in srgb, var(--accent-brown) 28%, transparent);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 11px;
    line-height: 18px;
    white-space: nowrap;
}

.post-content div.code-toolbar>.toolbar button span {
    display: inline;
    color: inherit;
    font: inherit;
}

.post-content div.code-toolbar>.toolbar button:hover {
    border-color: color-mix(in srgb, var(--accent-brown) 48%, transparent);
    color: var(--accent-brown);
}

/* 代码块 pre — 同时匹配 language-xxx 和 lang-xxx */
.post-content pre,
.post-content pre[class*="language-"],
.post-content pre[class*="lang-"] {
    margin: 22px 0;
    padding: 16px 18px;
    border: 1px solid var(--line-secondary);
    border-radius: 10px;
    background: rgba(59, 53, 48, 0.94);
    box-shadow: 0 8px 24px rgba(80, 64, 48, 0.06);
    color: #F8F4ED;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.78;
    letter-spacing: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.post-content div.code-toolbar>pre,
.post-content div.code-toolbar>pre[class*="language-"],
.post-content div.code-toolbar>pre[class*="lang-"] {
    margin: 0 10px 10px;
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--text-secondary) 36%, transparent);
    border-radius: 0 0 7px 7px;
    box-shadow: none;
}

.post-content pre[class*="language-"],
.post-content pre[class*="lang-"] {
    scrollbar-width: thin;
    scrollbar-color: rgba(248, 244, 237, 0.38) rgba(255, 255, 255, 0.06);
}

.post-content pre[class*="language-"]::-webkit-scrollbar,
.post-content pre[class*="lang-"]::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.post-content pre[class*="language-"]::-webkit-scrollbar-track,
.post-content pre[class*="lang-"]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.post-content pre[class*="language-"]::-webkit-scrollbar-thumb,
.post-content pre[class*="lang-"]::-webkit-scrollbar-thumb {
    background: rgba(248, 244, 237, 0.38);
    border-radius: 999px;
}

/* pre 内 code 重置 */
.post-content pre code,
.post-content pre[class*="language-"] code,
.post-content pre[class*="lang-"] code {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* 行号 */
.post-content pre[class*="language-"].line-numbers,
.post-content pre[class*="lang-"].line-numbers {
    padding-left: 3.8em;
    max-height: 32rem;
}

.post-content .line-numbers .line-numbers-rows {
    top: 16px;
    left: -3.8em;
    border-right: 1px solid color-mix(in srgb, var(--bg-soft) 16%, transparent);
    background: transparent;
}

.post-content .line-numbers-rows>span::before {
    color: color-mix(in srgb, var(--bg-soft) 45%, transparent);
}

/* Prism token 颜色（补充 lang-xxx 选择器，prism.css 只匹配 language-xxx） */
.post-content code[class*="lang-"] .token.comment,
.post-content code[class*="lang-"] .token.prolog,
.post-content code[class*="lang-"] .token.doctype,
.post-content code[class*="lang-"] .token.cdata { color: slategray; }

.post-content code[class*="lang-"] .token.punctuation { color: #999; }

.post-content code[class*="lang-"] .token.property,
.post-content code[class*="lang-"] .token.tag,
.post-content code[class*="lang-"] .token.boolean,
.post-content code[class*="lang-"] .token.number,
.post-content code[class*="lang-"] .token.constant,
.post-content code[class*="lang-"] .token.symbol,
.post-content code[class*="lang-"] .token.deleted { color: #905; }

.post-content code[class*="lang-"] .token.selector,
.post-content code[class*="lang-"] .token.attr-name,
.post-content code[class*="lang-"] .token.string,
.post-content code[class*="lang-"] .token.char,
.post-content code[class*="lang-"] .token.builtin,
.post-content code[class*="lang-"] .token.inserted { color: #690; }

.post-content code[class*="lang-"] .token.operator,
.post-content code[class*="lang-"] .token.entity,
.post-content code[class*="lang-"] .token.url { color: #9a6e3a; }

.post-content code[class*="lang-"] .token.atrule,
.post-content code[class*="lang-"] .token.attr-value,
.post-content code[class*="lang-"] .token.keyword { color: #07a; }

.post-content code[class*="lang-"] .token.function,
.post-content code[class*="lang-"] .token.class-name { color: #DD4A68; }

.post-content code[class*="lang-"] .token.regex,
.post-content code[class*="lang-"] .token.important,
.post-content code[class*="lang-"] .token.variable { color: #e90; }

.post-content code[class*="lang-"] .token.important,
.post-content code[class*="lang-"] .token.bold { font-weight: bold; }

.post-content code[class*="lang-"] .token.italic { font-style: italic; }

.post-content code[class*="lang-"] .token.entity { cursor: help; }

/* perfect-scrollbar 始终显示滚动条 */
.ps__rail-y { opacity: 0.6 !important; }
.ps:hover > .ps__rail-y { opacity: 0.8 !important; }

/* === 归档页 === */
.page-archives { padding: 10px 0; }
.arc-year { font-size: 18px; font-weight: 700; color: #333; margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e8e8e8; }
.arc-year:first-child { margin-top: 0; }
.arc-list { list-style: none; padding: 0; margin: 0; }
.arc-item { display: flex; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed #f0f0f0; }
.arc-date { font-size: 13px; color: #999; min-width: 50px; font-family: 'Courier New', monospace; }
.arc-link { font-size: 15px; color: #333; text-decoration: none; margin-left: 12px; transition: color .15s; }
.arc-link:hover { color: #1a73e8; }
.arc-total { margin-top: 20px; font-size: 13px; color: #999; text-align: center; }


/* === 友链页 === */
.page-links { padding: 10px 0; }
.links-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 0;
}
.link-card {
	display: flex;
	align-items: center;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	text-decoration: none;
	color: #333;
	transition: box-shadow .2s, transform .15s;
}
.link-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,.08);
	transform: translateY(-1px);
}
.link-icon {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.link-icon span {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
}
.link-info {
	margin-left: 12px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.link-name {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.link-url {
	font-size: 11px;
	color: #999;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* === 目录树滚动 === */
#secondary {
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
}

/* === 目录树滚动条 === */
#secondary {
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: rgba(0,0,0,.18) transparent;
}

/* === 目录树当前文章高亮 === */
.tree-article.active > a {
	color: #099 !important;
	font-weight: 700 !important;
}
.tree-article.active::before {
	background: #099;
	border-color: #099;
}

/* === 目录树滚动条（无箭头） === */
#secondary {
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: rgba(0,0,0,.18) transparent;
}
#secondary::-webkit-scrollbar {
	width: 4px;
	background: transparent;
}
#secondary::-webkit-scrollbar-button {
	display: none;
	height: 0;
	width: 0;
}
#secondary::-webkit-scrollbar-thumb {
	background: rgba(0,0,0,.18);
	border-radius: 4px;
}
#secondary::-webkit-scrollbar-track {
	background: transparent;
}

/* === 目录树当前文章高亮 === */
.tree-article.active > a {
	color: #099 !important;
	font-weight: 700 !important;
}
.tree-article.active::before {
	background: #099;
	border-color: #099;
}

/* === 目录树分类过滤 === */
.catalog-header > span {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}
.catalog-filter {
	display: flex;
	gap: 6px;
}
.filter-btn {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
	cursor: pointer;
	color: #666;
	background: #f5f5f5;
	transition: all .15s;
}
.filter-btn:hover {
	background: #e8e8e8;
}
.filter-btn.active {
	background: #099;
	color: #fff;
}

/* === 目录树搜索框 === */
.catalog-search {
	display: flex;
	align-items: center;
	margin-bottom: 6px;
}
.search-input {
	flex: 1;
	height: 28px;
	padding: 0 6px;
	border: 1px solid #ddd;
	border-radius: 14px;
	font-size: 11px;
	color: #333;
	background: #fff;
	outline: none;
	transition: border-color .15s;
}
.search-input:focus {
	border-color: #099;
}
.search-input::placeholder {
	color: #bbb;
}
.search-icon {
	margin-left: 4px;
	font-size: 14px;
	cursor: pointer;
	opacity: 0.6;
}

/* === 目录树头部 === */
.catalog-header {
	padding: 12px 16px 8px;
	border-bottom: 1px solid #e8e0d4;
	margin-bottom: 4px;
}
.catalog-title {
	font-size: 16px;
	font-weight: 600;
	color: #444;
	letter-spacing: 6px;
	margin-bottom: 8px;
}
.catalog-search {
	display: flex;
	align-items: center;
	margin-bottom: 6px;
}
.search-input {
	flex: 1;
	height: 20px;
	padding: 0 6px;
	border: 1px solid #ddd;
	border-radius: 13px;
	font-size: 11px;
	color: #333;
	background: #fff;
	outline: none;
	transition: border-color .15s;
}
.search-input:focus {
	border-color: #099;
}
.search-input::placeholder {
	color: #bbb;
}
.search-icon {
	margin-left: 4px;
	font-size: 13px;
	cursor: pointer;
	opacity: 0.6;
}
.catalog-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.filter-btn {
	font-size: 11px;
	padding: 2px 7px;
	border-radius: 10px;
	cursor: pointer;
	color: #666;
	background: #f0ece4;
	transition: all .15s;
}
.filter-btn:hover {
	background: #e4ddd2;
}
.filter-btn.active {
	background: #099;
	color: #fff;
}
