/* 专辑弹窗样式 - 独立 CSS 文件 */

@import url('miniprogram_qrcode.css');

/*
 * 右侧「本专辑作业纸」列表可视高度：随浏览器视口高度按固定比例变化。
 * - --album-group-list-vh：无单位数字，表示占视口高度的 vh 份数（例：45 → 45vh）
 * - --album-group-list-min-h / --album-group-list-max-h：可选上下限，避免过矮/过高
 */
#albumModal {
    --album-group-list-vh: 62;
    --album-group-list-min-h: 12rem;
    --album-group-list-max-h: 72vh;
}

/* PDF阅读器样式的图片展示区域 */
#albumModal .pdf-viewer-container {
    background: #f3f4f6;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 0 2rem;
}

/* 移动端：减少内边距 */
@media (max-width: 1023px) {
    #albumModal .pdf-viewer-container {
        padding: 0 1rem;
    }
}

#albumModal .pdf-viewer-container::-webkit-scrollbar {
    width: 12px;
}

#albumModal .pdf-viewer-container::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 6px;
}

#albumModal .pdf-viewer-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 6px;
}

#albumModal .pdf-viewer-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* 单页阅览：浅灰底、全宽图、进度条、两侧翻页（禁止出现滚动条） */
#albumModal .pdf-viewer-container.album-modal-book-viewer {
    background: #f3f4f6;
    padding: 0.75rem 2.75rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    /* 进度条占位：margin-top 1rem + 轨高 0.625rem */
    --album-slide-progress-reserve: 1.625rem;
    /* 幻灯主图区最大高度（为进度条预留空间） */
    --album-slide-img-height: min(calc(76vh - var(--album-slide-progress-reserve) - 1.75rem), 940px);
    overflow: hidden;
    scrollbar-width: none;
}

#albumModal .pdf-viewer-container.album-modal-book-viewer::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

@media (min-width: 1024px) {
    #albumModal .pdf-viewer-container.album-modal-book-viewer {
        min-height: min(78vh, 960px);
    }
}

#albumModal .pdf-viewer-container.album-modal-book-viewer::-webkit-scrollbar-track {
    background: #e5e7eb;
}

#albumModal .pdf-viewer-container.album-modal-book-viewer::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

/* 翻页 3D 旋转会超出内框，动效期间暂时不裁切 */
#albumModal .pdf-viewer-container.album-modal-book-viewer:has(.album-modal-slide-content--flipping) {
    overflow: visible;
}

/* 幻灯片顶部：非会员试读说明 */
#albumModal .album-modal-slide-guest-hint {
    flex-shrink: 0;
    margin: 0 0 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #92400e;
    background: rgba(255, 251, 235, 0.96);
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 1px 4px rgba(146, 64, 14, 0.08);
}

#albumModal .album-modal-slide-guest-hint.hidden {
    display: none !important;
}

@media (max-width: 767px) {
    #albumModal .album-modal-slide-guest-hint {
        margin-bottom: 0.5rem;
        padding: 0.45rem 0.625rem;
        font-size: 0.6875rem;
        line-height: 1.4;
    }
}

/* 左侧幻灯：整轨由「每页一格」组成，当前格内随音频进度填充 */
#albumModal .album-modal-slide-progress-track {
    display: flex;
    width: 100%;
    gap: 0;
    flex-shrink: 0;
    margin-top: 1rem;
    height: 0.625rem;
    align-items: stretch;
    border-radius: 9999px;
    overflow: hidden;
}

#albumModal .album-modal-slide-progress-seg {
    flex: 1 1 0;
    min-width: 0;
    background: #e5e7eb;
    overflow: hidden;
}

#albumModal .album-modal-slide-progress-seg-fill {
    height: 100%;
    width: 0%;
    background: #2563eb;
}

#albumModal .album-modal-slide-container {
    position: relative;
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* 左上角：自动翻页 / 手动翻页 */
#albumModal .album-modal-page-turn-mode-badge {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    z-index: 9;
    padding: 0.28rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #1e3a8a;
    background: rgba(219, 234, 254, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.45);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
    pointer-events: none;
    max-width: calc(100% - 5.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#albumModal .album-modal-page-turn-mode-badge--manual {
    color: #713f12;
    background: rgba(254, 243, 199, 0.96);
    border-color: rgba(217, 119, 6, 0.5);
}

/* 最后一页：幻灯区右下角悬浮提示（避开圆形下一页按钮） */
#albumModal .album-modal-slide-finished-hint {
    position: absolute;
    right: 3.25rem;
    bottom: 3.65rem;
    z-index: 7;
    max-width: calc(100% - 6rem);
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: #f9fafb;
    background: rgba(0, 0, 0, 0.72);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    animation: album-modal-finished-hint-in 0.35s ease-out both;
}

