/* 左侧媒体分享工具栏的响应式样式 */
@media (max-width: 1023px) {
    .sidebar-right-container,
    .sidebar-left-container {
        display: none !important;
    }
    .main-content-grid {
        grid-template-columns: 1fr !important;
        max-width: 890px;
        margin: 0 auto;
    }
}

/* 使用系统字体的元素 */
.system-fonts {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.system-fonts * {
    font-family: inherit;
}

/* 文章内容样式 */
.prose {
    @apply text-gray-900 dark:text-gray-100;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.prose h2 {
    @apply text-xl font-bold text-gray-900 mb-4 dark:text-white;
}

.prose h3 {
    @apply text-lg font-semibold text-gray-900 mb-3 dark:text-white;
}

.prose p {
    @apply text-gray-700 dark:text-gray-300 mb-4;
    line-height: 1.9;
    letter-spacing: 0.02em;
}

.prose a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.prose.dark a {
    color: #60a5fa;
}

.prose.dark a:hover {
    color: #93c5fd;
}

.prose img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 0.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin: 1.5rem auto;
    display: block;
}


.prose blockquote {
    @apply border-l-4 border-primary pl-4 italic text-gray-700 dark:text-gray-300;
}

.prose code {
    @apply bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded text-sm font-mono;
}

.prose pre {
    @apply bg-gray-900 text-white rounded-lg p-4 overflow-x-auto shadow-md;
}

.prose ul, .prose ol {
    @apply pl-6 mb-4;
}

.prose li {
    @apply mb-2;
}

.prose table {
    @apply w-full border-collapse;
}

.prose th, .prose td {
    @apply border border-gray-200 dark:border-gray-700 px-4 py-2;
}

.prose th {
    @apply bg-gray-50 dark:bg-gray-800 font-semibold;
}
