.special-page {
    background-color: #f0f0f0;
    color: #333;
}

/* ===== 侧边栏排版：三级结构统一（组 → 子组 → 条目） ===== */
/* 统一字号：侧边栏所有文字同尺寸，层级仅靠字重/颜色/缩进区分 */
.sidebar-nav li,
.sidebar-nav li > p,
.sidebar-nav li > strong,
.sidebar-nav a,
.sidebar-nav .section-link {
    font-size: 15px !important;
}

.sidebar-nav {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        "Helvetica Neue", Arial, sans-serif;
    line-height: 1.3;
    padding: 8px 10px 32px;
    box-sizing: border-box;
}

.sidebar-nav ul {
    margin: 0;
    padding-left: 12px;
}

.sidebar-nav > ul {
    padding-left: 0;
}

.sidebar-nav li {
    margin: 0;
    line-height: 1.25;
}

.sidebar-nav ul ul {
    padding-left: 12px;
}

.sidebar-nav ul ul ul {
    padding-left: 10px;
}

.sidebar-nav li > p,
.sidebar-nav li > strong {
    margin: 0;
}

/* 顶级分组标题（如 Analysis Modules / 分析模块） */
.sidebar-nav > ul > li > p,
.sidebar-nav > ul > li > strong {
    display: block;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #303f9f;
    padding: 12px 0 3px;
}

/* 分组标题与其条目列表之间留出呼吸空间 */
.sidebar-nav > ul > li > p + ul,
.sidebar-nav > ul > li > strong + ul,
.sidebar-nav ul ul > li > p + ul,
.sidebar-nav ul ul > li > strong + ul {
    margin-top: 4px;
}

/* 二级类型子组标题（如 Genetic Parameters / Association Mapping） */
.sidebar-nav ul ul > li > p,
.sidebar-nav ul ul > li > strong {
    display: block;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #4b5563;
    padding: 10px 0 3px;
}

/* 所有层级链接统一字号；悬停时轻微放大 */
.sidebar-nav a,
div.sidebar-nav > ul > li > a {
    display: block;
    font-weight: 400;
    line-height: 1.3;
    color: #24292f;
    padding: 3px 0 3px 10px;
    border-left: 2px solid transparent;
    border-radius: 4px;
    white-space: normal;
    overflow-wrap: break-word;
    overflow: visible;
    text-overflow: clip;
    transform-origin: left center;
    transition: color 0.15s ease, border-color 0.15s ease,
        transform 0.15s ease, background-color 0.15s ease;
}

.sidebar-nav a:hover {
    color: #303f9f;
    background-color: rgba(63, 81, 181, 0.08);
    transform: translateX(3px);
}

.sidebar-nav li.active > a:not(.section-link),
.sidebar-nav a.is-page-current {
    color: #3f51b5;
    font-weight: 600;
    border-left-color: #3f51b5;
    border-right: 2px solid #3f51b5;
}

/* docsify 会误把最后一个小节链接的 li 标成 active：还原其样式，仅由 is-current 决定小节高亮 */
.sidebar-nav li.active > a.section-link:not(.is-current) {
    color: #57606a;
    font-weight: 400;
    border-right: 2px solid transparent;
    border-left-color: transparent;
}

/* 侧边栏不出现横向滚动条（悬停位移/长词折行都不会溢出） */
.sidebar {
    overflow-x: hidden;
}

/* subMaxLevel 生成的页内目录（h2/h3）与三级条目同尺寸，避免大小不一 */
.sidebar-nav .section-link,
.sidebar-nav ul ul ul a,
.sidebar-nav ul ul ul p {
    font-weight: 400;
    line-height: 1.3;
    color: #57606a;
    padding: 2px 0 2px 10px;
    white-space: normal;
    overflow-wrap: break-word;
}

.sidebar-nav .section-link:hover,
.sidebar-nav ul ul ul a:hover {
    color: #3f51b5;
}

/* 滚动正文时，当前小节在侧边栏的高亮 */
.sidebar-nav a.section-link.is-current {
    color: #303f9f;
    font-weight: 600;
    background-color: rgba(63, 81, 181, 0.10);
    border-left-color: #3f51b5;
}

article {
    font-size: 15.5px;
    color: black;
    line-height: 1.75; /* 提升长文可读性 */
}

code {
    font-size: 14px !important;
}

.markdown-section pre > code {
    padding: 5px;
}

/* ===== 缓存提示横幅 ===== */
.cache-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 16px;
    background-color: #fff3cd;
    color: #856404;
    border-bottom: 1px solid #ffeeba;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cache-banner[hidden] {
    display: none;
}

