/* 全局重置 + 文学风基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.8;
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* 头部 */
.blog-header {
    text-align: center;
    padding: 60px 0 40px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.blog-header h1 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #222;
}

.blog-header p {
    color: #999;
    font-size: 16px;
}

/* 分类栏 */
.category-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.cate-btn {
    padding: 8px 16px;
    border: 1px solid #eee;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.cate-btn.active, .cate-btn:hover {
    background: #f8f8f8;
    border-color: #ddd;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-card {
    padding: 24px;
    border-radius: 12px;
    transition: 0.3s;
}

.article-card:hover {
    background: #fafafa;
}

.article-card a {
    text-decoration: none;
    color: #222;
}

.cate-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.article-card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.date {
    color: #999;
    font-size: 14px;
}

/* 文章详情页 */
.article-nav {
    padding: 30px 0;
}

.back-btn {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    transition: 0.3s;
}

.back-btn:hover {
    color: #222;
}

.article-detail {
    padding: 20px 0 60px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 28px;
    font-weight: 500;
    margin: 16px 0 12px;
    color: #222;
}

.article-img {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 700px;
}

.article-img img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.article-content {
    font-size: 17px;
    color: #444;
    line-height: 2;
    text-align: justify;
}

/* 空状态/加载 */
.loading, .empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #f0f0f0;
    color: #999;
    font-size: 14px;
    margin-top: 60px;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .blog-header h1 {
        font-size: 26px;
    }
    .article-header h1 {
        font-size: 24px;
    }
    .article-content {
        font-size: 16px;
    }
}
/* Footer 链接样式（不破坏原有外观 + hover效果） */
footer a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
  }
  /* 鼠标悬浮：文字变深 + 下划线 */
  footer a:hover {
    color: #333;
    text-decoration: underline;
    text-underline-offset: 4px;
  }