/* 编译后的poem_detail.css文件，将@apply指令转换为实际的CSS规则 */

/* 基础样式 */
*, ::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-16 {
  width: 4rem;
}

.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;
}

/* 添加高亮效果相关的样式 */
.bg-yellow-50 {
  background-color: #fefce8;
}

.ring-2 {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.ring-yellow-300 {
  box-shadow: 0 0 0 2px #fde047;
}

.rounded-lg {
  border-radius: 0.5rem;
}

/* 响应式高亮效果 */
@media (max-width: 768px) {
  .bg-yellow-50 {
    background-color: #fefce8;
  }
  
  .ring-2 {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
  }
  
  .ring-yellow-300 {
    box-shadow: 0 0 0 2px #fde047;
  }
  
  .rounded-lg {
    border-radius: 0.5rem;
  }
}


.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;
}

.flex-grow {
  flex-grow: 1;
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.justify-center {
  justify-content: center;
}

.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;
}

.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));
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.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;
}

.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));
  background-color: #e5e7eb;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.section-title i {
  margin-right: 0.5rem;
  color: #007AFF;
}

/* 自定义头部高度 */
.mobile-header {
  height: 3rem;
}

/* 作品标题样式 */
.poem-title {

/* 删除之前添加的朗读控制面板样式 */

  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: #1f2937;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* 作品元信息样式 */
.poem-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.poem-meta span {
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
}

.poem-meta i {
  margin-right: 0.25rem;
}

/* 古诗原文样式 */
.poem-original {
  text-align: center;
  font-size: 1rem;
  line-height: 1.625;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  position: relative;
  background-image: url('/mobile/20251111133708_11_56.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 古诗原文段落样式 */
.poem-original p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* 在背景图片上添加半透明遮罩层以确保文字可读性 */
.poem-original::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.4); /* 降低遮罩层不透明度到40% */
  border-radius: 1rem;
  z-index: 1;
}

/* 确保内容在遮罩层之上 */
.poem-original > * {
  position: relative;
  z-index: 2;
}

/* 古诗原文文字颜色优化 - 使用深色文字确保可读性 */
.poem-original {
  color: #000000; /* 纯黑色文字确保最高对比度 */
  text-shadow: 
    0 0 3px rgba(255, 255, 255, 1),
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 9px rgba(255, 255, 255, 0.8); /* 保持多层文字阴影 */
  font-weight: 600; /* 保持字体加粗 */
  padding: 1.5rem;
  border-radius: 1rem;
}

/* 白话译文样式 - 功能丰富且装饰丰富 */
.poem-translation {
  background-image: linear-gradient(to bottom right, #eff6ff, #e0e7ff);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #dbeafe;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* 装饰元素 */
.translation-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  height: 6rem;
  opacity: 0.1;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(40%, -40%);
}

.translation-decoration-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 4rem;
  opacity: 0.1;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-30%, 30%);
}

.translation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.translation-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.125rem;
  line-height: 1.75rem;
  display: flex;
  align-items: center;
}

.translation-title i {
  margin-right: 0.5rem;
  color: #3b82f6;
}

.translation-actions {
  display: flex;
  space-x: 0.5rem;
}

.translation-action-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #4b5563;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.translation-action-btn:active {
  background-color: #f3f4f6;
  --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));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.translation-action-btn.active {
  background-color: #dbeafe;
  color: #2563eb;
}

.translation-content {
  color: #374151;
  line-height: 1.625;
  position: relative;
  z-index: 10;
}

.translation-paragraph {
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}

.translation-paragraph:last-child {
  margin-bottom: 0;
}

/* 功能卡片 */
.translation-features {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dbeafe;
  position: relative;
  z-index: 10;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.feature-item: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));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.feature-icon {
  color: #3b82f6;
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 0.25rem;
}

.feature-label {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #4b5563;
}

/* 注释样式 - 优化设计，确保无星号符号 */
.poem-annotation {
  background-image: linear-gradient(to bottom right, #fef3c7, #fed7aa);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #fde68a;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* 装饰元素 */
.annotation-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  height: 6rem;
  opacity: 0.1;
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(40%, -40%);
}

.annotation-decoration-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 4rem;
  opacity: 0.1;
  background: radial-gradient(circle, #ea580c 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-30%, 30%);
}

.annotation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.annotation-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.125rem;
  line-height: 1.75rem;
  display: flex;
  align-items: center;
}

.annotation-title i {
  margin-right: 0.5rem;
  color: #f59e0b;
}

.annotation-actions {
  display: flex;
  space-x: 0.5rem;
}

