/* Theme 6: Minimalist - 极简主义 */
/* 极简设计、大量留白、无边框 */

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #fafafa;
    color: #212121;
    line-height: 1.8;
}

.header {
    background: transparent;
    border-bottom: none;
    padding: 3rem 0 2rem;
}

.logo {
    color: #212121;
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav {
    gap: 3rem;
}

.nav a {
    color: #757575;
    font-weight: 300;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #212121;
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: #212121;
}

.main {
    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(229, 231, 235, 0.4);
    padding: 0;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

.post-card h3 {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    background: none !important;
    background-clip: unset !important;
;
    line-height: 1.4;
}

.post-card h3 a {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    background: none !important;
    background-clip: unset !important;
    text-decoration: none !important;
;
    text-decoration: none;
    transition: opacity 0.2s;
}

.post-card h3 a:hover {
    opacity: 0.6;
}

.post-card p {
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    background: none !important;
    background-clip: unset !important;
;
    font-weight: 300;
    margin-bottom: 1rem;
}

.post-card .post-meta {
    color: #9e9e9e;
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-card .category {
    display: none;
}

.btn-primary {
    background: transparent;
    color: #212121;
    border: 1px solid #212121;
    padding: 0.75rem 2rem;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #212121;
    color: #fafafa;
}

.post-detail {
    background: transparent;
    padding: 4rem 0;
    max-width: 700px;
    margin: 0 auto;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #212121;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.post-content {
    color: #424242;
    font-weight: 300;
    line-height: 1.9;
}

.comment-form {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

.comment-item {
    background: transparent;
    border-left: 1px solid #e0e0e0;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    box-shadow: none;
}

.hero {
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    color: #212121 !important;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    -webkit-text-fill-color: #212121 !important;
    background: none !important;
    background-clip: unset !important;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #424242 !important;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .posts-grid {
        gap: 3rem;
    }
    
    .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;
    }
}

/* 分享按钮适配 */
.share-btn-inline {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: #757575;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

.share-btn-inline:hover {
    background: #212121;
    color: #fafafa;
    border-color: #212121;
}

/* 评论表单适配 */
.comment-form {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

/* 文章详情页文字样式 */
.post-detail {
    background: transparent;
}

.post-header h1 {
    color: #212121 !important;
}

.post-content {
    color: #424242 !important;
}

.post-content h2 {
    color: #212121 !important;
}

.post-content h3 {
    color: #212121 !important;
}

.post-content p {
    color: #424242 !important;
}

.post-content blockquote {
    color: #616161 !important;
}

.post-meta {
    color: #757575 !important;
}

.post-meta span {
    color: #757575 !important;
}

.excerpt {
    color: #616161 !important;
}

.post-share h3 {
    color: #212121 !important;
}

.post-tags h3 {
    color: #212121 !important;
}

.comments-header h2 {
    color: #212121 !important;
}

.comment-sort label {
    color: #424242 !important;
}

.comment-login-prompt {
    color: #424242 !important;
}

.comment-login-prompt a {
    color: #212121 !important;
}

.no-comments {
    color: #757575 !important;
}

/* 评论项适配 */
.comment-item {
    background: transparent;
    border-left: 1px solid #e0e0e0;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    box-shadow: none;
}

/* 回复指示器适配 - 极简主题 */
.comment-reply-indicator {
    color: #212121 !important;
    background: #f5f5f5 !important;
    border-color: #bdbdbd !important;
    border-radius: 16px !important; /* 统一圆角设计，提升美观度 */
}

.comment-item:hover {
    border-left-color: #212121;
    transform: translateX(2px);
}

/* 标签适配 */
.tag {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: #757575;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

.tag:hover {
    background: #212121;
    color: #fafafa;
    border-color: #212121;
}

/* 表单输入框适配 */
.form-group input,
.form-group textarea {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    color: #212121;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #212121;
    box-shadow: none;
    background: #fafafa;
}

/* 代码块适配 */
.post-content pre {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

.post-content pre::before {
    display: none;
}

.post-content code {
    background: #f5f5f5;
    color: #212121;
    border: 1px solid #e0e0e0;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

/* ========================================
   首页文字元素可见性修复 - Minimalist Theme
   确保所有文字在所有情况下都清晰可见
   ======================================== */

/* Featured Article 标题 */
.featured-post h2 {
    color: #111827 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #111827 !important;
    background: none !important;
    background-clip: unset !important;
}

/* Latest Articles 标题 */
.posts h2,
.main-content .posts h2 {
    color: #111827 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #111827 !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: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    background: none !important;
    background-clip: unset !important;
}

.post-card h3 a {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    background: none !important;
    background-clip: unset !important;
    text-decoration: none !important;
}

.post-card h3 a:hover {
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
    background: none !important;
    background-clip: unset !important;
}

/* 文章卡片内容 */
.post-card p {
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    background: none !important;
    background-clip: unset !important;
}

.post-card .post-content p {
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    background: none !important;
    background-clip: unset !important;
}

/* 文章元数据 */
.post-meta {
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    background: none !important;
    background-clip: unset !important;
}

.post-meta span {
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !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: #2563eb !important;
    -webkit-text-fill-color: #2563eb !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: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    background: #fff !important;
    border-color: #e5e7eb !important;
}

.category-tag:hover {
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
}

/* 分类标签 */
.category {
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
    background: none !important;
    background-clip: unset !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;
}

.post-card.featured {
    border-radius: 16px !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: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    background: none !important;
    background-clip: unset !important;
}
