/* =========================================
   深网肉体交易所 - 终极UI覆写协议 V1.1
   包含：状态栏美化 + 平台代码块深度定制
========================================= */

/* --- 1. 用户自定义：状态栏与思维链隐藏 --- */
details {
    background: rgba(10, 0, 0, 0.9) !important;
    border: 1px solid #ff003c !important;
    border-radius: 5px !important;
    padding: 10px !important;
    color: #ff003c !important;
    font-family: monospace !important;
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.5) !important;
    margin-bottom: 10px !important;
}

summary {
    cursor: pointer !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    border-bottom: 1px dashed #ff003c !important;
    padding-bottom: 5px !important;
    outline: none !important;
}

details p {
    margin: 5px 0 !important;
    color: #ccc !important;
}

/* 隐藏思维链，保持前台视觉的绝对冷酷与洁癖 */
think { 
    display: none !important; 
}


/* --- 2. 平台代码块美化：深网血红主题覆写 --- */

/* S1: 代码块主容器 */
.markdown-body pre {
    background: rgba(10, 0, 0, 0.9) !important;
    border: 1px solid #ff003c !important;
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.3) !important;
    border-radius: 5px !important;
    overflow: hidden !important;
}

/* S3: 头部栏底边框 */
.markdown-body pre > div > div.border-b {
    background: transparent !important;
    border-bottom: 1px dashed #ff003c !important;
}

/* S4: 语言标签 (已使用 :first-child 避开特殊字符报错) */
.markdown-body pre > div > div.flex.justify-between > div:first-child {
    color: #ff003c !important;
    font-family: monospace !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

/* S8 & R3: 复制图标颜色联动 */
.markdown-body pre svg.lucide-copy,
.markdown-body pre div[data-tooltip-id^="copy-tooltip"] > svg {
    color: #ff003c !important;
    transition: all 0.3s ease !important;
}

.markdown-body pre .group:hover svg.lucide-copy,
.markdown-body pre div[data-tooltip-id^="copy-tooltip"]:hover > svg {
    color: #ffffff !important;
    filter: drop-shadow(0 0 5px #ff003c) !important;
    transform: scale(1.1) !important;
}

/* S9 & R4: 代码内容区 */
.markdown-body pre > div > div[node] {
    background: transparent !important;
    color: #ccc !important;
    font-family: monospace !important;
}

/* S11: 语法高亮微调 (已使用兼容选择器) */
.markdown-body pre code span {
    opacity: 0.9 !important;
}

/* S12: 无语言标识的纯代码块适配 (已使用兼容选择器) */
.markdown-body pre > code:only-child {
    background: transparent !important;
    color: #ccc !important;
}