/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 引入Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Sans+Pro:wght@300;400;500;600;700&display=swap');


/* 基础设置 */
body {
    font-family: 'Source Sans Pro', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.8;
    color: #2c3e50;
    background-color: #ffffff;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 容器 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
header {
    padding: 1.2rem 0;
    border-bottom: 1px solid #f0e6d9;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
    font-family: 'Ma Shan Zheng', cursive;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: #666666;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Source Sans Pro', sans-serif;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a:nth-child(3) { /* 学习 */
    color: #3498db;
    font-weight: 700;
}

.nav-links a:nth-child(3):hover {
    color: #2980b9;
}

.nav-links a:nth-child(4) { /* 行动 */
    color: #2ecc71;
    font-weight: 700;
}

.nav-links a:nth-child(4):hover {
    color: #27ae60;
}

.nav-links a:nth-child(5) { /* 快车道 */
    color: #e67e22;
    font-weight: 700;
}

.nav-links a:nth-child(5):hover {
    color: #d35400;
}

.separator {
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* 主要内容 */
main {
    padding: 2.5rem 0;
}

/* 文章列表 */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-family: 'Playfair Display', 'Noto Serif SC', serif;
    letter-spacing: 0.5px;
}

.post-stats {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-bottom: 1rem;
    font-weight: 400;
}

.divider {
    height: 2px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    margin-bottom: 2.5rem;
    border-radius: 1px;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-item {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.post-item:hover {
    background-color: #f8f9fa;
    transform: translateX(3px);
}

.post-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    min-width: 110px;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.post-item .post-title {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Ma Shan Zheng', cursive, 'Noto Serif SC', serif;
    flex: 1;
    letter-spacing: 0.5px;
}

.post-item .post-title:hover {
    text-decoration: none;
    transform: translateX(2px);
    /* 悬停颜色将通过JavaScript动态设置 */
}

/* 页脚 */
footer {
    padding: 2.5rem 0;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.85rem;
    border-top: 1px solid #f0e6d9;
    margin-top: 4rem;
    background-color: #f8f9fa;
}

footer p {
    margin: 0;
    font-weight: 400;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .post-date {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-links {
        font-size: 0.8rem;
        gap: 0.8rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .post-title {
        font-size: 0.9rem;
    }
}