/* =========================================================
 * 极简风格自定义 CSS - 最小化干预
 * =========================================================*/

/* 1. 色彩变量 */
:root {
    --accent: #4A6FA5;
    --accent-hover: #3A5A8C;
    --code-bg: #F4F6F8;
}

[data-theme="dark"] {
    --accent: #6B9BD2;
    --accent-hover: #8BB3E0;
    --code-bg: #252525;
}

/* 2. 禁用动画（可选，如果你想要更静态的效果） */
* {
    animation: none !important;
    transition: none !important;
}

a, button {
    transition: color 0.15s ease, background-color 0.15s ease !important;
}

/* 3. 代码块深浅色切换（Butterfly 不支持，必须保留） */
/* 行内代码 */
#article-container :not(pre) > code {
    background: var(--code-bg) !important;
    color: #4A6FA5 !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-size: 0.88em !important;
    border: 1px solid #E0E4E8 !important;
}

[data-theme="dark"] #article-container :not(pre) > code {
    background: #2d2d2d !important;
    color: #6B9BD2 !important;
    border-color: #404040 !important;
}

/* 4. 文章内容微调（可选） */
#article-container {
    line-height: 1.8 !important;
}

#article-container h2 {
    margin-top: 28px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid #EEF1F4 !important;
}

#article-container a {
    text-underline-offset: 3px !important;
}