.bookshelf-stats {
  padding: 15px;
  background: #e3ebf3;
  border-radius: 8px;
  margin: 0 0.75rem 15px;
}

/* 搜索框样式 */
.search-box-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  padding: 10px 18px;
  transition: all 0.3s;
}

.search-input-wrapper:focus-within {
  border-color: #FF3955;
  box-shadow: 0 0 0 3px rgba(255, 57, 85, 0.1);
}

.search-input-wrapper .icon-search {
  width: 20px;
  height: 20px;
  fill: #999;
  margin-right: 10px;
  flex-shrink: 0;
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
  color: #333;
}

.search-input-wrapper input::placeholder {
  color: #999;
}

.search-input-wrapper .clear-btn {
  width: 20px;
  height: 20px;
  background: #ccc;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  transition: all 0.3s;
}

.search-input-wrapper .clear-btn:hover {
  background: #999;
}

.search-input-wrapper .clear-btn.show {
  display: flex;
}

.search-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #FF3955 0%, #ff1744 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(255, 57, 85, 0.3);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 57, 85, 0.4);
}

.search-btn:active {
  transform: translateY(0);
}

/* 热门搜索和历史 */
.search-tags-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tags-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tags-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tags-title {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-filter {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.time-filter a {
  color: #999;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 12px;
  transition: all 0.3s;
}

.time-filter a.active {
  background: #FF3955;
  color: #fff;
}

.clear-history-btn {
  color: #999;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s;
}

.clear-history-btn:hover {
  color: #FF3955;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s;
  cursor: pointer;
}

.tag-item:hover {
  background: #FF3955;
  color: #fff;
  border-color: #FF3955;
}

.tag-item .rank {
  font-weight: 600;
  color: #FF3955;
  font-size: 12px;
}

.tag-item:hover .rank {
  color: #fff;
}

.tag-item.top3 {
  border-color: #ff6b6b;
}

.tag-item.top3 .rank {
  color: #ff6b6b;
}

.empty-tags {
  color: #999;
  font-size: 13px;
  text-align: center;
  padding: 10px;
}

/* 搜索结果统计 */
.result-stats {
  padding: 12px 1rem;
  color: #666;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 10px;
}

.result-stats strong {
  color: #FF3955;
  font-weight: 600;
}

.book-time-info {
  font-size: 0.7rem;
  color: #999;
  margin-top: 5px;
}

.empty-bookshelf {
  text-align: center;
  padding: 60px 20px;
}

.empty-bookshelf svg {
  width: 80px;
  height: 80px;
  fill: #ddd;
  margin-bottom: 20px;
}

.empty-bookshelf p {
  color: #999;
  font-size: 1rem;
  margin-bottom: 20px;
}

/*#4284ee*/
.empty-bookshelf a {
  display: inline-block;
  padding: 10px 30px;
  background: #FF3955;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
}

.loading-state {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* 书籍列表样式优化 */

.module-merge .book-ol {
  padding: 0 1rem;
}

.module-merge .book-li:last-child::after {
  display: block;
}

/* 桌面端优化 */
@media screen and (min-width: 768px) {
  .bookshelf-stats {
    margin: 0 auto 15px;
    padding: 20px 30px;
  }
  
  .search-input-wrapper {
    padding: 12px 20px;
  }
  
  .search-input-wrapper input {
    font-size: 16px;
  }
  
  .search-btn {
    padding: 12px 30px;
    font-size: 16px;
  }
  
  .tags-title {
    font-size: 15px;
  }
  
  .tag-item {
    font-size: 14px;
    padding: 7px 16px;
  }
  
  .result-stats {
    margin: 0 auto 10px;
    padding: 15px 1.5rem;
    font-size: 15px;
  }
  
  .module-merge .book-ol {
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .book-time-info {
    font-size: 0.8rem;
  }
  
  .empty-bookshelf {
    margin: 0 auto;
  }
  
  .empty-bookshelf p {
    font-size: 1.1rem;
  }
}