:root {
    --bg-color: #ffffff;
    --text-color: #24292e;
    --primary-color: #0366d6;
    --border-color: #e1e4e8;
    --code-bg: #f6f8fa;
    --header-bg: #fafbfc;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    margin: 0;
    padding: 0;
    font-size: 16px;
}

.container {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-bottom: 40px;
    background-color: var(--header-bg);
}

header h1 {
    margin: 0;
}

header h1 a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

header h1 a:hover {
    color: var(--primary-color);
}

main {
    min-height: 60vh;
}

article header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    padding-bottom: 20px;
    background-color: transparent;
}

article h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    margin-top: 0;
    line-height: 1.25;
}

.meta {
    color: #586069;
    font-size: 0.9rem;
}

/* Post List */
.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.post-list .post-meta {
    display: block;
    font-size: 0.85rem;
    color: #586069;
    margin-bottom: 5px;
}

.post-list a {
    text-decoration: none;
    color: var(--primary-color);
}

.post-list a:hover {
    text-decoration: underline;
}

/* Markdown Content Styles */
.content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
    margin-top: 24px;
    margin-bottom: 16px;
}

.content h3 {
    font-size: 1.25rem;
    margin-top: 24px;
    margin-bottom: 16px;
}

.content p {
    margin-top: 0;
    margin-bottom: 16px;
}

.content blockquote {
    border-left: 0.25em solid #dfe2e5;
    color: #6a737d;
    padding: 0 1em;
    margin: 0 0 16px 0;
}

.content code {
    background: rgba(27, 31, 35, 0.05);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 85%;
}

.content pre {
    background: var(--code-bg);
    padding: 16px;
    overflow: auto;
    border-radius: 6px;
    line-height: 1.45;
}

.content pre code {
    background: none;
    padding: 0;
    font-size: 85%;
    word-wrap: normal;
}

.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

/* Table Styles */
table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.9em;
}

table th,
table td {
    padding: 10px;
    border: 1px solid var(--border-color);
    text-align: left;
}

table th {
    background-color: var(--header-bg);
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* MathJax Scroll Fix */
mjx-container {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
}

footer {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #586069;
    font-size: 0.9rem;
}