/* ===== 重置样式和基础设置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: #333;
  background: #f8f9fa;
  overflow: hidden;
}

ul,
li,
dl,
dt,
dd {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-weight: 500;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== 顶部导航栏 ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.nav-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-buttons {
  display: flex;
  gap: 25px;
  margin-left: auto;
}

.nav-button {
  padding: 12px 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.25);
  color: #4a4a4a;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(74, 74, 74, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #4a4a4a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(25px) saturate(1.8);
}

.nav-button.active {
  background: rgba(139, 69, 19, 0.8);
  color: white;
  border-color: #8b4513;
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

/* ===== 主容器 ===== */
.main-container {
  height: 100vh;
  padding-top: 80px;
  background: url("../img/bg1.png") no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ===== 页面标题区域 ===== */
.page-header {
  padding: 0px 0;
  text-align: center;
  position: relative;
  flex-shrink: 0;
  height: 15px;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #8b4513;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.3);
  text-align: center;
  line-height: 40px;
}

/* ===== 主要内容布局 ===== */
.content-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 15px;
  align-items: end;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 120px);
  grid-template-rows: 1fr;
}

/* ===== 通用卡片样式 ===== */
.section-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #8b4513;
  padding: 20px 24px 16px;
  border-bottom: 2px solid rgba(139, 69, 19, 0.1);
  margin: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 69, 19, 0.05) 0%,
    rgba(139, 69, 19, 0.02) 100%
  );
}

/* ===== 左侧边栏：同类农书 ===== */
.sidebar-left {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  margin-top: 60px;
}

.book-list-container {
  padding: 0 16px 20px;
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100% - 60px);
}

.book-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.5s ease;
  height: auto;
}

.book-list-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
}

/* 轮播控制按钮 */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  flex-shrink: 0;
}

.carousel-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #8b4513;
  background: rgba(255, 255, 255, 0.9);
  color: #8b4513;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #8b4513;
  color: white;
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.carousel-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #8b4513;
}

/* 页数指示器 */
.page-indicator {
  font-size: 12px;
  color: #8b4513;
  font-weight: 500;
  background: rgba(139, 69, 19, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(139, 69, 19, 0.2);
  min-width: 40px;
  text-align: center;
  user-select: none;
}

.book-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 69, 19, 0.1);
}

.book-list li:hover {
  background: rgba(139, 69, 19, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.book-list li.current-book {
  border: 2px solid #8b4513;
  background: linear-gradient(
    135deg,
    rgba(139, 69, 19, 0.1) 0%,
    rgba(160, 82, 45, 0.05) 100%
  );
  position: relative;
}

.book-list li.current-book::after {
  content: "当前";
  position: absolute;
  top: 5px;
  right: 5px;
  background: #8b4513;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 500;
}

.book-list li img {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-list li dl {
  flex: 1;
  min-width: 0;
}

.book-list li dt {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-list li dd {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* ===== 主要内容区域 ===== */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 8px;
}

.main-content::-webkit-scrollbar {
  width: 6px;
}

.main-content::-webkit-scrollbar-track {
  background: rgba(139, 69, 19, 0.1);
  border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb {
  background: rgba(139, 69, 19, 0.3);
  border-radius: 3px;
}

/* 书籍基本信息区域 */
.book-info-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  align-items: start;
  flex-shrink: 0;
  height: 160px;
}

.book-cover-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(139, 69, 19, 0.05);
  border-radius: 8px;
  padding: 6px;
  height: 130px;
}

.book-cover-container img {
  max-width: 100%;
  max-height: 110px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.book-details-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: calc(100vh - 360px);
  overflow-y: auto;
}

/* 当前书籍名称样式 */
.current-book-name {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(139, 69, 19, 0.1) 0%,
    rgba(160, 82, 45, 0.05) 100%
  );
  border: 2px solid #8b4513;
  border-radius: 12px;
  padding: 6px 12px;
  margin-bottom: 4px;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  height: 40px;
}

.current-book-name::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b4513 0%, #d2691e 50%, #8b4513 100%);
}

.book-title {
  font-size: 16px;
  font-weight: 700;
  color: #8b4513;
  text-align: center;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.1);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  line-height: 1.1;
}

.book-meta {
  flex-shrink: 0;
}

.meta-group {
  background: rgba(139, 69, 19, 0.03);
  border-radius: 8px;
  padding: 8px;
  border-left: 4px solid #8b4513;
  flex-shrink: 0;
  min-height: 100px;
  display: flex;
  flex-direction: column;
}

.meta-title {
  font-size: 13px;
  font-weight: 600;
  color: #8b4513;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  align-content: flex-start;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.tag-list li {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  color: white;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(139, 69, 19, 0.3);
  transition: all 0.3s ease;
  word-wrap: break-word;
  line-height: 1.3;
  min-height: 22px;
  display: flex;
  align-items: center;
}

.tag-list li:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
}

