@charset "utf-8";

.post-md
{
    width: 100%;
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1.8;
}

.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 > :first-child
{
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.post-md h1
{
    font-size: 2rem;
    line-height: 1.2;
    padding: 0px 0px 20px 0px;
}
.post-md h2
{
    font-size: 1.5rem;
    line-height: 1.2;
    padding: 1.8em 0 0.6em;
    margin: 0;
}
.post-md h3
{
    font-size: 1.25rem;
    line-height: 1.2;
    padding: 1.5em 0 0.3em;
    margin: 0;
}
.post-md h4
{
    font-size: 1.1rem;
    line-height: 1.2;
    padding: 1.2em 0 0.2em;
    margin: 0;
}
.post-md h5
{
    font-size: 1.15rem;
    line-height: 1.2;
    padding: 14px 0;
}
.post-md h6
{
    font-size: 1.1rem;
    line-height: 1.2;
    padding: 12px 0;
}

/* 链接 */
.post-md a
{
    color: var(--font-color-0);
    text-decoration: none;
    transition: color .3s ease;
}
.post-md a:hover
{
    color: #A63C3C;
}

/* 正文段落内的链接 hover 下划线 */
.post-md p a:hover,
.post-md li a:hover,
.post-md blockquote a:hover,
.post-md td a:hover {
    border-bottom: 1px solid #A63C3C;
}

.post-md strong
{
    font-weight: 700;
}
.post-md em
{
    font-style: italic;
}
.post-md del
{
    text-decoration: line-through;
    opacity: 0.5;
}
.post-md kbd
{
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--bg-color-1);
    border: 1px solid var(--line-2);
    box-shadow: 0 1px 0 var(--line-2);
    font-size: 0.85em;
}

/* 列表 */
.post-md ol
{
    list-style: decimal;
    padding-left: 24px;
}
.post-md ul
{
    list-style: disc;
    padding-left: 24px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    white-space: normal;
}
.post-md ol li,
.post-md ul li
{
    margin: 6px 0;
    line-height: 1.8;
}
.post-md ol li::marker
{
    color: var(--font-color-0);
}
.post-md ul li::marker
{
    color: var(--font-color-0);
}

/* 图片 */
.post-md img
{
    border-radius: 4px;
    box-sizing: border-box;
    padding: 5px 5px;
    border: 1px solid var(--line-1);
    margin: 8px 0;
}

/* 分隔线 */
.post-md hr
{
    border: none;
    border-top: 1px solid var(--line-1);
    margin: 32px 0;
}

.post-md p
{
    width: 100%;
    margin: 1.2em 0;
}

/* 引用 */
.post-md blockquote
{
    width: 100%;
    margin: 1.5em 0;
    border-left: 3px solid rgba(207, 75, 75, 0.4);
    padding: 0.8em 1.25em;
    color: var(--font-color-3);
    line-height: 1.8;
    word-wrap: break-word;
}

.post-md .video-container
{
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}
.post-md iframe,
.post-md .video-container iframe
{
    width: 100%;
    height: 100vh;
    max-height: 360px;
    margin: 12px 0;
}

/* 表格 */
.post-md>table
{
    width: 100%;
    text-align: left;
    border-spacing: 0;
    border-collapse: separate;
    border: 1px solid var(--line-1);
    border-radius: 6px;
    overflow: hidden;
}
.post-md>table th
{
    padding: 10px 14px;
    font-weight: 600;
    text-align: left;
    background: var(--bg-color-1);
    border-bottom: 1px solid var(--line-1);
}
.post-md>table td
{
    padding: 10px 14px;
    border-bottom: 1px solid #F0F0F0;
}
.post-md>table tr:last-child td
{
    border-bottom: none;
}
.post-md>table tr:nth-child(even) td
{
    background: #FAFAF8;
}

/* 行内代码 */
.post-md code
{
    border-radius: 3px;
    background: #ECEEF0;
    padding: 0.15em 0.4em;
    color: var(--font-color-2);
    font-size: 0.9em;
}

/* 代码块 */
.post-md pre code
{
    background: #2C2C2E;
    border: none;
    color: #f8f8f2;
    padding: 16px 20px;
    display: block;
    overflow-x: auto;
    border-radius: 6px;
    line-height: 1.6;
}

.post-md .hljs-ln-numbers
{
    opacity: .5;
    padding-right: 12px;
}
