/* Theme 11: Vintage - 复古风格 */
/* 复古色调、怀旧设计、经典风格 */

body {
    font-family: 'Crimson Text', 'Georgia', serif;
    background: #f5e6d3;
    color: #3d2817;
    line-height: 1.8;
}

.header {
    background: #8b4513;
    border-bottom: 4px solid #654321;
    padding: 1.5rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.logo {
    color: #f5e6d3;
    font-weight: 700;
    font-size: 1.875rem;
    font-family: 'Crimson Text', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav a {
    color: #d4a574;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav a:hover {
    background: #654321;
    color: #f5e6d3;
}

.nav a::after {
    display: none;
}

.main {
    background: #f5e6d3;
    padding: 3rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 4px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 4px 8px rgba(0,0,0,0.15);
    position: relative;
    will-change: transform, box-shadow;
    overflow: hidden;
}

.post-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    object-fit: cover;
    border-radius: 2px;
}

.post-card:hover img {
    transform: scale(1.03);
}

.post-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #8b4513, #654321, #8b4513);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover::before {
    opacity: 0.3;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 12px rgba(0,0,0,0.2);
}

.post-card h3 {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    background: none !important;
    background-clip: unset !important;
;
    margin-bottom: 1rem;
}

.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: color 0.3s ease;
}

.post-card h3 a:hover {
    color: #8b4513;
    text-decoration: underline;
}

.post-card p {
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    background: none !important;
    background-clip: unset !important;
;
}

.category {
    background: #8b4513;
    color: #f5e6d3;
    border: 2px solid #654321;
}

.btn-primary {
    background: #8b4513;
    color: #f5e6d3;
    border: 3px solid #654321;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 4px 8px rgba(0,0,0,0.2);
    will-change: transform, box-shadow;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: #654321;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.btn-primary:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.post-detail {
    background: #ffffff;
    border: 4px solid #8b4513;
    border-radius: 4px;
    padding: 3.5rem;
    box-shadow: 6px 6px 12px rgba(0,0,0,0.2);
}

.post-header {
    border-bottom: 3px solid #8b4513;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.post-header h1 {
    font-family: 'Crimson Text', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #3d2817;
    line-height: 1.3;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #5a4a3a;
}

/* Hero区域适配 */
.hero {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(101, 67, 33, 0.1) 100%);
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    border: 3px solid #8b4513;
}

.hero h1 {
    font-family: 'Crimson Text', serif;
    color: #6b4e00 !important;
    -webkit-text-fill-color: #6b4e00 !important;
    background: none !important;
    background-clip: unset !important;
}

.hero-subtitle {
    color: #5a4a3a !important;
}

/* 分享按钮适配 */
.share-btn-inline {
    background: #f5e6d3;
    border: 3px solid #8b4513;
    color: #3d2817;
    border-radius: 4px;
}

.share-btn-inline:hover {
    background: #8b4513;
    color: #f5e6d3;
}

/* 评论表单适配 */
.comment-form {
    background: #f5e6d3;
    border: 3px solid #8b4513;
    border-radius: 4px;
}

/* 文章详情页文字样式 */
.post-detail {
    background: #faf5e6;
}

.post-header h1 {
    color: #6b4e00 !important;
}

.post-content {
    color: #5a4a3a !important;
}

.post-content h2 {
    color: #6b4e00 !important;
}

.post-content h3 {
    color: #6b4e00 !important;
}

.post-content p {
    color: #5a4a3a !important;
}

.post-content blockquote {
    color: #8b6914 !important;
}

.post-meta {
    color: #8b6914 !important;
}

.post-meta span {
    color: #8b6914 !important;
}

.excerpt {
    color: #5a4a3a !important;
}

.post-share h3 {
    color: #6b4e00 !important;
}

.post-tags h3 {
    color: #6b4e00 !important;
}

.comments-header h2 {
    color: #6b4e00 !important;
}

.comment-sort label {
    color: #5a4a3a !important;
}

.comment-login-prompt {
    color: #5a4a3a !important;
}

.comment-login-prompt a {
    color: #8b4513 !important;
}

.no-comments {
    color: #8b6914 !important;
}

/* 评论项适配 */
.comment-item {
    background: #ffffff;
    border-left: 4px solid #8b4513;
    border: 2px solid #d4a574;
    border-radius: 4px;
}

.comment-item:hover {
    transform: translateX(4px);
    box-shadow: 4px 4px 8px rgba(0,0,0,0.15);
}

/* 回复指示器适配 - 复古主题 */
.comment-reply-indicator {
    color: #6b4e00 !important;
    background: #fef3c7 !important;
    border-color: #d4af37 !important;
}

/* 标签适配 */
.tag {
    background: #d4a574;
    border: 2px solid #8b4513;
    color: #3d2817;
    border-radius: 4px;
}

.tag:hover {
    background: #8b4513;
    color: #f5e6d3;
}

/* 表单输入框适配 */
.form-group input,
.form-group textarea {
    background: #f5e6d3;
    border: 3px solid #8b4513;
    color: #3d2817;
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #654321;
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.2);
    background: #ffffff;
}

/* 代码块适配 */
.post-content pre {
    background: #2d1b0e;
    border: 3px solid #8b4513;
    border-left: 4px solid #8b4513;
    color: #d4a574;
}

.post-content pre::before {
    background: linear-gradient(90deg, #8b4513, #654321);
}

.post-content code {
    background: #f5e6d3;
    color: #8b4513;
    border: 2px solid #d4a574;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card {
        padding: 1.5rem;
    }
    
    .post-card h3 {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-detail {
        padding: 2rem 1.5rem;
    }
    
    .header {
        padding: 1.25rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .post-card {
        padding: 1.25rem;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
}

/* ========================================
   首页文字元素可见性修复 - Vintage 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; /* 深灰色文字，提高对比度 */
    font-weight: 500 !important; /* 增加字重 */
    -webkit-text-fill-color: #374151 !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: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !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;
    background: none !important;
    background-clip: unset !important;
    line-height: 1.7 !important;
}

.post-card.featured .post-meta {
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    background: none !important;
    background-clip: unset !important;
}
