/* 阅读页 · 书卡列表与封面槽位（日迹新增）
   仅作用于阅读页书架，不影响其它列表与影视栏。
   选择器统一带 .wf-shelf 前缀，避免被 workflow.css 旧的 .wf-book h3/p 规则压住。 */

.wf-shelf .wf-books{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}

.wf-shelf .wf-book{padding:0;border:0;background:transparent;border-radius:0;display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;overflow:visible;overflow-wrap:anywhere}

/* 封面槽位：竖版固定 2:3；图片 contain 完整显示，底色与无封面占位同族 */
.wf-shelf .wf-cover{position:relative;aspect-ratio:2/3;border-radius:12px;overflow:hidden;border:1px solid var(--line,#ddd6c9);background:var(--surface-3,#eee7db);display:grid;place-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}
.wf-shelf .wf-cover img{width:100%;height:100%;object-fit:contain;padding:10px;display:block;pointer-events:none}
.wf-shelf .wf-cover.wf-cover-text{padding:14px}
.wf-shelf .wf-cover.wf-cover-text span{font-family:var(--font-serif,serif);font-size:14px;line-height:1.5;text-align:center;color:var(--ink-soft,#6c675c);display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;word-break:normal;white-space:normal}

/* 卡片文字区 */
.wf-shelf .wf-book-body{display:flex;flex-direction:column;gap:6px;padding:10px 2px 0;min-width:0}
.wf-shelf .wf-book-body h3.wf-book-title{font-family:var(--font-serif,serif);font-size:15px;line-height:1.45;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;word-break:normal;white-space:normal;text-align:left;writing-mode:horizontal-tb;text-orientation:mixed}
.wf-shelf .wf-book-body p.wf-book-author{font-size:12px;color:var(--text-muted,#777);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:100%}
.wf-shelf .wf-book-tags{display:flex;gap:6px;flex-wrap:wrap;align-items:center;min-height:18px}
.wf-shelf .wf-book-status{font-size:11px;letter-spacing:.5px;color:var(--accent,#986145)}
.wf-shelf .wf-book-genre{font-size:11px;line-height:1;border:1px solid var(--line,#ddd6c9);border-radius:6px;padding:2px 7px;color:var(--ink-soft,#6c675c);max-width:100%;min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:normal}
.wf-shelf .wf-book-body .wf-rating{color:#ac7b39;letter-spacing:2px;font-size:12px;margin:0}

/* 纯图标动作按钮：热区不小于 36×36 */
.wf-shelf .wf-book-actions{display:flex;gap:4px;margin-top:10px;flex-wrap:nowrap}
.wf-shelf .wf-book-act{width:36px;height:36px;min-width:36px;display:inline-grid;place-items:center;border:0;background:transparent;border-radius:10px;cursor:pointer;color:var(--muted,#777);padding:0}
.wf-shelf .wf-book-act:hover{background:var(--surface-2,#eee9df);color:var(--ink,#292721)}
.wf-shelf .wf-book-act .icon{width:18px;height:18px}
.wf-shelf .wf-book-act.is-danger:hover{background:var(--danger-soft,#fbeaea);color:var(--danger,#c0392b)}

/* 长按 / 悬停动作名称气泡 */
.wf-tip{position:fixed;z-index:200;background:#2b2721;color:#fff;font-size:12px;line-height:1.5;padding:5px 9px;border-radius:7px;pointer-events:none;transform:translate(-50%,-135%);white-space:nowrap;box-shadow:0 4px 14px #0003}

/* 读完墙挂载容器 */
.wf-reading-wall{margin-top:24px;display:grid;gap:14px}

/* 资料弹窗内的封面预览（点开详情才请求原图）；contain 完整显示，不裁主体 */
.wf-meta-cover{margin:0 0 8px;text-align:center}
.wf-meta-cover img{display:block;max-width:120px;max-height:180px;border-radius:10px;margin:0 auto;object-fit:contain;padding:8px;background:var(--surface-3,#eee7db);border:1px solid var(--line,#ddd6c9)}
.wf-meta-cover-actions{display:flex;justify-content:center;margin:0 0 12px}

/* 类型：预设胶囊 + 自定义输入 */
.wf-genre-field{gap:8px}
.wf-genre-caps{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.wf-genre-pill{font-size:12px;line-height:1;border:1px solid var(--line,#d5d1c3);border-radius:999px;padding:6px 11px;background:var(--surface,#fbf8f1);color:var(--ink-soft,#6c675c);cursor:pointer}
.wf-genre-pill.is-active{background:var(--accent,#986145);border-color:var(--accent,#986145);color:#fff9f2}
.wf-genre-custom{flex:1 1 120px;min-width:120px}

@media(max-width:760px){.wf-shelf .wf-books{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:390px){.wf-shelf .wf-books{gap:10px}}

/* === 2.40.74 排版收口（纯 CSS，不改 JS）：阅读删除按钮去底框，仅留图标，热区保持 36×36 === */
.wf-shelf .wf-book-act.is-danger{
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
  min-width:36px!important;min-height:36px!important;
  width:36px!important;height:36px!important;
}
.wf-shelf .wf-book-act.is-danger:hover{background:transparent!important}
.wf-shelf .wf-book-act.is-danger .icon{
  width:18px!important;height:18px!important;
  min-width:18px!important;min-height:18px!important;
}