.annotation-action-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #4b5563;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.annotation-action-btn:active {
  background-color: #f3f4f6;
  --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));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.annotation-action-btn.active {
  background-color: #fef3c7;
  color: #f59e0b;
}

.annotation-content {
  color: #374151;
  line-height: 1.625;
  position: relative;
  z-index: 10;
}

/* 注释项样式 - 优化设计 */
.annotation-list {
  space-y: 0.75rem;
}

.annotation-item {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 0.75rem;
  border: 1px solid #fde68a;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.annotation-term {
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  display: flex;
  align-items: center;
}

.annotation-term i {
  margin-right: 0.5rem;
  color: #f59e0b;
}

.annotation-definition {
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.625;
  white-space: pre-wrap;
}

/* 功能区域 */
.annotation-features {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #fde68a;
  position: relative;
  z-index: 10;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.feature-item: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));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.feature-icon {
  color: #f59e0b;
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 0.25rem;
}

.feature-label {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #4b5563;
  text-align: center;
}

/* 移动端文字大小优化 */
@media (max-width: 768px) {
  .poem-annotation {
    padding: 1rem;
  }
  
  .annotation-header {
    margin-bottom: 0.75rem;
  }
  
  .annotation-item {
    padding: 0.75rem;
  }
  
  .annotation-title {
    font-size: 1rem;
    line-height: 1.5rem;
  }
  
  .annotation-term {
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-bottom: 0.25rem;
  }
  
  .annotation-definition {
    font-size: 0.875rem;
    line-height: 1.625;
  }
  
  .annotation-features {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }
  
  .feature-grid {
    gap: 0.25rem;
  }
  
  .feature-item {
    padding: 0.25rem;
  }
  
  .feature-label {
    font-size: 0.75rem;
    line-height: 1rem;
  }
}

@media (max-width: 480px) {
  .poem-annotation {
    padding: 0.75rem;
  }
  
  .annotation-header {
    margin-bottom: 0.5rem;
  }
  
  .annotation-item {
    padding: 0.5rem;
  }
  
  .annotation-title {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .annotation-term {
    font-size: 0.75rem;
    line-height: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .annotation-definition {
    font-size: 0.75rem;
    line-height: 1.625;
  }
  
  .annotation-features {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }
  
  .feature-grid {
    gap: 0.25rem;
  }
  
  .feature-item {
    padding: 0.25rem;
  }
  
  .feature-label {
    font-size: 0.75rem;
    line-height: 1rem;
  }
}

/* 诗歌赏析样式 - 重新设计 */
.poem-appreciation {
  background-image: linear-gradient(to bottom right, #f5f3ff, #ede9fe);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #e9d5ff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* 装饰元素 */
.appreciation-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  height: 6rem;
  opacity: 0.1;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(40%, -40%);
}

.appreciation-decoration-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 4rem;
  opacity: 0.1;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-30%, 30%);
}

.appreciation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.appreciation-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.125rem;
  line-height: 1.75rem;
  display: flex;
  align-items: center;
}

.appreciation-title i {
  margin-right: 0.5rem;
  color: #8b5cf6;
}

.appreciation-actions {
  display: flex;
  space-x: 0.5rem;
}

.appreciation-action-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #4b5563;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.appreciation-action-btn:active {
  background-color: #f3f4f6;
  --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));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.appreciation-action-btn.active {
  background-color: #f5f3ff;
  color: #8b5cf6;
}

.appreciation-content {
  color: #374151;
  line-height: 1.625;
  position: relative;
  z-index: 10;
}

.appreciation-paragraph {
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}

.appreciation-paragraph:last-child {
  margin-bottom: 0;
}

/* 赏析分类标签 */
.appreciation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.appreciation-tag {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.7);
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