.cache-banner-text {
    line-height: 1.4;
}

.cache-banner-btn {
    display: inline-block;
    padding: 4px 16px;
    background-color: #f0ad4e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.cache-banner-btn:hover {
    background-color: #ec971f;
}

.cache-banner-btn:disabled {
    background-color: #d9a25d;
    cursor: not-allowed;
}

.cache-banner-btn:focus-visible {
    outline: 2px solid #8a4d0f;
    outline-offset: 2px;
}

/* ===== 中文字体栈（跨平台统一中文渲染） ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        "Helvetica Neue", Arial, sans-serif;
}

/* ===== 正文排版优化 ===== */
.markdown-section {
    font-size: 16px;
    line-height: 1.7;
    color: #24292e;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3 {
    line-height: 1.35;
    margin-top: 1.4em;
    margin-bottom: 0.6em;
}

.markdown-section h1 {
    font-size: 1.9em;
    border-bottom: 2px solid #3f51b5;
    padding-bottom: 0.2em;
}

.markdown-section h2 {
    font-size: 1.45em;
}

.markdown-section h3 {
    font-size: 1.2em;
}

/* ===== 表格可读性：移动端横向滚动 + 悬停高亮 ===== */
.markdown-section table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

.markdown-section table th {
    background-color: #f0f2f8;
    border-bottom: 2px solid #3f51b5;
    font-weight: 600;
    white-space: nowrap;
}

.markdown-section table td,
.markdown-section table th {
    padding: 8px 12px;
    border: 1px solid #e1e4e8;
}

.markdown-section table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.markdown-section table tbody tr:hover {
    background-color: #f0f4ff;
}

/* 超宽文本块（如示例数据）允许折行 */
.markdown-section pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    line-height: 1.5;
}

/* ===== 图片响应式 ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== 页码底部前后导航样式统一 ===== */
.pager-nav {
    font-size: 14px;
    color: #888;
    margin-top: 2em;
    padding-top: 0.8em;
    border-top: 1px solid #eaecef;
}

/* ===== 旧版本下载表格（Older Releases，Julia oldreleases 风格） ===== */
.release-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    margin: 8px 0;
}

.release-history-table th,
.release-history-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.release-history-table thead th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.release-history-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.release-history-table tbody tr:hover {
    background-color: #f0f6ff;
}

.release-history-table .release-sha {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: inherit;
    word-break: break-all;
}

.release-history-table td a {
    white-space: nowrap;
}

/* <details> 折叠区摘要样式 */
.markdown-section details {
    margin: 8px 0;
}

.markdown-section details > summary {
    cursor: pointer;
    font-weight: 600;
    color: #3f51b5;
    user-select: none;
}

.markdown-section details > summary:hover {
    text-decoration: underline;
}

/* ===== 封面页 Support Center 按钮悬停弹出公众号二维码 ===== */
section.cover .cover-main > p:last-child a[href*="Support"] {
    position: relative;
}

section.cover .cover-main > p:last-child a[href*="Support"]::after {
    content: "";
    position: absolute;
    top: calc(100% + 12px);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: #ffffff url("/imgs/qrcode_for_gh_137dbfd3f854_860.jpg") no-repeat center;
    background-size: contain;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

section.cover .cover-main > p:last-child a[href*="Support"]:hover::after,
section.cover .cover-main > p:last-child a[href*="Support"]:focus::after {
    opacity: 1;
    visibility: visible;
}

/* ===== 封面页（首页）：方案 H — 左对齐 + 品牌竖线，动态基因组序列背景 ===== */
section.cover {
    position: relative;
    overflow: hidden;
    background-color: #f6f9ff;
    background-image:
        radial-gradient(900px 480px at 14% -6%, rgba(63, 81, 181, 0.16), transparent 60%),
        radial-gradient(780px 430px at 88% 108%, rgba(124, 140, 240, 0.13), transparent 60%);
    justify-content: center;
}

/* 顶部序列：横向缓慢流动 */
@keyframes genomeScrollX {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -800px 0;
    }
}

/* 底部序列：纵向数据流 */
@keyframes genomeScrollY {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 -96px;
    }
}

section.cover::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 9%;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='150'%3E%3Ctext x='0' y='104' textLength='800' lengthAdjust='spacingAndGlyphs' font-family='ui-monospace, SFMono-Regular, Menlo, Consolas, monospace' font-size='64' fill='%233f51b5' fill-opacity='0.10'%3EATCGGCTAAGCTTAGCGATCGTTACGGCATAGCTAGCTAGGCTAACGTTCGATCG%3C/text%3E%3C/svg%3E");
    background-size: 800px 150px;
    background-repeat: repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    animation: genomeScrollX 64s linear infinite;
    pointer-events: none;
    z-index: 0;
}