#albumModal .album-modal-slide-finished-hint[hidden] {
    display: none !important;
    animation: none;
}

@keyframes album-modal-finished-hint-in {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#albumModal .album-modal-slide-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    scrollbar-width: none;
}

#albumModal .album-modal-slide-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* 翻页动效：半幅 3D 翻，背面贴目标页对应半幅（+ 另一侧冻结条避免左右错位） */
#albumModal .album-modal-slide-content.album-modal-slide-content--flipping {
    overflow: visible;
}

#albumModal .album-modal-slide-img.album-modal-slide-img--flip-hidden {
    visibility: hidden;
    position: relative;
    z-index: 2;
}

/* 翻页时垫在主图下方：露出目标页整图（contain），避免缝里是黑底 */
#albumModal .album-modal-flip-underlay {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    background-repeat: no-repeat;
    background-color: #eceef1;
    box-sizing: border-box;
}

#albumModal .album-modal-flip-freeze-strip {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    background-repeat: no-repeat;
}

#albumModal .album-modal-flip-root {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    transform-style: preserve-3d;
}

#albumModal .album-modal-flip-root--next {
    filter: drop-shadow(-4px 0 10px rgba(0, 0, 0, 0.18));
}

#albumModal .album-modal-flip-root--prev {
    filter: drop-shadow(4px 0 10px rgba(0, 0, 0, 0.18));
}

/* 翻页收尾：冻结条 + 外层淡出（内层已在关键帧末段同步淡出）；底图全程不透明防闪 */
#albumModal .album-modal-flip-end-fade {
    animation: album-modal-flip-end-fade var(--album-flip-fade-ms, 200ms) ease-out forwards;
}

@keyframes album-modal-flip-end-fade {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

#albumModal .album-modal-flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    border-radius: 1px;
}

/*
 * 下一页：右半幅以画中缝为轴翻到背面（rotateY 负向），末段与淡出叠加。
 * 冻结半幅 + 底图垫目标页，与 album_modal.js 中 ALBUM_MODAL_FLIP_* 一致。
 */
#albumModal .album-modal-flip-inner--next {
    transform-origin: left center;
    animation: album-modal-flip-inner-next var(--album-flip-duration, 0.8s) cubic-bezier(0.42, 0, 0.2, 1) forwards;
}

#albumModal .album-modal-flip-inner--prev {
    transform-origin: right center;
    animation: album-modal-flip-inner-prev var(--album-flip-duration, 0.8s) cubic-bezier(0.42, 0, 0.2, 1) forwards;
}

@keyframes album-modal-flip-inner-next {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }

    /* 约 75% 前保持不透明，之后与收尾淡出重叠 */
    75% {
        transform: rotateY(-135deg);
        opacity: 1;
    }

    100% {
        transform: rotateY(-180deg);
        opacity: 0;
    }
}

@keyframes album-modal-flip-inner-prev {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }

    75% {
        transform: rotateY(135deg);
        opacity: 1;
    }

    100% {
        transform: rotateY(180deg);
        opacity: 0;
    }
}

#albumModal .album-modal-flip-face {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 背面朝向观众时需水平翻转，否则纹理左右镜像 */
#albumModal .album-modal-flip-face--back {
    transform: rotateY(180deg) scaleX(-1);
}

/* 单页幻灯外层：上图下进度条，进度条始终可见 */
#albumModal .album-modal-slide-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
}

#albumModal .album-modal-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, opacity 0.15s ease;
}

#albumModal .album-modal-slide-nav:hover:not(:disabled) {
    background: #f3f4f6;
}

#albumModal .album-modal-slide-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

#albumModal .album-modal-slide-prev {
    left: 0.25rem;
}

#albumModal .album-modal-slide-next {
    right: 0.25rem;
}

/* 右侧作业纸列表：仅封面 + 标题 */
#albumModal .album-modal-group-item {
    list-style: none;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

#albumModal .album-modal-group-item-btn {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background: transparent;
    box-sizing: border-box;
}

#albumModal .album-modal-group-item-btn:hover {
    background: rgba(239, 246, 255, 0.85);
}

#albumModal .album-modal-group-item-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

#albumModal .album-modal-group-item-thumb {
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
}

#albumModal .album-modal-group-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#albumModal .album-modal-group-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    color: #111827;
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
}

/* 选中态：左侧色条 + 高对比边框与背景 */
#albumModal .album-modal-group-item-active {
    border-color: #2563eb;
    background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 55%, #f0f9ff 100%);
    box-shadow:
        inset 4px 0 0 #2563eb,
        0 0 0 1px rgba(37, 99, 235, 0.25),
        0 4px 12px rgba(37, 99, 235, 0.12);
}

