#aside-content .card-widget {
    background-color: #e9eaf0;
    border-radius: 12px;
}

#recent-posts>.recent-post-item {
    background-color: #e9eaf0;
    border-radius: 12px;
}

div#post,
div#page,
div#archive {
    background-color: #e9eaf0;
    border-radius: 12px;
}

#body-wrap.type-posts div#page,
#body-wrap.type-posts #recent-posts,
#body-wrap.type-posts #recent-posts .recent-post-items {
    background-color: #13264d;
}

/* ===== 加粗:干净的字重 + 主题色,不再用色块标签 ===== */
#article-container strong,
#article-container b {
    font-weight: 700;
    color: #2a3050;
    background: none;
    padding: 0;
    box-shadow: inset 0 -0.18em 0 rgba(91, 102, 142, 0.16);
}

/* ===== 正文标题:给低级标题设置下限,h6 仍然大于正文 ===== */
#article-container h1 {
    font-size: 1.9em;
}

#article-container h2 {
    font-size: 1.65em;
}

#article-container h3 {
    font-size: 1.42em;
}

#article-container h4 {
    font-size: 1.25em;
}

#article-container h5 {
    font-size: 1.16em;
}

#article-container h6 {
    font-size: 1.1em;
}

#article-container h1,
#article-container h2,
#article-container h3,
#article-container h4,
#article-container h5,
#article-container h6 {
    line-height: 1.35;
}

/* ===== 代码块:近乎透明背景,只靠极淡边框界定,融入卡片 ===== */
:root {
    --hl-color: #374452;
    --hl-bg: transparent;
    --hltools-bg: transparent;
    --hltools-color: rgba(42, 48, 80, 0.72);
    --hlnumber-bg: transparent;
    --hlnumber-color: rgba(0, 0, 0, 0.2);
    --hlscrollbar-bg: rgba(0, 0, 0, 0.1);
    --hlexpand-bg: linear-gradient(180deg, rgba(233, 234, 240, 0.4), rgba(233, 234, 240, 0.85));
    --article-table-border: rgba(91, 102, 142, 0.42);
    --article-table-header-bg: rgba(91, 102, 142, 0.1);
    --article-table-row-hover: rgba(91, 102, 142, 0.06);
}

/* 正文表格:提高边框对比度,避开代码块内部的 highlight 表格 */
#article-container > table,
#article-container .table-wrap > table {
    border-top-color: var(--article-table-border);
    border-left-color: var(--article-table-border);
}

#article-container > table th,
#article-container > table td,
#article-container .table-wrap > table th,
#article-container .table-wrap > table td {
    border-color: var(--article-table-border);
}

#article-container > table thead,
#article-container .table-wrap > table thead {
    background: var(--article-table-header-bg);
}

#article-container > table tbody tr:hover,
#article-container .table-wrap > table tbody tr:hover {
    background: var(--article-table-row-hover);
}

#article-container figure.highlight {
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    margin: 1.2em 0;
}

#article-container .highlight-tools {
    min-height: 20px;
    height: 1.85em;
    font-size: var(--global-font-size);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#article-container .highlight-tools .code-lang {
    font-size: 1em;
    text-transform: none;
    font-weight: 600;
    color: #2a3050;
    opacity: 0.82;
}

#article-container pre,
#article-container figure.highlight pre,
#article-container figure.highlight code {
    font-size: var(--global-font-size) !important;
}

#article-container .highlight-tools i {
    padding: 3px;
    opacity: 0.4;
    transition: opacity .2s;
}

#article-container .highlight-tools i:hover {
    opacity: 1;
}

/* 行内代码:近乎透明,融入正文 */
#article-container code {
    background: rgba(0, 0, 0, 0.05);
    color: #3d4561;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.88em;
}

#article-container pre code,
#article-container figure.highlight code {
    background: none;
    color: var(--hl-color);
    padding: 0;
    font-size: inherit;
}

/* 暗色模式:也用近乎透明背景,暗底白字 */
[data-theme='dark'] {
    --hl-color: rgba(255, 255, 255, 0.75);
    --hl-bg: transparent;
    --hltools-bg: transparent;
    --hltools-color: rgba(255, 255, 255, 0.72);
    --hlnumber-bg: transparent;
    --hlnumber-color: rgba(255, 255, 255, 0.2);
    --hlscrollbar-bg: rgba(255, 255, 255, 0.1);
    --hlexpand-bg: linear-gradient(180deg, rgba(18, 18, 18, 0.4), rgba(18, 18, 18, 0.85));
    --article-table-border: rgba(255, 255, 255, 0.2);
    --article-table-header-bg: rgba(255, 255, 255, 0.07);
    --article-table-row-hover: rgba(255, 255, 255, 0.05);
}

[data-theme='dark'] #article-container figure.highlight {
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme='dark'] #article-container .highlight-tools {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme='dark'] #article-container .highlight-tools i {
    opacity: 0.35;
}

[data-theme='dark'] #article-container .highlight-tools i:hover {
    opacity: 1;
}

[data-theme='dark'] #article-container .highlight-tools .code-lang {
    color: rgba(255, 255, 255, 0.82);
    opacity: 0.9;
}

[data-theme='dark'] #article-container code {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.7);
}
