/* ========================================
   Boss Tech Blog - 全局深色主题（非主页）
   ======================================== */

/* 全局深色背景 */
body {
    background: #0a0a0f !important;
    color: #fff !important;
}

/* 全局文字 */
p, span, li, td, th, label, textarea, input {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* 链接 */
a {
    color: #64b5f6 !important;
}

a:hover {
    color: #2196f3 !important;
}

/* 导航栏 - 深色毛玻璃 */
.nav, .top-nav, header {
    background: rgba(10, 10, 15, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.nav a, .top-nav a, header a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav a:hover, .top-nav a:hover, header a:hover {
    color: #2196f3 !important;
}

/* Logo */
.nav .logo a, .top-nav .logo a {
    color: #fff !important;
    font-weight: 700;
}

/* 主内容区 */
.main, main {
    background: transparent !important;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

/* 文章内容区 */
.post-header, .post-title {
    color: #fff !important;
}

.post-content {
    background: rgba(20, 25, 40, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.post-content p {
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.8;
}

.post-content a {
    color: #64b5f6 !important;
    border-bottom: 1px solid rgba(100, 181, 246, 0.3);
}

/* 文章列表卡片 */
.post-entry {
    background: rgba(20, 25, 40, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 16px !important;
}

.post-entry:hover {
    background: rgba(25, 32, 50, 0.8) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.post-entry h2 {
    color: #fff !important;
}

.post-entry .entry-content {
    color: rgba(255, 255, 255, 0.7) !important;
}

.post-entry .entry-footer {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* 代码块 */
pre {
    background: rgba(10, 15, 25, 0.9) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

code {
    background: rgba(33, 150, 243, 0.1) !important;
    color: #64b5f6 !important;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* 标签 */
.post-tags a {
    background: rgba(33, 150, 243, 0.15) !important;
    color: #64b5f6 !important;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(33, 150, 243, 0.3) !important;
}

/* 目录 */
.toc {
    background: rgba(20, 25, 40, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

.toc a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.toc a:hover {
    color: #64b5f6 !important;
}

/* 分页 */
.pagination a {
    background: rgba(20, 25, 40, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 0.8rem 1.5rem !important;
}

/* 页脚 */
.footer {
    background: rgba(5, 5, 10, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.footer span, .footer p {
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer a {
    color: #64b5f6 !important;
}

/* 搜索 */
#searchbox input {
    background: rgba(20, 25, 40, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 12px !important;
}

#searchbox input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* 归档页 */
.archives .post-entry {
    background: rgba(20, 25, 40, 0.4) !important;
    padding: 16px 24px !important;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1976d2, #0d47a1);
    border-radius: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
    .post-content {
        padding: 24px 20px;
    }
    
    .post-entry {
        padding: 20px !important;
    }
}