@import url('pinyin_font.css');

/* 《拼音学习乐园》- 糖果风儿童高颜值护眼界面 */
:root {
  --primary: #FF6B8B;
  --primary-hover: #E11D48;
  --secondary: #4FACFE;
  --accent-yellow: #FFD93D;
  --accent-green: #43E97B;
  --bg-gradient: linear-gradient(135deg, #FFFDF8 0%, #FFF5F5 45%, #F0F9FF 100%);
  --card-bg: #FFFFFF;
  --text-main: #2D3748;
  --text-muted: #718096;
  --tian-line: #FCA5A5;
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-pinyin: "PinyinTextbook", "KaiTi_GB2312", "KaiTi", "STKaiti", "楷体", cursive, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  color: var(--text-main);
  padding-bottom: 60px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  border-bottom: 2px solid #FFE4E6;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 32px;
  animation: bounce 2s infinite;
}

.brand h1 {
  font-size: 22px;
  color: #E11D48;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 12px;
  background: #FFF1F2;
  color: #E11D48;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.star-bank {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: 2px solid #F59E0B;
  color: #B45309;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.icon-btn {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: #FFF1F2;
  border-color: #FDA4AF;
  transform: scale(1.08);
}

.container {
  max-width: 1180px;
  margin: 18px auto;
  padding: 0 16px;
}

.mentor-banner {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F5 100%);
  border: 2px solid #FFE4E6;
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.mentor-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mentor-avatar {
  font-size: 40px;
  background: #FFE4E6;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mentor-say h3 {
  font-size: 16px;
  color: #9F1239;
  margin-bottom: 2px;
}

.mentor-say p {
  font-size: 14px;
  color: #4B5563;
}

.mentor-action {
  display: flex;
  gap: 10px;
}

.pill-btn {
  background: linear-gradient(135deg, #FF6B8B, #E11D48);
  color: #FFF;
  border: none;
  padding: 9px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
  transition: all 0.2s;
}

.pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
}

.main-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.tab-btn {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn.active {
  background: linear-gradient(135deg, #FF6B8B, #E11D48);
  color: #FFFFFF;
  border-color: #E11D48;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.islands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.island-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 2px solid #F1F5F9;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.island-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #FDA4AF;
}

.island-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.island-badge {
  font-size: 13px;
  font-weight: 700;
  background: #FFF1F2;
  color: #E11D48;
  padding: 4px 10px;
  border-radius: 12px;
}

.island-title {
  font-size: 18px;
  font-weight: 800;
  color: #1F2937;
  margin-bottom: 6px;
}

.island-desc {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 14px;
}

.island-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.letter-pill {
  background: #F3F4F6;
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-pinyin);
  color: #374151;
}

.studio-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}

.studio-layout > * {
  min-width: 0;
  max-width: 100%;
}

.studio-main-card,
.child-read-arena,
.syllable-section-card,
#readActiveCard,
#readDynamicContainer {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.letter-selector-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 2px solid #FFE4E6;
  position: sticky;
  top: 16px;
  align-self: flex-start;
}

.pinyin-list-scroll {
  max-height: calc(100vh - 160px);
  min-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.pinyin-list-scroll:has(.mobile-studio-selector),
.letter-selector-card:has(.mobile-studio-selector),
.letter-selector-card:has(.mobile-studio-selector) .pinyin-list-scroll {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.speak-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #FFFFFF;
  border: none;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.speak-btn:hover {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  transform: translateY(-1.5px) scale(1.03);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.35);
}

.speak-btn:active {
  transform: scale(0.96);
}

.pinyin-pick-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 4px;
  background: #F8FAFC;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
  font-family: var(--font-pinyin);
  border: 1.5px solid #E2E8F0;
  transition: all 0.18s ease;
  color: #1E293B;
  text-align: center;
}

.pinyin-pick-item:hover {
  border-color: #FDA4AF;
  color: #E11D48;
  background: #FFF1F2;
  transform: translateY(-1px);
}

.pinyin-pick-item.active {
  background: #EF4444;
  border-color: #DC2626;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

@media (max-width: 860px) {
  .studio-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* 手机端极简紧凑拼音目录 (高度从 220px 降至约 68px) */
  .letter-selector-card {
    position: static !important;
    top: auto !important;
    align-self: auto !important;
    padding: 6px 8px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    background: #FFFFFF;
    border-radius: 14px;
    border: 1.5px solid #FFE4E6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  }

  .letter-selector-card .letter-selector-header {
    display: none !important;
  }

  .letter-selector-card .pinyin-list-scroll {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .mobile-studio-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-category-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-category-strip::-webkit-scrollbar {
    display: none;
  }

  .mobile-cat-pill {
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #475569;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
  }
  .mobile-cat-pill.active {
    background: linear-gradient(135deg, #FFE4E6 0%, #FECDD3 100%);
    color: #E11D48;
    border-color: #FDA4AF;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.15);
  }

  .mobile-letters-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-letters-strip::-webkit-scrollbar {
    display: none;
  }

  .mobile-letter-item {
    min-width: 44px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1.5px solid #F1F5F9;
    background: #F8FAFC;
    font-family: 'PinyinTextbook', var(--font-pinyin), sans-serif !important;
    font-size: 22px;
    font-weight: 800;
    color: #1E293B;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
    position: relative;
  }
  .mobile-letter-item:active {
    transform: scale(0.92);
  }
  .mobile-letter-item.active {
    background: linear-gradient(135deg, #FF6B8B, #E11D48) !important;
    color: #FFFFFF !important;
    border-color: #E11D48 !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35) !important;
    transform: scale(1.06);
  }
  .mobile-letter-item.locked::after {
    content: '🔒';
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 10px;
  }
}

.studio-main-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 2px solid #FFE4E6;
}

.letter-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px dashed #FEE2E2;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.letter-display-box {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #FF6B8B, #E11D48);
  color: #FFFFFF;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pinyin);
  font-size: 52px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.3);
  cursor: pointer;
  transition: transform 0.2s;
}

.letter-display-box:hover {
  transform: scale(1.05);
}

@keyframes speakingPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(225, 29, 72, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.speaking {
  animation: speakingPulse 1.1s infinite ease-in-out !important;
  border-color: #E11D48 !important;
}

.secondary-btn {
  background: #FFFFFF !important;
  color: #E11D48 !important;
  border: 2px solid #FDA4AF !important;
  box-shadow: none !important;
}

.secondary-btn:hover {
  background: #FFF1F2 !important;
}

.letter-details h2 {
  font-family: var(--font-pinyin);
  font-size: 24px;
  color: #1F2937;
  margin-bottom: 6px;
}

.rhyme-box {
  font-size: 16px;
  font-weight: 700;
  color: #E11D48;
  background: #FFF1F2;
  padding: 6px 14px;
  border-radius: 12px;
  display: inline-block;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.rhyme-box.rhyme-highlight {
  border-color: #F43F5E;
  background: #FFE4E6;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.4);
  transform: scale(1.03);
  animation: rhymePulse 1.2s infinite alternate ease-in-out;
}

@keyframes rhymePulse {
  0% { transform: scale(1.01); box-shadow: 0 0 8px rgba(244, 63, 94, 0.3); }
  100% { transform: scale(1.04); box-shadow: 0 0 20px rgba(244, 63, 94, 0.6); }
}

#listenRhymeText.rhyme-highlight {
  background: #FFE4E6;
  color: #BE185D;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
  animation: rhymeTextPulse 1.2s infinite alternate ease-in-out;
}

@keyframes rhymeTextPulse {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.03); }
}

.sub-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
  flex: 1;
  flex-wrap: wrap;
}

.sub-tab-btn {
  background: #F8FAFC;
  border: none;
  padding: 8px 18px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
}

.sub-tab-btn.active {
  background: #FFE4E6;
  color: #E11D48;
}

.tones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.tone-card {
  background: #FFFDF9;
  border: 2px solid #FEE2E2;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.tone-card:hover {
  background: #FFF1F2;
  border-color: #E11D48;
  transform: translateY(-3px);
}

.tone-mark {
  font-family: var(--font-pinyin);
  font-size: 32px;
  font-weight: 800;
  color: #E11D48;
  margin-bottom: 4px;
}

.tone-desc {
  font-size: 12px;
  color: #6B7280;
}

