body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; }
.animate-fade-in-right { animation: fadeInRight 0.5s ease-out forwards; opacity: 0; }
.animate-scale-in { animation: scaleIn 0.5s ease-out forwards; opacity: 0; }

#nprogress { pointer-events: none; }
#nprogress .bar { background: #3b82f6 !important; position: fixed; z-index: 1031; top: 0; left: 0; width: 100%; height: 3px !important; }
#nprogress .peg { display: block; position: absolute; right: 0px; width: 100px; height: 100%; box-shadow: 0 0 10px #3b82f6, 0 0 5px #3b82f6 !important; opacity: 1.0; transform: rotate(3deg) translate(0px, -4px); }
#nprogress .spinner { display: block; position: fixed; z-index: 1031; top: 15px; right: 15px; }
#nprogress .spinner-icon { width: 18px; height: 18px; box-sizing: border-box; border: solid 2px transparent; border-top-color: #3b82f6 !important; border-left-color: #3b82f6 !important; border-radius: 50%; animation: nprogress-spinner 400ms linear infinite; }
@keyframes nprogress-spinner { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: white;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    color: #4b5563;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #eff6ff;
    color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pagination span { background: #3b82f6; color: white; font-weight: 600; }
.dark .pagination a { background: #1e1e1e; color: #9ca3af; box-shadow: none; }
.dark .pagination a:hover { background: #374151; color: #60a5fa; }

.article-content { font-size: 1rem; line-height: 1.8; color: #374151; word-wrap: break-word; }
.article-content p { margin-bottom: 1.5em; }
.article-content a { color: #3b82f6; text-decoration: none; border-bottom: 1px dashed #3b82f6; padding-bottom: 2px; transition: all 0.3s; }
.article-content a:hover { color: #2563eb; border-bottom-style: solid; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4, .article-content h5, .article-content h6 { color: #111827; font-weight: 600; margin-top: 2em; margin-bottom: 1em; line-height: 1.4; }
.article-content h1 { font-size: 1.875rem; }
.article-content h2 { font-size: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid #e5e7eb; }
.article-content h3 { font-size: 1.25rem; }
.article-content h4 { font-size: 1.125rem; }
.article-content blockquote { margin: 1.5em 0; padding: 1em 1.5em; border-left: 4px solid #3b82f6; background-color: #f3f4f6; color: #4b5563; border-radius: 0 0.25rem 0.25rem 0; font-style: italic; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content ul, .article-content ol { margin-bottom: 1.5em; padding-left: 1.5em; }
.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }
.article-content li { margin-bottom: 0.5em; }
.article-content img { max-width: 100%; height: auto; border-radius: 0.25rem; margin: 1.5em auto; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); cursor: zoom-in; display: block; }
.article-content hr { margin: 2em 0; border: 0; border-top: 1px solid #e5e7eb; }
.article-content code { background-color: #f3f4f6; padding: 0.2em 0.4em; border-radius: 0.25rem; font-size: 0.875em; color: #ef4444; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.article-content pre[class*="language-"] { border-radius: 0.375rem; margin: 1.5em 0; padding: 1em; font-size: 0.875em; }
.article-content pre code { background-color: transparent; padding: 0; color: inherit; border-radius: 0; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: 0.875em; }
.article-content th, .article-content td { border: 1px solid #e5e7eb; padding: 0.75em 1em; }
.article-content th { background-color: #f9fafb; font-weight: 600; text-align: left; }

.dark .article-content { color: #d1d5db; }
.dark .article-content h1, .dark .article-content h2, .dark .article-content h3, .dark .article-content h4, .dark .article-content h5, .dark .article-content h6 { color: #f3f4f6; }
.dark .article-content h2 { border-bottom-color: #374151; }
.dark .article-content blockquote { background-color: #1f2937; color: #9ca3af; border-left-color: #3b82f6; }
.dark .article-content a { color: #60a5fa; border-bottom-color: #60a5fa; }
.dark .article-content a:hover { color: #93c5fd; }
.dark .article-content hr { border-top-color: #374151; }
.dark .article-content code { background-color: #374151; color: #f87171; }
.dark .article-content th, .dark .article-content td { border-color: #374151; }
.dark .article-content th { background-color: #1f2937; }