/* 赏析亮点区域 */
.appreciation-highlights {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

/* 诗词内容 */
.poem-content {
  font-size: 1rem;
  padding: 0.875rem;
}

/* 赏析亮点卡片 */
.highlight-card {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid #e9d5ff;
}

.highlight-title {
  font-weight: 700;
  color: #7c3aed;
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
}

.highlight-content {
  color: #374151;
  font-size: 0.7em;
  line-height: 1rem;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 移动端文字大小优化 */
@media (max-width: 768px) {
  .highlight-content {
    font-size: 0.7em;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .highlight-content {
    font-size: 0.7em;
    line-height: 1.5;
  }
}

/* 功能区域 */
.appreciation-features {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e9d5ff;
  position: relative;
  z-index: 10;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.feature-item: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));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.feature-icon {
  color: #8b5cf6;
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 0.25rem;
}

.feature-label {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #4b5563;
  text-align: center;
}

/* 移动端文字大小优化 */
@media (max-width: 768px) {
  .poem-appreciation {
    padding: 1rem;
  }
  
  .appreciation-header {
    margin-bottom: 0.75rem;
  }
  
  .appreciation-title {
    font-size: 1rem;
    line-height: 1.5rem;
  }
  
  .appreciation-content {
    font-size: 0.875rem;
    line-height: 1.625;
  }
  
  .appreciation-tag {
    font-size: 0.75rem;
    line-height: 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
  }
  
  .highlight-title {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .highlight-content {
    font-size: 0.7em;
    line-height: 1.5;
  }
  
  .appreciation-features {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }
  
  .feature-grid {
    gap: 0.25rem;
  }
  
  .feature-item {
    padding: 0.25rem;
  }
  
  .feature-label {
    font-size: 0.75rem;
    line-height: 1rem;
  }
  
  .appreciation-highlights {
    gap: 0.5rem;
  }
  
  .highlight-card {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .poem-appreciation {
    padding: 0.75rem;
  }
  
  .appreciation-header {
    margin-bottom: 0.5rem;
  }
  
  .appreciation-title {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .appreciation-content {
    font-size: 0.75rem;
    line-height: 1.625;
  }
  
  .appreciation-features {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }
  
  .feature-grid {
    gap: 0.25rem;
  }
  
  .feature-item {
    padding: 0.25rem;
  }
  
  .feature-label {
    font-size: 0.75rem;
    line-height: 1rem;
  }
  
  .appreciation-highlights {
    gap: 0.5rem;
  }
  
  .highlight-card {
    padding: 0.5rem;
  }
  
  .highlight-content {
    font-size: 0.7em;
    line-height: 1.5;
  }
}

/* 创作背景样式 - 重新设计 */
.poem-background-content {
  background-image: linear-gradient(to bottom right, #cffafe, #e0f2fe);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #bae6fd;
  position: relative;
  overflow: hidden;
}

/* 装饰元素 */
.background-decoration-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  height: 6rem;
  opacity: 0.1;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(40%, -40%);
}

.background-decoration-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 4rem;
  opacity: 0.1;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-30%, 30%);
}

.background-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.background-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.125rem;
  line-height: 1.75rem;
  display: flex;
  align-items: center;
}

.background-title i {
  margin-right: 0.5rem;
  color: #06b6d4;
}

.background-actions {
  display: flex;
  space-x: 0.5rem;
}

.background-action-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #4b5563;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.background-action-btn:active {
  background-color: #f3f4f6;
  --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));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.background-action-btn.active {
  background-color: #cffafe;
  color: #06b6d4;
}

.background-content {
  color: #374151;
  line-height: 1.625;
  position: relative;
  z-index: 10;
}

.background-paragraph {
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}

.background-paragraph:last-child {
  margin-bottom: 0;
}

/* 功能区域 */
.background-features {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #bae6fd;
  position: relative;
  z-index: 10;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.feature-item: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));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.feature-icon {
  color: #06b6d4;
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 0.25rem;
}

.feature-label {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #4b5563;
  text-align: center;
}

/* 朗读控制面板样式 */
.reading-controls {
  background-color: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.reading-controls input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 0.5rem;
  border-radius: 0.25rem;
  background: #dbeafe;
  outline: none;
}

.reading-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.reading-controls input[type="range"]::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 艺术特色样式 - 重新设计 */
.poem-style-content {
  background-image: linear-gradient(to bottom right, #fce7f3, #ffe4e6);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #fbcfe8;
  position: relative;
  overflow: hidden;
}

/* 装饰元素 */
.style-decoration-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  height: 6rem;
  opacity: 0.1;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(40%, -40%);
}

.style-decoration-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 4rem;
  opacity: 0.1;
  background: radial-gradient(circle, #f43f5e 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-30%, 30%);
}

.style-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.style-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.125rem;
  line-height: 1.75rem;
  display: flex;
  align-items: center;
}

.style-title i {
  margin-right: 0.5rem;
  color: #ec4899;
}

.style-actions {
  display: flex;
  space-x: 0.5rem;
}

.style-action-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #4b5563;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.style-action-btn:active {
  background-color: #f3f4f6;
  --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));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.style-action-btn.active {
  background-color: #fce7f3;
  color: #ec4899;
}

.style-content {
  color: #374151;
  line-height: 1.625;
  position: relative;
  z-index: 10;
}

