/*
  This css file is for individual users to restyle items for their personal site,
  or for the implementation of features specifically for their site. Anything that
  is an official part of the theme (ex. Pull Requests) should be included in main.css
  and follow the formatting and style given.
*/

/* Math Expressions 
   ========================================================================== 
*/
.content p {
	overflow-wrap: break-word;
}

.MJX-TEX {
	font-size: 85%;
}

/* Navbar
   ========================================================================== 
*/
#site-nav .nav-title a {
	font-size: .45em;
	letter-spacing: .15em;
}
#site-header {
	margin-bottom: 0;
	z-index: 9999;
}

#share-menu.flyout-menu .share-btn {
    width: 95%;
	margin-bottom: 5px;
	margin-right: 0px;
}

#share-menu.flyout-menu a {
	margin-left: .25em;
	margin-right: .25em;
}

#site-nav .flyout-menu .link, 
#site-nav .flyout-menu .share-toggle, 
#site-nav .flyout-menu .search-toggle {
    letter-spacing: .15em;    
}

#site-nav .flyout-menu .share-toggle, 
#site-nav .flyout-menu .search-toggle {
    background: #f3f3f6;
    border-bottom: .3px dotted #8d899a87;
}

#site-nav .flyout-menu .share-toggle {
    border-top: .3px dotted #8d899a87;    
}

#share-menu.flyout-menu h1 {
    font-family: raleway,Helvetica,sans-serif;
	margin-bottom: 3px;
}

#share-menu.flyout-menu h2 {
    font-size: .8em;
	margin-top: 0px;
	font-family: raleway,Helvetica,sans-serif;
}

#share-menu.flyout-menu .share-btn i:not(.fa-mastodon){
    margin-top: 1em;
}


@media (max-width: 1023px) {
    #site-nav {
      margin-top: 1em;
	 }
}

@media (min-width: 1024px) {
#site-nav .flyout-menu {
	overflow: hidden;
}}

@media (max-width: 767px) {
#site-nav .flyout-menu {
	margin-top: 3.2em;
	}
#site-header {
	line-height: 3.2em;
	height: 3.2em;
  }
}

/* Sidebar
   ========================================================================== 
*/

/*reduce top and bottom padding in miniposts*/
.mini-post header {
	padding: 0.1em 1.25em 0em 1.1em;
}

.mini-post header h2 {
	letter-spacing: .025em;
	padding-top: 0px;
}

.mini-post header .published {
	margin-bottom: 1em;
}

.mini-post section .image img {
	height: unset;
}


/* Intro Section */
#site-intro header h1 {
	font-family: raleway, Helvetica, sans-serif;
	letter-spacing: .12em;
	font-weight: 600;
}

#site-intro main p {
	letter-spacing: .1em;
	font-family: auto;
	font-size: 10px;
}

/* Footer: Copyright */ 
#site-footer .copyright {
    color: #888;
    font-size: .6em;
    font-weight: 400;
    font-family: inherit;
    letter-spacing: .15em;
    text-align: center;
    text-transform: uppercase;
}

#categories ul li a {
	text-transform: capitalize;
}

/* TOC (table of contents) heading 
   ========================================================================== 
*/

#TOC, #TOC>* {
    color: #185778;
    padding-top: 1em;
    line-height: 2em;
}

#TOC ul {
     padding-left: 2em;
}

#TOC li {
    list-style-type: none;
}


#TOC a {
    margin-left: .3em;
}

#TOC br {
     content: "  "
}

#TOC a:hover *, #TOC a:hover, .showtoc:hover {
    color: orange;
}

#TOC::before {
    content: "目录";
    font-weight: 800;
    font-size: 1.4em;
    position: relative;
    top: .3em;
    padding-left: .7em;
    font-family: inherit;
    	
}

#TOC::after { 
    content: " ";
    margin: 1.5em;
    padding: .5em;
    display: block;
    overflow-x: hidden;
    max-width: 100%;
    border-bottom: 1px solid rgba(160,160,160,.3);
}

/* Collapsible TOC */
.showtoc {
  display: list-item;
  margin-left: -1em;
  padding-right: .5em;
  cursor: pointer;
  position: absolute;
  height: .5em;
}

/* Post Header
   ========================================================================== 
*/

/* Header */

h1, h2, h3, h4, h5, h6 {
	letter-spacing: .12em;
	font-weight: 900;
}

