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

/* 全局 body 样式 */
body {
  background: white;
  font-family: 'Times New Roman', '幼圆', cursive;
  padding: 20px 0;
}

   /* 加载字体 */
 @font-face {
  font-family: 'ShuyaoItalic';
  src: url('/font/舒窈意大利斜体★四线三格.ttf') format('truetype');
  font-weight: normal;
   font-style: normal;
    }

/* 极简小型加载动画 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-content {
  text-align: center;
  transform: scale(0.9); /* 整体缩小 */
}

.loading-spinner {
  width: 36px; /* 更小尺寸 */
  height: 36px;
  border: 2px solid rgba(52, 152, 219, 0.1);
  border-top: 2px solid #3498db;
  border-radius: 50%;
  margin: 0 auto 10px;
  animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
  will-change: transform;
}

.loading-text {
  font-size: 13px; /* 更小字体 */
  color: #666;
  font-weight: normal;
  letter-spacing: 0.5px;
}

/* 错误状态样式 */
.error-state {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  z-index: 9999;
  padding: 20px;
  text-align: center;
}

.error-icon {
  font-size: 36px;
  margin-bottom: 12px;
  color: #e53935;
  animation: pulse 1.5s ease infinite;
}

.error-text {
  font-size: 14px;
  margin-bottom: 16px;
  color: #333;
  max-width: 80%;
}

.retry-btn {
  padding: 8px 16px;
  font-size: 13px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.retry-btn:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

/* 动画定义 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes brandPulse {
  0%, 100% { 
    opacity: 0.6; 
    transform: scale(1);
  }
  50% { 
    opacity: 1; 
    transform: scale(1.05);
  }
}

/* 导航触发器样式 */
#nav-trigger {
  position: fixed;
  left: 0;
  top: 50%;
  width: 18px;
  height: 80px;
  background: #2196F3;
  transform: translateY(-50%);
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#nav-trigger::before {
  content: '单词表';
  writing-mode: vertical-rl;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

#nav-trigger:hover {

  background: #75b7eb
}

/* 单词导航样式 */
#word-nav {
  position: fixed;
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 180px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 0 12px 12px 0;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  padding: 15px 0;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px 10px;
  border-bottom: 2px solid #eee;
  margin-bottom: 10px;
}

.nav-header span {
  font-weight: bold;
  color: #28977e;
  font-size: 18px;
}

#word-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #ff4444;
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  margin-right: 6px;
  vertical-align: middle;
}

.nav-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  background: #f5f7fa;
  gap: 12px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e0e0e0;
  transition: 0.3s ease;
  border-radius: 30px;
  border: 2px solid #d0d0d0;
}

.toggle-slider:before {
  position: absolute;
  content: "关";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s ease;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  color: #999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #28977e;
  border-color: #1a7a65;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
  content: "开";
  color: #28977e;
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  white-space: nowrap;
}

.toggle-status {
  font-size: 12px;
  color: #999;
  min-width: 30px;
  text-align: right;
}

.toggle-switch input:checked ~ .toggle-status {
  color: #28977e;
}

.nav-passage {
  font-style: italic;
  color: #28977e;
  padding-left: 20px;
  background: linear-gradient(90deg, rgba(40,151,126,0.1) 0%, transparent 100%);
}

#close-nav {
  background: none;
  border: none;
  font-size: 1.4em;
  cursor: pointer;
  color: #666;
  padding: 2px 8px;
}

#close-nav:hover {
  color: #f44336;
}

.nav-items {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 5px;
}

.nav-items::-webkit-scrollbar {
  display: none;
}

.nav-item {
  padding: 8px 20px;
  cursor: pointer;
  transition: 0.2s;
  
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

}

.nav-item:hover {
  background: #e3f2fd;
  color: #1976D2;
}

.nav-item.active {
  background: #28977e !important;
  color: white !important;
  font-weight: bold;


}



/* 单词卡片样式 */
.word-card {
  width: 92%;
  max-width: 900px;
  margin: 15px auto;
  padding: 15px 15px 95px 15px;
  border-radius: 15px;
  background: white;
  /*border-bottom: 2px solid #b3e5fc;
  box-shadow: 0 4px 12px rgba(0, 120, 255, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;*/
}
/*
.word-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 120, 255, 0.15);
}
*/
.word-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
 padding-bottom: 10px;
  text-align: center;
}

