/* Theme 1: Modern Minimal - 现代简约风格 */
/* 默认主题，简洁现代的设计 */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #111827;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.logo {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.75rem;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
}

.logo:hover {
    color: #1d4ed8;
    transform: translateY(-1px);
}

.nav a {
    transition: all 0.2s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    will-change: transform, box-shadow;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
}

.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: 8px;
}

.post-card:hover img {
    transform: scale(1.05);
}

.post-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    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;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.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: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    background: none !important;
    background-clip: unset !important;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.post-card .post-meta {
    color: #9ca3af;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.25);
    will-change: transform, box-shadow;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

/* Hero区域适配 */
.hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    background: none !important;
    background-clip: unset !important;
}

.hero-subtitle {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease 0.2s both;
    color: #374151 !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 分享按钮适配 */
.share-btn-inline {
    background: #fff;
    border: 2px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.share-btn-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

/* 评论表单适配 */
.comment-form {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 评论项适配 */
.comment-item {
    border-left: 4px solid #2563eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

/* 回复指示器适配 - 现代主题 */
.comment-reply-indicator {
    color: #1e40af !important;
    background: #dbeafe !important;
    border-color: #93c5fd !important;
}

.comment-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

/* 标签适配 */
.tag {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    display: inline-block;
}

.tag:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    transform: translateY(-1px);
}

/* 表单输入框适配 */
.form-group input,
.form-group textarea {
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* 文章详情页适配 */
.post-detail {
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.post-header {
    margin-bottom: 3rem;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.post-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111827;
    margin-bottom: 1.25rem;
}

.excerpt {
    font-size: 1.375rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cover-image {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 16px;
    margin: 3rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.cover-image:hover {
    transform: scale(1.01);
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #374151;
}

.post-content h2 {
    color: #111827 !important;
}

.post-content h3 {
    color: #111827 !important;
}

.post-content p {
    color: #374151 !important;
}

.post-content blockquote {
    color: #4b5563 !important;
}

.post-meta {
    color: #6b7280 !important;
}

.post-meta span {
    color: #6b7280 !important;
}

.excerpt {
    color: #4b5563 !important;
}

.post-share h3 {
    color: #111827 !important;
}

.post-tags h3 {
    color: #111827 !important;
}

.comments-header h2 {
    color: #111827 !important;
}

.comment-sort label {
    color: #374151 !important;
}

.comment-login-prompt {
    color: #374151 !important;
}

.comment-login-prompt a {
    color: #2563eb !important;
}

.no-comments {
    color: #6b7280 !important;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0 1.25rem;
    color: #111827;
    line-height: 1.3;
}

.post-content h3 {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: #111827;
    line-height: 1.4;
}

.post-content p {
    margin-bottom: 1.75rem;
    color: #4b5563;
}

.post-content blockquote {
    border-left: 4px solid #2563eb;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: #4b5563;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 0 8px 8px 0;
    font-size: 1.125rem;
    line-height: 1.7;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.post-content img:hover {
    transform: scale(1.02);
}

/* 代码块适配 */
.post-content pre {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-content pre::before {
    background: linear-gradient(90deg, #2563eb, #8b5cf6, #ec4899);
    height: 3px;
    border-radius: 12px 12px 0 0;
}

.post-content code {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card {
        padding: 1.5rem;
    }
    
    .post-card h3 {
        font-size: 1.125rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
    
    .post-detail {
        padding: 2rem 1.5rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav a {
        font-size: 0.875rem;
    }
    
    .post-card {
        padding: 1.25rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
}

/* ========================================
   首页文字元素可见性修复 - Modern 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-widget h3 {
    color: #111827 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #111827 !important;
    background: none !important;
    background-clip: unset !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: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !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 p {
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !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;
}