.canvas-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

canvas#tianziCanvas {
  border-radius: 16px;
  border: 2px solid #FCA5A5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  touch-action: none;
  background: #FFFDF9;
}

.canvas-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tool-btn {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  padding: 7px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.tool-btn:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.tool-btn.primary {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.balloon-stage {
  height: 380px;
  background: linear-gradient(180deg, #E0F2FE 0%, #BAE6FD 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  border: 3px solid #7DD3FC;
}

.balloon-item {
  width: 90px;
  height: 110px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  position: relative;
  animation: float 3s ease-in-out infinite alternate;
  transition: transform 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.balloon-item:hover {
  transform: scale(1.12);
}

.balloon-item:active {
  transform: scale(0.95);
}

.balloon-string {
  position: absolute;
  bottom: -30px;
  width: 2px;
  height: 30px;
  background: rgba(255,255,255,0.7);
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 18px 0;
}

.track-item {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.track-item:hover {
  background: #FFF1F2;
  border-color: #FDA4AF;
}

.track-title {
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  margin-top: 4px;
}

.track-sample {
  font-family: 'PinyinTextbook', var(--font-pinyin), -apple-system, sans-serif !important;
  font-size: 34px;
  font-weight: 800;
  color: #1E293B;
  margin-top: 4px;
  line-height: 1.2;
}

.track-viz {
  height: 60px;
  position: relative;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.track-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.track-path {
  fill: none;
  stroke: #94A3B8;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s, filter 0.25s;
}

.track-item:hover .track-path {
  stroke: #3B82F6;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.track-item.track-correct .track-path {
  stroke: #10B981;
  filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.4));
}

.track-car {
  font-size: 26px;
  z-index: 2;
  transition: transform 0.3s;
  display: inline-block;
  user-select: none;
}

.flat-track .track-car {
  transform: translateY(0);
}

.rise-track .track-car {
  transform: translateY(-2px) rotate(-16deg);
}

.dip-track .track-car {
  transform: translateY(6px);
}

.fall-track .track-car {
  transform: translateY(-2px) rotate(16deg);
}

/* 动感过山车发车动画 (小汽车沿轨道飞驰) */
.flat-track.car-driving .track-car {
  animation: driveFlat 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rise-track.car-driving .track-car {
  animation: driveRise 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dip-track.car-driving .track-car {
  animation: driveDip 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.fall-track.car-driving .track-car {
  animation: driveFall 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes driveFlat {
  0% { transform: translateX(-45px); }
  100% { transform: translateX(45px); }
}

@keyframes driveRise {
  0% { transform: translate(-45px, 14px) rotate(-16deg); }
  100% { transform: translate(45px, -14px) rotate(-16deg); }
}

@keyframes driveDip {
  0% { transform: translate(-45px, -12px) rotate(16deg); }
  45% { transform: translate(0px, 8px) rotate(0deg); }
  100% { transform: translate(45px, -12px) rotate(-16deg); }
}

@keyframes driveFall {
  0% { transform: translate(-45px, -14px) rotate(16deg); }
  100% { transform: translate(45px, 14px) rotate(16deg); }
}

.bumper-container .game-header,
#game-voice-box .game-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin-bottom: 16px;
}
.bumper-container .game-header .game-badge,
#game-voice-box .game-header .game-badge {
  display: inline-block;
  background: #EEF2FF;
  color: #4F46E5;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  border: 1px solid #C7D2FE;
}
.bumper-container .game-header h2,
#game-voice-box .game-header h2 {
  margin: 4px 0 2px 0;
  font-size: 22px;
  color: #1E293B;
}
.bumper-container .game-header p,
#game-voice-box .game-header p {
  margin: 0;
  color: #64748B;
  font-size: 14px;
}

.bumper-arena {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  min-height: 290px;
  height: auto;
  background: linear-gradient(180deg, #FFFDF5 0%, #FFF8E7 50%, #FFF0C8 100%);
  border-radius: 32px;
  padding: 24px 32px;
  position: relative;
  overflow: visible;
  border: 4px solid #FCD34D;
  box-shadow: inset 0 0 0 4px rgba(251, 191, 36, 0.2), 0 12px 32px rgba(245, 158, 11, 0.15);
}

.bumper-car {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  flex-shrink: 0;
}

.car-driver {
  background: #FFFFFF;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 800;
  color: #1F2937;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 2px solid #F3F4F6;
  display: flex;
  align-items: center;
  gap: 6px;
}

.car-left .car-driver {
  color: #E11D48;
  border-color: #FECDD3;
}

.car-right .car-driver {
  color: #0284C7;
  border-color: #BAE6FD;
}

.car-body {
  width: 114px;
  height: 104px;
  background: linear-gradient(145deg, #FF6584 0%, #FF2E5B 100%);
  border-radius: 30px;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  font-weight: 900;
  box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.5), 0 10px 24px rgba(255, 46, 91, 0.35);
  position: relative;
  border: 4px solid rgba(255, 255, 255, 0.8);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.car-right .car-body {
  background: linear-gradient(145deg, #38B6FF 0%, #0D84FE 100%);
  box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.5), 0 10px 24px rgba(13, 132, 254, 0.35);
}

.car-body:hover {
  transform: scale(1.05) translateY(-2px);
}

.car-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  text-align: center;
  font-family: var(--font-pinyin) !important;
  transform: translateY(-2px);
}

.car-label {
  font-size: 14px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.car-left .car-label {
  color: #E11D48;
  background: #FFF1F2;
  border: 1.5px solid #FECDD3;
}

.car-right .car-label {
  color: #0284C7;
  background: #F0F9FF;
  border: 1.5px solid #BAE6FD;
}

.crash-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.crash-ready-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 18px;
  border-radius: 20px;
  border: 2px dashed #F59E0B;
  font-size: 15px;
  font-weight: 800;
  color: #D97706;
  animation: pulseHint 2s infinite ease-in-out;
  user-select: none;
}

@keyframes pulseHint {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

.crash-star {
  font-size: 56px;
  display: none;
}

@keyframes cardPopIn {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.combined-card {
  background: #FFFFFF;
  border-radius: 22px;
  padding: 14px 22px 18px 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 3px solid #F59E0B;
  max-width: 360px;
  z-index: 10;
  animation: cardPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.result-pinyin {
  font-size: 44px;
  font-weight: 900;
  color: #E11D48;
  font-family: var(--font-pinyin) !important;
}

.bumper-action {
  display: flex;
  justify-content: center;
  margin: 22px 0 16px;
}

.big-action-btn {
  background: linear-gradient(135deg, #FF7B54 0%, #FF5252 50%, #FF3838 100%);
  color: #FFF;
  border: 3px solid #FFF;
  padding: 14px 44px;
  border-radius: 36px;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 82, 82, 0.4);
  letter-spacing: 1px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.big-action-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 82, 82, 0.5);
}

.picker-panel {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1.5px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.picker-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.picker-tab-btn {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s;
}

.picker-tab-btn:hover {
  background: #EFF6FF;
  color: #2563EB;
}

.picker-tab-btn.active {
  background: #3B82F6;
  border-color: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip-btn {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.chip-btn:hover {
  background: #E2E8F0;
}

.chip-btn.active {
  background: #FFE4E6;
  border-color: #E11D48;
  color: #E11D48;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.2);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-16px) rotate(3deg); }
}

.pop-burst {
  animation: popScale 0.3s forwards;
}

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

.shake-wrong {
  animation: shake 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.crash-left-anim {
  transform: translateX(65px) rotate(8deg);
}

.crash-right-anim {
  transform: translateX(-65px) rotate(-8deg);
}
/* 声韵碰碰车三连拼交互高亮 */
.car-active-glow {
  transform: scale(1.1) !important;
  box-shadow: 0 0 0 6px #F59E0B, 0 10px 28px rgba(245, 158, 11, 0.45) !important;
  border-color: #F59E0B !important;
  transition: all 0.2s ease-out;
}

.card-active-glow {
  transform: scale(1.06) !important;
  box-shadow: 0 0 0 6px #10B981, 0 12px 32px rgba(16, 185, 129, 0.4) !important;
  border-color: #10B981 !important;
  transition: all 0.2s ease-out;
}

.formula-spell-part {
  display: inline-block;
  transition: all 0.2s ease-out;
  padding: 0 4px;
}

.part-active-glow {
  display: inline-block;
  transform: scale(1.3) !important;
  font-weight: 900 !important;
  filter: drop-shadow(0 2px 8px currentColor);
  transition: all 0.15s ease-out;
}

#spellInitial {
  color: #EF4444;
}

#spellFinal {
  color: #10B981;
}

#spellResult {
  color: #4F46E5;
}

.formula-spell-sep, .formula-spell-arrow {
  color: #94A3B8;
  margin: 0 4px;
}

/* 四声变调自由探索栏 */
.tones-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 10px 0 6px 0;
  width: 100%;
}

.tones-bar-label {
  font-size: 13px;
  font-weight: 700;
  color: #4B5563;
}

.tones-bar-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.tone-chip-btn {
  background: #F3F4F6;
  border: 1.5px solid #D1D5DB;
  border-radius: 14px;
  padding: 6px 16px;
  font-size: 18px;
  font-family: var(--font-pinyin) !important;
  font-weight: 800;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.tone-chip-btn:hover {
  background: #EFF6FF;
  border-color: #3B82F6;
  color: #1D4ED8;
  transform: translateY(-2px);
}

.tone-chip-btn.active {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  border-color: #1D4ED8;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transform: scale(1.08);
}

.speak-btn-mini {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 22px;
  padding: 8px 22px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.speak-btn-mini:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* ========================================================
   晓晓老师智慧批改报告弹窗 (Teacher Review Modal)
   ======================================================== */
.teacher-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease-out;
}

.teacher-modal-card {
  background: #FFFFFF;
  width: 90%;
  max-width: 520px;
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 4px solid #FFE4E6;
  text-align: center;
  position: relative;
  animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.teacher-avatar-badge {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, #FF6B8B, #FFA07A);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin: -60px auto 12px;
  box-shadow: 0 10px 25px rgba(255, 107, 139, 0.4);
  border: 4px solid #FFFFFF;
}

.teacher-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #1F2937;
  margin-bottom: 6px;
}

.teacher-letter-tag {
  display: inline-block;
  background: #FFF1F2;
  color: #E11D48;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.teacher-stars-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 40px;
  margin-bottom: 12px;
}

.teacher-star-anim {
  display: inline-block;
  animation: starBounce 0.5s ease;
}

@keyframes starBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.teacher-grade-pill {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

.grade-perfect { background: #DCFCE7; color: #15803D; }
.grade-good { background: #FEF3C7; color: #B45309; }
.grade-retry { background: #FEE2E2; color: #B91C1C; }

.teacher-review-bubble {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  padding: 16px 18px;
  text-align: left;
  margin-bottom: 22px;
}

.teacher-review-text {
  font-size: 16px;
  color: #334155;
  line-height: 1.6;
  font-weight: 600;
  margin-bottom: 10px;
}

.teacher-tip-text {
  font-size: 14px;
  color: #64748B;
  background: #FFFFFF;
  border-left: 4px solid #FF6B8B;
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.5;
}

.teacher-modal-actions {
  display: flex;
  gap: 12px;
}

.modal-btn {
  flex: 1;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-btn-primary {
  background: linear-gradient(135deg, #FF6B8B, #FA709A);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 139, 0.35);
}

.modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 139, 0.45);
}

.modal-btn-secondary {
  background: #F1F5F9;
  color: #475569;
}

.modal-btn-secondary:hover {
  background: #E2E8F0;
}

/* ========================================================
   游戏四：拼音小播音员 (Voice Master Game)
   ======================================================== */
.voice-game-container {
  background: #FFFFFF;
  border: 2px solid #E0E7FF;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 10px;
}

.voice-broadcast-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #F0F4FF 0%, #FFFFFF 100%);
  border: 2px dashed #C7D2FE;
  border-radius: 24px;
  padding: 28px 20px;
  margin: 18px 0;
  position: relative;
}

.voice-prompt-card {
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.12);
  padding: 24px 36px;
  text-align: center;
  border: 2px solid #E0E7FF;
  max-width: 420px;
  width: 100%;
}

.voice-target-letter {
  font-family: var(--font-pinyin);
  font-size: 72px;
  font-weight: 800;
  color: #4F46E5;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.voice-target-sample {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 6px;
}

.voice-mouth-hint {
  font-size: 14px;
  color: #6366F1;
  background: #EEF2FF;
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.voice-sample-listen-btn {
  background: #F5F3FF;
  border: 1px solid #DDD6FE;
  color: #7C3AED;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.voice-sample-listen-btn:hover {
  background: #EDE9FE;
  transform: scale(1.03);
}

/* 动态跳动彩色声波柱 */
.voice-waves-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 70px;
  margin: 22px 0 16px;
  width: 100%;
  max-width: 320px;
}

.wave-bar {
  flex: 1;
  width: 8px;
  height: 12px;
  background: linear-gradient(180deg, #6366F1, #EC4899);
  border-radius: 8px;
  transition: height 0.08s ease-out;
}

/* 发光大麦克风按钮 */
.big-mic-action-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  border: 6px solid #FFFFFF;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
  font-size: 38px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  outline: none;
}

.big-mic-action-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.5);
}

.big-mic-action-btn.recording {
  background: linear-gradient(135deg, #EF4444, #F43F5E);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: micPulse 1.2s infinite;
}

@keyframes micPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.mic-status-label {
  font-size: 16px;
  font-weight: 700;
  color: #4B5563;
  margin-top: 10px;
}

/* 朗读识别评测卡片 */
.voice-result-box {
  margin-top: 16px;
  background: #FFFFFF;
  border-radius: 20px;
  border: 2px solid #E0E7FF;
  padding: 16px 24px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  display: none;
  animation: fadeIn 0.3s ease;
}

.voice-result-heard {
  font-size: 15px;
  color: #64748B;
  margin-bottom: 6px;
}

.voice-result-grade {
  font-size: 20px;
  font-weight: 800;
  color: #059669;
  margin-bottom: 12px;
}

.voice-playback-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.playback-btn-mini {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}

.playback-btn-mini:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.next-voice-btn {
  margin-top: 16px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
}

.next-voice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* 小朋友大声朗读工坊 */
.child-read-arena {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 100%);
  border: 2px solid #FDBA74;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 25px rgba(251, 146, 60, 0.08);
}

.child-read-header {
  margin-bottom: 18px;
}

.read-target-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.read-target-chip {
  background: #FFF;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.read-target-chip:hover {
  border-color: #F43F5E;
  color: #F43F5E;
  transform: translateY(-2px);
}

.read-target-chip.active {
  background: #FFE4E6;
  border-color: #E11D48;
  color: #BE123C;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15);
}

.read-active-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 2px dashed #FB923C;
  padding: 22px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 24px rgba(251, 146, 60, 0.12);
}

.read-active-icon {
  font-size: 48px;
  margin-bottom: 6px;
}

.read-active-pinyin {
  font-size: 54px;
  font-weight: 900;
  color: #E11D48;
  line-height: 1.1;
  font-family: 'PingFang SC', 'Source Han Sans', sans-serif;
}

.read-active-word {
  font-size: 22px;
  font-weight: 800;
  color: #1E293B;
  margin-top: 6px;
}

.read-active-tip {
  font-size: 14px;
  color: #64748B;
  margin: 8px 0 14px 0;
}

.read-demo-btn {
  background: #EFF6FF;
  border: 1px solid #93C5FD;
  color: #1D4ED8;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.read-demo-btn:hover {
  background: #DBEAFE;
}

/* ========================================================
   📱 手机/iPad 扫码互联弹窗 (QR Connect Modal)
   ======================================================== */
.qr-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.qr-modal-card {
  background: #FFFFFF;
  border-radius: 28px;
  max-width: 440px;
  width: 100%;
  padding: 28px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  text-align: center;
  border: 3px solid #FEE2E2;
}

.qr-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all 0.2s;
}

.qr-modal-close:hover {
  background: #FFE4E6;
  color: #E11D48;
}

.qr-box {
  background: #FFF5F5;
  border: 2px dashed #FDA4AF;
  border-radius: 20px;
  padding: 18px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 16px 0 12px 0;
}

.qr-box canvas, .qr-box img {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.qr-url-pill {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #1E40AF;
  word-break: break-all;
  margin: 10px 0 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qr-copy-btn {
  background: #3B82F6;
  color: #FFF;
  border: none;
  border-radius: 10px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.qr-copy-btn:hover {
  background: #2563EB;
}

.qr-tip-list {
  text-align: left;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 12px;
  color: #166534;
  line-height: 1.6;
}

.qr-tip-list b {
  color: #15803D;
}

.pill-btn-nav {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #FFFFFF;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
  transition: all 0.2s;
}

.pill-btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

/* ========================================================
   📱 手机与平板全尺寸自适应媒体查询 (Responsive Layout)
   ======================================================== */

@media (max-width: 768px) {
  .top-nav {
    padding: 10px 16px;
  }
  .container {
    padding: 0 12px;
    margin: 12px auto;
  }
  .mentor-banner {
    padding: 12px 16px;
    margin-bottom: 14px;
  }
  .main-tabs {
    gap: 8px;
    margin-bottom: 14px;
  }
  .tab-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  .studio-main-card {
    padding: 16px;
  }
  .islands-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }
  .island-card {
    padding: 16px;
  }
  .balloon-stage {
    height: 320px;
  }
  .bumper-arena {
    min-height: 260px;
    height: auto;
    padding: 14px 20px;
    overflow: visible;
  }
}

@media (max-width: 520px) {
  /* 顶部导航极致紧凑 */
  .top-nav {
    padding: 8px 10px;
  }
  .brand {
    gap: 6px;
  }
  .brand-icon {
    font-size: 24px;
  }
  .brand h1 {
    font-size: 16px;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .brand-sub {
    display: none; /* 手机顶栏空间宝贵，隐藏副标题 */
  }
  .nav-controls {
    gap: 6px;
  }
  .star-bank {
    padding: 4px 8px;
    font-size: 12px;
    gap: 3px;
    white-space: nowrap;
  }
  .icon-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  #btnShowQrModal {
    display: none; /* 手机本身在浏览，无需展示电脑端扫码按钮 */
  }

  /* 晓晓老师伴读横幅手机折叠布局 */
  .mentor-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }
  .mentor-profile {
    gap: 10px;
  }
  .mentor-avatar {
    width: 42px;
    height: 42px;
    font-size: 26px;
    flex-shrink: 0;
  }
  .mentor-say h3 {
    font-size: 14px;
  }
  .mentor-say p {
    font-size: 12px;
    line-height: 1.4;
  }
  .mentor-action {
    display: flex;
    justify-content: flex-end;
  }
  .pill-btn {
    padding: 6px 14px;
    font-size: 12px;
  }

  /* 主导航切页支持手势横滑 */
  .main-tabs {
    gap: 6px;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .main-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 18px;
    flex-shrink: 0;
  }

  /* 听说读写选择器与主卡片手机端适配 */
  .letter-selector-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 6px 8px;
    margin-bottom: 8px;
  }
  .letter-selector-card .letter-selector-header {
    display: none !important;
  }
  .letter-selector-card .pinyin-list-scroll {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .studio-main-card {
    padding: 12px;
    border-radius: 18px;
  }
  .letter-hero {
    gap: 10px;
    margin-bottom: 14px;
  }
  .letter-display-box {
    width: 68px;
    height: 68px;
    font-size: 38px;
    border-radius: 16px;
    flex-shrink: 0;
  }
  .letter-details h2 {
    font-size: 18px;
  }
  .rhyme-box {
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 10px;
  }

  /* 听说读写子切页横滑 */
  .sub-tabs {
    gap: 6px;
    padding-bottom: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sub-tabs::-webkit-scrollbar {
    display: none;
  }
  .sub-tab-btn {
    padding: 6px 11px;
    font-size: 12px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* 四声调网格移动端保持横向 4 列一字排开，符合四声顺序 */
  .tones-grid,
  .studio-tones-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .tone-card {
    padding: 8px 4px;
    border-radius: 12px;
  }
  .tone-mark {
    font-size: 26px;
  }
  .tone-desc {
    font-size: 11px;
    font-weight: 700;
  }

  /* 读·朗读工坊移动端适配 */
  .row-tones-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px;
  }
  .syllable-tone-card {
    min-height: 48px;
    padding: 6px 2px 4px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
  }
  .card-tone-badge {
    font-size: 8.5px !important;
    padding: 1px 3px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    line-height: 1.1 !important;
    max-width: 90% !important;
  }
  .tone-card-pinyin {
    font-size: 18px !important;
    line-height: 1.1 !important;
    margin-top: 2px !important;
  }
  .tone-card-audio-icon {
    position: absolute !important;
    top: 2px !important;
    right: 3px !important;
    font-size: 8px !important;
    opacity: 0.5 !important;
  }
  .syllable-tone-empty {
    min-height: 48px;
    padding: 4px 2px;
  }
  .read-active-card {
    padding: 14px 10px;
  }
  .read-active-icon {
    font-size: 36px;
  }
  .read-active-pinyin {
    font-size: 38px;
  }
  .read-active-word {
    font-size: 16px;
  }
  .read-active-tip {
    font-size: 12px;
    margin: 6px 0 10px 0;
  }
  .workshop-read-mic-btn {
    width: 68px;
    height: 68px;
    font-size: 32px;
  }
  .read-target-chip {
    padding: 5px 9px;
    font-size: 12px;
  }

  /* 写·四线三格描红画布工具条 */
  .canvas-wrapper {
    gap: 10px;
  }
  .canvas-toolbar {
    gap: 6px;
  }
  .tool-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* 游戏一：气球大营救手机端 */
  .balloon-stage {
    height: 280px;
    padding: 8px;
  }
  .balloon-item {
    width: 64px;
    height: 80px;
    font-size: 26px;
  }

  /* 游戏二：声调过山车手机端单列 */
  .tracks-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .track-item {
    padding: 10px;
  }

  /* 游戏三：声韵碰碰车手机端 */
  .bumper-arena {
    min-height: 220px;
    height: auto;
    padding: 12px 8px;
    gap: 12px;
    overflow: visible;
  }
  .car-body {
    width: 68px;
    height: 62px;
    font-size: 34px;
    border-radius: 18px;
  }
  .car-driver {
    font-size: 11px;
    padding: 2px 8px;
  }
  .car-label {
    font-size: 11px;
    padding: 2px 6px;
    white-space: nowrap;
  }
  .crash-center {
    min-width: 80px;
  }
  .crash-ready-hint {
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
    gap: 4px;
  }
  .crash-left-anim {
    transform: translateX(40px) rotate(8deg);
  }
  .crash-right-anim {
    transform: translateX(-40px) rotate(-8deg);
  }
  .combined-card {
    padding: 8px 12px 12px 12px;
    max-width: 96%;
  }
  .result-formula {
    font-size: 18px !important;
  }
  .result-pinyin {
    font-size: 32px !important;
  }
  .tone-chip-btn {
    font-size: 15px;
    padding: 4px 10px;
  }
  .big-action-btn {
    padding: 10px 22px;
    font-size: 15px;
  }

  /* 闯关卡片手机单列 */
  .islands-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   AI 积分系统 & 家长学习成效表样式
======================================================== */
.credit-bank {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: #1E40AF;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 14px;
  border: 1.5px solid #93C5FD;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}
.credit-bank:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}
.credit-btn-badge {
  background: #2563EB;
  color: #FFF;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 2px;
}

.pill-btn-report {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  color: #065F46;
  border: 1.5px solid #6EE7B7;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
  transition: all 0.2s ease;
}
.pill-btn-report:hover {
  transform: translateY(-1px);
  background: #A7F3D0;
}

/* 充值弹窗卡片网格 */
.recharge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.recharge-card {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.recharge-card:hover, .recharge-card.active {
  border-color: #3B82F6;
  background: #EFF6FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
.recharge-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: #EF4444;
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-bottom-left-radius: 8px;
}
.recharge-price {
  font-size: 22px;
  font-weight: 900;
  color: #1E293B;
  margin: 4px 0;
}
.recharge-pts {
  font-size: 13px;
  font-weight: 800;
  color: #2563EB;
}
.recharge-times {
  font-size: 11px;
  color: #64748B;
  margin-top: 4px;
}

/* 卡密兑换区 */
.redeem-box {
  background: #F1F5F9;
  border-radius: 14px;
  padding: 12px;
  margin: 14px 0;
  display: flex;
  gap: 8px;
}
.redeem-input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  text-transform: uppercase;
}
.redeem-input:focus {
  border-color: #3B82F6;
}
.redeem-btn {
  background: #2563EB;
  color: #FFF;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.redeem-btn:hover {
  background: #1D4ED8;
}

/* 流水账本 */
.ledger-list {
  max-height: 140px;
  overflow-y: auto;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px;
  font-size: 12px;
  background: #FFF;
}
.ledger-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 6px;
  border-bottom: 1px dashed #F1F5F9;
}
.ledger-item:last-child {
  border-bottom: none;
}
.ledger-positive {
  color: #059669;
  font-weight: 800;
}
.ledger-negative {
  color: #DC2626;
  font-weight: 800;
}

/* 学情报告卡片 */
.report-modal-content {
  background: #FFF;
  border-radius: 24px;
  max-width: 680px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.report-header {
  text-align: center;
  border-bottom: 2px dashed #E2E8F0;
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.report-scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.report-score-card {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: 14px;
  padding: 10px;
  text-align: center;
}
.report-score-num {
  font-size: 20px;
  font-weight: 900;
  color: #15803D;
}
.report-score-label {
  font-size: 12px;
  color: #4B5563;
  margin-top: 2px;
}
.report-section {
  margin: 16px 0;
}
.report-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #1F2937;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.report-highlight-pill {
  background: #EFF6FF;
  border-left: 4px solid #3B82F6;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #1E3A8A;
}
.report-tip-card {
  background: #FEF3C7;
  border: 1.5px solid #FDE68A;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.report-teacher-box {
  background: linear-gradient(135deg, #FDF2F8 0%, #FFF1F2 100%);
  border: 1.5px solid #FECDD3;
  border-radius: 16px;
  padding: 14px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #9F1239;
}

/* 浮动积分微动画 */
@keyframes floatUpFade {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-24px); }
}
.point-float-toast {
  position: fixed;
  top: 60px;
  right: 28px;
  background: rgba(30, 64, 175, 0.9);
  color: #FFF;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: floatUpFade 1.6s forwards;
  pointer-events: none;
}

/* AI 诊断元信息横幅 */
.ai-meta-banner {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
  border: 1.5px solid #BFDBFE;
  border-radius: 12px;
  padding: 8px 14px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #1E40AF;
  flex-wrap: wrap;
}
.ai-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: aiPulse 2s infinite;
  display: inline-block;
}
@keyframes aiPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 小巧醒目的 AI 标志 */
.mini-ai-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}
.badge-ai-table {
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  color: #4338CA;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 拼音发音逐音分析表格 */
.report-table-scroll {
  overflow-x: auto;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  background: #FFF;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.pronounce-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}
.pronounce-detail-table thead {
  background: #F8FAFC;
  border-bottom: 2px solid #E2E8F0;
}
.pronounce-detail-table th {
  padding: 10px 12px;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
}
.pronounce-detail-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
  line-height: 1.45;
}
.pronounce-detail-table tbody tr:hover {
  background-color: #F8FAFC;
}
.pronounce-detail-table tbody tr:last-child td {
  border-bottom: none;
}
.table-sym-badge {
  font-family: var(--font-pinyin), sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #E11D48;
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s;
}
.table-sym-badge:hover {
  transform: scale(1.1);
  background: #FFE4E6;
}
.table-status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.status-pill-perfect {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}
.status-pill-good {
  background: #DBEAFE;
  color: #1D4ED8;
  border: 1px solid #93C5FD;
}
.status-pill-warn {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
}
.table-ai-diag {
  color: #1E293B;
  font-size: 12px;
}
.table-home-tip {
  color: #0369A1;
  background: #F0F9FF;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11.5px;
  display: inline-block;
}

/* 朗读评测卡片中的 AI 标志 */
.ai-eval-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  border: 1px solid #C7D2FE;
  color: #3730A3;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}
.ai-latency-tag {
  background: #4338CA;
  color: #FFF;
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 6px;
}

/* ========================================================
   🤖 AI 提示专属徽章（在所有涉及 AI 调用的地方醒目提醒）
   ======================================================== */
.ai-badge-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #FFFFFF !important;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(99, 102, 241, 0.35);
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.5);
  line-height: 1.2;
  margin-left: 4px;
}

.ai-badge-chip-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #FFF !important;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 4px;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.3);
}

.ai-badge-sm {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 6px;
  background: #6366F1;
  color: #FFF;
  font-weight: 800;
  margin-left: 3px;
  vertical-align: middle;
  display: inline-block;
}

/* ========================================================
   🌸 小公主 / 👑 小王子双色调主题系统
   ======================================================== */
body.theme-princess {
  --primary: #FF6B8B;
  --primary-hover: #E11D48;
  --secondary: #F472B6;
  --accent-yellow: #FFD93D;
  --bg-gradient: linear-gradient(135deg, #FFFDF8 0%, #FFF5F7 45%, #FDF2F8 100%);
  --shadow-md: 0 8px 24px rgba(255, 107, 139, 0.18);
  --tian-line: #FCA5A5;
}

body.theme-prince {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --secondary: #06B6D4;
  --accent-yellow: #F59E0B;
  --bg-gradient: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 45%, #EFF6FF 100%);
  --shadow-md: 0 8px 24px rgba(37, 99, 235, 0.18);
  --tian-line: #93C5FD;
}

body.theme-prince .top-nav {
  border-bottom: 2px solid #BFDBFE;
}
body.theme-prince .brand h1 {
  color: #1D4ED8;
}
body.theme-prince .brand-sub {
  background: #EFF6FF;
  color: #1D4ED8;
}
body.theme-prince .mentor-banner {
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 100%);
  border-color: #BFDBFE;
}
body.theme-prince .mentor-avatar {
  background: #DBEAFE;
}
body.theme-prince .tab-btn.active {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #FFF;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
body.theme-prince .letter-display-box {
  border-color: #93C5FD;
  color: #1D4ED8;
}
body.theme-prince .sub-tab-btn.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFF;
}
body.theme-prince .pill-btn {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* 主题切换按钮 */
.theme-toggle-btn {
  padding: 6px 14px;
  font-size: 13.5px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.theme-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
body.theme-princess .theme-toggle-btn {
  border: 1.5px solid #FDA4AF;
  color: #E11D48;
  background: #FFF1F2;
}
body.theme-prince .theme-toggle-btn {
  border: 1.5px solid #93C5FD;
  color: #1D4ED8;
  background: #EFF6FF;
}

/* ========================================================
   课本同步拼读训练堂 (Textbook Spelling Section in Content Page)
   ======================================================== */
.textbook-spelling-section {
  margin-top: 20px;
  background: #FFFFFF;
  border: 2px solid #E0E7FF;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.textbook-spelling-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.textbook-spelling-title {
  font-size: 17px;
  font-weight: 800;
  color: #312E81;
  display: flex;
  align-items: center;
  gap: 8px;
}

.textbook-spelling-badge {
  background: #EEF2FF;
  color: #4F46E5;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #C7D2FE;
}

.spelling-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.spelling-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.25s ease;
  position: relative;
}

.spelling-card:hover {
  transform: translateY(-2px);
  border-color: #818CF8;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.12);
  background: #FFFFFF;
}

.spelling-card.playing {
  border-color: #6366F1;
  background: linear-gradient(135deg, #EEF2FF, #FAF5FF);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.spelling-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spelling-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1E293B;
}

.spelling-card-dur {
  font-size: 11.5px;
  color: #64748B;
  background: #E2E8F0;
  padding: 2px 7px;
  border-radius: 8px;
}

.spelling-syl-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.spelling-syl-badge {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 14px;
  font-weight: 800;
  color: #4338CA;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.spelling-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.spelling-btn-play {
  flex: 1;
  background: linear-gradient(135deg, #4F46E5, #6366F1);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.spelling-btn-play:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.spelling-btn-read {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.spelling-btn-read:hover {
  background: #FDE68A;
}

/* ========================================================
   课本同步随身听全景播音室 (Textbook Audio Player Section)
   ======================================================== */
.textbook-player-layout {
  display: flex;
  min-height: 520px;
  background: #FFFFFF;
  border-radius: 24px;
  border: 2px solid #E2E8F0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 24px;
}

.textbook-chapters-sidebar {
  width: 290px;
  background: #F8FAFC;
  border-right: 1.5px solid #E2E8F0;
  overflow-y: auto;
  max-height: 600px;
  flex-shrink: 0;
}

.tb-chapter-item {
  padding: 13px 16px;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s;
}

.tb-chapter-item:hover {
  background: #EEF2FF;
  color: #4F46E5;
}

.tb-chapter-item.active {
  background: #EEF2FF;
  color: #4F46E5;
  border-left: 4px solid #4F46E5;
  font-weight: 800;
}

.tb-chapter-count {
  font-size: 11px;
  color: #64748B;
  background: #E2E8F0;
  padding: 2px 7px;
  border-radius: 6px;
}

.tb-chapter-item.active .tb-chapter-count {
  background: #C7D2FE;
  color: #3730A3;
}

.textbook-tracks-container {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
  max-height: 600px;
}

.tb-track-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.tb-track-card:hover {
  border-color: #818CF8;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.tb-track-card.playing {
  border-color: #4F46E5;
  background: linear-gradient(135deg, #EEF2FF, #FAF5FF);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15);
}

.tb-track-title {
  font-size: 15px;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-track-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.tb-badge-lesson {
  background: #EDE9FE;
  color: #6D28D9;
}

.tb-badge-spelling {
  background: #E0E7FF;
  color: #3730A3;
}

.textbook-player-bar {
  background: #1E1B4B;
  color: #FFFFFF;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  border-radius: 16px;
  margin-top: 14px;
}

/* ==========================================
 * 统编版语文课本官方教材匹配样式 (2024最新修订版)
 * ========================================== */
.textbook-sync-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EEF2FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.textbook-thumb-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.textbook-thumb-img {
  width: 52px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
  border: 1px solid #CBD5E1;
}
.textbook-thumb-img:hover {
  transform: scale(1.06);
}

.island-textbook-badge {
  font-size: 11px;
  color: #4338CA;
  background: #EEF2FF;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
}

.read-poem-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0;
  text-align: center;
}
.read-poem-title {
  font-size: 16px;
  font-weight: 800;
  color: #92400E;
  margin-bottom: 2px;
}
.read-poem-author {
  font-size: 12px;
  color: #B45309;
  margin-bottom: 8px;
}
.read-poem-line {
  font-size: 15px;
  color: #1F2937;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.textbook-lesson-badge {
  background: #4F46E5;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.btn-textbook-zoom {
  background: transparent;
  border: none;
  color: #4F46E5;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
}
.btn-textbook-zoom:hover {
  color: #4338CA;
}

/* ========================================================
   🎯 听说读写工坊四大维度深度升级样式
   ======================================================== */
.action-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.btn-listen-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-listen-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-listen-card.primary {
  background: linear-gradient(135deg, #4F46E5, #6366F1);
  color: #FFFFFF;
  border-color: #4F46E5;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.btn-listen-card.method {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #BFDBFE;
}
.btn-listen-card.method:hover {
  background: #DBEAFE;
}

.btn-listen-card.mnemonic {
  background: #FDF2F8;
  color: #DB2777;
  border-color: #FBCFE8;
}
.btn-listen-card.mnemonic:hover {
  background: #FCE7F3;
}

.btn-listen-card.tones-loop {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FDE68A;
}
.btn-listen-card.tones-loop:hover {
  background: #FDE68A;
}

/* 拼读规则展示区 */
.rule-cards-section {
  margin-top: 16px;
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: 16px;
  padding: 12px 16px;
}

.rule-cards-title {
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rule-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rule-chip-btn {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.rule-chip-btn:hover {
  border-color: #6366F1;
  color: #4F46E5;
  background: #EEF2FF;
  transform: translateY(-1px);
}

/* ========================================================
   📖 读工坊：声母 + 韵母 ➔ 拼音/字 ➔ 组词 四部解构卡片
   ======================================================== */
.four-part-spell-arena {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  padding: 20px 22px;
  margin: 16px 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}

/* 智能吸顶拼读解构台（向下滚动时吸顶伴随，点击任何音节实时刷新） */
.sticky-spell-dock {
  position: sticky;
  top: 76px;
  z-index: 120;
  background: #FFFFFF;
  border: 2px solid #E0E7FF;
  border-radius: 18px;
  padding: 10px 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-spell-dock .spell-breakdown-row {
  margin: 4px 0 6px 0;
  gap: 8px;
}

.sticky-spell-dock .spell-full-play-bar {
  margin-top: 6px;
}

.sticky-spell-dock.dock-pulse {
  animation: dockPulseAnim 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dockPulseAnim {
  0% { transform: scale(1); }
  50% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .sticky-spell-dock {
    top: 60px;
    padding: 8px 10px;
    border-radius: 14px;
  }
}

.spell-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px 0;
}

.spell-badge-btn {
  border: 2px solid;
  border-radius: 16px;
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.spell-badge-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.spell-badge-btn .badge-role {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.85;
}

.spell-badge-btn .badge-content {
  font-family: var(--font-pinyin);
  font-size: 20px;
  font-weight: 900;
}

/* 1. 声母部件（蓝紫调） */
.spell-badge-initial {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1D4ED8;
}
.spell-badge-initial:hover {
  background: #DBEAFE;
}

/* 介母部件（青蓝调） */
.spell-badge-medial {
  background: #ECFEFF;
  border-color: #A5F3FC;
  color: #0E7490;
}
.spell-badge-medial:hover {
  background: #CFFAFE;
}

/* 2. 韵母部件（粉红调） */
.spell-badge-final {
  background: #FDF2F8;
  border-color: #FBCFE8;
  color: #DB2777;
}
.spell-badge-final:hover {
  background: #FCE7F3;
}

/* 3. 拼音/字音部件（草绿调） */
.spell-badge-syllable {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #047857;
}
.spell-badge-syllable:hover {
  background: #D1FAE5;
}

/* 4. 拓展词语部件（金橙调） */
.spell-badge-words {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #B45309;
  min-width: 110px;
}
.spell-badge-words:hover {
  background: #FEF3C7;
}

.spell-math-symbol {
  font-size: 20px;
  font-weight: 900;
  color: #94A3B8;
  user-select: none;
}

.spell-full-play-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.btn-full-spell-demo {
  background: linear-gradient(135deg, #4F46E5, #6366F1);
  color: #FFFFFF;
  border: none;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  transition: all 0.2s;
}

.btn-full-spell-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

@media (max-width: 640px) {
  .spell-breakdown-row {
    gap: 6px;
    margin: 10px 0 12px 0;
  }
  .spell-badge-btn {
    padding: 6px 10px;
    border-radius: 12px;
  }
  .spell-badge-btn .badge-role {
    font-size: 10px;
  }
  .spell-badge-btn .badge-content {
    font-size: 16px;
  }
  .spell-math-symbol {
    font-size: 16px;
  }
  .btn-full-spell-demo {
    padding: 8px 18px;
    font-size: 13.5px;
  }
  .spelling-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)) !important;
    gap: 8px !important;
  }
}

/* 书写笔顺步骤样式 */
.stroke-steps-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.stroke-step-pill {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


/* ==========================================================================
   2024 人教版教材级两拼/三拼全景音节矩阵与四声调展列高颜值样式 (IMG_7535 标准)
   ========================================================================== */
.textbook-syllables-container {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.syllable-section-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
}

.syllable-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px dashed #EEF2FF;
}

.syllable-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 6px;
}

.syllable-section-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: #EEF2FF;
  color: #4F46E5;
}

.syllables-table-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 一体化拼读与组词展列样式 */
.syllable-rows-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.unified-syllable-row {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1.5px solid #F1F5F9;
  border-radius: 14px;
  padding: 10px 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.unified-syllable-row:hover {
  border-color: #E2E8F0;
  background: #FAFAFA;
}

.row-formula-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.formula-text {
  font-size: 13.5px;
  font-weight: 800;
  color: #1E293B;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 3px 10px;
  border-radius: 8px;
}

.row-tones-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 640px) {
  .row-tones-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
}

.syllable-tone-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.syllable-tone-card.empty {
  border: none;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.syllable-tone-card:hover {
  border-color: #3B82F6;
  background: #EFF6FF;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1);
}

.syllable-tone-card.active {
  border-color: #2563EB;
  background: #EFF6FF;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25), 0 4px 12px rgba(37, 99, 235, 0.15);
}

.card-pinyin-top {
  font-size: 19px;
  font-weight: 900;
  color: #1E293B;
  line-height: 1.1;
}

.syllable-tone-card.active .card-pinyin-top {
  color: #2563EB;
}

.card-formula-mid {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  line-height: 1.2;
}

.card-word-bottom {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 2px;
}

.card-char-badge {
  color: #DC2626;
  font-weight: 900;
}

.card-play-icon {
  font-size: 10px;
  color: #94A3B8;
  position: absolute;
  top: 5px;
  right: 6px;
}

.syllable-matrix-row {
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 12px;
  transition: all 0.2s ease;
  gap: 10px;
}

.syllable-matrix-row:hover {
  background: #F0FDF4;
  border-color: #86EFAC;
}

.syllable-formula-tag {
  min-width: 100px;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 4px 10px;
  border-radius: 8px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.syllable-formula-tag .tuomao-chip {
  font-size: 10px;
  background: #FEF3C7;
  color: #D97706;
  padding: 1px 4px;
  border-radius: 4px;
}

.syllable-tones-group {
  display: flex;
  flex: 1;
  gap: 6px;
  flex-wrap: wrap;
}

.syllable-tone-btn {
  flex: 1;
  min-width: 60px;
  max-width: 110px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  color: #1E293B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.syllable-tone-btn:hover {
  background: #FEF2F2;
  border-color: #F87171;
  color: #DC2626;
  transform: translateY(-1px);
}

.syllable-tone-btn.active {
  background: #EF4444;
  border-color: #DC2626;
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.35);
}

.syllable-tone-btn.no-audio {
  opacity: 0.45;
  cursor: default;
  background: #F1F5F9;
}

.vowel-tones-large-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 14px 0;
}

@media (max-width: 640px) {
  .vowel-tones-large-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vowel-tone-big-card {
  background: #FFFFFF;
  border: 2px solid #FEE2E2;
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.vowel-tone-big-card:hover {
  border-color: #EF4444;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.12);
}

.vowel-tone-big-card.active {
  background: #FFF1F2;
  border-color: #E11D48;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.2);
}

.vowel-tone-symbol {
  font-size: 32px;
  font-weight: 900;
  color: #E11D48;
  line-height: 1.2;
}

.vowel-tone-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  margin-top: 4px;
}

.vowel-tone-sound-btn {
  margin-top: 8px;
  background: #F1F5F9;
  border: none;
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vowel-tone-sound-btn:hover {
  background: #E2E8F0;
}

/* 韵母 4 声组字与组词实战大卡片 */
.vowel-words-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 14px 0;
}

@media (max-width: 768px) {
  .vowel-words-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vowel-word-card {
  background: #FFFFFF;
  border: 2px solid #FEE2E2;
  border-radius: 20px;
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vowel-word-card:hover {
  border-color: #EF4444;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
}

.vowel-word-card.active {
  background: #FFF1F2;
  border-color: #E11D48;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.22);
}

.vowel-word-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  background: #FEE2E2;
  color: #DC2626;
  margin-bottom: 8px;
}

.vowel-word-pinyin {
  font-family: var(--font-pinyin);
  font-size: 26px;
  font-weight: 900;
  color: #E11D48;
  line-height: 1.1;
}

.vowel-word-char {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 44px;
  font-weight: 900;
  color: #1F2937;
  line-height: 1.15;
  margin: 4px 0;
}

.vowel-word-phrase {
  font-size: 14px;
  font-weight: 800;
  color: #2563EB;
  background: #EFF6FF;
  padding: 4px 12px;
  border-radius: 10px;
  margin: 6px 0;
}

.vowel-word-tip {
  font-size: 12px;
  color: #64748B;
  margin-top: 4px;
}

.vowel-word-play-btn {
  margin-top: 8px;
  background: #F1F5F9;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.vowel-word-play-btn:hover {
  background: #EF4444;
  border-color: #DC2626;
  color: #FFFFFF;
}

/* 拼音全景宝典升级版 */
.codex-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px;
}

.codex-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.codex-filter-btn {
  padding: 8px 18px;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.2s ease;
}

.codex-filter-btn:hover {
  border-color: #EF4444;
  color: #DC2626;
}

.codex-filter-btn.active {
  background: #EF4444;
  border-color: #DC2626;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.codex-search-box {
  max-width: 480px;
  margin: 0 auto 20px auto;
  position: relative;
}

.codex-search-input {
  width: 100%;
  padding: 10px 18px 10px 42px;
  font-size: 15px;
  border: 2px solid #CBD5E1;
  border-radius: 24px;
  outline: none;
  background: #FFFFFF;
  color: #1E293B;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.codex-search-input:focus {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.codex-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #94A3B8;
}

.codex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.codex-item-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.02);
}

.codex-item-card:hover {
  border-color: #EF4444;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.codex-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.codex-card-sym {
  font-size: 34px;
  font-weight: 900;
  font-family: var(--font-pinyin);
  color: #E11D48;
  line-height: 1;
}

.codex-card-cat {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: #F1F5F9;
  color: #64748B;
}

.codex-card-mnemonic {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
  line-height: 1.4;
  min-height: 36px;
}

.codex-card-tones {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.codex-tone-chip {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #BE123C;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.codex-tone-chip:hover {
  background: #E11D48;
  color: #FFFFFF;
  border-color: #BE123C;
}

.codex-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-codex-play {
  flex: 1;
  padding: 6px 10px;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  border-radius: 10px;
  color: #1E40AF;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-codex-play:hover {
  background: #2563EB;
  border-color: #1D4ED8;
  color: #FFFFFF;
}

.btn-codex-studio {
  padding: 6px 10px;
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
  border-radius: 10px;
  color: #DC2626;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-codex-studio:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* 笔顺交互单步卡片 (HanziPi 规范) */
.clickable-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF1F2;
  border: 1.5px solid #FECDD3;
  color: #9F1239;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.08);
}

.clickable-step-pill:hover {
  background: #E11D48;
  color: #FFFFFF;
  border-color: #BE123C;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.clickable-step-pill:hover span {
  color: #FFFFFF !important;
}

.clickable-step-pill .step-num-badge {
  background: #DC2626;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clickable-step-pill:hover .step-num-badge {
  background: #FFFFFF;
  color: #DC2626;
}

.clickable-step-pill .step-play-icon {
  font-size: 10px;
  color: #E11D48;
  margin-left: 2px;
}

/* =======================================================
   统一声母两拼/三拼音节拼读与组词展列体系 (人教版精美排版)
   ======================================================= */
.syllables-unified-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.syllable-section-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  padding: 20px;
  margin-bottom: 16px;
}

.syllable-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F1F5F9;
}

.syllable-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #1E293B;
}

.syllable-section-badge {
  background: #EEF2FF;
  color: #4F46E5;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
}

.syllable-rows-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.unified-syllable-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 10px 14px;
  gap: 14px;
  transition: all 0.2s ease;
}

.unified-syllable-row:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.row-formula-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  border-radius: 12px;
  padding: 8px 10px;
  text-align: center;
}

.row-formula-text {
  font-family: var(--font-pinyin);
  font-size: 18px;
  font-weight: 800;
  color: #1D4ED8;
  line-height: 1.2;
}

.row-formula-tag {
  font-size: 11px;
  font-weight: 700;
  color: #3B82F6;
  margin-top: 2px;
}

.row-tones-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* ========================================================
   🧒 幼儿大班与小学一年级专属 · 4声调拼读卡片高颜值马卡龙配色
======================================================== */
.syllable-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.syllable-filter-chip {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.syllable-filter-chip:hover {
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: #4F46E5;
}

.syllable-filter-chip.active {
  background: linear-gradient(135deg, #4F46E5, #3730A3);
  border-color: #4338CA;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.syllable-matrix-row-block {
  background: #FFFFFF;
  border: 1.5px solid #F1F5F9;
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.syllable-matrix-row-block:hover {
  border-color: #E2E8F0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.row-tones-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.syllable-tone-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 8px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  min-height: 66px;
}

/* 4声调儿童专属马卡龙边框与高光 */
.syllable-tone-card.tone-card-1 {
  border-color: #BAE6FD;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%);
}
.syllable-tone-card.tone-card-2 {
  border-color: #FED7AA;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF7ED 100%);
}
.syllable-tone-card.tone-card-3 {
  border-color: #BBF7D0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 100%);
}
.syllable-tone-card.tone-card-4 {
  border-color: #FBCFE8;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF2F8 100%);
}

.syllable-tone-card:hover {
  transform: translateY(-2.5px) scale(1.02);
}

.syllable-tone-card.tone-card-1:hover,
.syllable-tone-card.tone-card-1.active {
  border-color: #0284C7;
  box-shadow: 0 0 0 2.5px rgba(2, 132, 199, 0.3), 0 8px 18px rgba(2, 132, 199, 0.2);
  transform: translateY(-2px) scale(1.03);
}

.syllable-tone-card.tone-card-2:hover,
.syllable-tone-card.tone-card-2.active {
  border-color: #EA580C;
  box-shadow: 0 0 0 2.5px rgba(234, 88, 12, 0.3), 0 8px 18px rgba(234, 88, 12, 0.2);
  transform: translateY(-2px) scale(1.03);
}

.syllable-tone-card.tone-card-3:hover,
.syllable-tone-card.tone-card-3.active {
  border-color: #16A34A;
  box-shadow: 0 0 0 2.5px rgba(22, 163, 74, 0.3), 0 8px 18px rgba(22, 163, 74, 0.2);
  transform: translateY(-2px) scale(1.03);
}

.syllable-tone-card.tone-card-4:hover,
.syllable-tone-card.tone-card-4.active {
  border-color: #DB2777;
  box-shadow: 0 0 0 2.5px rgba(219, 39, 119, 0.3), 0 8px 18px rgba(219, 39, 119, 0.2);
  transform: translateY(-2px) scale(1.03);
}

/* 声调药丸徽标 */
.card-tone-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  line-height: 1.2;
}

.tone-badge-1 { background: #E0F2FE; color: #0284C7; }
.tone-badge-2 { background: #FEF3C7; color: #D97706; }
.tone-badge-3 { background: #DCFCE7; color: #16A34A; }
.tone-badge-4 { background: #FCE7F3; color: #DB2777; }

/* 拼音大字 */
.tone-card-pinyin {
  font-family: var(--font-pinyin) !important;
  font-size: 26px;
  font-weight: 900;
  color: #1E293B;
  line-height: 1.15;
  margin-top: 3px;
}

.tone-card-audio-icon {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.syllable-tone-card:hover .tone-card-audio-icon,
.syllable-tone-card.active .tone-card-audio-icon {
  opacity: 1;
}

/* 留空槽位：干净柔和，无杂乱负面提示 */
.syllable-tone-empty {
  background: #F8FAFC;
  border: 1.5px dashed #E2E8F0;
  border-radius: 16px;
  padding: 8px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  opacity: 0.65;
  user-select: none;
}

.empty-tone-badge {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  background: #F1F5F9;
  padding: 1px 6px;
  border-radius: 4px;
}

.empty-dash {
  font-family: var(--font-pinyin);
  font-size: 22px;
  font-weight: 700;
  color: #CBD5E1;
  line-height: 1;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .row-tones-cards {
    gap: 6px;
  }
  .tone-card-pinyin {
    font-size: 20px;
  }
  .card-tone-badge {
    font-size: 9.5px;
    padding: 1px 5px;
  }
  .syllable-tone-card,
  .syllable-tone-empty {
    min-height: 54px;
    padding: 6px 4px;
    border-radius: 12px;
  }
}

/* ========================================================
   🏆 拼音成长成就馆 & 妹妹专属荣誉奖状
   ======================================================== */
.achievement-hall {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.achievement-hero-card {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 50%, #FDE68A 100%);
  border: 2px solid #F59E0B;
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.achievement-hero-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.achievement-hero-avatar {
  font-size: 52px;
  background: #FFF;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
  border: 3px solid #FBBF24;
}

.achievement-hero-title {
  font-size: 22px;
  font-weight: 900;
  color: #78350F;
  margin: 0 0 4px 0;
}

.achievement-hero-subtitle {
  font-size: 13.5px;
  color: #92400E;
  margin: 0;
}

.achievement-progress-bar-wrap {
  margin-top: 8px;
  width: 240px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #FCD34D;
}

.achievement-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #EF4444);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.btn-open-certificate {
  background: linear-gradient(135deg, #D97706, #B45309);
  color: #FFF;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 20px;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(180, 83, 9, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-open-certificate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.45);
}

.achievement-section {
  background: #FFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.achievement-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.achievement-section-title {
  font-size: 16px;
  font-weight: 900;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 8px;
}

.achievement-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.achievement-badge-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.achievement-badge-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  border-color: #CBD5E1;
}

.achievement-badge-card.unlocked {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF5 100%);
  border-color: #FCD34D;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.badge-card-icon {
  font-size: 40px;
  margin-bottom: 8px;
  display: inline-block;
  transition: transform 0.2s;
}

.achievement-badge-card.unlocked .badge-card-icon {
  filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.3));
}

.badge-card-name {
  font-size: 15px;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 4px;
}

.achievement-badge-card.unlocked .badge-card-name {
  color: #B45309;
}

.badge-card-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
}

.badge-card-status {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
}

.badge-status-done {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

/* 妹妹专属荣誉奖状模态框 */
.certificate-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.25s ease;
}

.certificate-modal-card {
  background: #FFF;
  max-width: 680px;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  max-height: 92vh;
  overflow-y: auto;
}

.certificate-paper {
  background: linear-gradient(135deg, #FFFDF7 0%, #FFFBEB 100%);
  border: 8px double #D97706;
  margin: 16px;
  border-radius: 16px;
  padding: 32px 28px 24px 28px;
  text-align: center;
  position: relative;
  box-shadow: inset 0 0 20px rgba(217, 119, 6, 0.1);
}

.certificate-paper::before {
  content: '★';
  position: absolute;
  top: 8px;
  left: 8px;
  color: #D97706;
  font-size: 20px;
}
.certificate-paper::after {
  content: '★';
  position: absolute;
  top: 8px;
  right: 8px;
  color: #D97706;
  font-size: 20px;
}

.cert-crown {
  font-size: 48px;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 8px rgba(217, 119, 6, 0.3));
}

.cert-main-title {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #92400E;
  letter-spacing: 4px;
  margin: 0 0 16px 0;
  text-shadow: 0 2px 4px rgba(217, 119, 6, 0.15);
}

.cert-recipient {
  font-size: 20px;
  font-weight: 800;
  color: #1E293B;
  text-align: left;
  margin: 0 0 14px 10px;
  border-bottom: 2px solid #FCD34D;
  display: inline-block;
  padding-bottom: 4px;
}

.cert-body-text {
  font-size: 15px;
  color: #451A03;
  line-height: 1.8;
  text-align: justify;
  text-indent: 2em;
  margin-bottom: 20px;
  padding: 0 10px;
}

.cert-honors-row {
  display: flex;
  justify-content: space-around;
  background: rgba(254, 243, 199, 0.6);
  border: 1.5px solid #FDE68A;
  border-radius: 14px;
  padding: 10px 14px;
  margin: 0 10px 24px 10px;
}

.cert-honor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-honor-num {
  font-size: 18px;
  font-weight: 900;
  color: #D97706;
}

.cert-honor-label {
  font-size: 11px;
  color: #78350F;
  font-weight: 700;
}

.cert-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 10px;
  padding: 0 16px;
}

.cert-seal-box {
  position: relative;
}

.cert-red-seal {
  width: 90px;
  height: 90px;
  border: 3px solid #DC2626;
  border-radius: 50%;
  color: #DC2626;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  transform: rotate(-12deg);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
  background: rgba(254, 226, 226, 0.4);
}

.cert-signature-box {
  text-align: right;
  font-size: 13px;
  color: #78350F;
  font-weight: 700;
  line-height: 1.6;
}

.cert-actions-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 14px 20px 20px 20px;
  background: #FFF;
}



