.book-archive {
  padding: 20px;
}

.book-archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.book-categories {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-categories a {
  padding: 6px 10px;
  border-radius: 16px;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  font-size: 13px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.book-card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.book-cover {
  display: block;
  padding-top: 140%;
  position: relative;
  background: #f2f2f2;
  overflow: hidden;
}

.book-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.book-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.book-meta {
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.book-excerpt {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.book-detail {
  padding: 20px;
}

.book-detail-header {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.book-detail-cover {
  width: 160px;
  height: 220px;
  background: #f2f2f2;
  border-radius: 8px;
  overflow: hidden;
}

.book-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-detail-info h1 {
  margin: 0 0 10px;
  font-size: 24px;
}

.book-detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.book-owner-only {
  display: none;
}

.book-edit-link {
  border: 1px solid var(--theme-color);
  color: var(--theme-color);
  border-radius: 14px;
  padding: 2px 10px;
  font-size: 12px;
  text-decoration: none;
  line-height: 1.4;
}

.book-edit-link:hover {
  background: var(--theme-color);
  color: #fff;
}

.book-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.book-detail-meta a {
  color: inherit;
  text-decoration: none;
}

.book-detail-meta a:hover {
  color: var(--theme-hover);
}

.book-breadcrumbs {
  margin-bottom: 10px;
  font-size: 13px;
  color: #999;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.book-breadcrumbs a {
  color: #666;
  text-decoration: none;
}

.book-breadcrumbs a:hover {
  color: var(--theme-hover);
}

.book-detail-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  display: block;
  overflow: hidden;
  padding-right: 42px;
}

.book-desc-wrap {
  position: relative;
}

.book-detail-desc.is-collapsed {
  max-height: calc(1.7em * 1.5);
  padding-right: 0;
}

.book-detail-desc.is-expanded {
  max-height: none;
  display: block;
  padding-right: 0;
}

.book-desc-toggle {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #f2f2f2;
  border: 1px solid #e6e6e6;
  color: var(--theme-color);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  z-index: 1;
  border-radius: 12px;
}

.book-detail-desc.is-expanded + .book-desc-toggle {
  bottom: -1.4em;
}

.book-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-tag {
  padding: 4px 10px;
  border-radius: 14px;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  font-size: 12px;
}

.book-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.book-latest-update {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.book-latest-update a {
  color: #333;
  text-decoration: none;
}

.book-latest-update a:hover {
  color: var(--theme-hover);
}

.book-latest-time {
  margin-top: 4px;
  font-size: 13px;
  color: #666;
}

.book-reading-count {
  font-size: 13px;
  color: #666;
}

.book-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-btn {
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #333;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.book-btn b {
  font-weight: 600;
}

.book-btn-primary {
  background: #222;
  color: #fff;
  border-color: #222;
}

.book-btn.is-active {
  border-color: #222;
  color: #222;
  font-weight: 600;
}

.book-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.book-related {
  margin-top: 20px;
  padding: 18px;
}

.book-related-header {
  margin-bottom: 12px;
}

.book-related-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.book-chapters {
  margin-top: 20px;
}

.book-chapters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.book-chapter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.book-chapter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.book-chapter-item.book-owner-only {
  display: none;
}

.book-chapter-main-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 52px 8px 10px;
  border-radius: 6px;
  background: #fafafa;
  border: 1px solid #eee;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  min-width: 0;
}

.book-chapter-title-text {
  flex: 1;
  min-width: 0;
}

.book-chapter-main-link.is-current {
  border-color: #222;
  background: #fff;
  font-weight: 600;
}

.book-chapter-main-link-publish {
  justify-content: center;
  padding-right: 10px;
}

.book-chapter-main-link-publish .book-chapter-title-text {
  text-align: center;
}

.book-chapter-edit-inline {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--theme-color);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.book-chapter-edit-inline:hover {
  color: var(--theme-hover);
}

.book-chapter-reading {
  padding: 20px;
  background-color: #fff8ed;
}

.book-chapter-reading h1 {
  font-size: 22px;
  margin-bottom: 12px;
}

.book-chapter-title {
  font-weight: 700;
  text-align: center;
}

.book-chapter-submeta {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: min(16px, 1.8vw);
  margin: -4px 0 14px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  font-size: min(12px, 2.6vw);
  color: #888;
}

.book-chapter-submeta .book-submeta-label {
  display: inline;
}

.book-chapter-submeta .desktop-book-title {
  display: inline;
}

.book-chapter-submeta .mobile-book-title {
  display: none;
}

.book-chapter-submeta a {
  color: inherit;
  text-decoration: none;
}

.book-chapter-submeta a:hover {
  color: var(--theme-hover);
}

.book-chapter-content {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.book-chapter-content p + p {
  margin-top: 1.2em;
}

.book-chapter-nav {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
}

.book-chapter-nav-group {
  display: flex;
  align-items: stretch;
  width: 70%;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.book-chapter-nav-group .nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  padding: 10px 16px;
  cursor: pointer;
}

.book-chapter-nav-group .nav-btn + .nav-btn {
  border-left: 1px solid #e6e6e6;
}

.book-chapter-nav-group .nav-btn:hover {
  background: #f8f8f8;
}

.book-chapter-nav-group .nav-btn.is-disabled {
  color: #b8b8b8;
  cursor: not-allowed;
  pointer-events: none;
}

.book-directory-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.book-directory-modal.is-open {
  display: flex;
}

.book-directory-panel {
  width: min(760px, 100%);
  max-height: 82vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.book-directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}

.book-directory-header h3 {
  margin: 0;
  font-size: 16px;
}

.book-directory-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.book-directory-list {
  padding: 12px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.book-directory-list a {
  padding: 8px 10px;
  border-radius: 6px;
  background: #fafafa;
  border: 1px solid #eee;
  color: #333;
  text-decoration: none;
  font-size: 13px;
}

.book-hot-section {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: #fff;
}

.book-hot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.book-hot-header h2 {
  margin: 0;
  font-size: 16px;
}

.book-hot-header span {
  font-size: 12px;
  color: #999;
}

.book-hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.book-hot-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.book-hot-list a {
  color: #333;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-hot-list a:hover {
  color: var(--theme-hover);
}

.book-hot-rank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #666;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .book-hot-list {
    grid-template-columns: 1fr;
  }
}

.book-directory-list a.is-current {
  border-color: #222;
  background: #fff;
  font-weight: 600;
}

body.book-directory-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .book-detail-header {
    grid-template-columns: 20% 1fr;
    align-items: start;
    gap: 12px;
  }

  .book-detail-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .book-detail-info {
    min-width: 0;
  }

  .book-related .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-chapter-list {
    grid-template-columns: 1fr;
  }

  .book-chapter-nav-group {
    width: 90%;
  }

  .book-chapter-submeta .mobile-hide-label {
    display: none;
  }

  .book-chapter-submeta .desktop-book-title {
    display: none;
  }

  .book-chapter-submeta .mobile-book-title {
    display: inline;
  }

  .book-directory-list {
    grid-template-columns: 1fr;
  }
}

.b2-book-form-page {
  padding: 24px;
}

.b2-book-page-title {
  margin-bottom: 20px;
}

.b2-book-page-title h1 {
  margin: 0;
  font-size: 24px;
}

.b2-book-page-title p {
  margin: 10px 0 0;
  color: #777;
  font-size: 14px;
}

.b2-book-alert {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
  border: 1px solid #e7e7e7;
  background: #fafafa;
}

.b2-book-alert.success {
  border-color: #b7e5c1;
  background: #eefaf1;
  color: #1f8a3c;
}

.b2-book-alert.error {
  border-color: #f1c3c3;
  background: #fff3f3;
  color: #b13f3f;
}

.b2-book-alert.warning {
  border-color: #f2dfb3;
  background: #fff9eb;
  color: #9b6c00;
}

.b2-book-alert a {
  color: inherit;
  text-decoration: underline;
  margin-left: 6px;
}

.b2-book-login-tip {
  border: 1px solid #dfe8ff;
  background: #f4f7ff;
  color: #3553a3;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.b2-book-login-tip p {
  margin: 0;
  font-size: 13px;
}

.b2-book-login-tip.is-hidden,
.b2-book-alert.is-hidden {
  display: none;
}

.b2-book-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.b2-book-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b2-book-field label {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.b2-book-field input[type="text"],
.b2-book-field select,
.b2-book-field textarea {
  width: 100%;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}

.b2-book-field textarea {
  min-height: 220px;
  line-height: 1.8;
  resize: vertical;
}

.b2-book-field input.is-readonly {
  background: #f7f7f7;
  color: #666;
  font-weight: 600;
}

.b2-book-field input.is-loading {
  color: #999;
}

.b2-book-field-desc {
  margin: 0;
  color: #888;
  font-size: 12px;
}

.b2-book-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.b2-book-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.b2-book-inline .button {
  white-space: nowrap;
}

.b2-book-cover-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.b2-book-cover-preview-wrap {
  width: 120px;
  height: 160px;
  border-radius: 8px;
  border: 1px dashed #d7d7d7;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.b2-book-cover-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.b2-book-cover-preview-wrap.has-cover .b2-book-cover-preview {
  display: block;
}

.b2-book-cover-placeholder {
  color: #999;
  font-size: 12px;
}

.b2-book-cover-preview-wrap.has-cover .b2-book-cover-placeholder {
  display: none;
}

.b2-book-cover-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b2-book-term-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.b2-book-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #efefef;
  background: #fcfcfc;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: #444;
}

.b2-book-check-item input {
  margin: 0;
}

.b2-book-submit {
  margin-top: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.b2-book-submit button {
  border: 0;
  background: #222;
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.b2-book-submit button.is-secondary {
  background: #fff;
  color: #333;
  border: 1px solid #e0e0e0;
}

.b2-book-submit .b2-book-submit-link {
  border: 0;
  background: #222;
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 768px) {
  .b2-book-form-page {
    padding: 16px;
  }

  .b2-book-field-grid {
    grid-template-columns: 1fr;
  }

  .b2-book-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .b2-book-cover-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .b2-book-term-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b2-book-login-tip {
    flex-direction: column;
    align-items: flex-start;
  }
}

.book-archive-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.book-archive-count {
  font-size: 13px;
  color: #666;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f6f7f9;
}

.book-archive-intro {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #fafafa;
}

.book-layout-cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.book-meta-archive {
  align-items: center;
}

.book-status {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #f2f2f2;
  color: #666;
}

.book-status.is-serial {
  background: #eef8f1;
  color: #2b8a57;
}

.book-status.is-finished {
  background: #edf2ff;
  color: #2d57bb;
}

.book-status.is-paused {
  background: #fff3ec;
  color: #c56031;
}

.book-latest-line {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  display: flex;
  gap: 4px;
}

.book-latest-line a {
  color: #333;
  text-decoration: none;
}

.book-latest-line a:hover {
  color: var(--theme-hover);
}

.book-layout-novel-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-feed-item {
  border: 1px solid #eee;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.book-feed-cover {
  position: relative;
  display: block;
  width: 120px;
  padding-top: 150%;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f3f3;
}

.book-feed-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-feed-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-feed-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.book-feed-title a {
  color: #222;
  text-decoration: none;
}

.book-feed-title a:hover {
  color: var(--theme-hover);
}

.book-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #666;
}

.book-feed-excerpt {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

.book-feed-latest {
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 4px;
  min-width: 0;
}

.book-feed-latest a {
  color: #333;
  text-decoration: none;
}

.book-feed-latest a:hover {
  color: var(--theme-hover);
}

.book-feed-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.book-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  background: #222;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.book-read-btn:hover {
  color: #fff;
  background: #000;
}

.book-layout-compact-list {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
}

.book-compact-head,
.book-compact-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.8fr) minmax(90px, 1fr) minmax(80px, 0.8fr) minmax(90px, 0.8fr) minmax(90px, 0.9fr);
  gap: 10px;
  align-items: center;
}

.book-compact-head {
  padding: 10px 14px;
  font-size: 12px;
  color: #666;
  background: #f8f8f8;
}

.book-compact-row {
  padding: 12px 14px;
  border-top: 1px solid #f1f1f1;
  font-size: 13px;
}

.book-compact-row .col-title {
  min-width: 0;
}

.book-compact-row .col-title > a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
}

.book-compact-row .col-title > a:hover {
  color: var(--theme-hover);
}

.book-compact-row .col-title p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-compact-row .col-title p a {
  color: inherit;
  text-decoration: none;
}

.book-compact-row .col-title p a:hover {
  color: var(--theme-hover);
}

.book-compact-row .col-rank {
  font-weight: 700;
  color: #b45f06;
}

@media (max-width: 900px) {
  .book-feed-item {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .book-feed-cover {
    width: 90px;
  }

  .book-feed-action {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .book-compact-head,
  .book-compact-row {
    grid-template-columns: 56px minmax(0, 1.5fr) minmax(80px, 1fr) minmax(72px, 0.8fr);
  }

  .book-compact-head .col-words,
  .book-compact-head .col-updated,
  .book-compact-row .col-words,
  .book-compact-row .col-updated {
    display: none;
  }
}

@media (max-width: 640px) {
  .book-layout-cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-feed-item {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 10px;
  }

  .book-feed-cover {
    width: 76px;
  }

  .book-feed-title {
    font-size: 15px;
  }

  .book-feed-excerpt {
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .book-compact-head,
  .book-compact-row {
    grid-template-columns: 42px minmax(0, 1fr) minmax(56px, 0.7fr);
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .book-compact-head .col-author,
  .book-compact-row .col-author {
    display: none;
  }

  .book-compact-row .col-title > a {
    font-size: 13px;
  }
}

.book-home-archive {
  padding: 0;
}

.book-home-module {
  padding: 20px;
  position: relative;
}

.book-home-module-title {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
}

.book-home-mobile-icons {
  display: none;
  padding: 6px 0 14px;
  gap: 10px;
  justify-content: space-between;
}

.book-home-mobile-icon {
  flex: 1 1 20%;
  max-width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  gap: 6px;
}

.book-home-mobile-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.book-home-mobile-icon-i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #333;
}

.book-home-mobile-icon-text {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.book-home-mobile-icon-name {
  font-size: 12px;
  color: #555;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-home-module-inner {
  position: relative;
}

.book-home-highlight {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 20px;
  font-weight: 800;
  color: #111;
  letter-spacing: 1px;
}

.book-home-desktop {
  display: grid;
  grid-template-columns: 15% 60% 23%;
  gap: 20px;
  align-items: stretch;
}

.book-home-col {
  display: flex;
  flex-direction: column;
}

.book-home-col-reco,
.book-home-col-feature {
  height: 100%;
}

.book-home-cat-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.book-home-tab {
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}

.book-home-tab.is-active {
  border-color: #111;
  color: #111;
  font-weight: 600;
}

.book-home-cat-lists {
  flex: 1;
}

.book-home-cat-list {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}

.book-home-cat-list.is-active {
  display: grid;
}

.book-home-cat-list a {
  text-decoration: none;
  color: #333;
  background: #f6f6f6;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.book-home-cat-list a:hover {
  background: #ececec;
}

.book-home-cat-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.book-home-cat-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 16px;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  font-size: 13px;
}

.book-home-recommend-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 16px 14px;
  height: 100%;
  align-content: stretch;
}

.book-home-recommend-item {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  margin: 2px 0;
}

.book-home-recommend-cover {
  width: 94px;
  height: 130px;
  border-radius: 8px;
  background: #f2f2f2;
  overflow: hidden;
  display: block;
}

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

.book-home-recommend-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 130px;
  justify-content: center;
}

.book-home-recommend-title {
  font-size: 16px;
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-home-recommend-title a {
  color: #222;
  text-decoration: none;
}

.book-home-recommend-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-home-recommend-meta {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

.book-home-recommend-meta a,
.book-home-feature-author a {
  color: inherit;
  text-decoration: none;
}

.book-home-recommend-meta a:hover,
.book-home-feature-author a:hover {
  color: var(--theme-hover);
}

.book-home-card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  align-items: center;
}

.book-home-cover {
  position: relative;
  display: block;
  width: 85%;
  padding-top: 120%;
  background: #f2f2f2;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
}

.book-home-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-home-feature-title {
  font-size: 18px;
  margin: 0;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.book-home-feature-title a {
  color: #111;
  text-decoration: none;
}

.book-home-feature-author {
  font-size: 14px;
  color: #555;
  text-align: center;
}

.book-home-feature-excerpt {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-home-empty {
  font-size: 13px;
  color: #999;
}

.book-home-mobile {
  display: none;
}

.book-home-mobile-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin-bottom: 12px;
}

.book-home-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-home-mobile-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.book-home-mobile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.book-home-mobile-card:last-child {
  border-bottom: 0;
}

.book-home-mobile-cover {
  width: 64px;
  height: 90px;
  background: #f2f2f2;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.book-home-mobile-item-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.book-home-mobile-item-title a {
  color: #222;
  text-decoration: none;
}

.book-home-mobile-excerpt {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-home-mobile-meta {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.book-home-module-two {
  margin-top: 20px;
}

.book-home-module-new {
  margin-top: 20px;
}

.book-home-new-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.book-home-new-desktop {
  display: block;
}

.book-home-new-mobile {
  display: none;
}

.book-home-hot-desktop {
  display: block;
}

.book-home-hot-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.book-home-hot-track {
  display: flex;
  gap: 18px;
  transition: transform 0.6s ease;
  will-change: transform;
}

.book-home-hot-item {
  flex: 0 0 calc((100% - 108px) / 7);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  transition: transform 0.4s ease;
  transform-origin: center center;
  transform: scale(0.9);
}

.book-home-hot-item.is-center {
  transform: scale(1);
  z-index: 2;
}

.book-home-hot-cover {
  position: relative;
  width: 92%;
  padding-top: 132%;
  border-radius: 10px;
  background: #f2f2f2;
  overflow: hidden;
}

.book-home-hot-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.book-home-hot-cover:hover img {
  transform: scale(1.05);
}

.book-home-hot-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-home-hot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
}

.book-home-hot-cover:hover .book-home-hot-overlay {
  opacity: 1;
}

.book-home-hot-author {
  font-weight: 600;
}

.book-home-hot-excerpt {
  font-size: 11px;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-home-hot-mobile {
  display: none;
}

.book-home-cat-modules {
  margin-top: 20px;
}

.book-home-cat-module + .book-home-cat-module {
  margin-top: 24px;
}

.book-home-cat-title {
  margin: 0 0 16px;
}

.book-home-cat-title .book-cat-top-level-label {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 16px;
  background: #f5f5f5;
}

.book-home-cat-title .book-cat-top-level-label.is-current {
  background: #111;
  color: #fff;
}

.book-home-cat-columns {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.book-home-cat-col-box {
  padding: 14px;
  flex: 0 0 280px;
}

.book-home-cat-col-box .book-cat-hot-first {
  margin: 0 10px 10px;
}

.book-home-cat-col-box .book-cat-hot-first-info h3 a,
.book-home-cat-col-box .book-cat-hot-link {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.book-home-cat-col-box .book-cat-title-text {
  min-width: 0;
}

.book-home-cat-col-box .book-cat-hot-first-meta {
  font-size: 11px;
  font-weight: 600;
}

.book-home-cat-col-box .book-cat-hot-first-meta span {
  font-weight: 600;
}

.book-home-cat-col-box .book-cat-hot-first-excerpt {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 4px 0;
}

.book-home-cat-col-box .book-cat-hot-list li {
  margin: 0 10px;
}

.book-home-cat-col-box .book-cat-hot-item-title {
  display: block;
}

.book-home-cat-col-box .book-cat-hot-item-detail {
  display: none;
}

.book-home-cat-col-box .book-cat-hot-item.is-hover .book-cat-hot-item-title {
  display: none;
}

.book-home-cat-col-box .book-cat-hot-item.is-hover .book-cat-hot-item-detail {
  display: block;
}

.book-home-cat-col-box.is-hovering .book-cat-hot-first-main .book-cat-hot-first-cover,
.book-home-cat-col-box.is-hovering .book-cat-hot-first-main .book-cat-hot-first-excerpt,
.book-home-cat-col-box.is-hovering .book-cat-hot-first-main .book-cat-hot-first-meta {
  display: none;
}

.book-home-cat-col-box .book-cat-hot-item:hover .book-cat-hot-item-title {
  display: none;
}

.book-home-cat-col-box .book-cat-hot-item:hover .book-cat-hot-item-detail {
  display: block;
}

.book-home-hot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.book-home-hot-grid .book-home-hot-item {
  flex: unset;
  align-items: stretch;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.book-home-hot-grid .book-home-hot-cover {
  width: 100%;
  padding-top: 140%;
}

.book-home-hot-grid .book-home-hot-title {
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  -webkit-line-clamp: 2;
}

.book-home-hot-mobile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.book-home-hot-meta {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .book-home-desktop {
    display: none;
  }

  .book-home-highlight {
    display: none;
  }

  .book-home-module {
    padding: 16px;
  }

  .book-home-mobile {
    display: block;
  }

  .book-home-mobile-icons {
    display: flex;
  }

  .book-home-hot-desktop {
    display: none;
  }

  .book-home-hot-mobile {
    display: block;
  }

  .book-home-new-desktop {
    display: none;
  }

  .book-home-new-mobile {
    display: block;
  }

  .book-home-cat-columns {
    gap: 12px;
    padding-bottom: 8px;
  }

  .book-home-cat-title.book-cat-top-level {
    display: flex;
  }

  .book-home-cat-col-box {
    flex: 0 0 78%;
    max-width: 320px;
  }
}

.book-cat-page {
  padding-top: 10px;
}

.book-cat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 4fr);
  gap: 20px;
}

.book-cat-nav {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.book-cat-nav-group {
  margin-bottom: 14px;
  align-self: stretch;
}

.book-cat-nav-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.book-cat-nav-title a {
  color: #222;
  text-decoration: none;
}

.book-cat-nav-title a.is-current {
  color: #111;
}

.book-cat-nav-title.is-static {
  color: #222;
}

.book-cat-nav-title.is-static.is-current {
  color: #111;
}

.book-cat-nav-children {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 10px;
  text-align: left;
}

.book-cat-nav-children a {
  color: #555;
  text-decoration: none;
  font-size: 13px;
}

.book-cat-nav-children a.is-current {
  color: #111;
  font-weight: 600;
}

.book-cat-more {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 16px;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  align-self: center;
}

.book-cat-books {
  padding: 20px;
}

.book-cat-books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.book-cat-book-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.book-cat-book-cover {
  width: 90px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  background: #f2f2f2;
  flex-shrink: 0;
}

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

.book-cat-book-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.book-cat-book-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.book-cat-book-title a {
  color: #222;
  text-decoration: none;
}

.book-cat-book-excerpt {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-cat-book-meta {
  font-size: 12px;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.book-cat-pagination {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.book-cat-page .book-home-mobile-icons {
  margin-bottom: 12px;
}

.book-all-tags-box {
  padding: 20px;
}

.book-all-tags-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.book-all-tags-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}

.book-all-tags-grid a {
  text-decoration: none;
  color: #333;
  background: #f5f5f5;
  padding: 6px 8px;
  border-radius: 14px;
  font-size: 13px;
  display: block;
}

.book-cat-top-level {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.book-cat-top-level a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 16px;
  background: #f5f5f5;
}

.book-cat-top-level a.is-current {
  background: #111;
  color: #fff;
}

.book-cat-desktop {
  padding: 20px;
}

.book-cat-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.book-cat-col {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.book-cat-col-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.book-cat-col-title a {
  color: #222;
  text-decoration: none;
}

.book-cat-hot-first {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.book-cat-hot-first-info {
  flex: 1;
  text-align: left;
}

.book-cat-hot-first-info h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.book-cat-hot-first-info a {
  color: #222;
  text-decoration: none;
}

.book-cat-hot-first-meta {
  font-size: 12px;
  color: #777;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.book-cat-hot-first-cover {
  width: 60px;
  height: 86px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f2f2;
  flex-shrink: 0;
}

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

.book-cat-hot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.book-cat-hot-list a {
  color: #333;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}

.book-cat-empty {
  font-size: 12px;
  color: #999;
  text-align: left;
}

.book-cat-mobile {
  display: none;
}

.book-cat-mobile-box {
  padding: 16px;
  margin-top: 16px;
}

.book-cat-mobile-title {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.book-cat-mobile-title a {
  color: #222;
  text-decoration: none;
}

.book-cat-mobile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.book-cat-mobile-item {
  text-align: center;
}

.book-cat-mobile-cover {
  display: block;
  width: 100%;
  padding-top: 140%;
  background: #f2f2f2;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.book-cat-mobile-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cat-mobile-book-title {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-cat-mobile-book-title a {
  color: #222;
  text-decoration: none;
}

@media (max-width: 768px) {
  .book-cat-layout {
    grid-template-columns: 1fr;
  }

  .book-cat-nav {
    display: none;
  }

  .book-cat-books {
    padding: 16px;
  }

  .book-cat-books-grid {
    grid-template-columns: 1fr;
  }

  .book-cat-book-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .book-cat-book-cover {
    width: 76px;
    height: 104px;
  }

  .book-all-tags-box {
    padding: 16px;
  }

  .book-all-tags-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .book-cat-top-level {
    display: none;
  }

  .book-cat-desktop {
    display: none;
  }

  .book-cat-mobile {
    display: block;
  }
}

.book-cat-home {
  padding-top: 10px;
}

.book-cat-home .book-cat-top-level {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.book-cat-home .book-cat-top-level a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 16px;
  background: #f5f5f5;
}

.book-cat-home-module {
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.book-cat-home-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.book-cat-home-title a {
  color: #222;
  text-decoration: none;
}

.book-cat-home-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.book-cat-home-col {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0 20px;
}

.book-cat-home-col-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.book-cat-home-col-title a {
  color: #222;
  text-decoration: none;
}

.book-cat-home-hot-first {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.book-cat-home-hot-first-info {
  flex: 1;
  text-align: left;
}

.book-cat-home-hot-first-info h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.book-cat-home-hot-first-info a {
  color: #222;
  text-decoration: none;
}

.book-cat-home-hot-first-meta {
  font-size: 12px;
  color: #777;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  padding-left: 35px;
}

.book-cat-home-hot-first-author,
.book-cat-home-hot-first-words {
  display: block;
}

.book-cat-home-hot-first-title a,
.book-cat-home-hot-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.book-cat-title-text {
  min-width: 0;
}

.book-cat-rank {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin-right: 4px;
  flex-shrink: 0;
  color: #9a9a9a;
}

.book-cat-rank-img {
  min-width: 22px;
  height: 22px;
  margin-right: 6px;
}

.book-cat-rank-img img {
  width: 22px;
  height: 22px;
  display: block;
}

.book-cat-rank-muted {
  color: #9a9a9a;
}

.book-cat-home-hot-first-cover {
  width: 60px;
  height: 86px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f2f2;
  flex-shrink: 0;
}

.book-cat-home-hot-first-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cat-home-hot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.book-cat-home-hot-list a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.book-cat-home-empty {
  font-size: 12px;
  color: #999;
  text-align: left;
}

.book-cat-home-mobile {
  display: none;
}

.book-cat-home-mobile-box {
  padding: 16px;
  margin-top: 16px;
}

.book-cat-home-mobile-title {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.book-cat-home-mobile-title a {
  color: #222;
  text-decoration: none;
}

.book-cat-home-mobile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.book-cat-home-mobile-item {
  text-align: center;
}

.book-cat-home-mobile-cover {
  display: block;
  width: 100%;
  padding-top: 140%;
  background: #f2f2f2;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.book-cat-home-mobile-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cat-home-mobile-book-title {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-cat-home-mobile-book-title a {
  color: #222;
  text-decoration: none;
}

@media (max-width: 768px) {
  .book-cat-home .book-cat-top-level {
    display: none;
  }

  .book-cat-home-desktop {
    display: none;
  }

  .book-cat-home-mobile {
    display: block;
  }

  .book-cat-home-mobile-box:last-child {
    margin-bottom: 20px;
  }
}
