/* Tricky Story Blog Styles */

/* 博客内容样式 */
.blog-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.blog-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content ol,
.blog-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content ol li,
.blog-content ul li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.blog-content ol {
    list-style-type: decimal;
}

.blog-content ul {
    list-style-type: disc;
}

.blog-content strong {
    font-weight: 600;
    color: #1f2937;
}

.blog-content a {
    color: #8b5cf6;
    text-decoration: underline;
    transition: color 0.2s;
}

.blog-content a:hover {
    color: #7c3aed;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.blog-content .blog-image {
    display: block;
    margin: 2rem auto;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
}

.blog-content table th,
.blog-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.blog-content table th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #1f2937;
}

.blog-content table tr:nth-child(even) {
    background-color: #f9fafb;
}

.blog-content blockquote {
    border-left: 4px solid #8b5cf6;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
}

.blog-content code {
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #8b5cf6;
}

.blog-content pre {
    background-color: #1f2937;
    color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.blog-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* 文章卡片悬停效果 */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 文本截断 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prose样式（文章内容） */
.prose {
    max-width: 65ch;
}

.prose-lg {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .blog-content h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .blog-content h4 {
        font-size: 1.125rem;
    }
    
    .blog-content table {
        font-size: 0.875rem;
    }
    
    .blog-content table th,
    .blog-content table td {
        padding: 0.5rem;
    }
}

/* 打印样式 */
@media print {
    .blog-content {
        font-size: 12pt;
        line-height: 1.6;
    }
    
    .blog-content a {
        text-decoration: none;
        color: #000;
    }
    
    .blog-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}
