.article-content {
    font-family: 'JetBrains Mono', monospace; /* 强制代码字体，增强终端感 */
    color: #cbd5e1; /* slate-300 */
    line-height: 1.8;
    font-size: 15px;
}

.article-content p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4 {
    margin-top: 2.5em;
    margin-bottom: 1em;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
    position: relative;
    padding-left: 1rem;
}

.article-content h1 { font-size: 2rem; border-left: 4px solid #06b6d4; } 

.article-content h2 { 
    font-size: 1.75rem; 
    border-left: 4px solid #06b6d4;
    border-bottom: 1px dashed rgba(6, 182, 212, 0.3);
    padding-bottom: 0.5rem;
}


.article-content h3 { 
    font-size: 1.4rem; 
    border-left: 4px solid #ec4899;
    color: #fce7f3;
}

.article-content h4 { font-size: 1.1rem; border-left: 2px solid #64748b; }


.article-content blockquote {
    margin: 2em 0;
    padding: 1.5em;
    background: rgba(15, 23, 42, 0.6);
    border-left: 4px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    color: #94a3b8;
    font-style: italic;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.article-content blockquote::before {
    content: ">> REF_LOG";
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 10px;
    background: #0f172a;
    color: #f59e0b;
    padding: 0 8px;
    font-weight: bold;
}
.article-content blockquote p { margin: 0; }


.article-content ul, .article-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}
.article-content ul li {
    list-style: none;
    position: relative;
    margin-bottom: 0.5em;
}

.article-content ul li::before {
    content: ">";
    color: #06b6d4;
    position: absolute;
    left: -1.2em;
    font-weight: bold;
}
.article-content ol { list-style-type: decimal-leading-zero; color: #ec4899; }
.article-content ol li::marker { color: #ec4899; font-weight: bold; }

.article-content a {
    color: #06b6d4;
    text-decoration: none;
    border-bottom: 1px solid rgba(6, 182, 212, 0.5);
    transition: all 0.2s;
}
.article-content a:hover {
    background: rgba(6, 182, 212, 0.1);
    color: #fff;
    border-bottom-color: #fff;
}

.article-content img {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
}

.article-content table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
    font-size: 0.9em;
}
.article-content th {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
}
.article-content td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-content :not(pre) > code {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.article-content pre {
    background: #09090b; /* 极深灰背景 */
    color: #e2e8f0;
    padding: 3rem 1.25rem 1.25rem 1.25rem;
    margin: 2em 0;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.article-content pre::before {
    content: " ";
    position: absolute;
    top: 15px;
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56; /* 红 */
    box-shadow: 15px 0 0 #ffbd2e, 30px 0 0 #27c93f; /* 黄 绿 */
}

.article-content pre code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    background: transparent;
    padding: 0;
    border: none;
    color: inherit;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.copy-btn:hover {
    background: rgba(6, 182, 212, 0.2);
    color: #fff;
    border-color: #06b6d4;
}

.copy-btn.copied {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-color: #22c55e;
}

#image-viewer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#image-viewer[data-state="open"] {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

#viewer-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
}

.viewer-loader {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #06b6d4;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}