/* 通用样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 主要内容区域 */
.container {
    flex: 1 0 auto;
}

/* 头部样式 */
.blog-header {
    position: relative;
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.header-content {
    position: relative;
    z-index: 1;
}

/* 文章卡片样式 */
.blog-post {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.blog-post .text-muted {
    font-size: 0.9rem;
}

.blog-post p {
    margin-bottom: 1rem;
}

/* 侧边栏样式 */
.sidebar {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.sidebar h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
}

.sidebar ul li {
    margin-bottom: 0.5rem;
}

.sidebar ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: #007bff;
}

/* 标签样式 */
.tags {
    margin-top: 1rem;
}

.badge {
    font-weight: normal;
    padding: 0.4em 0.8em;
}

/* 页脚样式 */
.footer {
    background-color: #343a40;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    flex-shrink: 0;
}

.footer .social-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer .social-links a:hover {
    opacity: 0.8;
}

/* 文章内容样式 */
.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-meta {
    color: #6c757d;
    margin-bottom: 2rem;
}

.article-tags {
    margin-top: 2rem;
}

/* Markdown 样式 */
.article-content h1 { 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem; 
}

.article-content h2 { 
    font-size: 2rem; 
    margin: 2rem 0 1rem; 
}

.article-content h3 { 
    font-size: 1.5rem; 
    margin: 1.5rem 0 1rem; 
}

.article-content p { 
    margin-bottom: 1rem; 
}

.article-content ul, 
.article-content ol { 
    margin-bottom: 1rem; 
}

.article-content code { 
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

.article-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .blog-header {
        padding: 2rem 0;
    }
    
    .blog-post {
        padding: 1rem;
    }
    
    .sidebar {
        margin-top: 2rem;
    }
}

/* PDF卡片样式 */
.pdf-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pdf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pdf-card .card-body {
    padding: 2rem;
}

.pdf-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.pdf-card .card-text {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.pdf-card .btn-primary {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
}

.pdf-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.pdf-card .bi-file-pdf {
    margin-right: 8px;
    font-size: 1.1rem;
}