/* 全局基础与字体 */
@font-face {
    font-family: 'Gloria Hallelujah';
    src: url('../fonts/font.woff2') format('woff2');
}
@font-face {
    font-family: 'Yozai';
    src: url('../fonts/Yozai-Medium.woff2') format('truetype');
}

body {
    margin: 0;
    font-family:  'Gloria Hallelujah', 'Yozai',sans-serif;
    font-size: 20px;
    letter-spacing: 0.05em;
    line-height: 1.8;
    background-color: #ffffff;
    color: #333;
}

article {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* 链接与导航 */
a { color: inherit; text-decoration: none; transition: all 0.3s; }
.textlink { box-shadow: 0 -6px #f0e6f4 inset; }
.nav-links { display: flex; gap: 12px; margin: 20px 0; }
.nav-links a { background: #f0e6f4; padding: 6px 14px; border-radius: 8px; font-size: 0.9em; }

/* 文章内容组件 */
h1 { font-size: 2em; margin-bottom: 0.5em; }
h2 { font-size: 1.5em; border-left: 5px solid #f0e6f4; padding-left: 15px; margin-top: 40px; }

/* 代码块实现 */
pre {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    border: 1px dashed #dcd0e5;
}

/* 图片组件 */
.post-img {
    text-align: center;
    margin: 30px 0;
}
.post-img img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.post-img span {
    display: block;
    font-size: 0.8em;
    color: #888;
    margin-top: 10px;
}

/* 引用块 */
blockquote {
    margin: 20px 0;
    padding: 10px 20px;
    background: #fafafa;
    border-left: 4px solid #f0e6f4;
    font-style: italic;
}

/* 页脚 */
footer { text-align: center; padding: 40px 0; color: #999; font-size: 0.8em; border-top: 1px solid #eee; }

/* 动画类 */
.fade { transition: opacity .8s ease, transform .8s ease; opacity: 0; transform: translateY(15px); }
.fade-in { opacity: 1 !important; transform: translateY(0) !important; }