/* ===================== 文库门户页（P21） =====================
   依赖 news.css 的头部/底栏基座；本文件只管文库自身：
   分类 chips、工具条、卡片列表、在线阅读器。手机优先（单列起）。 */

.lib-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px 56px;
}

/* ---------- 分类 chips ---------- */
.lib-cats {
    margin-bottom: 12px;
}
.lib-cat-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.lib-cat {
    border: 1px solid #e4e7ed;
    background: #fff;
    color: #444;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s;
}
.lib-cat i {
    font-style: normal;
    margin-left: 4px;
    font-size: 12px;
    color: #999;
}
.lib-cat:hover {
    border-color: #2e7d32;
    color: #2e7d32;
}
.lib-cat.active {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}
.lib-cat.active i {
    color: rgba(255, 255, 255, .8);
}
.lib-cat-sub {
    padding-left: 4px;
}
.lib-cat-sub .lib-cat {
    font-size: 13px;
    padding: 4px 12px;
    background: #f7f8fa;
}
/* ⚠️ 顺序敏感：上面这条与 .lib-cat.active 同为两个类选择器，写在后面就会盖掉选中态的绿底，
   只剩白字压浅灰底（对比度 1.06，等于看不见）。二级选中态必须显式写在其后。 */
.lib-cat-sub .lib-cat.active,
.lib-cat-sub .lib-cat.active:hover {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}
.lib-cat-sub .lib-cat:not(.active):hover {
    background: #eef6ef;
    border-color: #2e7d32;
    color: #2e7d32;
}

/* ---------- 工具条 ---------- */
.lib-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.lib-search {
    display: flex;
    flex: 1;
    max-width: 420px;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.lib-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 12px;
    font-size: 14px;
}
.lib-search button {
    border: none;
    background: #2e7d32;
    color: #fff;
    padding: 0 18px;
    font-size: 14px;
    cursor: pointer;
}
.lib-sort {
    display: flex;
    gap: 6px;
}
.lib-tools {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lib-count {
    font-size: 13px;
    color: #98a29c;
    white-space: nowrap;
}
.lib-count b {
    color: #2e7d32;
    font-weight: 600;
}
.lib-sort button {
    border: none;
    background: transparent;
    color: #666;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
}
.lib-sort button.active {
    background: #edf5ee;
    color: #2e7d32;
    font-weight: 600;
}

/* ---------- 文档卡片（P21c 海报卡） ----------
   旧版是「84×112 小缩略图 + 右侧标题/摘要/6 项挤成一排的 12px 灰字」，
   缩略图太小认不出文档、元信息没有层级、悬停只有一圈描边。

   新版改为**封面在上的海报卡**：
   · 封面用 A4 比例（与后端 480×679 的首页渲染图同比例，不裁切、不失真）
   · 封面浮层：右上角格式角标、左上角「推荐」、悬停渐显「在线阅读」胶囊
   · 正文分三层：标题（2 行截断）→ 摘要（2 行，无摘要自动收起）→ 元信息
   · 元信息拆成两行：分类/版本/权限标签 + 带图标的 页数·大小·浏览·下载
   栅格随宽度自适应（不写死 1/2/3 列），窄屏两列、更窄一列。 */
.lib-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px 16px;
}
.lib-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8ebee;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: transform .22s cubic-bezier(.2, .7, .3, 1), box-shadow .22s, border-color .22s;
}
.lib-card:hover,
.lib-card:focus-visible {
    transform: translateY(-4px);
    border-color: #bfd8c2;
    box-shadow: 0 16px 30px -14px rgba(46, 125, 50, .38), 0 4px 10px -6px rgba(16, 24, 40, .12);
    outline: none;
}
.lib-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(46, 125, 50, .3), 0 16px 30px -14px rgba(46, 125, 50, .38);
}