.word-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px; /* 图片中的线更细 */
  background: #42A5F5; /* 使用与1X、连拼按钮一致的蓝色 */
  border-radius: 1px;
  opacity: 0.8;
}

.word-and-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

   /* 英语单词使用自定义字体 */
        .word-text {
            font-size: 3em;
            color: #01579b;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
            word-break: break-word;
            hyphens: auto;
            position: relative;
            display: inline-block;
            background: white;
            border-radius: 4px;
            font-family: 'ShuyaoItalic', 'Times New Roman', 'Arial', 'Helvetica Neue', sans-serif !important;
        }
        

/*.word-text::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--underline-gradient, 
    radial-gradient(circle at 0% 50%, #ff6b6b, transparent 20%),
    radial-gradient(circle at 25% 50%, #4ecdc4, transparent 20%),
    radial-gradient(circle at 50% 50%, #45b7d1, transparent 20%),
    radial-gradient(circle at 75% 50%, #feca57, transparent 20%),
    radial-gradient(circle at 100% 50%, #ff9ff3, transparent 20%)
  );
  background-size: 200% 100%;
  border-radius: 3px;
  animation: particleFlow 3s linear infinite;
}


.word-card.custom-mapping .word-header .word-and-icon .word-text,
.word-card.custom-mapping .word-header .word-and-icon .word-text * {
    color: var(--custom-word-color, #ff0000) !important;
    text-shadow: none !important;
}

.word-card.custom-mapping .word-text::before {
    background: 
        radial-gradient(circle at 0% 50%, #ff8c00, transparent 20%),
        radial-gradient(circle at 25% 50%, #ffd700, transparent 20%),
        radial-gradient(circle at 50% 50%, #ff8c00, transparent 20%),
        radial-gradient(circle at 75% 50%, #ffd700, transparent 20%),
        radial-gradient(circle at 100% 50%, #ff8c00, transparent 20%);
    background-size: 200% 100%; 
    animation: particleFlow 3s linear infinite;  
}



@keyframes particleFlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

@keyframes bottomFlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}
*/

/* 打字机光标样式 */
.word-cursor {
  position: absolute;
  width: 3px;
  height: 0.8em;
  background-color: #333;
  animation: blink 0.8s infinite;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.word-cursor.hidden {
  opacity: 0;
  animation: none;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* 光标位置占位符 */
.cursor-placeholder {
  display: inline-block;
  width: 1px;
  height: 1em;
}

/* 单词字母容器需要相对定位 */
.word-letters {
  position: relative;
  display: inline-block;
}

/* 打字机效果 - 字母隐藏状态 */
.word-letters .letter-hidden {
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease-out;
}

/* 打字机效果 - 字母显示状态 */
.word-letters .letter-visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease-out;
}

/* 元音字母样式保持不变 
.word-letters .vowel {
  color: #ff4757;
}
*/
.speaker-icon {
  display: flex;
  font-size: 15px;
  height: 6px;
  align-items: center;
  margin-left:20px;
}

.speaker-icon:hover {
  color: #e91e63;
}

.speaker-icon1::before {
  content: "自动拼读";
  padding-right: 5px;
  font-size: 12px;
  color: #80808075;
}

.meta-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  /*gap: 8px;*/
}

