/* Public 的「书」：桌面是封面，章节一页页叠上来（每页有一个分隔标签），右侧书签翻章 */

/* 封面固定在后面，被盖住时轻轻后退、变暗 */
.desk { position: sticky; top: 0; z-index: 0; --cover: 0; }
.desk__center, .desk__bar { transform: scale(calc(1 - var(--cover) * 0.06)) translateY(calc(var(--cover) * -24px)); transform-origin: 50% 40%; will-change: transform; }
.desk::after {
    content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: #000;
    opacity: calc(var(--cover) * 0.55);
}

.pages { position: relative; z-index: 2; }
.page {
    position: relative; min-height: 100vh; min-height: 100svh; margin-top: 46px; padding: 54px 0 72px;
    background: rgba(18, 19, 22, 0.8); color: #fff;
    backdrop-filter: blur(30px) saturate(140%); -webkit-backdrop-filter: blur(30px) saturate(140%);
    border-radius: 34px 34px 0 0; box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    scroll-margin-top: 46px;
}
.page:first-child { margin-top: 0; }
.page + .page { background: rgba(22, 23, 27, 0.92); }
.page + .page + .page { background: rgba(14, 15, 18, 0.96); }
/* 分隔标签：像书里的索引页签，三章错开 */
.page__tab {
    position: absolute; top: -40px; left: calc(50% + var(--tab-x, 0px)); transform: translateX(-50%); height: 41px; padding: 0 20px;
    display: inline-flex; align-items: center; gap: 8px; border-radius: 16px 16px 0 0; font-size: 14px; font-weight: 700;
    background: inherit; color: rgba(255, 255, 255, 0.9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: inherit; -webkit-backdrop-filter: inherit;
}
.page__tab b { font-family: var(--lz-mono); font-size: 12px; color: rgba(255, 255, 255, 0.5); }
/* 第 II 章的页签会露在封面底部正中（左下是风景名、右下是按钮），后面两章往右错开 */
#ch-files { --tab-x: 0px; }
#ch-cinema { --tab-x: 170px; }
#gallery-sec { --tab-x: 320px; }
@media (max-width: 640px) {
    #ch-cinema { --tab-x: 110px; }
    #gallery-sec { --tab-x: -110px; }
    .page__tab { padding: 0 14px; font-size: 13px; }
}

.page__in { position: relative; }
.page__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page__eyebrow { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.55); margin-bottom: 4px; min-height: 1.2em; }
.page__title { margin: 0; font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.page__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.page__note { margin: 26px 2px 0; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, 0.45); }
.page__sub { display: flex; align-items: baseline; gap: 10px; margin: 34px 2px 14px; }
.page__sub h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.page__sub span { color: rgba(255, 255, 255, 0.45); font-weight: 600; font-size: 14px; }
.page .seg--dark .seg__item { padding: 7px 14px; }

