/* ===============================
   Blog Hero
=============================== */

.blog-hero {
    max-width: 760px;
    margin: 80px auto 60px;
    padding: 0 24px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    color: var(--text-main);
}

.blog-hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===============================
   Timeline Container
=============================== */

.blog-timeline {
    max-width: 760px;
    margin: 0 auto 120px;
    padding: 0 24px;
    position: relative;
}

/* 竖线 */
.blog-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(
            to bottom,
            rgba(99,102,241,0.15),
            rgba(99,102,241,0.35),
            rgba(99,102,241,0.15)
    );
}

/* ===============================
   Year Label
=============================== */

.timeline-year {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 40px 0 24px 60px;
    color: var(--text-main);
}

/* ===============================
   Blog Card
=============================== */

.blog-card {
    position: relative;
    margin-left: 60px;
    margin-bottom: 36px;
    padding: 22px 26px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-light);

    transition:
            transform 0.35s ease,
            box-shadow 0.35s ease,
            border-color 0.35s ease;
}

/* 圆点 */
.blog-card::before {
    content: "";
    position: absolute;
    left: -44px;
    top: 28px;
    width: 12px;
    height: 12px;
    background: rgb(99,102,241);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.25);
}

/* 悬浮 */
.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99,102,241,0.4);
    box-shadow:
            0 10px 28px rgba(99,102,241,0.15);
}

/* ===============================
   Meta
=============================== */

.card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.card-meta .date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

/* 标签颜色 */
.tag.research {
    background: rgba(99,102,241,0.15);
    color: rgb(79,70,229);
}

/* ===============================
   Title
=============================== */

.blog-card h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.35;
}

.blog-card h2 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.25s ease;
}

.blog-card h2 a:hover {
    color: rgb(79,70,229);
}

/* ===============================
   Excerpt
=============================== */

.excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===============================
   Footer
=============================== */

.blog-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 40px 0 60px;
}

/* ===============================
   Dark Mode
=============================== */

[data-theme="dark"] .blog-timeline::before {
    background: linear-gradient(
            to bottom,
            rgba(129,140,248,0.1),
            rgba(129,140,248,0.3),
            rgba(129,140,248,0.1)
    );
}

[data-theme="dark"] .blog-card::before {
    background: rgb(129,140,248);
    box-shadow: 0 0 0 4px rgba(129,140,248,0.25);
}