.style-paragraph {
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}

.style-paragraph:last-child {
  margin-bottom: 0;
}

/* 功能区域 */
.style-features {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #fbcfe8;
  position: relative;
  z-index: 10;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.feature-item: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));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.feature-icon {
  color: #ec4899;
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 0.25rem;
}

.feature-label {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #4b5563;
  text-align: center;
}

/* 主题思想样式 */
.poem-theme {
  padding: 1.25rem;
  background-image: linear-gradient(to right, #fef3c7, #fed7aa);
  border-radius: 1rem;
}

/* 主题思想样式 - 重新设计 */
.poem-theme-content {
  background-image: linear-gradient(to bottom right, #fef3c7, #fed7aa);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #fde68a;
  position: relative;
  overflow: hidden;
}

/* 装饰元素 */
.theme-decoration-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  height: 6rem;
  opacity: 0.1;
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(40%, -40%);
}

.theme-decoration-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 4rem;
  opacity: 0.1;
  background: radial-gradient(circle, #f97316 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-30%, 30%);
}

.theme-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.theme-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.125rem;
  line-height: 1.75rem;
  display: flex;
  align-items: center;
}

/* 背诵模式遮罩样式 - 选项3：更强的阴影遮挡效果 */
.recite-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(245, 245, 245, 0.98); /* 更柔和的浅灰色背景 */
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  /* 使用多重阴影创造更强的遮挡效果 */
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.4),
    inset 0 0 60px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(0, 0, 0, 0.1);
}

.overlay-content {
  text-align: center;
  color: #444444; /* 中灰色文字 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* 文字阴影增加可读性 */
}

.overlay-text {
  font-size: 1.125rem;
  font-weight: 500;
}

/* 背诵模式下的古诗内容区域 */
.poem-content.recite-mode {
  position: relative;
}

.theme-title i {
  margin-right: 0.5rem;
  color: #f59e0b;
}

.theme-actions {
  display: flex;
  space-x: 0.5rem;
}

.theme-action-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #4b5563;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.theme-action-btn:active {
  background-color: #f3f4f6;
  --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));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.theme-action-btn.active {
  background-color: #fef3c7;
  color: #f59e0b;
}

.theme-content {
  color: #374151;
  line-height: 1.625;
  position: relative;
  z-index: 10;
}

.theme-paragraph {
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}

.theme-paragraph:last-child {
  margin-bottom: 0;
}

/* 功能区域 */
.theme-features {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #fde68a;
  position: relative;
  z-index: 10;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.feature-item: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));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.feature-icon {
  color: #f59e0b;
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 0.25rem;
}

.feature-label {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #4b5563;
  text-align: center;
}

/* 卡片样式 - 优化间距 */
.card {
  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;

}

/* 底部导航栏 */
.bottom-nav {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 50;
}

/* iOS风格按钮 */
.ios-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #4b5563;
}

.ios-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));
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.ios-btn-icon {
  padding: 0.375rem;
  border-radius: 9999px;
  background-color: #f3f4f6;
  margin-bottom: 0.125rem;
}

/* 优化移动端间距 */
.content-padding {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* 学习进度条 */
.learning-progress {
  width: 100%;
  background-color: #e5e7eb;
  border-radius: 9999px;
  height: 0.625rem;
}

.learning-progress-bar {
  background-color: #007AFF;
  height: 0.625rem;
  border-radius: 9999px;
}

/* 上下古诗导航 */
.poem-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav-button {
  display: flex;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  color: #374151;
  font-weight: 500;
}

.nav-button: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));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.nav-button i {
  font-size: 1rem;
  line-height: 1.5rem;
}

.nav-button.prev i {
  margin-right: 0.5rem;
}

.nav-button.next i {
  margin-left: 0.5rem;
}

/* 相关推荐 */
.related-poems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.related-poem-card {
  background-image: linear-gradient(to bottom right, #eff6ff, #e0e7ff);
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
}

.related-poem-card: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));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.related-poem-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-poem-author {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #4b5563;
  margin-top: 0.5rem;
}