#albumModal .album-modal-group-item-active .album-modal-group-item-btn:hover {
    background: transparent;
}

#albumModal .album-modal-group-item-active .album-modal-group-item-title {
    color: #1e40af;
    font-weight: 700;
}

#albumModal .album-modal-group-item-active .album-modal-group-item-thumb {
    border-color: #93c5fd;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

/* 非会员：右侧列表中未解锁的绘本（整行可点，提示开通会员） */
#albumModal .album-modal-group-item-locked {
    border-color: #9ca3af !important;
    background: #e5e7eb !important;
    opacity: 1;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(156, 163, 175, 0.35);
}

#albumModal .album-modal-group-item-locked .album-modal-group-item-thumb {
    filter: grayscale(0.35);
}

#albumModal .album-modal-group-item-locked .album-modal-group-item-title {
    color: #6b7280;
    padding-right: 3rem;
}

#albumModal .album-modal-group-item-locked .album-modal-group-item-btn {
    cursor: pointer;
}

#albumModal .album-modal-group-item-locked .album-modal-group-item-btn:hover {
    background: rgba(254, 243, 199, 0.45);
}

#albumModal .album-modal-group-item-locked .album-modal-group-item-btn:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}

#albumModal .album-modal-group-item-locked::after {
    display: none;
}

/* 会员角标：贴在列表项右上角，不挡点击（事件落到下方按钮） */
#albumModal .album-modal-group-item-locked .album-modal-group-item-lock-badge {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.12rem 0.4rem 0.12rem 0.32rem;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    color: #92400e;
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    border: 1px solid #d97706;
    box-shadow: 0 1px 4px rgba(180, 83, 9, 0.25);
    pointer-events: none;
    user-select: none;
}

#albumModal .album-modal-group-item-lock-badge-svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    opacity: 0.95;
}

#albumModal .album-modal-group-item-lock-badge-text {
    line-height: 1;
}

/* 幻灯页面包裹层：页码悬浮定位基准；平时略弱透视，翻页时加强并以画中缝为立体锚点 */
#albumModal .album-modal-slide-visual {
    position: relative;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    max-height: var(--album-slide-img-height);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 3200px;
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
}

#albumModal .album-modal-slide-hit {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28%;
    z-index: 6;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
#albumModal .album-modal-slide-hit--prev {
    left: 0;
}
#albumModal .album-modal-slide-hit--next {
    right: 0;
}

#albumModal .album-modal-slide-content.album-modal-slide-content--flipping .album-modal-slide-visual {
    perspective: 1500px;
    perspective-origin: 50% 50%;
}

/* 搜索页作业纸：非会员全屏提示（内层卡片与试看层同款样式） */
#searchSheetMemberGate,
#albumPdfDownloadMemberGate {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-sizing: border-box;
}

#searchSheetMemberGate.search-sheet-member-gate--open,
#albumPdfDownloadMemberGate.album-pdf-download-gate--open {
    display: flex;
}

body.search-sheet-member-gate-body-lock,
body.album-pdf-download-gate-body-lock {
    overflow: hidden;
}

#searchSheetMemberGate .search-sheet-member-gate-panel-wrap,
#albumPdfDownloadMemberGate .album-pdf-download-gate-panel-wrap {
    position: relative;
    width: 100%;
    max-width: 30rem;
}

#searchSheetMemberGate .search-sheet-member-gate-close,
#albumPdfDownloadMemberGate .album-pdf-download-gate-close {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9999px;
    background: rgba(243, 244, 246, 0.95);
    color: #6b7280;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background 0.15s ease, color 0.15s ease;
}

#searchSheetMemberGate .search-sheet-member-gate-close:hover,
#albumPdfDownloadMemberGate .album-pdf-download-gate-close:hover {
    background: #e5e7eb;
    color: #111827;
}

/* 非会员试读结束：压在主图上的提示与开通按钮 */
#albumModal .album-modal-guest-paywall-overlay {
    position: absolute;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-sizing: border-box;
}

#albumModal .album-modal-guest-paywall-panel,
#searchSheetMemberGate .album-modal-guest-paywall-panel {
    width: 100%;
    max-width: 30rem;
    padding: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    text-align: center;
    overflow: hidden;
}

#albumModal .album-modal-guest-paywall-figure,
#searchSheetMemberGate .album-modal-guest-paywall-figure {
    margin: 0;
    padding: 0.65rem 0.65rem 0;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    box-sizing: border-box;
}

