/* 基础样式 */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

::before, ::after {
  --tw-content: '';
}

/* 容器 */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
    padding-right: 2rem;
    padding-left: 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* 布局类 */
.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* 网格布局 */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 响应式网格 */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:flex {
    display: flex;
  }
  
  .md\:flex-row {
    flex-direction: row;
  }
  
  .md\:block {
    display: block;
  }
  
  .md\:hidden {
    display: none;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* 定位 */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.top-0 {
  top: 0;
}

.right-0 {
  right: 0;
}

.left-0 {
  left: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* 尺寸 */
.w-full {
  width: 100%;
}

.w-3 {
  width: 0.75rem;
}

.w-6 {
  width: 1.5rem;
}

.w-8 {
  width: 2rem;
}

.w-10 {
  width: 2.5rem;
}

.w-12 {
  width: 3rem;
}

.w-1\.5 {
  width: 0.375rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.h-1 {
  height: 0.25rem;
}

.h-3 {
  height: 0.75rem;
}

.h-8 {
  height: 2rem;
}

.h-10 {
  height: 2.5rem;
}

.h-12 {
  height: 3rem;
}

.h-16 {
  height: 4rem;
}

.h-0\.5 {
  height: 0.125rem;
}

.h-1\.5 {
  height: 0.375rem;
}

.min-h-screen {
  min-height: 100vh;
}

/* 内边距 */
.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.pt-16 {
  padding-top: 4rem;
}

.pb-16 {
  padding-bottom: 4rem;
}

/* 响应式内边距 */
@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .sm\:py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
  
  .sm\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  
  .sm\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  
  .sm\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

/* 外边距 */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mr-4 {
  margin-right: 1rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-4 {
  margin-top: 1rem;
}

/* 浮动 */
.float-right {
  float: right;
}

/* 文本对齐 */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

/* 字体大小 */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

/* 字体粗细 */
.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

/* 行高 */
.leading-normal {
  line-height: 1.5;
}

.leading-relaxed {
  line-height: 1.625;
}

/* 文本颜色 */
.text-white {
  color: #ffffff;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-900 {
  color: #111827;
}

.text-blue-500 {
  color: #3b82f6;
}

.text-blue-600 {
  color: #2563eb;
}

.text-blue-800 {
  color: #1e40af;
}

.text-green-500 {
  color: #22c55e;
}

.text-green-600 {
  color: #16a34a;
}

.text-green-800 {
  color: #166534;
}

.text-yellow-400 {
  color: #facc15;
}

.text-yellow-500 {
  color: #eab308;
}

.text-yellow-600 {
  color: #ca8a04;
}

.text-red-500 {
  color: #ef4444;
}

.text-red-600 {
  color: #dc2626;
}

.text-purple-600 {
  color: #9333ea;
}

.text-amber-100 {
  color: #fef3c7;
}

.text-amber-600 {
  color: #d97706;
}

.text-amber-800 {
  color: #92400e;
}

/* 背景色 */
.bg-white {
  background-color: #ffffff;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-gray-200 {
  background-color: #e5e7eb;
}

.bg-gray-800 {
  background-color: #1f2937;
}

.bg-blue-50 {
  background-color: #eff6ff;
}

.bg-blue-100 {
  background-color: #dbeafe;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.bg-green-50 {
  background-color: #f0fdf4;
}

.bg-green-100 {
  background-color: #dcfce7;
}

.bg-green-800 {
  background-color: #166534;
}

.bg-yellow-50 {
  background-color: #fefce8;
}

.bg-yellow-100 {
  background-color: #fef9c3;
}

.bg-red-100 {
  background-color: #fee2e2;
}

.bg-purple-50 {
  background-color: #faf5ff;
}

.bg-purple-100 {
  background-color: #e9d5ff;
}

.bg-amber-100 {
  background-color: #fef3c7;
}

.bg-primary {
  background-color: #0d6efd;
}

.bg-current {
  background-color: currentColor;
}

.bg-opacity-20 {
  background-opacity: 0.2;
}

/* 边框 */
.border {
  border-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-l-4 {
  border-left-width: 4px;
}

.border-gray-100 {
  border-color: #f3f4f6;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.border-blue-100 {
  border-color: #dbeafe;
}

/* 圆角 */
.rounded {
  border-radius: 0.25rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* 阴影 */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 渐变 */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

/* 可见性 */
.overflow-hidden {
  overflow: hidden;
}

/* 空白处理 */
.whitespace-nowrap {
  white-space: nowrap;
}

/* 变换 */
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* 过渡 */
.transition {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 悬停效果 */
.hover\:scale-105:hover {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:scale-110:hover {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:scale-\[1\.02\]:hover {
  --tw-scale-x: 1.02;
  --tw-scale-y: 1.02;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:bg-blue-50:hover {
  background-color: #eff6ff;
}

.hover\:bg-blue-700:hover {
  background-color: #1d4ed8;
}

.hover\:bg-gray-50:hover {
  background-color: #f9fafb;
}

.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}

.hover\:bg-gray-200:hover {
  background-color: #e5e7eb;
}

.hover\:bg-gray-700:hover {
  background-color: #374151;
}

.hover\:bg-primary\/90:hover {
  background-color: #0d6efd;
  opacity: 0.9;
}

.hover\:text-blue-500:hover {
  color: #3b82f6;
}

.hover\:text-blue-600:hover {
  color: #2563eb;
}

.hover\:text-blue-800:hover {
  color: #1e40af;
}

.hover\:text-primary:hover {
  color: #0d6efd;
}

.hover\:text-white:hover {
  color: #ffffff;
}

.hover\:shadow-md:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 激活状态 */
.active\:scale-\[0\.98\]:active {
  --tw-scale-x: 0.98;
  --tw-scale-y: 0.98;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.active\:scale-95:active {
  --tw-scale-x: 0.95;
  --tw-scale-y: 0.95;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* 其他特殊类 */
.cursor-pointer {
  cursor: pointer;
}

.opacity-0 {
  opacity: 0;
}

.list-disc {
  list-style-type: disc;
}

.list-item {
  display: list-item;
}

.font-sans {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.text-muted {
  color: #6c757d;
}

.text-primary {
  color: #0d6efd;
}

.text-warning {
  color: #ffc107;
}

.text-danger {
  color: #dc3545;
}

.text-info {
  color: #0dcaf0;
}

.text-neutral {
  color: #6c757d;
}

.text-neutral-dark {
  color: #212529;
}

.font-weight-light {
  font-weight: 300;
}

/* 自定义样式 */
.content-auto {
  content-visibility: auto;
}

.btn-primary {
  background-color: #007AFF;
  color: #ffffff;
  font-weight: 500;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  border-radius: 0.75rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:active {
  --tw-scale-x: 0.95;
  --tw-scale-y: 0.95;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
  font-weight: 500;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  border-radius: 0.75rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-secondary:active {
  --tw-scale-x: 0.95;
  --tw-scale-y: 0.95;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1C1C1E;
  margin-bottom: 1rem;
}

/* 自定义头部高度 */
.mobile-header {
  height: 44px;
}

/* 列表项装饰样式 - 移除左侧线条，优化间距 */
.poem-list-item {
  position: relative;
  overflow: hidden;
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  background-color: #FFFFFF;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-width: 1px;
  border-color: #e5e7eb;
}

.poem-list-item:not(:last-child) {
  border-bottom-width: 1px;
  border-color: #e5e7eb;
}

/* 作品标题样式 */
.poem-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1C1C1E;
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.poem-title i {
  margin-right: 0.5rem;
  color: #007AFF;
}

/* 作品元信息样式 */
.poem-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.poem-meta span {
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

.poem-meta i {
  margin-right: 0.25rem;
}

/* 作品内容样式 */
.poem-content {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 作品标签样式 */
.poem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.poem-tag {
  display: inline-flex;
  align-items: center;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #f3f4f6;
  color: #374151;
}

.poem-tag i {
  margin-right: 0.25rem;
}

/* 收藏成功提示动画 */
@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.2);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.2);
  }
  60% {
    transform: scale(1);
  }
}

.heart-beat {
  animation: heartBeat 0.6s ease-in-out;
}

/* 已收藏的古诗项样式 */
.poem-item.favorited {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
  background-color: #fff0f0;
}

/* 正在播放的古诗项样式 */
.poem-item.playing {
  border-color: #007AFF;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.3);
  background-color: #f0f8ff;
}

/* 播放按钮动画效果 */
.playing-animation {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(0, 122, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
  }
}

/* 精选推荐样式 - 优化移动端体验，添加背景图片 */
.featured-section {
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-width: 1px;
  border-color: #e5e7eb;
  background-image: url('/mobile/20251111133708_11_56.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* 在背景图片上添加半透明遮罩层以确保文字可读性 */
.featured-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  z-index: 1;
}

/* 确保内容在遮罩层之上 */
.featured-section > * {
  position: relative;
  z-index: 2;
}

/* 精选推荐中的文字颜色优化 */
.featured-title {
  color: #111827;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.featured-title:hover {
  text-decoration: underline;
}

.featured-content {
  color: #1f2937;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.625;
}

.featured-meta {
  display: flex;
  align-items: center;
  color: #374151;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.featured-author {
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

.featured-dynasty {
  display: flex;
  align-items: center;
}

.featured-action {
  text-align: center;
  margin-top: 0.5rem;
}

.featured-read-btn {
  background-image: linear-gradient(to right, #2563eb, #4f46e5);
  color: #ffffff;
  font-weight: 500;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: 9999px;
  display: inline-block;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.featured-read-btn:active {
  --tw-scale-x: 0.95;
  --tw-scale-y: 0.95;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.featured-badge {
  background-image: linear-gradient(to right, #2563eb, #4f46e5);
  color: #ffffff;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

/* 分类导航 */
.category-nav {
  display: flex;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  gap: 0.75rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-item {
  flex-shrink: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 9999px;
  background-color: #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.category-item.active {
  background-color: #007AFF;
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 搜索框样式 */
.search-container {
  position: relative;
  margin-bottom: 1rem;
  background-image: url('/mobile/1761873049823_0.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 1rem;
  padding: 4px;
  position: relative;
}

/* 搜索框遮罩层 */
.search-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1rem;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 2.5rem;
  padding-right: 1rem;
  font-size: 1rem;
  background-color: #ffffff;
  background-opacity: 0.95;
  border-radius: 0.75rem;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  position: relative;
  z-index: 2;
}

.search-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-color: #007AFF;
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(0 122 255 / var(--tw-ring-opacity));
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  z-index: 10;
  z-index: 2;
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background-color: #007AFF;
  color: #ffffff;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 10;
  z-index: 2;
}

.search-btn:active {
  --tw-scale-x: 0.95;
  --tw-scale-y: 0.95;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* 分类导航优化 */
.category-scroll-container {
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-scroll-container::-webkit-scrollbar {
  display: none;
}

.category-scroll-content {
  display: flex;
  gap: 0.5rem;
}

.category-chip {
  flex-shrink: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 9999px;
  background-color: #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.category-chip:active {
  --tw-scale-x: 0.95;
  --tw-scale-y: 0.95;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.category-chip.active {
  background-color: #007AFF;
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 筛选面板优化 */
.filter-panel {
  background-color: #FFFFFF;
  border-radius: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1rem;
  margin-bottom: 1rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
  border-width: 1px;
  border-color: #e5e7eb;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.filter-select {
  width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.filter-select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-color: #007AFF;
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(0 122 255 / var(--tw-ring-opacity));
}

.filter-input {
  width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.filter-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-color: #007AFF;
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(0 122 255 / var(--tw-ring-opacity));
}

.filter-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.filter-reset-btn {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  border-radius: 0.5rem;
}

.filter-reset-btn:active {
  background-color: #f3f4f6;
}

.filter-apply-btn {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: #007AFF;
  color: #ffffff;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

.filter-apply-btn:active {
  background-color: #1d4ed8;
}

/* 古诗列表项优化 */
.poem-item {
  background-color: #FFFFFF;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  border-width: 1px;
  border-color: #e5e7eb;
}

.poem-item:hover {
  border-color: #007AFF;
}

.poem-item:active {
  --tw-scale-x: 0.98;
  --tw-scale-y: 0.98;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.poem-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.poem-title-link {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1C1C1E;
  text-decoration: none;
}

.poem-icons {
  display: flex;
  gap: 0.5rem;
}

.poem-icon-btn {
  padding: 0.5rem;
  border-radius: 9999px;
  background-color: #f3f4f6;
  color: #6b7280;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  border: none;
  cursor: pointer;
}

.poem-icon-btn:hover {
  background-color: #e5e7eb;
}

.poem-icon-btn:active {
  background-color: #007AFF;
  color: #ffffff;
}

.poem-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.poem-info-item {
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

.poem-excerpt {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poem-tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.poem-tag-item {
  display: inline-flex;
  align-items: center;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #f3f4f6;
  color: #374151;
}

.poem-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.poem-action-buttons {
  display: flex;
  gap: 0.5rem;
}

.poem-action-btn {
  padding: 0.5rem;
  border-radius: 9999px;
  background-color: #f3f4f6;
  color: #6b7280;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  border: none;
  cursor: pointer;
}

.poem-action-btn:hover {
  background-color: #e5e7eb;
}

.poem-action-btn:active {
  background-color: #007AFF;
  color: #ffffff;
}

.poem-read-more {
  color: #007AFF;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.poem-read-more:active {
  color: #1d4ed8;
}

/* 分页优化 */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 4rem;
  width: 100%;
  overflow: hidden;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.pagination-content {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.5rem 0;
  box-sizing: border-box;
  
  /* 隐藏滚动条但保持功能 */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pagination-content::-webkit-scrollbar {
  display: none;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  min-width: 2.5rem;
  min-height: 2.5rem;
  flex-shrink: 0;
  cursor: pointer;
  white-space: nowrap;
}

.pagination-btn:hover {
  background-color: #f9fafb;
  color: #1f2937;
}

.pagination-btn:first-child {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.pagination-btn:last-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.pagination-btn.active {
  background-color: #007AFF;
  border-color: #007AFF;
  color: #fff;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  color: #9ca3af;
  min-width: 2rem;
  flex-shrink: 0;
  font-weight: 500;
}

/* 动画效果 */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out forwards;
}

@keyframes bounce-in {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.animate-bounce-in {
  animation: bounce-in 0.3s ease-out forwards;
}



/* 隐藏滚动条 */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* 小屏幕设备优化 */
@media (max-width: 768px) {
  .content-padding {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .card {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .featured-section {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .poem-title {
    font-size: 1rem;
    margin-bottom: 0.375rem;
  }
  
  .poem-content {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
  
  .section-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
  
  .poem-list-item {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  .category-nav {
    margin-bottom: 0.75rem;
    gap: 0.5rem;
  }
  
  /* 已收藏的古诗项样式 - 移动端优化 */
  .poem-item.favorited {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3);
    background-color: #fff0f0;
  }
  
  /* 正在播放的古诗项样式 - 移动端优化 */
  .poem-item.playing {
    border-color: #007AFF;
    box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.3);
    background-color: #f0f8ff;
  }
  
  /* 热门搜索优化 */
  .hot-search-container {
    padding: 0.5rem 0;
  }
  
  .hot-search-tag {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .pagination-container {
    padding: 0 0.25rem;
  }
  
  .pagination-content {
    gap: 0.125rem;
    padding: 0.25rem 0;
  }
  
  .pagination-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    min-width: 2rem;
    min-height: 2rem;
  }
  
  .pagination-ellipsis {
    padding: 0.375rem 0.125rem;
    font-size: 0.75rem;
    min-width: 1.5rem;
  }
  
  /* 热门搜索超小屏幕优化 */
  .hot-search-tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* 极小屏幕优化 (320px及以下) */
@media (max-width: 320px) {
  .pagination-btn {
    padding: 0.25rem 0.375rem;
    font-size: 0.6875rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
  }
    
  .pagination-ellipsis {
    padding: 0.25rem 0.125rem;
    font-size: 0.6875rem;
    min-width: 1.25rem;
  }
  
  /* 热门搜索极小屏幕优化 */
  .hot-search-tag {
    padding: 0.25rem 0.4rem;
    font-size: 0.7rem;
  }
}

/* 更小屏幕优化 (360px及以下) */
@media (max-width: 360px) {
  .pagination-btn {
    padding: 0.3125rem 0.4375rem;
    font-size: 0.75rem;
    min-width: 1.875rem;
    min-height: 1.875rem;
  }
  
  .pagination-ellipsis {
    padding: 0.3125rem 0.125rem;
    font-size: 0.75rem;
    min-width: 1.375rem;
  }
}

/* 中等屏幕优化 (480px-768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .pagination-content {
    gap: 0.1875rem;
    padding: 0.375rem 0;
  }
  
  .pagination-btn {
    padding: 0.4375rem 0.625rem;
    font-size: 0.8125rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
  }
  
  .pagination-ellipsis {
    padding: 0.4375rem 0.1875rem;
    font-size: 0.8125rem;
    min-width: 1.75rem;
  }
}

/* 大屏幕优化 */
@media (min-width: 769px) {
  .pagination-content {
    gap: 0.25rem;
    padding: 0.5rem 0;
  }
  
  .pagination-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
  }
  
  .pagination-ellipsis {
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
    min-width: 2rem;
  }
}

/* 移动端导航栏 - 专门为poem_list页面定制 */
.poem-list .mobile-navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 3rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 导航栏品牌区域 */
.poem-list .navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

/* 导航栏图标 */
.poem-list .navbar-brand i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  color: #3b82f6;
}

/* 导航栏标题 */
.poem-list .navbar-brand span {
  font-size: 1.125rem;
  font-weight: 700;
  color: #3b82f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 导航栏右侧区域 */
.poem-list .navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 导航栏按钮 */
.poem-list .navbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: #4b5563;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.poem-list .navbar-btn:hover {
  background-color: #e5e7eb;
  color: #3b82f6;
  transform: scale(1.05);
}

.poem-list .navbar-btn:active {
  transform: scale(0.95);
}

/* 导航栏按钮图标 */
.poem-list .navbar-btn i {
  font-size: 1rem;
}

/* 主内容区域 */
.poem-list .main-content {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

/* 小屏幕优化 */
@media (max-width: 480px) {
  .poem-list .mobile-navbar {
    padding: 0 0.75rem;
    height: 2.75rem;
  }
  
  .poem-list .navbar-brand i {
    font-size: 1.25rem;
    margin-right: 0.375rem;
  }
  
  .poem-list .navbar-brand span {
    font-size: 1rem;
  }
  
  .poem-list .navbar-btn {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .poem-list .main-content {
    padding-top: 2.75rem;
  }
}

/* 超小屏幕优化 */
@media (max-width: 375px) {
  .poem-list .mobile-navbar {
    padding: 0 0.5rem;
    height: 2.5rem;
  }
  
  .poem-list .navbar-brand i {
    font-size: 1.125rem;
    margin-right: 0.25rem;
  }
  
  .poem-list .navbar-brand span {
    font-size: 0.875rem;
  }
  
  .poem-list .navbar-btn {
    width: 2rem;
    height: 2rem;
  }
  
  .poem-list .navbar-btn i {
    font-size: 0.875rem;
  }
  
  .poem-list .main-content {
    padding-top: 2.5rem;
  }
}

/* 大屏手机优化 */
@media (min-width: 414px) and (max-width: 768px) {
  .poem-list .mobile-navbar {
    padding: 0 1.25rem;
    height: 3.25rem;
  }
  
  .poem-list .navbar-brand i {
    font-size: 1.75rem;
    margin-right: 0.625rem;
  }
  
  .poem-list .navbar-brand span {
    font-size: 1.25rem;
  }
  
  .poem-list .navbar-btn {
    width: 2.75rem;
    height: 2.75rem;
  }
  
  .poem-list .navbar-btn i {
    font-size: 1.125rem;
  }
  
  .poem-list .main-content {
    padding-top: 3.25rem;
  }
}

/* 底部导航栏 - 与首页保持一致 */
.poem-list footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  position: fixed;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  z-index: 50;
  height: 56px;
  padding: 4px 0;
  background: linear-gradient(to bottom, #ffffff, #fafafa);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.poem-list .footer-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.poem-list footer a {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  padding: 0.25rem 0.5rem;
  margin: 0.125rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  text-decoration: none;
}

.poem-list footer a:hover {
  background-color: rgba(59, 130, 246, 0.12);
  transform: translateY(-2px);
}

.poem-list footer a:active {
  transform: scale(0.92);
}

.poem-list footer .text-blue-600 {
  background-color: rgba(59, 130, 246, 0.15);
}

/* 底部导航图标动画 */
.poem-list footer i {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.125rem;
  font-size: 1.125rem;
}

.poem-list footer a:hover i {
  transform: scale(1.15) translateY(-2px);
}

/* 底部导航标签动画 */
.poem-list footer span {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 0.7rem;
  line-height: 1.2;
}

.poem-list footer a:hover span {
  color: #3b82f6;
  transform: translateY(-1px);
}

/* 小红点通知 */
.poem-list footer .relative .notification-dot {
  position: absolute;
  top: -0.125rem;
  right: 1.25rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #ef4444;
  border-radius: 50%;
  border: 1px solid #ffffff;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* 首页激活状态的特殊动画 */
.poem-list footer a:first-child .notification-dot:first-child {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.2);
  }
}

/* 分类导航优化 */
.category-scroll-container {
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-scroll-container::-webkit-scrollbar {
  display: none;
}

.category-scroll-content {
  display: flex;
  gap: 0.5rem;
}

.category-chip {
  flex-shrink: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 9999px;
  background-color: #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.category-chip:active {
  --tw-scale-x: 0.95;
  --tw-scale-y: 0.95;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.category-chip.active {
  background-color: #007AFF;
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-color: #007AFF;
}

/* 分类导航悬停效果 */
.category-chip:hover {
  background-color: #e5e7eb;
  transform: translateY(-2px);
}

.category-chip.active:hover {
  background-color: #007AFF;
  transform: translateY(-2px) scale(1.05);
}

/* 热门搜索样式 */
.hot-search-container {
  padding: 0.5rem 0;
  position: relative;
}

.hot-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hot-search-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap; /* 确保文本不换行 */
  flex-shrink: 0; /* 防止标签在容器中收缩 */
  transition: all 0.15s ease;
}

.hot-search-tag:hover {
  transform: translateY(-1px);
  border-color: #007AFF;
  background-color: #eff6ff;
  color: #007AFF;
}

.hot-search-tag:active {
  transform: scale(0.95);
}

/* 热门搜索标签随机颜色 */
.hot-search-tag:nth-child(12n+1) {
  background-color: #fef3c7;
  color: #92400e;
}

.hot-search-tag:nth-child(12n+2) {
  background-color: #dbeafe;
  color: #1e40af;
}

.hot-search-tag:nth-child(12n+3) {
  background-color: #dcfce7;
  color: #166534;
}

.hot-search-tag:nth-child(12n+4) {
  background-color: #ffe4e6;
  color: #9d174d;
}

.hot-search-tag:nth-child(12n+5) {
  background-color: #f0f9ff;
  color: #0c4a6e;
}

.hot-search-tag:nth-child(12n+6) {
  background-color: #f3e8ff;
  color: #5b21b6;
}

.hot-search-tag:nth-child(12n+7) {
  background-color: #ffedd5;
  color: #9a3412;
}

.hot-search-tag:nth-child(12n+8) {
  background-color: #dcfce7;
  color: #065f46;
}

.hot-search-tag:nth-child(12n+9) {
  background-color: #ede9fe;
  color: #4c1d95;
}

.hot-search-tag:nth-child(12n+10) {
  background-color: #ffedd5;
  color: #92400e;
}

.hot-search-tag:nth-child(12n+11) {
  background-color: #e0f2fe;
  color: #0c4a6e;
}

.hot-search-tag:nth-child(12n+12) {
  background-color: #ffe4e6;
  color: #831843;
}

/* 热门搜索标签悬停效果 */
.hot-search-tag:nth-child(12n+1):hover {
  background-color: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

.hot-search-tag:nth-child(12n+2):hover {
  background-color: #dbeafe;
  color: #1e40af;
  border-color: #3b82f6;
}

.hot-search-tag:nth-child(12n+3):hover {
  background-color: #dcfce7;
  color: #166534;
  border-color: #22c55e;
}

.hot-search-tag:nth-child(12n+4):hover {
  background-color: #ffe4e6;
  color: #9d174d;
  border-color: #ec4899;
}

.hot-search-tag:nth-child(12n+5):hover {
  background-color: #f0f9ff;
  color: #0c4a6e;
  border-color: #0ea5e9;
}

.hot-search-tag:nth-child(12n+6):hover {
  background-color: #f3e8ff;
  color: #5b21b6;
  border-color: #8b5cf6;
}

.hot-search-tag:nth-child(12n+7):hover {
  background-color: #ffedd5;
  color: #9a3412;
  border-color: #f97316;
}

.hot-search-tag:nth-child(12n+8):hover {
  background-color: #dcfce7;
  color: #065f46;
  border-color: #10b981;
}

.hot-search-tag:nth-child(12n+9):hover {
  background-color: #ede9fe;
  color: #4c1d95;
  border-color: #7c3aed;
}

.hot-search-tag:nth-child(12n+10):hover {
  background-color: #ffedd5;
  color: #92400e;
  border-color: #d97706;
}

.hot-search-tag:nth-child(12n+11):hover {
  background-color: #e0f2fe;
  color: #0c4a6e;
  border-color: #0284c7;
}

.hot-search-tag:nth-child(12n+12):hover {
  background-color: #ffe4e6;
  color: #831843;
  border-color: #be185d;
}