section.cover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6%;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='96'%3E%3Ctext x='0' y='68' textLength='480' lengthAdjust='spacingAndGlyphs' font-family='ui-monospace, SFMono-Regular, Menlo, Consolas, monospace' font-size='42' fill='%237c8cf0' fill-opacity='0.16'%3EACGTTAGCGATCGGCTAAGCTTAGCGATCGTTACGGCATAGCTAGCTA%3C/text%3E%3C/svg%3E");
    background-size: 480px 96px;
    background-repeat: repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    animation: genomeScrollY 42s linear infinite;
    pointer-events: none;
    z-index: 0;
}

section.cover .cover-main {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        "Helvetica Neue", Arial, sans-serif;
    display: grid;
    grid-template-columns: auto minmax(0, auto);
    justify-content: center;
    align-items: center;
    column-gap: 30px;
    row-gap: 0;
    max-width: min(1160px, 94vw);
    margin: 0 auto;
    padding: 0 32px;
    text-align: left;
    position: relative;
    z-index: 1;
}

/* 入场动画：Logo → 标题 → 标语 → 按钮 依次浮现 */
@keyframes coverRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo 缓慢浮动 */
@keyframes coverFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

section.cover.show .cover-main > * {
    animation: coverRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

section.cover.show .cover-main > h1 {
    animation-delay: 0.08s;
}

section.cover.show .cover-main > p {
    animation-delay: 0.16s;
}

section.cover.show .cover-main > p:last-child {
    animation-delay: 0.24s;
}

/* Logo：置于文字左侧，垂直居中 */
section.cover .cover-main > p:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
    line-height: 0;
    text-align: left;
    align-self: center;
}

section.cover .cover-main > p:first-child img {
    width: 170px;
    margin-left: 0;
    filter: drop-shadow(0 12px 28px rgba(48, 63, 159, 0.20));
    animation: coverFloat 7s ease-in-out infinite;
    transition: filter 0.3s ease;
}

section.cover .cover-main > p:first-child img:hover {
    filter: drop-shadow(0 16px 34px rgba(48, 63, 159, 0.30)) brightness(1.04);
}

/* 标题：文字列第 1 行，左侧品牌渐变竖线 */
section.cover .cover-main > h1 {
    grid-column: 2;
    grid-row: 1;
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    line-height: 1.24;
    font-weight: 300;
    letter-spacing: -0.015em;
    color: #0f172a;
    margin: 0;
    padding: 2px 0 6px 22px;
    border-left: 4px solid #3f51b5;
    border-image: linear-gradient(180deg, #3f51b5, #7c8cf0) 1;
    text-align: left;
}

/* Omi / G / A：仅标题内加粗 + 品牌色（无下划线）；标语保持常规字重 */
section.cover .cover-main > h1 strong,
section.cover .cover-main > h1 u {
    font-weight: 700;
    color: #303f9f;
    text-decoration: none;
    display: inline-block;
    transition: color 0.22s ease, transform 0.22s ease;
}

section.cover .cover-main > h1:hover strong,
section.cover .cover-main > h1:hover u,
section.cover .cover-main > h1 strong:hover,
section.cover .cover-main > h1 u:hover {
    color: #1f2fb0;
    transform: translateY(-2px);
}

/* 标语段：文字列第 2 行，与标题共用一条竖线；空间足够时整行显示，不足才换行 */
section.cover .cover-main > p:not(:first-child):not(:last-child) {
    grid-column: 2;
    grid-row: 2;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.85;
    font-weight: 400;
    color: #475569;
    max-width: none;
    text-wrap: balance;
    margin: 0;
    padding: 6px 0 6px 22px;
    border-left: 4px solid #3f51b5;
    border-image: linear-gradient(180deg, #3f51b5, #7c8cf0) 1;
    text-align: left;
}

/* 按钮组：整体居中，位置再下移 */
section.cover .cover-main > p:last-child {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin: 64px 0 0;
}

section.cover .cover-main > p:last-child a {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1px solid rgba(63, 81, 181, 0.35);
    color: #303f9f;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        background-color 0.18s ease, color 0.18s ease;
}

section.cover .cover-main > p:last-child a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(48, 63, 159, 0.18);
    background: #f5f7ff;
}

section.cover .cover-main > p:last-child a:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 8px rgba(48, 63, 159, 0.16);
}