#albumModal .album-modal-guest-paywall-img,
#searchSheetMemberGate .album-modal-guest-paywall-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 10.5rem;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 10px;
}

#albumModal .album-modal-guest-paywall-main {
    padding: 0.75rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    box-sizing: border-box;
}

#albumModal .album-modal-guest-paywall-text,
#searchSheetMemberGate .album-modal-guest-paywall-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #374151;
    font-weight: 500;
}

#albumModal .album-modal-guest-paywall-hint {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #6b7280;
}

#albumModal .album-modal-guest-paywall-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#albumModal .album-modal-guest-paywall-btn,
#searchSheetMemberGate .album-modal-guest-paywall-btn {
    margin: 0;
    display: block;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}

#albumModal .album-modal-guest-paywall-btn--primary,
#searchSheetMemberGate .album-modal-guest-paywall-btn {
    flex: 1;
    min-width: 0;
    color: #fff;
    background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
}

#albumModal .album-modal-guest-paywall-btn--ghost {
    flex: 0 0 auto;
    color: #4b5563;
    background: #f3f4f6;
    padding-left: 1rem;
    padding-right: 1rem;
}

#albumModal .album-modal-guest-paywall-btn--unlock {
    width: 100%;
    color: #fff;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

#albumModal .album-modal-guest-paywall-btn:hover,
#searchSheetMemberGate .album-modal-guest-paywall-btn:hover {
    filter: brightness(1.05);
}

#albumModal .album-modal-guest-paywall-btn:active,
#searchSheetMemberGate .album-modal-guest-paywall-btn:active {
    transform: scale(0.98);
}

@media (max-width: 767px) {
    #albumModal .album-modal-guest-paywall-panel,
    #searchSheetMemberGate .album-modal-guest-paywall-panel,
    #searchSheetMemberGate .search-sheet-member-gate-panel-wrap {
        max-width: min(30rem, calc(100vw - 2rem));
    }
}

/* 叠在幻灯主图区域：水平居中、靠上；播放时条带动；点击同时开关：朗读 + 播完后自动翻页 */
#albumModal .album-modal-audio-indicator {
    position: absolute;
    left: 50%;
    top: 0.5rem;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 1.375rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.52);
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

#albumModal .album-modal-audio-indicator:focus {
    outline: none;
}

#albumModal .album-modal-audio-indicator:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

/* 朗读与自动翻页均关闭：灰色静态条 */
#albumModal .album-modal-audio-indicator--autoplay-off {
    background: rgba(55, 65, 81, 0.65);
}

#albumModal .album-modal-audio-indicator--autoplay-off .album-modal-audio-indicator-bar {
    background: #9ca3af;
    animation: none !important;
    transform: scaleY(0.45);
}

#albumModal .album-modal-audio-indicator-bar {
    display: block;
    width: 3px;
    height: 12px;
    border-radius: 2px;
    background: #93c5fd;
    transform: scaleY(0.45);
    transform-origin: center bottom;
}

#albumModal .album-modal-audio-indicator--playing .album-modal-audio-indicator-bar {
    animation: album-modal-audio-bar-bounce 0.55s ease-in-out infinite;
}

#albumModal .album-modal-audio-indicator--playing .album-modal-audio-indicator-bar:nth-child(1) {
    animation-delay: 0s;
}

#albumModal .album-modal-audio-indicator--playing .album-modal-audio-indicator-bar:nth-child(2) {
    animation-delay: 0.12s;
}

#albumModal .album-modal-audio-indicator--playing .album-modal-audio-indicator-bar:nth-child(3) {
    animation-delay: 0.24s;
}

#albumModal .album-modal-audio-indicator--playing .album-modal-audio-indicator-bar:nth-child(4) {
    animation-delay: 0.08s;
}

@keyframes album-modal-audio-bar-bounce {
    0%,
    100% {
        transform: scaleY(0.35);
    }

    50% {
        transform: scaleY(1);
    }
}

#albumModal .album-modal-slide-page-badge {
    position: absolute;
    top: 0.5rem;
    /* 与右侧圆形「下一页」错开，避免叠在按钮上 */
    right: 3rem;
    z-index: 4;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: #f3f4f6;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

#albumModal .album-modal-slide-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    background: #eceef1;
    box-sizing: border-box;
}

/* 幻灯区内占位页（无图页） */
#albumModal .album-modal-slide-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#albumModal .album-modal-slide-placeholder::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image: var(--placeholder-bg, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    z-index: 0;
    opacity: 0.55;
}

#albumModal .album-modal-slide-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

#albumModal .album-modal-slide-placeholder-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #9ca3af;
    text-align: center;
}

