
/* !*============ ② 跟随系统暗色 ============ *!*/
/*@media (prefers-color-scheme: dark){*/
/*    :root{*/
/*        --bg-color        : #2f2f2f;*/
/*        --hover-bg-color  : #616161;*/
/*        --text-color      : #ddd;*/
/*        --code-bg-color      : #444;*/
/*        --border-color    : #666;*/
/*        --code-text-color  : rgb(169, 218, 250);*/
/*        --code-button-bg-color : #eee;*/
/*        --code-button-bg-hv-color : #eee;*/
/*        --code-button-text-color: #333;*/
/*        --table-hover-color: #ccc;*/
/*        --hljs-background : #4a4a4a;*/
/*    }*/
/*}*/


/* ============ ① 基础（Light） ============ */
:root{
    --bg-color        : #ffffff;
    --text-color      : #333;
    --code-bg-color      : #f5f5f5;
    --border-color    : #ddd;
    --code-text-color  : #4e41ff;
    --code-button-bg-color : #eee;
    --code-button-bg-hv-color : #eee;
    --code-button-text-color: #333;
    --table-hover-color: #eee;
    --hljs-background : #f5f5f5;
    --blue-color: #4636ff;
}

/* ============ ③ 手动暗色（给 <section class="page dark">） ============ */
.page.dark,
.drawer.dark,
.footer__area.dark{
    --bg-color        : #2f2f2f !important;
    --text-color      : #ddd !important;
    --code-bg-color      : #444 !important;
    --border-color    : #666 !important;
    --code-text-color  : rgb(169, 218, 250) !important;
    --code-button-bg-color : #eee !important;
    --code-button-bg-hv-color : #eee !important;
    --code-button-text-color: #333 !important;
    --table-hover-color: #ccc !important;
    --hljs-background : #4a4a4a !important;
    --blue-color: rgb(76, 189, 255) !important;
}

.blue-color,
.blue-2-color
{color : var(--blue-color) !important;}

.page,
.footer__area{
    background: var(--bg-color);
    color:      var(--text-color);
}

.footer__widget-title h4 {
    color: var(--text-color);
}

.hljs {
    background: var(--hljs-background) !important;
}

.page {
    padding: 35px 0;
}
.page h4 {
    font-size: 24px;
    margin-bottom: 5px;
}
.page h4 a:hover {
    color: #4636ff;
}
.page p {
    margin-bottom: 0;
}

.page__main h1 {
    font-size: 50px;
    margin-bottom: 30px;
    padding-top: 30px;
    border-top: 1px solid #eeeeee;
    color: var(--text-color);
}
@media (max-width: 575px) {
    .page__main h1 {
        font-size: 40px;
    }
}

.page__main h2 {
    font-size: 36px;
    margin-bottom: 25px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 25px;
    color: var(--text-color);
}

.page__main h3 {
    font-size: 29px;
    margin-top: 23px;
    color: var(--text-color);
}

.page__main h4 {
    font-size: 25px;
    margin-top: 20px;
    color: var(--text-color);
}

.page__main h5 {
    font-size: 20px;
    margin-top: 16px;
    font-weight: 530;
    color: var(--text-color);
}

.page__main p {
    font-size: 16px;
    font-weight: normal;
    color: var(--text-color);
    line-height: 26px;
    margin-top: 18px;
    letter-spacing: .3px;
}

.page__main .markdown__indent1{
    margin-left: 6ch;
}

.page__main .markdown__indent2{
    margin-left: 7ch;
}

.page__main .markdown__indent3{
    margin-left: 7ch;
}

@media (max-width: 768px) {
    .page__main .markdown__indent1{
        margin-left: 4ch;
    }

    .page__main .markdown__indent2{
        margin-left: 5ch;
    }

    .page__main .markdown__indent3{
        margin-left: 5ch;
    }
}


