* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 40px 0 20px;
}

.logo { text-decoration: none; color: inherit; display: block; }
.logo-text { font-size: 1.4em; font-weight: 600; display: block; }
.logo-sub { font-size: 0.85em; color: #999; }

nav {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

nav a {
    text-decoration: none;
    color: #999;
    margin-right: 20px;
    font-size: 0.9em;
}

nav a.active, nav a:hover { color: #333; }

.section-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.article-count {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 25px;
}

.article-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: opacity 0.2s;
}

.article-card:hover { opacity: 0.7; }

.article-card h1 {
    font-size: 1.25em;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.meta {
    font-size: 0.8em;
    color: #999;
    margin-bottom: 8px;
}

.desc {
    font-size: 0.92em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.tags {
    font-size: 0.8em;
    color: #bbb;
}

/* Article Page */
.article-page {
    padding: 20px 0 60px;
}

.article-page h1 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-page .meta {
    margin-bottom: 30px;
}

.article-page h2 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 30px 0 12px;
}

.article-page p {
    margin-bottom: 16px;
    color: #444;
}

.article-page .img-placeholder {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    color: #aaa;
    margin: 20px 0;
    font-size: 0.9em;
}

.article-page .article-img {
    width: 100%;
    border-radius: 6px;
    margin: 20px 0;
}

.article-page code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.article-page pre {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 0.85em;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #999;
    text-decoration: none;
    font-size: 0.9em;
}

.back-link:hover { color: #333; }

.about-section {
    padding: 30px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.about-section h2 {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.about-section p {
    font-size: 0.92em;
    color: #555;
    margin-bottom: 10px;
}

footer {
    padding: 20px 0 40px;
    font-size: 0.8em;
    color: #ccc;
    text-align: center;
}

footer a { color: #ccc; }