/* 书签 */
.ribbon {
    position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 45; display: flex; flex-direction: column; gap: 6px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
body.is-reading .ribbon, .ribbon:focus-within, .ribbon:hover { opacity: 1; pointer-events: auto; }
.ribbon a {
    position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 8px; height: 30px; padding: 0 10px 0 12px;
    border-radius: 999px 0 0 999px; margin-right: -14px; text-decoration: none; color: rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.12); border-right: 0;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: padding 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.ribbon a b { font-family: var(--lz-mono); font-size: 11px; width: 22px; text-align: center; }
.ribbon a span { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 13px; font-weight: 600; transition: max-width 0.25s ease; }
.ribbon a:hover span, .ribbon a:focus-visible span, .ribbon a.is-active span { max-width: 80px; }
.ribbon a.is-active { background: #fff; color: #000; padding-right: 22px; }
@media (max-width: 640px) { .ribbon { display: none; } }

/* ---------------- II 今日文件 ---------------- */
.files-progress { color: rgba(255, 255, 255, 0.6); font-weight: 600; font-size: 14px; }
.files-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin: -6px 0 18px; }
.files-bar > span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #38ef7d, #00d2ff); transition: width 0.4s ease; }
.files-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.frow {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease, opacity 0.2s ease; animation: lz-rise-in 0.4s both;
}
.frow:hover { background: rgba(255, 255, 255, 0.09); }
.frow__check {
    flex: none; width: 24px; height: 24px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.35); background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: #000; transition: background 0.15s ease, border-color 0.15s ease, transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.frow__check:hover { border-color: #fff; }
.frow.is-done .frow__check { background: #38ef7d; border-color: #38ef7d; transform: scale(1.08); }
.frow.is-done .frow__check::after { content: '✓'; font-size: 14px; font-weight: 800; }
.frow__icon {
    flex: none; width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #5b5bf0, #a68bff);
}
.frow[data-kind="pdf"] .frow__icon { background: linear-gradient(135deg, #e8453c, #ff8a65); }
.frow[data-kind="image"] .frow__icon { background: linear-gradient(135deg, #11998e, #38ef7d); font-size: 16px; }
.frow[data-kind="video"] .frow__icon { background: linear-gradient(135deg, #ff6a3d, #ffb36b); font-size: 16px; }
.frow[data-kind="audio"] .frow__icon { background: linear-gradient(135deg, #ff5f8f, #ffb199); font-size: 18px; }
.frow[data-kind="text"] .frow__icon { background: linear-gradient(135deg, #2b2d31, #6b6f78); }
.frow[data-kind="doc"] .frow__icon { background: linear-gradient(135deg, #3a7bd5, #00d2ff); }
.frow[data-kind="sheet"] .frow__icon { background: linear-gradient(135deg, #0f9b77, #5ee2b5); }
.frow[data-kind="slide"] .frow__icon { background: linear-gradient(135deg, #f7971e, #ffd200); }
.frow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 4px 0; }
.frow__main:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 4px; border-radius: 8px; }
.frow__name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow__main:hover .frow__name { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); }
.frow.is-done .frow__name { color: rgba(255, 255, 255, 0.45); text-decoration: line-through; }
.frow__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.5); overflow: hidden; white-space: nowrap; }
.frow__badge { flex: none; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.75); }
.frow__badge.is-link { background: rgba(56, 239, 125, 0.16); color: #7ff0ad; }
.frow__acts { flex: none; display: flex; gap: 6px; opacity: 0.55; transition: opacity 0.15s ease; }
.frow:hover .frow__acts, .frow:focus-within .frow__acts { opacity: 1; }
.frow__btn { border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(255, 255, 255, 0.1); color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.frow__btn:hover { background: rgba(255, 255, 255, 0.2); }
.frow__btn--x:hover { background: rgba(224, 51, 74, 0.35); }
.files-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 16px; text-align: center; border: 2px dashed rgba(255, 255, 255, 0.14); border-radius: 28px; }
.files-empty__stack { position: relative; width: 90px; height: 70px; margin-bottom: 8px; }
.files-empty__stack span { position: absolute; left: 20px; top: 6px; width: 50px; height: 62px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.5); }
.files-empty__stack span:nth-child(1) { transform: rotate(-14deg) translateX(-14px); background: linear-gradient(135deg, #e8453c, #ff8a65); }
.files-empty__stack span:nth-child(2) { transform: rotate(10deg) translateX(14px); background: linear-gradient(135deg, #3a7bd5, #00d2ff); }
.files-empty__stack span:nth-child(3) { background: linear-gradient(135deg, #11998e, #38ef7d); }
.files-empty__title { font-size: 18px; font-weight: 800; }
.files-empty__sub { font-size: 13px; color: rgba(255, 255, 255, 0.5); max-width: 420px; line-height: 1.6; }
.files-old { margin-top: 26px; }
.files-old__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 10px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.6); }
.files-old__acts { display: flex; gap: 6px; }
.files-old__btn { border: 0; border-radius: 999px; padding: 5px 12px; background: rgba(255, 255, 255, 0.1); color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.files-list--old .frow { opacity: 0.7; }
.files-drop {
    position: absolute; inset: -16px; z-index: 5; display: none; align-items: center; justify-content: center; border-radius: 30px;
    border: 3px dashed rgba(255, 255, 255, 0.6); background: rgba(56, 239, 125, 0.1); font-size: 22px; font-weight: 800; pointer-events: none;
}
#ch-files.is-drop .files-drop { display: flex; }

/* ---------------- III 影院 ---------------- */
.cin-form {
    display: flex; align-items: center; gap: 6px; height: 58px; padding: 6px 6px 6px 20px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); transition: background 0.2s ease, border-color 0.2s ease;
}
.cin-form:focus-within { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); }
.cin-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: #fff; font: inherit; font-size: 16px; }
.cin-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.cin-go { flex: none; width: 46px; height: 46px; border-radius: 999px; border: 0; background: #fff; color: #000; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cin-go svg { width: 20px; height: 20px; margin-left: 2px; }
.cin-results { margin-top: 14px; }
.cin { position: relative; margin-top: 22px; }
.cin__ambient {
    position: absolute; inset: 6% 4%; z-index: 0; border-radius: 40px; background-size: cover; background-position: center;
    filter: blur(60px) saturate(160%); opacity: 0; transform: scale(1.05); transition: opacity 1s ease;
}
.cin__ambient.is-on { opacity: 0.55; }
.cin__screen {
    position: relative; z-index: 1; aspect-ratio: 16 / 9; width: 100%; border-radius: 26px; overflow: hidden; background: #000;
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.cin__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.cin__idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: rgba(255, 255, 255, 0.55); font-size: 15px; text-align: center; padding: 20px; }
.cin__reel {
    width: 74px; height: 74px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.25);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0 7px, transparent 8px), conic-gradient(from 0deg, rgba(255, 255, 255, 0.12) 0 12%, transparent 12% 25%, rgba(255, 255, 255, 0.12) 25% 37%, transparent 37% 50%, rgba(255, 255, 255, 0.12) 50% 62%, transparent 62% 75%, rgba(255, 255, 255, 0.12) 75% 87%, transparent 87%);
    animation: cin-spin 6s linear infinite;
}
@keyframes cin-spin { to { transform: rotate(360deg); } }
.cin-now { display: flex; align-items: center; gap: 10px; margin: 14px 4px 0; min-height: 24px; font-size: 16px; font-weight: 700; }
.cin-now__src { padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 12px; font-weight: 700; }
.cin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cin-hint { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, 0.72); }
.vcard { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; background: transparent; color: #fff; font: inherit; text-align: left; }
.vcard--result { cursor: pointer; }
.vcard__play { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.vcard__thumb {
    position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #2b2d31, #6b6f78);
    box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.8); transition: transform 0.25s ease;
}
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard__thumb--bilibili { background: linear-gradient(135deg, #00a1d6, #fb7299); }
.vcard__thumb--vimeo { background: linear-gradient(135deg, #1ab7ea, #0f4c81); }
.vcard__mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; color: rgba(255, 255, 255, 0.9); }
.vcard__src { position: absolute; left: 10px; bottom: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); font-size: 11px; font-weight: 700; }
.vcard__now { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: #fff; color: #000; font-size: 11px; font-weight: 800; }
.vcard:hover .vcard__thumb, .vcard__play:focus-visible .vcard__thumb { transform: translateY(-3px); }
.vcard.is-playing .vcard__thumb { box-shadow: 0 0 0 3px #fff, 0 16px 34px -20px rgba(0, 0, 0, 0.8); }
.vcard.is-watched .vcard__thumb img { filter: grayscale(0.7) brightness(0.7); }
.vcard__title { font-size: 14px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard__chan { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-top: -4px; }
.vcard__acts { display: flex; gap: 6px; opacity: 0.6; transition: opacity 0.15s ease; }
.vcard:hover .vcard__acts, .vcard:focus-within .vcard__acts { opacity: 1; }
.vcard__btn { border: 0; border-radius: 999px; padding: 4px 10px; background: rgba(255, 255, 255, 0.1); color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.vcard__btn:hover { background: rgba(255, 255, 255, 0.2); }

/* 风景这一页沿用原来的图库样式 */
.page--gallery .gallery-sec, .page--gallery { padding-top: 54px; }
.page--gallery .home-foot { padding-top: 48px; }

@media (max-width: 640px) {
    .page { padding: 40px 0 56px; border-radius: 26px 26px 0 0; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
    .frow { gap: 10px; padding: 10px; }
    .frow__icon { width: 40px; height: 40px; border-radius: 13px; }
    .frow__acts { opacity: 1; }
    .frow__btn { padding: 6px 10px; }
    .cin__screen { border-radius: 18px; }
}