@media (max-width: 575px) {
    .page__main .markdown__indent1{
        margin-left: 3ch;
    }

    .page__main .markdown__indent2{
        margin-left: 4ch;
    }

    .page__main .markdown__indent3{
        margin-left: 4ch;
    }
}

.page__main strong {
    color: #333;               /* 主色调高亮 */
    font-weight: 700;             /* 加重字体 */
    transition: background 0.2s, color 0.2s;
}

.page__main .italic {
    font-style: italic;
}

.page__main .strikeout {
    text-decoration: line-through;
}

.page__main .border-line {
    border-bottom: 1px solid var(--border-color);
}



.page__main pre {
    margin-top: 15px;
}

.page__meta h4 {
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-color);
}


.page__info h3 {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.content__details textarea {
    height: 250px;
    line-height: 36px;
    color: var(--text-color);
    width: 100%;
    background: #f5f5f5;
    border: 2px solid transparent;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 0 15px;
}

.content__details input {
    height: 44px;
    width: 100%;
    line-height: 36px;
    font-size: 16px;
    color: var(--text-color);
    background: #f5f5f5;
    border: 2px solid transparent;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 0 15px;
}

.content__details input::placeholder {
    font-size: 16px
}

.content__details select {
    appearance: none; /* 隐藏默认样式 */
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    height: 44px;
    line-height: 36px;
    color: var(--text-color);
    background: #f5f5f5;
    border: 2px solid transparent;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 0 15px;
}

.content__details button {
    min-height: 26px;
    line-height: 26px;
    color: #ffffff;
    padding: 10px 26px;
    font-weight: 500;
    background: #4636ff;
    border-radius: 8px;
    cursor: pointer;
}


code {
    font-family: Menlo, "JetBrains Mono", monospace;
    background-color: var(--code-bg-color); /* 代码块背景色 */
    color: var(--code-text-color); /* 代码颜色 */
    padding: 1px 4px 1px; /* 内边距 */
    border-radius: 4px; /* 圆角 */
    font-size: 16px; /* 字体大小 */
}

pre code {
    font-family: Menlo, "JetBrains Mono", monospace;
    background-color: var(--code-button-bg-color);
    /*color: var(--code-button-text-color);*/
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 15px;
    overflow-x: auto;
    display: block;
    line-height: 1.5;
}


button.button-code {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    padding: 1px 12px; !important;
    font-size: 12px;
    font-family: "Menlo", Consolas, monospace;
    background: var(--text-color);
    color: var(--bg-color);
    cursor: pointer;
    border-radius: 10px;
    opacity: 0.85;
    min-height: 26px;
    line-height: 26px;
    font-weight: 500;
    transition: opacity 0.4s, background-color 0.4s, transform 0.4s;
}

.button-code:hover {
    /*background-color: var(--hover-bg-color);*/
    transform: scale(1.05);
}

.button-code:active {
    transform: scale(0.95);
}

.button-code.copied {
    background-color: #28a745 !important;
}

.copied {
    /*color: #28a745 !important;*/
}

.generator-container {
    border-top: 1px solid #eeeeee;
    position: relative;
    padding-top: 10px; /* 根据需要调整 */
}

.generator-container h2 {
    margin: 0;
    border-top: none;
}



/* =====================================
   关键词波浪下划线 & 悬浮注释  v2
   ===================================== */
.keyword-highlight{
    text-decoration-line: underline;
    text-decoration-color: #4636ff;
    text-decoration-style: solid;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    position: relative;
    cursor: help;
    border-radius: 4px;
}

/* ---------- Tool-Tip 本体 ---------- */
.keyword-highlight .kw-tip{
    /*position: absolute;*/
    /*top: -280%;*/

    /*left: 50%;*/
    /*transform: translateX(-50%);*/

    /*width: max-content;*/
    /*max-width: 50ch;*/
    /*padding: 8px 12px;*/
    /*font-size: 15px;*/
    /*line-height: 1.45;*/
    /*font-weight: 400;*/
    /*background: #4636ff;*/
    /*!*outline: #fff solid 3px;*!*/
    /*border-radius: 14px;*/
    /*color:#fff;*/
    /*!*background: #333;*!*/
    /*!*color: #fff;*!*/

    /*box-shadow: 0 4px 4px rgba(78,65,255, 0.32),*/
    /*0 6px 10px rgba(78,65,255,.59);*/

    /*white-space: pre-line;*/
    /*word-break: auto-phrase;*/

    /*opacity:0;*/
    /*transition:opacity .4s ease;*/
    /*z-index:99999;*/
    /*pointer-events: none;*/

    position: absolute;
    left: 50%;
    bottom: 125%; /* 或你原有的位置 */
    transform: translateX(-50%);
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 18px 0 rgba(0,0,0,0.12), 0 1.5px 6px 0 rgba(0,0,0,0.08);
    border-radius: 0;
    padding: 10px 13px 12px 15px;
    z-index: 100;
    width: max-content;
    max-width: 50ch;
    pointer-events: none;
    white-space: pre-line;
    transition: opacity .4s cubic-bezier(.5,.3,.9,1.2), box-shadow .4s;
    opacity: 0;
}

.kw-tip::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #4636ff, #9f63fa 85%);
    border-radius: 0;
    pointer-events: none;
}

