/*------------------------------------
* sext
*
* @author linghua.zhang@me.com
* @link http://lhzhang.com/
* @update 2011-12-20
* 
* |/ | (~ (~
* |\.|._)._)
* --------------------------------- */
/*
@import url(http://fonts.googleapis.com/css?family=Galdeano);
@import url(http://fonts.googleapis.com/css?family=Electrolize);
@import url(http://fonts.googleapis.com/css?family=Cuprum);
*/
body{
    margin-left:auto;
    margin-right:auto;
    font-family:"Galdeano","Hiragino Sans GB","Microsoft YaHei",Trebuchet,"Trebuchet MS",Tahoma,"Lucida Grande","Lucida Sans Unicode",Verdana,sans-serif;
    color:#000000;
    background-color:#ffffff;
}
.site-header{
    padding:1em 20px;
    border-bottom: 1px solid #cccccc;
    color: #dd0000;
    margin: 0px;
    display:flex;
    align-items:center;
    gap:1.5em;
    flex-wrap:wrap;
}
nav{
    font-family: "Electrolize",sans-serif;
    font-size: 1em;
    text-transform: uppercase;
    display:flex;
    align-items:center;
    gap:.35em;
    flex-wrap:wrap;
    width:100%;
    min-width:0;
    order:3;
    flex-basis:100%;
}
#description{
    text-align: right;
    margin-left:auto;
    color:#555555;
}
#container{
    width:calc(100% - 48px);
    box-sizing:border-box;
    max-width:1320px;
    margin:clamp(16px, 2vw, 32px) auto;
    display:block;
    padding:0.2em;
    border-top: 6px solid #EE0000;
    box-shadow: 0 0 10px 0 #cfcfcf;
    min-height: 650px;
}

.content{
    font-size:16px;
    line-height:1.85;
    color:#333333;
    width:auto;
    padding:clamp(24px, 3vw, 40px);
    min-height: 500px;
}
.row-fluid{
    min-height: 450px;
}
.listing{
    min-height:450px;
}
.paginator {
    font: 14px Arial,Helvetica,sans-serif;
    color: #AAA;
    margin: 20px 0;
    text-align: center;
    line-height: 150%;
    display: block;
}
footer{
    display:block;
    border-top: 1px dashed #CCC;
    text-align: center;
}

#sidebar{
    float:right;
    margin-right: -350px;
    margin-top: -134px;
}
#weibo{
    width:230px;
}
#douban{
    width: 230px;
text-align: center;
}
#xiami{
    margin-right: 80px;
}

#sidebar p{
    text-align: center;
    color:#dd0000;
}

#tag_cloud{
    margin-bottom: 1em;
}
#tag_cloud a:hover{
    color:#333333 !important;
    text-decoration:none;
}

.listing-item,.listing-seperator{
  list-style-type:none;
}
.listing-item a{
    padding:.2em 1em;

}


.listing-item time{
    color:#999999;
    }
.listing-seperator{
    font-weight:bold;
    }
.meta{
    text-align:right;
    font-size:12px;
    }

.post{
    padding:.5em 0em;
    }


embed,object,iframe{
    display:block;
    margin:4px auto;
    }

.paginator a,.paginator span{
    padding: 0 4px;
    margin: 2px;
    text-decoration: none;
}

.paginator .current-page {
    color: white;
    background: #ff0000;
}

.paginator a:hover{
    color: white;
    background: #83BF73;
}

@media screen and (max-width: 720px) {
    #container{
        width:calc(100% - 20px);
        margin:10px auto;
        padding:0;
        border-top-width:4px;
        box-shadow:none;
    }

    .site-header{
        padding:.85em 16px;
        display:flex;
        align-items:flex-start;
        gap:.35em .8em;
    }

    .site-header h1{
        flex-basis:100%;
        margin:0;
        order:1;
    }

    nav{
        display:flex;
        gap:.1em;
        margin-top:.8em;
        order:3;
    }

    #description{
        flex-basis:100%;
        order:2;
        text-align:left;
        margin:0;
    }

    .content{
        padding:18px clamp(14px, 4vw, 20px);
        font-size:16px;
        line-height:1.85;
    }
}

