@font-face {
    font-family: 'ShiWeiYongChunHeiCuTi';
    src: url('/static/fonts/shiweiyongchunheicuti.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TongWenXinZiDianTi';
    src: url('/static/fonts/tongwenxinzidianti.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prose {
    color: #374151;
    line-height: 1.75;
}

.prose h1 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #2ECC71;
    margin-bottom: 0.75rem;
}

.prose h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.prose h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #2ECC71;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 0.75rem;
    text-indent: 2em;
}

.prose ul, .prose ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.375rem;
}

.prose blockquote {
    border-left: 3px solid #2ECC71;
    padding-left: 0.75rem;
    margin: 0.75rem 0;
    color: #6b7280;
}

.prose code {
    background: #f3f4f6;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.prose pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 0.75rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.prose pre code {
    background: transparent;
    padding: 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
}

.prose th, .prose td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.prose th {
    background: #f9fafb;
    font-weight: 500;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0.75rem 0;
}

.prose a {
    color: #2ECC71;
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

.font-english-primary {
    font-family: 'ShiWeiYongChunHeiCuTi', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.font-english-secondary {
    font-family: 'TongWenXinZiDianTi', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.font-english-all {
    font-family: 'ShiWeiYongChunHeiCuTi', 'TongWenXinZiDianTi', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.english-content .prose h1,
.english-content .prose h2,
.english-content .prose h3 {
    font-family: 'ShiWeiYongChunHeiCuTi', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.english-content .prose p,
.english-content .prose li,
.english-content .prose td,
.english-content .prose th {
    font-family: 'TongWenXinZiDianTi', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.english-content .content-title {
    font-family: 'ShiWeiYongChunHeiCuTi', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.english-content .content-body {
    font-family: 'TongWenXinZiDianTi', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
