/* 书城专用样式 */
.section-subtitle {
  color: var(--light-text);
  font-size: 16px;
  margin-top: -15px;
  margin-bottom: 25px;
}

/* 分类导航 */
.book-category-nav {
  display: flex;
  overflow-x: auto;
  padding: 15px 0;
  margin-bottom: 25px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  
  position: relative;
}

.book-category-nav::-webkit-scrollbar {
  display: none;
}

.book-category-item {
  background: rgba(139, 90, 43, 0.1);
  border-radius: 20px;
  color: var(--primary-color);
  transition: var(--transition);
  border: 1px solid rgba(139, 90, 43, 0.2);
  
  /*padding: 10px 20px;*/
  padding: 8px 12px;
  margin-right: 8px;
  border-radius: 30px;
  color: var(--light-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  background: rgba(139, 90, 43, 0.05);
  border: 1px solid rgba(139, 90, 43, 0.1);
  flex-shrink: 0;
}

.book-category-item:hover {
  background: rgba(139, 90, 43, 0.1);
  transform: translateY(-2px);
}

.book-category-item.active {
  /*background: var(--primary-color);*/
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(58, 134, 255, 0.25);
}

.book-category-item:hover:not(.active) {
  background: rgba(139, 90, 43, 0.2);
}

/* 添加小箭头指示器 */
.book-category-item.active::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  /*border-top: 6px solid var(--primary-color);*/
  border-top: 6px solid var(--secondary-color);
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: var(--transition);
}

.book-category-nav {
  position: relative;
}

.book-category-item.active::after {
  opacity: 1;
}

/* 子标题 */
.subsection-title {
  font-size: 18px;
  color: var(--dark-text);
  margin: 30px 0 15px;
  display: flex;
  align-items: center;
  position: relative;
}

.subsection-title i {
  margin-right: 8px;
  color: var(--accent-color);
}

.view-more, .view-all {
  font-size: 14px;
  font-weight: normal;
  color: var(--light-text);
  cursor: pointer;
  transition: var(--transition);
  margin-left: auto;
}

.view-more:hover, .view-all:hover {
  color: var(--primary-color);
}

.view-more i, .view-all i {
  transition: var(--transition);
}

.view-more:hover i, .view-all:hover i {
  transform: translateX(3px);
}

.update-time {
  font-size: 13px;
  color: var(--light-text);
  margin-left: 15px;
  font-weight: normal;
}

/* 热听榜 */
.hot-list-slider {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 15px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hot-list-slider::-webkit-scrollbar {
  display: none;
}

.hot-book {
  min-width: 120px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
}

.hot-book:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.hot-book .book-cover {
  position: relative;
  /*width: 100%;*/
  height: 160px;
  overflow: hidden;
}

.hot-book .book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.book-rank {
  width: 24px;
  height: 24px;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  background: rgba(0, 0, 0, 0.4); /* 半透明黑色背景 */
  color: var(--white); /* 白色字体 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(2px); /* 毛玻璃效果 */
  border: 1px solid rgba(255, 255, 255, 0.2); /* 白色边框增强对比 */
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset; /* 内外阴影增强立体感 */
}

/* 前3名特殊样式 */
.book-rank:nth-child(1) { /* 第一名 */
  background: rgba(212, 175, 55, 0.6); /* 金色半透明 */
  font-size: 16px;
  width: 28px;
  height: 28px;
}

.book-rank:nth-child(2) { /* 第二名 */
  background: rgba(192, 192, 192, 0.6); /* 银色半透明 */
}

.book-rank:nth-child(3) { /* 第三名 */
  background: rgba(205, 127, 50, 0.6); /* 铜色半透明 */
}

.hot-book .book-details {
  padding: 12px;
}

.hot-book .book-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--dark-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 40px;
}

.hot-book .book-author {
  font-size: 12px;
  color: var(--light-text);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-book .book-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
}

/* 书籍网格布局 */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 10px;
}


/*****************************************************************************/

/* 排序筛选栏 */
.sort-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  /*padding: 0 5%;*/
}

.sort-options {
  display: flex;
  gap: 10px;
}

