/* 引入Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* 自定义字体样式 */
body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif !important;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* 导航栏字体 */
.navbar-custom .navbar-brand {
    font-family: 'Inter', 'Noto Sans SC', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.navbar-custom .nav li a {
    font-family: 'Inter', 'Noto Sans SC', sans-serif !important;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* 首页大标题 - 协调优化 */
.intro-header .site-heading h1,
.intro-header .page-heading h1 {
    font-family: 'Inter', 'Noto Sans SC', sans-serif !important;
    font-weight: 700; /* 稍微减轻字重，更优雅 */
    letter-spacing: 0.02em; /* 增加字间距，更舒展 */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7), 
                 0 0 20px rgba(0,0,0,0.3); /* 柔和的双层阴影 */
    font-size: 4.8rem !important; /* 稍微缩小，更协调 */
    line-height: 1.2; /* 增加行高 */
    margin-bottom: 2.5rem !important; /* 调整间距 */
    margin-top: 1.5rem !important;
    /* 温暖的白色，带一点暖调 */
    color: rgba(255, 252, 248, 0.92) !important;
    /* 移除放大效果，更自然 */
}

/* 手机端优化 - 更舒适的布局 */
@media (max-width: 768px) {
    .intro-header .site-heading h1,
    .intro-header .page-heading h1 {
        font-size: 3.2rem !important; /* 调整手机端大小 */
        letter-spacing: 0.01em; /* 与桌面端保持一致 */
        margin-bottom: 1.8rem !important; /* 增加间距 */
        margin-top: 1rem !important;
        line-height: 1.3; /* 手机端稍微增加行高 */
    }
    
    .intro-header .site-heading .subheading,
    .intro-header .page-heading .subheading {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        font-size: 1.3rem !important; /* 调整比例 */
        max-width: 92%; /* 稍微缩小，增加边距 */
        padding: 0 20px; /* 增加内边距 */
        line-height: 2; /* 手机端增加行高 */
        letter-spacing: 0.02em; /* 手机端稍微减少字间距 */
    }
    
    /* 手机端整体容器优化 */
    .intro-header .site-heading,
    .intro-header .page-heading {
        padding: 120px 0 80px !important; /* 调整手机端内边距 */
    }
}

/* 副标题 - 和谐优化 */
.intro-header .site-heading .subheading,
.intro-header .page-heading .subheading,
.intro-header .post-heading .subheading {
    font-family: 'Inter', 'Noto Sans SC', serif !important;
    font-weight: 400; /* 稍微加重，与主标题更协调 */
    font-style: italic;
    letter-spacing: 0.03em; /* 增加字间距，与主标题呼应 */
    margin-top: 2rem !important; /* 调整间距比例 */
    margin-bottom: 1.8rem !important;
    line-height: 1.9; /* 增加行高，更舒适 */
    font-size: 1.6rem !important; /* 稍微缩小，与主标题比例更协调 */
    opacity: 0.88; /* 稍微调整透明度 */
    /* 优化阴影效果 - 去掉描边，加强阴影清晰度 */
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8), 
                 1px 1px 12px rgba(0,0,0,0.6),
                 0 0 20px rgba(0,0,0,0.4);
    max-width: 850px; /* 调整宽度 */
    margin-left: auto;
    margin-right: auto;
    /* 与主标题相同的暖白色调 */
    color: rgba(255, 252, 248, 0.92) !important;
}

/* 文章标题 */
.intro-header .post-heading h1 {
    font-family: 'Inter', 'Noto Sans SC', sans-serif !important;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* 文章列表标题 */
.post-preview > a > .post-title {
    font-family: 'Inter', 'Noto Sans SC', sans-serif !important;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* 代码字体 */
code, pre, .highlight {
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace !important;
}

/* 优化文本渲染 */
body, h1, h2, h3, h4, h5, h6 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 段落间距优化 */
p {
    line-height: 1.7;
    margin-bottom: 1.5em;
}

/* 链接样式优化 */
a {
    transition: color 0.2s ease;
}

/* 按钮字体 */
.btn {
    font-family: 'Inter', 'Noto Sans SC', sans-serif !important;
    font-weight: 500;
    letter-spacing: 0.02em;
} 