/* WattPades — Bookshelf / History / SEO-copy styles (loaded after style.css) */

/* ---- 收藏/历史角标 ---- */
.shelf-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff6b8a, #8a4bff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  vertical-align: top;
}

/* ---- 收藏按钮（详情页 / 阅读页） ---- */
.btn-fav { cursor: pointer; user-select: none; }
.btn-fav.on {
  background: linear-gradient(135deg, #ff6b8a, #8a4bff) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.btn-fav .fav-heart { display: inline-block; margin-right: 6px; }

/* 阅读页顶部工具 */
.reader-tools .tool-btn.fav-on { color: #ff6b8a; }
.reader-tools .tool-btn.fav-on::after { content: ''; }

/* ---- SEO 文案区（详情页 / 静态书籍页） ---- */
.seo-copy { margin-top: 34px; }
.seo-copy .seo-block {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, rgba(138, 75, 255, .15));
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 20px;
}
.seo-copy h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--heading, #3b2a4a);
  margin: 0 0 14px;
}
.seo-copy h2 .seo-kicker {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a4bff;
  font-weight: 800;
  margin-right: 10px;
}
.seo-copy p { line-height: 1.9; margin: 0 0 12px; color: var(--text, #5b4a66); }
.seo-copy p:last-child { margin-bottom: 0; }

.review-box {
  background: linear-gradient(135deg, rgba(255, 107, 138, .08), rgba(138, 75, 255, .08));
  border-left: 4px solid #8a4bff;
}
.review-box .review-sign {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #8a4bff;
  margin-top: 6px;
  font-size: .95rem;
}

/* ---- 首页关键词导流条（静态、可被爬虫读取） ---- */
.seo-band {
  margin: 10px 0 4px;
  padding: 26px 30px;
  border-radius: 20px;
  background:
    radial-gradient(1200px 300px at 10% 0%, rgba(255, 107, 138, .18), transparent 60%),
    radial-gradient(1000px 300px at 90% 100%, rgba(138, 75, 255, .18), transparent 60%),
    var(--card-bg, #fff);
  border: 1px solid var(--border, rgba(138, 75, 255, .18));
}
.seo-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: var(--heading, #3b2a4a);
  margin: 0 0 10px;
}
.seo-band p { margin: 0 0 10px; line-height: 1.85; color: var(--text, #5b4a66); max-width: 780px; }
.seo-band ul { margin: 8px 0 12px; padding-left: 20px; color: var(--text, #5b4a66); line-height: 1.9; }
.seo-band .seo-keywords { font-size: .85rem; color: #8a4bff; font-weight: 700; letter-spacing: .3px; }

/* ---- 书架 / 历史页 ---- */
.shelf-tabs { display: flex; gap: 10px; margin: 26px 0 18px; flex-wrap: wrap; }
.shelf-tab {
  border: 1px solid rgba(138, 75, 255, .35);
  background: transparent;
  color: #8a4bff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s ease;
}
.shelf-tab.active { background: linear-gradient(135deg, #ff6b8a, #8a4bff); color: #fff; border-color: transparent; }
.shelf-tab .tab-num { opacity: .75; margin-left: 5px; }

.shelf-panel[hidden] { display: none !important; }
.shelf-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shelf-head-row h2 { margin: 0; font-family: 'Playfair Display', serif; }
.link-btn {
  background: none;
  border: none;
  color: #8a4bff;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 2px;
  text-decoration: underline;
}
.link-btn.danger { color: #ff6b8a; }

/* 收藏卡片上放一个移除心形 */
.shelf-card-wrap { position: relative; }
.shelf-rm {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  color: #ff6b8a;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  transition: transform .15s ease;
}
.shelf-rm:hover { transform: scale(1.12); }

/* 历史列表 */
.hist-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.hist-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, rgba(138, 75, 255, .15));
  border-radius: 16px;
}
.hist-cover { width: 44px; height: 62px; border-radius: 6px; object-fit: cover; flex: none; }
.hist-main { flex: 1; min-width: 0; }
.hist-main a { color: inherit; text-decoration: none; }
.hist-title { font-weight: 800; color: var(--heading, #3b2a4a); font-size: .98rem; }
.hist-chapter { font-size: .82rem; color: #8a4bff; font-weight: 700; margin-top: 2px; }
.hist-time { font-size: .78rem; color: var(--muted, #9a8fa5); margin-top: 2px; }
.hist-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.hist-actions .btn { padding: 7px 14px; font-size: .82rem; }
.hist-clear { text-decoration: underline; background: none; border: none; color: #ff6b8a; cursor: pointer; font-weight: 700; font-family: inherit; }

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  border: 2px dashed rgba(138, 75, 255, .25);
  border-radius: 20px;
  color: var(--muted, #9a8fa5);
}
.empty-state .empty-icon { font-size: 44px; margin-bottom: 12px; }
.empty-state h3 { font-family: 'Playfair Display', serif; color: var(--heading, #3b2a4a); margin: 0 0 8px; }
.empty-state p { margin: 0 0 16px; }

/* ---- 静态书籍 SEO 页 ---- */
.bookpage-main { padding: 8px 0 30px; }
.breadcrumb { font-size: .85rem; color: var(--muted, #9a8fa5); margin: 18px 0 4px; }
.breadcrumb a { color: #8a4bff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.bookpage-hero { display: flex; gap: 28px; margin: 16px 0 8px; flex-wrap: wrap; }
.bookpage-hero .book-cover { width: 220px; }
.bookpage-hero .book-cover img { width: 100%; border-radius: 12px; box-shadow: 0 8px 30px rgba(59, 42, 74, .18); }
.bookpage-info { flex: 1; min-width: 260px; }
.bookpage-info h1 { font-family: 'Playfair Display', serif; margin: 2px 0 8px; font-size: 1.9rem; color: var(--heading, #3b2a4a); }
.bookpage-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted, #9a8fa5); font-size: .9rem; margin-bottom: 10px; }
.bookpage-meta b { color: var(--text, #5b4a66); }
.bookpage-tags { margin: 4px 0 14px; }
.bookpage-tags span {
  display: inline-block;
  background: rgba(138, 75, 255, .1);
  color: #8a4bff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .8rem;
  font-weight: 700;
  margin: 0 6px 6px 0;
}
.bookpage-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.bookpage-facts {
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  border: 1px solid var(--border, rgba(138,75,255,.15));
  border-radius: 14px; padding: 12px 18px; margin: 16px 0 4px;
  background: var(--card-bg,#fff); color: var(--muted,#9a8fa5); font-size: .88rem;
}
.bookpage-facts b { color: var(--heading,#3b2a4a); display: block; font-size: 1.05rem; }

/* ===== Tag aggregation pages (tags/*.html) ===== */
.tag-hero { padding: 26px 0 6px; }
.tag-hero h1 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--text, #3a2a44);
  margin: 0 0 6px;
}
.tag-sub { color: var(--muted, #9a8fa5); font-size: 0.95rem; margin: 0 0 14px; }
.taglink { text-decoration: none; }
.taglink:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(138, 75, 255, .22); }
.tag-seo { background: linear-gradient(135deg, rgba(255, 107, 138, .05), rgba(138, 75, 255, .06));
  border: 1px solid rgba(138, 75, 255, .14); border-radius: 16px; padding: 22px 26px; margin-top: 18px; }
.tag-seo .seo-kicker { color: var(--accent, #8a4bff); }
.hook-list { margin: 8px 0 16px; padding-left: 20px; color: var(--text, #5b4a66); line-height: 1.85; }
.hook-list li::marker { color: var(--accent, #8a4bff); }
.tagcloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tagchip { cursor: pointer; text-decoration: none; }
.tagchip i { font-style: normal; font-size: .78em; background: rgba(138,75,255,.14); color: var(--accent,#8a4bff);
  border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.rec-meta { display: block; font-size: .82em; color: var(--muted, #9a8fa5); margin-top: 2px; }
.cate-note { font-size: .85rem; color: var(--muted, #9a8fa5); margin: 6px 0 16px; }
.tagpill-more { font-weight: 800; color: var(--accent, #8a4bff) !important; }
