/* 默认主题 - 简约风格 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #2563eb;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --border: #e5e7eb;
    --code-bg: #f5f5f5;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #e5e7eb;
        --text-light: #9ca3af;
        --bg: #111827;
        --border: #374151;
        --code-bg: #1f2937;
    }
}

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100%;
}

header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

header h1 a {
    color: var(--text);
    text-decoration: none;
}

header p {
    color: var(--text-light);
}

main {
    margin-bottom: 4rem;
}

.post-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed var(--border);
}

.post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.post-item h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.post-item h2 a {
    color: var(--text);
    text-decoration: none;
}

.post-item h2 a:hover {
    color: var(--primary);
}

.post-item time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-item p {
    margin-top: 0.5rem;
    color: var(--text-light);
}

/* 文章详情 */
.post-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.post-content .tags {
    margin-left: 1rem;
}

.post-body {
    font-size: 1.1rem;
}

.post-body h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
}

.post-body h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
}

.post-body p {
    margin-bottom: 1rem;
}

.post-body ul, .post-body ol {
    margin: 1rem 0 1rem 2rem;
}

.post-body code {
    background: var(--code-bg);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: "Menlo", "Monaco", "Courier New", monospace;
    font-size: 0.9em;
}

.post-body pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    color: var(--text-light);
    margin: 1rem 0;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1rem 0;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.post-body table th, .post-body table td {
    border: 1px solid var(--border);
    padding: 0.5rem;
}

.back-to-home {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.back-to-home a {
    color: var(--primary);
    text-decoration: none;
}

footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    text-align: center;
    font-size: 0.9rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.tags-cloud a {
    padding: 0.3rem 0.8rem;
    background: var(--code-bg);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
}

.archive-list {
    list-style: none;
}

.archive-list li {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.archive-list li time {
    flex: 0 0 100px;
    color: var(--text-light);
}

.archive-list li a {
    color: var(--text);
    text-decoration: none;
}

.archive-list li a:hover {
    color: var(--primary);
}