.book-item {
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-glass);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform .18s var(--ease);
}

.book-item:active {
  transform: scale(0.98);
}

.book-cover {
  width: 48px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.book-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-meta {
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.book-progress {
  height: 4px;
  background: rgba(0,0,0,.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.book-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--warm));
  border-radius: 999px;
}

.book-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 4px;
}

.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== 章节目录列表（catalog.html） ===== */
.book-meta-section {
  padding: 16px;
  margin-bottom: 20px;
}

.book-meta-wrap {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.book-cover-lg {
  width: 72px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

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

.book-title-lg {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.book-author-lg {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 8px;
}

.book-desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-meta-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.meta-tag {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: rgba(110,140,255,.08);
  color: var(--primary);
  font-weight: 500;
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r);
  box-shadow: var(--shadow-glass);
  transition: transform .18s var(--ease);
}

.chapter-list-item:active {
  transform: scale(0.98);
}

.chapter-list-info {
  flex: 1;
  min-width: 0;
}

.chapter-list-no {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.chapter-list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-list-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chapter-word-count {
  font-size: 11px;
  color: var(--ink-3);
}

.chapter-read-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: rgba(94,231,223,.15);
  color: #0e8a80;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-outline:active {
  background: var(--primary-soft);
}

.catalog-chapter {
  padding: 12px 14px;
  border-radius: var(--r);
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
  transition: .18s;
}

.catalog-chapter:active {
  transform: scale(0.98);
}

.catalog-chapter.read {
  color: var(--ink-3);
}

.catalog-chapter.active {
  background: linear-gradient(135deg, var(--primary), var(--warm));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

.reader-view {
  background: rgba(255,253,249,.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 20px;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink);
  border-radius: var(--r-lg);
  min-height: calc(100vh - 280px);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow-glass);
}

.reader-view.theme-night {
  background: rgba(30, 32, 40, .96);
  color: #e8e6e3;
}

.reader-view.theme-paper {
  background: #f5efe0;
  color: #3a2e1f;
}

.reader-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.reader-p {
  margin: 0 0 14px;
  text-indent: 2em;
}

.reader-selection-hint {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed rgba(0,0,0,.08);
}

.reader-controls {
  position: fixed;
  bottom: calc(96px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: 430px;
  width: calc(100% - 32px);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 20px rgba(110,140,255,.08);
  padding: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 35;
}

.reader-ctrl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: var(--r);
  cursor: pointer;
  color: var(--ink-2);
  font-size: 11px;
  transition: .18s;
}

.reader-ctrl-btn:active {
  background: rgba(124,92,252,.1);
}

.reader-ctrl-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reader-ctrl-btn.active {
  color: var(--primary);
}

.font-size-panel {
  display: none;
  position: fixed;
  bottom: calc(160px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: 400px;
  padding: 16px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  z-index: 50;
}

.font-size-panel.show {
  display: block;
  animation: slideUp .25s var(--ease);
}

.font-size-panel label {
  font-size: 13px;
  color: var(--ink-2);
  display: block;
  margin-bottom: 10px;
}

.font-size-slider {
  width: 100%;
  accent-color: var(--primary);
}

.font-size-value {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 8px;
}

.theme-picker {
  display: none;
  position: fixed;
  bottom: calc(160px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: 400px;
  padding: 16px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  z-index: 50;
}

.theme-picker.show {
  display: block;
  animation: slideUp .25s var(--ease);
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.theme-option {
  padding: 12px 8px;
  border-radius: var(--r);
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .2s;
}

.theme-option.active {
  border-color: var(--primary);
}

.theme-option[data-theme="light"] { background: rgba(255,253,249,.96); color: var(--ink); }
.theme-option[data-theme="night"] { background: #1e2028; color: #e8e6e3; }
.theme-option[data-theme="paper"] { background: #f5efe0; color: #3a2e1f; }

.summary-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.summary-modal.show {
  display: flex;
}

.summary-sheet {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 20px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideUp .3s var(--ease);
}

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.summary-head h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.summary-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-3);
  background: rgba(0,0,0,.04);
}

.summary-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-body {
  flex: 1;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  padding: 4px 2px;
}

.summary-body .bubble-caret {
  display: inline-block;
  width: 1px;
  background: var(--ink);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  height: 16px;
  vertical-align: middle;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: none; }
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

.search-bar svg {
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}

/* ===== 阅读器页面（reader.html） ===== */
.reader-container {
  padding-bottom: 20px;
}

.reader-header-info {
  text-align: center;
  margin-bottom: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.reader-chapter-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  background: rgba(110,140,255,.08);
  padding: 2px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 8px;
}

.reader-chapter-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
}

.reader-view {
  background: rgba(255,254,251,.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 20px;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink);
  border-radius: var(--r-lg);
  min-height: calc(100vh - 280px);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow-glass);
}

.reader-view.theme-night {
  background: #1e2028;
  color: #e8e6e3;
  border-color: rgba(255,255,255,.06);
}

.reader-view.theme-paper {
  background: #f5efe0;
  color: #3a2e1f;
}

.reader-p {
  margin: 0 0 14px;
  text-indent: 2em;
}

.guest-login-prompt {
  text-align: center;
  padding: 28px 20px;
  margin-top: 24px;
  border-top: 1px dashed rgba(0,0,0,.1);
}

.guest-login-icon {
  color: var(--primary);
  margin-bottom: 12px;
}

.guest-login-icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-login-text {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 16px;
}

.guest-login-prompt .btn {
  margin: 0 6px;
}

.reader-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.reader-nav .btn {
  flex: 1;
  max-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.reader-nav .btn svg {
  width: 16px;
  height: 16px;
}

/* ===== 阅读器控制面板 ===== */
.controls-panel {
  padding: 14px;
}

.control-group {
  margin-bottom: 14px;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-label {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
  font-weight: 500;
}

.controls-panel .font-size-slider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.size-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: .15s;
}

.size-btn:active {
  background: rgba(124,92,252,.1);
  color: var(--primary);
}

.controls-panel .font-size-slider input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
}

.theme-switcher {
  display: flex;
  gap: 6px;
}

.theme-btn {
  flex: 1;
  padding: 8px 4px;
  border-radius: var(--r);
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  transition: .2s;
  text-align: center;
}

.theme-btn.active {
  background: rgba(124,92,252,.1);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.control-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.control-actions .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  padding: 8px 10px;
}

.control-actions .btn svg {
  width: 16px;
  height: 16px;
}

/* ===== 阅读模块：重设计 ===== */
.reader-container-new {
  padding-top: 8px;
}

/* 文章操作区：2个按钮+2个标签 */
.reader-article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 16px;
  margin-bottom: 4px;
  border-bottom: 1px dashed rgba(0,0,0,.06);
}

.action-btn-group,
.action-tag-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: none;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s, opacity .2s;
  font-family: inherit;
}

.action-btn-settings {
  background: rgba(124,92,252,.1);
  color: var(--primary);
}
.action-btn-settings:hover { background: rgba(124,92,252,.16); }

.action-btn-summary {
  background: linear-gradient(135deg, var(--primary), var(--warm));
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,92,252,.3);
}
.action-btn-summary:disabled {
  opacity: .45;
  box-shadow: none;
  cursor: not-allowed;
}
.action-btn:active:not(:disabled) { transform: scale(.95); }

