/* ========================================================
   豆瓣阅读风格 全站主样式 (read.abid.bid)
   高质感纸质排版、克制优雅、微醺文学气质
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --bg-page: #faf8f5;
  --bg-card: #ffffff;
  --text-main: #2b2b2b;
  --text-muted: #666666;
  --text-faint: #999999;
  
  --brand-green: #387642;
  --brand-green-hover: #2d5e35;
  --brand-red: #a93226;
  --brand-gold: #b38b4d;
  
  --border-light: #eae6df;
  --border-subtle: #f0ece5;
  
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.09);
  
  --max-width: 1080px;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-green);
}

/* 全站顶部微醺公告条 (由 CMS 灵活控制开关与文案) */
.site-announcement-bar {
  background: linear-gradient(90deg, #7a1624 0%, #4a0d16 100%);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  text-align: center;
  position: relative;
  z-index: 120;
}

.site-announcement-bar a {
  color: #fdf4eb;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.site-announcement-bar a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* 顶部导航栏 (对标豆瓣阅读 header) */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--brand-green);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(115, 20, 34, 0.25);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-logo:hover .brand-icon {
  transform: scale(1.08);
}

.brand-logo::before {
  content: none !important;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  font-weight: 400;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
  color: var(--brand-green);
}

/* 搜索框 */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 180px;
  padding: 6px 12px 6px 30px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: all 0.25s ease;
}

.search-input:focus {
  width: 230px;
  border-color: var(--brand-green);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(56, 118, 66, 0.1);
}

.search-icon {
  position: absolute;
  left: 10px;
  font-size: 12px;
  color: var(--text-faint);
  pointer-events: none;
}

/* 搜索实时结果下拉层 */
.search-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
  display: none;
  z-index: 200;
  padding: 8px 0;
}

.search-dropdown.open {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-page);
}

.search-result-info h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.search-result-info p {
  font-size: 12px;
  color: var(--text-faint);
}

/* 主体容器 */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 60px;
  width: 100%;
  flex: 1;
}

/* 首页 Banner / Hero (豆瓣书卷气质) */
.home-hero {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 28px 36px;
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.home-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand-green);
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-main);
}

.hero-text p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 28px;
  text-align: center;
}

.hero-stat-val {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 900;
  color: var(--brand-green);
}

.hero-stat-lbl {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* 板块标题 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--text-main);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

#shelfSectionHeader {
  scroll-margin-top: 72px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-faint);
}

/* 特色横版主打书卡 (Featured Card) */
.featured-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 28px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
  box-shadow: var(--shadow-lift);
}

.featured-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.featured-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.badge-scale {
  display: inline-block;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  background: #fde8e8;
  color: var(--brand-red);
  letter-spacing: 0.05em;
}

.badge-cat {
  color: var(--brand-green);
  font-weight: 500;
}

.featured-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 12px 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-green);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.2s ease;
}

.btn-read:hover {
  background: var(--brand-green-hover);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

/* 分类与标签过滤器栏 */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.filter-lbl {
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 600;
  margin-right: 6px;
}

.filter-chip {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 14px;
  background: var(--bg-page);
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--brand-green);
  color: #ffffff;
}

/* ========================================================
   豆瓣阅读形态 1：竖向 5 列图书网格 (对应图一)
   ======================================================== */
.douban-vertical-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 36px 22px;
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .douban-vertical-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 18px;
  }
}

@media (max-width: 860px) {
  .douban-vertical-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 16px;
  }
}

@media (max-width: 580px) {
  .douban-vertical-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }
}

.vertical-book-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.vertical-book-card:hover {
  transform: translateY(-3px);
}

.vertical-book-card .card-cover-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.vertical-book-card .card-title-link {
  text-decoration: none;
  color: inherit;
}

.vertical-book-card .card-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #111111;
  margin: 0 0 5px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.vertical-book-card:hover .card-title {
  color: var(--brand-green);
}

