/**
 * English Word Chain Game - Responsive CSS
 *
 * 响应式断点：
 * - Mobile (iPhone): < 768px
 * - Tablet (iPad): 769px - 1440px
 * - Laptop (MacBook Pro): 1441px - 2560px
 * - Desktop (iMac 4K): > 2561px
 */

/* ==================== CSS Variables ==================== */
:root {
  /* iMac 4K (默认) */
  --game-max-width: 1200px;
  --current-word-size: 64px;
  --input-font-size: 32px;
  --timer-size: 48px;
  --stat-font-size: 24px;
  --button-height: 60px;
  --spacing: 32px;
  --card-padding: 24px;
}

/* MacBook Pro (1441px - 2560px) */
@media (min-width: 1441px) and (max-width: 2560px) {
  :root {
    --game-max-width: 1000px;
    --current-word-size: 56px;
    --input-font-size: 28px;
    --timer-size: 42px;
    --stat-font-size: 20px;
    --button-height: 52px;
    --spacing: 28px;
    --card-padding: 20px;
  }
}

/* iPad (769px - 1440px) */
@media (min-width: 769px) and (max-width: 1440px) {
  :root {
    --game-max-width: 800px;
    --current-word-size: 48px;
    --input-font-size: 24px;
    --timer-size: 36px;
    --stat-font-size: 18px;
    --button-height: 48px;
    --spacing: 24px;
    --card-padding: 18px;
  }
}

/* iPhone (< 768px) */
@media (max-width: 768px) {
  :root {
    --game-max-width: 100%;
    --current-word-size: 36px;
    --input-font-size: 20px;
    --timer-size: 28px;
    --stat-font-size: 16px;
    --button-height: 44px;
    --spacing: 16px;
    --card-padding: 14px;
  }
}

/* ==================== Layout ==================== */
.game-container {
  max-width: var(--game-max-width);
  margin: 0 auto;
  padding: var(--spacing);
}

/* ==================== Game Header ==================== */
.game-header {
  text-align: center;
  margin-bottom: var(--spacing);
}

.game-title {
  font-size: var(--timer-size);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* ==================== Difficulty Selection ==================== */
.difficulty-selection {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: var(--spacing);
  flex-wrap: wrap;
}

.difficulty-button {
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.difficulty-button:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.difficulty-button.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ==================== Game Stats Bar ==================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: var(--spacing);
}

.stat-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: var(--card-padding);
  text-align: center;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.stat-value {
  font-size: var(--stat-font-size);
  font-weight: bold;
  color: var(--accent);
}

/* ==================== Current Word Display ==================== */
.current-word-section {
  text-align: center;
  margin-bottom: var(--spacing);
  background: var(--bg-secondary);
  border: 3px solid var(--accent);
  border-radius: 16px;
  padding: calc(var(--spacing) * 1.5);
}

.current-word-label {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.current-word {
  font-size: var(--current-word-size);
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.next-letter-hint {
  font-size: var(--stat-font-size);
  color: var(--text-primary);
}

.next-letter {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  margin: 0 4px;
}

/* ==================== Timer Section ==================== */
.timer-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: var(--spacing);
}

.timer-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: var(--card-padding);
  text-align: center;
}

.timer-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.timer-value {
  font-size: var(--timer-size);
  font-weight: bold;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
}

.timer-progress {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
}

.timer-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 1s linear, background 0.3s;
}

.timer-progress-bar.warning {
  background: #f59e0b;
}

.timer-progress-bar.danger {
  background: #ef4444;
}

/* ==================== Input Section ==================== */
.input-section {
  margin-bottom: var(--spacing);
}

.word-input-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.word-input {
  flex: 1;
  height: var(--button-height);
  padding: 0 20px;
  border: 3px solid var(--border);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: var(--input-font-size);
  font-weight: 600;
  text-transform: lowercase;
  transition: all 0.2s;
}

.word-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.word-input.error {
  border-color: #ef4444;
  animation: shake 0.5s;
}

.word-input.success {
  border-color: #10b981;
  animation: pulse 0.3s;
}

.submit-button {
  height: var(--button-height);
  padding: 0 32px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.submit-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  background: var(--border);
  cursor: not-allowed;
  transform: none;
}

/* ==================== Action Buttons ==================== */
.action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hint-button,
.give-up-button {
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.hint-button:hover {
  border-color: #10b981;
  background: #10b981;
  color: white;
}

.hint-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.give-up-button:hover {
  border-color: #ef4444;
  background: #ef4444;
  color: white;
}

/* ==================== Feedback Message ==================== */
.feedback-message {
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}

.feedback-message.show {
  opacity: 1;
}

.feedback-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 2px solid #ef4444;
}

.feedback-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 2px solid #10b981;
}

/* ==================== Hints Display ==================== */
.hints-display {
  background: var(--bg-secondary);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  display: none;
}

.hints-display.show {
  display: block;
  animation: slideDown 0.3s;
}

.hints-title {
  font-size: 18px;
  font-weight: bold;
  color: #10b981;
  margin-bottom: 12px;
}

.hints-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hint-word {
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
}

.hint-word:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.05);
}

/* ==================== Used Words Display ==================== */
.used-words-section {
  margin-top: var(--spacing);
}

.used-words-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-align: center;
}

