@font-face {
    font-family: 'Noto Serif SC';
    src: url('../fonts/noto-serif-sc.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
html {
    font-size: 16px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif;
    background: #f5f5f5;
    min-height: 100vh;
    --content-max-width: 50rem;    
    --content-padding: 0;
    --timeline-x: 100px;           
}
a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px dashed #c8c8c8;
    padding-bottom: 1px;
    transition: color 0.25s ease,
                border-bottom-color 0.25s ease,
                border-bottom-style 0.25s ease;
}
a:hover {
    color: #0a4d62;
    border-bottom-color: #0a4d62;
    border-bottom-style: solid;
}
.header a,
.footer a {
    border-bottom: none;
    padding-bottom: 0;
}
body.has-timeline::before {
    content: '';
    position: fixed;
    left: var(--timeline-x-actual,
        calc(max(0px, (100vw - var(--content-max-width)) / 2)
            + var(--content-padding) + var(--timeline-x))
    );
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d8d8d8;
    z-index: 0;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 5rem;                    
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.04);
    z-index: 1000;
}
.header-container {
    max-width: 64rem;                
    margin: 0 auto;
    padding: 0 1.25rem;              
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;                   
    text-decoration: none;
    color: #333;
}
.logo-avatar {
    width: 3rem;                     
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #666;
}
.logo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-title {
    font-size: 1.5rem;               
    font-weight: bold;
    color: #333;
}
.logo-subtitle {
    font-size: 0.75rem;              
    color: #999;
}
.nav {
    display: flex;
    gap: 2rem;                       
}
a.nav-item {
    text-decoration: none;
    color: #999;
    font-size: 0.875rem;             
    border-bottom: 1px solid transparent;
    padding-bottom: 0.125rem;        
    transition: color 0.25s ease, border-bottom-color 0.25s ease;
}
a.nav-item:hover {
    color: #0a4d62;
    border-bottom: 1px solid #0a4d62;
}
.main-container {
    max-width: 60rem;                
    margin: 0 auto;
    padding-top: 7.5rem;             
}
.content-area {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}
.footer {
    margin-top: 5rem;                
    padding: 2rem 0;                 
    border-top: 1px solid #d8d8d8;
    background: #f5f5f5;
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
    position: relative;
    z-index: 1000;
}
.footer-container {
    max-width: 64rem;                
    margin: 0 auto;
    padding: 0 1.25rem;              
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;              
    color: #999;
}
.footer-left {
    display: flex;
    gap: 1rem;                       
}
.footer-right {
    color: #999;
    text-decoration: none;
}
@media (max-width: 640px) {
    .header {
        height: auto;
        padding: 0.625rem 0;         
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;                 
    }
    .logo {
        margin: 0 auto;
    }
    .logo-avatar {
        width: 2.25rem;              
        height: 2.25rem;
    }
    .logo-title {
        font-size: 1.125rem;         
    }
    .logo-subtitle {
        font-size: 0.6875rem;        
    }
    .nav {
        gap: 0.875rem;               
        flex-wrap: wrap;
        margin: 0 auto;
    }
    .nav-item {
        font-size: 0.8125rem;        
    }
    .main-container {
        padding-top: 6.75rem;        
    }
    body {
        --content-padding: 1rem;     
    }
    .footer {
        margin-top: 3.75rem;         
        padding: 1.5rem 0;           
    }
    .footer-container {
        flex-direction: column;
        gap: 0.375rem;               
        text-align: center;
    }
    .footer-left {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.6875rem;        
    }
}
