/* 列表模块样式 */
.novel-list {
  width: 100%;
  padding: 10px 15px;
  background-color: #fff;
}

.novel-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

/* 小说封面图片 */
.novel-cover {
  width: 80px;
  height: 110px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

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

/* 小说信息区域 */
.novel-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 小说标题 */
.novel-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

/* 小说描述 */
.novel-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

/* 小说元数据区域 */
.novel-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}

.novel-meta > * {
  margin-right: 8px;
  position: relative;
}

.novel-meta > *:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 10px;
  background-color: #ddd;
}

/* 作者信息 */
.novel-author {
  color: #1890ff;
}

/* 完本状态 */
.novel-status {
  color: #4CAF50;
}

/* 分类标签 */
.novel-category {
  color: #ff6b81;
  text-decoration: none;
}

/* 字数信息 */
.novel-wordcount {
  color: #888;
}

/* 排行榜模块样式 */
.ranking-list {
  width: 100%;
  padding: 10px 15px;
  background-color: #fff;
}

.ranking-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

/* 排名样式 */
.ranking-number {
  position: absolute;
  left: -3px;
  top: 15px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  border-radius: 50%;
  z-index: 1;
}

/* 前三名特殊样式 */
.ranking-number-1 {
  background-color: #FFD700;
  color: #fff;
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.ranking-number-2 {
  background-color: #C0C0C0;
  color: #fff;
  box-shadow: 0 2px 4px rgba(192, 192, 192, 0.3);
}

.ranking-number-3 {
  background-color: #CD7F32;
  color: #fff;
  box-shadow: 0 2px 4px rgba(205, 127, 50, 0.3);
}

/* 其他排名 */
.ranking-number-other {
  background-color: #f5f5f5;
  color: #999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 排行榜封面图片 */
.ranking-cover {
  width: 80px;
  height: 110px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 12px;
  margin-left: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

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

/* 排行榜信息区域 */
.ranking-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 排行榜标题 */
.ranking-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

/* 排行榜描述 */
.ranking-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

/* 排行榜元数据区域 */
.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}

.ranking-meta > * {
  margin-right: 8px;
  position: relative;
}

.ranking-meta > *:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 10px;
  background-color: #ddd;
}

/* 模块标题样式 */
.module-title {
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.module-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background-color: #4e6ef2;
  border-radius: 1.5px;
}

.module-title .more {
  font-size: 12px;
  color: #999;
  font-weight: normal;
  text-decoration: none;
}

/* 列表模块样式 */
.novel-list {
  width: 100%;
  padding: 0 15px 10px;
  background-color: #fff;
  overflow-x: hidden;
}

/* 排行榜模块样式 */
.ranking-list {
  width: 100%;
  padding: 0 15px 10px;
  background-color: #fff;
  margin-top: 10px;
}

/* 6个的样式 */
.section {
  background: #fff;
  padding: 1rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 1rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}

.fire-icon {
  font-size: 1.2rem;
}

.more-link {
  color: #666;
  font-size: 0.8rem;
  text-decoration: none;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.book-card {
  width: 6.4rem;
}

.book-cover {
  position: relative;
  width: 6.4rem;
  height: 8.5rem;
  border-radius: 0.2rem;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.book-cover img {
  width: 6.4rem;
  height: 8.5rem;
  object-fit: cover;
}

.book-views {
  position: absolute;
  left: 0.2rem;
  bottom: 0.2rem;
  color: #fff;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.1rem 0.2rem;
  border-radius: 0.2rem;
}

.book-title {
  font-size: 14px;
  color: #333;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  height: 2.4em;
  margin-top: .24rem;
  font-family: SF Pro;
  font-weight: 700;
  color: #333;
}

.book-item {
  display: flex;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.book-item .book-cover {
  width: 6.4rem;
  height: 8.5rem;
  margin-right: 1rem;
  margin-bottom: 0;
  border-radius: 0.3rem;
  overflow: hidden;
}

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

.book-item .book-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.book-item .book-title {
  font-size: 1rem;
  color: #333;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.book-item .book-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.book-item .book-author {
  color: #666;
}

.book-item .book-status,
.book-item .book-category {
  color: #cc3e64;
}

.book-item .book-words {
  color: #999;
}

.book-item .book-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}


/* 详情页样式 */
.detail-container {
  padding: 15px;
  background-color: #fff;
}

/* 返回按钮 */
.back-button {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.back-button i {
  font-size: 20px;
  color: #333;
}

/* 详情头部 */
.detail-header {
  display: flex;
  margin-bottom: 15px;
}

.detail-cover {
  width: 100px;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

.detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detail-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.3;
}

.detail-author {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.detail-author a {
  color: #3366ff;
}

.detail-status {
  display: inline-block;
  padding: 2px 6px;
  background-color: #f0f0f0;
  color: #666;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 8px;
}

.detail-status.completed {
  background-color: #e6f7ff;
  color: #1890ff;
}

.detail-category {
  display: inline-block;
  padding: 2px 6px;
  background-color: #f0f0f0;
  color: #666;
  border-radius: 4px;
  font-size: 12px;
}

.detail-category a {
  color: #666;
}

.detail-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #999;
}

.detail-stats span {
  margin-right: 15px;
  display: flex;
  flex-direction: column;
}

/* 标签列表 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  margin: 15px 0;
}

.tag-item {
  display: inline-block;
  padding: 4px 10px;
  background-color: #f5f5f5;
  color: #666;
  border-radius: 15px;
  font-size: 12px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.tag-item a {
  color: #666;
}

/* 文章描述 */
.detail-description {
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 15px 0;
}

/* 操作按钮 */
.detail-actions {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.action-button i {
  font-size: 20px;
  margin-bottom: 5px;
}

.action-count {
  font-size: 12px;
}

/* 阅读按钮 */
.read-button {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 100%;
  padding: 12px 0;
  background-color: #3366ff;
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(51,102,255,0.3);
  z-index: 999;
}

/* 最新章节和目录模块共用样式 */
.new-chapter, .chapter-directory {
  margin: 15px;
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.new-chapter-title, .directory-title {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.chapter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chapter-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.chapter-item:last-child {
  border-bottom: none;
}

.chapter-name {
  flex: 1;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-name a {
  color: #333;
  text-decoration: none;
}

.chapter-name a:hover {
  color: #3366ff;
}

.chapter-time {
  font-size: 12px;
  color: #999;
  margin-left: 10px;
}

/* 查看更多按钮 */
.view-more {
  display: block;
  text-align: center;
  padding-top: 10px;
  color: #3366ff;
  font-size: 14px;
  text-decoration: none;
  margin-top: 10px;
  border-top: 1px solid #eee;
}

.view-more i {
  margin-left: 5px;
  font-size: 12px;
}

/* 排行榜样式 */
.rank-container {
  padding: 15px;
}

.rank-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 15px 0;
  text-align: center;
}

.rank-section {
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
}

.rank-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.rank-more {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
}

.rank-more i {
  margin-left: 5px;
  font-size: 12px;
}

.rank-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-item {
  display: flex;
  padding: 12px 15px;
  border-bottom: 1px solid #f5f5f5;
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-index {
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  background-color: #f0f0f0;
  color: #999;
  border-radius: 4px;
  margin-right: 10px;
  font-size: 12px;
  flex-shrink: 0;
}

.rank-index.top1 {
  background-color: #ff4d4f;
  color: #fff;
}

.rank-index.top2 {
  background-color: #ff7a45;
  color: #fff;
}

.rank-index.top3 {
  background-color: #ffa940;
  color: #fff;
}

.rank-cover {
  width: 60px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
}

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

.rank-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.rank-book-title {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-book-desc {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.rank-book-meta {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  color: #999;
}

.rank-book-author, .rank-book-category, .rank-book-words {
  margin-right: 10px;
  margin-bottom: 3px;
}

.rank-book-category {
  color: #3366ff;
}

/* 阅读页面样式 */
.read-container {
  padding: 15px;
  background-color: #f8f8f8;
  min-height: calc(100vh - 100px);
}

/* 章节标题 */
.chapter-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin: 15px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

/* 章节内容 */
.chapter-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  padding: 15px 0;
  letter-spacing: 0.5px;
}

.chapter-content p {
  margin-bottom: 15px;
  text-indent: 2em;
}

/* 章节导航 */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  margin-top: 20px;
  border-top: 1px solid #eee;
}

.nav-button {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  background-color: #fff;
  color: #666;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  margin: 0 5px;
}

.nav-button.disabled {
  background-color: #f5f5f5;
  color: #ccc;
  box-shadow: none;
}

.nav-button:first-child {
  margin-left: 0;
}

.nav-button:last-child {
  margin-right: 0;
}

/* 设置面板 */
.settings-panel {
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: none;
  z-index: 100;
}

.settings-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.settings-group {
  margin-bottom: 15px;
}

.settings-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.font-size-controls, .theme-controls {
  display: flex;
}

.control-button {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  background-color: #f5f5f5;
  color: #666;
  border-radius: 4px;
  margin: 0 5px;
}

.control-button.active {
  background-color: #3366ff;
  color: #fff;
}


.font-size-value {
  font-size: 12px;
  color: #999;
}

/* 滑动条样式 */
.font-size-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: #ddd;
  outline: none;
  border-radius: 2px;
}

.font-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #3366ff;
  border-radius: 50%;
  cursor: pointer;
}

.font-size-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #3366ff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}


/* 顶部导航栏 */
.read-header {
  position: sticky;
  top: 46px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-button {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.book-title-read {
  font-size: 16px;
  color: #333;
  font-weight: bold;
  height: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.settings-button {
  font-size: 16px;
  color: #666;
}

/* 主题色块样式 */
.theme-colors {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}

.theme-color {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
}

.theme-color.active::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.theme-color:hover {
  transform: scale(1.1);
}

/* 预定义主题色块 */
.theme-default {
  background-color: #f8f8f8;
  border: 1px solid #eee;
}

.theme-sepia {
  background-color: #f4ecd8;
}

.theme-green {
  background-color: #e6f3e6;
}

.theme-dark {
  background-color: #333;
}

.theme-black {
  background-color: #000;
}

/* 主题样式 */
/* 默认主题 */
.read-container {
  background-color: #f8f8f8;
  color: #333;
}

/* 复古主题 */
.read-container.theme-sepia {
  background-color: #f4ecd8;
  color: #5c4b37;
}

.read-container.theme-sepia .chapter-content {
  color: #5c4b37;
}

/* 护眼主题 */
.read-container.theme-green {
  background-color: #e6f3e6;
  color: #2c4a2c;
}

.read-container.theme-green .chapter-content {
  color: #2c4a2c;
}

/* 深色主题 */
.read-container.theme-dark {
  background-color: #333;
  color: #bbb;
}

.read-container.theme-dark .chapter-content {
  color: #bbb;
}

/* 纯黑主题 */
.read-container.theme-black {
  background-color: #000;
  color: #888;
}

.read-container.theme-black .chapter-content {
  color: #888;
}


/* 个性化筛选区域样式 */
.filter-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.filter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #4e54c8, #8f94fb, #4e54c8);
  background-size: 200% 200%;
  animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
  0% {background-position: 0% 50%}
  50% {background-position: 100% 50%}
  100% {background-position: 0% 50%}
}

.filter-group {
  margin-bottom: 12px;
  position: relative;
  border-bottom: 1px dashed #dee2e6;
  padding-bottom: 12px;
}

.filter-group:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.filter-title {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  margin-right: 15px;
  position: relative;
  padding-left: 22px;
}

/* 为每个筛选标题添加不同的图标 */
.filter-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
}

.filter-group:nth-child(1) .filter-title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234e54c8'%3E%3Cpath d='M3 17h18v2H3v-2zm0-7h12v2H3v-2zm0-7h18v2H3V3z'/%3E%3C/svg%3E");
}

.filter-group:nth-child(2) .filter-title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234e54c8'%3E%3Cpath d='M4 9h16v2H4V9zm0 4h10v2H4v-2z'/%3E%3C/svg%3E");
}

.filter-group:nth-child(3) .filter-title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234e54c8'%3E%3Cpath d='M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z'/%3E%3C/svg%3E");
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-option {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  color: #495057;
  background-color: #fff;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.filter-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(78, 84, 200, 0.1), rgba(143, 148, 251, 0.1));
  transition: all 0.3s ease;
  z-index: -1;
}

.filter-option:hover {
  border-color: #8f94fb;
  color: #4e54c8;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(78, 84, 200, 0.15);
}

.filter-option:hover::before {
  left: 0;
}

.filter-option.active {
  background: linear-gradient(90deg, #4e54c8, #8f94fb);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 8px rgba(78, 84, 200, 0.3);
}

.filter-option.active::before {
  display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .filter-title {
    display: block;
    margin-bottom: 8px;
  }
  
  .filter-options {
    margin-left: 22px;
  }
  
  .filter-option {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* 添加一些装饰元素 */
.filter-section::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(78, 84, 200, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.author-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.author-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.author-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  position: relative;
  display: inline-block;
}

.author-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #3366ff, #00ccff);
  border-radius: 3px;
}

.author-subtitle {
  font-size: 14px;
  color: #666;
  margin-top: 15px;
}

.author-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-card {
  flex: 1;
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #3366ff, #00ccff);
  opacity: 0.8;
}

.author-card::before {
  background: linear-gradient(90deg, #ff6b6b, #ffa3a3);
}

.works-card::before {
  background: linear-gradient(90deg, #36d1dc, #5b86e5);
}

.words-card::before {
  background: linear-gradient(90deg, #11998e, #38ef7d);
}

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

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  font-size: 20px;
  color: white;
  background: linear-gradient(135deg, #3366ff, #00ccff);
}

.author-card .stat-icon {
  background: linear-gradient(135deg, #ff6b6b, #ffa3a3);
}

.works-card .stat-icon {
  background: linear-gradient(135deg, #36d1dc, #5b86e5);
}

.words-card .stat-icon {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-label {
  font-size: 14px;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .author-stats {
    flex-direction: column;
  }
  
  .stat-card {
    width: 100%;
  }
}