/* Custom Styles for 独立站Neo */
/* Tailwind CSS is used for most styling. This file is for custom overrides or specific animations. */

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Article Content Styles */
.content h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    scroll-margin-top: 100px;
}

.content h3 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
    scroll-margin-top: 100px;
}

.content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: #374151;
}

.content ul {
    list-style-type: disc;
    padding-left: 1.625rem;
    margin-bottom: 1.25rem;
    color: #374151;
}

.content ol {
    list-style-type: decimal;
    padding-left: 1.625rem;
    margin-bottom: 1.25rem;
    color: #374151;
}

.content li {
    margin-bottom: 0.5rem;
}

.content blockquote {
    border-left-width: 4px;
    border-color: #e5e7eb;
    padding-left: 1rem;
    font-style: italic;
    color: #4b5563;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #f9fafb;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.content table {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-collapse: collapse;
}

.content th {
    border-bottom-width: 2px;
    border-color: #e5e7eb;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #111827;
}

.content td {
    border-bottom-width: 1px;
    border-color: #e5e7eb;
    padding: 0.75rem;
    color: #4b5563;
}

.content figure {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* TOC Styles */
.toc-link {
    display: block;
    color: #6b7280;
    padding: 0.25rem 0;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    text-decoration: none;
    font-size: 0.95rem;
}

.toc-link:hover {
    color: #2563eb;
    border-left-color: #e5e7eb;
}

.toc-link.active {
    color: #2563eb;
    border-left-color: #2563eb;
    font-weight: 500;
    background-color: #eff6ff;
}

.toc-link.level-3 {
    padding-left: 1.5rem;
    font-size: 0.85rem;
}
