.site-intro {
  margin: 0;
  padding: 0;
}

.site-intro h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.site-intro p {
  display: none;
}

.book-coverlist .cover img,
.book-coverlist img.thumbnail {
  width: 120px;
  height: 160px;
  object-fit: cover;
  display: block;
}

img.lazy:not([src]) {
  background: #f5f5f5 url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjE2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjVmNWY1Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxNCIgZmlsbD0iI2NjYyIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPuWKoOi9veS4rTwvdGV4dD48L3N2Zz4=') center/cover no-repeat;
}

img.lazy[src]:not([src=""]) {
  background: none;
}

/* 浮窗播放器样式 */
.tts-player-float {
  position: static !important;
  bottom: auto !important;
  right: auto !important;
  z-index: 10000;
}

/* 主控制按钮 */
.tts-main-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  color: white;
  font-size: 24px;
  border: none;
  opacity: 0.8;
}

.tts-main-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
  opacity: 1;
}

.tts-main-btn:active {
  transform: scale(0.95);
}

/* 控制面板 */
.tts-control-panel {
  position: fixed;
  bottom: auto;
  right: auto;
  top: auto;
  left: auto;
  width: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 16px;
  animation: slideUp 0.3s ease-out;
  z-index: 10001;
  min-height: 60px;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 高亮 */
.tts-highlight-active-bg {
  background-color: #ABE7B2 !important;
  transition: background-color 0.2s ease;
}

/* 章节内容段落样式 */
#novel-content p {
  margin: 0;
  padding: 0;
  line-height: 1.8;
  transition: background-color 0.3s ease;
}

/* 前导空格样式 - 不参与高亮 */
#novel-content p .leading-space {
  display: inline;
  white-space: pre; /* 保留空格 */
}

/* 文本内容样式 - 可以被高亮 */
#novel-content p .text-content {
  display: inline;
}

/* 朗读时的字符高亮 */
#novel-content p .text-content span[style*="color: #FF6B6B"] {
  color: #FF6B6B !important;
  font-weight: bold !important;
}

/* 面板头部 */
.tts-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.tts-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.tts-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 1;
  transition: color 0.2s;
}

.tts-close-btn:hover {
  color: #333;
}

/* 不支持提示 */
.tts-unsupported {
  text-align: center;
  padding: 20px 10px;
  color: #666;
}

.tts-unsupported i {
  font-size: 48px;
  color: #ff9800;
  margin-bottom: 12px;
}

.tts-unsupported p {
  font-size: 14px;
  margin: 8px 0;
  color: #333;
}

.tts-unsupported small {
  font-size: 12px;
  color: #999;
}

