@charset "utf-8";

/* post.css — 文章与作品详情正文
   合并自：postmd.css / toc.css */

/* ------------------------ post页面、主标题、日期样式 ------------------------ */
.post-main
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto 24px;
    max-width: 768px;
}
@media screen and (min-width: 1280px) and (max-width: 1319px)  {
    .post-main {
        margin: 0 0 24px;
    }
}
@media screen and (min-width: 1320px)  {
    .post-main {
        margin: 0px auto 24px;
    }
}
.post-main-title
{
    flex: 0 0 100%;
    margin-bottom: 12px;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--font-color-1);
}
.post-meta
{
    font-size: 0.875rem;
    color: var(--font-color-3);
    flex: 0 0 100%;
    margin-bottom: 32px;
}
.post-md
{
    width: 100%;
    padding-bottom: 48px;
    font-size: var(--font-size-regular);
    letter-spacing: 0;
}

/* ------------------------ MD标题 -------------------- */
.post-md h1,
.post-md h2,
.post-md h3,
.post-md h4,
.post-md h5,
.post-md h6
{
    color: var(--font-color-1);
    margin: 12px 0;
}

.post-md h1 {
    font-size:1.875rem;
    font-weight: 600;
    line-height: 72px;
    margin-bottom: 15px;
    margin-top: 40px;
    border-bottom: 1px solid #eef1f3;
}
/* .post-md h1
{
    font-size: 2.5rem;
    line-height: 1.2;
    padding: 24px 0;
} */
.post-md h2
{
    font-size: 1.5rem;
    line-height: 1.2;
    padding: 20px 0;
}
.post-md h3
{
    font-size: 1.375rem;
    line-height: 1.2;
    padding: 18px 0;
}
.post-md h4
{
    font-size: 1.25rem;
    line-height: 1.2;
    padding: 16px 0;
}
.post-md h5
{
    font-size: 1.125rem;
    line-height: 1.2;
    padding: 14px 0;
}
.post-md h6
{
    font-size: 1rem;
    line-height: 1.2;
    padding: 12px 0;
}

/* 标题里的辅助文案：不进入标题文字/锚点，仅由 CSS 渲染展示 */
.post-md h1 .heading-sub::after,
.post-md h2 .heading-sub::after,
.post-md h3 .heading-sub::after,
.post-md h4 .heading-sub::after,
.post-md h5 .heading-sub::after,
.post-md h6 .heading-sub::after
{
    content: attr(data-text);
}


/* ------------------------ 其它Markdown元素样式 ------------------------ */

.post-md a
{
    color: var(--text-tertiary);
    box-shadow: 0 2px 0 var(--line-1);
    transition: color ease-in-out .65s, box-shadow ease-in-out .65s;
}
.post-md a:hover
{
    color: var(--brand-color);
    box-shadow: 0 2px 0 var(--brand-color);
    transition: color ease-in-out .65s, box-shadow ease-in-out .65s;
}
.post-md strong
{
    font-weight: 700;
}
.post-md em
{
    font-style: italic;
}
.post-md kbd
{
    padding: 2px 4px;
    border-radius: 2px;
    background: #eee;
    border: 1px solid #ddd;
}
.post-md ol
{
    list-style: decimal;
    padding-left: 24px;
}
.post-md ul
{
    list-style: disc;
    padding-left: 0px;
}
.post-md ul,
.post-md ol {
    margin: 0px 0 16px 12px;
    list-style: none;
}
.post-md ul>li,
.post-md ol>li {
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
    list-style: none;
}
.post-md ul>li::before,
.post-md ol>li::before {
    content: '';
    position: absolute;
    box-sizing: border-box;
    left: 0;
    top: 15px;
    margin-top: -3px;
    width: 6px;
    height: 6px;
    background-color: #6a6a6a;
    border-radius: 4px;
}

.post-md ul>li>ul>li::before {
    content: '';
    position: absolute;
    box-sizing: border-box;
    left: 0;
    top: 15px;
    margin-top: -3px;
    width: 6px;
    height: 6px;
    border: 1px solid #6a6a6a;
    background-color: transparent;
    border-radius: 4px;
}

