/* 微信读书风格书架：封面宫格，无导入/选择 */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: #fff;
  color: #191919;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.shelf {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

html.ebook-mp .shelf {
  padding-top: 16px;
}

html.ebook-mp #ebook-user-bar {
  display: none !important;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 18px;
}

.book-item {
  min-width: 0;
  display: block;
}

.book-cover {
  position: relative;
  aspect-ratio: 3 / 4.15;
  border-radius: 2px;
  overflow: hidden;
  background: #f2f2f2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

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

.book-title {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  color: #191919;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-progress {
  margin-top: 4px;
  font-size: 12px;
  color: #b2b2b2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .shelf {
    max-width: 560px;
    padding: 32px 24px 64px;
  }
}