/* 播放控制按钮组 */
.tts-playback-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tts-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tts-btn-play {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.tts-btn-pause {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.tts-btn-resume {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.tts-btn-stop {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
}

.tts-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tts-btn:active {
  transform: scale(0.95);
}

/* 控制组 */
.tts-control-group {
  margin-bottom: 12px;
}

.tts-label {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  font-weight: 500;
}

.tts-label .glyphicon {
  margin-right: 6px;
}

/* 滑块组 */
.tts-slider-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tts-slider {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  outline: none;
  background: #e0e0e0;
  -webkit-appearance: none;
}

.tts-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tts-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tts-value {
  font-size: 12px;
  color: #666;
  min-width: 45px;
  text-align: right;
  font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .tts-player-float {
    bottom: 60px;
    right: 10px;
  }

  .tts-main-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .tts-control-panel {
    width: calc(100vw - 40px);
    max-width: 320px;
    right: -10px;
  }

  .tts-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .tts-control-panel {
    bottom: 60px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

.user-nav-container {
  background-color: var(--bg-color-panel);
  border-bottom: 1px solid var(--border-color-panel);
  padding: 5px 0;
}

.user-nav {
  display: flex;
  justify-content: flex-end;
}

.user-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.user-nav-item {
  margin: 0 5px;
}

.user-nav-item a {
  display: flex;
  align-items: center;
  color: var(--font-color-link);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.user-nav-item a:hover {
  color: var(--font-color-hover);
}

.user-nav-item .user-nav-link {
  display: flex;
  align-items: center;
  color: var(--font-color-link);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.user-nav-item .user-nav-link:hover {
  color: var(--font-color-hover);
}

@media (min-width: 768px) {
  .user-nav-item {
    margin: 0 15px;
  }

  .user-nav-item .glyphicon {
    margin-right: 5px;
  }

  .user-nav-item a,
  .user-nav-item .user-nav-link {
    padding: 3px 8px;
  }
}

@media (max-width: 767px) {
  .user-nav {
    justify-content: center;
  }

  .user-nav-list {
    flex-wrap: wrap;
  }

  .nav-text {
    display: none;
  }

  .user-nav-item .glyphicon {
    margin-right: 0;
    font-size: 14px;
  }

  .user-nav-item a,
  .user-nav-item .user-nav-link {
    padding: 5px;
  }
}

/*书架*/
.bookshelf-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

.bookshelf-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color-panel);
}

.bookshelf-header h2 {
  color: var(--font-color-link);
  margin: 0;
  font-size: 24px;
}

.bookshelf-empty {
  text-align: center;
  padding: 50px 20px;
  color: #999;
}

.bookshelf-empty .glyphicon {
  font-size: 48px;
  margin-bottom: 15px;
  color: #ddd;
}

.bookshelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .bookshelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
  }
}

.book-item {
  background: var(--bg-color-panel);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-panel);
  border: 1px solid var(--border-color-panel);
  overflow: hidden;
  transition: transform 0.2s;
  text-align: center;
}

.book-item:hover {
  transform: translateY(-5px);
}

.book-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #f5f5f5;
}

.book-info {
  padding: 15px;
}

.book-title {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-author {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px 15px;
}

.remove-book {
  color: #ff6b6b;
  cursor: pointer;
  font-size: 14px;
}

.remove-book:hover {
  color: #ff0000;
}

@media (max-width: 767px) {
  .bookshelf-container {
    margin: 10px auto;
    padding: 0 10px;
  }

  .bookshelf-header h2 {
    font-size: 20px;
    text-align: center;
  }

  .bookshelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
  }

  .book-cover {
    height: 150px;
  }

  .book-info {
    padding: 10px;
  }

  .book-title {
    font-size: 13px;
    margin: 0 0 5px 0;
  }

  .book-author {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .book-actions {
    padding: 0 10px 10px;
  }

  .read-link, .remove-book {
    font-size: 12px;
  }

  .bookshelf-empty {
    padding: 30px 10px;
  }

  .bookshelf-empty .glyphicon {
    font-size: 36px;
  }

  .bookshelf-empty h4 {
    font-size: 16px;
  }

  .bookshelf-empty p {
    font-size: 14px;
  }
}

/* 书架样式结束 */

/* 书籍信息页面布局优化 - 调整容器尺寸适应新图片大小 */
.book-bookinfo .panel-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 25px;
  padding: 25px;
}

.book-bookinfo .cover {
  flex: 0 0 auto;
  min-width: 150px;
  max-width: 180px;
}

.book-bookinfo .caption-bookinfo {
  flex: 1 1 auto;
  min-width: 320px;
}

/* 修复图片显示问题 - 调整尺寸使布局更美观 */
.book-bookinfo .cover .thumbnail {
  width: 150px;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #f5f5f5 url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjVmNWY1Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxNCIgZmlsbD0iI2NjYyIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPuWKoOi9veS4rTwvdGV4dD48L3N2Zz4=') center/cover no-repeat;
}

/* 确保懒加载图片正确显示 */
.book-bookinfo .cover .thumbnail[src]:not([src=""]) {
  background: none;
}

/* 懒加载图片样式 */
.book-bookinfo .cover .thumbnail.lazy:not([src]) {
  background: #f5f5f5 url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjZjVmNWY1Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxNCIgZmlsbD0iI2NjYyIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPuWKoOi9veS4rTwvdGV4dD48L3N2Zz4=') center/cover no-repeat;
}

.book-bookinfo .cover .thumbnail.lazy[src]:not([src=""]) {
  background: none;
}

/* 移动端适配优化 */
@media (max-width: 767px) {
  .book-bookinfo .panel-body {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }

  .book-bookinfo .cover {
    align-self: center;
    max-width: 140px;
    min-width: 140px;
    display: block !important;
    margin: 0 auto;
  }

  .book-bookinfo .caption .name {
    font-size: 18px;
    text-align: center;
  }

  /* 移动端图片显示修复 - 调整尺寸 */
  .book-bookinfo .cover .thumbnail {
    width: 140px;
    height: 186px;
    display: block !important;
    margin: 0 auto;
  }
}

/* 中等屏幕适配 */
@media (min-width: 768px) and (max-width: 991px) {
  .book-bookinfo .cover {
    max-width: 160px;
    min-width: 160px;
  }

  .book-bookinfo .caption-bookinfo {
    min-width: 300px;
  }

  .book-bookinfo .caption .name {
    font-size: 19px;
  }

  .book-bookinfo .cover .thumbnail {
    width: 160px;
    height: 213px;
  }
}

/* 大屏幕适配 */
@media (min-width: 992px) {
  .book-bookinfo .cover {
    max-width: 180px;
    min-width: 180px;
  }

  .book-bookinfo .caption-bookinfo {
    min-width: 350px;
    max-width: 750px;
  }

  .book-bookinfo .caption .name {
    font-size: 22px;
  }

  .book-bookinfo .cover .thumbnail {
    width: 140px;
    height: 185px;
  }
}

/* 自动滚动控件按钮样式 */
.scroll-speed-up,
.scroll-speed-down {
  transition: all 0.2s ease !important;
}

.scroll-speed-up:hover,
.scroll-speed-down:hover {
  background: #e0e0e0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  transform: scale(1.05);
}

.scroll-speed-up:active,
.scroll-speed-down:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
}