#albumModal .pdf-viewer-content {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    gap: 1rem;
    padding: 0;
    align-content: start;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* 移动端：保持双栏布局，但自适应宽度 */
@media (max-width: 1023px) {
    #albumModal .pdf-viewer-content {
        grid-template-columns: repeat(2, 1fr);
        justify-content: stretch;
        gap: 0.5rem;
    }
}

#albumModal .pdf-viewer-page {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    border-radius: 4px;
    overflow: hidden;
    width: 300px;
    max-width: 300px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
}

/* 移动端：页面自适应宽度（双栏布局） */
@media (max-width: 1023px) {
    #albumModal .pdf-viewer-page {
        width: 100%;
        max-width: 100%;
    }
}

#albumModal .pdf-viewer-page:hover,
#albumModal .pdf-viewer-page:focus,
#albumModal .pdf-viewer-page:active {
    transform: none !important;
    scale: 1 !important;
    transition: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

#albumModal .pdf-viewer-page * {
    transition: none !important;
    transform: none !important;
}

#albumModal .pdf-viewer-page img {
    width: 300px !important;
    max-width: 300px !important;
    height: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: none !important;
    transform: none !important;
    scale: 1 !important;
    will-change: auto !important;
}

/* 移动端：图片自适应宽度 */
@media (max-width: 1023px) {
    #albumModal .pdf-viewer-page img {
        width: 100% !important;
        max-width: 100% !important;
    }
}

#albumModal .pdf-viewer-page img:hover,
#albumModal .pdf-viewer-page img:focus,
#albumModal .pdf-viewer-page img:active {
    transform: none !important;
    scale: 1 !important;
    transition: none !important;
}

/* 强制覆盖所有可能的hover效果 - 放在最后确保最高优先级 */
#albumModal .pdf-viewer-page:hover *,
#albumModal .pdf-viewer-page:hover img,
#albumModal .pdf-viewer-page:hover::before,
#albumModal .pdf-viewer-page:hover::after {
    transform: none !important;
    scale: 1 !important;
    transition: none !important;
    animation: none !important;
}

#albumModal .pdf-viewer-page-number {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* 占位符页面样式（用于补齐总页数但还没有图片的页面） */
#albumModal .pdf-viewer-page-placeholder {
    height: 300px; /* 固定高度 */
    min-height: 300px;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default; /* 占位符不可点击 */
    position: relative;
    overflow: hidden; /* 确保模糊背景不会溢出 */
    background-color: #f3f4f6; /* 默认背景色，当没有图片时使用 */
}

/* 移动端：占位符高度自适应 */
@media (max-width: 1023px) {
    #albumModal .pdf-viewer-page-placeholder {
        height: auto;
        min-height: 200px;
        max-height: 400px;
        aspect-ratio: 1 / 1.414; /* A4纸比例 */
    }
}

/* 使用伪元素创建模糊背景层 */
#albumModal .pdf-viewer-page-placeholder::before {
    content: '';
    position: absolute;
    top: -20px; /* 扩大模糊区域，避免边缘清晰 */
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image: var(--placeholder-bg, none); /* 使用CSS变量获取背景图片 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px); /* 模糊效果 */
    z-index: 0;
    opacity: 0.7; /* 稍微降低透明度，让模糊效果更明显 */
}

/* 添加一个半透明的遮罩层，让前景内容更清晰 */
#albumModal .pdf-viewer-page-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3); /* 半透明白色遮罩 */
    z-index: 1;
}

#albumModal .pdf-viewer-page-placeholder:hover {
    cursor: default; /* 占位符hover时也不显示手型光标 */
}

#albumModal .pdf-viewer-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
    padding: 2rem;
    position: relative; /* 确保内容在遮罩层之上 */
    z-index: 2; /* 让内容显示在模糊背景和遮罩层之上 */
}

/* 移动端：占位符内容高度自适应 */
@media (max-width: 1023px) {
    #albumModal .pdf-viewer-placeholder-content {
        min-height: 200px;
        padding: 1rem;
    }
}

/* 弹窗左右布局：占满 wrapper 剩余高度，右侧列表才能在内部滚动 */
.album-modal-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-height: 0;
    overflow: hidden;
    width: auto;
}

@media (min-width: 1024px) {
    .album-modal-content {
        flex-direction: row;
        width: 90vw;
        max-width: 100%;
        align-items: stretch;
    }
}