.vertical-book-card .card-author {
  font-size: 13px;
  color: #777777;
  margin: 0 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 核心对齐：锁定 2 行高度 (40px)，确保整行 5 本书的底部分类标签严格水平对齐 */
.vertical-book-card .card-excerpt {
  font-size: 13px;
  color: #444444;
  line-height: 1.55;
  height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 14px 0;
  text-align: justify;
}

.vertical-book-card .card-category {
  font-size: 12px;
  color: #999999;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vertical-book-card .category-sep {
  color: #dcdcdc;
  font-weight: 300;
}

/* ========================================================
   书架作品分页器 (Douban Reading 经典纸质文学分页)
   ======================================================== */
.shelf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 44px auto;
  padding: 12px 16px;
  flex-wrap: wrap;
  user-select: none;
}

.shelf-pagination .page-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.shelf-pagination .page-nav-btn:hover:not(:disabled) {
  border-color: var(--brand-green);
  color: var(--brand-green);
  background: #fafaf8;
  box-shadow: 0 2px 6px rgba(56, 118, 66, 0.12);
  transform: translateY(-1px);
}

.shelf-pagination .page-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--border-subtle);
  color: var(--text-faint);
  box-shadow: none;
  transform: none;
}

.shelf-pagination .page-numbers-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shelf-pagination .page-num-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
  font-size: 14px;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.shelf-pagination .page-num-btn:hover:not(.active) {
  border-color: var(--brand-green);
  color: var(--brand-green);
  background: #fafaf8;
  transform: translateY(-1px);
}

.shelf-pagination .page-num-btn.active {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(56, 118, 66, 0.3);
  cursor: default;
}

.shelf-pagination .page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 36px;
  color: var(--text-faint);
  font-size: 14px;
}

.shelf-pagination .page-info-summary {
  font-size: 13px;
  color: var(--text-faint);
  margin-left: 8px;
  white-space: nowrap;
}

.shelf-empty-hint {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--text-faint);
  font-size: 14px;
  background: #ffffff;
  border: 1px dashed var(--border-light);
  border-radius: 8px;
  margin: 16px 0;
}

/* ========================================================
   豆瓣阅读形态 2：特别推荐 · 主打之作 (横向双列卡片 + 连续平滑轮播)
   ======================================================== */
.featured-carousel-section {
  margin-bottom: 40px;
  position: relative;
}

.featured-carousel-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: #555555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.carousel-arrow-btn:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
  background: #f7fbf8;
  box-shadow: 0 2px 6px rgba(56, 118, 66, 0.15);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: #dcd7ce;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-dot.active {
  width: 18px;
  background: var(--brand-green);
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 8px;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 22px;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* 仅配置 1 部时单卡展示 */
.featured-carousel-section[data-count="1"] .carousel-slide-item {
  flex: 0 0 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* 2 部或更多时，桌面端并列 2 卡片平滑轮播 */
.carousel-slide-item {
  flex: 0 0 calc(50% - 11px);
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 820px) {
  .carousel-slide-item {
    flex: 0 0 100%;
  }
}

.douban-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 44px;
}

@media (max-width: 820px) {
  .douban-horizontal-grid {
    grid-template-columns: 1fr;
  }
}

.horizontal-book-card {
  background: #ffffff;
  border: 1px solid #eeece6;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  gap: 18px;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.horizontal-book-card:hover {
  border-color: #dcd7cb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.horizontal-book-card .card-cover-wrap {
  position: relative;
  width: 108px;
  height: 156px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.horizontal-book-card .book-cover {
  width: 108px;
  height: 156px;
}

.horizontal-book-card .card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 2px 0;
}

.horizontal-book-card .info-top {
  display: flex;
  flex-direction: column;
}

.horizontal-book-card .card-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0 0 5px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-book-card:hover .card-title {
  color: var(--brand-green);
}

.horizontal-book-card .card-author {
  font-size: 13px;
  color: #777777;
  margin: 0 0 10px 0;
}

/* 豆瓣同款文学引语框 */
.horizontal-book-card .card-quote-box {
  position: relative;
  font-size: 13px;
  color: #444444;
  line-height: 1.6;
  max-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px 0;
}

.horizontal-book-card .quote-bracket {
  color: #888888;
  font-weight: 600;
  font-family: var(--font-serif);
  margin: 0 2px;
}

/* 豆瓣同款药丸标签组 (Pill Tags) */
.horizontal-book-card .card-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.horizontal-book-card .tag-pill {
  font-size: 11px;
  background: #f3f3f3;
  color: #777777;
  padding: 2px 8px;
  border-radius: 3px;
  line-height: 1.4;
  white-space: nowrap;
}

