/* styles.css */

/* 导航栏样式 */
.navbar {
    backdrop-filter: blur(12px) saturate(180%);
    background-color: rgba(194, 233, 233, 0.35) !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    transition: box-shadow 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 防止内容被固定导航栏遮挡 */
body {
    padding-top: 70px; 
}

/* 个人资料图片样式 */
.profile-img {
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.profile-img:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
}

/* 博客卡片样式 */
.blog-card {
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 标签徽章样式 */
.tag-badge {
    background-color: #00c6a7 !important;
}

/* 页脚链接样式 */
.footer-link {
    color: #6c757d;
    text-decoration: none;
}

.footer-link:hover {
    color: #007bff;
}

/* 进度条容器样式 */
.progress-container {
    width: 100%;
    height: 3px;
    background: transparent;
    position: fixed;
    top: 0;
    z-index: 1000;
}

/* 进度条样式 */
.progress-bar {
    height: 3px;
    background: #00c6a7;
    width: 0%;
}

/* 从 about.html 抽象过来的样式 */
.markdown-content h1::before,
.markdown-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
}

/* 卡片样式 */
.card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Font Awesome 图标样式 */
.fa {
    font-size: 1.2em;
}

/* 存档样式 */
.archive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: all 0.3s ease;
}

.archive:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.archive-year {
    position: relative;
    padding-left: 1rem;
}

/* 新增样式：全局字体和颜色 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 新增样式：标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: #222;
    margin-bottom: 1rem;
}

/* 新增样式：容器宽度和居中 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 新增样式：页脚样式 */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
    text-align: center;
}