.sort-btn {
  padding: 8px 15px;
  border-radius: 20px;
  background: rgba(139, 90, 43, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(139, 90, 43, 0.2);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.sort-btn.active {
  background: var(--primary-color);
  color: var(--white);
}

.sort-btn i {
  font-size: 14px;
}

.filter-options {
  position: relative;
}

.filter-btn {
  padding: 8px 15px;
  border-radius: 20px;
  background: var(--light-bg);
  color: var(--dark-text);
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn i:last-child {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.filter-dropdown.active .filter-btn i:last-child {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 10px 0;
  min-width: 120px;
  z-index: 100;
  display: none;
}

.filter-dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  padding: 8px 15px;
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: rgba(139, 90, 43, 0.1);
}

@media (min-width: 768px) {
  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }
  
  .book-category-item {
    padding: 10px 25px;
    font-size: 15px;
  }
  
  .book-rank {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
  
  .book-rank:nth-child(1) {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }
}

/* 书籍列表 */
.all-books-list {
  /*padding: 0 5%;*/
}

.book-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.book-cover {
  width: 120px;
  height: 160px;
  flex-shrink: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.book-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 8px;
}

.book-desc {
  font-size: 14px;
  color: var(--light-text);
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.upload-time {
  font-size: 13px;
  color: var(--light-text);
  display: flex;
  align-items: center;
  gap: 5px;
}

.book-play-action {
  display: flex;
  align-items: center;
  gap: 15px;
}

.book-play-btn {
  padding: 6px 12px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  border: none;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.book-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(139, 90, 43, 0.3);
}

.book-play-btn i {
  font-size: 12px;
}

.play-count {
  font-size: 13px;
  color: var(--light-text);
  display: flex;
  align-items: center;
  gap: 5px;
}


/* 书籍卡片 */
.book-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.book-card .book-cover {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.book-card .book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.free-badge, .new-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  z-index: 2;
}

.free-badge {
  background: linear-gradient(135deg, #4CA1AF, #C4E0E5);
  color: var(--dark-text);
}

.new-badge {
  background: linear-gradient(135deg, #FF5F6D, #FFC371);
}

.book-details {
  padding: 12px;
}

.book-card .book-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--dark-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
  line-height: 1.4;
}

.book-author {
  font-size: 12px;
  color: var(--light-text);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-card .book-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
}

.book-card.free .book-price {
  color: var(--primary-color);
  font-size: 13px;
}

/* 响应式调整 */
@media (min-width: 576px) {
  .hot-book {
    min-width: 140px;
  }
  
  .hot-book .book-cover {
    height: 180px;
  }
}

@media (min-width: 768px) {
  .hot-book {
    min-width: 150px;
  }
  
  .hot-book .book-cover {
    height: 200px;
  }
  
  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
  
  .book-item {
    gap: 20px;
    padding: 20px 0;
  }
  
  .book-cover {
    width: 140px;
    height: 180px;
  }
  
  .book-title {
    font-size: 20px;
  }
  
  .book-desc {
    font-size: 15px;
  }
  
  .play-btn {
    padding: 8px 15px;
    font-size: 14px;
  }
}

/* 播放按钮和价格组合样式 */
.play-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.play-btn {
  width: 100%;
  padding: 10px 15px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-top: 12px;
  box-shadow: 
    0 2px 5px rgba(0,0,0,0.1),
    0 1px 0 rgba(255,255,255,0.2) inset;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.play-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.play-btn:hover::before {
  opacity: 1;
}

.play-btn i {
  font-size: 12px;
  margin-right: 8px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.play-btn span {
  position: relative;
  z-index: 1;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 5px 15px rgba(139, 90, 43, 0.3),
    0 1px 0 rgba(255,255,255,0.2) inset;
}

.play-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 5px rgba(0,0,0,0.1),
    0 1px 0 rgba(255,255,255,0.2) inset;
}

.play-btn.playing {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
}

.play-btn.playing i::before {
  content: "\f04c"; /* 暂停图标 */
}

.play-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.play-btn:focus:not(:active)::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* 热听榜中的播放按钮调整 */
.hot-book .play-btn {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 20px;
}

.hot-book .play-btn i {
  font-size: 11px;
  margin-right: 6px;
}

.price {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-card.free .price {
  color: var(--primary-color);
}

/* 调整热听榜中的播放按钮大小 */
.hot-book .play-btn {
  /*width: 26px;*/
  /*height: 26px;*/
}

.hot-book .play-btn i {
  font-size: 10px;
}

.hot-book .price {
  font-size: 13px;
}

/* 响应式调整 */
@media (min-width: 768px) {
  .play-btn {
    padding: 8px 15px;
    font-size: 15px;
  }
  
  .play-btn i {
    font-size: 13px;
  }
  
  .price {
    font-size: 15px;
  }
}

/*************************************************************/
.book-category-pane{
   margin-bottom: 60px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.empty-state .empty-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    margin-bottom: 20px;
}

.empty-state .btn-default {
    padding: 8px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.empty-state .btn-default:hover {
    background-color: #e0e0e0;
}