/* Theme 14: Creative - 创意风格 */
/* 创意设计、多彩渐变、艺术风格 */

body {
    font-family: 'Poppins', -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-attachment: fixed;
    color: #2d3748;
    line-height: 1.8;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe) 1;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2rem;
}

.nav a {
    color: #4a5568;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav a::after {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 3px;
}

.main {
    padding: 3rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.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: 16px;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #4facfe);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 20px;
}

.post-card:hover::before {
    opacity: 0.1;
}

.post-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

.post-card img {
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.post-card:hover img {
    transform: scale(1.08) rotate(-1deg);
}

.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;
;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-card h3 a:hover {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #fff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    will-change: transform, box-shadow;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 50%, #4facfe 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.post-detail {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.post-header {
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea, #764ba2, #f093fb) 1;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.post-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #4a5568;
}

/* Hero区域适配 */
.hero {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.hero h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback颜色，确保在浅色背景上可见 */
    color: #667eea !important;
}

/* 如果渐变文字不可见，使用纯色 */
@supports not (-webkit-background-clip: text) {
    .hero h1 {
        color: #667eea !important;
        -webkit-text-fill-color: #667eea !important;
    }
}

.hero-subtitle {
    color: #2d3748 !important;
}

/* 分享按钮适配 */
.share-btn-inline {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    border-radius: 50px;
}

.share-btn-inline:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
}

/* 评论表单适配 */
.comment-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
}

/* 文章详情页文字样式 */
.post-detail {
    background: rgba(255, 255, 255, 0.95);
}

.post-header h1 {
    color: #667eea !important;
}

.post-content {
    color: #2d3748 !important;
}

.post-content h2 {
    color: #667eea !important;
}

.post-content h3 {
    color: #667eea !important;
}

.post-content p {
    color: #2d3748 !important;
}

.post-content blockquote {
    color: #4a5568 !important;
}

.post-meta {
    color: #667eea !important;
}

.post-meta span {
    color: #667eea !important;
}

.excerpt {
    color: #4a5568 !important;
}

.post-share h3 {
    color: #667eea !important;
}

.post-tags h3 {
    color: #667eea !important;
}

.comments-header h2 {
    color: #667eea !important;
}

.comment-sort label {
    color: #2d3748 !important;
}

.comment-login-prompt {
    color: #2d3748 !important;
}

.comment-login-prompt a {
    color: #667eea !important;
}

.no-comments {
    color: #667eea !important;
}

/* 评论项适配 */
.comment-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-left: 4px solid #667eea;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* 回复指示器适配 - 创意主题 */
.comment-reply-indicator {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.15) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
}

.comment-item:hover {
    transform: translateX(6px) rotate(0.5deg);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

/* 标签适配 */
.tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    border-radius: 50px;
}

.tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

/* 表单输入框适配 */
.form-group input:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 代码块适配 */
.post-content pre {
    background: #1a202c;
    border: 2px solid #667eea;
    border-left: 4px solid #667eea;
}

.post-content pre::before {
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe);
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.post-content code {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@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;
    }
}

/* ========================================
   首页文字元素可见性修复 - Creative 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;
}