/* Preview Section */
.post {
    padding-top: .5em;
}

.post>footer .stats li {
   max-width: unset;
}

.post>footer .stats li:before {
   width: 1em;
}

.post>footer .stats li ul {
    margin: 0 0 0 .8em;
    padding: 0 0 0 .7em;
    
}

.post>footer .stats li ul li a {
	overflow: visible;
	letter-spacing: .14em;
}


.post>header .title {
	width: 100%;
	font-size: 1.05em;
}

@media (max-width: 768px) {
.post>header .title {
	padding-bottom: .5em;
}

.post>footer .stats {
	margin: .3em 0;
	font-size: 1em;
	}
}

.post>header p.description {
	
}

.post>header p.description {
    letter-spacing: 1px;
    font-size: 1em;
    color: #777;
    text-transform: uppercase;
}

.post>header .meta p.reading-time {
    font-family: raleway, Helvetica,sans-serif;
    font-size: .7em;
    letter-spacing: .1em;
    padding: initial;
    margin: initial;
    font-weight: 400;
}

.post>header .meta .published {
	letter-spacing: .15em;
    	font-size: .75em;

}

.post>header .meta .author {
	letter-spacing: .15em;
	padding: .3em 0;
	font-size: .7em;

}

media (min-width: 768px) {
.post>header .meta {
	max-width: fit-content;
}
}

/* Content
   ========================================================================== 
*/

/* headers and breaklines */
.content hr {
	margin: 2em 1.25em;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
	padding-left: 1em;
	padding-right: 1em;
	text-transform: none;
	letter-spacing: unset;
}

.content p{
	line-height: 2em;
	text-align: justify;
	padding-left: 1.25em;
	padding-right: 1.25em;
}


/* unordered lists */
.fa-minus {
	font-size: .5em;
	padding-right: .7em;
}

.content ul {
	line-height: 2em;
	text-align: justify;
        padding-inline-start: 35px;
}

.content ul>li {
	margin-block-end: .2em;
	padding-right: 1.25em;
}

.content ul>li li{
	padding-right: 0em;
}

.content ul > li > ul > li > ul{
	list-style: none;
	margin-left: -1em;
}

.content ul > li > ul {
	padding-left:  1.25em;
}

.content ul li code {
	margin-right: 0;
}
/* ordered lists */
.content ol {
	counter-reset: item;
  	line-height: 2em;
  	text-align: justify;
  	padding-right: 1.25em;
  	list-style: none;
}


.footnotes ol:before {
    	content: "参考资料";
	font-family: inherit;
    	display: block;
	color: #3c3b3b;
    	font-size: 1.5em;
	font-weight: bold;
	margin-bottom: .83em;
 	margin-left: -.75em;
	letter-spacing: .12em;
 }

.content ol p {
	padding-left: .5em;
	padding-right: 0em;
	font-size: .9em;
	margin: .2em 0;
	display: inline-table;
}

.content ol li::before {
	display: inline-table;
  	content: "["counter(item)"] ";
  	counter-increment: item;
	font-size: .9em;
	color: brown;
	margin-left: -1.25em;
}


/* Blockquote
   ========================================================================== 
*/
.content blockquote {
	font-style: normal;
	font-size: .95em;
	font-weight: 400;
	color: #555;
	text-align: justify;
	line-height: 2em;
	margin: 1em 1.6em;
	padding: 1em 1.2em;
	display: flow-root;
	
}

.content blockquote strong {
	font-weight: 900;
}

.content blockquote ul {
	padding-left: 1.25em;
	padding-right: 0em;
	margin: 0em;
}

.content blockquote li {
	margin-block-end: .1em;
	padding-right: 0;
}

.content blockquote p {
	padding-left: 0;
	padding-right: 0;
	margin: 0;
}

.content blockquote br {
    	display: block;
    	content: " ";
    	margin-bottom: 15px;
}

.normalblock {
	border-left: solid 4px #a0a0a4;
	background-color: #f3f3f6;
}


.noteblock {
	border-left: solid 4px #185778;
	background-color: #f0f4f6;
}

blockquote.quoteblock p:nth-of-type(1):before  {
	content: "\f10d";
	color: #ccc;
	font-size: 1.2em;
	font-family: 'font awesome 5 free';
    font-weight: 900;
	padding-right: .5em;
}