/* ----- 封面 ----- */
.lib-card-cover {
    position: relative;
    aspect-ratio: 1 / 1.4142;          /* A4：与后端封面 480×679 同比例 */
    box-sizing: border-box;            /* aspect-ratio 按边框盒算，加内边距不会破坏比例 */
    padding: 12px 12px 11px;
    overflow: hidden;
    background: linear-gradient(150deg, #eef1f0 0%, #e2e7e5 100%);
    border-bottom: 1px solid #e6e9e8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lib-card-cover::before {              /* 图未加载（或加载失败）时的占位字样 */
    content: 'PDF';
    position: absolute;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #b9c2bd;
    transition: opacity .2s;
}
/* 文档首页渲染图：留一圈卡纸底 + 纸页阴影，避免整块死白看不出边界 */
.lib-card-cover img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 5px 14px -6px rgba(20, 30, 25, .32), 0 1px 2px rgba(20, 30, 25, .1);
    opacity: 0;
    transition: opacity .32s ease, transform .32s ease;
}
.lib-card-cover.is-loaded::before { opacity: 0; }
.lib-card-cover.is-loaded img { opacity: 1; }
.lib-card:hover .lib-card-cover.is-loaded img { transform: scale(1.035); }

.lib-card-ext,
.lib-card-featured {
    position: absolute;
    z-index: 2;
    top: 9px;
    font-size: 11px;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 6px;
    letter-spacing: .5px;
}
.lib-card-ext {
    right: 9px;
    background: rgba(24, 32, 28, .6);
    color: #fff;
    font-weight: 600;
}
.lib-card-featured {
    left: 9px;
    background: linear-gradient(135deg, #ff9a45, #ef620e);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(239, 98, 14, .35);
}
.lib-card-veil {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    background: linear-gradient(to top,
            rgba(18, 26, 21, .6) 0%,
            rgba(18, 26, 21, .14) 40%,
            rgba(18, 26, 21, 0) 64%);
    opacity: 0;
    transition: opacity .22s;
    pointer-events: none;
}
.lib-card:hover .lib-card-veil,
.lib-card:focus-visible .lib-card-veil { opacity: 1; }
.lib-card-open {
    padding: 6px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: #1f6b28;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    transform: translateY(6px);
    transition: transform .22s;
}
.lib-card:hover .lib-card-open { transform: none; }

/* ----- 正文 ----- */
.lib-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 7px;
    padding: 12px 13px 13px;
}
.lib-card-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    color: #1e2420;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .18s;
}
.lib-card:hover .lib-card-title { color: #2e7d32; }
.lib-card-summary {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: #8b9490;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lib-card-summary:empty { display: none; }

.lib-card-meta {
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px solid #f0f2f1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.lib-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.lib-tag {
    font-size: 11px;
    line-height: 1.55;
    padding: 1px 7px;
    border-radius: 5px;
    background: #f2f4f3;
    color: #6b7570;
    white-space: nowrap;
}
.lib-tag.ver { background: #edf5ee; color: #2e7d32; font-weight: 600; }
.lib-tag.cat { background: #eef3fb; color: #3f6ea8; }
.lib-tag.gate { background: #fdf3e6; color: #a96f1c; }
.lib-tag.vip { background: #f8eef6; color: #9b4790; }

.lib-card-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 11.5px;
    color: #98a29c;
}
.lib-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.lib-card-stats svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .85;
}

/* ----- 入场动画与加载骨架 ----- */
@keyframes libCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
.lib-list.anim .lib-card:not(.is-skeleton) {
    /* ⚠️ 必须是 backwards 而不是 both：both 会在动画结束后继续把末帧（transform:none）
       钉在元素上，动画来源的声明优先级高于普通声明，:hover 的 translateY(-4px)
       就永远不生效（悬停不上浮）。backwards 只在 delay 期间套用起始帧，
       播完即归还控制权给普通样式。 */
    animation: libCardIn .34s cubic-bezier(.2, .7, .3, 1) backwards;
}
@keyframes libShimmer {
    0% { background-position: -160% 0; }
    100% { background-position: 260% 0; }
}
.lib-card.is-skeleton {
    pointer-events: none;
    box-shadow: none;
}
.lib-card.is-skeleton .lib-card-cover {
    border-bottom-color: #eef0f2;
    background-image: linear-gradient(90deg, #eef0ef 0%, #f8faf9 45%, #eef0ef 90%);
    background-size: 200% 100%;
    animation: libShimmer 1.25s linear infinite;
}
.lib-card.is-skeleton .lib-card-cover::before { content: none; }
.lib-skel-line {
    display: block;
    height: 11px;
    border-radius: 6px;
    background-image: linear-gradient(90deg, #eef0ef 0%, #f8faf9 45%, #eef0ef 90%);
    background-size: 200% 100%;
    animation: libShimmer 1.25s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .lib-list.anim .lib-card { animation: none; }
    .lib-card.is-skeleton .lib-card-cover,
    .lib-skel-line { animation: none; }
    .lib-card,
    .lib-card-cover img,
    .lib-card-veil,
    .lib-card-open { transition: none; }
    .lib-card:hover { transform: none; }
}
/* 触屏没有 hover：浮层永不出现，直接不渲染，省一次合成 */
@media (hover: none) {
    .lib-card-veil { display: none; }
}

/* ----- 空态 ----- */
.lib-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 66px 16px;
    color: #9aa39e;
    font-size: 13px;
    text-align: center;
}
.lib-empty[hidden] { display: none; }
.lib-empty svg {
    width: 56px;
    height: 56px;
    margin-bottom: 2px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .45;
}
.lib-empty b {
    font-size: 15px;
    font-weight: 600;
    color: #6b7570;
}
.lib-empty-reset {
    margin-top: 8px;
    border: 1px solid #dfe4e1;
    background: #fff;
    border-radius: 999px;
    padding: 6px 20px;
    font-size: 13px;
    color: #4a5550;
    cursor: pointer;
    transition: border-color .18s, color .18s;
}
.lib-empty-reset:hover { border-color: #2e7d32; color: #2e7d32; }

.lib-more {
    display: block;
    margin: 24px auto 0;
    border: 1px solid #dfe4e1;
    background: #fff;
    border-radius: 999px;
    padding: 9px 30px;
    font-size: 14px;
    color: #4a5550;
    cursor: pointer;
    transition: border-color .18s, color .18s, box-shadow .18s;
}
.lib-more:hover {
    border-color: #2e7d32;
    color: #2e7d32;
    box-shadow: 0 6px 16px -8px rgba(46, 125, 50, .45);
}
/* 无限滚动加载中：按钮变指示器，挡掉重复点击 */
.lib-more.is-busy {
    opacity: .55;
    pointer-events: none;
    border-color: #2e7d32;
    color: #2e7d32;
}

/* ----- 窄屏：封面卡两列，摘要让位给标题 ----- */
@media (max-width: 560px) {
    .lib-main { padding: 14px 12px 40px; }
    .lib-list {
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
        gap: 14px 10px;
    }
    .lib-card { border-radius: 12px; }
    .lib-card-cover { padding: 8px 8px 7px; }
    .lib-card-body { padding: 10px 10px 11px; gap: 6px; }
    .lib-card-title { font-size: 13.5px; }
    .lib-card-summary { display: none; }
    .lib-card-stats { gap: 3px 9px; font-size: 11px; }
    .lib-card-featured, .lib-card-ext { font-size: 10px; padding: 3px 6px; top: 7px; }
    .lib-card-featured { left: 7px; }
    .lib-card-ext { right: 7px; }
    .lib-tools { width: 100%; justify-content: space-between; }
    /* 分类 chips 单行横滑：竖着换行时「一级+二级」要占三四行，把文档列表顶出首屏；
        横滑是手机端 chips 的标准形态（选中项由 main.js scrollIntoView 居中） */
    .lib-cat-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;             /* Firefox */
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .lib-cat-row::-webkit-scrollbar { display: none; }
    .lib-cat { flex: 0 0 auto; }           /* 禁止 chip 被压缩换行 */
}

/* ----- ≤768px：news.css 把站点头部改成 position:fixed（56px、脱离文档流），
   不补偿顶部间距的话，分类第一行会被头部盖住（square.css 同款处理，断点对齐 768）。
   ⚠️ 必须写在 560px 块之后：同优先级后者胜，560 块里的 padding 会覆盖这里的 padding-top。 ----- */
@media (max-width: 768px) {
    .lib-main { padding-top: 68px; }       /* 56px 头部 + 12px 呼吸 */
}

/* ===================== 在线阅读器（P21b 重构） =====================
   旧版是「居中 720px 弹层 + 顶部标题摘要 + 下方三页一追加」：
   ①横向只用掉 720px（宽屏浪费一半以上）②纵向被标题/摘要/操作按钮占掉两三行
   ③只能顺序下拉，无法跳页、缩放、整页对照。

   新版把详情做成**铺满视口的全屏阅读层**：
   · 布局 = 顶栏(标题/详情/点赞/下载) + 可折叠详情 + 正文舞台(1fr) + 底栏(翻页/缩放)
   · 三档排布：适应宽度（默认，逐页精读）/ 适应整页（快速翻阅）/ 自由缩放（± 或 Ctrl+滚轮）
   · 日间 / 夜间两套阅读底色；偏好（档位、缩放、底色）存 localStorage
   · 页面按 page_count 全量铺占位骨架，图片按可视区懒加载，滚动实时回填当前页码
   手机仍是单列；窄屏自动收起缩放/全屏等次要控件。 */

.lib-reader {
    --lr-chrome: #fff;
    --lr-chrome-fg: #222;
    --lr-chrome-dim: #8a9099;
    --lr-line: #e6e8ea;
    --lr-stage: #eceef1;
    --lr-skeleton: #f7f8f9;
    --lr-accent: #2e7d32;
    --lr-accent-soft: #edf5ee;
    --lr-shadow: 0 2px 10px rgba(0, 0, 0, .14);
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    background: var(--lr-chrome);
    color: var(--lr-chrome-fg);
}
.lib-reader[hidden] { display: none; }
.lib-reader[data-theme="night"] {
    --lr-chrome: #23262a;
    --lr-chrome-fg: #e8eaed;
    --lr-chrome-dim: #9aa0a6;
    --lr-line: #383c41;
    --lr-stage: #141618;
    --lr-skeleton: #1c1f22;
    --lr-accent: #4caf50;
    --lr-accent-soft: #2b3a2d;
    --lr-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

/* ---------- 顶栏 ---------- */
.lr-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--lr-line);
    background: var(--lr-chrome);
}
.lr-head {
    flex: 1;
    min-width: 0;
}
.lr-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lr-meta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin-top: 2px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--lr-chrome-dim);
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    text-align: left;
}
.lr-meta-btn #lr-meta-inline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lr-meta-more {
    flex-shrink: 0;
    border: 1px solid var(--lr-line);
    border-radius: 999px;
    padding: 1px 8px;
}
.lr-bar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.lr-btn {
    border: 1px solid var(--lr-line);
    background: transparent;
    color: var(--lr-chrome-fg);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s;
}
.lr-btn:hover { border-color: var(--lr-accent); color: var(--lr-accent); }
.lr-btn b { font-weight: 600; }
.lr-btn-primary {
    background: var(--lr-accent);
    border-color: var(--lr-accent);
    color: #fff;
}
.lr-btn-primary:hover { background: var(--lr-accent); color: #fff; opacity: .88; }
.lr-btn-primary:disabled { opacity: .6; cursor: default; }
.lr-btn.liked {
    background: var(--lr-accent-soft);
    border-color: var(--lr-accent);
    color: var(--lr-accent);
}
.lr-btn.active {
    background: var(--lr-accent-soft);
    border-color: var(--lr-accent);
    color: var(--lr-accent);
}

.lr-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--lr-chrome-fg);
    cursor: pointer;
}
.lr-icon:hover { background: var(--lr-accent-soft); color: var(--lr-accent); }
.lr-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- 可折叠详情 ---------- */
.lr-info {
    flex: 0 0 auto;
    max-height: 34vh;
    overflow-y: auto;
    padding: 12px 18px 14px;
    border-bottom: 1px solid var(--lr-line);
    background: var(--lr-chrome);
    font-size: 13px;
}
.lr-info[hidden] { display: none; }
.lr-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: var(--lr-chrome-dim);
    margin-bottom: 8px;
}
.lr-info-grid span { white-space: nowrap; }
.lr-info-grid b { color: var(--lr-chrome-fg); font-weight: 600; }
.lr-summary {
    margin: 0;
    color: var(--lr-chrome-fg);
    line-height: 1.7;
    white-space: pre-wrap;
}
.lr-summary:empty { display: none; }

