/* ========== PC 端 ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .04);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding: 18px 16px; }

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 4px 10px rgba(121, 151, 71, .18); }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-size: 23px; font-weight: 700; color: var(--brand-dark); letter-spacing: .5px; }
.logo-text em { font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: .4px; }

.search {
  flex: 1; max-width: 560px; display: flex; align-items: center;
  background: #f5f7fa; border: 1px solid transparent; border-radius: var(--pill);
  padding: 3px 3px 3px 18px; transition: all .2s;
}
.search:focus-within { background: #fff; border-color: var(--brand-light); box-shadow: 0 0 0 4px rgba(121, 151, 71, .1); }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 9px 0; font-size: 14px; color: var(--text); }
.search input::placeholder { color: #b6b9c0; }
.search input::-webkit-search-cancel-button { display: none; }
.search button {
  flex: none; padding: 0 24px; height: 38px; border-radius: var(--pill); color: #fff;
  font-size: 14px; background: linear-gradient(135deg, #8cb25a, #6f9440);
  box-shadow: 0 4px 10px rgba(121, 151, 71, .24); transition: all .2s;
}
.search button:hover { box-shadow: 0 6px 16px rgba(121, 151, 71, .32); }

.header-user { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-2); flex: none; }
.header-user form { display: inline; }
.header-user > a { position: relative; padding: 4px 0; }
.header-user > a:hover { color: var(--brand); }
.header-user .nick {
  color: var(--brand-dark); font-weight: 600; max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.header-user .link-btn { color: var(--muted); font-size: 13px; }
.header-user .link-btn:hover { color: #f56c6c; }

.site-nav { background: linear-gradient(90deg, #93a772 0%, #799747 100%); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .06); }
.site-nav .container { display: flex; gap: 2px; height: 48px; align-items: center; }
.site-nav a {
  padding: 0 20px; height: 34px; line-height: 34px; color: rgba(255, 255, 255, .94);
  font-size: 15px; border-radius: var(--pill); transition: background .2s, color .2s;
}
.site-nav a:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- 首页 ---------- */
.home-layout {
  --home-top-h: 400px;
  display: grid; gap: 16px; padding-top: 20px; align-items: stretch;
  grid-template-columns: 220px minmax(0, 1fr) 230px;
  grid-template-areas:
    "side focus rank"
    "new new new"
    "random random random"
    "blocks blocks blocks";
}
.home-side { grid-area: side; min-width: 0; }
.home-rank { grid-area: rank; min-width: 0; }
.home-side .panel, .home-rank .panel, .home-focus {
  margin-bottom: 0; height: var(--home-top-h); display: flex; flex-direction: column;
}
.home-side .cat-list, .home-rank .rank-list { flex: 1; min-height: 0; overflow-y: auto; }

.home-focus {
  grid-area: focus; min-width: 0; margin-bottom: 0; padding: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.home-focus .panel-head { margin: 0; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); }
.home-focus .empty { padding: 60px 0; }
.home-focus .carousel { flex: none; height: 340px; min-height: 0; }
.home-focus .carousel-caption strong { font-size: 21px; }

.home-new { grid-area: new; min-width: 0; margin-bottom: 0; }
.home-random { grid-area: random; min-width: 0; margin-bottom: 0; }
.home-blocks { grid-area: blocks; min-width: 0; margin-bottom: 0; }
.home-layout > .panel { min-width: 0; overflow: hidden; }
.new-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }

.new-feature {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; padding: 12px; border-radius: var(--radius-sm);
  background: #fbfcf9; border: 1px solid #eff3e8; transition: box-shadow .2s;
}
.new-feature:hover { box-shadow: var(--shadow); }
.new-cover { width: 132px; height: 176px; }
.new-cover img, .new-cover .cover-fallback {
  width: 132px; height: 176px; object-fit: cover; border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}
