/* archive-blog.css */

/* 1. 佈局：側邊欄 + 內容 */
.blog-archive-layout {
    display: flex;
    gap: 30px;
}
@media (max-width: 768px) {
    .blog-archive-layout {
        flex-direction: column;
    }
    aside{
        display: none;
    }
}



/* 3. 主要內容區 */
.blog-content {
    flex: 1;
}
.blog-header {
    margin-bottom: 24px;
}
.archive-title {
    font-size: 2em;
    color: #222;
    margin: 0;
}

/* 4. 文章列表 - 兩欄卡片佈局 */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
@media (max-width: 1024px) {
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .blog-posts {
        grid-template-columns: 1fr;
    }
}

.blog-post {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.blog-post:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 圖片遮罩分類標籤 */
.post-thumbnail {
    position: relative;
}
.category-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.85em;
    border-radius: 999px;
    z-index: 5;
}
.category-overlay a {
    color: #fff;
    text-decoration: none;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 5. 文章資訊區 */
.post-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-title {
    font-size: 1.3em;
    margin: 0 0 8px;
}
.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.post-title a:hover {
    color: #000;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.read-more {
    font-size: 0.9em;

    text-decoration: none;
    align-self: flex-start;
    transition: color 0.2s;
}
.read-more:hover {

}