/* Article layout and table of contents */
html {
    scroll-behavior:smooth;
}

.post-layout {
    display:grid;
    grid-template-columns:minmax(11rem, 18%) minmax(0, 1fr);
    gap:clamp(1.5rem, 3vw, 3rem);
    align-items:start;
    width:100%;
    max-width:none;
    margin:0 auto;
}

.post-layout--without-toc {
    grid-template-columns:minmax(0, 1fr);
}

.post-layout--without-toc .post-main {
    max-width:none;
    margin:0;
}

.post-main {
    width:100%;
    max-width:none;
    min-width:0;
}

.post {
    min-width:0;
}

.post-toc {
    position:sticky;
    top:24px;
    max-height:calc(100vh - 48px);
    overflow-y:auto;
    padding:14px 16px;
    font-size:12px;
    line-height:1.55;
    background:#fafafa;
    border:1px solid #e5e5e5;
    border-radius:6px;
    scrollbar-width:thin;
}

.post-toc summary {
    cursor:pointer;
    font-weight:700;
    color:#333;
}

.post-toc summary::marker {
    color:#dd0000;
}

#TableOfContents ul {
    margin:10px 0 0;
    padding:0;
    list-style:none;
    font-size:inherit;
}

#TableOfContents ul ul {
    margin-top:4px;
    padding-left:12px;
    border-left:1px solid #ddd;
    font-size:inherit;
}

#TableOfContents li {
    padding:2px 0;
    line-height:1.45;
}

#TableOfContents a {
    display:block;
    color:#666;
    font-weight:400;
    font-size:inherit;
    overflow-wrap:break-word;
    word-break:keep-all;
    line-break:strict;
}

#TableOfContents code,
#TableOfContents strong {
    font-size:inherit;
}

#TableOfContents code {
    padding:0;
    color:inherit;
    background:transparent;
    border:0;
    font-family:inherit;
}

#TableOfContents > ul > li > a {
    color:#444;
    font-weight:700;
}

#TableOfContents a:hover,
#TableOfContents a:focus {
    color:#dd0000;
    text-decoration:none;
}

.post h2,
.post h3 {
    scroll-margin-top:24px;
}

.post pre {
    overflow-x:auto;
    white-space:pre;
    word-break:normal;
    -webkit-overflow-scrolling:touch;
}

.post table {
    display:block;
    overflow-x:auto;
    white-space:normal;
    -webkit-overflow-scrolling:touch;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior:auto;
    }
}

@media screen and (max-width: 65rem) {
    .post-layout,
    .post-layout--without-toc {
        display:block;
    }

    .post-main {
        max-width:none;
    }

    .post-toc {
        position:fixed;
        z-index:100;
        top:5.25rem;
        left:0;
        width:auto;
        max-height:calc(100vh - 6.75rem);
        margin:0;
        padding:8px 12px;
        overflow-y:auto;
        background:rgba(250, 250, 250, .98);
        border-color:#ddd;
        border-radius:0 6px 6px 0;
        box-shadow:0 3px 14px rgba(0, 0, 0, .12);
    }

    .post-toc details[open] {
        width:min(78vw, 22rem);
        max-width:calc(100vw - 2rem);
    }

    .post-toc details:not([open]) summary {
        color:#b9221f;
    }

    .post-toc summary {
        white-space:nowrap;
    }
}


/* Post header: title + meta before body */
.post-header {
  margin: 0 0 1.25em;
  padding-bottom: 0.75em;
  border-bottom: 1px solid #e6e6e6;
}
.post-title {
  margin: 0 0 0.35em;
  font-size: 1.75em;
  line-height: 1.25;
}
.post-meta {
  margin: 0;
  color: #999999;
  font-size: 0.9em;
}
.post-meta time + .post-categories::before {
  content: " · ";
}
.post-categories a {
  color: #666666;
}
.post-dek {
  margin: 0.6em 0 0;
  color: #555555;
  font-size: 0.95em;
  line-height: 1.5;
}

