:root {
    --primary: #2563eb;
    --text: #1e293b;
    --muted: #64748b;
    --bg: #f8fafc;
    --border: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

a { color: var(--primary); }
a:hover { color: #1d4ed8; }

.navbar-brand { font-size: 1.2rem; }

.article-content {
    font-size: 1rem;
    line-height: 1.85;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

.article-content h1 { font-size: 1.8rem; }
.article-content h2 { font-size: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; }
.article-content h3 { font-size: 1.25rem; }

.article-content p { margin-bottom: 1.2em; }

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1em 0;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 1.2em;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 1.2em 0;
}

.article-content code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 1.2em 0;
    padding: 0.6em 1.2em;
    background: #eff6ff;
    border-radius: 0 6px 6px 0;
    color: var(--muted);
}

.article-content blockquote p {
    margin-bottom: 0.3em;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
}

.article-content th,
.article-content td {
    border: 1px solid var(--border);
    padding: 0.6em 0.8em;
}

.article-content th {
    background: #f8fafc;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    padding-left: 1.8em;
    margin-bottom: 1.2em;
}

.article-content li {
    margin-bottom: 0.3em;
}

.article-content hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 2em 0;
}

.card {
    border-radius: 8px;
}

.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: none;
    color: var(--muted);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
}
