/* 字体样式表 */

/* 衬线字体 - Noto Serif SC */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500;600;700&display=swap');

/* 无衬线字体 - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 字体应用规则 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.post-title,
.page-title,
.archive-title,
.widget-title,
.site-title {
    font-family: 'Noto Serif SC', serif;
}

/* 字体优化 */
.post-content,
.page-content,
.comment-text {
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
}

/* 中文排版优化 */
.post-content p,
.page-content p {
    text-align: justify;
    text-justify: inter-ideograph;
}

/* 标题字距调整 */
.post-title,
.page-title,
.archive-title {
    letter-spacing: 0.02em;
}

/* 小字号优化 */
.post-meta,
.comment-meta,
.widget-list {
    font-feature-settings: "tnum" 1;
    letter-spacing: 0.01em;
}

/* 代码字体 */
code, pre {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* 引用样式 */
blockquote {
    font-family: 'Noto Serif SC', serif;
    font-style: italic;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    left: -2rem;
    top: -0.5rem;
    color: var(--color-primary);
    opacity: 0.3;
}

/* 首字下沉 */
.post-content > p:first-child::first-letter,
.page-content > p:first-child::first-letter {
    font-family: 'Noto Serif SC', serif;
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    color: var(--color-primary);
    font-weight: 500;
}