/* ========================================================
   书籍详情页样式 (Book Detail)
   ======================================================== */
.book-detail-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.book-hero {
  display: flex;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 32px;
}

.book-hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-hero-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 12px;
}

.book-hero-meta-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.meta-row {
  display: flex;
  gap: 10px;
}

.meta-label {
  color: var(--text-faint);
  width: 60px;
  flex-shrink: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag-item {
  font-size: 12px;
  padding: 2px 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-muted);
}

.tag-item:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.book-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

/* 简介部分 */
.detail-section {
  margin-bottom: 36px;
}

.detail-section-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--brand-green);
}

.book-intro-content {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-main);
  white-space: pre-line;
  background: var(--bg-page);
  padding: 20px 24px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

/* 目录列表 */
.chapter-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.chapter-toc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s;
}

.chapter-toc-item:hover {
  background: #ffffff;
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.chapter-toc-title {
  font-family: var(--font-serif);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.chapter-toc-meta {
  font-size: 12px;
  color: var(--text-faint);
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  padding: 24px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.footer-nav a {
  color: var(--brand-green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.footer-nav a:hover {
  color: var(--brand-green-hover);
  text-decoration: underline;
}

/* 响应式移动端深度适配 (彻底解决 iOS Safari 与移动端 Chrome 溢出与变形) */
@media (max-width: 768px) {
  /* 导航栏移动端紧凑排版，彻底杜绝横向撑爆 */
  .header-container {
    padding: 0 10px !important;
    height: 52px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .brand-area {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .brand-logo {
    font-size: 16px !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }
  .brand-icon {
    width: 20px !important;
    height: 20px !important;
  }
  .brand-sub {
    display: none !important; /* 手机端强制隐藏长副标，避免导航挤压溢出 */
  }
  .header-nav {
    gap: 6px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }
  .nav-link {
    font-size: 12px !important;
    padding: 3px 5px !important;
    white-space: nowrap !important;
  }
  .nav-link.nav-link-smartlink {
    padding: 3px 6px !important;
    font-size: 11px !important;
  }
  .search-wrapper {
    position: relative !important;
  }
  .search-input {
    width: 66px !important;
    font-size: 12px !important;
    padding: 4px 6px 4px 20px !important;
    border-radius: 12px !important;
  }
  .search-input:focus {
    width: 105px !important;
  }
  .search-icon {
    left: 5px !important;
    font-size: 11px !important;
  }
  .search-dropdown {
    position: fixed !important;
    top: 54px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 60vh !important;
  }

  /* 主内容容器自适应 */
  .site-main {
    padding: 14px 10px 48px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* 首页标语 Hero 卡片 */
  .home-hero {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 16px 14px !important;
    margin-bottom: 16px !important;
  }
  .hero-text h1,
  .home-hero-title {
    font-size: 19px !important;
    margin-bottom: 6px !important;
    line-height: 1.35 !important;
  }
  .hero-text p,
  .home-hero-desc {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }
  .hero-stats {
    width: 100% !important;
    justify-content: space-between !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--border-subtle) !important;
  }
  .hero-stat-val {
    font-size: 17px !important;
  }
  .hero-stat-lbl {
    font-size: 11px !important;
  }

  /* 分类过滤器移动端平滑横向滚动 */
  .filter-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 2px 2px 8px 2px !important;
    margin-bottom: 14px !important;
    gap: 6px !important;
    touch-action: pan-x !important;
  }
  .filter-bar::-webkit-scrollbar {
    display: none !important;
  }
  .filter-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 5px 12px !important;
    font-size: 13px !important;
  }

  /* 轮播组件自适应 */
  .section-header {
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    margin-bottom: 14px !important;
  }
  .section-title {
    font-size: 16px !important;
  }
  .section-subtitle {
    font-size: 12px !important;
  }
  .carousel-slide-item {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .horizontal-book-card {
    padding: 12px 10px !important;
    gap: 12px !important;
  }
  .horizontal-book-card .card-cover-wrap,
  .horizontal-book-card .book-cover {
    width: 82px !important;
    height: 118px !important;
  }
  .horizontal-book-card .card-title {
    font-size: 15px !important;
  }
  .horizontal-book-card .card-quote-box {
    display: none !important; /* 手机端隐藏过长引语框，保持精致轻盈 */
  }

  /* 书籍详情页 (重点修复：类名正确匹配 .book-hero 与外层 .book-detail-wrapper) */
  .book-detail-wrapper {
    padding: 16px 12px !important;
    border-radius: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .book-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
    padding-bottom: 18px !important;
    margin-bottom: 18px !important;
    width: 100% !important;
  }
  .book-hero-cover {
    width: 130px !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
  }
  .book-hero-cover .book-cover {
    width: 130px !important;
    height: 188px !important;
  }
  .book-hero-info {
    width: 100% !important;
    min-width: 0 !important;
  }
  .book-hero-title {
    font-size: 20px !important;
    text-align: center !important;
    margin-bottom: 12px !important;
    word-break: break-word !important;
  }
  .book-hero-meta-table {
    grid-template-columns: repeat(2, 1fr) !important;
    text-align: left !important;
    gap: 8px 10px !important;
    width: 100% !important;
    max-width: 310px !important;
    margin: 0 auto 16px auto !important;
    font-size: 13px !important;
  }
  .tag-list {
    justify-content: center !important;
    gap: 6px !important;
  }
  .book-hero-actions {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 14px !important;
  }
  .btn-read {
    width: 100% !important;
    max-width: 310px !important;
    margin: 0 auto !important;
    display: block !important;
    box-sizing: border-box !important;
    text-align: center !important;
    padding: 12px 0 !important;
    font-size: 15px !important;
    border-radius: 6px !important;
  }

  .detail-section {
    margin-bottom: 22px !important;
  }
  .detail-section-title {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }
  .book-intro-content {
    font-size: 14px !important;
    line-height: 1.75 !important;
    word-break: break-word !important;
  }
  .chapter-toc-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .chapter-toc-item {
    padding: 10px 12px !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
  }

  /* 书架网格双列紧凑排布 */
  .book-grid,
  .douban-vertical-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px 10px !important;
  }

  /* 书架作品分页器移动端适配 */
  .shelf-pagination {
    margin: 20px auto 32px auto !important;
    padding: 10px 4px !important;
    gap: 8px !important;
  }
  .shelf-pagination .page-nav-btn {
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
  .shelf-pagination .page-num-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }
  .shelf-pagination .page-info-summary {
    width: 100% !important;
    text-align: center !important;
    margin-top: 6px !important;
    margin-left: 0 !important;
    font-size: 12px !important;
  }

  /* SEO 专题区 */
  .seo-topic-index {
    padding: 16px 12px !important;
    margin-top: 32px !important;
  }
  .seo-topic-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (max-width: 360px) {
  .book-grid,
  .douban-vertical-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px 8px !important;
  }
  .book-hero-meta-table {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================================
   SEO 题材与关键词导航索引区 (SEO Topic Index)
   ======================================================== */
.seo-topic-index {
  margin-top: 56px;
  margin-bottom: 24px;
  padding: 32px 28px;
  background: #fdfcf9;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.seo-topic-header {
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.seo-topic-title {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 700;
}

.seo-topic-hint {
  font-size: 13px;
  color: var(--text-faint);
}

.seo-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 22px;
}

.seo-topic-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-green);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.seo-link-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-pill {
  font-size: 12px;
  color: var(--text-regular);
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seo-pill:hover,
.seo-pill.active {
  border-color: var(--brand-green);
  color: var(--brand-green);
  background: var(--bg-hover);
}

.seo-pill-tag {
  font-size: 12px;
  color: #7a1624;
  background: rgba(122, 22, 36, 0.05);
  border: 1px solid rgba(122, 22, 36, 0.12);
  padding: 3px 9px;
  border-radius: 12px;
}

.seo-book-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.seo-book-links li {
  margin-bottom: 8px;
  font-size: 13px;
}

.seo-book-links a {
  color: var(--text-regular);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.seo-book-links a:hover {
  color: var(--brand-green);
  text-decoration: underline;
}

.seo-author {
  color: var(--text-muted);
  font-size: 12px;
}

.seo-cat {
  color: var(--brand-green);
  font-size: 11px;
}

.seo-manifesto {
  border-top: 1px dashed var(--border-light);
  padding-top: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-faint);
}

@media (max-width: 768px) {
  .seo-topic-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* 广告系统容器美化与移动端防撑爆保护 */
.ad-slot-container {
  overflow: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.ad-unit-slot {
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.ad-unit-slot iframe,
.ad-slot-container iframe {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.ad-slot-container.ad-book-bottom-wrap {
  margin: 28px 0 20px 0;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  text-align: center;
  max-width: 100% !important;
  overflow: hidden !important;
}

.ad-slot-container.ad-reader-bottom-wrap {
  margin: 28px auto 16px auto;
  max-width: 720px;
  padding: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
  overflow: hidden !important;
}

.ad-slot-container.ad-home-banner-wrap {
  margin: 20px auto 10px auto;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 8px 0;
}

.ad-slot-container.ad-book-intro-mid-wrap {
  margin: 16px auto 20px auto;
  max-width: 728px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.ad-book-intro-slot {
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}

/* 728x90 属于 PC 宽幅 Leaderboard，在移动设备 (≤768px) 彻底隐藏，杜绝撑开 728px 导致 iOS Safari 整体缩放变形 */
@media (max-width: 768px) {
  .ad-desktop-only,
  .ad-slot-container.ad-home-banner-wrap,
  .ad-slot-container.ad-book-banner-wrap,
  .ad-unit-slot[data-ad-id="adsterra-banner-728x90"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}

/* 468x60 属于平板/PC 过渡横幅，在窄屏手机 (≤500px) 彻底隐藏，杜绝撑开 468px 导致溢出 */
@media (max-width: 500px) {
  .ad-tablet-pc-only,
  .ad-slot-container.ad-home-mid-wrap,
  .ad-slot-container.ad-book-mid-wrap,
  .ad-unit-slot[data-ad-id="adsterra-banner-468x60"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}


/* ========================================================
   PC 端屏幕左右两侧悬浮对联广告 (左侧 160x600 与右侧 160x300)
   ======================================================== */
.pc-floating-sidebars {
  position: relative;
  z-index: 1000;
}

.pc-sidebar-ad {
  position: fixed;
  top: 120px;
  width: 160px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: visible;
  transition: opacity 0.25s ease;
}

.pc-sidebar-left {
  left: 14px;
  min-height: 600px;
}

.pc-sidebar-right {
  right: 14px;
  min-height: 300px;
}

.pc-sidebar-content {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pc-sidebar-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  background: #222222;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.pc-sidebar-close:hover {
  background: #de350b;
  transform: scale(1.1);
}

/* 屏幕宽度小于 1360px 时（避免遮挡主要内容、书架与纸张），自动彻底隐藏 */
@media (max-width: 1360px) {
  .pc-floating-sidebars {
    display: none !important;
  }
}

/* ========================================================
   移动端专属底部吸底横幅 (Banner 320x50)
   ======================================================== */
.mobile-sticky-ad-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-ad-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 52px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 99990;
    align-items: center;
    justify-content: center;
    padding: 3px 0;
    box-sizing: border-box;
  }

  .mobile-sticky-close {
    position: absolute;
    top: -12px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: #222222;
    color: #ffffff;
    border-radius: 50%;
    border: 1px solid #ffffff;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .mobile-sticky-content {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 320px;
    height: 50px;
  }

  body {
    padding-bottom: 60px;
  }
}

/* 导航栏 Smartlink 高亮胶囊 */
.nav-link-smartlink {
  color: var(--brand-red, #b91c1c) !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* ========================================================
   随便读 · 未读推荐弹窗 (Random Book Recommendation Modal)
   ======================================================== */
.random-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(18, 16, 14, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.random-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.random-modal-dialog {
  position: relative;
  max-width: 580px;
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(220, 215, 205, 0.6);
  padding: 28px 30px;
  box-sizing: border-box;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.random-modal-backdrop.open .random-modal-dialog {
  transform: translateY(0) scale(1);
}

.random-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f4f3ef;
  color: #777777;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 10;
}

.random-modal-close:hover {
  background: #e5e3dc;
  color: #111111;
  transform: rotate(90deg);
}

.random-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-right: 36px;
}

.random-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #276749;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 12px;
  border-radius: 100px;
}

.random-badge-pill .badge-dot {
  width: 7px;
  height: 7px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.random-badge-pill .unread-count-pill {
  background: #276749;
  color: #ffffff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 500;
}

.random-book-body {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.random-book-cover-col {
  flex-shrink: 0;
}

.random-cover-frame {
  position: relative;
  width: 120px;
  height: 174px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.random-cover-frame .book-cover {
  width: 120px !important;
  height: 174px !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.random-book-info-col {
  flex: 1;
  min-width: 0;
}

.random-book-cat-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #888888;
  margin-bottom: 6px;
}

.random-book-category {
  color: var(--brand-green, #378e63);
  font-weight: 600;
}

.random-book-scale {
  background: #f4f3ee;
  color: #666666;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.random-book-title {
  margin: 0 0 6px 0;
  font-family: var(--font-serif, "Songti SC", "Noto Serif SC", serif);
  font-size: 21px;
  line-height: 1.35;
  color: #1f1e1c;
}

.random-book-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.random-book-title a:hover {
  color: var(--brand-green, #378e63);
}

.random-book-author {
  font-size: 13px;
  color: #666666;
  margin-bottom: 10px;
}

.random-book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.random-tag-chip {
  font-size: 11px;
  color: #777777;
  background: #f7f6f2;
  border: 1px solid #ebe9e1;
  padding: 2px 8px;
  border-radius: 4px;
}

.random-book-excerpt {
  background: #fbfaf6;
  border-left: 3px solid var(--brand-red, #8b1e2a);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-family: var(--font-serif, "Songti SC", "Noto Serif SC", serif);
  font-size: 13.5px;
  line-height: 1.65;
  color: #4a453e;
  max-height: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.random-book-excerpt p {
  margin: 0;
}

.random-modal-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #f0ede6;
}

.btn-random-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  padding: 9px 18px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  line-height: 1;
  box-sizing: border-box;
}

.btn-random-read {
  background: var(--brand-red, #8b1e2a);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(139, 30, 42, 0.25);
}

.btn-random-read:hover {
  background: #6e1620;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(139, 30, 42, 0.35);
}

.btn-random-detail {
  background: #f4f3ef;
  color: #444444 !important;
  border: 1px solid #e2dfd7;
}

.btn-random-detail:hover {
  background: #eae8e1;
  color: #111111 !important;
}

.btn-random-next {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  margin-left: auto;
}

.btn-random-next:hover {
  background: #dcfce7;
  color: #14532d;
  transform: translateY(-1px);
}

.btn-random-next:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-random-next .random-dice-icon {
  font-size: 15px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-random-next:hover .random-dice-icon {
  transform: rotate(45deg);
}

/* 全部已读完成状态 */
.random-all-read-view {
  text-align: center;
  padding: 12px 10px 6px 10px;
}

.random-all-read-view .all-read-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.random-all-read-view .all-read-title {
  font-family: var(--font-serif, "Songti SC", "Noto Serif SC", serif);
  font-size: 22px;
  color: #1f1e1c;
  margin: 0 0 10px 0;
}

.random-all-read-view .all-read-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin: 0 auto 24px auto;
  max-width: 420px;
}

.random-all-read-view .all-read-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* 移动端自适应 */
@media (max-width: 580px) {
  .random-modal-backdrop {
    padding: 12px;
  }

  .random-modal-dialog {
    padding: 20px 16px;
    max-height: 88vh;
    overflow-y: auto;
  }

  .random-modal-header {
    margin-bottom: 16px;
    padding-right: 32px;
  }

  .random-book-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .random-cover-frame {
    width: 110px;
    height: 160px;
  }

  .random-cover-frame .book-cover {
    width: 110px !important;
    height: 160px !important;
  }

  .random-book-cat-tag {
    justify-content: center;
  }

  .random-book-tags {
    justify-content: center;
  }

  .random-book-excerpt {
    text-align: left;
    max-height: 80px;
    font-size: 13px;
  }

  .random-modal-footer {
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
  }

  .btn-random-action {
    width: 100%;
    margin-left: 0 !important;
    padding: 11px 16px;
    font-size: 14px;
  }
}
