/* Theme 20: Modern Pro - 现代专业 */
/* 现代专业、精致设计、高端风格 */

body {
    font-family: 'SF Pro Display', -apple-system, sans-serif;
    background: #ffffff;
    color: #1d1d1f;
    line-height: 1.8;
}

.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    padding: 1.25rem 0;
}

.logo {
    color: #1d1d1f;
    font-weight: 600;
    font-size: 1.75rem;
    letter-spacing: -0.8px;
}

.nav a {
    color: #6e6e73;
    font-weight: 400;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    letter-spacing: -0.2px;
}

.nav a:hover {
    color: #1d1d1f;
}

.nav a::after {
    background: #1d1d1f;
    height: 1px;
}

.main {
    background: #ffffff;
    padding: 4rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 3rem;
}

.post-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 18px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    will-change: transform, box-shadow;
    overflow: hidden;
}

.post-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    object-fit: cover;
    border-radius: 12px;
}

.post-card:hover img {
    transform: scale(1.02);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

.post-card img {
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.post-card:hover img {
    transform: scale(1.02);
}

.post-card h3 {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    background: none !important;
    background-clip: unset !important;
;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.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.2s ease;
}

.post-card h3 a:hover {
    color: #0071e3;
}

.post-card p {
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    background: none !important;
    background-clip: unset !important;
;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.category {
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
    border: 0.5px solid rgba(0, 113, 227, 0.2);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #0071e3;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.875rem;
    border-radius: 980px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
    will-change: transform, box-shadow;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 113, 227, 0.2);
}

.post-detail {
    background: #ffffff;
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.post-header {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 2.5rem;
    margin-bottom: 3.5rem;
}

.post-header h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.2;
    letter-spacing: -1px;
}

.post-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #1d1d1f;
    letter-spacing: -0.1px;
}

/* Hero区域适配 */
.hero {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.02) 0%, rgba(0, 113, 227, 0.01) 100%);
    border-radius: 20px;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.hero h1 {
    color: #1d1d1f !important;
    font-weight: 600;
    letter-spacing: -1px;
    -webkit-text-fill-color: #1d1d1f !important;
    background: none !important;
    background-clip: unset !important;
}

.hero-subtitle {
    color: #1d1d1f !important;
    font-size: 1.1875rem;
}

/* 分享按钮适配 */
.share-btn-inline {
    background: #ffffff;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    color: #6e6e73;
    border-radius: 980px;
    font-size: 0.875rem;
}

.share-btn-inline:hover {
    border-color: rgba(0, 0, 0, 0.2);
    color: #1d1d1f;
    background: #f5f5f7;
}

/* 评论表单适配 */
.comment-form {
    background: #f5f5f7;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 18px;
}

/* 文章详情页文字样式 */
.post-detail {
    background: #ffffff;
}

.post-header h1 {
    color: #1d1d1f !important;
}

.post-content {
    color: #1d1d1f !important;
}

.post-content h2 {
    color: #1d1d1f !important;
}

.post-content h3 {
    color: #1d1d1f !important;
}

.post-content p {
    color: #1d1d1f !important;
}

.post-content blockquote {
    color: #6e6e73 !important;
}

.post-meta {
    color: #6e6e73 !important;
}

.post-meta span {
    color: #6e6e73 !important;
}

.excerpt {
    color: #6e6e73 !important;
}

.post-share h3 {
    color: #1d1d1f !important;
}

.post-tags h3 {
    color: #1d1d1f !important;
}

.comments-header h2 {
    color: #1d1d1f !important;
}

.comment-sort label {
    color: #1d1d1f !important;
}

.comment-login-prompt {
    color: #1d1d1f !important;
}

.comment-login-prompt a {
    color: #0071e3 !important;
}

.no-comments {
    color: #6e6e73 !important;
}

/* 评论项适配 */
.comment-item {
    background: #ffffff;
    border-left: 2px solid #0071e3;
    border-radius: 18px;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.comment-item:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* 回复指示器适配 - 现代专业主题 */
.comment-reply-indicator {
    color: #0071e3 !important;
    background: #e3f2fd !important;
    border-color: #90caf9 !important;
}

/* 标签适配 */
.tag {
    background: rgba(0, 113, 227, 0.1);
    border: 0.5px solid rgba(0, 113, 227, 0.2);
    color: #0071e3;
    border-radius: 980px;
    font-size: 0.8125rem;
}

.tag:hover {
    background: rgba(0, 113, 227, 0.15);
}

/* 表单输入框适配 */
.form-group input:focus,
.form-group textarea:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

/* 代码块适配 */
.post-content pre {
    background: #1d1d1f;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-left: 2px solid #0071e3;
    border-radius: 12px;
}

.post-content pre::before {
    background: linear-gradient(90deg, #0071e3, #5ac8fa);
    height: 2px;
    border-radius: 12px 12px 0 0;
}

.post-content code {
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
    border: 0.5px solid rgba(0, 113, 227, 0.2);
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-card {
        padding: 2rem;
    }
    
    .post-card h3 {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-detail {
        padding: 3rem 2rem;
    }
    
    .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.5rem;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .post-detail {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   首页文字元素可见性修复 - Modern-Pro 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;
}
