/**
 * markdown 输出样式
 */

.markdown {
    overflow-wrap: break-word;
    text-align: justify
}

.markdown h1 {
    font-size: 1.8rem !important;
    margin-top: 1em;
    margin-bottom: 16px;
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    letter-spacing: 1px
}

.markdown h2 {
    font-size: 1.5rem !important;
    margin-top: 1em;
    margin-bottom: 16px;
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    letter-spacing: 1px
}

.markdown h3 {
    font-size: 1.3rem !important;
    line-height: 1.43;
    font-weight: bold
}

.markdown h4 {
    font-size: 1.2em !important;
    margin-bottom: 16px;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.5px
}

.markdown h5 {
    font-size: 1rem !important;
    margin-top: 1em;
    margin-bottom: 16px;
    font-weight: bold;
    line-height: 1.4
}

.markdown h6 {
    font-size: 1rem !important;
    color: #777;
    margin-top: 1em;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 16px
}

.markdown strong {
    font-weight: bold;
    font-size: 1rem !important
}

.markdown del {
    text-decoration: line-through
}

.markdown a {
    text-decoration: underline;
}

.markdown blockquote {
    color: #666;
    border-left: 4px solid #ddd;
    padding-left: 20px;
    margin-left: 0;
    font-size: 14px;
    font-style: italic
}

.markdown ul {
    padding-left: 2em;
    margin-bottom: 16px
}

.markdown ol {
    padding-left: 2em;
    margin-bottom: 16px
}

.markdown li {
    font-size: 15px !important;
    line-height: 2
}

.markdown hr {
    height: 1px;
    border: none;
    border-top: 1px solid #ddd;
    background: none
}

.markdown pre.prettyprint {
    padding: 10px;
    border: 1px solid #ddd;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6
}

.markdown table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: auto;
    word-break: keep-all;
    border-collapse: collapse;
    margin-bottom: 16px;
    table-layout: auto;
}

.markdown thead tr {
    background-color: var(--bodyBground)
}

.markdown td {
    padding: 6px 13px;
    border: 1px solid var(--borderColor)
}

.markdown th {
    padding: 6px 13px;
    border: 1px solid var(--borderColor)
}

.markdown table tr:nth-child(even) {
    background: var(--bodyBground)
}

/* 选择不在 <pre> 标签中的 <code> 元素 */
.markdown code:not(pre > code) {
    border-radius: 3px;
    font-size: 14px;
    margin-right: 4px;
    color: var(--aHoverColor);
    /*background: var(--borderColor);*/
    padding: 2px 4px;
}

.markdown pre {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--borderColor);
    /*background: var(--borderColor);*/
    overflow: auto
}

.markdown img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    box-sizing: border-box;
    border: 0;
    border-radius: 4px;
  }

.markdown hr {
    margin: 7px 0 7px 0
}


/* --- 针对手机端的适配样式  */
@media screen and (max-width: 768px) {
    .log-title { margin-bottom: 1.4rem; font-size: 1.45rem; }
    .loglist-content { font-size: 14px !important; line-height: 1.6; }
    .markdown h1 { font-size: 1.35rem !important; margin-top: 0.8em; }
    .markdown h2 { font-size: 1.2rem !important; }
    .markdown h3 { font-size: 1.1rem !important; }
    .markdown h4 { font-size: 1rem !important; }
    .markdown li, .markdown p { font-size: 14px !important; line-height: 1.6; }
    .markdown pre { padding: 10px !important; margin-bottom: 12px; border-radius: 6px; overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
    .markdown pre code, .markdown pre.prettyprint { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important; font-size: 13px !important; line-height: 1.6 !important; white-space: pre !important; word-wrap: normal !important; overflow-x: visible !important; }
    .markdown pre .comment, .markdown pre .com, .markdown pre .hljs-comment, .markdown pre .token.comment { font-size: 90% !important; font-family: sans-serif !important; opacity: 0.85; }
}