/* 右侧浮动控件容器 - 统一管理三个控件的位置 */
.floating-controls-container {
  position: fixed;
  right: 15px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* 控件展开/收起按钮 */
.floating-controls-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0.8;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
  padding: 0;
  flex-shrink: 0;
}

.floating-controls-toggle:hover {
  opacity: 1;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.5);
}

.floating-controls-toggle:active {
  box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.floating-controls-toggle .glyphicon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* 控件展开/收起容器 */
.floating-controls-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  transition: all 0.3s ease;
  max-height: 500px;
  overflow: hidden;
  opacity: 1;
  pointer-events: auto;
}

.floating-controls-items.collapsed {
  max-height: 0;
  gap: 0;
  opacity: 0;
  pointer-events: none;
}

/* 返回顶部按钮位置调整 */
.back-to-top {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
  color: white;
  text-align: center;
  font-size: 24px;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
  border: none;
  overflow: visible;
  flex-shrink: 0;
}

.back-to-top:hover {
  opacity: 1;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.5);
}

.back-to-top:active {
  box-shadow: 0 2px 6px rgba(78, 205, 196, 0.3);
}

.back-to-top .glyphicon {
  font-size: 26px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 自动滚动控件 */
.auto-scroll-controls {
  position: static !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  color: #333;
  padding: 0;
  border-radius: 0;
  z-index: 9999;
  width: auto;
  opacity: 0.8;
  background: transparent;
  box-shadow: none;
  transition: opacity 0.3s ease;
}

.auto-scroll-controls:hover {
  opacity: 1;
}

.auto-scroll-controls .form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  gap: 4px;
}