blockquote.quoteblock p:last-of-type:after {
	content: "\f10e";
	color: #ccc;
	font-size: 1.2em;	
	font-family: 'font awesome 5 free';
    font-weight: 900;
	float: right;
}

blockquote.quoteblock p{
	margin-block-end: .5em;
}

blockquote.outputblock {
	background-color: #eee;
    border: 1px dashed #aaa;	
	line-height: 1.5em;
	margin: 0em 1.75em;
}

blockquote.tblblock {
	margin: 0em auto;
	width: 90%; 
	border-left: 0px;
	padding: .5em;
	margin-top: -.5em;}
  @media (min-width: 768px) {
    .tblblock {
      width: 75%; } }

/* Anchor
   ========================================================================== 
*/

.content h1:before, .content h2:before, .content h3:before, 
.content h4:before, .content h5:before, .content h6:before{ 
	content: "";
	display: block;
	margin-top: -80px;
	padding: 80px 10px 10px;
}

a.ftnotes_link:before, 
a.footnote-text:before, 
a.footnote-back:before, a.footnote-ref:before,
.content .figure p.caption:before, .content caption:before {
    content: "";
    display: inline-block;
    margin-top: -150px;
    padding: 150px .1px .1px;
}

/* Code
   ========================================================================== 
*/

/* Inline Code */
code {
    border-width: 0px;
	background-color: #f9f2f4;
	line-height: 1.2em;
    margin: 0 .2em 0 .1em;
	padding: 2.5px 4px;
    color: #c41a16;
    border-radius: 3.5px;
    word-break: break-word;
    text-transform: none; 
}

/* Code Block */
.hljs {
    padding: .5em 1.5em;
    border-left: 4px solid #128d86;
    border-radius: 0;
	background: #f5f7f9;
    line-height: 1.5em;
    margin: 0 2em;
	word-break: keep-all;
	font-size: .9em;
}

pre:not([class]) > code.hljs, pre.fold.o:not(.s) > code.hljs{
    background-color: #eee;
    border: 1px dashed #aaa;	
    color: #667;
    font-style: normal;
}

/* Collapsible Code Chunk */

pre.figure {
    margin-top: 0;
    margin-bottom: 0;
}

.showopt {
	color: #FFFFFF; 
	font-family: 'raleway', Helvetica, sans-serif;
	font-size: .85em;
	text-align: left;
	line-height: 1.5em;
	float: right;
	border-radius: .3em;
	margin-right: -1.5em;
	margin-top: -.4em;
	padding: 0em 0em 0 1.5em;
	width: 100px;
	box-shadow: 0px 2px black;
}

.showopt:hover {
    cursor: pointer;
}

.showopt.s{
  background-color: #004c93;
}

.showopt.o, .showopt.plot{
  position: relative;
  margin-right: 2.55em; 
  font-size: .75em;
  bottom: -1em; 
  background-color: #4a4b4e;
}

.showopt.s:hover{
	background-color: #2d78be;
}

.showopt.o:hover, .showopt.plot:hover{
	background-color: #666;
}

/* scrollbar */
code::-webkit-scrollbar-thumb {  
	background-color: #555;
}

/* Footnotes
    =============================================
*/
.ftnotes {
	color: #777;
}

.ftnotes_link {
	color:brown;
	margin-right: 1em;
	font-weight: 900;
	font-size: .9em;
}

.content sup {
	font-weight: 900;
	font-size: .8em;
	color: brown;
	line-height: .8em;
}

.content a:hover * {
	color: #2ebaae;
}

.content th sup {
	color: white;
}

.footnote-ref {
	border-bottom: 0px;
}

.content sup:not(.sup-link):before {
	content: "[";
}

.content sup:not(.sup-link):after {
	content: "]";
}


/* Buttons
    =============================================
*/

input[type=submit], input[type=reset], input[type=button], .button{
	font-weight: 900;
	font-size: .65em;
}

/* Social Network Sharing Buttons */
#socnet-share a {
    height: 2.5em;
    padding-top: 0.75em;
}

/* Share on Mastodon button */

@media (min-width: 768px) {
.mastodon-share-button button{
    margin-right: .25em;}
}

.mastodon-share-button button {
	width: 4em;
	height: 2.5em;
	background: #2b90d9;
	outline:none;
	cursor: pointer;
	margin-bottom: .5em;
    padding: .5em;
}