.new-cover .cover-fallback { font-size: 18px; padding: 14px 10px; }
.new-name { font-size: 16px; font-weight: 600; color: var(--text); }
.new-author { font-size: 12px; color: var(--muted); }
.new-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.new-desc {
  font-size: 12px; color: var(--muted); line-height: 1.7; text-align: left;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.new-btn {
  margin-top: 4px; padding: 5px 18px; border-radius: var(--pill); font-size: 12px;
  color: #fff; background: linear-gradient(135deg, var(--brand-light), var(--brand));
}

.new-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; }
.new-item {
  display: flex; gap: 12px; padding: 10px 4px; min-width: 0;
  border-bottom: 1px dashed #f0f2f5;
}
.new-item-cover { display: block; width: 84px; height: 112px; flex: none; }
.new-item-cover img, .new-item-cover .cover-fallback {
  width: 84px; height: 112px; object-fit: cover; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .13);
}
.new-item-cover .cover-fallback { font-size: 13px; padding: 8px 6px; }
.new-item-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.new-item-info h3 {
  font-size: 14px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.new-item-info h3 a { color: inherit; }
.new-item:hover .new-item-info h3 { color: var(--brand); }
.new-item-desc {
  font-size: 12px; color: var(--muted); line-height: 1.65; height: 40px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.new-item-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: auto; font-size: 12px; color: var(--muted);
}

.book-grid.random-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cat-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 10px; border-bottom: 1px dashed #f0f2f5; font-size: 13px;
  border-radius: var(--radius-sm); transition: background .2s;
}
.cat-list li:last-child { border-bottom: 0; }
.cat-list li:hover { background: var(--brand-soft); }
.cat-list li:hover a { color: var(--brand-dark); }
.cat-list em { color: #b1b5bd; font-style: normal; font-size: 12px; }

.rank-list li {
  display: flex; align-items: center; gap: 10px; padding: 10px 4px;
  font-size: 13px; white-space: nowrap; overflow: hidden;
  border-bottom: 1px dashed #f0f2f5;
}
.rank-list li:last-child { border-bottom: 0; }
.rank-list li:hover a { color: var(--brand); }
.rank-no {
  display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center;
  border-radius: 6px; background: #f2f3f5; font-size: 11px; color: #909399; flex: none;
}
.rank-list li:nth-child(1) .rank-no { background: linear-gradient(135deg, #ffc95c, #f0a020); color: #fff; }
.rank-list li:nth-child(2) .rank-no { background: linear-gradient(135deg, #c3c9d1, #9aa3ad); color: #fff; }
.rank-list li:nth-child(3) .rank-no { background: linear-gradient(135deg, #e0a97e, #c98252); color: #fff; }
.rank-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rank-cat {
  font-style: normal; font-size: 11px; padding: 1px 8px; flex: none;
  border-radius: var(--pill); background: var(--brand-soft); color: var(--brand-dark);
}

.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.book-card {
  display: flex; gap: 12px; padding: 10px; border-radius: var(--radius-sm);
  transition: background .2s, box-shadow .2s, transform .2s;
}
.book-card:hover { background: #fafbfc; box-shadow: var(--shadow); transform: translateY(-2px); }
.book-cover { width: 92px; flex: none; }
.book-cover img, .book-cover .cover-fallback {
  width: 92px; height: 124px; object-fit: cover; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}
.book-cover .cover-fallback { font-size: 14px; padding: 8px 6px; }
.book-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.book-info h3 {
  font-size: 15px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.book-card:hover .book-info h3 { color: var(--brand); }
.book-desc {
  font-size: 12px; color: var(--muted); height: 40px; overflow: hidden;
  line-height: 1.7; margin: 0;
}
.book-meta { font-size: 12px; color: #a8abb2; display: flex; gap: 10px; margin: 0; }
.book-tags, .row-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.row-tags { margin-bottom: 8px; }

/* ---------- 首页分类区块 ---------- */
.classify-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.classify-col {
  min-width: 0; padding-right: 18px; border-right: 1px dashed #f0f2f5;
}
.classify-col:nth-child(4n) { padding-right: 0; border-right: 0; }
.classify-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.classify-title h3 { font-size: 15px; font-weight: 600; color: var(--text); }
.classify-title a { font-size: 12px; color: var(--muted); }
.classify-title a:hover { color: var(--brand); }
.classify-main { display: flex; gap: 10px; margin-bottom: 8px; }
.classify-cover { width: 76px; height: 102px; flex: none; }
.classify-cover img, .classify-cover .cover-fallback {
  width: 76px; height: 102px; object-fit: cover; border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}
.classify-cover .cover-fallback { font-size: 12px; padding: 6px 5px; }
.classify-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.classify-info strong {
  font-size: 13px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.classify-main:hover strong { color: var(--brand); }
.classify-info em {
  font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.classify-links li {
  display: flex; justify-content: space-between; gap: 8px; padding: 5px 0;
  font-size: 12.5px; white-space: nowrap;
}
.classify-links a { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.classify-links a:hover { color: var(--brand); }
.classify-links span { color: #b6b9c0; font-size: 12px; flex: none; }


/* ---------- 列表页 ---------- */
.page { padding-top: 20px; padding-bottom: 20px; }
.list-head h1 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.list-head p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

.filter-bar label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.filter-bar select { height: 36px; }

.search-hint {
  padding: 10px 14px; margin-bottom: 14px; border-radius: var(--radius);
  background: #eef6ff; border: 1px solid #c6e2ff; color: #1890ff;
  font-size: 13px; line-height: 1.5;
}

.book-list .book-row {
  display: flex; gap: 18px; background: #fff; border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; border: 1px solid var(--line);
  transition: box-shadow .2s, transform .2s;
}
.book-list .book-row:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.row-cover { width: 92px; flex: none; }
.row-cover img, .row-cover .cover-fallback {
  width: 92px; height: 124px; object-fit: cover; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}
.row-cover .cover-fallback { font-size: 14px; padding: 8px 6px; }
.row-info { min-width: 0; flex: 1; }
.row-info h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.row-info h3 a { color: var(--text); }
.row-info h3 a:hover { color: var(--brand); }
.row-desc { color: var(--text-2); font-size: 13px; margin-bottom: 10px; line-height: 1.75; }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }

/* ---------- 详情页 ---------- */
.book-head { display: flex; gap: 26px; }
.book-cover-lg { width: 192px; flex: none; }
.book-cover-lg img, .book-cover-lg .cover-fallback {
  width: 192px; height: 256px; object-fit: cover; border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}
.book-cover-lg .cover-fallback { font-size: 22px; padding: 18px 14px; letter-spacing: 2px; }
.book-cover-lg .cover-fallback::after { font-size: 12px; bottom: 10px; right: 12px; }
.book-detail-info { flex: 1; min-width: 0; }
.book-detail-info h1 { font-size: 28px; font-weight: 700; margin-bottom: 14px; letter-spacing: .5px; }
.book-sub { font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.book-sub > span { padding: 2px 10px; border-radius: var(--pill); background: #f5f6f8; }
.book-sub a { color: var(--brand-dark); }
.book-desc-full { font-size: 14px; line-height: 1.95; color: var(--text-2); margin-bottom: 20px; }
.book-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.latest { display: flex; align-items: center; gap: 8px; background: var(--brand-soft); border: 1px solid #e3ecd3; border-left: 3px solid var(--brand); }
.latest a { color: var(--brand-dark); font-weight: 500; }
.latest em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: auto; }

.chapter-group { margin-bottom: 8px; }
.chapter-group summary {
  cursor: pointer; font-size: 14px; color: var(--brand-dark); font-weight: 500;
  padding: 8px 10px; border-radius: 6px; list-style: none;
}
.chapter-group summary::-webkit-details-marker { display: none; }
.chapter-group summary::before { content: "›"; display: inline-block; margin-right: 6px; transition: transform .2s; }
.chapter-group[open] summary::before { transform: rotate(90deg); }
.chapter-group summary:hover { background: var(--brand-soft); }
.chapter-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px 8px; padding: 6px 0 8px 8px; }
.chapter-list a {
  font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; padding: 4px 10px; border-radius: 6px; transition: all .15s;
}
.chapter-list a:hover { color: var(--brand-dark); background: var(--brand-soft); }

/* ---------- 阅读页主题派生变量（仅 PC，移动端由 m.css 处理） ---------- */
body.read-theme-light { --read-surface: #fff; --read-border: #ebeef5; --read-muted: #909399; --read-btn-bg: #f5f6f8; --read-shadow: rgba(0,0,0,.06); --read-link: var(--brand-dark); }
body.read-theme-sepia { --read-surface: #fffdf0; --read-border: #e8e4c8; --read-muted: #8a8570; --read-btn-bg: #f3ecd2; --read-shadow: rgba(120,110,60,.08); --read-link: #6b5a1e; }
body.read-theme-blue { --read-surface: #f0fcff; --read-border: #cdeef5; --read-muted: #6b7e85; --read-btn-bg: #dff0f5; --read-shadow: rgba(60,100,110,.08); --read-link: #1a6b7a; }
body.read-theme-green { --read-surface: #d4f0d8; --read-border: #a8d8b0; --read-muted: #4a5d44; --read-btn-bg: #b8e0be; --read-shadow: rgba(60,90,60,.1); --read-link: #2e6b35; }
body.read-theme-tan { --read-surface: #dcc098; --read-border: #b89a70; --read-muted: #5a4a30; --read-btn-bg: #c8a878; --read-shadow: rgba(80,60,30,.12); --read-link: #5a3a14; }
body.read-theme-dark { --read-surface: #262626; --read-border: #3a3a3a; --read-muted: #888; --read-btn-bg: #333; --read-shadow: rgba(0,0,0,.4); --read-link: #6f9440; }

/* 阅读页下 header/footer 跟随主题，避免与阅读区割裂 */
body.read-theme-light .site-header,
body.read-theme-sepia .site-header,
body.read-theme-blue .site-header,
body.read-theme-green .site-header,
body.read-theme-tan .site-header,
body.read-theme-dark .site-header {
  background: var(--read-surface);
  border-bottom-color: var(--read-border);
}
body.read-theme-light .site-footer,
body.read-theme-sepia .site-footer,
body.read-theme-blue .site-footer,
body.read-theme-green .site-footer,
body.read-theme-tan .site-footer,
body.read-theme-dark .site-footer {
  background: var(--read-surface);
  color: var(--read-muted);
  border-top: 1px solid var(--read-border);
}
body.read-theme-light .site-footer a,
body.read-theme-sepia .site-footer a,
body.read-theme-blue .site-footer a,
body.read-theme-green .site-footer a,
body.read-theme-tan .site-footer a,
body.read-theme-dark .site-footer a { color: var(--read-link); }

/* 阅读页 header 内部元素跟随主题 */
body.read-theme-light .site-header .search,
body.read-theme-sepia .site-header .search,
body.read-theme-blue .site-header .search,
body.read-theme-green .site-header .search,
body.read-theme-tan .site-header .search,
body.read-theme-dark .site-header .search {
  background: var(--read-btn-bg);
}
body.read-theme-light .site-header .search input,
body.read-theme-sepia .site-header .search input,
body.read-theme-blue .site-header .search input,
body.read-theme-green .site-header .search input,
body.read-theme-tan .site-header .search input,
body.read-theme-dark .site-header .search input {
  color: var(--read-color);
}
body.read-theme-light .site-header .search input::placeholder,
body.read-theme-sepia .site-header .search input::placeholder,
body.read-theme-blue .site-header .search input::placeholder,
body.read-theme-green .site-header .search input::placeholder,
body.read-theme-tan .site-header .search input::placeholder,
body.read-theme-dark .site-header .search input::placeholder {
  color: var(--read-muted);
}
body.read-theme-light .header-user,
body.read-theme-sepia .header-user,
body.read-theme-blue .header-user,
body.read-theme-green .header-user,
body.read-theme-tan .header-user,
body.read-theme-dark .header-user {
  color: var(--read-muted);
}
body.read-theme-light .header-user > a,
body.read-theme-sepia .header-user > a,
body.read-theme-blue .header-user > a,
body.read-theme-green .header-user > a,
body.read-theme-tan .header-user > a,
body.read-theme-dark .header-user > a {
  color: var(--read-link);
}
body.read-theme-light .logo-text em,
body.read-theme-sepia .logo-text em,
body.read-theme-blue .logo-text em,
body.read-theme-green .logo-text em,
body.read-theme-tan .logo-text em,
body.read-theme-dark .logo-text em {
  color: var(--read-muted);
}

/* ---------- 阅读页 ---------- */
.read-wrap { max-width: 1200px; padding-bottom: 24px; }
.read-wrap .breadcrumb { color: var(--read-muted, var(--muted)); }
.read-wrap .breadcrumb a { color: var(--read-link, var(--brand-dark)); }
.read-panel {
  max-width: var(--read-width, 900px); margin: 0 auto;
  background: var(--read-bg, #fff); color: var(--read-color, inherit);
  border-radius: var(--radius); padding: 40px 52px;
  box-shadow: 0 2px 20px var(--read-shadow, rgba(0, 0, 0, .06));
  border: 1px solid var(--read-border, rgba(235, 238, 245, .8));
  transition: max-width .25s, background-color .25s, color .25s;
}
.read-panel h1 { font-size: 27px; font-weight: 700; text-align: center; margin-bottom: 12px; letter-spacing: .5px; }
.read-meta { text-align: center; font-size: 12px; color: var(--read-muted, var(--muted)); margin-bottom: 18px; }
.read-meta a { color: var(--read-link, var(--brand-dark)); }
.read-toolbar {
  display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--read-color, var(--text-2));
  border-top: 1px solid var(--read-border, var(--line)); border-bottom: 1px solid var(--read-border, var(--line));
  padding: 12px 0; margin-bottom: 26px; justify-content: center;
}
.read-toolbar a, .read-toolbar button {
  padding: 4px 14px; border-radius: var(--pill); background: var(--read-btn-bg, #f5f6f8);
  color: var(--read-color, var(--text-2)); font-size: 12px; transition: all .2s;
}
.read-toolbar a:hover, .read-toolbar button:hover { background: var(--brand-soft); color: var(--brand-dark); }
.read-content {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: var(--read-font, 18px); line-height: var(--read-line, 2.1);
  color: inherit; letter-spacing: var(--read-letter, .3px);
}
.read-content p { margin-bottom: .85em; text-indent: 2em; }
.read-content a { color: var(--read-link, var(--brand)); }
.read-nav { display: flex; justify-content: center; gap: 18px; margin: 34px 0 12px; font-size: 14px; }
.read-nav a, .read-nav span {
  min-width: 110px; text-align: center; padding: 9px 20px;
  border: 1px solid var(--read-border, var(--line)); border-radius: var(--pill); background: var(--read-surface, #fff);
  color: var(--read-color, inherit); transition: all .2s;
}
.read-nav a:hover { border-color: var(--brand-light); color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.read-nav .disabled { color: var(--read-muted, #c0c4cc); background: var(--read-btn-bg, #fafafa); }
.read-tip { text-align: center; font-size: 12px; color: var(--read-muted, #b6b9c0); margin-top: 14px; }

/* 阅读设置浮层 */
.read-settings {
  position: fixed; right: 24px; top: 50%; transform: translateY(-50%); z-index: 60;
  width: 250px; padding: 16px 18px; background: var(--read-surface, #fff); border-radius: 14px;
  border: 1px solid var(--read-border, var(--line)); box-shadow: 0 14px 40px var(--read-shadow, rgba(0, 0, 0, .16));
  color: var(--read-color, var(--text));
}
.read-settings[hidden] { display: none; }
.rs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rs-head strong { font-size: 14px; color: var(--read-color, var(--text)); }
.rs-close { font-size: 18px; line-height: 1; color: var(--read-muted, var(--muted)); padding: 2px 4px; }
.rs-row { margin-bottom: 13px; }
.rs-row:last-child { margin-bottom: 0; }
.rs-label { display: block; font-size: 12px; color: var(--read-muted, var(--muted)); margin-bottom: 7px; }
.rs-group { display: flex; gap: 8px; }
.rs-group button {
  flex: 1; padding: 7px 0; border-radius: 8px; background: var(--read-btn-bg, #f5f6f8);
  font-size: 12.5px; color: var(--read-color, var(--text-2)); transition: all .2s;
}
.rs-group button:hover { background: var(--brand-soft); color: var(--brand-dark); }
.rs-group button.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.rs-value { font-size: 11px; color: var(--read-muted, var(--muted)); margin-left: 6px; }
.rs-reset { margin-top: 2px; }
.rs-reset-btn {
  width: 100%; padding: 7px 0; border-radius: var(--pill);
  background: var(--brand-soft); color: var(--brand-dark); font-size: 12px;
}


.not-found p { margin: 14px 0; color: var(--text-2); font-size: 14px; }
.not-found .btn { margin-top: 8px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: linear-gradient(180deg, #30352b, #22261e);
  color: #9ba390; margin-top: 34px; padding: 32px 0 26px; font-size: 12px;
}
.site-footer .container { line-height: 2; }
.site-footer a { color: #cdd6c1; margin-right: 14px; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.friend-links { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.copyright { margin-bottom: 6px; }
.beian { color: #8d9581; }
.beian a { color: #a9b39b; margin: 0 10px 0 0; }
.beian span { margin-right: 12px; }

@media (max-width: 1100px) {
  .home-layout { --home-top-h: 335px; grid-template-columns: 190px minmax(0, 1fr) 200px; }
  .home-focus .carousel { height: 280px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .book-grid.random-grid { grid-template-columns: repeat(2, 1fr); }
  .classify-grid { grid-template-columns: repeat(3, 1fr); }
  .classify-col:nth-child(4n) { padding-right: 18px; border-right: 1px dashed #f0f2f5; }
  .classify-col:nth-child(3n) { padding-right: 0; border-right: 0; }
  .new-wrap { grid-template-columns: 200px minmax(0, 1fr); }
  .chapter-list { grid-template-columns: repeat(3, 1fr); }
  .header-inner { gap: 18px; }
}

@media (max-width: 900px) {
  .home-layout {
    --home-top-h: 295px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "focus focus"
      "side rank"
      "new new"
      "random random"
      "blocks blocks";
  }
  .home-focus .carousel { height: 240px; }
  .new-wrap { grid-template-columns: 1fr; }
  .new-items { grid-template-columns: repeat(2, 1fr); }
  .classify-grid { grid-template-columns: repeat(2, 1fr); }
  .classify-col:nth-child(3n) { padding-right: 18px; border-right: 1px dashed #f0f2f5; }
  .classify-col:nth-child(2n) { padding-right: 0; border-right: 0; }
  .read-panel { padding: 28px 24px; }
  .book-head { flex-direction: column; }
  .book-cover-lg, .book-cover-lg img, .book-cover-lg .cover-fallback { width: 176px; }
  .book-cover-lg img, .book-cover-lg .cover-fallback { height: 235px; }
}