.auto-scroll-controls .scroll-speed-up,
.auto-scroll-controls .scroll-speed-down {
  width: 44px;
  height: 44px;
  border: none;
  background: linear-gradient(135deg, #FFB347 0%, #FFA500 100%);
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
  padding: 0;
  border: none;
  flex-shrink: 0;
}

.auto-scroll-controls .scroll-speed-up .glyphicon,
.auto-scroll-controls .scroll-speed-down .glyphicon {
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auto-scroll-controls .scroll-speed-up:hover,
.auto-scroll-controls .scroll-speed-down:hover {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.5);
  opacity: 1;
}

.auto-scroll-controls .scroll-speed-up:active,
.auto-scroll-controls .scroll-speed-down:active {
  box-shadow: 0 1px 4px rgba(255, 165, 0, 0.3);
}

.auto-scroll-controls .scroll-speed-up {
  margin-bottom: 0;
}

.auto-scroll-controls .scroll-speed-down {
  margin-top: 0;
}

/* 速度显示 */
.auto-scroll-controls .scroll-speed-value {
  font-weight: bold;
  font-size: 14px;
  color: #FF8C00;
  min-width: 28px;
  text-align: center;
  line-height: 1;
}

/* 书籍信息面板背景优化 */
.book-bookinfo {
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.book-bookinfo .coverbg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-repeat: no-repeat;
  -webkit-filter: blur(5px);
  filter: blur(5px);
  background-size: cover;
  background-position: 50%;
  opacity: .12;
  z-index: -1;
}

.book-bookinfo .panel-body {
  z-index: 10;
}

/* 隐藏 layout.html 中的旧返回顶部按钮 */
.footer + .back-to-top {
  display: none !important;
}

/* ========== 反馈弹窗样式 ========== */

/* 反馈弹窗容器 */
.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: feedbackFadeIn 0.3s ease;
}

@keyframes feedbackFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 弹窗背景 */
.feedback-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

/* 弹窗内容 */
.feedback-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: feedbackSlideUp 0.3s ease;
  z-index: 10000;
}

@keyframes feedbackSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 弹窗头部 */
.feedback-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.feedback-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.feedback-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.feedback-modal-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.feedback-modal-close:active {
  transform: scale(0.95);
}

/* 弹窗主体 */
.feedback-modal-body {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
}

/* 表单样式 */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}

.feedback-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
}

.feedback-form .required {
  color: #e74c3c;
  font-weight: bold;
}

.feedback-form .form-hint {
  font-size: 11px;
  color: #999;
  font-weight: normal;
}

/* 反馈类型选择 */
.feedback-type-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.feedback-type-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9f9f9;
}

.feedback-type-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.feedback-type-item input[type="radio"]:checked + .type-icon,
.feedback-type-item input[type="radio"]:checked ~ .type-text {
  color: #667eea;
}

.feedback-type-item input[type="radio"]:checked ~ .type-text {
  color: #667eea;
}

.feedback-type-item:has(input[type="radio"]:checked) {
  border-color: #667eea;
  background: #f0f4ff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.feedback-type-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.type-icon {
  font-size: 24px;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.type-text {
  font-size: 11px;
  color: #333;
  text-align: center;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* 表单控件 */
.feedback-form .form-control {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.feedback-form .form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
  background-color: #f9fbff;
}

.feedback-form .form-control::placeholder {
  color: #999;
}

/* 文本域 */
.feedback-textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 120px;
  font-family: inherit;
  line-height: 1.4;
}

.textarea-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
  border-top: 1px solid #f0f0f0;
}

.char-count {
  font-size: 11px;
  color: #999;
  font-weight: 500;
}

/* 表单错误提示 */
.feedback-form .form-error {
  display: block;
  color: #e74c3c;
  font-size: 11px;
  min-height: 16px;
  animation: feedbackSlideDown 0.3s ease;
}

@keyframes feedbackSlideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 表单操作按钮 */
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.feedback-form .btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  letter-spacing: 0.5px;
}

.feedback-form .btn-icon {
  font-size: 12px;
}

.feedback-form .btn-text {
  display: inline;
}

.feedback-form .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.feedback-form .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.feedback-form .btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.feedback-form .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.feedback-form .btn-secondary {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
}

.feedback-form .btn-secondary:hover {
  background: #e8e8e8;
  border-color: #ccc;
}

.feedback-form .btn-secondary:active {
  background: #e0e0e0;
}

/* 反馈消息 */
.feedback-message {
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  animation: feedbackSlideDown 0.3s ease;
}