.mastodon-share-button button:active {
    position: relative;
    top: 2px;
    box-shadow: none;
    color: darken($white, 10%);
}

.mastodon-share-button button:hover {
    background-color: #2c71a3;
}



/* Image
    =============================================
*/
img {
   outline: 0;
}

.post a.image{
	margin: 0em -1em 1em -1em;
}

.linebreak {
    padding-top: 1em;
    padding-bottom: .5em;
    width: 65%;
}

.image-link {
	cursor: zoom-in;
}

.content p.caption{
    font-size: .95em;
    color: #555;
    text-align: center;
    border-top: 0px;
	line-height: 1.7em;
}

.content caption {
    color: #555;
    margin-bottom: .3em;
	line-height: 1.7em;
}

/* Table
    =============================================
*/
/* caption */
table caption {
    font-size: 1.05em; 
    padding-bottom: .25em;
}


table {
  background-color: white;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.16), 0 3px 5px rgba(0, 0, 0, 0.23);
  margin: 1.5em auto;
  width: 75%; 
  font-size: .9em;}
  @media (min-width: 256px) {
    table {
      width: 85%; } }
  table > thead {
    display: none; }
    @media (min-width: 256px) {
      table > thead {
        background-color: #103c54;
		color: white;
        display: table-header-group; } 
	  table > thead:hover {
		background-color: #185778; 
		transition: all 0.2s ease-in-out;} }
  table > tbody > tr {
    border-bottom: 1px solid #f0f4f6;
    text-align: center;
    transition: 0.2s ease-in-out; }
    @media (min-width: 256px) {
      table > tbody > tr:nth-child(even) {
        background-color: #f0f4f6; }
      table > tbody > tr:hover {
        background-color: rgba(46, 170, 184, 0.25); } }
    table > tbody > tr > td {
      display: block; }
      @media (min-width: 256px) {
        table > tbody > tr > td {
          display: table-cell; } }
      table > tbody > tr > td[data-header]::before {
        color: initial;
		content: attr(data-header);
        float: left;
        font-size: inherit;
        font-weight: bold;
        margin-right: 1em;}
        @media (min-width: 256px) {
          table > tbody > tr > td[data-header]::before {
            display: none; } }
      table > tbody > tr > td:first-child {
        background-color: #c5d6dd;
        font-weight: normal;
        text-align: left;
		}
        @media (min-width: 256px) {
          table > tbody > tr > td:first-child {
            background-color: unset;
            text-align: center;} }
		@media (max-width: 256px) {
          table > tbody > tr > td:first-child {
            width: 100% !important;
			text-align: left !important;		
			} }
        table > tbody > tr > td:first-child::after {
          content: "\f078";
          float: right;
          font-family: "Font Awesome 5 Free";
          font-weight: 900;
          text-decoration: inherit;
          transition: all 0.2s ease-in-out; }
          @media (min-width: 256px) {
            table > tbody > tr > td:first-child::after {
              display: none; } }
      table > tbody > tr > td:not(:first-child) {
        border-bottom: 1px solid #f0f4f6;
        opacity: 0;
        position: absolute;
        text-align: right;
        transition: none;
        z-index: -1;}
        @media (min-width: 256px) {
          table > tbody > tr > td:not(:first-child) {
            border: 0;
            opacity: 1;
            position: relative;
            text-align: center;
            z-index: 0;
			} 
		 }
      @media (min-width: 256px) {
        table > tbody > tr > td[align="left"] {
          text-align: left; }
        table > tbody > tr > td[align="center"] {
          text-align: center; }
        table > tbody > tr > td[align="right"] {
          text-align: right; } }
	  @media (max-width: 256px) {
        table > tbody > tr > td {
          text-align: justify !important; } }
    table > tbody > tr.active > td:first-child::after {
      transform: rotateX(180deg); }
    table > tbody > tr.active > td:not(:first-child) {
      opacity: 1;
      position: relative;
      transition: all 0.2s ease-in-out;
      z-index: auto;}
    table > tbody > tr.active > td:last-child {
      border-bottom: 0; }
  table > tfoot {
    display: none; }
    @media (min-width: 256px) {
      table > tfoot {
        display: table-footer-group; } }
  table > thead > tr > th,
  table > tbody > tr > th,
  table > tfoot > tr > th,
  table > thead > tr > td,
  table > tbody > tr > td,
  table > tfoot > tr > td {
    border: 0;
    padding: 0.5em 0.2em;
    line-height: 1.7em;}

.table-footnote {
	padding-left: .5em;
	margin-top: -.5em;
	font-size: .9em;
}

/* Categories & Tags List */
ul.posts {
	margin: 1.25em;
}



/* Search Results */
#search .search-results .mini-post header h2 {
	font-size: 1.1em;
}