.post-md li>li {
    padding-left: 20px;
    position: relative;
}
.post-md li>li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    margin-top: -3px;
    width: 6px;
    height: 6px;
    border: 1px solid #aaadb1;
    background-color: rgba(250,250,250, 0);
}

.post-md img
{
    border-radius: 4px;
}
.post-md hr
{
    border: none;
    height: 2px;
    background: var(--line-3);
    margin: 24px 0;
}

.post-md p
{
    color: var(--text-secondary);
    margin: 12px 0;
}
.post-md blockquote
{
    padding: 12px 0 12px 0;
    color: var(--text-tertiary);
    border-left: 4px solid var(--ink-color);
    padding: 12px 12px;
    margin: 15px 0;
    background-color: #f9f9f9;
    word-wrap: break-word;
}
.post-md blockquote>p {
    font-size: 14px;
    margin: 0;
}
.post-md blockquote>p:last-child {
    margin-bottom: 0;
}
.post-md blockquote>ol {
    padding-left: 0px;
    margin: 0px 0px 0px 8px;
}

.post-md iframe
{
    width: 100%;
    margin: 12px 0;
}

.post-md code
{
    border-radius: 4px;
}

.post-md p>code
{
    border-radius: 4px;
    padding: 2px 4px;
    background: #ebf3f1;
    color: #178483;
    font-size: var(--font-size-regular);
}



/* -------------------------- 表格样式 -------------------------------------- */
.table-container {
    width: 100%;
    overflow-x: scroll;
    margin-bottom: 18px;
}
.post-md table
{
    width: 100%;
    margin: 18px 0;
    font-size: 0.875rem;
    text-align: left;
    border-spacing: 0;
    word-wrap: break-word;
    -ms-word-wrap: break-word;
    word-break: break-all;
    -ms-word-break: break-all;
}
.post-md table th
{
    padding: 10px 14px;
    border:1px solid #E8E8E8;
    background-color: #f8f8f8;
    word-break: normal;
    -ms-word-break: normal;
}
.post-md table tr,
.post-md table td {
    border:1px solid #E8E8E8;
    padding: 10px 14px;
    /*竖直居中*/
    vertical-align: middle;
}
.post-md table tr:hover,
.post-md table td:hover {
    background-color: var(--table-hover);
}
.post-md table td>img {
    max-width: none;
}
/* .post-md>table tr:nth-child(odd) td
{
    background: #fafafa;
}
.post-md>table tr:nth-child(even) td
{
    background: #fff;
} */

/*首列不换行*/
.post-md table td:nth-child(1) {
    white-space: nowrap;
}


/* ------------------------ 图片标题  ------------------------ */
.caption-image {
    font-size: 15px;
    color: #8c8c8c;
    text-align: center;
    margin: 0 0 20px 0;
    line-height: 22px;
}

/* ------------------------ 页面到底文案  ------------------------*/
.desc-page-bottom {
    font-size: 14px;
    color:#AFAFAF;
    text-align:center;
    margin: 0 auto;
    line-height: 22px;
}

/* ------------------------ 多文档展示块 ------------------------ */
.int {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 48px;
    border-left: 4px solid #e4e7eb;
}
.int .cont-int {
        background: #f9f9f9;
        border-radius: 2px;
        border-bottom: 1px solid var(--border-regular);
}
.int .int-cardstyle {
        position: relative;
        padding: 8px 0 0 12px;
        color: #333;
        text-align: left;
}
.int .int-cardstyle .int-desc {
    padding: 0 16px 0 0;
}
.int-desc a {
    color: var(--brand-color);
    box-shadow: none;
}
.int-desc a:hover {
    color: var(--brand-color);
    box-shadow: none;
}
.int-desc .document-attachment {
    display: inline-block;
    font-size: 14px;
}
.int .int-cardstyle .int-desc .multi-document {
    display: flex;
    flex-direction: row;
} 
.int .int-cardstyle .int-title {
    color: var(--text-primary);
    margin: 4px 0 0 0;
    font-size: 15px;
    font-weight: 500;
}
@media screen and (max-width: 600px) {
.int-cardstyle .int-title{
    font-size: 14px;
    }
}
.int .int-cardstyle p {
    margin: 0;
    font-size: 14px;
    color: var(--text-tertiary);
    letter-spacing: 0.03rem;
    line-height: 24px;
}

