* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background: #f7f8fa;
    color: #4361ee;
    line-height: 1.6;
}

/* 导航 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 99;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.logo {
    font-size: 20px;
    font-weight: bold;
    color: #4361ee;
    text-decoration: none;
}
.nav-links a {
    margin-left: 24px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}
.nav-links a:hover {
    color: #007bff;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}
header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #222;
}
header p {
    font-size: 15px;
    color: #666;
}

/* 博客列表 */
.blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}
.blog-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.blog-img {
    width: 100%;
    /* height: 180px; */
    object-fit: cover;
    display: block;
}
.blog-content {
    padding: 16px;
}
.blog-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}
.blog-title {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    line-height: 1.5;
    display: block;
    margin-bottom: 6px;
    text-decoration: none; /* 去掉下划线 */
}
.blog-desc {
    font-size: 13px;
    color: #666;
}

/* ========== 分页样式（无下划线 + 美观） ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}
.page-item {
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    text-decoration: none !important; /* 强制去掉下划线 */
    border: 1px solid #eee;
    transition: 0.2s;
}
.page-item:hover {
    background: #f0f5ff;
    color: #007bff;
    border-color: #d0e0ff;
}
.page-item.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 去掉所有a标签默认下划线 */
a {
    text-decoration: none !important;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #999;
}

/* 移动端适配 */
@media (max-width:768px) {
    .blog-list {
        grid-template-columns: repeat(2,1fr);
    }
}
@media (max-width:500px) {
    .blog-list {
        grid-template-columns: 1fr;
    }
}