.f-17 {
    font-size: 15px;
}

.nowpage .breadcrumb {
    background-color: transparent;
}



/*设置文章导航*/
.article-toc {
    position: fixed;
    width: 19%;
    max-height: 36.3rem;
    overflow: auto;
    background: white;
    padding: 1rem 1rem .2rem 0;
}

.subject-list::-webkit-scrollbar,
.article-toc::-webkit-scrollbar {
    width: 4px;
}

.subject-list::-webkit-scrollbar-track,
.article-toc::-webkit-scrollbar-track {
    box-shadow: none;
    border-radius: 2px
}

.subject-list::-webkit-scrollbar-thumb,
.article-toc::-webkit-scrollbar-thumb {
    background-color: #e4e6eb;
    outline: none;
    border-radius: 2px
}

.article-toc .toc-title {
    margin-left: 1rem;
    padding-bottom: .6rem;
    margin-bottom: .8rem;
    border-bottom: 1px solid #e4e6eb;
}

.article-toc ul {
    padding-left: 1rem;
    list-style-type: none;
}

.article-toc ul > li > ul li {
    font-size: 94%;
}

.article-toc li {
    margin-top: .4em;
    margin-bottom: .4em;
}

/* 统一 alert 提示框样式 - 现代简洁风格 */
.article-body .alert,
.challenge-description .alert,
.quiz-question-content .alert,
.challenge-hint .alert,
.tag-description .alert {
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    padding: 0.5rem 1rem !important;
    margin: 0.5rem 0 !important;
}

/* 不同类型提示框的边框颜色 */
.article-body .alert-primary,
.challenge-description .alert-primary,
.quiz-question-content .alert-primary,
.challenge-hint .alert-primary,
.tag-description .alert-primary {
    border-color: rgba(13, 110, 253, 0.3) !important;
}

.article-body .alert-success,
.challenge-description .alert-success,
.quiz-question-content .alert-success,
.challenge-hint .alert-success,
.tag-description .alert-success {
    border-color: rgba(25, 135, 84, 0.3) !important;
}

.article-body .alert-danger,
.challenge-description .alert-danger,
.quiz-question-content .alert-danger,
.challenge-hint .alert-danger,
.tag-description .alert-danger {
    border-color: rgba(220, 53, 69, 0.3) !important;
}

.article-body .alert-warning,
.challenge-description .alert-warning,
.quiz-question-content .alert-warning,
.challenge-hint .alert-warning,
.tag-description .alert-warning {
    border-color: rgba(255, 193, 7, 0.4) !important;
}

.article-body .alert-info,
.challenge-description .alert-info,
.quiz-question-content .alert-info,
.challenge-hint .alert-info,
.tag-description .alert-info {
    border-color: rgba(13, 202, 240, 0.3) !important;
}

.article-body .alert-secondary,
.challenge-description .alert-secondary,
.quiz-question-content .alert-secondary,
.challenge-hint .alert-secondary,
.tag-description .alert-secondary {
    border-color: rgba(108, 117, 125, 0.3) !important;
}

.article-body .alert p,
.challenge-description .alert p,
.quiz-question-content .alert p,
.challenge-hint .alert p,
.tag-description .alert p {
    margin-bottom: .1rem;
}