/* 移动端：阅读器占据主体，自适应宽度 */
.album-modal-left {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 1rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* 桌面端：左侧约 5/6（右侧收窄） */
@media (min-width: 1024px) {
    .album-modal-left {
        flex: 5 1 0%;
        min-width: 0;
        width: auto;
        max-width: none;
        padding: 1rem;
        box-sizing: border-box;
    }
}

/* 移动端：右侧信息区域自适应宽度 */
.album-modal-right {
    padding: 0;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    flex: 0 0 auto;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    min-height: 0;
}

/* 桌面端：右侧约 1/6；min-height:0 否则 flex 子项按内容高度撑开，列表区无法出现滚动条 */
@media (min-width: 1024px) {
    .album-modal-right {
        flex: 1 1 0%;
        min-width: 0;
        width: auto;
        max-width: none;
        border-top: none;
        border-left: 1px solid #e5e7eb;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
    }
}

/* 桌面端：切换左侧预览的作业纸列表 — 固定可视高度，内部纵向滚动 */
@media (min-width: 1024px) {
    #albumModal .album-modal-right-body {
        flex: 1 1 0%;
        min-height: 0;
    }

    #albumModal .album-modal-right-desc-scroll {
        flex: 1 1 0%;
        min-height: 0;
    }

    #albumModal .album-modal-group-list-scroll {
        height: clamp(
            var(--album-group-list-min-h),
            calc(var(--album-group-list-vh) * 1vh),
            var(--album-group-list-max-h)
        );
        max-height: clamp(
            var(--album-group-list-min-h),
            calc(var(--album-group-list-vh) * 1vh),
            var(--album-group-list-max-h)
        );
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        padding-right: 2px;
    }

    #albumModal .album-modal-group-list-scroll::-webkit-scrollbar {
        width: 8px;
    }

    #albumModal .album-modal-group-list-scroll::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

    #albumModal .album-modal-group-list-scroll::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }
}

/* 在 max-h 内形成明确高度链，避免右侧整块被内容撑高却无法内部滚动 */
#albumModal .album-modal-wrapper {
    min-height: 0;
    overflow: hidden;
}

/* 移动端全屏样式：上方阅读器 + 下方会员试读提示与绘本列表 */
@media (max-width: 767px) {
    #albumModal {
        padding: 0 !important;
        background: white !important;
    }
    
    #albumModal .album-modal-wrapper {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    #albumModal .album-modal-content {
        flex-direction: column !important;
    }
    
    #albumModal .album-modal-right {
        display: flex !important;
        flex: 0 0 auto;
        width: 100% !important;
        min-height: 0;
        max-height: 42vh;
        border-top: 1px solid #e5e7eb;
    }

    #albumModal .album-modal-right > .hidden.lg\:block {
        display: none !important;
    }

    #albumModal .album-modal-right-body {
        display: flex !important;
        flex: 1 1 auto;
        min-height: 0;
    }

    #albumModal .album-modal-right-desc-scroll {
        display: none !important;
    }

    #albumModal .album-modal-group-list-scroll {
        max-height: 24vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    #albumModal #albumModalGroupList {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
        gap: 0.625rem;
    }

    #albumModal #albumModalGroupList > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0;
    }

    #albumModal .album-modal-group-item {
        width: auto;
        max-width: none;
    }

    #albumModal .album-modal-group-item-btn {
        flex-direction: column;
        align-items: stretch;
        padding: 0.45rem;
        gap: 0.3rem;
    }

    #albumModal .album-modal-group-item-thumb {
        width: 100%;
        height: 6.5rem;
    }

    #albumModal .album-modal-group-item-title {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        text-align: center;
        font-size: 0.75rem;
    }
    
    #albumModal .album-modal-left {
        width: 100% !important;
        height: auto !important;
        flex: 1 1 auto;
        min-height: 0;
        padding: 0 !important;
    }
    
    #albumModal .pdf-viewer-container {
        border-radius: 0 !important;
        padding: 0 0.5rem !important;
        padding-top: 64px !important;
        padding-bottom: 0.5rem !important;
        height: auto !important;
        min-height: min(48vh, 520px);
        max-height: min(54vh, 580px);
        box-sizing: border-box;
        overflow: hidden !important;
    }

    #albumModal .pdf-viewer-container.album-modal-book-viewer {
        --album-slide-img-height: min(calc(54vh - 64px - 0.5rem - var(--album-slide-progress-reserve)), 380px);
    }
}

/* 移动端顶部栏样式 */
.mobile-modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(to right, #dbeafe, #e9d5ff, #fee2e2, #fef3c7, #d1fae5);
    border-bottom: 1px solid #e5e7eb;
    z-index: 101;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-header-back-btn,
.mobile-header-close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    color: #111827;
}

.mobile-header-back-btn:hover,
.mobile-header-close-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.mobile-header-back-btn {
    margin-right: 12px;
}

.mobile-header-close-btn {
    margin-left: auto;
}

