@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: transparent;
    /* Changed from #f9fafb so the WebGL underlay shows fully */
    color: #e5e7eb;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Deep Well 游戏卡片特效 */
.deep-well-card {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #f3f4f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deep-well-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* 筛选按钮样式 */
.filter-btn {
    transition: all 0.2s;
}

.filter-btn.active {
    background-color: #4f46e5;
    color: white;
    border-color: #4f46e5;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* Markdown 样式 */
.markdown-body {
    color: #334155;
    font-size: 1rem;
}

.markdown-body h1 {
    font-size: 2em;
    font-weight: 800;
    margin: 1em 0 0.5em;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.markdown-body h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin: 1.5em 0 0.5em;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.3em;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.markdown-body h3 {
    font-size: 1.25em;
    font-weight: 700;
    margin: 1.5em 0 0.5em;
    color: #1e293b;
}

.markdown-body p {
    margin-bottom: 1.25em;
    line-height: 1.8;
    color: #475569;
}

.markdown-body ul,
.markdown-body ol {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1.25em;
    color: #475569;
}

.markdown-body pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 1.25em;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin-bottom: 1.5em;
    border: 1px solid #1e293b;
    box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
}

.markdown-body code {
    background: #f1f5f9;
    color: #4f46e5;
    padding: 0.2em 0.4em;
    border-radius: 0.375rem;
    font-size: 0.875em;
    font-weight: 500;
}

.markdown-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-weight: normal;
}

.markdown-body img {
    border-radius: 0.75rem;
    max-width: 100%;
    margin: 2em auto;
    display: block;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border: 1px solid #e2e8f0;
}

.markdown-body a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.markdown-body a:hover {
    color: #3730a3;
    text-decoration: underline;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}