* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #222;
    line-height: 1.7;
    background: #fafafa;
}

/* 导航 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #222;
}

/* 首屏 */
.hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 160px 24px 100px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #111;
}

.hero p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    background: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    transition: background 0.2s;
}

.btn:hover {
    background: #000;
}

/* 关于 */
.about {
    background: #fff;
    padding: 80px 24px;
    text-align: center;
}

.about h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
}

.about-content {
    max-width: 600px;
    margin: 0 auto 32px;
}

.about-content p {
    color: #555;
    margin-bottom: 12px;
}

.tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 6px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
}

/* 文章列表 */
.articles {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 24px;
}

.articles h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 48px;
    text-align: center;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.article-card {
    display: block;
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.article-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
    line-height: 1.4;
}

.article-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags span {
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

/* 项目展示 */
.projects {
    background: #fff;
    padding: 80px 24px;
}

.projects h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 48px;
    text-align: center;
}

.project-list {
    max-width: 960px;
    margin: 0 auto;
}

.project-card {
    background: #fafafa;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.project-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-card p {
    color: #666;
    margin-bottom: 16px;
}

.project-tech {
    font-size: 13px;
    color: #888;
}

/* 联系方式 */
.contact {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
}

.contact h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact > p {
    color: #666;
    margin-bottom: 24px;
}

.contact-info {
    margin-bottom: 24px;
}

.contact-info p {
    color: #555;
}

.email-text {
    color: #222;
    font-weight: 500;
}

.contact-note {
    font-size: 13px;
    color: #999;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    display: inline-block;
}

/* 页脚 */
footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 40px 24px 32px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-main .logo {
    display: block;
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 13px;
    color: #999;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: #222;
}

.footer-beian {
    max-width: 960px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-beian p {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.footer-beian a {
    color: #999;
    text-decoration: none;
}

.footer-beian a:hover {
    color: #666;
}

.beian-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}

.site-nature {
    margin-top: 12px;
    padding: 8px 16px;
    background: #f9f9f9;
    border-radius: 4px;
    display: inline-block;
    font-size: 12px;
    color: #888;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .article-list {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
