/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  color: #333;
}

/* 容器样式 - 统一化设计，适合手机和桌面 */
.container {
  max-width: 600px; /* 保持适合手机的宽度，桌面端也不会太宽 */
  margin: 0 auto;
  padding: 16px; /* 减少外边距，给内容更多空间 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 页面头部 */
.page-header {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo {
  max-width: 200px;
  height: auto;
  display: block;
}

/* 主要内容区域 */
.content-area {
  margin-top: 20px; /* 减少顶部边距 */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 加载状态 */
.loading-container {
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffd700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.loading-container p {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* 错误状态 */
.error-container {
  text-align: center;
  padding: 40px 20px;
}

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

.error-container h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ff6b6b;
}

.error-container p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 20px;
}

/* 错误模态框样式 */
.error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.error-modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin: 20px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.error-modal-message {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 20px;
}

.error-modal-button {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 48px;
  box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
}

.error-modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 161, 105, 0.4);
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.error-modal-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
}

.retry-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 内容容器 - 统一两列布局，适合手机和桌面 */
.content-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px; /* 稍微减少间距，让卡片更紧凑 */
  max-width: 600px; /* 与容器最大宽度保持一致 */
  margin: 0 auto;
  position: relative; /* 为绝对定位的子元素提供定位上下文 */
}

/* 统一化设计 - 移除所有媒体查询，使用统一样式 */

/* 单词卡片 - 白底样式 */
.word-card {
  background: white;
  border-radius: 16px; /* 稍微减少圆角 */
  padding: 20px; /* 减少内边距，让内容更紧凑 */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); /* 减少阴影 */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 16px auto; /* 减少底部边距 */
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
}

.word-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 卡片头部 - Logo右上角 */
.card-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

/* 卡片图片区域 - 居中放大 */
.card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* 卡片内容 */
.card-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* 单词卡片背景装饰 */
.word-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("imgs/left-bottom-gb-white.png");
  background-size: 30% auto;
  background-repeat: no-repeat;
  background-position: bottom left;
  opacity: 0.08;
  z-index: 0;
}

/* 句子卡片 - 深底样式 */
.sentence-card {
  background: linear-gradient(135deg, #1a4d2e 0%, #2d5a3d 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: white;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 25px auto;
  box-sizing: border-box;
}

.sentence-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("imgs/left-bottom-gb-dark.png");
  background-size: 40% auto;
  background-repeat: no-repeat;
  background-position: bottom left;
  opacity: 0.15;
  z-index: 0;
}

.sentence-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* 句子卡片背景装饰 */
.sentence-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("imgs/left-bottom-gb-dark.png");
  background-size: 30% auto;
  background-repeat: no-repeat;
  background-position: bottom left;
  opacity: 0.08;
  z-index: 0;
}

/* 卡片样式 */
.word-card,
.sentence-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.word-card {
  border-left: 4px solid #4caf50;
}