/* 主按钮：Download */
section.cover .cover-main > p:last-child a[href*="Download"] {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #3f51b5, #5c6ff0);
    box-shadow: 0 8px 22px rgba(63, 81, 181, 0.35);
}

section.cover .cover-main > p:last-child a[href*="Download"]:hover {
    background: linear-gradient(135deg, #3546a5, #4f61df);
}

/* ===== 封面按钮层级与配色 ===== */
/* 1) 语言切换：最轻的文字型按钮 */
section.cover .cover-main > p:last-child a[href="/zh/"],
section.cover .cover-main > p:last-child a[href="#/zh/"],
section.cover .cover-main > p:last-child a[href="/README"],
section.cover .cover-main > p:last-child a[href="#/README"] {
    border-color: transparent;
    background: transparent;
    color: #64748b;
    box-shadow: none;
    padding: 12px 14px;
}

section.cover .cover-main > p:last-child a[href="/zh/"]:hover,
section.cover .cover-main > p:last-child a[href="#/zh/"]:hover,
section.cover .cover-main > p:last-child a[href="/README"]:hover,
section.cover .cover-main > p:last-child a[href="#/README"]:hover {
    color: #303f9f;
    background: rgba(63, 81, 181, 0.06);
    box-shadow: none;
}

/* 2) Getting Started：品牌淡填充 */
section.cover .cover-main > p:last-child a[href*="QuickStart"] {
    border-color: transparent;
    background: rgba(63, 81, 181, 0.12);
    color: #303f9f;
}

section.cover .cover-main > p:last-child a[href*="QuickStart"]:hover {
    background: rgba(63, 81, 181, 0.18);
}

/* 3) Support Center：白底描边 + 二维码悬浮 */
section.cover .cover-main > p:last-child a[href*="Support"] {
    border-color: rgba(63, 81, 181, 0.30);
    background: #ffffff;
    color: #3f51b5;
}

section.cover .cover-main > p:last-child a[href*="Support"]:hover {
    background: #f5f7ff;
}

/* 4) Download：主按钮（品牌渐变） — 规则见上 */

@media screen and (max-width: 768px) {
    section.cover .cover-main {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
        row-gap: 10px;
        padding: 0 20px;
    }

    section.cover .cover-main > p:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    section.cover .cover-main > p:first-child img {
        width: 140px;
    }

    section.cover .cover-main > h1 {
        grid-column: 1;
        grid-row: 2;
        padding-left: 16px;
    }

    section.cover .cover-main > p:not(:first-child):not(:last-child) {
        grid-column: 1;
        grid-row: 3;
        font-size: 16px;
        line-height: 1.7;
        padding-left: 16px;
    }

    section.cover .cover-main > p:last-child {
        grid-column: 1;
        grid-row: 4;
        justify-content: center;
        width: 100%;
        margin-top: 36px;
    }

    section.cover .cover-main > p:last-child a {
        padding: 10px 20px;
    }
}

/* ===== 正文内容：现代排版 ===== */
:root {
    --doc-brand: #3f51b5;
    --doc-brand-2: #7c8cf0;
    --doc-ink: #1f2937;
    --doc-text: #374151;
    --doc-muted: #6b7280;
    --doc-border: #e5e7eb;
    --doc-surface: #f8fafc;
}

::selection {
    background: rgba(63, 81, 181, 0.18);
}

.markdown-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 28px 64px;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--doc-text);
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4 {
    color: var(--doc-ink);
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.markdown-section h1 {
    font-size: 2rem;
    border-bottom: none;
    padding-bottom: 0.35em;
    background-image: linear-gradient(90deg, var(--doc-brand), var(--doc-brand-2));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 64px 3px;
}

.markdown-section h2 {
    font-size: 1.45rem;
    margin-top: 2.2em;
    padding-bottom: 0.25em;
    border-bottom: 1px solid var(--doc-border);
}

.markdown-section h3 {
    font-size: 1.18rem;
    margin-top: 1.8em;
}

.markdown-section a {
    color: var(--doc-brand);
    text-decoration: none;
    border-bottom: 1px solid rgba(63, 81, 181, 0.25);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.markdown-section a:hover {
    color: #2b3aa0;
    border-bottom-color: currentColor;
}

/* 行内代码 */
.markdown-section code {
    background: #eef2ff;
    color: #303f9f;
    padding: 0.15em 0.4em;
    border-radius: 6px;
    font-size: 0.9em !important;
}

/* 代码块：复制按钮浮动在边框上，不占内部空间 */
.markdown-section pre {
    position: relative;
    overflow: visible;
    background: var(--doc-surface);
    border: 1px solid var(--doc-border);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.markdown-section pre > code {
    background: transparent;
    color: #1f2937;
    padding: 0;
    font-size: 0.88em !important;
    /* 默认保留原始换行；命令行块由 .code-line 接管 */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
}

/* 带行号的命令行块：\n 由 .code-line 块呈现，避免双倍行距 */
.markdown-section pre.line-numbers > code {
    white-space: normal;
}

/* 引用块 */
.markdown-section blockquote {
    margin: 1.2em 0;
    padding: 10px 16px;
    border-left: 3px solid var(--doc-brand);
    border-radius: 0 10px 10px 0;
    background: linear-gradient(90deg, rgba(63, 81, 181, 0.06), transparent);
    color: #475569;
}

/* 表格：卡片化，按内容自适应宽度（不撑满整行） */
.markdown-section table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--doc-border);
    border-radius: 12px;
}

.markdown-section table th {
    background: #f1f5f9;
    border: none;
    border-bottom: 1px solid var(--doc-border);
    font-weight: 600;
    color: #111827;
}

.markdown-section table td {
    border: none;
    border-bottom: 1px solid var(--doc-border);
}

.markdown-section table tr:last-child td {
    border-bottom: none;
}

.markdown-section table tbody tr:nth-child(even) {
    background: #fbfcfe;
}

.markdown-section table tbody tr:hover {
    background: #f5f7ff;
}

/* 表格行更紧凑 */
.markdown-section table th,
.markdown-section table td {
    padding: 7px 10px;
    line-height: 1.45;
    vertical-align: top;
}

/* 表格与上下文的间距，使表格型参数条目与段落型观感一致 */
.markdown-section table {
    margin: 0.5em 0 1.15em;
}

/* 列表与图片 */
.markdown-section li {
    margin: 0.25em 0;
}

.markdown-section ul > li::marker {
    color: var(--doc-brand);
}

.markdown-section img {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.markdown-section hr {
    border: none;
    border-top: 1px solid var(--doc-border);
    margin: 2.4em 0;
}

/* 提示框（docsify-plugin-flexible-alerts） */
.markdown-section .alert {
    border-radius: 12px;
    border-left-width: 4px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

/* ===== 段落与参数条目间距：更紧凑 ===== */
.markdown-section p {
    margin: 0 0 0.7em;
}

/* 参数条目：与上方元素统一留白；与其解释仍紧贴（.param-line 由 JS 标记） */
.markdown-section p.param-line {
    margin-top: 1.25em;
    margin-bottom: 0.2em;
}

/* 紧跟标题的第一个参数：沿用标题自身间距，不再叠加 */
.markdown-section h1 + p.param-line,
.markdown-section h2 + p.param-line,
.markdown-section h3 + p.param-line,
.markdown-section h4 + p.param-line {
    margin-top: 0.35em;
}

/* 参数行 → 其解释 */
.markdown-section p.param-line + p {
    margin-top: 0.2em;
}

/* details 折叠区 */
.markdown-section details {
    border: 1px solid var(--doc-border);
    border-radius: 12px;
    padding: 10px 14px;
    background: #ffffff;
}

/* ===== 鼠标滚动特效：平滑滚动 + 进入视口淡入上移 ===== */
html {
    scroll-behavior: smooth;
}

.markdown-section .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.markdown-section .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .markdown-section .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ===== 鼠标跟随光晕（全局合成层：只更新 transform，不触发重绘） ===== */
body::before {
    content: "";
    position: fixed;
    left: -280px;
    top: -280px;
    width: 560px;
    height: 560px;
    pointer-events: none;
    background: radial-gradient(circle 560px at center,
            rgba(63, 81, 181, 0.08), transparent 45%);
    transform: translate3d(var(--mx, -9999px), var(--my, -9999px), 0);
    will-change: transform;
    z-index: 0;
}

/* 内容层置于光晕之上，保证文字清晰 */
.content,
.sidebar {
    z-index: 1;
}

section.cover {
    background-image:
        radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%),
            rgba(63, 81, 181, 0.12), transparent 45%),
        radial-gradient(900px 480px at 14% -6%, rgba(63, 81, 181, 0.16), transparent 60%),
        radial-gradient(780px 430px at 88% 108%, rgba(124, 140, 240, 0.13), transparent 60%);
}

@media (hover: none) {
    body::before {
        display: none;
    }
}

/* ===== 封面小游戏：碱基气泡 ===== */
@keyframes gamePop {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-34px) scale(1.15);
    }
}