/* ------------------------ introduction文档展示简化 ------------------------ */
.int-sp {
    color: var(--text-tertiary);
    border-left: 4px solid #e4e7eb;
    padding: 12px 12px;
    margin: 15px 0;
    background-color: #f9f9f9;
}
.int-sp p {
    font-size: 14px;
    margin: 4px 0;
}
/* .int-sp p :last-child {
    margin: 0;
} */

/* ------------------------ 文章前后切换 ------------------------ */
.f-cf {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 40px 0;
    border-top: solid 1px #eee;
}
.f-cf .arrow {
    color: #999999;
    padding: 4px;
    margin: 6px 0 0 0;
}
.link:hover .arrow {
    color: var(--brand-color);
}
.f-cf .link {
    font-size: var(--font-size-regular);
    line-height: 22px;
    max-width: 50%;
    text-overflow: clip;
    margin-bottom: 8px;
}
@media screen and (max-width: 600px) {
    .post-main .f-cf {
        padding:10px 0;
    }
}

/* ----------------------- 代码高亮 --------------------- */
.post-md .hljs-ln-numbers
{
    opacity: .5;
    padding-right: 0px;
}
.hljs-ln td,
.hljs-ln tr {
    border: none !important;
}
.hljs-ln td:hover, 
.hljs-ln tr:hover {
    background: none !important;
}


/* ----------------------- 附件卡片 --------------------- */
.card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background-color: #f7f7f9;
  border-radius: 10px;
}

.card-link {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #efefef; 
  background-color: #fff;
  border-radius: 6px;
  cursor: pointer;

  padding: 8px;
}
.card-link:hover {
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.05);
    color: var(--brand-color);
}
.card-link a {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    box-shadow: none;
}

.card-content .card-link .card-title {
    text-align: left;
    justify-content: center;
    align-items: center;
    margin: auto 12px;
}

#card-img{
  display: block;
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 6px;
    pointer-events: none;
}



.card-content .card-link a {
    text-decoration: none;
    box-shadow: none;
}

@media screen and (max-width: 600px) {
    .card-content {
        flex-direction: column;
    }
    .card-link {
        width: 100%;
    }
    .card-link a{
        display:flex;
        flex-direction: row;
    }
     #card-img {
        width: 64px;
        height: 64px;
    }
}

/* ------------------------文章内容分组标题标签样式(逐步弃用)------------------------------------- */


/* 辅助标题 - 以前 */
.caption-yellow {
  text-align:left; 
  font-weight:900; 
  color:#8C5200; 
  border-bottom:1px solid #F0F0F0;
  padding:16px 0px; 
  margin:40px 0px;
}
/* 辅助标题 - 现在 */
.caption-green {
  text-align:left; 
  font-weight:900; 
  color:#106369; 
  border-bottom:1px solid #F0F0F0; 
  padding:16px 0px; 
  margin:40px 0px;
}

/* 文章黄色标签-问题点 */
.question {
  display: inline-block;
  background: rgba(255, 243, 190, 0.25);
  color: #bd8708;
  padding: 4px 12px;
  font-size: 16px;
  border-radius: 8px;
  text-align: center;
  margin: 16px 0 4px 0;
  font-weight: 600;
}
/* 文章绿色标签-优化点 */
.optimization {
  display: inline-block;
  background: rgba(43, 168, 118, 0.08);
  color: #178483;
  padding: 4px 12px;
  font-size: 16px;
  border-radius: 8px;
  text-align: center;
  margin: 16px 0 4px 0;
  font-weight: 600;
}
/* 文章Regular标签 */
.label-regular {
  display: inline-block;
  background: rgba(206, 206, 206, 0.25);
  color: var(--text-secondary);
  padding: 4px 12px;
  font-size: 16px;
  border-radius: 8px;
  text-align: center;
  margin: 16px 0 4px 0;
  font-weight: 600;
}

  @media screen and (max-width:600px) {
    .caption-yellow,
    .caption-green {
      text-align: center;
    }
    .question,
    .optimization,
    .label-regular {
        margin: 32px auto 12px auto;
        width: 100%;
    }
  }