.sentence-card {
  border-left: 4px solid #2196f3;
  background: linear-gradient(135deg, #1a4d2e 0%, #2d5a3d 100%);
  color: white;
}

.word-card:hover,
.sentence-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 卡片头部 */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.card-illustration {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1;
  transition: transform 0.3s ease;
}

.card-illustration:hover {
  transform: scale(1.05);
}

.card-logo {
  width: 90px;
  height: 36px;
  object-fit: contain;
  z-index: 1;
}

/* 卡片内容 */
.card-content {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* 英语文本 */
.english-text {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

.sentence-card .english-text {
  color: white;
  font-size: 1.5rem;
  line-height: 1.4;
}

/* 音标文本 */
.phonetic-text {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
  font-family: "Arial", sans-serif;
  text-align: center;
}

.sentence-card .phonetic-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.3;
}

/* 中文翻译 */
.chinese-text {
  font-size: 1.2rem;
  color: #4caf50;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.sentence-card .chinese-text {
  color: #ffd700;
}

/* 公司标语 */
.company-slogan {
  font-size: 0.7rem;
  color: #666;
  text-align: center;
  font-weight: 500;
  line-height: 1.2;
}

/* 播放按钮 - 统一样式，适合手机和桌面 */
.play-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px; /* 适中的内边距 */
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  min-width: 100px; /* 适合手机的宽度 */
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.play-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.play-button.playing {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.content-item.selected .play-overlay .play-button {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  z-index: 10 !important;
}

/* 播放覆盖层显示逻辑 - 简化统一 */
.content-item .play-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-item.selected .play-overlay,
.content-item:hover .play-overlay {
  opacity: 1;
}

/* 移除不再需要的强制隐藏类 - CSS统一化已解决问题 */

/* 禁用浏览器自动填充样式 */
.dialog-content input:-webkit-autofill,
.dialog-content input:-webkit-autofill:hover,
.dialog-content input:-webkit-autofill:focus,
.dialog-content input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #fafbfc inset !important;
  -webkit-text-fill-color: #2d3748 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.play-icon {
  font-size: 1.1rem;
}

/* 播放按钮三角形 - 统一大小，适合手机和桌面 */
.play-button::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px; /* 适合手机的大小 */
  border-color: transparent transparent transparent currentColor;
  margin-left: 2px; /* 微调位置，让三角形在视觉上更居中 */
  display: inline-block;
  vertical-align: middle;
}

/* 当播放按钮有文本内容时，隐藏默认的三角形字符 */
.play-button:has(span)::before {
  display: none;
}

/* 播放状态下的按钮样式 - 统一大小 */
.play-button.playing::before {
  content: "■"; /* 播放时显示停止符号 */
  border: none;
  width: auto;
  height: auto;
  margin-left: 0;
  font-size: 1.2rem; /* 适合手机的大小 */
  line-height: 1;
}

/* 高亮单词样式 */
.word.highlight {
  color: #ffd700 !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.phonetic.highlight {
  color: #ffd700 !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 插图区域 */
.illustration-section {
  flex: 0 0 40%;
  padding-right: 20px;
  text-align: center;
}

.house-illustration {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* 内容区域 */
.content-section {
  flex: 1;
}

/* 句子容器 */
.sentence-container {
  text-align: center;
  margin: 20px 0;
}

.english-sentence {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.word {
  font-size: 1.4rem;
  color: white;
  font-weight: 500;
  min-width: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.word.highlight {
  color: #ffd700;
  font-weight: 600;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px #ffd700;
  }
  to {
    text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700;
  }
}

.phonetic-line {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.phonetic {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  min-width: 40px;
  text-align: center;
  font-family: "Arial", sans-serif;
}

.phonetic.highlight {
  color: #ffd700;
}

.chinese-translation {
  font-size: 1.1rem;
  color: #ffd700;
  font-weight: 500;
  margin-bottom: 20px;
}

/* 音频控制 */
.audio-controls {
  text-align: center;
}

.play-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.play-btn.playing {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

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

/* 页面底部 */
.page-footer {
  margin-top: 24px; /* 减少底部边距 */
  text-align: center;
}

.slogan-bar {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.slogan-bar p {
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

/* 手机号输入弹窗 - 美化版本 */
.phone-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 稍微减少背景透明度 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(8px); /* 增加背景模糊效果 */
}

.dialog-content {
  background: white;
  padding: 36px; /* 增加内边距，给文本更多空间 */
  border-radius: 20px; /* 与卡片风格保持一致 */
  width: 90%;
  max-width: 400px; /* 稍微增加宽度 */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); /* 与卡片阴影保持一致 */
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* 更流畅的动画 */
  border: 1px solid rgba(255, 255, 255, 0.2); /* 添加轻微边框 */
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 移除标题样式，因为已经去掉标题 */

.dialog-content p {
  margin: 0 0 28px 0;
  color: #4a5568; /* 更深的文字颜色，提高对比度 */
  text-align: left; /* 改为左对齐，多行文本更美观 */
  font-size: 1rem; /* 增大字体大小 */
  line-height: 1.8; /* 增加行高，提高可读性 */
  font-weight: 400;
  letter-spacing: 0.02em; /* 增加字间距 */
  word-spacing: 0.05em; /* 增加词间距 */
}

.dialog-content input {
  width: 100%;
  padding: 16px 20px; /* 增加内边距 */
  border: 2px solid #e2e8f0; /* 更柔和的边框颜色 */
  border-radius: 12px; /* 增加圆角，与整体风格一致 */
  font-size: 16px;
  margin-bottom: 24px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  background: #fafbfc; /* 添加轻微背景色 */
  color: #2d3748;
  /* 禁用自动填充样式 */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.dialog-content input:focus {
  outline: none;
  border-color: #48bb78; /* 改为绿色，与按钮颜色保持一致 */
  background: white; /* 聚焦时背景变白 */
  box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1); /* 绿色聚焦阴影 */
  transform: translateY(-1px); /* 微妙的提升效果 */
}

.dialog-buttons {
  display: flex;
  gap: 16px; /* 增加按钮间距 */
  margin-top: 8px;
}

.dialog-buttons button {
  flex: 1;
  padding: 14px 24px; /* 增加按钮内边距 */
  border: none;
  border-radius: 12px; /* 与输入框保持一致的圆角 */
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 48px; /* 确保按钮有足够高度 */
}

.cancel-btn {
  background: #f7fafc; /* 更柔和的背景色 */
  color: #718096;
  border: 2px solid #e2e8f0; /* 添加边框 */
}

.cancel-btn:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
  transform: translateY(-1px); /* 微妙的提升效果 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.confirm-btn {
  background: linear-gradient(
    135deg,
    #48bb78 0%,
    #38a169 100%
  ); /* 春天绿色渐变，与页面绿色元素和春笋品牌呼应 */
  color: white;
  border: 2px solid transparent; /* 保持与取消按钮的一致性 */
  box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
}

.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 161, 105, 0.4);
  background: linear-gradient(
    135deg,
    #38a169 0%,
    #2f855a 100%
  ); /* 悬停时加深绿色 */
}

/* 工具类 */
.hidden {
  display: none !important;
}

/* 新的卡片样式 - 只显示图片和播放按钮 */
.content-item {
  background: white;
  border-radius: 12px; /* 减少圆角，更紧凑 */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); /* 减少阴影，更轻量 */
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.content-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.content-item.selected {
  background: rgba(40, 44, 52, 0.1);
  border: 2px solid #fbbf24;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.3);
}

.item-image {
  position: relative;
  width: 100%;
  height: 180px; /* 减少高度，让卡片更紧凑 */
  overflow: hidden;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.content-item:hover .item-image img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 移除重复规则，使用上面统一的规则 */

.play-overlay .play-button {
  width: 55px; /* 适合手机的大小 */
  height: 55px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  min-width: 55px;
  min-height: 55px;
  line-height: 1;
  text-align: center;
  padding: 0;
}

/* 为圆形播放按钮创建居中的三角形 - 统一大小 */
.play-overlay .play-button::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px; /* 与主播放按钮保持一致 */
  border-color: transparent transparent transparent currentColor;
  margin-left: 2px; /* 微调位置，让三角形在视觉上更居中 */
  display: inline-block;
  vertical-align: middle;
}

.play-button:hover {
  transform: scale(1.1);
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.play-button.playing {
  background: #ffd700;
  color: #333;
  animation: pulse 1s infinite;
}

/* 播放状态下圆形按钮的样式 - 统一大小 */
.play-overlay .play-button.playing::before {
  content: "■"; /* 播放时显示停止符号 */
  border: none;
  width: auto;
  height: auto;
  margin-left: 0;
  font-size: 1.2rem; /* 与主播放按钮保持一致 */
  line-height: 1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* 播放模态框 */
.play-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.play-modal.show {
  opacity: 1;
}

.modal-content {
  background: rgba(40, 44, 52, 0.1) !important;
  border-radius: 0;
  max-width: 100% !important;
  width: 100% !important;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transform: scale(0.8);
  transition: transform 0.4s ease;
  box-shadow: none;
  border: none;
  padding-bottom: 20px;
}

.play-modal.show .modal-content {
  transform: scale(1);
}

.modal-body {
  padding: 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 40px);
  gap: 20px;
}

/* 分享页面的modal-body样式优先级更高 */
.share-container .modal-body {
  padding: 20px 0 0 0 !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  align-items: center;
  min-height: calc(100vh - 20px) !important;
  height: auto !important;
  gap: 20px;
}

.play-animation {
  margin-bottom: 60px;
}

.sound-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 80px;
}

.wave-bar {
  width: 8px;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 4px;
  animation: wave 1.4s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}

.wave-bar:nth-child(1) {
  animation-delay: 0s;
}
.wave-bar:nth-child(2) {
  animation-delay: 0.1s;
}
.wave-bar:nth-child(3) {
  animation-delay: 0.2s;
}
.wave-bar:nth-child(4) {
  animation-delay: 0.3s;
}
.wave-bar:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes wave {
  0%,
  40%,
  100% {
    height: 24px;
  }
  20% {
    height: 80px;
  }
}

.content-text {
  text-align: center;
}

.content-text .english-text {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);
}

.content-text .phonetic-text {
  font-size: 1.8rem;
  color: #fbbf24;
  margin-bottom: 32px;
  font-style: italic;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.content-text .chinese-text {
  font-size: 2.2rem;
  color: #e2e8f0;
  line-height: 1.4;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* 跟读界面新增样式 */

/* 关闭按钮 */
.close-modal-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
}

.close-modal-button:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

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

.close-icon {
  line-height: 1;
  font-size: 36px;
}

/* 内容图标 - 固定容器尺寸，防止布局跳动 */
.content-icon {
  position: relative;
  height: 160px;
  width: 160px;
  margin: 0 auto 15px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

/* 播放动画定位在图标上 - 完全重叠 */
.play-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* 重复播放按钮 */
.replay-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 15;
  backdrop-filter: blur(2px);
}

.replay-button:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.replay-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.replay-icon {
  font-size: 20px;
  color: #333;
  margin-left: 2px; /* 微调播放图标位置，让它看起来更居中 */
}

/* 跟读状态区域 */
.read-along-state {
  margin-top: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 页面过渡动效 */
.read-along-state.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

.read-along-state.fade-in {
  opacity: 1;
  transform: scale(1);
}

.read-along-state.initial-state {
  opacity: 0;
  transform: scale(1.05);
}

/* 录音后的内容区域紧凑布局 */
.content-text.compact {
  margin-bottom: 8px;
}

.content-text.compact .english-text {
  font-size: 2rem;
  margin-bottom: 12px;
}

.content-text.compact .phonetic-text {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.content-text.compact .chinese-text {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

/* 录音按钮容器 */
.recording-button-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 跟读按钮 */
.read-along-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* 录音状态按钮 */
.read-along-button.recording {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
  position: relative;
}

/* AI评分中状态按钮 */
.read-along-button.evaluating {
  background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%) !important;
  cursor: not-allowed;
  opacity: 0.9;
  box-shadow: 0 12px 40px rgba(255, 167, 38, 0.4) !important;
}

.read-along-button.evaluating .button-icon {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* 录音状态按钮的边框进度条 */
.read-along-button.recording::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ffffff var(--progress, 0deg),
    transparent var(--progress, 0deg)
  );
  z-index: -1;
  transition: background 0.1s linear;
}

.read-along-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.read-along-button:hover::before {
  left: 100%;
}

.read-along-button:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.read-along-button:active {
  transform: translateY(-3px) scale(0.95);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.button-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.read-along-button:hover .button-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

/* 录音状态下的音波图标 */
.read-along-button.recording .button-icon {
  font-size: 0; /* 隐藏emoji图标 */
  width: 40px;
  height: 40px;
  position: relative;
}

.read-along-button.recording .button-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='white'%3E%3Crect x='6' y='12' width='3' height='16' rx='1.5'/%3E%3Crect x='12' y='8' width='3' height='24' rx='1.5'/%3E%3Crect x='18' y='10' width='3' height='20' rx='1.5'/%3E%3Crect x='24' y='6' width='3' height='28' rx='1.5'/%3E%3Crect x='30' y='14' width='3' height='12' rx='1.5'/%3E%3C/g%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
  animation: soundWave 1.5s ease-in-out infinite;
}

@keyframes soundWave {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

/* 进度环 */
.progress-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-ring.visible {
  opacity: 1;
}

.progress-ring-svg {
  transform: rotate(-90deg);
}

.progress-ring-progress {
  stroke-dasharray: 408.4;
  stroke-dashoffset: 408.4;
  transition: stroke-dashoffset 0.1s linear;
}

/* 倒计时覆盖层 */
.countdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  z-index: 3;
}

.countdown-overlay.visible {
  opacity: 1;
}

#countdown-number {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  animation: countdownPulse 1s ease-in-out;
}

@keyframes countdownPulse {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.button-text {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #ffffff;
  text-align: center;
  margin-top: 12px;
  opacity: 0.9;
  /* 确保和prep-text完全一致 */
  display: block;
  width: 100%;
}

/* 录制准备阶段样式 */
.recording-prep {
  margin-top: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.recording-prep.hidden {
  display: none;
}

/* 准备倒计时样式 - 在按钮内部居中 */
.prep-countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.prep-countdown.hidden {
  display: none;
}

.prep-countdown .countdown-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  animation: pulse 1s ease-in-out infinite;
}

/* 评测加载状态 */
.evaluation-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fbbf24;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

.loading-text {
  color: #fbbf24;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

/* 评估结果区域 */
.evaluation-result {
  width: 100%;
  max-width: 600px;
  padding: 10px 0;
}

/* 总分和等级组合 */
.score-and-level {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 5px;
}

/* 雷达图容器 */
.radar-chart-container {
  display: flex;
  justify-content: center;
  padding: 40px;
  overflow: visible;
}

/* 表现等级 */
.performance-level {
  display: inline;
  background: linear-gradient(135deg, #52c41a, #389e0d);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(82, 196, 26, 0.4);
  transition: all 0.3s ease;
}

/* Performance-Level 突出显示动效 */
.performance-level.highlight {
  animation: pulseGlow 3s ease-in-out;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 3px 12px rgba(82, 196, 26, 0.4),
      0 0 0 0 rgba(82, 196, 26, 0.7);
  }
  25% {
    transform: scale(1.3); /* 放大到1.3倍 */
    box-shadow: 0 8px 25px rgba(82, 196, 26, 0.8),
      0 0 30px 15px rgba(82, 196, 26, 0.6);
  }
  50% {
    transform: scale(1.5); /* 最大放大到1.5倍 */
    box-shadow: 0 12px 35px rgba(82, 196, 26, 0.9),
      0 0 40px 20px rgba(82, 196, 26, 0.7);
  }
  75% {
    transform: scale(1.2); /* 缩小到1.2倍 */
    box-shadow: 0 8px 25px rgba(82, 196, 26, 0.8),
      0 0 30px 15px rgba(82, 196, 26, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 3px 12px rgba(82, 196, 26, 0.4), 0 0 0 0 rgba(82, 196, 26, 0);
  }
}

/* 分数显示 */

.score-label {
  display: inline;
  font-size: 1.1rem;
  color: #ffffff;
  margin-right: 8px;
}

.score-value {
  display: inline;
  font-size: 3.2rem;
  font-weight: 700;
  color: #fbbf24;
  margin-right: 16px;
  transition: all 0.3s ease;
}

/* 分数滚动动效 */
.score-value.count-up {
  animation: countUp 1.5s ease-out;
}

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

/* 雷达图 */
.radar-chart {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  transition: all 0.5s ease;
}

/* 雷达图填充动效 */
.radar-chart.fade-in {
  animation: radarFill 1s ease-out;
}

@keyframes radarFill {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 操作按钮区域 */
.action-buttons {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 400px;
  margin-top: 16px;
  flex-wrap: nowrap;
  transition: all 0.5s ease;
}

/* 底部按钮滑入动效 */
.action-buttons.slide-in {
  animation: slideInUp 0.5s ease-out;
}

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

.action-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.action-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.action-button:active {
  transform: translateY(-1px) scale(0.95);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.action-button .button-icon {
  font-size: 2.2rem;
  margin-bottom: 2px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-button .button-icon svg {
  width: 28.8px;
  height: 28.8px;
  color: inherit;
}

.action-button .button-text {
  font-size: 0.9rem;
  font-weight: 500;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #ffffff;
}

/* 播放状态样式 */
.action-button.playing {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  animation: pulse-playing 1.5s ease-in-out infinite;
}

@keyframes pulse-playing {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  }
}

.action-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .icon-image {
    width: 160px;
    height: 160px;
  }

  .read-along-button {
    width: 100px;
    height: 100px;
  }

  .progress-ring-svg {
    width: 120px;
    height: 120px;
  }

  .button-icon {
    font-size: 2.8rem;
  }

  .read-along-button.recording .button-icon {
    width: 32px;
    height: 32px;
  }

  .read-along-button.recording .button-icon::before {
    width: 32px;
    height: 32px;
  }

  #countdown-number {
    font-size: 2.5rem;
  }

  .button-text {
    font-size: 1rem;
    margin-top: 10px;
  }

  .evaluation-result {
    padding: 15px 30px 0px 30px;
    max-width: 100%;
  }

  .score-and-level {
    flex-direction: row;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .score-value {
    font-size: 2.8rem;
  }

  .performance-level {
    font-size: 1rem;
    padding: 6px 12px;
  }

  .radar-chart {
    width: 250px;
    height: 250px;
  }

  .radar-chart-container {
    padding: 10px;
  }

  .score-value {
    font-size: 2.8rem;
  }

  .action-buttons {
    gap: 12px;
    flex-wrap: nowrap;
  }

  .action-button {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
  }

  .action-button .button-icon {
    font-size: 1.8rem;
  }

  .action-button .button-icon svg {
    width: 24px;
    height: 24px;
  }

  .action-button .button-text {
    font-size: 0.78rem;
    bottom: -18px;
  }
}

/* 完全统一化设计完成 - 无媒体查询 */

/* 用户指引提示 */
.user-guide {
  position: absolute;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  animation: guideFadeIn 0.5s ease-out, guidePulse 2s infinite;
  display: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.user-guide::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(255, 255, 255, 0.95);
}

.guide-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.guide-icon {
  font-size: 2rem;
}

.guide-text {
  font-size: 1.1rem;
  font-weight: 500;
  white-space: nowrap;
}

@keyframes guideFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes guidePulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.1);
  }
}

/* 分享页面样式 - 完全按照录音朗读模态框风格 */
.share-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.share-container.show {
  opacity: 1;
}

.share-container .share-content {
  background: rgba(40, 44, 52, 0.1) !important;
  border-radius: 0;
  max-width: 100% !important;
  width: 100% !important;
  min-height: 100vh;
  height: auto;
  overflow-y: visible;
  overflow-x: hidden;
  transform: scale(0.8);
  transition: transform 0.4s ease;
  box-shadow: none;
  border: none;
  padding-bottom: 20px;
}

/* 分享页面图标样式 - 覆盖绝对定位 */
.share-container .icon-image {
  position: static !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0 auto;
}

/* 分享页面文字样式 - 字体更小 */
.share-container .content-text .english-text {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);
}

.share-container .content-text .phonetic-text {
  font-size: 1.1rem;
  color: #fbbf24;
  margin-bottom: 12px;
  font-style: italic;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.share-container .content-text .chinese-text {
  font-size: 1.2rem;
  color: #e2e8f0;
  line-height: 1.4;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* 分享页面评测结果样式 - 与朗读录音页面一致 */
.share-container .score-and-level {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 5px;
}

.share-container .score-label {
  font-size: 1.2rem;
  color: #e2e8f0;
  font-weight: 600;
}

.share-container .score-value {
  font-size: 2.8rem;
  color: #fbbf24;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.share-container .performance-level {
  display: inline;
  background: linear-gradient(135deg, #52c41a, #389e0d);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(82, 196, 26, 0.4);
}

.share-container .radar-chart-container {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.share-container.show .share-content {
  transform: scale(1);
}

/* 返回按钮 - 完全按照录音朗读模态框关闭按钮风格 */
.back-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-button:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.back-button:active {
  transform: scale(0.95);
}

.back-icon {
  line-height: 1;
  font-size: 36px;
}

.back-text {
  display: none;
}

/* 分享专用区域 - 替换原来的3个按钮 */
.share-qr-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}

.qr-code {
  margin-bottom: 0;
}

.qr-code img {
  width: 160px;
  height: 160px;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 3px solid #fff;
}

.share-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 下载按钮样式 */
.download-button {
  margin-top: 30px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.download-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.download-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* 将SVG图标变为白色 */
}

.download-text {
  font-size: 16px;
}

/* 图片生成加载状态样式 */
.download-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.download-button:disabled:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 分享页面隐藏状态 */
.share-container.hidden {
  display: none;
}

/* 成绩徽章样式 */
.performance-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 5px 9px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  z-index: 10;
  min-width: 50px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: rotate(2deg);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

/* 悬停效果 */
.performance-badge:hover {
  transform: rotate(2deg) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 成绩等级样式 - 基于心理学和词义的颜色定义 */

/* 完美 - 金色系：成就、卓越、胜利 */
.performance-badge.perfect {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.9) 0%,
    /* 纯金色 */ rgba(255, 193, 7, 0.9) 30%,
    /* 琥珀金 */ rgba(255, 165, 0, 0.8) 70%,
    /* 橙金色 */ rgba(255, 140, 0, 0.9) 100% /* 深橙金 */
  );
  box-shadow: 0 3px 8px rgba(255, 215, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* 优秀 - 翠绿色系：成长、进步、成功 */
.performance-badge.excellent {
  background: linear-gradient(
    135deg,
    rgba(0, 200, 83, 0.9) 0%,
    /* 翠绿色 */ rgba(34, 197, 94, 0.9) 30%,
    /* 成功绿 */ rgba(56, 161, 105, 0.8) 70%,
    /* 森林绿 */ rgba(76, 175, 80, 0.9) 100% /* 材料绿 */
  );
  box-shadow: 0 3px 8px rgba(0, 200, 83, 0.3), 0 1px 3px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* 良好 - 蓝色系：稳定、可靠、专业 */
.performance-badge.good {
  background: linear-gradient(
    135deg,
    rgba(33, 150, 243, 0.9) 0%,
    /* 材料蓝 */ rgba(30, 136, 229, 0.9) 30%,
    /* 深蓝 */ rgba(25, 118, 210, 0.8) 70%,
    /* 专业蓝 */ rgba(21, 101, 192, 0.9) 100% /* 稳重蓝 */
  );
  box-shadow: 0 3px 8px rgba(33, 150, 243, 0.3), 0 1px 3px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* 加油 - 橙色系：活力、鼓励、温暖 */
.performance-badge.keep-trying {
  background: linear-gradient(
    135deg,
    rgba(255, 152, 0, 0.9) 0%,
    /* 活力橙 */ rgba(255, 138, 0, 0.9) 30%,
    /* 温暖橙 */ rgba(255, 111, 0, 0.8) 70%,
    /* 激励橙 */ rgba(255, 87, 34, 0.9) 100% /* 动力橙 */
  );
  box-shadow: 0 3px 8px rgba(255, 152, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* 未朗读 - 中性灰系：中性、待定、未开始 */
.performance-badge.not-read {
  background: linear-gradient(
    135deg,
    rgba(158, 158, 158, 0.8) 0%,
    /* 中性灰 */ rgba(140, 140, 140, 0.8) 30%,
    /* 柔和灰 */ rgba(117, 117, 117, 0.7) 70%,
    /* 深灰 */ rgba(97, 97, 97, 0.8) 100% /* 稳重灰 */
  );
  box-shadow: 0 3px 8px rgba(158, 158, 158, 0.2), 0 1px 3px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* 激励提示样式 */
.motivation-prompt {
  margin-top: 20px;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.motivation-success,
.motivation-encourage {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.95) 100%
  );
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.motivation-success {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1) 0%,
    rgba(16, 185, 129, 0.1) 100%
  );
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.motivation-encourage {
  background: linear-gradient(
    135deg,
    rgba(255, 152, 0, 0.1) 0%,
    rgba(251, 146, 60, 0.1) 100%
  );
  border: 1px solid rgba(255, 152, 0, 0.2);
}

.success-icon,
.encourage-icon {
  font-size: 32px;
  flex-shrink: 0;
  animation: bounce 2s infinite;
}

.success-text,
.encourage-text {
  flex: 1;
}

.success-text h3,
.encourage-text h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.success-text p,
.encourage-text p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.encourage-text .highlight {
  color: #f59e0b;
  font-weight: 700;
  font-size: 16px;
}

.reward-text {
  margin-top: 8px !important;
  color: #059669 !important;
  font-weight: 600 !important;
}

.dialog-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3748;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* 录音指引提示样式 */
.recording-hint-popup {
  position: absolute !important;
  bottom: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-bottom: 20px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #333333 !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  z-index: 9999 !important;
  animation: hintFadeInOut 3s ease-in-out, hintBounce 1.5s ease-in-out infinite !important;
  pointer-events: none !important;
  min-width: 120px !important;
  text-align: center !important;
}

/* 录音指引箭头 - 指向下方 */
.recording-hint-popup::before {
  content: "" !important;
  position: absolute !important;
  bottom: -8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 8px solid transparent !important;
  border-right: 8px solid transparent !important;
  border-top: 8px solid rgba(255, 255, 255, 0.95) !important;
  z-index: 10000 !important;
  filter: drop-shadow(
    0 2px 4px rgba(0, 0, 0, 0.1)
  ) !important; /* 添加阴影，让箭头更明显 */
}

@keyframes hintFadeInOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  20% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes hintBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  25% {
    transform: translateX(-50%) translateY(-8px) scale(1.05);
  }
  50% {
    transform: translateX(-50%) translateY(-15px) scale(1.1);
  }
  75% {
    transform: translateX(-50%) translateY(-8px) scale(1.05);
  }
}

@keyframes popoverFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 天女散花/烟花效果容器 */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

/* 彩带粒子 */
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ff6b6b;
  animation: confetti-fall 3s linear forwards;
}

.confetti-piece:nth-child(2n) {
  background: #4ecdc4;
  width: 8px;
  height: 8px;
}

.confetti-piece:nth-child(3n) {
  background: #45b7d1;
  width: 12px;
  height: 12px;
}

.confetti-piece:nth-child(4n) {
  background: #f9ca24;
  width: 6px;
  height: 6px;
}

.confetti-piece:nth-child(5n) {
  background: #f0932b;
  width: 14px;
  height: 14px;
}

.confetti-piece:nth-child(6n) {
  background: #eb4d4b;
  width: 9px;
  height: 9px;
}

.confetti-piece:nth-child(7n) {
  background: #6c5ce7;
  width: 7px;
  height: 7px;
}

.confetti-piece:nth-child(8n) {
  background: #a29bfe;
  width: 11px;
  height: 11px;
}

/* 彩带下落动画 */
@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  20% {
    opacity: 1; /* 在顶部保持不透明更久，形成积累效果 */
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* 烟花爆炸效果 */
.fireworks-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.firework {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: firework-explode 1.5s ease-out forwards;
}

.firework:nth-child(odd) {
  background: #ff6b6b;
}

.firework:nth-child(even) {
  background: #4ecdc4;
}

@keyframes firework-explode {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  50% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}