/* Home listing summaries from front matter description */
.listing-item {
  margin-bottom: 0.85em;
}
.listing-summary {
  margin: 0.25em 0 0 0;
  padding: 0 0 0 1em;
  color: #666666;
  font-size: 0.9em;
  line-height: 1.45;
  max-width: 46em;
}

/* === desktop polish 2026-10 === */
:root {
  --ink: #1f1f1f;
  --muted: #6b6b6b;
  --line: #e8e6e3;
  --paper: #fffdf9;
  --accent: #b42318;
  --accent-soft: #f6ebe8;
  --measure: 42rem;
  --shell: 1320px;
}

body {
  font-family: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: #f3f1ec;
}

#container {
  width: calc(100% - 48px);
  max-width: var(--shell);
  margin: clamp(16px, 2vw, 40px) auto;
  padding: 0;
  border-top: 3px solid var(--accent);
  box-shadow: 0 12px 40px rgba(40, 30, 20, 0.06);
  background: var(--paper);
  min-height: 650px;
}

.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  padding: 1.5rem 2rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
}

.brand {
  min-width: 0;
}

.site-header h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.sitename {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
}

.sitename:hover {
  color: var(--ink);
  text-decoration: none;
}

#description {
  margin: 0.35rem 0 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  width: auto;
  order: 0;
  flex-basis: auto;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a,
.site-header nav a.navigator {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  color: var(--ink);
  border-radius: 999px;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a.navigator:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.content {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #2c2c2c;
  padding: 2rem clamp(1.25rem, 3vw, 2.5rem) 2.5rem;
}

.listing {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.listing-seperator {
  margin: 1.35rem 0 0.25rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.listing-seperator:first-child {
  margin-top: 0;
}

.listing-item {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.55rem 1.25rem;
  align-items: start;
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.listing-item:last-child {
  border-bottom: 0;
}

.listing-date,
.listing-item time {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

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

.listing-title,
.listing-item a.listing-title,
.listing-item a {
  display: inline;
  padding: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.listing-title:hover,
.listing-item a.listing-title:hover,
.listing-item a:hover {
  color: var(--accent);
  text-decoration: none;
}

.listing-summary {
  margin: 0.45rem 0 0;
  padding: 0;
  max-width: var(--measure);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.post-header {
  display: block;
  margin: 0 0 1.6rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
}

.content .post-title {
  margin: 0 0 0.55rem;
  padding: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.post-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.post-categories a {
  color: var(--muted);
}

.post-categories a:hover {
  color: var(--accent);
}

.post-dek {
  margin-top: 0.85rem;
  max-width: var(--measure);
  color: #4a4a4a;
  font-size: 1.02rem;
  line-height: 1.65;
}

.post-toc {
  background: #faf8f5;
  border-color: var(--line);
  border-radius: 10px;
}

#TableOfContents a:hover,
#TableOfContents a:focus {
  color: var(--accent);
}

.paginator .current-page {
  background: var(--accent);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
}

.paginator a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem 1.35rem;
  background: transparent;
}

footer small {
  color: var(--muted);
}

footer a {
  border: 0;
  color: var(--accent);
}

footer a:hover {
  color: var(--ink) !important;
  background: none;
  border: 0;
  box-shadow: none;
  text-shadow: none;
  text-decoration: underline;
}

@media screen and (max-width: 720px) {
  body {
    background: #f7f5f1;
  }

  #container {
    width: calc(100% - 20px);
    margin: 12px auto;
    box-shadow: none;
  }

  .site-header {
    align-items: flex-start;
    padding: 1rem 1rem 0.85rem;
  }

  .site-header nav {
    width: 100%;
    order: 3;
  }

  .listing-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.95rem 0;
  }

  .listing-date,
  .listing-item time {
    margin-top: 0;
  }

  .content {
    padding: 1.25rem 1rem 1.75rem;
  }
}

.post-header .post-title,
.post-header .post-meta,
.post-header .post-dek {
  display: block;
  width: 100%;
}

.post {
  text-align: left;
  text-justify: none;
}

.post p {
  text-align: left;
  letter-spacing: normal;
}