.theme-tags {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
}

.theme-tags li {
  background: linear-gradient(135deg, #2e8b57 0%, #3cb371 100%);
  box-shadow: 0 2px 6px rgba(46, 139, 87, 0.3);
  text-align: center;
  word-wrap: break-word;
  word-break: break-all;
  line-height: 1.3;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-tags li:hover {
  box-shadow: 0 4px 12px rgba(46, 139, 87, 0.4);
}

/* ===== 新增的meta-row布局 ===== */
.meta-row {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
}

.meta-row .meta-group {
  flex: 1;
}

/* ===== 紧凑的分析区域样式 ===== */
.compact-analysis {
  height: 100px;
}

/* ===== 轮播容器样式 ===== */
.carousel-container {
  height: 70px;
  background: rgba(139, 69, 19, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(139, 69, 19, 0.1);
  position: relative;
  overflow: hidden;
  flex: 1;
}

.carousel-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 11px;
  line-height: 1.3;
}

.carousel-indicators {
  position: absolute;
  bottom: 4px;
  right: 8px;
  display: flex;
  gap: 4px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(139, 69, 19, 0.3);
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #8b4513;
  transform: scale(1.2);
}

/* ===== 紧凑分析项样式 ===== */
.word-item,
.theme-item {
  margin-bottom: 6px;
  padding: 4px 8px;
  background: rgba(139, 69, 19, 0.05);
  border-radius: 4px;
  border-left: 2px solid #8b4513;
  min-height: 24px;
}

.word-item:last-child,
.theme-item:last-child {
  margin-bottom: 0;
}

.word-title,
.theme-title {
  font-size: 11px;
  font-weight: 600;
  color: #8b4513;
  margin-bottom: 2px;
  word-wrap: break-word;
}

.word-desc,
.theme-desc {
  font-size: 10px;
  color: #666;
  line-height: 1.3;
  word-wrap: break-word;
}

.loading {
  text-align: center;
  color: #999;
  font-size: 10px;
  padding: 20px 0;
}

/* ===== 紧凑分析区域 ===== */
.analysis-compact-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: -14px;
}

/* ===== 书籍内容区域 ===== */
.book-content-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

/* ===== 翻页导航样式 ===== */
.content-nav {
  display: flex;
  background: rgba(139, 69, 19, 0.05);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 12px;
  gap: 2px;
}

.nav-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #8b4513;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nav-tab:hover {
  background: rgba(139, 69, 19, 0.1);
  color: #8b4513;
}

.nav-tab.active {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

/* ===== 内容页面样式 ===== */
.content-pages {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.content-page {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
  pointer-events: none;
}

.content-page.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.content-scroll-container {
  height: 100%;
  overflow-y: auto;
  padding-right: 8px;
}

.content-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.content-scroll-container::-webkit-scrollbar-track {
  background: rgba(139, 69, 19, 0.1);
  border-radius: 3px;
}

.content-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(139, 69, 19, 0.3);
  border-radius: 3px;
}

.content-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 69, 19, 0.5);
}

.content-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow: hidden;
}

.content-item {
  border-left: 4px solid #8b4513;
  padding-left: 15px;
  flex-shrink: 0;
}

.content-title {
  font-size: 16px;
  font-weight: 600;
  color: #8b4513;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-title::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #8b4513;
  border-radius: 50%;
}

.content-text {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
  text-align: justify;
  background: rgba(139, 69, 19, 0.02);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(139, 69, 19, 0.1);
  height: 100%;
}

.catalog-container {
  background: rgba(139, 69, 19, 0.02);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(139, 69, 19, 0.1);
  height: 100%;
}

.catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.catalog-list li {
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #333;
  border-left: 3px solid #8b4513;
  transition: all 0.3s ease;
  cursor: pointer;
}

.catalog-list li:hover {
  background: rgba(139, 69, 19, 0.1);
  transform: translateX(5px);
}

