/* Blog Page Styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Content Sections */
.blog-section {
    padding: 80px 0;
}

.blog-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: #2c3e50;
}

/* Blog Post Item */
/* 优化博客文章项的样式 */
.blog-post-item {
    background: white;
    border-radius: 16px; /* 增加圆角 */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); /* 减轻阴影 */
    margin-bottom: 2.5rem; /* 增加间距 */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* 更流畅的动画 */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-post-item:hover {
    transform: translateY(-8px); /* 增加悬停效果 */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 优化标题样式 */
.blog-post-title {
    font-size: 1.6rem; /* 增大字体 */
    font-weight: 700; /* 加粗 */
    margin-bottom: 1rem;
    color: #1a202c; /* 更深的颜色 */
    line-height: 1.3;
}

/* 优化摘要样式 */
.blog-post-excerpt {
    color: #4a5568; /* 更好的对比度 */
    line-height: 1.7; /* 增加行高 */
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* 优化徽章样式 */
.blog-post-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1rem; /* 增加内边距 */
    border-radius: 25px; /* 更圆的徽章 */
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-badge.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.blog-post-badge.article {
    background: linear-gradient(135deg, #17a2b8 0%, #6610f2 100%);
}

/* 优化Hero区域 */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed; /* 视差效果 */
    color: white;
    padding: 120px 0 100px; /* 增加内边距 */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

/* 添加动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-item {
    animation: fadeInUp 0.6s ease-out;
}

.blog-post-item:nth-child(2) {
    animation-delay: 0.1s;
}

.blog-post-item:nth-child(3) {
    animation-delay: 0.2s;
}

.blog-post-item:nth-child(4) {
    animation-delay: 0.3s;
}
/* 优化文章卡片内容区域的内边距 */
.blog-post-content {
    padding: 2.5rem; /* 增加桌面端内边距 */
}

/* 优化博客区域整体间距 */
.blog-posts {
    padding: 100px 0; /* 增加上下间距 */
}

/* 优化section标题的间距 */
.section-header {
    margin-bottom: 4rem !important; /* 增加标题下方间距 */
}

/* 优化文章项之间的间距 */
.blog-post-item {
    margin-bottom: 3rem; /* 增加文章间距 */
    padding: 0; /* 确保外层无额外padding */
}

/* 优化移动端适配 */
@media (max-width: 768px) {
    .blog-posts {
        padding: 80px 0; /* 移动端适当减少但保持充足间距 */
    }
    
    .blog-post-content {
        padding: 2rem; /* 移动端保持足够内边距 */
    }
    
    .section-header {
        margin-bottom: 3rem !important;
    }
}

@media (max-width: 576px) {
    .blog-post-content {
        padding: 1.5rem; /* 小屏幕设备最小内边距 */
    }
    
    .blog-posts {
        padding: 60px 0;
    }
}

/* 优化文章内容的行间距和字间距 */
.blog-post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-post-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.blog-post-link:hover {
    color: #5a6fd8;
    gap: 0.75rem;
}

/* LinkedIn Integration */
.linkedin-integration {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
}

.linkedin-integration h3 {
    color: #0077b5;
    margin-bottom: 1rem;
}

.linkedin-integration p {
    color: #666;
    margin-bottom: 1.5rem;
}

.linkedin-btn {
    background: #0077b5;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.linkedin-btn:hover {
    background: #005885;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 0 60px;
    }
    
    .blog-hero h1 {
        font-size: 2.2rem;
    }
    
    .blog-hero p {
        font-size: 1.1rem;
    }
    
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .blog-post-content {
        padding: 1.5rem;
    }
    
    .blog-post-title {
        font-size: 1.3rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .blog-hero h1 {
        font-size: 1.8rem;
    }
    
    .blog-section h2 {
        font-size: 1.6rem;
    }
    
    .blog-post-content {
        padding: 1rem;
    }
    
    .linkedin-integration {
        padding: 1.5rem;
    }
}


/* SVG Placeholder Styles */
/* SVG Icons Styles */
.svg-placeholder {
    transition: all 0.3s ease;
    cursor: pointer;
}

.svg-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.svg-placeholder svg {
    transition: transform 0.3s ease;
}

.svg-placeholder:hover svg {
    transform: scale(1.1);
}

/* SVG Icons Container */
#svg-icons-container {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* Additional SVG Icon Variations */
.svg-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.svg-gradient-2 {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.svg-gradient-3 {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}

.svg-gradient-4 {
    background: linear-gradient(135deg, #17a2b8 0%, #6610f2 100%);
}

.svg-gradient-5 {
    background: linear-gradient(135deg, #fd7e14 0%, #dc3545 100%);
}

.svg-gradient-6 {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.svg-gradient-7 {
    background: linear-gradient(135deg, #198754 0%, #0d6efd 100%);
}

.svg-gradient-8 {
    background: linear-gradient(135deg, #d63384 0%, #6f42c1 100%);
}

.svg-gradient-9 {
    background: linear-gradient(135deg, #0dcaf0 0%, #198754 100%);
}

.svg-gradient-10 {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
}