/* Bootstrap Collapse Button 
   ========================================================================== 
*/
button.btn-info {
    font-family: raleway,Helvetica,sans-serif;
    font-weight: 700;
    font-size: .8em; 
    letter-spacing: .07em;
    line-height: 1.9em;
    color: white;
    background: #9fa4ae;
    outline: none;
    border: 0;
    border-radius: 2px;
    margin: 0 0 0 .3em;
    padding: 0 6px; 
    cursor: pointer;
    vertical-align: 5%;
}

button.btn-info:hover{
    background: #707073;
}

blockquote button.btn-info {
    background: #8d899a;
    color: #fafafd;    
}

.collapse {
	overflow-x: auto;
}


.collapse + ul{
	margin-top: 0em;
}
blockquote .collapse {
	box-shadow: unset;
}

/* Bootstrap Accordion
   ========================================================================== 
*/
ul + .accordion {
    margin-left: 0em;
	margin-right: 0em;
}


.panel-default {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin: 0 1.3em;
}

.panel-heading {
    margin: 0;
    border: 0;
	padding: 0;
    border-radius: 0;
	background: transparent;
}

.btn-link {
    padding: .3em .25em .3em 1em;   
	text-align: left;
    width: 100%;
    border: 0;
    background: transparent;
    line-height: 2.5em;
    outline: none;
    position: relative;
}

.btn-link div.fa {
    position: absolute;
    top: 1em;
}

.btn-link div:hover {
    color:#2ebaae;
}

.btn-link span {
	margin-left: .5em;
}

.panel-body p {
	padding: 0 1em;
}

.panel-body p:first-child {
	margin-top: 0;
}

.accordion .panel-default:first-child, 
.accordion .panel-default:first-child .card-header, 
.accordion .panel-default:first-child .btn-link{
    border-radius: .25em .25em 0 0;
}

.accordion .panel-default:not(:first-child) {
	border-top: 0;
}

.accordion .panel-default:last-child,
.accordion .panel-default:last-child button[aria-expanded="false"] {
    border-radius: 0 0 .25em .25em;
}

.html-widget {
    margin: auto !important;
	text-align: left;
}

.info.legend {
    font-size: 1em;
    margin-right: 7px !important;
    margin-bottom: 7px !important; 
}

div.scroll-box button.btn-scroll {
	display: none;
}
 
@media (max-width: 767px) {
	div.scroll-box {
		position: relative;
		width: 100%;
	}
	
	div.scroll-box>div.figure:nth-of-type(1) {
		margin: 0 -1em;
		background: white;
		top: 3.1em;
		left: 0;
		z-index: 10000;
		position: -webkit-sticky;
		position: sticky;		
	}
	
	div.scroll-box .scroll-next{
		position: relative;
	}
	
	div.scroll-box .scroll-next > *{
		position: absolute;
		top: 0;
	}
	
	div.scroll-box>div.figure.shadow {
		box-shadow: 0px 7px 5px -2px rgba(0,0,0,0.2),
		            0px -1px 5px -2px rgba(0,0,0,0.3);	
	}
	
	div.scroll-box div.scroll-fig img {
		max-height: 270px;
		width: auto;
	}

	div.scroll-box div.scroll-fig p.caption{
		margin-bottom: 0em;
		margin-top: .3em;
		padding-bottom: .3em;
		font-size: .9em;
	}
	
	div.scroll-box button.btn-scroll {
		display: block;
		float: left;
		margin: 0;
		border: 0;
		outline: none;
		width: fit-content;
		height: 2em;
		font-family: raleway, Helvetica, sans-serif;
		font-weight: bold;
		font-size: .82em;
		letter-spacing: .1em;
		color: white;
		background: #8d899a;
		border-radius: 0 0 .25em .25em;
		box-shadow: 0px 5px 5px -2px rgba(0,0,0,0.2),
		            5px 0px 5px -2px rgba(0,0,0,0.2);
	}
}