/* ------------------------文章内容分组标题标签样式(逐步弃用)------------------------------------- */

#toc {
    z-index: 100;
    position: fixed;
    right: 0px;
    top: 80px;
    width: 200px;
    height: 84%;
    padding: 0px 10px 10px 48px;
    margin-bottom: 32px;
    display: none;
    background-color:rgba(255,255,255,0.96);
    font-size: 0.8rem;
    color:#afafaf;
    border-left: 1px solid #f0f0f0;
    overflow: scroll;
}

#toc a {
    color: var(--font-color-toc);
}
#toc a:hover {
    color: var(--text-secondary);
}

/* 设置toc的List的style */
#toc ol>li {
    padding: 0 0 8px 0px;
    margin-bottom: 0px;
    list-style-type: cjk-ideographic;
}
 #toc ol>li ol {
    margin: 0;
}
#toc ol>li li  {
    padding: 0px;
    margin-left: 12px;
    list-style-type: none;
}
 #toc ol>li::before {
    content: none;
}


@media screen and (max-width: 560px) {
    #toc {
      font-size: .9em;
      width: 100%;
      height: 100%;
      left: 0px;
      top: 0px;
      bottom: 0px;
      padding-top: 100px;
    }
}
@media screen and (min-width: 561px) and (max-width: 1279px) {
    #toc{
    right: 0px;
    top: 0px;
    height: 100%;
    bottom: 0px;
    padding-top: 100px;
    box-shadow: -10px 4px 6px -10px rgba(38,38,38,0.08);
    }
}
@media screen and (min-width: 1280px) {
    #toc{
    display: block; 
  }
}


/* 隐藏toc滚动条 */
#toc::-webkit-scrollbar {
  display: none;
}
#toc {
    /* IE 10+ */
    -ms-overflow-style: none; 
    /* Firefox */
    overflow: -moz-scrollbars-none; 
}


/* toc盒子 */
.toc {
  margin: 10px 0 40px 6px;
}


/* 目录面包屑 */
.mini_toc {
  display: block;
  z-index: 1000;
  width: 36px;
  height: 36px;
  border-radius: 8px 0 0 8px;
  border: 1px solid #f0f0f0;
  background-color: var(--white-color);
  text-align: center; 
  position: fixed;
  right:-1px;
  top: 44px;
  cursor: pointer;
  box-shadow: 0 2px 8px -3px rgba(0,0,0,0.2);
}
@media screen and (min-width: 1280px) {
    .mini_toc{
    display: none;
  }
}

.toc_icn{
    position: relative;
    height: 20px;
    width: 14px;
    margin: 10px auto;
    cursor: pointer
}
.toc_icn span{
    position: absolute;
    display: block;
    background-color: var(--text-tertiary);
    height: 2px;
    width: 14px;
    transition: all .25s ease-in-out;
    margin: 0 0 -1px 0;
}

.toc_icn span:nth-child(1){
      top: 0px;
  }
.toc_icn span:nth-child(2){
      top: 8px;
  }
.toc_icn span:nth-child(3){
      top: 8px;
  }
.toc_icn span:nth-child(4){
      top: 16px;;
  }
.toc_icn span:nth-child(1).op{
      top: 8px;
      transition: all .15s ease;
      transform: scaleX(0);
  }
.toc_icn span:nth-child(2).op{
      transform: rotate(45deg);
  }
.toc_icn span:nth-child(3).op{
      transform: rotate(-45deg);
  }
.toc_icn span:nth-child(4).op{
      top: 8px;
      transition: all .15s ease;
      transform: scaleX(0);
  }


.mini_toc:hover {
    box-shadow: 0 4px 12px -3px rgba(0,0,0,0.2);
}
