﻿/* =========================================================
 * 代码高亮 v2 样式（jitheme-hl2.css）
 * .jic-block 结构由 PHP 服务端输出，本文件覆盖 B2 一切 pre/code 干扰
 * ========================================================= */
.jic-block {
    position: relative;
    margin: 18px 0 24px;
    border-radius: var(--b2radius);
    overflow: hidden;
    box-shadow: none;
    background: #0d1117 !important;
    border: 1px solid var(--border-color) !important;
    max-height: 800px;
    display: flex;
    flex-direction: column;
}
/* 顶部栏 */
.jic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #161b22 !important;
    border-bottom: 1px solid var(--border-color) !important;
    flex-shrink: 0;
}
.jic-dots { display: flex; gap: 8px; flex-shrink: 0; }
.jic-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    background: #ff5f56;
}
.jic-dot-y { background: #ffbd2e; }
.jic-dot-g { background: #27c93f; }
.jic-lang {
    font-size: var(--fs-xs);
    color: #8b949e;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.jic-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #8b949e;
    border: 1px solid #30363d;
    padding: 4px 12px;
    font-size: var(--fs-xs);
    border-radius: var(--b2radius);
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
    transition: all 0.2s;
    flex-shrink: 0;
}
.jic-copy:hover { background: #21262d; color: #ffffff; border-color: #8b949e; }
.jic-copy.jic-ok { background: #238636; color: #fff; border-color: #238636; }
/* 代码区域：彻底覆盖 B2 主题 pre/code 样式 */
.jic-block pre {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    font-size: var(--fs-base) !important;
    line-height: 1.6 !important;
    font-family: 'Consolas', 'Monaco', 'Menlo', 'Courier New', monospace !important;
    background: #0d1117 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none;
    text-shadow: none !important;
    color: #c9d1d9 !important;
}
.jic-block pre::before,
.jic-block pre::after {
    content: none !important;
}
.jic-block pre code,
.jic-block pre code.hljs {
    font-family: inherit !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    text-shadow: none !important;
    color: #c9d1d9 !important;
}
/* 行号表格：去掉一切主题干扰（边框 / 斑马纹 / 单元格 padding / 行高） */
.jic-block .hljs-ln {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
}
.jic-block .hljs-ln tr,
.jic-block .hljs-ln tbody tr,
.jic-block .hljs-ln tr:nth-child(odd),
.jic-block .hljs-ln tr:nth-child(even),
.jic-block .hljs-ln td {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1.6 !important;
}
.jic-block .hljs-ln td.hljs-ln-numbers {
    user-select: none;
    text-align: right;
    color: #6e7681;
    padding: 0 24px 0 16px !important;
    border-right: 1px solid var(--border-color) !important;
    vertical-align: top;
    width: 40px;
    min-width: 40px;
    font-size: var(--fs-sm);
    line-height: 1.6 !important;
}
.jic-block .hljs-ln td.hljs-ln-code {
    padding: 0 16px 0 24px !important;
    vertical-align: top;
    color: #c9d1d9;
    white-space: pre;
    line-height: 1.6 !important;
}
.jic-block .hljs-ln td.hljs-ln-numbers:hover { color: #c9d1d9; }
/* 滚动条 */
.jic-block pre::-webkit-scrollbar { height: 8px; width: 8px; }
.jic-block pre::-webkit-scrollbar-track { background: #0d1117; }
.jic-block pre::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }
.jic-block pre::-webkit-scrollbar-thumb:hover { background: #484f58; }
