

section {
    width: 100%;
    padding: 60px 15px;
    display: flex;
    align-items: center;
    flex-direction: column;
}
section h3 {
    color: #999;
}
section h3:hover {
    color: orangered;
}
section time {
    color: #666;
}

.blog-masonry {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 30px;
    /* grid-auto-rows: 1px; 關鍵：縮小基準點 */
    align-items: start;
}

@media (max-width: 992px) { .blog-masonry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-masonry { grid-template-columns: 1fr; } }

.blog-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.4s ease;
    /* 初始隱藏，待 JS 計算後顯現，防止閃爍 */
    opacity: 0; 

    border-radius: 12px;
}

.blog-card.loaded {
    opacity: 1;
}

.blog-thumb img {
    width: 100%;
    display: block;
    height: auto;
}

.blog-content {
    padding: 20px;
}

.blog-tag {
    font-size: 10px;
    letter-spacing: 2px;
    color: #999;
    text-transform: lowercase;
    margin-bottom: 8px;
    display: block;
}

.footer {
    background-color: var(--bg-w);
}