.main-container{
    flex-direction: column; padding-top: 40px;
}

/* 博客容器 */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
}

/* 頁面標題 */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/football-pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.blog-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.blog-header p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    position: relative;
    z-index: 2;
}

/* 博客網格 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* 博客卡片 */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(208, 13, 9, 0.15);
    text-decoration: none;
    color: inherit;
}

.blog-card:focus {
    outline: none;
    text-decoration: none;
    color: inherit;
}

.blog-card:visited {
    color: inherit;
}

/* 博客圖片 */
.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

/* 博客分類標籤 */
.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #D00D09;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(208, 13, 9, 0.3);
}

/* 博客內容 */
.blog-content {
    padding:12px 20px;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0;
}

.blog-card:hover .blog-title {
    color: #D00D09;
}

/* 博客元信息 */
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.author-name {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.blog-date {
    font-size: 0.85rem;
    color: #adb5bd;
    font-weight: 400;
}

/* 分頁樣式 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-btn {
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover {
    background: #f8f9fa;
    color: #D00D09;
    text-decoration: none;
}

.page-btn.active {
    background: #D00D09;
    color: white;
}

.page-btn.prev-btn,
.page-btn.next-btn {
    padding: 10px 20px;
    font-weight: 600;
}

.page-info {
    margin-left: 20px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .blog-container {
        padding: 20px 15px;
        background-color: unset;
    }

    .blog-header {
        padding: 40px 20px;
        margin-bottom: 30px;
    }

    .blog-header h1 {
        font-size: 2.5rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .blog-card {
        margin: 0 5px;
    }

    .author-name{
        font-size: 13px;
    }



    .blog-image {
        height: 200px;
    }

    .blog-content {
        padding: 8px 10px;
    }

    .blog-title {
        font-size: 15px;
    }

    .pagination {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 5px;
    }

    .page-btn {
        padding: 8px 12px;
        min-width: 35px;
    }

    .page-info {
        margin-left: 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .page-info{
        display: none;
    }
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pagination {
        padding: 8px 12px;
    }

    .page-btn.prev-btn,
    .page-btn.next-btn {
        padding: 8px 15px;
    }

    .blog-container {
        padding: 20px 10px;
    }
    
    .blog-header {
        margin-bottom: 10px;
    }
}

/* 加載動畫 */
.blog-card {
    animation: fadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }
.blog-card:nth-child(7) { animation-delay: 0.7s; }
.blog-card:nth-child(8) { animation-delay: 0.8s; }
.blog-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滾動條樣式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #D00D09;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a00a07;
}