/* ==================== 博客页面样式 ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f5f5;
    color: #000;
    min-height: 100vh;
    /* 网格背景 */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==================== 顶部导航 ==================== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    z-index: 100;
    background: rgba(245, 245, 245, 0.95);
    backdrop-filter: blur(10px);
}

.topbar-left .logo img {
    height: 100px;
    width: auto;
}

.topbar-center {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    transition: opacity 0.3s;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.6;
}

.nav-slash {
    color: #999;
}

.topbar-right {
    display: flex;
    align-items: center;
}

.icon-link {
    color: #000;
    transition: opacity 0.3s;
}

.icon-link:hover {
    opacity: 0.6;
}

.topbar-line {
    position: absolute;
    bottom: 0;
    left: 4vw;
    right: 4vw;
    height: 1px;
    background-color: #000;
}

/* ==================== 博客主体 ==================== */
.blog-main {
    padding: 120px 4vw 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 博客标题区 */
.blog-header {
    margin-bottom: 4rem;
}

.blog-title-small {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    letter-spacing: 0.1em;
    display: block;
}

.blog-title-large {
    font-family: 'Inter', sans-serif;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    color: #000;
    letter-spacing: -0.02em;
    line-height: 0.95;
    margin: 0.2rem 0;
}

.blog-subtitle {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.2rem;
    color: #666;
    margin-top: 1rem;
    letter-spacing: 0.2em;
}

/* ==================== 分类筛选 ==================== */
.blog-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border: 1px solid #000;
    background: transparent;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #000;
    color: #fff;
}

.filter-btn.active {
    background: #000;
    color: #fff;
}

/* ==================== 博客卡片 ==================== */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.blog-card-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.8rem;
}

.blog-card-title {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.blog-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.blog-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-card-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #000;
    display: inline-block;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

.blog-card-link:hover {
    opacity: 0.6;
}

/* ==================== 页脚 ==================== */
.blog-footer {
    text-align: center;
    padding: 3rem 4vw;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 4rem;
}

.blog-footer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #999;
}

/* ==================== 响应式 ==================== */
@media screen and (max-width: 768px) {
    .blog-list {
        grid-template-columns: 1fr;
    }

    .topbar-center {
        display: none;
    }

    .blog-title-large {
        font-size: 3rem;
    }
}