/* 工具 10 · 摸鱼听书·有声小说目录
   独立视觉：暖棕纸质书架，书脊封面 + 书目卡 + 右侧清单抽屉；封面为懒加载轻量 SVG。 */
.ab {
    --a1: #a1663a; --a1b: #5f7a4b; --a1s: #f6ebdc; --a1i: #83502c;
    --a2: #e0aa74; --a2b: #a6c48b; --a2s: rgba(224, 170, 116, .15); --a2i: #f0c79b;
    --h15-h1: clamp(30px, 3.6vw, 42px);
}
.ab .ab-h1 { font-family: var(--h15-font-serif); font-weight: 700; letter-spacing: .02em; }
.ab-hero {
    background:
        repeating-linear-gradient(90deg, transparent 0 74px, rgba(161, 102, 58, .045) 74px 76px),
        radial-gradient(560px 230px at 90% -10%, rgba(95, 122, 75, .18), transparent 72%),
        linear-gradient(120deg, #fbf5ea 0%, #f2e5cf 100%);
    border-color: #e6d5b8;
}
.ab-hero::before { background: repeating-linear-gradient(180deg, var(--a1) 0 14px, transparent 14px 21px); }
:root[data-theme="dark"] .ab .ab-hero { background: repeating-linear-gradient(90deg, transparent 0 74px, rgba(224, 170, 116, .035) 74px 76px), linear-gradient(120deg, #241c15 0%, #2a2118 100%); border-color: #49382a; }
.ab-quick { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ab-quick-f { display: grid; gap: 4px; min-width: 138px; }
.ab-search { min-width: 210px; flex: 1 1 210px; }
.ab-quick-f > span { font-size: var(--h15-fs-12); font-weight: 700; color: var(--h15-ink-2); }
.ab-quick-f > span small { font-weight: 400; }

.ab-desk { display: grid; grid-template-columns: minmax(0, 1fr) 302px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .ab-desk { grid-template-columns: 1fr; } .ab-cart { position: static !important; } }
.ab-cart { position: sticky; top: 18px; display: grid; gap: 14px; }
.ab-shelf { padding: 16px; border: 1px solid var(--h15-line); border-radius: 18px; background: var(--h15-card); box-shadow: var(--h15-shadow); }
.ab-shelf-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--h15-line); }
.ab-shelf-count { font-size: var(--h15-fs-13); font-weight: 700; color: var(--h15-ink-2); }
.ab-shelf-sort { display: flex; align-items: center; gap: 7px; }
.ab-shelf-sort .h15-label { margin: 0; }
.ab-shelf-sort .h15-select { width: 150px; padding: 6px 9px; }
.ab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
@media (max-width: 620px) { .ab-grid { grid-template-columns: 1fr; } }
.ab-book { display: flex; gap: 13px; padding: 12px; border: 1px solid var(--h15-line); border-radius: 13px; background: var(--h15-card-2); transition: border-color .15s, transform .15s; }
.ab-book:hover { border-color: var(--h15-accent); transform: translateY(-2px); }
.ab-book[hidden] { display: none; }
.ab-cover { position: relative; flex: none; width: 88px; }
.ab-cover img { display: block; width: 88px; height: 118px; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 3px 4px 10px rgba(60, 40, 20, .22); }
.ab-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 3px 0 0 3px; background: rgba(0, 0, 0, .18); }
.ab-book-info { flex: 1; min-width: 0; }
.ab-book-t { margin: 1px 0 3px; font-family: var(--h15-font-serif); font-size: 17px; font-weight: 700; color: var(--h15-ink); }
.ab-book-a { margin: 0 0 5px; font-size: var(--h15-fs-12); color: var(--h15-accent-ink); font-weight: 600; }
.ab-book-n { margin: 0 0 8px; font-size: var(--h15-fs-12); line-height: 1.65; color: var(--h15-ink-3); }
.ab-book-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.ab-book-meta span { padding: 2px 8px; border-radius: 6px; background: var(--h15-card); font-family: var(--h15-font-num); font-size: var(--h15-fs-11); color: var(--h15-ink-2); }
:root[data-theme="dark"] .ab .ab-book-meta span { background: rgba(255, 255, 255, .05); }
.ab-add { padding: 5px 12px; border: 1px solid var(--h15-accent); border-radius: 999px; background: transparent; color: var(--h15-accent-ink); font-family: inherit; font-size: var(--h15-fs-12); font-weight: 700; cursor: pointer; }
.ab-add:hover { background: var(--h15-accent-soft); }
.ab-add.is-added { border-color: var(--h15-line); color: var(--h15-ink-3); }
.ab-shelf > .h15-hint { margin: 14px 0 0; }

.ab-cart-total { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border-radius: 11px; background: var(--h15-accent-soft); }
.ab-cart-total b { font-size: 30px; font-weight: 800; color: var(--h15-accent-ink); line-height: 1.1; }
.ab-cart-total span { font-size: var(--h15-fs-12); color: var(--h15-ink-2); }
.ab-cart-list { list-style: none; margin: 14px 0 0; padding: 0; max-height: 320px; overflow: auto; }
.ab-cart-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--h15-line-2); font-size: var(--h15-fs-12); color: var(--h15-ink-2); line-height: 1.6; }
.ab-cart-list li:last-child { border-bottom: 0; }
.ab-cart-list li b { display: block; color: var(--h15-ink); font-size: var(--h15-fs-13); }
.ab-cart-list button { flex: none; border: 0; background: transparent; color: var(--h15-ink-3); cursor: pointer; font-size: 15px; }
.ab-esc-label { display: flex; align-items: center; gap: 7px; margin: 14px 0 6px; }
.ab-esc-label .h15-select { width: 116px; padding: 5px 8px; }
.ab-cart .h15-note { line-height: 1.85; }
.ab-faq .h15-faq-q { font-family: var(--h15-font-serif); }
.ab-list-pre { margin: 0; white-space: pre-wrap; font-size: var(--h15-fs-13); line-height: 1.95; }