.action-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1.5px solid rgba(0,0,0,.08);
  background: #fff;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
}

.action-tag:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.tag-bookmark.active {
  background: rgba(124,92,252,.1);
  color: var(--primary);
  border-color: rgba(124,92,252,.3);
}

.tag-favorite.active {
  background: rgba(255,107,107,.1);
  color: #F5576C;
  border-color: rgba(255,107,107,.35);
}

.tag-bookmark:active:not(:disabled),
.tag-favorite:active:not(:disabled) { transform: scale(.94); }

.guest-login-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 段落划线工具栏 */
.text-selection-toolbar {
  position: absolute;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(34,34,42,.96);
  backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.hl-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
}

.hl-btn:hover { background: rgba(255,255,255,.1); }
.hl-btn:active { background: rgba(255,255,255,.18); }

.hl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.45);
  display: inline-block;
}

.hl-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.2);
  margin: 0 2px;
}

.hl-fav { color: #fff; }
.hl-fav svg { stroke: currentColor; }

.hl-close {
  color: rgba(255,255,255,.7);
  width: 26px;
  height: 26px;
}
.hl-close:hover { background: rgba(255,255,255,.15); color: #fff; }
.hl-close svg { stroke: currentColor; }

/* 选中颜色的高亮效果 */
.reader-p mark.hl-yellow { background: rgba(255,217,61,.55); color: inherit; border-radius: 2px; padding: 1px 2px; }
.reader-p mark.hl-green { background: rgba(107,203,119,.45); color: inherit; border-radius: 2px; padding: 1px 2px; }
.reader-p mark.hl-pink { background: rgba(255,154,162,.5); color: inherit; border-radius: 2px; padding: 1px 2px; }

/* 段落被收藏的角标效果 */
.reader-p.favorited {
  position: relative;
  padding-left: 14px;
}
.reader-p.favorited::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 2px;
  color: #FFB800;
  font-size: 14px;
}

/* Modal 通用 */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-root[hidden] { display: none; }

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  animation: fadeIn .18s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-body-new {
  position: relative;
  width: 100%;
  max-width: 390px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 18px 18px 24px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.15);
  animation: slideUp .24s var(--ease);
  box-sizing: border-box;
}

