.my-bookshelf {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
}

.book-card {
  width: 200px;
  background: var(--card-bg, #fff);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.title-link {
  font-weight: bold;
  font-size: 1em;
  color: #1a0dab;
  text-decoration: none;
  margin-bottom: 4px;
}
.title-link:hover {
  text-decoration: underline;
}

.author {
  font-size: 0.85em;
  color: #555;
  margin-bottom: 4px;
}

.rating {
  font-size: 0.9em;
  color:#1a73e8; 
  margin: 4px 0;
}

.read-date {
  font-size: 0.75em;
  color: #999;
  margin-bottom: 6px;
}

.review-btn {
  background: var(--btn-bg, #f0f0f0);
  border: none;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.8em;
  cursor: pointer;
}
.review-btn:hover {
  background: var(--btn-hover-bg, #e0e0e0);
}

/* 浮窗书评 */
.review-modal {
  display: none;
  position: fixed;
  top: 0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.review-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 450px;
  max-height: 500px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
  .book-card {
    width: 90%;
  }
  .review-content {
    width: 90%;
    height: 60%;
  }
}