.toc a {
    display: block;
    color: rgba(60, 60, 67, .8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toc a:hover {
    color: rgba(33, 37, 41, 1);
}

.toc a.active {
    color: #1e92f1;
}


.toc a::before {
    content: "";
    position: absolute;
    left: 0;
    width: 3px;
    height: 1.2rem;
    border-radius: 2px;
    background-color: transparent;
}

.toc a.active::before {
    background-color: #1e92f1;
}

blockquote {
    margin: 0 0 .5em;
}

/* 文章段落间距优化 - 缩小段落间距 */
.article-body p,
.challenge-description p,
.quiz-question-content p,
.challenge-hint p,
.tag-description p {
    margin-bottom: 0.75em !important;
}

/* 博客文章和挑战题目 blockquote 样式 - 带左侧竖条 */
.article-body blockquote,
#article .article-body blockquote,
.challenge-description blockquote,
.quiz-question-content blockquote,
.challenge-hint blockquote,
.tag-description blockquote {
    border-left: 3px solid rgba(101, 176, 254, 0.6) !important;
    padding: 10px 10px 4px 10px;
    margin: 12px 0;
    background: rgba(101, 176, 254, 0.05);
    border-radius: 4px;
    color: #333;
}

.challenge-description blockquote p,
.quiz-question-content blockquote p,
.challenge-hint blockquote p,
.tag-description blockquote p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.challenge-description blockquote p:last-child,
.quiz-question-content blockquote p:last-child,
.challenge-hint blockquote p:last-child,
.tag-description blockquote p:last-child {
    margin-bottom: 0;
}

.challenge-description blockquote p:first-child,
.quiz-question-content blockquote p:first-child,
.challenge-hint blockquote p:first-child,
.tag-description blockquote p:first-child {
    margin-top: 0;
}

.challenge-description blockquote a,
.quiz-question-content blockquote a,
.challenge-hint blockquote a,
.tag-description blockquote a {
    color: #1976D2;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.challenge-description blockquote a:hover,
.quiz-question-content blockquote a:hover,
.challenge-hint blockquote a:hover,
.tag-description blockquote a:hover {
    color: #1565C0;
    border-bottom-color: #1976D2;
}

/* 博客文章和挑战题目标题样式 - 移除横线，缩小间距 */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6,
#article .article-body h1,
#article .article-body h2,
#article .article-body h3,
#article .article-body h4,
#article .article-body h5,
#article .article-body h6,
.challenge-description h1,
.challenge-description h2,
.challenge-description h3,
.challenge-description h4,
.challenge-description h5,
.challenge-description h6,
.quiz-question-content h1,
.quiz-question-content h2,
.quiz-question-content h3,
.quiz-question-content h4,
.quiz-question-content h5,
.quiz-question-content h6,
.challenge-hint h1,
.challenge-hint h2,
.challenge-hint h3,
.challenge-hint h4,
.challenge-hint h5,
.challenge-hint h6,
.tag-description h1,
.tag-description h2,
.tag-description h3,
.tag-description h4,
.tag-description h5,
.tag-description h6 {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-top: 1.2em !important;
    margin-bottom: 0.5em !important;
}

pre {
    line-height: 1.5;
    overflow-x: auto;
    position: relative;
    white-space: pre;
    word-wrap: normal;
    word-break: normal;
}

.codehilite {
    position: relative;
}

/*复制代码*/
.code-wrapper {
    border-radius: 8px 8px 0 0;
    background-color: #292b30;
    display: flex;
    justify-content: space-between;
    height: 1.8rem;
}

.code-wrapper:before {
    margin-top: .5rem;
    margin-left: 1rem;
    content: " ";
    border-radius: 50%;
    -webkit-border-radius: 50%;
    background: #fc625d;
    width: .7rem;
    height: .7rem;
    box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
    -webkit-box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
}

.code-wrapper .code-lang {
    display: block;
    font-size: .9rem;
    margin-right: 1rem;
}

.codehilite button {
    display: none;
    background-color: transparent;
    border: none;
    color: #A6ACCD;
    font-size: .9rem;
    cursor: pointer; /* 改变光标样式 */
    outline: none; /* 去掉聚焦时的虚线 */
    position: absolute;
    top: 0;
    right: 0;
    margin-right: .6rem;
    z-index: 999;
}

.codehilite:hover button {
    display: block;
}

.codehilite:hover .code-lang {
    display: none;
}


/*复制代码*/


/* pre next blog */
.more-blog {
    text-align: center;
    position: fixed;
    top: 50%;
    z-index: 88;
    color: #ccc;
}

.more-blog a {
    padding: 5rem 1rem;
}

.more-page-card a {
    background: var(--izone-background-container);
    color: var(--izone-font-default);
    padding: 5px 14px;
    border-radius: 14px;
}

#icon-pre-blog {
    left: 2%;
}

#icon-next-blog {
    right: 2%;
}

/*subject start*/

.subject-block {
    padding-right: 0;
}

.toc-block {
    padding-left: 0;
}

.subject-list {
    color: rgba(60, 60, 67, .8);
    position: fixed;
    width: 19%;
    overflow: auto;
    background: white;
    padding: 1rem 1rem 0.2rem 0;
}

.subject-list .toc-title {
    color: #2d3039;
    margin-left: 1rem;
    padding-bottom: 0.6rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #e4e6eb;
}

.subject-article-list ul {
    padding-left: 1rem;
    list-style-type: none;
}

.subject-article-list a.active::before {
    background-color: #ea6f5a;
}

.subject-article-list a.active {
    position: relative;
    color: #ea6f5a;
}

.active-subject .subcategory-title {
    color: #ea6f5a;
}

.subject-article-list ul > li > ul a::before {
    content: "";
    position: absolute;
    top: 0;
    border-radius: 2px;
    left: -1.1rem;
    height: 100%;
    width: .1rem;
}

.subject-article-list li {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}


.subject-article-list ul > li ul {
    border-left: rgba(60, 60, 60, .1) solid .1rem;
}

.subject-subcategory {
    position: relative;
    display: flex;
    width: 100%;
}

.subcategory-title {
    display: flex;
    align-items: center;
    flex-grow: 1;
    font-weight: 600;
}

.subject-subcategory {
    cursor: pointer;
}

.subject-subcategory .caret {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1rem;
    height: 1rem;
    color: rgba(60, 60, 67, .43);
    cursor: pointer;
    transition: color .25s;
}

.collapsed .caret-icon {
    transform: rotate(0)
}

.caret-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transform: rotate(90deg);
    transition: transform .25s;
}