/* ---------- 正文舞台 ---------- */
.lr-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    background: var(--lr-stage);
    padding: 18px 12px 30px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.lr-stack {
    --cw: min(900px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.lr-page {
    position: relative;
    width: var(--cw);
    max-width: 100%;
    background: #fff;
    box-shadow: var(--lr-shadow);
    line-height: 0;
}
.lr-page img {
    display: block;
    width: 100%;
    height: auto;
}
.lr-page[data-state="pending"] {
    aspect-ratio: 1 / 1.4142;
    background: var(--lr-skeleton);
    box-shadow: none;
    border: 1px solid var(--lr-line);
}
.lr-page[data-state="pending"]::after {
    content: '载入中…';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    font-size: 13px;
    line-height: 1;
    color: var(--lr-chrome-dim);
}
.lr-page[data-state="failed"] {
    aspect-ratio: 1 / 1.4142;
    background: var(--lr-skeleton);
    border: 1px dashed #d08b8b;
    box-shadow: none;
}
.lr-page[data-state="failed"]::after {
    content: '本页载入失败';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    font-size: 13px;
    color: #c0504d;
}
.lr-endcard {
    width: var(--cw);
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 18px 20px;
    border-radius: 10px;
    background: var(--lr-chrome);
    border: 1px solid var(--lr-line);
    color: var(--lr-chrome-dim);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}
.lr-endcard b { color: var(--lr-chrome-fg); }
/* 会员权益畅读标识（endcard 内）：强调色小徽标 */
.lr-endcard-perk {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--lr-accent-soft);
    color: var(--lr-accent);
    border: 1px solid var(--lr-accent);
    font-size: 12px;
}
.lr-notice {
    position: absolute;
    left: 50%;
    top: 18%;
    transform: translateX(-50%);
    width: min(440px, 86%);
    margin: 0;
    padding: 22px 24px;
    border-radius: 12px;
    background: var(--lr-chrome);
    border: 1px solid var(--lr-line);
    color: var(--lr-chrome-fg);
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}
.lr-notice[hidden] { display: none; }
.lr-notice a {
    color: var(--lr-accent);
    font-weight: 600;
}

/* ---------- 底栏 ---------- */
.lr-foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 12px;
    border-top: 1px solid var(--lr-line);
    background: var(--lr-chrome);
}
.lr-foot[hidden] { display: none; }
.lr-foot-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lr-jump {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--lr-chrome-dim);
    font-size: 13px;
}
.lr-jump input {
    width: 52px;
    padding: 4px 6px;
    border: 1px solid var(--lr-line);
    border-radius: 6px;
    background: transparent;
    color: var(--lr-chrome-fg);
    font-size: 13px;
    text-align: center;
    outline: none;
}
.lr-jump input:focus { border-color: var(--lr-accent); }
.lr-jump b { color: var(--lr-chrome-fg); }
.lr-zoom {
    display: flex;
    align-items: center;
    gap: 2px;
}
.lr-zoom-val {
    min-width: 46px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 760px) {
    .lr-bar { padding: 8px 8px; gap: 6px; }
    .lr-btn { padding: 6px 10px; font-size: 12px; }
    .lr-btn.lr-opt { display: none; }
    #lr-theme, #lr-fullscreen { display: none; }
    .lr-meta-btn { display: none; }
    .lr-fit, .lr-zoom { display: none; }
    .lr-info { padding: 10px 12px 12px; }
    .lr-stage { padding: 12px 8px 20px; }
    .lr-foot { padding: 6px 8px; }
}
