/* AiPy 小百科 - 企业级 AI 应用开发知识中心 */
/* 基础样式重置 */
* {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizelegibility;
}
/* ========== 首页标题优化 ========== */
.markdown-section h1:first-of-type {
    font-size: 2.2em !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-top: 0.5em !important;
    margin-bottom: 0.3em !important;
    letter-spacing: -0.02em !important;
}
.markdown-section h1:first-of-type + blockquote {
    border-left: 4px solid #2563eb !important;
    background: #f0f7ff !important;
    padding: 12px 20px !important;
    border-radius: 4px !important;
    margin-bottom: 1.5em !important;
}
.markdown-section h1:first-of-type + blockquote p {
    font-size: 1.1em !important;
    color: #475569 !important;
    margin: 0 !important;
}
/* 暗色模式适配 */
[data-theme="dark"] .markdown-section h1:first-of-type {
    color: #e9ecef !important;
}
[data-theme="dark"] .markdown-section h1:first-of-type + blockquote {
    background: #1e293b !important;
    border-left-color: #339af0 !important;
}
[data-theme="dark"] .markdown-section h1:first-of-type + blockquote p {
    color: #adb5bd !important;
}
/* ========== Logo 样式 ========== */
.logo img {
    height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
}
/* ========== 表格样式优化 ========== */
.markdown-section table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    font-size: 0.95em;
}
.markdown-section table th {
    background: #f1f5f9;
    font-weight: 600;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.markdown-section table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
}
.markdown-section table tr:nth-child(even) {
    background: #f8fafc;
}
[data-theme="dark"] .markdown-section table th {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .markdown-section table td {
    border-color: #334155;
}
[data-theme="dark"] .markdown-section table tr:nth-child(even) {
    background: #1a1d23;
}
/* ========== 页脚样式 ========== */
.page-footer {
    text-align: center !important;
    padding: 20px 0 !important;
    font-size: 0.85em !important;
    color: #64748b !important;
    border-top: 1px solid #e2e8f0 !important;
    margin-top: 2em !important;
}
.page-footer a {
    color: #2563eb !important;
    text-decoration: none !important;
}
.page-footer a:hover {
    text-decoration: underline !important;
}
[data-theme="dark"] .page-footer {
    color: #94a3b8 !important;
    border-top-color: #334155 !important;
}
[data-theme="dark"] .page-footer a {
    color: #339af0 !important;
}
/* ========== 链接样式 ========== */
.markdown-section a {
    color: #2563eb;
    text-decoration: none;
}
.markdown-section a:hover {
    text-decoration: underline;
}
[data-theme="dark"] .markdown-section a {
    color: #339af0;
}
/* ========== 代码块样式 ========== */
.markdown-section pre {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
[data-theme="dark"] .markdown-section pre {
    border-color: #334155;
}
/* ========== 标题层级优化 ========== */
.markdown-section h2 {
    font-size: 1.5em !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-top: 1.5em !important;
    padding-bottom: 0.3em !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.markdown-section h3 {
    font-size: 1.2em !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-top: 1.2em !important;
}
[data-theme="dark"] .markdown-section h2 {
    color: #e9ecef !important;
    border-bottom-color: #334155 !important;
}
[data-theme="dark"] .markdown-section h3 {
    color: #cbd5e1 !important;
}
/* ========== 分隔线样式 ========== */
.markdown-section hr {
    height: 1px !important;
    background: #e2e8f0 !important;
    border: none !important;
    margin: 2em 0 !important;
}
[data-theme="dark"] .markdown-section hr {
    background: #334155 !important;
}
/* ========== 导航栏样式 ========== */
.book-summary {
    background: #f8fafc !important;
}
.book-summary ul.summary li.active > a {
    color: #2563eb !important;
    font-weight: 600 !important;
    border-left: 3px solid #2563eb !important;
}
[data-theme="dark"] .book-summary {
    background: #181a1e !important;
}
[data-theme="dark"] .book-summary ul.summary li.active > a {
    color: #339af0 !important;
    border-left-color: #339af0 !important;
}
/* ========== 自适应优化 ========== */
@media (max-width: 768px) {
    .markdown-section h1:first-of-type {
        font-size: 1.6em !important;
    }
    .markdown-section table {
        font-size: 0.85em;
    }
}
