/* ===================================
   Kyxscms wanben_web 补充样式
   覆盖/兼容旧模板类名，保持源站视觉一致
   =================================== */

:root {
  /* 旧模板变量别名，防止未更新的页面报错 */
  --c-primary: var(--accent);
  --c-primary-dark: var(--accent-dim);
  --c-bg: var(--paper);
  --c-card: var(--paper-card);
  --c-text: var(--ink);
  --c-text-2: var(--ink-light);
  --c-muted: var(--ink-muted);
  --c-border: var(--border);
  --c-border-light: var(--border-light);
  --c-shadow: var(--shadow-md);
  --radius: var(--radius-md);
}

/* ===== 布局别名 ===== */
.layout {
  display: flex;
  gap: 24px;
}
.layout__main,
.layout__side {
  min-width: 0;
}
.layout__main {
  flex: 1;
}
.layout__side {
  width: 300px;
  flex-shrink: 0;
}

/* ===== 面板 / panel ===== */
.panel {
  background: var(--paper-card);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.panel__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.panel__title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ===== 面包屑 ===== */
.crumbs {
  padding: 16px 0;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.crumbs a {
  color: var(--ink-light);
}
.crumbs a:hover {
  color: var(--accent);
}
.crumbs span {
  margin: 0 8px;
  color: var(--ink-muted);
}

/* ===== 详情页（旧 .detail） ===== */
.detail {
  display: flex;
  gap: 32px;
  background: var(--paper-card);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.detail__cover {
  flex-shrink: 0;
  width: 180px;
  height: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail__main {
  flex: 1;
  min-width: 0;
}
.detail__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.detail__author {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.detail__author a {
  color: var(--accent);
}
.detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-light);
}
.detail__meta b {
  color: var(--ink);
  font-weight: 600;
}
.detail__intro {
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 20px;
  max-height: 110px;
  overflow: hidden;
  font-size: 14px;
}
.detail__btns {
  display: flex;
  gap: 12px;
}

/* ===== 按钮（旧 .btn） ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #fff;
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(184, 134, 11, 0.04);
}
.btn--lg {
  padding: 11px 32px;
  font-size: 15px;
}
.btn--accent {
  background: linear-gradient(135deg, #d4a745 0%, #b8860b 100%);
  color: #fff;
}
.btn--accent:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}

/* ===== 徽章（旧 .badge） ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  white-space: nowrap;
}
.badge--full {
  color: var(--status-full);
  background: var(--status-full-bg);
  border: 1px solid var(--status-full-border);
}
.badge--serial {
  color: var(--status-serial);
  background: var(--status-serial-bg);
  border: 1px solid var(--status-serial-border);
}

/* ===== 目录网格 ===== */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.chapter-grid > a {
  display: block;
  padding: 10px 12px;
  background: var(--paper-warm);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all var(--transition);
}
.chapter-grid > a:hover {
  background: rgba(184, 134, 11, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}
.chapter-new {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--status-serial);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

/* ===== 推荐项（旧 .rec-item） ===== */
.rec-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.rec-item:last-child {
  border-bottom: none;
}
.rec-item__cover {
  flex-shrink: 0;
  width: 64px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.rec-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-item__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rec-item__name:hover {
  color: var(--accent);
}
.rec-item__author {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.rec-item__desc {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.5;
  max-height: 36px;
  overflow: hidden;
}

/* ===== 侧边栏卡片别名 ===== */
.side-card {
  background: var(--paper-card);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.side-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.side-card__title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ===== 排行榜项别名 ===== */
.rank-item {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}
.rank-item:last-child {
  border-bottom: none;
}
.rank-item:hover {
  padding-left: 4px;
}
.rank-body {
  flex: 1;
  min-width: 0;
}
.rank-name {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-name:hover {
  color: var(--accent);
}
.rank-sub {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
  display: block;
}

/* ===== 书卡别名（旧 .book-card） ===== */
.book-card {
  text-align: center;
}
.book-card__cover {
  display: block;
  position: relative;
  width: 140px;
  height: 184px;
  margin: 0 auto 12px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  background: var(--paper-warm);
  transition: all var(--transition);
}
.book-card__cover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-card__name {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.4;
  color: var(--ink);
}
.book-card__name:hover {
  color: var(--accent);
}
.book-card__author {
  font-size: 12px;
  color: var(--ink-muted);
}
.book-card__status {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
}

/* ===== 列表页 ===== */
.filter-bar {
  background: var(--paper-card);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.filter-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
}
.filter-row:last-child {
  border-bottom: none;
}
.filter-row__label {
  width: 56px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
}
.filter-row__items {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-row__items a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--ink-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.filter-row__items a:hover {
  color: var(--accent);
  background: rgba(184, 134, 11, 0.04);
}
.filter-row__items a.is-on {
  color: #fff;
  background: var(--accent);
}
.filter-row__items a.is-on:hover {
  background: var(--accent-dim);
}

.sort-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: var(--paper-card);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  font-size: 13px;
}
.sort-bar__label {
  color: var(--ink-muted);
  margin-right: 6px;
}
.sort-bar a {
  padding: 5px 14px;
  color: var(--ink-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.sort-bar a:hover {
  color: var(--accent);
  background: rgba(184, 134, 11, 0.04);
}
.sort-bar a.is-on {
  color: #fff;
  background: var(--accent);
}

.list-card {
  display: flex;
  gap: 18px;
  padding: 18px;
  background: var(--paper-card);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}
.list-card:hover {
  box-shadow: var(--shadow-md);
}
.list-card__cover {
  flex-shrink: 0;
  width: 100px;
  height: 132px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.list-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list-card__body {
  flex: 1;
  min-width: 0;
}
.list-card__name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.list-card__name:hover {
  color: var(--accent);
}
.list-card__sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.list-card__sub a {
  color: var(--ink-light);
}
.list-card__sub a:hover {
  color: var(--accent);
}
.list-card__intro {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 10px;
  max-height: 66px;
  overflow: hidden;
}
.list-card__foot {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ===== 分页 ===== */
.pages {
  display: flex;
  justify-content: center;
  margin: 28px 0 10px;
}
.pages ul {
  display: flex;
  gap: 8px;
  list-style: none;
}
.pages li a,
.pages li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-light);
  background: var(--paper-card);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.pages li a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(184, 134, 11, 0.04);
}
.pages li.active span,
.pages li span.current {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.pages li.disabled span {
  color: var(--ink-muted);
  background: var(--paper-warm);
}

/* ===== 搜索页 / 排行榜页通用 ===== */
.search-head {
  background: var(--paper-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 20px 0 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.search-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.search-head p {
  font-size: 13px;
  color: var(--ink-muted);
}

.rank-side {
  width: 260px;
  flex-shrink: 0;
}
.rank-side__item,
.rank-side > a {
  display: block;
  padding: 14px 18px;
  background: var(--paper-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  color: var(--ink);
  font-weight: 600;
  transition: all var(--transition);
}
.rank-side__item:hover,
.rank-side > a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(4px);
}
.rank-side > a.is-on {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.rank-side > a.is-on:hover {
  background: var(--accent-dim);
}

/* ===== 新闻页 ===== */
.news-list {
  background: var(--paper-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.news-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.news-item:last-child {
  border-bottom: none;
}
.news-item__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.news-item__title:hover {
  color: var(--accent);
}
.news-item__meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.news-item__desc {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.7;
}
.news-detail {
  background: var(--paper-card);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.news-detail__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.news-detail__meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.news-detail__content {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.85;
}
.news-detail__content p {
  margin-bottom: 14px;
}

/* ===== 两栏布局别名（对应源站 .main-content / .content-left / .content-right） ===== */
.two-col {
  display: flex;
  gap: 24px;
}
.two-col__main {
  flex: 1;
  min-width: 0;
}
.two-col__side {
  width: 300px;
  flex-shrink: 0;
}

/* ===== 排行榜列表容器（源站 .rank-list 仅作用于 li，这里补充 flex 容器） ===== */
.rank-list {
  display: flex;
  flex-direction: column;
}

/* ===== 分类页 6 列书格（对应源站 .book-grid.small） ===== */
.book-grid.is-6 {
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.book-grid.is-6 .book-card__cover {
  width: 100px;
  height: 132px;
}

/* ===== 侧边栏 3 列书格（作者作品，防撑破 300px 侧栏） ===== */
.book-grid.is-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.book-grid.is-3 .book-card__cover {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
}
.book-grid.is-3 .book-card__name {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 文章详情（news.html） ===== */
.article {
  background: var(--paper-card);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.article__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.4;
}
.article__meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.article__content {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.85;
}
.article__content p {
  margin-bottom: 14px;
}
.article__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* ===== 文章列表项变体（newslists.html 使用 __cover/__body/__time/__text） ===== */
.news-item__cover {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--paper-warm);
}
.news-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-item__body {
  flex: 1;
  min-width: 0;
}
.news-item__time {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.news-item__text {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.7;
}

/* ===== 求书频道 ===== */
.qiushu-hero {
  display: flex;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--paper-card) 0%, var(--paper-warm) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.qiushu-hero__main {
  flex: 1;
}
.qiushu-hero__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.qiushu-hero__icon {
  color: var(--accent);
  flex-shrink: 0;
}
.qiushu-hero__desc {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.qiushu-search {
  display: flex;
  gap: 10px;
  max-width: 560px;
}
.qiushu-search__input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper-card);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: all var(--transition);
}
.qiushu-search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.08);
}
.qiushu-search__btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.qiushu-search__btn:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}
.qiushu-search__post {
  padding: 12px 22px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.qiushu-search__post:hover {
  background: rgba(184, 134, 11, 0.08);
  color: var(--accent);
}
.qiushu-hero__stats {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}
.qiushu-stat {
  text-align: center;
  min-width: 90px;
  padding: 18px 14px;
  background: var(--paper-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.qiushu-stat b {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.qiushu-stat span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 6px;
}

.qiushu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.qiushu-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
}
.qiushu-list li:last-child {
  border-bottom: none;
}
.qiushu-list__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper-warm);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}
.qiushu-list__num.top {
  background: var(--accent);
  color: #fff;
}
.qiushu-list__body {
  flex: 1;
  min-width: 0;
}
.qiushu-list__title {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  margin-right: 8px;
}
.qiushu-list__title:hover {
  color: var(--accent);
}
.qiushu-list__solved {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(26, 107, 74, 0.08);
  color: #1a6b4a;
  border: 1px solid rgba(26, 107, 74, 0.2);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.qiushu-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: var(--ink-muted);
}
.qiushu-list__tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--paper-warm);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--ink-light);
  font-size: 11px;
}
.qiushu-list__vote {
  flex-shrink: 0;
  padding: 7px 16px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.qiushu-list__vote:hover {
  background: var(--accent);
  color: #fff;
}

.qiushu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qiushu-tags__item {
  display: inline-block;
  padding: 6px 12px;
  background: var(--paper-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--ink-light);
  font-size: 13px;
  transition: all var(--transition);
}
.qiushu-tags__item:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(184, 134, 11, 0.06);
}

.qiushu-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.qiushu-side-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.qiushu-side-list li:last-child {
  border-bottom: none;
}
.qiushu-side-list a {
  flex: 1;
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qiushu-side-list a:hover {
  color: var(--accent);
}
.qiushu-side-list__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.qiushu-side-list__dot.solved {
  background: #1a6b4a;
}

@media (max-width: 768px) {
  .qiushu-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .qiushu-hero__stats {
    justify-content: space-between;
  }
  .qiushu-search {
    flex-wrap: wrap;
  }
  .qiushu-list li {
    flex-wrap: wrap;
  }
}

/* 求书筛选条 / 提交表单 / 状态徽章 */
.qs-filter {
    float: right;
    font-size: 13px;
    font-weight: normal;
}
.qs-filter a {
    color: #888;
    margin-left: 12px;
}
.qs-filter a.on {
    color: var(--accent, #b8860b);
    font-weight: 600;
}
.qs-field {
    margin-bottom: 10px;
}
.qs-field label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}
.qs-field input,
.qs-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border, #e3d9c6);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    background: #fff;
    outline: none;
}
.qs-field input:focus,
.qs-field textarea:focus {
    border-color: var(--accent, #b8860b);
}
.qiushu-list__solved.pending {
    background: #f0e6d2;
    color: #9a7b3f;
}
.top-li {
    background: linear-gradient(90deg, rgba(184,134,11,0.06), transparent);
}

/* 求书详情页 */
.qs-detail__title {
    font-size: 22px;
    color: var(--ink, #2c2416);
    margin: 4px 0 12px;
    line-height: 1.4;
}
.qs-detail__title .qiushu-list__solved {
    font-size: 13px;
    vertical-align: middle;
    margin-left: 8px;
}
.qs-detail__meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
}
.qs-detail__meta span {
    margin-right: 14px;
}
.qs-detail__author {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}
.qs-detail__content {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    background: #fdfaf4;
    border: 1px solid var(--border, #eee);
    border-radius: 8px;
    padding: 16px;
    white-space: pre-wrap;
    word-break: break-word;
}
.qs-detail__back {
    margin-top: 14px;
    font-size: 13px;
}
.qs-detail__back a {
    color: var(--accent, #b8860b);
}

/* 响应区 */
.qs-reply__item {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light, #f0e9da);
}
.qs-reply__avatar img {
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border, #eee);
}
.qs-reply__body {
    flex: 1;
    margin-left: 12px;
}
.qs-reply__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
}
.qs-reply__name {
    font-weight: 600;
    color: var(--ink, #2c2416);
    font-size: 14px;
}
.qs-reply__time {
    font-size: 12px;
    color: #aaa;
}
.qs-reply__text {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    word-break: break-word;
}
.qs-reply__empty {
    padding: 24px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}
.qs-reply__form {
    margin-top: 16px;
}
.qs-reply__form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border, #e3d9c6);
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    outline: none;
    resize: vertical;
}
.qs-reply__form textarea:focus {
    border-color: var(--accent, #b8860b);
}
.qs-reply__login {
    background: #fdfaf4;
    border: 1px dashed var(--border, #e3d9c6);
    border-radius: 6px;
    padding: 14px;
    text-align: center;
    color: #888;
    font-size: 14px;
}
.qs-reply__login a {
    color: var(--accent, #b8860b);
    font-weight: 600;
}

/* ===== 响应式兜底 ===== */
@media (max-width: 768px) {
  .layout,
  .main-content,
  .two-col {
    flex-direction: column;
  }
  .layout__side,
  .content-right,
  .two-col__side {
    width: 100%;
  }
  .chapter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .book-grid.is-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== 最新求书板块 ===== */
.qiu-list {
  margin: 0;
}
.qiu-list li {
  display: flex;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}
.qiu-list li:last-child {
  border-bottom: none;
}
.qiu-list li:hover {
  padding-left: 6px;
}
.qiu-rank {
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background: var(--paper-warm);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  flex-shrink: 0;
  margin-right: 12px;
  margin-top: 2px;
}
.qiu-rank.top {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #fff;
}
.qiu-main {
  flex: 1;
  min-width: 0;
}
.qiu-line1 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qiu-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--transition);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qiu-title:hover {
  color: var(--accent);
}
.qiu-status {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 500;
  flex-shrink: 0;
}
.qiu-status--1 {
  color: var(--status-full);
  background: var(--status-full-bg);
}
.qiu-status--0 {
  color: var(--status-serial);
  background: var(--status-serial-bg);
}
.qiu-line2 {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}
.qiu-tag {
  color: var(--ink-light);
  background: var(--paper-warm);
  padding: 1px 7px;
  border-radius: 3px;
}
.qiu-meta {
  color: var(--ink-muted);
}
.qiu-btn {
  flex-shrink: 0;
  align-self: center;
  margin-left: 12px;
  padding: 7px 18px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  transition: all var(--transition);
}
.qiu-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(184, 134, 72, 0.35);
}