@keyframes gameBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.cover-game-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.cover-bubble {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 17px;
    color: #ffffff;
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), var(--c, #3f51b5) 62%);
    border: 2px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    transition: transform 0.15s ease, opacity 0.18s ease;
}

.cover-bubble:hover {
    transform: translateY(-3px) scale(1.06);
}

.cover-bubble.is-pop {
    transform: scale(1.5);
    opacity: 0;
    pointer-events: none;
}

.cover-pop {
    position: absolute;
    font-weight: 700;
    font-size: 14px;
    color: #16a34a;
    pointer-events: none;
    animation: gamePop 0.6s ease-out both;
}

.cover-pop.is-minus {
    color: #dc2626;
}

.cover-game-chip {
    position: absolute;
    top: 22px;
    left: 22px;
    right: auto;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(63, 81, 181, 0.22);
    box-shadow: 0 6px 18px rgba(48, 63, 159, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 4;
}

.cover-game-chip.is-on {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.cover-game-chip .g-score {
    font-size: 18px;
    font-weight: 700;
    color: #303f9f;
    display: inline-block;
}

.cover-game-chip .g-score.bump {
    animation: gameBump 0.25s ease;
}

.cover-game-chip .g-best {
    font-size: 12px;
    color: #64748b;
}

.cover-game-chip .cover-game-exit,
.cover-game-chip .cover-game-pause {
    align-self: center;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 11px;
    line-height: 1;
    color: #64748b;
    background: rgba(100, 116, 139, 0.14);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cover-game-chip .cover-game-exit:hover {
    color: #ffffff;
    background: #ef4444;
}

.cover-game-chip .cover-game-pause:hover {
    color: #ffffff;
    background: #3f51b5;
}

.cover-game-paused {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #303f9f;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(63, 81, 181, 0.25);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(48, 63, 159, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 6;
}

.cover-game-paused.is-on {
    opacity: 1;
    visibility: visible;
}

.cover-game-toggle {
    position: absolute;
    right: 22px;
    bottom: 22px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #303f9f;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(63, 81, 181, 0.28);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(48, 63, 159, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        background-color 0.18s ease, color 0.18s ease;
    z-index: 4;
}

.cover-game-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(48, 63, 159, 0.22);
}

.cover-game-toggle.is-on {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #3f51b5, #5c6ff0);
}

@media screen and (max-width: 768px) {
    .cover-game-toggle {
        right: 16px;
        bottom: 16px;
        padding: 8px 13px;
        font-size: 12px;
    }

    .cover-game-chip {
        top: 16px;
        left: 16px;
        right: auto;
    }
}
/* ===== 小游戏：配对目标卡片 ===== */
@keyframes gameShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.cover-pair-target {
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 26px 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(63, 81, 181, 0.22);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(48, 63, 159, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease,
        box-shadow 0.18s ease, border-color 0.18s ease;
    z-index: 5;
}

.cover-pair-target.is-ok {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.45),
        0 16px 36px rgba(34, 197, 94, 0.35);
}

.cover-pair-target.is-bad {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.42),
        0 16px 36px rgba(239, 68, 68, 0.32);
}

.cover-pair-target.is-on {
    opacity: 1;
    visibility: visible;
}

.cover-pair-target .pt-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.cover-pair-target .pt-base {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.05;
}

.cover-pair-target .pt-hint {
    font-size: 12.5px;
    color: #64748b;
}

@keyframes gameBumpCenter {
    0% { transform: translateX(-50%) scale(1); }
    45% { transform: translateX(-50%) scale(1.07); }
    100% { transform: translateX(-50%) scale(1); }
}

.cover-pair-target.is-hit {
    animation: gameBumpCenter 0.25s ease;
}

/* 音效开关 */
.cover-sound-toggle {
    position: absolute;
    right: 26px;
    bottom: 74px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    border: 1px solid rgba(63, 81, 181, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(48, 63, 159, 0.14);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    z-index: 4;
}

.cover-sound-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(48, 63, 159, 0.20);
}

/* 小游戏选择菜单 */
.cover-game-menu {
    position: absolute;
    right: 22px;
    bottom: 120px;
    width: 252px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(63, 81, 181, 0.20);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    display: none;
    z-index: 5;
}

.cover-game-menu.is-on {
    display: block;
}

.cover-game-menu .m-title {
    font-size: 12px;
    color: #64748b;
    margin: 2px 4px 8px;
}

.cover-game-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 10px;
    margin: 0 0 6px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.cover-game-menu button:last-child {
    margin-bottom: 0;
}

.cover-game-menu button:hover {
    background: #eef2ff;
    border-color: rgba(63, 81, 181, 0.25);
    transform: translateY(-1px);
}

.cover-game-menu button b {
    display: block;
    font-size: 13.5px;
    color: #303f9f;
}

.cover-game-menu button i {
    display: block;
    font-style: normal;
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}

/* 碱基俄罗斯方块 */
.cover-tetris {
    position: absolute;
    left: 50%;
    top: 15%;
    transform: translateX(-50%);
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(63, 81, 181, 0.22);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(48, 63, 159, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 5;
}

.cover-tetris.is-on {
    opacity: 1;
    visibility: visible;
}

.cover-tetris canvas {
    display: block;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.cover-tetris-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.cover-tetris-controls button {
    width: 46px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 16px;
    color: #303f9f;
    background: #ffffff;
    border: 1px solid rgba(63, 81, 181, 0.25);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.12s ease;
}

.cover-tetris-controls button:hover {
    background: #eef2ff;
    transform: translateY(-1px);
}

.cover-tetris-hint {
    margin-top: 8px;
    font-size: 11.5px;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .cover-game-menu {
        right: 16px;
        bottom: 108px;
        width: 224px;
    }

    .cover-tetris canvas {
        max-width: 70vw;
        height: auto;
    }

    .cover-tetris-controls button {
        width: 40px;
        height: 36px;
        font-size: 14px;
    }
}

/* 计时结束结算 */
.cover-game-over {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    font-size: 18px;
    font-weight: 700;
    color: #303f9f;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(63, 81, 181, 0.25);
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(48, 63, 159, 0.22);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 6;
}

.cover-game-over .go-text {
    font-size: 16px;
    text-align: center;
    max-width: 74vw;
}

.cover-game-over .cover-go-again {
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #3f51b5;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

.cover-game-over .go-actions {
    display: flex;
    gap: 10px;
}

.cover-game-over .cover-go-quit {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #3f51b5;
    background: #eef2ff;
    border: 1px solid rgba(63, 81, 181, 0.3);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

.cover-game-over .cover-go-quit:hover {
    background: #e0e7ff;
    transform: translateY(-1px);
}

.cover-game-over .cover-go-again:hover {
    background: #303f9f;
    transform: translateY(-1px);
}

.cover-game-over.is-on {
    opacity: 1;
    visibility: visible;
}

.cover-bubble.is-ok {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.55),
        0 0 22px rgba(34, 197, 94, 0.7);
}

/* 配对成功：撕裂碎片 + 冲击环 */
@keyframes shardFly {
    from {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.4) rotate(var(--rot, 0deg));
        opacity: 0;
    }
}

@keyframes ringOut {
    from {
        transform: scale(0.55);
        opacity: 0.9;
    }
    to {
        transform: scale(1.7);
        opacity: 0;
    }
}

.cover-shard {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: shardFly 0.62s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    z-index: 3;
}

.cover-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(34, 197, 94, 0.75);
    pointer-events: none;
    animation: ringOut 0.55s ease-out forwards;
    z-index: 3;
}

.cover-bubble.is-wrong {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.5),
        0 0 22px rgba(239, 68, 68, 0.65);
    animation: gameShake 0.3s ease;
}

@media screen and (max-width: 768px) {
    .cover-pair-target .pt-base {
        font-size: 42px;
    }

    .cover-game-over {
        font-size: 15px;
        padding: 12px 18px;
        width: 82vw;
        text-align: center;
    }

    .cover-sound-toggle {
        right: 18px;
        bottom: 64px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

#back-to-top {
    position: fixed;
    right: 24px;
    bottom: 28px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #3f51b5, #5c6ff0);
    box-shadow: 0 8px 22px rgba(63, 81, 181, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease,
        visibility 0.2s ease, box-shadow 0.2s ease;
    z-index: 30;
}

#back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

#back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(63, 81, 181, 0.45);
}

#back-to-top:active {
    transform: scale(0.95);
}

@media screen and (max-width: 768px) {
    #back-to-top {
        right: 16px;
        bottom: 20px;
        width: 38px;
        height: 38px;
    }
}