.feedback-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.feedback-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .feedback-modal-content {
    width: 95%;
    max-height: 90vh;
    border-radius: 8px;
  }

  .feedback-modal-header {
    padding: 14px 16px;
    border-radius: 8px 8px 0 0;
  }

  .feedback-modal-title {
    font-size: 16px;
  }

  .feedback-modal-close {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }

  .feedback-modal-body {
    padding: 16px;
  }

  .feedback-form {
    gap: 12px;
  }

  .feedback-form .form-group {
    gap: 5px;
  }

  .feedback-form .form-label {
    font-size: 12px;
  }

  .feedback-type-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .feedback-type-item {
    padding: 10px;
  }

  .type-icon {
    font-size: 20px;
    margin-bottom: 3px;
  }

  .type-text {
    font-size: 10px;
  }

  .feedback-form .form-control {
    padding: 8px 10px;
    font-size: 14px;
  }

  .feedback-textarea {
    min-height: 70px;
    max-height: 100px;
  }

  .feedback-form .btn {
    padding: 9px 14px;
    font-size: 12px;
    gap: 4px;
  }

  .feedback-form .btn-icon {
    font-size: 11px;
  }

  .form-actions {
    gap: 8px;
  }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
  .feedback-modal-content {
    width: 98%;
    max-height: 92vh;
  }

  .feedback-modal-header {
    padding: 12px 14px;
  }

  .feedback-modal-title {
    font-size: 15px;
  }

  .feedback-modal-body {
    padding: 14px;
  }

  .feedback-form {
    gap: 10px;
  }

  .feedback-form .form-group {
    gap: 4px;
  }

  .feedback-form .form-label {
    font-size: 11px;
  }

  .feedback-type-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feedback-type-item {
    padding: 10px;
  }

  .type-icon {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .type-text {
    font-size: 10px;
  }

  .feedback-form .form-control {
    padding: 8px 10px;
    font-size: 14px;
  }

  .feedback-textarea {
    min-height: 60px;
    max-height: 90px;
  }

  .feedback-form .btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  .feedback-form .btn-icon {
    font-size: 10px;
  }

  .form-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* 横屏模式 */
@media (max-height: 600px) and (orientation: landscape) {
  .feedback-modal-content {
    max-height: 95vh;
  }

  .feedback-modal-body {
    max-height: calc(95vh - 60px);
  }

  .feedback-textarea {
    min-height: 50px;
    max-height: 80px;
  }

  .feedback-type-group {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .feedback-type-item {
    padding: 8px;
  }

  .type-icon {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .type-text {
    font-size: 9px;
  }
}

/* 打印样式 */
@media print {
  .feedback-modal {
    display: none !important;
  }
}


/* 主页 */
.panel-heading h2 {
  display: inline;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.site-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* icons */
/* SVG 图标样式 - 替代 Glyphicon 字体图标 */

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
  overflow: visible;
}

/* 图标大小变体 */
.icon-xs {
  width: 0.75em;
  height: 0.75em;
}

.icon-sm {
  width: 0.875em;
  height: 0.875em;
}

.icon-lg {
  width: 1.33em;
  height: 1.33em;
  vertical-align: -0.25em;
}

.icon-xl {
  width: 2em;
  height: 2em;
  vertical-align: -0.5em;
}

.icon-2x {
  width: 2em;
  height: 2em;
}

.icon-3x {
  width: 3em;
  height: 3em;
}

.icon-4x {
  width: 4em;
  height: 4em;
}

.icon-5x {
  width: 5em;
  height: 5em;
}

/* 特定尺寸 */
.fs-14 .icon {
  width: 14px;
  height: 14px;
}

/* 图标动画 */
.icon-spin {
  animation: icon-spin 2s infinite linear;
}

@keyframes icon-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 图标翻转 */
.icon-flip-horizontal {
  transform: scaleX(-1);
}

.icon-flip-vertical {
  transform: scaleY(-1);
}

/* 图标旋转 */
.icon-rotate-90 {
  transform: rotate(90deg);
}

.icon-rotate-180 {
  transform: rotate(180deg);
}

.icon-rotate-270 {
  transform: rotate(270deg);
}

/* 按钮中的图标间距 */
.btn .icon {
  margin-right: 0.25em;
}

.btn .icon:last-child {
  margin-right: 0;
  margin-left: 0.25em;
}

.btn .icon:only-child {
  margin: 0;
}

/* 标签中的图标 */
.label .icon {
  margin-right: 0.25em;
  vertical-align: middle;
}

.label .icon:last-child {
  margin-right: 0;
  margin-left: 0.25em;
}

/* 章节导航按钮中的图标 */
.readpage .label .icon {
  vertical-align: middle;
}

/* 导航中的图标 */
.nav .icon,
.navbar .icon {
  margin-right: 0.25em;
}

/* 面包屑中的图标 */
.breadcrumb .icon {
  margin-right: 0.25em;
  vertical-align: middle;
}

/* 面板标题中的图标 */
.panel-heading .icon {
  margin-right: 0.5em;
  vertical-align: middle;
}

/* 返回顶部按钮图标 */
.back-to-top .icon {
  width: 24px;
  height: 24px;
  display: block;
  margin: 11px auto 0;
}

/* 书架空状态图标 */
.bookshelf-empty .icon {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto 20px;
  opacity: 0.3;
}

/* 历史记录空状态图标 */
.no-history .icon {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto 20px;
  opacity: 0.3;
}

/* 移动端适配 */
@media (max-width: 767px) {
  .bookshelf-empty .icon,
  .no-history .icon {
    width: 36px;
    height: 36px;
  }

  /* 移动端章节导航按钮 */
  .readpage .label {
    padding: 0.4em 0.8em;
  }
}

/* 隐藏类（兼容 Bootstrap 的 hidden-xs 等） */
@media (max-width: 767px) {
  .hidden-xs {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hidden-sm {
    display: none !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hidden-md {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .hidden-lg {
    display: none !important;
  }
}

/* 可见类 */
@media (max-width: 767px) {
  .visible-xs {
    display: block !important;
  }

  .visible-xs-block {
    display: block !important;
  }

  .visible-xs-inline {
    display: inline !important;
  }

  .visible-xs-inline-block {
    display: inline-block !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .visible-sm {
    display: block !important;
  }

  .visible-sm-block {
    display: block !important;
  }

  .visible-sm-inline {
    display: inline !important;
  }

  .visible-sm-inline-block {
    display: inline-block !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .visible-md {
    display: block !important;
  }

  .visible-md-block {
    display: block !important;
  }

  .visible-md-inline {
    display: inline !important;
  }

  .visible-md-inline-block {
    display: inline-block !important;
  }
}

@media (min-width: 1200px) {
  .visible-lg {
    display: block !important;
  }

  .visible-lg-block {
    display: block !important;
  }

  .visible-lg-inline {
    display: inline !important;
  }

  .visible-lg-inline-block {
    display: inline-block !important;
  }
}

/* 反馈弹窗关闭按钮图标 */
.feedback-modal-close .icon {
  width: 16px;
  height: 16px;
}

/* 浮动控件图标 */
.floating-controls-toggle .icon,
.scroll-speed-up .icon,
.scroll-speed-down .icon {
  width: 16px;
  height: 16px;
}

/* TTS 播放器图标 */
.tts-main-btn .icon {
  width: 20px;
  height: 20px;
}

.tts-btn .icon {
  width: 18px;
  height: 18px;
}

.tts-label .icon {
  width: 16px;
  height: 16px;
  margin-right: 0.25em;
  vertical-align: middle;
}

.tts-unsupported .icon {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0 auto 10px;
}

/* 移除书籍图标 */
.remove-book .icon {
  width: 16px;
  height: 16px;
}

/* 用户导航图标 */
.user-nav-link .icon,
.user-nav-item a .icon {
  margin-right: 0.25em;
  vertical-align: middle;
}

/* 面板页脚图标 */
.panel-footer .icon {
  margin-right: 0.25em;
  vertical-align: middle;
}
