/* Theme 15: Minimal Dark - 极简深色 */
/* 极简深色、单色设计、现代简约 */

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #1a1a1a;
    color: #e5e5e5;
    line-height: 1.8;
}

.header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    padding: 1.5rem 0;
}

.logo {
    color: #e5e5e5;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav a {
    color: #999;
    font-weight: 400;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.nav a:hover {
    color: #e5e5e5;
}

.nav a::after {
    background: #e5e5e5;
    height: 1px;
}

.main {
    background: #1a1a1a;
    padding: 4rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 在blog-layout中，posts-grid应该占满主内容区宽度 */
.blog-layout .main-content .posts-grid {
    max-width: 100% !important;
    margin: 0 !important;
}

.post-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid #333;
    padding: 0 0 4rem 0;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: none;
    border-bottom-color: #555;
}

.post-card h3 {
    font-size: 1.75rem;
    font-weight: 400;
    color: #e5e5e5 !important;
    -webkit-text-fill-color: #e5e5e5 !important;
    background: none !important;
    background-clip: unset !important;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-card h3 a {
    color: #e5e5e5 !important;
    -webkit-text-fill-color: #e5e5e5 !important;
    background: none !important;
    background-clip: unset !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.post-card h3 a:hover {
    color: #e5e5e5 !important;
    -webkit-text-fill-color: #e5e5e5 !important;
    background: none !important;
    background-clip: unset !important;
    opacity: 0.7;
}

.post-card p {
    color: #999 !important;
    -webkit-text-fill-color: #999 !important;
    background: none !important;
    background-clip: unset !important;
    font-weight: 300;
}

.category {
    display: none;
}

.btn-primary {
    background: transparent;
    color: #e5e5e5;
    border: 1px solid #333;
    padding: 0.75rem 2rem;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    font-weight: 400;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #e5e5e5;
    color: #1a1a1a;
    border-color: #e5e5e5;
}

.post-detail {
    background: transparent;
    padding: 4rem 0;
    max-width: 700px;
    margin: 0 auto;
    border: none;
    box-shadow: none;
}

.post-header {
    border-bottom: 1px solid #333;
    padding-bottom: 2rem;
    margin-bottom: 4rem;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #e5e5e5;
    line-height: 1.3;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #ccc;
    font-weight: 300;
}

.post-content h2 {
    color: #e5e5e5 !important;
}

.post-content h3 {
    color: #e5e5e5 !important;
}

.post-content p {
    color: #ccc !important;
}

.post-content blockquote {
    color: #999 !important;
    border-left-color: #666 !important;
}

.post-meta {
    color: #999 !important;
}

.post-meta span {
    color: #999 !important;
}

.excerpt {
    color: #ccc !important;
}

.post-share h3 {
    color: #e5e5e5 !important;
}

.post-tags h3 {
    color: #e5e5e5 !important;
}

.comments-header h2 {
    color: #e5e5e5 !important;
}

.comment-sort label {
    color: #ccc !important;
}

.comment-login-prompt {
    color: #ccc !important;
}

.comment-login-prompt a {
    color: #e5e5e5 !important;
}

.no-comments {
    color: #999 !important;
}

/* Hero区域适配 */
.hero {
    background: transparent;
    border: none;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    padding: 6rem 0;
}

.hero h1 {
    color: #e5e5e5 !important;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3) !important;
    -webkit-text-fill-color: #e5e5e5 !important;
    background: none !important;
    background-clip: unset !important;
}

.hero-subtitle {
    color: #ccc !important;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* 分享按钮适配 */
.share-btn-inline {
    background: transparent;
    border: 1px solid #333;
    color: #999;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

.share-btn-inline:hover {
    background: #e5e5e5;
    border-color: #e5e5e5;
    color: #1a1a1a;
}

/* 评论表单适配 */
.comment-form {
    background: transparent;
    border: 1px solid #333;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

/* 评论项适配 */
.comment-item {
    background: transparent;
    border-left: 1px solid #333;
    border: none;
    border-left: 1px solid #333;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    box-shadow: none;
}

/* 回复指示器适配 - 极简深色主题 */
.comment-reply-indicator {
    color: #e0e0e0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #666 !important;
}

.comment-item:hover {
    transform: translateX(2px);
    border-left-color: #555;
}

/* 标签适配 */
.tag {
    background: transparent;
    border: 1px solid #333;
    color: #999;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

.tag:hover {
    background: #333;
    color: #e5e5e5;
}

/* 表单输入框适配 */
.form-group input,
.form-group textarea {
    background: transparent;
    border: 1px solid #333;
    color: #e5e5e5;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #555;
    box-shadow: none;
    background: #222;
}

/* 代码块适配 */
.post-content pre {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    color: #999;
}

.post-content pre::before {
    display: none;
}

.post-content code {
    background: #0a0a0a;
    color: #999;
    border: 1px solid #333;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .posts-grid {
        gap: 3rem;
    }
    
    .post-card {
        padding: 0 0 3rem 0;
    }
    
    .post-card h3 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-detail {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 2rem 0 1.5rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav {
        gap: 2rem;
    }
    
    .post-card h3 {
        font-size: 1.375rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
}

/* Reading progress bar - Minimal Dark theme */
.reading-progress {
    background: rgba(26, 26, 26, 0.5);
}

.reading-progress-bar {
    background: linear-gradient(90deg, #e5e5e5, #999);
    box-shadow: 0 0 10px rgba(229, 229, 229, 0.3);
}

/* Reading time - Minimal Dark theme */
.reading-time {
    color: #999;
}

/* Table of contents - Minimal Dark theme */
.post-toc {
    background: transparent;
    border: 1px solid #333;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

.post-toc h3 {
    color: #e5e5e5;
    border-bottom-color: #333;
}

.toc-link {
    color: #999;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    border-left-color: transparent;
}

.toc-link:hover {
    color: #e5e5e5;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #555;
}

.toc-link.active {
    color: #e5e5e5;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #e5e5e5;
}

.toc-level-4 .toc-link {
    color: #666;
}

/* ========================================
   首页文字元素可见性修复 - Minimal-Dark Theme
   确保所有文字在所有情况下都清晰可见
   ======================================== */

/* Featured Article 标题 */
.featured-post h2 {
    color: #e2e8f0 !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8) !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    background: none !important;
    background-clip: unset !important;
}

/* Latest Articles 标题 */
.posts h2,
.main-content .posts h2 {
    color: #e2e8f0 !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8) !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    background: none !important;
    background-clip: unset !important;
}

/* 侧边栏标题 */
.sidebar {
    border-radius: 16px !important; /* 统一圆角设计，提升美观度 */
}

.sidebar-widget h3 {
    color: #111827 !important; /* 深色文字，适合白色背景 */
    text-shadow: none !important; /* 移除阴影，因为白色背景不需要 */
    -webkit-text-fill-color: #111827 !important;
    background: none !important;
    background-clip: unset !important;
    font-weight: 700 !important; /* 增加字重，提高可读性 */
}

/* 文章卡片标题 */
.post-card h3 {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    background: none !important;
    background-clip: unset !important;
}

.post-card h3 a {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    background: none !important;
    background-clip: unset !important;
    text-decoration: none !important;
}

.post-card h3 a:hover {
    color: #60a5fa !important;
    -webkit-text-fill-color: #60a5fa !important;
    background: none !important;
    background-clip: unset !important;
}

/* 文章卡片内容 */
.post-card p {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    background: none !important;
    background-clip: unset !important;
}

.post-card .post-content p {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
    background: none !important;
    background-clip: unset !important;
}

/* 文章元数据 */
.post-meta {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    background: none !important;
    background-clip: unset !important;
}

.post-meta span {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    background: none !important;
    background-clip: unset !important;
}

/* 侧边栏链接 */
.sidebar-widget a {
    color: #374151 !important; /* 深灰色文字，适合白色背景，提高对比度 */
    -webkit-text-fill-color: #374151 !important;
    font-weight: 500 !important; /* 增加字重 */
    background: none !important;
    background-clip: unset !important;
    text-decoration: none !important;
}

.sidebar-widget a:hover {
    color: #60a5fa !important;
    -webkit-text-fill-color: #60a5fa !important;
    background: none !important;
    background-clip: unset !important;
}

/* 侧边栏文本 */
.sidebar-widget p {
    color: #4b5563 !important; /* 深灰色文字，适合白色背景 */
    -webkit-text-fill-color: #4b5563 !important;
    line-height: 1.7 !important;
    background: none !important;
    background-clip: unset !important;
}

/* 分类标签 */
.category-tag {
    color: #e2e8f0 !important;
    background: #334155 !important;
    border-color: #475569 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
}

.category-tag:hover {
    color: #60a5fa !important;
    -webkit-text-fill-color: #60a5fa !important;
}

/* 分类标签 */
.category {
    color: #60a5fa !important;
    -webkit-text-fill-color: #60a5fa !important;
    background: none !important;
    background-clip: unset !important;
}

/* 特色文章卡片内容 - 白色背景需要深色文字 */
.post-card.featured {
    border-radius: 16px !important; /* 统一圆角设计，提升美观度 */
}

.post-card.featured h3,
.post-card.featured h3 a {
    color: #111827 !important; /* 深色文字，适合白色背景 */
    -webkit-text-fill-color: #111827 !important;
    background: none !important;
    background-clip: unset !important;
    font-weight: 700 !important; /* 增加字重，提高可读性 */
}

.post-card.featured p {
    color: #374151 !important; /* 深灰色文字，适合白色背景，提高对比度 */
    -webkit-text-fill-color: #374151 !important;
    line-height: 1.7 !important;
    background: none !important;
    background-clip: unset !important;
}

.post-card.featured .post-meta {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    background: none !important;
    background-clip: unset !important;
}