/* ===== 代码复制按钮：小尺寸、悬停时浮现在代码框上边框 ===== */
.docsify-copy-code-button {
    font-size: 12px !important;
    line-height: 1 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    letter-spacing: 0 !important;
    top: 0 !important;
    right: 10px !important;
    transform: translateY(-50%);
    background: #ffffff !important;
    color: #303f9f !important;
    border: 1px solid var(--doc-border) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 2;
}

.docsify-copy-code-button span,
.docsify-copy-code-button .label {
    font-size: 12px !important;
    line-height: 1.2 !important;
}

.markdown-section pre:hover .docsify-copy-code-button,
.docsify-copy-code-button:focus,
.docsify-copy-code-button:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

/* 触屏设备没有 hover：常显以便点击 */
@media (hover: none) {
    .docsify-copy-code-button {
        opacity: 0.9;
        pointer-events: auto;
    }
}

/* ===== 代码行号（仅命令行代码块；与自动折行兼容） ===== */
.markdown-section pre.line-numbers > code {
    counter-reset: code-line;
    display: block;
}

.markdown-section .code-line {
    display: block;
    position: relative;
    padding-left: 2em;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.markdown-section .code-line::before {
    counter-increment: code-line;
    content: counter(code-line);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5em;
    text-align: right;
    color: #9aa4b2;
    font-size: 0.85em;
    user-select: none;
    pointer-events: none;
}

/* ===== 自适应布局：侧边栏宽度与正文白边随窗口缩放 ===== */
:root {
    --doc-sidebar-w: 288px;
    --doc-content-max: 1180px;
    --doc-gutter: 28px;
}

@media screen and (min-width: 769px) {
    .sidebar {
        width: var(--doc-sidebar-w);
    }

    .sidebar-toggle {
        width: calc(var(--doc-sidebar-w) - 16px);
    }

    .content {
        left: var(--doc-sidebar-w);
    }

    body.close .sidebar {
        transform: translateX(calc(-1 * var(--doc-sidebar-w)));
    }

    .markdown-section {
        max-width: min(100%, var(--doc-content-max));
        padding-top: clamp(20px, 2.2vw, 36px);
        padding-right: var(--doc-gutter);
        padding-bottom: clamp(48px, 5vw, 80px);
        padding-left: var(--doc-gutter);
    }
}

@media screen and (min-width: 769px) and (max-width: 1199px) {
    :root {
        --doc-sidebar-w: 276px;
        --doc-content-max: 100%;
        --doc-gutter: 22px;
    }
}

@media screen and (min-width: 1200px) and (max-width: 1599px) {
    :root {
        --doc-sidebar-w: 332px;
        --doc-content-max: 100%;
        --doc-gutter: 28px;
    }
}

@media screen and (min-width: 1600px) and (max-width: 2399px) {
    :root {
        --doc-sidebar-w: 352px;
        --doc-content-max: 94%;
        --doc-gutter: 32px;
    }
}

@media screen and (min-width: 2400px) {
    :root {
        --doc-sidebar-w: 372px;
        --doc-content-max: 96%;
        --doc-gutter: 44px;
    }
}

/* ===== OmiGA 2.0（alpha）版本提示弹窗 ===== */
.alpha-notice {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1200;
}

.alpha-notice.is-on {
    opacity: 1;
    visibility: visible;
}

.alpha-notice-card {
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 26px 28px 22px;
    background: #ffffff;
    border: 1px solid rgba(63, 81, 181, 0.22);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    color: #1f2937;
    text-align: left;
}

.alpha-notice-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #303f9f;
}

