/* Theme 7: Bold - 大胆风格 */
/* 鲜艳色彩、粗体字体、强烈对比 */

body {
    font-family: 'Impact', 'Arial Black', sans-serif;
    background: #ff6b6b;
    color: #2d3436;
    line-height: 1.6;
}

.header {
    background: #2d3436;
    border-bottom: 5px solid #ff6b6b;
    padding: 1.5rem 0;
}

.logo {
    color: #ff6b6b;
    font-weight: 900;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 0 #fff;
}

.nav a {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 4px;
    transition: all 0.2s;
}

.nav a:hover {
    background: #ff6b6b;
    transform: scale(1.05);
}

.main {
    background: #fff;
    padding: 3rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #fff;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 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;
}

.post-card:hover img {
    transform: scale(1.05);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff6b6b);
    background-size: 200% 100%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.post-card:hover {
    transform: rotate(-2deg) scale(1.02);
    box-shadow: 10px 10px 0 #2d3436;
}

.post-card h3 {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    background: none !important;
    background-clip: unset !important;
;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.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;
}

.post-card h3 a:hover {
    color: #ff6b6b;
}

.post-card p {
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    background: none !important;
    background-clip: unset !important;
;
    font-weight: 600;
}

.post-card .category {
    background: #ff6b6b;
    color: #fff;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    text-transform: uppercase;
    font-size: 0.75rem;
}

.btn-primary {
    background: #ff6b6b;
    color: #fff;
    border: 4px solid #2d3436;
    padding: 1rem 2rem;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 4px 0 #2d3436;
    will-change: transform, box-shadow;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: #2d3436;
    color: #ff6b6b;
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #2d3436;
}

.btn-primary:active {
    transform: translate(6px, 6px);
}

.post-detail {
    background: #fff;
    border: 4px solid #2d3436;
    padding: 3rem;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    box-shadow: 10px 10px 0 #2d3436;
}

.post-header h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #2d3436;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.post-content {
    color: #2d3436;
    font-weight: 600;
    line-height: 1.8;
}

.post-content h2 {
    color: #2d3436 !important;
}

.post-content h3 {
    color: #2d3436 !important;
}

.post-content p {
    color: #2d3436 !important;
}

.post-content blockquote {
    color: #636e72 !important;
}

.post-meta {
    color: #636e72 !important;
}

.post-meta span {
    color: #636e72 !important;
}

.excerpt {
    color: #636e72 !important;
}

.post-share h3 {
    color: #2d3436 !important;
}

.post-tags h3 {
    color: #2d3436 !important;
}

.comments-header h2 {
    color: #2d3436 !important;
}

.comment-sort label {
    color: #2d3436 !important;
}

.comment-login-prompt {
    color: #2d3436 !important;
}

.comment-login-prompt a {
    color: #ff6b6b !important;
}

.no-comments {
    color: #636e72 !important;
}

.comment-form {
    background: #feca57;
    border: 4px solid #2d3436;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

.comment-item {
    background: #fff;
    border: 4px solid #2d3436;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    box-shadow: 4px 4px 0 #2d3436;
}

.tag {
    background: #48dbfb;
    color: #2d3436;
    font-weight: 700;
    border: 2px solid #2d3436;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    transition: all 0.2s ease;
    will-change: transform;
}

.tag:hover {
    transform: scale(1.05);
}

/* 响应式设计 */
@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;
    }
}

/* Hero区域适配 */
.hero {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(254, 202, 87, 0.1) 100%);
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    border: 4px solid #2d3436;
}

.hero h1 {
    color: #2d3436 !important;
    text-shadow: 3px 3px 0 #fff !important;
    -webkit-text-fill-color: #2d3436 !important;
    background: none !important;
    background-clip: unset !important;
}

.hero-subtitle {
    color: #2d3436 !important;
    font-weight: 700;
}

/* 分享按钮适配 */
.share-btn-inline {
    background: #fff;
    border: 4px solid #2d3436;
    color: #2d3436;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 #2d3436;
}

.share-btn-inline:hover {
    background: #2d3436;
    color: #ff6b6b;
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #2d3436;
}

.share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.share-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: #fff;
}

.share-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #fff;
}

.share-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.share-copy:hover {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

/* 评论表单适配 */
.comment-form {
    background: #feca57;
    border: 4px solid #2d3436;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
}

/* 评论项适配 */
.comment-item {
    background: #fff;
    border: 4px solid #2d3436;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    box-shadow: 4px 4px 0 #2d3436;
}

/* 回复指示器适配 - 粗体主题 */
.comment-reply-indicator {
    color: #2d3436 !important;
    background: #48dbfb !important;
    border-color: #2d3436 !important;
    border-width: 2px !important;
    font-weight: 700 !important;
}

.comment-item:hover {
    transform: translate(4px, 4px) rotate(-1deg);
    box-shadow: 0 0 0 #2d3436;
}

/* 表单输入框适配 */
.form-group input,
.form-group textarea {
    background: #fff;
    border: 4px solid #2d3436;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    color: #2d3436;
    font-weight: 700;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff6b6b;
    box-shadow: 4px 4px 0 #ff6b6b;
    background: #fff;
}

/* 代码块适配 */
.post-content pre {
    background: #2d3436;
    border: 4px solid #ff6b6b;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    color: #fff;
}

.post-content pre::before {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff6b6b);
    height: 8px;
}

.post-content code {
    background: #2d3436;
    color: #feca57;
    border: 2px solid #ff6b6b;
    border-radius: 16px; /* 统一圆角设计，提升美观度 */
    font-weight: 700;
}

/* ========================================
   首页文字元素可见性修复 - Bold 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;
}