.album-modal-keyboard-hints--page,
.album-modal-keyboard-hints--bar {
    display: flex;
    align-items: center;
    min-width: 0;
}

.album-modal-keyboard-hints-main {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.album-modal-keyboard-hints-keys {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.25rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.album-modal-keyboard-hints-keys::-webkit-scrollbar {
    height: 4px;
}

.album-modal-keyboard-hints-keys::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.35);
    border-radius: 9999px;
}

.album-modal-keyboard-hint-row-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
    color: #1d4ed8;
    white-space: nowrap;
}

/* 右侧下载按钮 */
.album-modal-download-pdf-btn {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    border: none;
    border-radius: 0.5rem;
    background: #2563eb;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
    transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.album-modal-download-pdf-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.album-modal-download-pdf-btn:active {
    opacity: 0.92;
}

.album-modal-download-pdf-btn-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* PDF 下载升级弹窗（无头图、大字号、独立按钮） */
#albumPdfDownloadMemberGate .album-pdf-download-gate-panel-wrap {
    max-width: 22rem;
}

#albumPdfDownloadMemberGate .album-pdf-download-gate-panel {
    width: 100%;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    text-align: center;
    box-sizing: border-box;
}

#albumPdfDownloadMemberGate .album-pdf-download-gate-title {
    margin: 0 0 1rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    letter-spacing: -0.02em;
}

#albumPdfDownloadMemberGate .album-pdf-download-gate-text {
    margin: 0 0 0.75rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #374151;
    font-weight: 500;
    text-align: left;
}

#albumPdfDownloadMemberGate .album-pdf-download-gate-hint {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #2563eb;
    font-weight: 600;
    text-align: center;
}

#albumPdfDownloadMemberGate .album-pdf-download-gate-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #1e40af 100%);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.38);
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#albumPdfDownloadMemberGate .album-pdf-download-gate-cta-label {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    letter-spacing: 0.01em;
}

#albumPdfDownloadMemberGate .album-pdf-download-gate-cta-sub {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.88);
}

#albumPdfDownloadMemberGate .album-pdf-download-gate-cta:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.45);
}

#albumPdfDownloadMemberGate .album-pdf-download-gate-cta:active {
    transform: scale(0.98);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

@media (max-width: 767px) {
    #albumPdfDownloadMemberGate .album-pdf-download-gate-panel-wrap {
        max-width: min(22rem, calc(100vw - 2rem));
    }

    #albumPdfDownloadMemberGate .album-pdf-download-gate-title {
        font-size: 1.25rem;
    }

    #albumPdfDownloadMemberGate .album-pdf-download-gate-text {
        font-size: 1rem;
    }
}

@media (max-width: 1023px) {
    .album-modal-keyboard-hint-key {
        display: none !important;
    }

    .album-modal-keyboard-hints--page .album-modal-keyboard-hints-main,
    .album-modal-keyboard-hints--bar .album-modal-keyboard-hints-main {
        justify-content: flex-end;
    }

    .album-modal-keyboard-hints-keys {
        display: none;
    }

    .album-modal-keyboard-hints--page,
    .album-modal-keyboard-hints--bar {
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }

    #albumModal .album-modal-keyboard-hints--bar {
        margin-top: 0.5rem;
        border-radius: 0.5rem;
    }
}

.mobile-header-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-right: 8px;
    overflow: hidden;
}

.mobile-header-title h2 {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.mobile-header-title p {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
    margin-top: 2px;
}

/* 移动端底部栏样式 */
.mobile-modal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 101;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-modal-footer button {
    height: 100%;
}

/* 标签和描述展开/收起样式 */
/* 标签容器：默认显示12个标签 */
.tags-container-collapsed {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

/* 限制显示12个标签，隐藏多余的 */
.tags-container-collapsed > span:nth-child(n+13) {
    display: none;
}

.tags-container-expanded {
    display: flex;
    flex-wrap: wrap;
}

/* 展开状态下显示所有标签 */
.tags-container-expanded > span {
    display: inline-flex !important;
}

/* 描述文本：默认显示3行 */
.description-text-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 3;
}

.description-text-expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

/* 专辑独立页：上下结构（上：幻灯阅读器，下：信息与切换绘本） */
#albumModal.album-page-embedded {
    position: static;
    inset: auto;
    display: block !important;
    background: transparent;
    z-index: auto;
    padding: 0;
    min-height: calc(100vh - 4rem);
}

#albumModal.album-page-embedded .album-modal-wrapper {
    width: 100%;
    max-width: none;
    max-height: none;
    min-height: auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: visible;
}

#albumModal.album-page-embedded .album-modal-content {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100%;
    overflow: visible;
    align-items: stretch;
}

