/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    font-size: 16px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.nav-brand .logo {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

/* 主要内容 */
main {
    margin-top: 80px;
}

/* 头部介绍 */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

/* 文章列表 */
.posts {
    padding: 60px 0;
}

.post-item {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #f0f0f0;
}

.post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-cover {
    flex: 0 0 280px;
}

.post-cover img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.post-cover img:hover {
    transform: scale(1.02);
}

.post-content {
    flex: 1;
    padding-left: 10px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #999;
}

.post-date {
    font-weight: 400;
}

.post-category {
    color: #666;
    font-weight: 500;
}

.post-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.post-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}

.post-link:hover {
    border-bottom-color: #000;
}

/* 关于区域 */
.about {
    padding: 80px 0;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: -0.5px;
}

.about-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* 联系区域 */
.contact {
    padding: 80px 0;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #666;
    font-size: 16px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #000;
}

.contact-icon {
    font-size: 20px;
}

/* 页脚 */
.footer {
    background: #fafafa;
    border-top: 1px solid #eee;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.icp a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp a:hover {
    color: #666;
}

/* 滚动行为 */
html {
    scroll-behavior: smooth;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav {
        padding: 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .posts {
        padding: 40px 0;
    }

    .post-item {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .post-cover {
        flex: none;
    }

    .post-content {
        padding-left: 0;
    }

    .post-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .about,
    .contact {
        padding: 60px 0;
    }

    .contact-links {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 12px 15px;
    }

    .hero-title {
        font-size: 28px;
    }

    .post-title {
        font-size: 18px;
    }

    .section-title {
        font-size: 24px;
    }

    .post-cover img {
        height: 160px;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 选择文本样式 */
::selection {
    background: #000;
    color: #fff;
}