/* ===== 右侧边栏：书籍概览 ===== */
.sidebar-right {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.overview-container {
  padding: 0 12px 15px;
  flex: 1;
  overflow-y: auto;
}

.overview-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overview-item {
  background: rgba(139, 69, 19, 0.05);
  border-radius: 8px;
  padding: 10px;
  border-left: 3px solid #8b4513;
  transition: all 0.3s ease;
}

.overview-item:hover {
  background: rgba(139, 69, 19, 0.1);
  transform: translateX(3px);
}

.overview-item .user {
  font-size: 13px;
  font-weight: 600;
  color: #8b4513;
  margin-bottom: 6px;
}

.overview-item .time {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}

.overview-item .comment {
  font-size: 12px;
  line-height: 1.4;
  color: #555;
  text-align: justify;
}

/* ===== 底部装饰 ===== */
.page-footer {
  padding: 20px 0;
  text-align: center;
}

.footer-lines {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.line {
  height: 4px;
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  border-radius: 2px;
}

.line-1 {
  width: 80px;
}

.line-2 {
  width: 200px;
}

.line-3 {
  width: 80px;
}

/* ===== 响应式设计 ===== */
@media screen and (max-width: 1200px) {
  .content-layout {
    grid-template-columns: 280px 1fr 280px;
    gap: 15px;
  }

  .nav-container {
    padding: 0;
  }

  .book-info-section {
    grid-template-columns: 160px 1fr;
    gap: 20px;
    padding: 20px;
  }

  .book-cover-container {
    min-height: 220px;
  }
}

@media screen and (max-width: 992px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px 40px;
  }

  .sidebar-left,
  .sidebar-right {
    position: static;
    max-height: none;
  }

  .book-info-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-cover-container {
    min-height: 200px;
  }

  .meta-row {
    flex-direction: column;
    gap: 10px;
  }

  .theme-tags {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .nav-buttons {
    gap: 25px;
  }

  .nav-button {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media screen and (max-width: 768px) {
  .main-container {
    padding-top: 80px;
  }

  .main-nav {
    height: 80px;
  }

  .nav-container {
    padding: 0;
  }

  .nav-title {
    font-size: 20px;
  }

  .nav-buttons {
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-button {
    padding: 6px 10px;
    font-size: 11px;
  }

  .page-header {
    padding: 20px 0;
  }

  .page-title {
    font-size: 24px;
  }

  .content-layout {
    padding: 0 12px 30px;
  }

  .section-title {
    font-size: 16px;
    padding: 16px 20px 12px;
  }

  .book-title {
    font-size: 20px;
  }

  .current-book-name {
    padding: 15px 20px;
  }

  .book-info-section,
  .book-content-section,
  .analysis-item {
    padding: 20px;
  }

  .catalog-list {
    grid-template-columns: 1fr;
  }

  .nav-tab {
    font-size: 11px;
    padding: 6px 8px;
  }

  .theme-tags {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px;
  }

  .theme-tags li {
    font-size: 10px;
    padding: 4px 6px;
    min-height: 18px;
    line-height: 1.2;
  }
}

@media screen and (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }

  .main-nav {
    height: auto;
    min-height: 60px;
  }

  .main-container {
    padding-top: 80px;
  }

  .nav-buttons {
    justify-content: center;
    width: 100%;
  }

  .page-title {
    font-size: 20px;
  }

  .content-layout {
    padding: 0 8px 20px;
  }

  .book-info-section,
  .book-content-section,
  .analysis-item,
  .section-card {
    margin: 0 -4px;
    border-radius: 8px;
  }

  .book-title {
    font-size: 18px;
    letter-spacing: 0.5px;
  }

  .current-book-name {
    padding: 12px 15px;
    margin-bottom: 8px;
  }

  .section-title {
    font-size: 14px;
    padding: 12px 16px 10px;
  }

  .book-list li {
    padding: 8px;
    gap: 8px;
  }

  .book-list li img {
    width: 40px;
    height: 56px;
  }

  .book-list li dt {
    font-size: 12px;
  }

  .book-list li dd {
    font-size: 11px;
  }
}

/* ===== 滚动条样式 ===== */
.book-list-container::-webkit-scrollbar,
.overview-container::-webkit-scrollbar {
  width: 6px;
}

.book-list-container::-webkit-scrollbar-track,
.overview-container::-webkit-scrollbar-track {
  background: rgba(139, 69, 19, 0.1);
  border-radius: 3px;
}

.book-list-container::-webkit-scrollbar-thumb,
.overview-container::-webkit-scrollbar-thumb {
  background: rgba(139, 69, 19, 0.3);
  border-radius: 3px;
}

.book-list-container::-webkit-scrollbar-thumb:hover,
.overview-container::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 69, 19, 0.5);
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 可控制的淡入动画 */
.fade-in-animation.section-card,
.fade-in-animation.book-info-section,
.fade-in-animation.book-content-section,
.fade-in-animation.analysis-item {
  animation: fadeInUp 0.6s ease-out;
}

/* 可控制的书籍列表动画 */
.fade-in-animation .book-list li {
  animation: fadeInUp 0.4s ease-out;
}

.fade-in-animation .book-list li:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in-animation .book-list li:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in-animation .book-list li:nth-child(3) {
  animation-delay: 0.3s;
}
.fade-in-animation .book-list li:nth-child(4) {
  animation-delay: 0.4s;
}
.fade-in-animation .book-list li:nth-child(5) {
  animation-delay: 0.5s;
}

/* ===== 加载状态 ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #8b4513;
  font-size: 14px;
}

.loading::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid rgba(139, 69, 19, 0.3);
  border-top: 2px solid #8b4513;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== 兼容旧版本的类名 ===== */
.fl {
  float: left;
}
.fr {
  float: right;
}
.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}
.clearfix:after {
  clear: both;
}