.modal-body-summary { max-height: 75vh; display: flex; flex-direction: column; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  margin-bottom: 14px;
}

.modal-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.modal-section {
  padding: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.modal-foot {
  margin-top: 8px;
}

.modal-foot .btn.full { width: 100%; justify-content: center; }

/* 主题按钮 预览色块版 */
.theme-switcher-new {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.theme-switcher-new .theme-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.08);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

.theme-switcher-new .theme-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124,92,252,.05);
  box-shadow: 0 0 0 3px rgba(124,92,252,.1);
}

.theme-preview {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.08);
}
.preview-day { background: linear-gradient(135deg, #FFFFFF, #F5F5F8); }
.preview-warm { background: linear-gradient(135deg, #FFF8E7, #FDEDC7); }
.preview-cool { background: linear-gradient(135deg, #EAF6FF, #CFE8FF); }
.preview-night { background: linear-gradient(135deg, #1C1E29, #2D2F3E); }

/* AI 总结弹窗内容 */
.summary-content {
  flex: 1;
  overflow-y: auto;
  min-height: 160px;
  margin-bottom: 12px;
  padding: 4px 2px;
}

.summary-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
  color: var(--ink-3);
}

.summary-loading p {
  margin: 0;
  font-size: 13px;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(124,92,252,.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.summary-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.summary-body h5 {
  margin: 4px 0;
  font-size: 15px;
  color: var(--primary);
  font-weight: 700;
}

.summary-body ul {
  margin: 0;
  padding-left: 18px;
}

.summary-body li { margin-bottom: 4px; }

/* 主题模式 全局应用 */
body.reader-theme-warm {
  --reader-bg: #FFF8E7;
  --reader-text: #4C3B1F;
}
body.reader-theme-warm .reader-view-new {
  background: var(--reader-bg);
  color: var(--reader-text);
}
body.reader-theme-warm .reader-p { color: var(--reader-text) !important; }

body.reader-theme-cool {
  --reader-bg: #F2FAFF;
  --reader-text: #1D3557;
}
body.reader-theme-cool .reader-view-new {
  background: var(--reader-bg);
  color: var(--reader-text);
}
body.reader-theme-cool .reader-p { color: var(--reader-text) !important; }

body.reader-theme-night {
  --reader-bg: #1A1C26;
  --reader-text: #E3E6F0;
}
body.reader-theme-night .reader-container,
body.reader-theme-night .reader-view-new,
body.reader-theme-night {
  background: var(--reader-bg) !important;
}
body.reader-theme-night .reader-p,
body.reader-theme-night .reader-chapter-title,
body.reader-theme-night .reader-chapter-tag {
  color: var(--reader-text) !important;
}
body.reader-theme-night .glass-card {
  background: #232635 !important;
  border-color: #313446 !important;
  color: var(--reader-text) !important;
}
