/* ============================================================
   简约 16:9 主题 — 跨区 & AI 辅助研发
   画布：1280 × 720，center: true
   ============================================================ */

/* ---------- 全局字体导入 ---------- */
@import url('https://fonts.font.im/css?family=Inter:400,500,600|JetBrains+Mono');

/* ---------- 幻灯片容器 ---------- */
.reveal .slides {
    text-align: left;
    font-weight: 400;
    background: #ffffff;
}

/* ---------- 页码 ---------- */
.reveal .slide-number {
    font-size: 18px;
    font-family: 'Inter', 'PingFang SC', 'Helvetica Neue', sans-serif;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 3px 8px;
    color: #666;
    right: 16px;
    bottom: 12px;
}

/* ---------- 进度条 ---------- */
.reveal .progress {
    height: 3px;
    background: #e5e7eb;
    color: #1d4ed8;
}

/* ---------- 标题层级 ---------- */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
    font-family: 'Inter', 'PingFang SC', 'Helvetica Neue', 'SimHei', sans-serif;
    font-weight: 600;
    text-align: left;
    color: #111827;
    margin: 0 0 20px 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* H1：章节标题页，大而居中 */
.reveal h1 {
    font-size: 52px;
    font-weight: 700;
    text-align: center;
    color: #111827;
    padding: 0 40px;
}

/* H2：内容页标题，带左侧蓝色竖线 */
.reveal h2 {
    font-size: 34px;
    font-weight: 600;
    padding: 0 0 12px 24px;
    border-left: 5px solid #1d4ed8;
    border-bottom: none;
    color: #111827;
    margin-bottom: 24px;
}

.reveal h3 {
    font-size: 24px;
    font-weight: 500;
    color: #374151;
    padding: 0 24px;
}

/* ---------- 正文文字 ---------- */
.reveal p,
.reveal li,
.reveal center {
    font-size: 26px;
    font-family: 'Inter', 'PingFang SC', 'Helvetica Neue', 'SimSun', sans-serif;
    color: #1f2937;
    line-height: 1.65;
}

.reveal p,
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5 {
    padding: 0 40px 0 24px;
}

/* H2 的 padding 已在上面单独定义，覆盖掉通用 padding */
.reveal h2 {
    padding: 0 0 12px 24px;
}

/* ---------- 列表 ---------- */
.reveal ul {
    display: block;
    margin: 0 40px 0 48px;
}

.reveal ol {
    display: block;
    margin: 0 40px 0 48px;
}

.reveal li {
    margin-top: 12px;
}

.reveal li + li {
    margin-top: 12px;
}

/* ---------- 引用块 ---------- */
.reveal blockquote {
    background: #f0f4ff;
    border-left: 4px solid #1d4ed8;
    border-radius: 0 6px 6px 0;
    padding: 12px 20px;
    margin: 16px 24px 16px 24px;
    box-shadow: none;
    width: auto;
}

.reveal blockquote p,
.reveal blockquote li {
    font-family: 'Inter', 'PingFang SC', 'Helvetica Neue', sans-serif;
    color: #1e40af;
    font-size: 24px;
    padding: 0;
    margin: 0;
}

.reveal .middle blockquote {
    text-align: center;
    background: none;
    border: none;
    color: #1d4ed8;
    box-shadow: none;
}

.reveal .middle blockquote p {
    color: #1d4ed8;
    font-size: 26px;
}

/* ---------- 代码块 ---------- */
.reveal pre {
    font-size: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 20px;
    margin: 0 24px 0 24px;
    box-shadow: none;
    width: auto;
}

.reveal pre code {
    max-height: none;
    color: #1e293b;
}

.reveal code {
    font-family: 'JetBrains Mono', 'Inconsolata', 'Menlo', monospace;
    font-size: 0.9em;
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 3px;
    color: #0f172a;
}

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

/* ---------- 表格 ---------- */
.reveal table {
    font-size: 24px;
    font-family: 'Inter', 'PingFang SC', 'Helvetica Neue', sans-serif;
    margin: 12px auto;
    border-collapse: collapse;
    width: 90%;
}

.reveal th {
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 16px;
}

.reveal td {
    padding: 8px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
}

.reveal tr:nth-child(even) td {
    background: #f8fafc;
}

.reveal tr:nth-child(odd) td {
    background: #ffffff;
}

/* ---------- H1 页垂直居中辅助（.middle） ---------- */
.reveal .middle {
    height: 720px;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    flex-direction: column;
}

.reveal .center {
    text-align: center;
}

/* ---------- 图片 ---------- */
section .center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.reveal .float-right {
    float: right;
    margin-left: 20px;
}

/* ---------- 分隔线（<hr> 在 jyyslide 中做空行） ---------- */
.reveal hr {
    border: none;
    border-top: 1px solid transparent;
    margin: 14px 0;
}

/* ---------- 链接 ---------- */
.reveal a {
    color: #1d4ed8;
    text-decoration: none;
}

.reveal a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ---------- 作者信息 ---------- */
.reveal .author-block {
    margin: 60px 0 30px 0;
    text-align: center;
}

.reveal .author-block p,
.reveal .author-affiliation p {
    font-family: 'Inter', 'PingFang SC', sans-serif;
    margin-block-start: 0;
    margin-block-end: 0;
}

.reveal .author-affiliation {
    display: inline-block;
    font-size: 90%;
}

.reveal .author-affiliation img {
    margin: 12px 0 0 0;
}

/* ---------- Fragment 动画 ---------- */
.reveal .fragment {
    opacity: 0;
}

.reveal .fragment.visible {
    opacity: 1;
}