.used-words-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-height: 200px;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.used-word {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==================== Result Modal ==================== */
.result-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.result-content {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.result-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.result-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.result-stat {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
}

.result-stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.result-stat-value {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent);
}

.result-achievements {
  margin-bottom: 32px;
}

.achievements-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.achievement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.achievement-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

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

.result-button {
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.result-button-primary {
  background: var(--accent);
  color: white;
}

.result-button-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.result-button-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.result-button-secondary:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ==================== Animations ==================== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== Hidden State ==================== */
.hidden {
  display: none !important;
}

/* ==================== Loading State ==================== */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid var(--bg-secondary);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== Mobile Optimizations ==================== */
@media (max-width: 768px) {
  .game-header {
    margin-bottom: 20px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .timer-section {
    grid-template-columns: 1fr;
  }

  .word-input-wrapper {
    flex-direction: column;
  }

  .action-buttons {
    flex-direction: column;
  }

  .hint-button,
  .give-up-button {
    width: 100%;
  }

  .result-content {
    padding: 24px;
  }

  .result-stats {
    grid-template-columns: 1fr;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-button {
    width: 100%;
  }
}

/* ==================== Vocabulary Book Button ==================== */
.vocab-stat-card {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vocab-book-button-chain {
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vocab-book-button-chain:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==================== Current Word Enhancements ==================== */
.current-word-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.current-word-phonetic {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: normal;
  margin-bottom: 12px;
  min-height: 24px;
}

.word-speak-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.word-speak-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

/* ==================== Vocabulary Book Modal (Imported from Word Match) ==================== */
.vocab-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.vocab-modal-content {
  background: var(--bg-primary);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.vocab-modal-header {
  padding: 24px;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vocab-modal-header h2 {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-primary);
  margin: 0;
}

.vocab-modal-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vocab-modal-close:hover {
  background: var(--accent);
  color: white;
  transform: rotate(90deg);
}

.vocab-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.vocab-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 16px;
}

.vocab-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vocab-item {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s;
}

.vocab-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.vocab-item-word {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-primary);
}

.vocab-item-phonetic {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: normal;
  margin-left: 8px;
}

.vocab-item-speak {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.vocab-item-speak:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

.vocab-item-meaning {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.vocab-item-example {
  background: rgba(52, 152, 219, 0.1);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.vocab-item-example-en {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-style: italic;
}

.vocab-item-example-cn {
  font-size: 14px;
  color: var(--text-secondary);
}

.vocab-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.vocab-item-count {
  color: var(--accent);
  font-weight: 600;
}

.vocab-item-remove {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.vocab-item-remove:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.vocab-modal-footer {
  padding: 24px;
  border-top: 2px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.vocab-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.vocab-button-primary {
  background: var(--accent);
  color: white;
}

.vocab-button-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.vocab-button-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.vocab-button-secondary:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ==================== Example Modal ==================== */
.example-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 20px;
}

.example-modal-content {
  background: var(--bg-primary);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.example-modal-header {
  position: absolute;
  top: 16px;
  right: 16px;
}

.example-modal-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.example-modal-close:hover {
  background: var(--accent);
  color: white;
  transform: rotate(90deg);
}

.example-modal-body {
  padding-top: 20px;
}

.example-word {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.example-word-text {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-primary);
}

.example-phonetic {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.example-meaning {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.example-sentence-section {
  background: rgba(52, 152, 219, 0.1);
  padding: 20px;
  border-radius: 12px;
}

.example-sentence-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.example-sentence {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 12px;
}

.example-sentence-cn {
  font-size: 16px;
  color: var(--text-secondary);
}

.example-speak-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.example-speak-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

/* ==================== Mobile Adjustments for New Components ==================== */
@media (max-width: 768px) {
  .vocab-stat-card {
    grid-column: span 1;
  }

  .vocab-book-button-chain {
    padding: 8px 16px;
    font-size: 14px;
  }

  .current-word-display {
    flex-direction: column;
    gap: 8px;
  }

  .current-word-phonetic {
    font-size: 16px;
  }

  .word-speak-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .vocab-modal-content {
    max-height: 90vh;
  }

  .vocab-modal-header,
  .vocab-modal-body,
  .vocab-modal-footer {
    padding: 16px;
  }

  .vocab-modal-header h2 {
    font-size: 20px;
  }

  .vocab-item {
    padding: 12px;
  }

  .vocab-item-word {
    font-size: 18px;
  }

  .vocab-item-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .example-modal-content {
    padding: 24px;
  }

  .example-word-text {
    font-size: 28px;
  }

  .example-phonetic {
    font-size: 16px;
  }

  .example-meaning {
    font-size: 16px;
  }

  .example-sentence {
    font-size: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .example-sentence-cn {
    font-size: 14px;
  }
}

/* ==================== Example Sentences Section ==================== */
.example-sentences-section {
  margin-top: var(--spacing);
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: var(--card-padding);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.example-sentences-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.example-sentences-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.no-examples {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  padding: 32px;
}

.example-item {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.example-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.example-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.example-item-number {
  color: var(--accent);
  font-weight: 600;
  font-size: 18px;
  min-width: 32px;
}

.example-item-word {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.example-speak-btn-inline {
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 18px;
  transition: all 0.2s ease;
  margin-left: auto;
}

.example-speak-btn-inline:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.example-speak-btn-inline:active {
  transform: scale(0.95);
}

.example-item-sentence {
  padding-left: 40px;
}

.example-item-en {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.example-item-cn {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .example-sentences-section {
    margin-top: 20px;
    padding: 16px;
  }

  .example-sentences-title {
    font-size: 18px;
  }

  .example-sentences-list {
    max-height: 300px;
    gap: 12px;
  }

  .example-item {
    padding: 12px;
  }

  .example-item-word {
    font-size: 20px;
  }

  .example-item-en {
    font-size: 16px;
  }

  .example-item-cn {
    font-size: 14px;
  }

  .example-speak-btn-inline {
    padding: 4px 8px;
    font-size: 16px;
  }

  .example-item-sentence {
    padding-left: 24px;
  }
}

/* Scrollbar Styling */
.example-sentences-list::-webkit-scrollbar {
  width: 8px;
}

.example-sentences-list::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.example-sentences-list::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 4px;
}

.example-sentences-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}