/* ---------- 悬浮时出现 ---------- */
.keyword-highlight:hover .kw-tip{ opacity:1; transition:opacity .4s ease;}

.item__list ol {
    margin-top: 10px;
}

.number__list ol[type="1"] {
    margin-top: 10px;
}

.number__list ol[type="1"] ol {
    margin-top: 5px;
}

    /* ① 仅顶层保持十进制 */
.number__list > ol[type="1"] > li{
    list-style-type: decimal;      /* 1. 2. 3. */
}

/* ② 第二层 – 罗马数字 */
.number__list > ol[type="i"] > li{
    list-style-type: lower-roman;  /* i. ii. iii. */
}

/* ③ 第三层（自定义 ::marker 加括号）——先去掉默认样式 */
.number__list ol.ol-lv3 > li{
    list-style-type: none;
}
.number__list ol.ol-lv3 > li::marker{
    content: "(" counter(list-item) ") ";   /* (1) (2) (3) */
}

.item__list ol li {
    list-style: disc;
    /*margin-left: 6ch;*/
    margin-bottom: 3px;
    font-size: 16px;
    color: var(--text-color);
}

.number__list ol li {
    margin-bottom: 3px;
}

/*@media (max-width: 768px) {*/
/*    .number__list ol li {*/
/*        margin-left: 2ch;*/
/*    }*/

/*    .item__list ol li {*/
/*        margin-left: 4ch;*/
/*    }*/
/*}*/

/*@media (max-width: 575px) {*/
/*    .number__list ol {*/
/*        margin-left: 1ch;*/
/*    }*/

/*    .item__list ol li {*/
/*        margin-left: 2ch;*/
/*    }*/
/*}*/

.post-comment-title h3,
.post-comment-title h4,
.post-meta,
.post-meta span,
.avatar-name .post-meta,
.comments-text a,
.avatar-name h5,
.comment-reply,
.avatar-name span{
    color: var(--text-color);
}

.comment-tag,
.services__action,
.services__action a,
.services__action i {
    color: var(--text-color) !important;
    background: var(--code-bg-color);
}

.drawer {
    color: var(--text-color);
    background: var(--bg-color);
}

pre code.hljs,
pre code.hljs *,               /* 所有 token span */
pre code                       /* 保险：没有高亮时 */
{
    white-space: pre-wrap;          /* 保留空格 / Tab / 换行 */
    tab-size: 4;               /* Tab 看起来还是 4 空格 */
    word-wrap: break-word; /* 处理长行 */
}