#albumModal.album-page-embedded .album-modal-left {
    flex: 0 0 auto;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

#albumModal.album-page-embedded .pdf-viewer-container.album-modal-book-viewer {
    --album-slide-img-height: min(calc(78vh - var(--album-slide-progress-reserve) - 1.75rem), 980px);
    min-height: min(76vh, 960px);
    max-height: min(82vh, 1020px);
    overflow: hidden;
}

#albumModal.album-page-embedded .album-modal-slide-container,
#albumModal.album-page-embedded .album-modal-slide-content {
    overflow: hidden;
}

#albumModal.album-page-embedded .miniprogram-qrcode--float {
    display: none !important;
}

/* 独立页：移动端顶栏不展示标题/页数/标签（保留返回与小程序码） */
#albumModal.album-page-embedded .mobile-header-title {
    display: none !important;
}

#albumModal.album-page-embedded .album-modal-title-row {
    align-items: center;
}

#albumModal.album-page-embedded .album-modal-title-meta {
    flex: 1 1 auto;
    min-width: 0;
}

#albumModal.album-page-embedded .album-modal-title-row .miniprogram-qrcode--header {
    flex-shrink: 0;
    margin-left: 0.75rem;
}

#albumModal.album-page-embedded .album-page-mobile-miniprogram .miniprogram-qrcode--header {
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem 0.35rem;
    max-width: 4.5rem;
}

#albumModal.album-page-embedded .album-page-mobile-miniprogram .miniprogram-qrcode__image {
    width: 2.75rem;
    height: 2.75rem;
}

#albumModal.album-page-embedded .album-page-mobile-miniprogram .miniprogram-qrcode__title {
    font-size: 0.625rem;
    line-height: 1.2;
    text-align: center;
}

#albumModal.album-page-embedded .album-page-mobile-miniprogram .miniprogram-qrcode__desc {
    display: none;
}

#albumModal.album-page-embedded .album-modal-right {
    flex: 1 1 auto;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    border-left: none;
    border-top: none;
    min-height: 0;
    max-height: none;
    display: flex !important;
    flex-direction: column;
}

#albumModal.album-page-embedded .album-modal-right-body {
    display: flex !important;
    flex: 1 1 auto;
    min-height: 0;
}

#albumModal.album-page-embedded .album-modal-right-desc-scroll {
    flex: 0 1 auto;
    max-height: 12rem;
}

#albumModal.album-page-embedded .album-modal-group-list-scroll {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
}

#albumModal.album-page-embedded #albumModalGroupList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
    gap: 0.75rem;
    padding-bottom: 0.25rem;
}

#albumModal.album-page-embedded #albumModalGroupList > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0;
}

#albumModal.album-page-embedded .album-modal-group-item {
    width: auto;
    max-width: none;
}

#albumModal.album-page-embedded .album-modal-group-item-btn {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    gap: 0.35rem;
}

#albumModal.album-page-embedded .album-modal-group-item-thumb {
    width: 100%;
    height: 7.5rem;
}

#albumModal.album-page-embedded .album-modal-group-item-title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-align: center;
}

#albumModal.album-page-embedded .album-page-modal-close {
    display: none;
}

#albumModal.album-page-embedded .album-modal-wrapper > .absolute.bottom-3 {
    position: static;
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 1rem 0.75rem;
}

@media (max-width: 1023px) {
    #albumModal.album-page-embedded {
        min-height: 100vh;
    }

    #albumModal.album-page-embedded .album-modal-wrapper {
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    #albumModal.album-page-embedded .mobile-modal-header {
        position: fixed;
        min-height: 48px;
        height: 48px;
    }

    #albumModal.album-page-embedded .album-modal-left {
        padding: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    #albumModal.album-page-embedded .pdf-viewer-container.album-modal-book-viewer {
        min-height: min(62vh, 760px);
        max-height: min(68vh, 820px);
        --album-slide-img-height: min(calc(68vh - 48px - 0.75rem - var(--album-slide-progress-reserve)), 720px);
        padding-top: 48px !important;
        padding-bottom: 0.75rem !important;
        border-radius: 0;
        overflow: hidden;
    }

    #albumModal.album-page-embedded .album-modal-right > .hidden.lg\:block {
        display: none !important;
    }

    #albumModal.album-page-embedded .album-modal-right-body {
        padding-top: 0.5rem;
    }

    #albumModal.album-page-embedded .album-modal-group-list-title {
        padding-left: 0.25rem;
    }
}

@media (max-width: 767px) {
    #albumModal.album-page-embedded .album-modal-right {
        display: flex !important;
    }

    #albumModal.album-page-embedded .album-modal-left {
        height: auto !important;
    }
}
