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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
    line-height: 1.8;
    color: #1a1a1a;
    background: #fff;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 24px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 40px;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.site-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}
nav a {
    margin-left: 18px;
    color: #555;
    text-decoration: none;
    font-size: 0.95em;
}
nav a:hover {
    color: #2563eb;
}

/* Main content */
main {
    min-height: 60vh;
}

/* Intro section (homepage) */
.intro {
    margin-bottom: 48px;
}
.intro h1 {
    font-size: 1.8em;
    margin-bottom: 12px;
}
.intro p {
    color: #555;
    font-size: 1.05em;
}

/* Section titles */
h2 {
    font-size: 1.2em;
    margin-bottom: 16px;
    color: #333;
}

/* Post cards */
.latest-posts, .list-page {
    margin-bottom: 48px;
}
.post-card {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.post-card h2, .post-card h3 {
    font-size: 1.1em;
    margin-bottom: 4px;
}
.post-card h2 a, .post-card h3 a {
    color: #1a1a1a;
    text-decoration: none;
}
.post-card h2 a:hover, .post-card h3 a:hover {
    color: #2563eb;
}
.post-card time {
    font-size: 0.85em;
    color: #999;
}
.post-card p {
    margin-top: 8px;
    color: #555;
    font-size: 0.95em;
}
.more a {
    color: #2563eb;
    text-decoration: none;
}

/* Quick links grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 48px;
}
.link-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    transition: border-color 0.2s;
}
.link-card:hover {
    border-color: #2563eb;
}
.link-icon {
    font-size: 1.5em;
    margin-bottom: 8px;
}
.link-title {
    font-weight: 600;
    margin-bottom: 4px;
}
.link-desc {
    font-size: 0.85em;
    color: #888;
}

/* Single post */
.single-post header {
    margin-bottom: 32px;
}
.single-post h1 {
    font-size: 1.6em;
    margin-bottom: 8px;
}
.single-post time {
    color: #999;
    font-size: 0.9em;
}
.single-post .content {
    font-size: 1.05em;
    line-height: 1.9;
}
.single-post .content p {
    margin-bottom: 1.2em;
}
.single-post .content h2 {
    margin-top: 2em;
    margin-bottom: 0.8em;
}
.single-post .content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.single-post .content ul, .single-post .content ol {
    margin-bottom: 1.2em;
    padding-left: 1.5em;
}
.single-post .content li {
    margin-bottom: 0.4em;
}
.single-post .content blockquote {
    border-left: 3px solid #2563eb;
    padding-left: 16px;
    color: #555;
    margin: 1.2em 0;
}
.single-post .content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}
.single-post .content pre {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.2em;
}
.single-post .content pre code {
    background: none;
    padding: 0;
}
.single-post .content strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Stack page */
.stack-item {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}
.stack-item:last-child {
    border-bottom: none;
}
.stack-item h2 {
    margin-bottom: 4px;
}
.stack-item .category-label {
    display: inline-block;
    font-size: 0.75em;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.stack-item p {
    color: #555;
    margin-bottom: 8px;
}
.stack-item .how-i-use {
    font-size: 0.9em;
    color: #777;
    border-left: 2px solid #e5e5e5;
    padding-left: 12px;
}

/* Footer */
.site-footer {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    color: #999;
    font-size: 0.85em;
}
.site-footer a {
    color: #666;
}
.beian {
    margin-top: 8px;
    font-size: 0.8em;
}
.beian a {
    color: #999;
}

/* Responsive */
@media (max-width: 500px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    nav a {
        margin-left: 0;
        margin-right: 14px;
    }
    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* WeChat CTA */
.wechat-cta {
    margin-top: 48px;
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-align: center;
    background: #fafafa;
}
.wechat-cta-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.wechat-cta-desc {
    color: #888;
    font-size: 0.9em;
}

/* WeChat card in links grid */
.wechat-card {
    cursor: default;
    background: #fafafa;
}
.wechat-card:hover {
    border-color: #07c160;
}

.wechat-qr {
    display: block;
    margin: 0 auto 16px;
    border-radius: 8px;
}