.alpha-notice-text {
    margin: 0 0 10px;
    font-size: 14.5px;
    line-height: 1.75;
}

.alpha-notice-text a {
    color: #3f51b5;
    font-weight: 600;
}

.alpha-notice-lang {
    display: inline-block;
    margin: 2px 0 6px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
}

.alpha-notice-divider {
    margin: 14px 0 10px;
    border: none;
    border-top: 1px solid rgba(100, 116, 139, 0.25);
}

/* 关闭弹窗后常驻的顶部提示条（高 34px；页面整体下移，避免遮挡侧边栏/导航/正文） */
.alpha-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    font-size: 12.5px;
    font-weight: 700;
    color: #b45309;
    background: #fffbeb;
    border-bottom: 1px solid rgba(180, 83, 9, 0.35);
    box-shadow: 0 2px 10px rgba(180, 83, 9, 0.14);
    z-index: 60;
}

.alpha-banner-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.alpha-banner-link {
    flex: none;
    padding: 2px 10px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    background: #b45309;
    border-radius: 999px;
    transition: background-color 0.15s ease;
}

.alpha-banner-link:hover {
    background: #92400e;
}

body.alpha-banner-on .sidebar {
    top: 34px;
}

body.alpha-banner-on .content {
    padding-top: 94px;
}

body.alpha-banner-on .app-nav {
    margin-top: 59px;
}

@media screen and (max-width: 768px) {
    .alpha-banner {
        gap: 8px;
        padding: 0 10px;
        font-size: 11.5px;
    }
}

.alpha-notice-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.alpha-notice-btn {
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #3f51b5;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

.alpha-notice-btn:hover {
    background: #303f9f;
    transform: translateY(-1px);
}