/* 音标和翻译排列容器（竖向：音标在上，翻译在下） */
.phonetic-translation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.phonetic {
  font-family: Arial, sans-serif;
  font-size: 1.2em;
  font-weight: bold;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.translation {
  border-radius: 15px;
  font-size: 1em;
  box-shadow: 0 2px 4px rgba(255, 152, 0, 0.1);
  font-family: Arial, sans-serif;
  text-align: center;
}

/* ===== 英式/美式音标 pill ===== */
.phonetic-pills-container {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.phonetic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 6px;
  background: linear-gradient(135deg, #f5f7fa 0%, #eaeef2 100%);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.phonetic-pill:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.pill-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.uk-label {
  background: linear-gradient(135deg, #1e88e5, #1565c0);
}

.us-label {
  background: linear-gradient(135deg, #e53935, #c62828);
}

.pill-phonetic {
  font-family: Arial, 'Segoe UI', sans-serif;
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  line-height: 1;
}

.pill-audio-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.pill-audio-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
  position: relative;
  z-index: 2;
}

.pill-audio-wrapper:hover .pill-audio-icon {
  transform: scale(1.15);
}

.pill-audio-wrapper::before,
.pill-audio-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 2px solid rgba(229, 57, 53, 0.5);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.pill-audio-wrapper.playing .pill-audio-icon {
  animation: pillIconBounce 0.5s ease-in-out infinite;
}

.pill-audio-wrapper.playing::before {
  animation: pillRipple 1s ease-out infinite;
}

.pill-audio-wrapper.playing::after {
  animation: pillRipple 1s ease-out 0.35s infinite;
}

@keyframes pillIconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

@keyframes pillRipple {
  0% {
    width: 18px;
    height: 18px;
    opacity: 0.8;
    border-width: 2px;
  }
  100% {
    width: 40px;
    height: 40px;
    opacity: 0;
    border-width: 1px;
  }
}

@media (max-width: 480px) {
  .phonetic-pill {
    padding: 4px 10px 4px 5px;
    gap: 5px;
  }

  .pill-label {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .pill-phonetic {
    font-size: 0.85em;
  }

  .pill-audio-wrapper {
    width: 24px;
    height: 24px;
  }

  .pill-audio-icon {
    width: 16px;
    height: 16px;
  }
}

.mnemonic {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: 20px;
  margin-top: 4px;
  border: 1px solid rgba(255, 152, 0, 0.2);
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.1);
  transition: all 0.3s ease;
}

.mnemonic:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
}

.mnemonic-label {
  font-size: 12px;
  font-weight: bold;
  color: #e65100;
  background: rgba(230, 81, 0, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.mnemonic-content {
  font-size: 14px;
  color: #5d4037;
  font-weight: 500;
  font-family: 'Times New Roman', '幼圆', cursive;
}

.phoneme-mapping {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mapping-pair {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 50px;
  padding: 12px;
  border: 2px solid #81d4fa;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f8ff 100%);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(129, 212, 250, 0.2);
  position: relative;
  /* 不使用overflow: hidden，允许播放图标在外部显示 */
}

.mapping-pair::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 100%);
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

.mapping-pair:hover {
  background: linear-gradient(145deg, #e1f5fe 0%, #b3e5fc 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 
    0 6px 12px rgba(33, 150, 243, 0.15),
    0 0 0 1px rgba(33, 150, 243, 0.3);
  border-color: #4fc3f7;
}

.mapping-pair.active {
  background: linear-gradient(145deg, #b3e5fc 0%, #81d4fa 100%);
  border-color: #0288d1;
  box-shadow: 
    0 4px 10px rgba(33, 150, 243, 0.25),
    0 0 0 1px rgba(33, 150, 243, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  animation: bounce 0.4s ease-out;
}

.grapheme {
  color: #263238;
  font-weight: 600;
  margin-bottom: 2px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  font-size: 1.1em;
  z-index: 1;
  border-bottom: 1px dashed #b6b9ab
}

.phoneme {
  color: #b71c1c;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 0.95em;
  font-weight: 500;
  z-index: 1;
}

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

.word-media {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 20px auto 0;
  text-align: center;
  overflow: hidden;
}

.word-media1 {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: -25px auto 10px;
  text-align: center;
  overflow: hidden;
  min-height: 120px;
}

.word-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  max-height: 300px;
  transition: transform 0.3s;
}

.word-video {
  width: 100%;
  height: auto;
  /*margin: 20px auto;*/
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;

  /* 添加精致的边框和阴影 */
  border: 1px solid #66666685;

  /* 仅对视觉属性过渡，不含尺寸 */
  transition: box-shadow 0.3s ease, border-color 0.3s ease;

  /* 添加溢出隐藏，确保圆角效果完整 */
  overflow: hidden;

  /* 添加一个优雅的内阴影，增加深度感 */
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

/* 悬停效果 */
.word-video:hover {

  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

/* 焦点状态（可访问性） */
.word-video:focus {
  outline: 2px solid rgba(59, 130, 246, 0.6);
  outline-offset: 2px;
}



.word-video.loading::before {
  opacity: 1;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 添加播放按钮指示（可选） */




.word-image:hover {
  transform: scale(1.03);
}


.speaker-icon1 {
  font-size: 15px;
}

.speaker-icon1.playing {
  color: #e91e63;
}

.pairs-container {
  display: flex;
  gap: 5px;
  justify-content: center;
  width: 100%;
  padding-bottom: 6px;
}

/*.vowel { color: #ff4757; }  红色系元音 */
.vowel-phoneme {
  color: #ff7b00;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.phrase-space {
  border: none !important;
  background: none !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  cursor: default;
  flex-shrink: 0;
  
  font-size: 34px;
  color: #666;
}

.button-container {
  text-align: center;
  margin: 10px 0;
}

/* 音素容器 */
.phoneme-video-container {
  position: relative;
  display: inline-block;
}

/* 播放图标样式 */
.play-icon {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  font-size: 16px;
  color: #ff6b6b;
  display: none;
  margin-top: 4px;
  z-index: 10;
  /* 增加z-index确保图标显示在最上层 */
}

/* 显示激活状态音素下的播放图标 */
.phoneme-video-container.active .play-icon {
  display: block;
}

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

.video-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
}

.close-modal {
  position: absolute;
  top: -30px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.video-modal video {
  max-width: 100%;
  max-height: 70vh;
}

.video-wrapper {
  position: relative;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
}

.phoneme-name {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 12px;
  font-weight: 600;
}

.phoneme-highlight {
  color: #f72585;
}

.control-center {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.control-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background-color: #4361ee;
  color: white !important;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.control-btn:hover {
  background-color: #3a0ca3;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.control-btn:active {
  transform: translateY(1px);
}

.watermark-container {
  width: 100%;
  text-align: center;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.5); /* 淡灰色半透明 */
  white-space: pre-line;
}

/* 媒体查询：屏幕宽度小于等于 768px 时的样式 */
@media (max-width: 768px) {
  .word-card {
    width: 95%;
    padding: 15px 15px 45px 15px;
  }
  
  .word-text {
    font-size: 32px;
  }
  
  .phonetic {
    font-size: 1.1em;
  }
  
  .mapping-pair {
    padding: 8px;
    min-width: 25px;
    box-shadow: 
      0 1px 3px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(129, 212, 250, 0.2);
  }
  
  .speaker-icon1 {
    font-size: 13px;
  }
  

}

/* 媒体查询：屏幕宽度小于等于 480px 时的样式 */
@media (max-width: 480px) {
  .word-header {
    flex-direction: column;
    align-items: center;
  }
  
  .word-text {
    font-size: 32px;
    margin: 5px 0 10px 0;
  }
  
  .phonetic {
    font-size: 1em;
  }
  
  .mapping-pair {
    border: 1px solid #81d4fa;
    padding: 5px;
    min-width: 15px;
    font-size: 15px;
    border-radius: 6px;
    box-shadow: 
      0 1px 2px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(129, 212, 250, 0.15);
  }
  

  
  .phoneme-mapping {
    flex-wrap: nowrap;
    gap: 3px;
  }
  
  .speaker-icon1 {
    font-size: 10px;
  }
  
  .speaker-icon {
    height: 8px;
  }
  
  .speaker-icon1::before {
    font-size: 10px;
  }
  
  .settings-menu button {
    font-size: 12px;
  }
  
  .control-btn {
    gap: 3px;
    padding: 5px;
    font-size: 12px;
  }
  .nav-header span {

  font-size: 18px;
}

}

/* 媒体查询：屏幕宽度小于等于 380px 时的样式 */
@media (max-width: 380px) {
  .watermark-container {
    font-size: 13px;
  }
  .nav-header span {
 
  font-size: 15px;
  }
}

/* 例句AI免责声明 */
.sentence-ai-disclaimer {
  text-align: right;
  font-size: 8px;
  color: #999;
  margin-top: 1px;
}

.word-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0;
  color: #28977e;
}

.word-divider::before,
.word-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #28977e;
}

.word-divider::before {
  margin-right: 10px;
}

.word-divider::after {
  margin-left: 10px;
}