nav.nav-code-group {
    background: #292b30;
    border-radius: 8px 8px 0 0;
    padding-bottom: -1px;
    border-bottom: 1px solid #222;
}

nav.nav-code-group .nav-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    color: #909095;
    text-decoration: none;
}

nav.nav-code-group .nav-tabs .nav-link.active {
    background: #292b30;
    color: #fff;
    margin-bottom: -1px;
    border-bottom: 1px solid #20c997;
}

nav.nav-code-group .nav-tabs {
    border-bottom: none;

}

nav.nav-code-group .nav-tabs .nav-item {
    margin-bottom: 0;
}

div.code-group .code-wrapper {
    border-radius: 0;
}

/*subject end*/

/* Small devices (landscape phones, 576px and up) */
/* X-iPhone6 AND plus */
@media (min-width: 576px) {
    .f-17 {
        font-size: 15px;
    }
}

/* Medium devices (tablets, 768px and up) */
/* Y-iPad mini */
@media (min-width: 768px) {
    .f-17 {
        font-size: 16px;
    }
}

/* Large devices (desktops, 992px and up) */
/* X-iPad Y-iPad Pro*/
@media (min-width: 992px) {
    .subject-col-7 {
        flex: 0 0 60%;
        max-width: 60%;
    }

    .subject-col-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .subject-list,
    .toc-block .article-toc {
        max-height: 673px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
/* PC X-iPad Pro*/
@media (min-width: 1200px) {
    .subject-list,
    .toc-block .article-toc {
        max-height: 694px;
    }
}

@media (min-width: 1450px) {
    .subject-col-7 {
        max-width: 834px;
    }

    .subject-col-2 {
        max-width: 300px;
    }

    .article-toc,
    .subject-list {
        max-width: 284px
    }
}

@media (min-width: 2560px) {
    .subject-list,
    .toc-block .article-toc {
        max-height: 1230px;
    }
}

/* ============================================
 * 博客文章代码高亮样式优化 - AI风格
 * 简洁现代的代码块样式，无边框设计
 * 适用于博客文章(.article-body)和靶场页面(特定类名)
 * 完全不影响 AI 聊天模块
 * ============================================ */

/* 代码块容器样式 - 只针对文章和靶场详情 */
#article .article-body .codehilite,
.article-body .codehilite,
.challenge-description .codehilite,
.quiz-question-content .codehilite,
.challenge-hint .codehilite,
.tag-description .codehilite {
    margin: 0.8rem 0 !important;
    position: relative;
    border-radius: 8px !important;
}

/* 代码块pre标签 - 简洁纯色背景，无边框，无悬停效果 */
#article .article-body .codehilite pre,
.article-body .codehilite pre,
.challenge-description .codehilite pre,
.quiz-question-content .codehilite pre,
.challenge-hint .codehilite pre,
.tag-description .codehilite pre {
    background: #f8f9fa !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 1.5rem 1rem !important;
    color: #333 !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    overflow-x: auto !important;
    white-space: pre !important;
    word-wrap: normal !important;
    word-break: normal !important;
}

/* 强制移除代码块内部背景色，保持代码格式 */
#article .article-body .codehilite code,
.article-body .codehilite code,
.challenge-description .codehilite code,
.quiz-question-content .codehilite code,
.challenge-hint .codehilite code,
.tag-description .codehilite code {
    background: transparent !important;
    padding: 0 !important;
    white-space: pre !important;
    word-wrap: normal !important;
    word-break: normal !important;
    display: block !important;
}

/* 强制移除高亮行背景 */
#article .article-body .codehilite .hll,
.article-body .codehilite .hll,
.challenge-description .codehilite .hll,
.quiz-question-content .codehilite .hll,
.challenge-hint .codehilite .hll,
.tag-description .codehilite .hll {
    background-color: transparent !important;
    background: transparent !important;
}

/* 强制移除所有span元素的背景，保持格式 */
#article .article-body .codehilite code span,
#article .article-body .codehilite code .line,
.article-body .codehilite code span,
.article-body .codehilite code .line,
.challenge-description .codehilite code span,
.challenge-description .codehilite code .line,
.quiz-question-content .codehilite code span,
.quiz-question-content .codehilite code .line,
.challenge-hint .codehilite code span,
.challenge-hint .codehilite code .line,
.tag-description .codehilite code span,
.tag-description .codehilite code .line {
    background: transparent !important;
    background-color: transparent !important;
    white-space: pre !important;
}

/* 代码块滚动条样式 */
#article .article-body .codehilite pre::-webkit-scrollbar,
.article-body .codehilite pre::-webkit-scrollbar,
.challenge-description .codehilite pre::-webkit-scrollbar,
.quiz-question-content .codehilite pre::-webkit-scrollbar,
.challenge-hint .codehilite pre::-webkit-scrollbar,
.tag-description .codehilite pre::-webkit-scrollbar {
    height: 6px;
}

#article .article-body .codehilite pre::-webkit-scrollbar-track,
.article-body .codehilite pre::-webkit-scrollbar-track,
.challenge-description .codehilite pre::-webkit-scrollbar-track,
.quiz-question-content .codehilite pre::-webkit-scrollbar-track,
.challenge-hint .codehilite pre::-webkit-scrollbar-track,
.tag-description .codehilite pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

#article .article-body .codehilite pre::-webkit-scrollbar-thumb,
.article-body .codehilite pre::-webkit-scrollbar-thumb,
.challenge-description .codehilite pre::-webkit-scrollbar-thumb,
.quiz-question-content .codehilite pre::-webkit-scrollbar-thumb,
.challenge-hint .codehilite pre::-webkit-scrollbar-thumb,
.tag-description .codehilite pre::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#article .article-body .codehilite pre::-webkit-scrollbar-thumb:hover,
.article-body .codehilite pre::-webkit-scrollbar-thumb:hover,
.challenge-description .codehilite pre::-webkit-scrollbar-thumb:hover,
.quiz-question-content .codehilite pre::-webkit-scrollbar-thumb:hover,
.challenge-hint .codehilite pre::-webkit-scrollbar-thumb:hover,
.tag-description .codehilite pre::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 行内代码样式 */
#article .article-body code:not(.codehilite code),
.article-body code:not(.codehilite code),
.challenge-description code:not(.codehilite code),
.quiz-question-content code:not(.codehilite code),
.challenge-hint code:not(.codehilite code),
.tag-description code:not(.codehilite code) {
    background: rgba(0, 0, 0, 0.06) !important;
    padding: 0.15rem 0.4rem !important;
    border-radius: 4px !important;
    font-size: 0.9em !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    color: #e83e8c !important;
}

/* 代码块按钮样式优化 - 简洁无边框，无悬停效果 */
#article .article-body .codehilite button,
.article-body .codehilite button,
.challenge-description .codehilite button,
.quiz-question-content .codehilite button,
.challenge-hint .codehilite button,
.tag-description .codehilite button {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    color: #6b7280 !important;
    font-size: 0.75rem !important;
    padding: 0.25rem 0.6rem !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    outline: none !important;
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.75rem !important;
    z-index: 10 !important;
    display: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

#article .article-body .codehilite button:hover,
.article-body .codehilite button:hover,
.challenge-description .codehilite button:hover,
.quiz-question-content .codehilite button:hover,
.challenge-hint .codehilite button:hover,
.tag-description .codehilite button:hover {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

#article .article-body .codehilite:hover button,
.article-body .codehilite:hover button,
.challenge-description .codehilite:hover button,
.quiz-question-content .codehilite:hover button,
.challenge-hint .codehilite:hover button,
.tag-description .codehilite:hover button {
    display: block !important;
}

/* 代码块语言标签优化 - 无边框，纯色背景 */
#article .article-body .code-wrapper,
.article-body .code-wrapper,
.challenge-description .code-wrapper,
.quiz-question-content .code-wrapper,
.challenge-hint .code-wrapper,
.tag-description .code-wrapper {
    border-radius: 8px 8px 0 0 !important;
    background: #2d3748 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 2rem !important;
    padding: 0 1rem !important;
    box-shadow: none !important;
    border: none !important;
}

#article .article-body .code-wrapper:before,
.article-body .code-wrapper:before,
.challenge-description .code-wrapper:before,
.quiz-question-content .code-wrapper:before,
.challenge-hint .code-wrapper:before,
.tag-description .code-wrapper:before {
    margin-top: 0 !important;
    margin-left: 0 !important;
    content: " " !important;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    background: #fc625d !important;
    width: 0.65rem !important;
    height: 0.65rem !important;
    box-shadow: 16px 0 #fdbc40, 32px 0 #35cd4b !important;
    -webkit-box-shadow: 16px 0 #fdbc40, 32px 0 #35cd4b !important;
}

#article .article-body .code-wrapper .code-lang,
.article-body .code-wrapper .code-lang,
.challenge-description .code-wrapper .code-lang,
.quiz-question-content .code-wrapper .code-lang,
.challenge-hint .code-wrapper .code-lang,
.tag-description .code-wrapper .code-lang {
    display: block !important;
    font-size: 0.8rem !important;
    color: #a0aec0 !important;
    font-weight: 500 !important;
    margin-right: 0 !important;
}

#article .article-body .codehilite:hover .code-lang,
.article-body .codehilite:hover .code-lang,
.challenge-description .codehilite:hover .code-lang,
.quiz-question-content .codehilite:hover .code-lang,
.challenge-hint .codehilite:hover .code-lang,
.tag-description .codehilite:hover .code-lang {
    display: none !important;
}

/* 代码组样式优化 - 无边框，纯色背景 */
#article .article-body nav.nav-code-group,
.article-body nav.nav-code-group,
.challenge-description nav.nav-code-group,
.quiz-question-content nav.nav-code-group,
.challenge-hint nav.nav-code-group,
.tag-description nav.nav-code-group {
    background: #2d3748 !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: none !important;
    border: none !important;
}

#article .article-body nav.nav-code-group .nav-tabs .nav-link,
.article-body nav.nav-code-group .nav-tabs .nav-link,
.challenge-description nav.nav-code-group .nav-tabs .nav-link,
.quiz-question-content nav.nav-code-group .nav-tabs .nav-link,
.challenge-hint nav.nav-code-group .nav-tabs .nav-link,
.tag-description nav.nav-code-group .nav-tabs .nav-link {
    color: #a0aec0 !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
}

#article .article-body nav.nav-code-group .nav-tabs .nav-link.active,
.article-body nav.nav-code-group .nav-tabs .nav-link.active,
.challenge-description nav.nav-code-group .nav-tabs .nav-link.active,
.quiz-question-content nav.nav-code-group .nav-tabs .nav-link.active,
.challenge-hint nav.nav-code-group .nav-tabs .nav-link.active,
.tag-description nav.nav-code-group .nav-tabs .nav-link.active {
    background: #2d3748 !important;
    color: #fff !important;
    border-bottom: 2px solid #3b82f6 !important;
}

/* 响应式优化 */
@media (max-width: 767px) {
    #article .article-body .codehilite pre,
    .article-body .codehilite pre,
    .challenge-description .codehilite pre,
    .quiz-question-content .codehilite pre,
    .challenge-hint .codehilite pre,
    .tag-description .codehilite pre {
        font-size: 0.8125rem !important;
        padding: 1.25rem 0.875rem !important;
    }
    
    #article .article-body .codehilite button,
    .article-body .codehilite button,
    .challenge-description .codehilite button,
    .quiz-question-content .codehilite button,
    .challenge-hint .codehilite button,
    .tag-description .codehilite button {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.5rem !important;
        top: 0.4rem !important;
        right: 0.6rem !important;
    }
    
    #article .article-body .code-wrapper,
    .article-body .code-wrapper,
    .challenge-description .code-wrapper,
    .quiz-question-content .code-wrapper,
    .challenge-hint .code-wrapper,
    .tag-description .code-wrapper {
        height: 1.75rem !important;
        padding: 0 0.75rem !important;
    }
    
    #article .article-body .code-wrapper:before,
    .article-body .code-wrapper:before,
    .challenge-description .code-wrapper:before,
    .quiz-question-content .code-wrapper:before,
    .challenge-hint .code-wrapper:before,
    .tag-description .code-wrapper:before {
        width: 0.6rem !important;
        height: 0.6rem !important;
        box-shadow: 14px 0 #fdbc40, 28px 0 #35cd4b !important;
        -webkit-box-shadow: 14px 0 #fdbc40, 28px 0 #35cd4b !important;
    }
}