/* 互动功能按钮 */
.action-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0%;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.action-button:active {
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.action-button i {
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 0.25rem;
}

.action-button.active i {
  color: #007AFF;
}

.action-button span {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #374151;
  font-weight: 500;
}

/* 诗词挑战 */
.poem-challenge {
  background-image: linear-gradient(to bottom right, #fef3c7, #fed7aa);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.challenge-title {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: #92400e;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.challenge-question {
  color: #374151;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: 1rem;
}

.challenge-options {
  space-y: 0.75rem;
}

.challenge-option {
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
  border: 2px solid #fcd34d;
}

.challenge-option:active {
  background-color: #fef3c7;
  cursor: pointer;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  transform: scale(1.02);
}

.challenge-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: center;
  animation: fade-in 0.3s ease-out forwards;
}

.challenge-correct {
  background-color: #dcfce7;
  color: #166534;
  border: 2px solid #bbf7d0;
}

.challenge-incorrect {
  background-color: #fee2e2;
  color: #991b1b;
  border: 2px solid #fecaca;
}

/* 诗人信息卡片 */
.poet-info-card {
  background-image: linear-gradient(to bottom right, #cffafe, #e0f2fe);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.poet-info-title {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: #0c4a6e;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.poet-info-content {
  color: #374151;
  font-size: 1rem;
  line-height: 1.5rem;
}

/* 经典名句 */
.famous-lines {
  background-image: linear-gradient(to bottom right, #fce7f3, #ffe4e6);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.famous-lines-title {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: #9d174d;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.famous-line-item {
  padding: 0.75rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.famous-line-item:last-child {
  margin-bottom: 0;
}

.famous-line-item {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.famous-line-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.famous-line-content {
  color: #374151;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: 0.5rem;
}

.famous-line-poem {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #6b7280;
  text-align: right;
}

/* 字体优化 */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  line-height: 1.6;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 标题字体优化 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.4;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 古诗内容字体优化 */
.poem-content {
  font-family: 'STKaiti', 'KaiTi', '楷体', 'serif';
  font-size: 1.125rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* 古诗标题字体优化 */
.poem-title {
  font-family: 'STSong', 'SimSun', '宋体', 'serif';
}

/* 动画效果 */
@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;
}

/* 小屏幕设备优化 */
@media (max-width: 768px) {
  .content-padding {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .poem-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .section-title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  .poem-original, .poem-translation, .poem-annotation, .poem-appreciation, .poem-background, .poem-style, .poem-theme, .poem-challenge, .poet-info-card, .famous-lines {
    padding: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }
  
  .poem-navigation {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  .related-poems {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  
  .related-poem-card {
    padding: 0.75rem;
  }
  
  .action-buttons {
    margin-top: 1rem;
  }
  
  .action-button {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  .action-button i {
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-bottom: 0.25rem;
  }
  
  .action-button span {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .content-padding {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .poem-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .section-title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  .poem-original, .poem-translation, .poem-annotation, .poem-appreciation, .poem-background, .poem-style, .poem-theme, .poem-challenge, .poet-info-card, .famous-lines {
    padding: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }
  
  .poem-navigation {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  .related-poems {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  
  .related-poem-card {
    padding: 0.75rem;
  }
  
  .action-buttons {
    margin-top: 1rem;
  }
  
  .action-button {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  .action-button i {
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-bottom: 0.25rem;
  }
  
  .action-button span {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  /* 移动端字体大小优化 */
  .text-xs {
    font-size: 0.75rem;
  }
  
  .text-sm {
    font-size: 0.875rem;
  }
  
  .text-base {
    font-size: 1rem;
  }
  
  .text-lg {
    font-size: 1.125rem;
  }
  
  .text-xl {
    font-size: 1.25rem;
  }
  
  .text-2xl {
    font-size: 1.5rem;
  }
  
  .poem-content {
    font-size: 1.1rem;
    padding: 1rem;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .content-padding {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .card {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .poem-meta span {
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-right: 0.75rem;
  }
  
  .poem-original, .poem-translation, .poem-annotation, .poem-appreciation, .poem-background, .poem-style, .poem-theme, .poem-challenge, .poet-info-card, .famous-lines {
    padding: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  
  .action-buttons {
    gap: 0.25rem;
  }
  
  .action-button span {
    font-size: 0.75rem;
    line-height: 1rem;
  }
  
  .related-poems {
    gap: 0.5rem;
  }
  
  .related-poem-card {
    padding: 0.5rem;
  }
  
  .related-poem-title {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .related-poem-author {
    font-size: 0.75rem;
    line-height: 1rem;
  }
  
  /* 超小屏幕字体大小优化 */
  .text-xs {
    font-size: 0.7rem;
  }
  
  .text-sm {
    font-size: 0.8rem;
  }
  
  .text-base {
    font-size: 0.9rem;
  }
  
  .text-lg {
    font-size: 1.05rem;
  }
  
  .text-xl {
    font-size: 1.15rem;
  }
  
  .poem-content {
    font-size: 1rem;
    padding: 0.875rem;
  }
}