/* 赛博科技风格 Markdown 扩展样式 (markdown-tech.css) */

/* 引用样式 (Blockquote) - 改装为科技感的信息面板 */
.md-content blockquote, .editor-preview blockquote {
    margin: 20px 0;
    padding: 15px 25px;
    background: rgba(0, 243, 255, 0.05);
    border-left: 4px solid var(--secondary);
    border-radius: 0 8px 8px 0;
    position: relative;
    color: #acc;
    font-style: italic;
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.05);
}

.md-content blockquote::before, .editor-preview blockquote::before {
    content: "¡ INFO !";
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--secondary);
    color: #000;
    font-size: 10px;
    font-family: 'Orbitron', sans-serif;
    padding: 2px 8px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 表格样式 (Table) - 现代网格布局 */
.md-content table, .editor-preview table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.2);
    font-size: 0.95rem;
}

.md-content th, .editor-preview th {
    background: rgba(0, 243, 255, 0.1);
    color: var(--secondary);
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid rgba(0, 243, 255, 0.3);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.md-content td, .editor-preview td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ddd;
}

.md-content tr:nth-child(even), .editor-preview tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.md-content tr:hover, .editor-preview tr:hover {
    background: rgba(0, 243, 255, 0.05);
}

/* 键盘按键与内联代码 (KBD & Code) */
.md-content kbd, .editor-preview kbd {
    display: inline-block;
    padding: 2px 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #fff;
    background-color: #333;
    border: 1px solid #000;
    border-radius: 4px;
    box-shadow: 0 3px 0 #111, 0 4px 6px rgba(0,0,0,0.5);
    margin: 0 2px;
}

.md-content code, .editor-preview code {
    background: rgba(255, 100, 255, 0.1);
    color: #ff6bff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

/* 折叠面板 (Details/Summary) - 命令行风格 */
.md-content details, .editor-preview details {
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.md-content summary, .editor-preview summary {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-weight: bold;
    color: var(--secondary);
    outline: none;
    list-style: none; /* 去掉默认箭头 */
}

.md-content summary::before, .editor-preview summary::before {
    content: "[+] ";
    font-family: 'Orbitron', sans-serif;
}

.md-content details[open] summary::before, .editor-preview details[open] summary::before {
    content: "[-] ";
}

.md-content details > div, .editor-preview details > div, 
.md-content details > p, .editor-preview details > p {
    padding: 15px;
}

/* Badge 增强 */
.md-content img[src*="shields.io"], .editor-preview img[src*="shields.io"] {
    margin-right: 5px;
    vertical-align: middle;
}

/* 主页卡片内的 Markdown 内容布局微调 */
.card-content .md-content {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-height: 200px; /* 限制主页预览高度 */
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.md-content a {
    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px dashed var(--secondary);
}

.md-content a:hover {
    color: #fff;
    border-bottom-style: solid;
}

.md-content p {
    margin-bottom: 10px;
}

.md-content *:last-child {
    margin-bottom: 0;
}
