/* 英语阅读页 · 在 reading/style.css 之上补的部分 */

.content-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 18px;
}
.content-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.content-card__title { font-size: 17px; font-weight: 800; color: #1f2937; }
.content-card__reshuffle {
  flex: none;
  border: 1px solid #cbd5e1; background: #f8fafc; color: #334155;
  font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 10px; cursor: pointer;
}
.content-card__reshuffle:hover { background: #eef2f7; }
.content-card__sub { font-size: 12.5px; color: #94a3b8; margin-top: 6px; }

.en-sec-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 800; color: #2563eb;
  margin: 18px 0 10px;
}
.en-speak {
  border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8;
  font-size: 12.5px; font-weight: 700;
  padding: 5px 11px; border-radius: 9px; cursor: pointer;
}
.en-speak:hover { background: #dbeafe; }
.en-speak--sm { padding: 2px 7px; font-size: 12px; border-radius: 7px; }
.en-speak--all { margin-left: auto; }

/* ---- 课文 ---- */
.en-text {
  border: 1px solid #e2e8f0; border-radius: 13px;
  padding: 13px 15px; margin-bottom: 12px; background: #fcfdff;
}
.en-text__head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  cursor: pointer; padding-bottom: 8px; border-bottom: 1px dashed #e2e8f0;
}
.en-text__tag {
  flex: none; font-size: 11px; font-weight: 800; color: #fff;
  background: #2563eb; border-radius: 6px; padding: 2px 7px;
}
.en-text__title { font-size: 15.5px; font-weight: 800; color: #1e293b; }
.en-text__unit { font-size: 12px; color: #94a3b8; margin-left: auto; }
.en-text__body { padding: 10px 0 4px; }
.en-line {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 3px 0; line-height: 1.65;
}
.en-line__spk {
  flex: none; min-width: 62px; font-size: 12.5px; font-weight: 800; color: #7c3aed;
}
.en-line__txt { flex: 1; font-size: 15px; color: #1f2937; }
.en-para {
  font-size: 15px; line-height: 1.8; color: #1f2937;
  margin: 0 0 8px;
}
.en-text__foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px dashed #e2e8f0;
}
.en-mark {
  border: 1px solid #bbf7d0; background: #f0fdf4; color: #15803d;
  font-size: 12.5px; font-weight: 700;
  padding: 5px 11px; border-radius: 9px; cursor: pointer;
}
.en-mark.is-marked { background: #dcfce7; border-color: #86efac; }

/* ---- 单词 ---- */
.en-words {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px;
}
.en-word {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border: 1px solid #e2e8f0; border-radius: 11px; background: #fff;
  padding: 9px 11px; cursor: pointer; text-align: left;
  font-family: inherit;
}
.en-word:hover { border-color: #93c5fd; background: #f8fbff; }
.en-word__en { font-size: 15px; font-weight: 800; color: #1d4ed8; }
.en-word__zh { font-size: 12.5px; color: #64748b; }
.en-word__unit { font-size: 11px; color: #cbd5e1; }

/* ---- 模式选择 ---- */
.en-mode {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 14px 0 2px;
}
.en-mode__label { font-size: 12.5px; font-weight: 800; color: #64748b; }
.en-mode__btn {
  border: 1px solid #cbd5e1; background: #f8fafc; color: #334155;
  font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 10px; cursor: pointer;
}
.en-mode__btn:hover { background: #eef2f7; }
.en-mode__btn.is-on { background: #2563eb; border-color: #2563eb; color: #fff; }
.en-mode__pause {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: #64748b;
  margin-left: auto;
}
.en-mode__pbtn {
  border: 1px solid #cbd5e1; background: #fff; color: #475569;
  font-size: 12px; font-weight: 700;
  padding: 4px 9px; border-radius: 8px; cursor: pointer;
}
.en-mode__pbtn.is-on { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }

/* ---- 跟读控制条 ---- */
.en-followbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #eef6ff; border: 1px solid #bfdbfe; border-radius: 11px;
  padding: 8px 12px; margin-top: 10px;
}
.en-followbar__icon { font-size: 15px; }
.en-followbar__text {
  flex: 1; min-width: 140px;
  font-size: 13px; font-weight: 700; color: #1d4ed8;
}
.en-followbar__btn {
  border: 1px solid #93c5fd; background: #fff; color: #1d4ed8;
  font-size: 12.5px; font-weight: 700;
  padding: 5px 11px; border-radius: 9px; cursor: pointer;
}
.en-followbar__btn:hover { background: #dbeafe; }

.en-follow {
  border: 1px solid #ddd6fe; background: #f5f3ff; color: #6d28d9;
  font-size: 12.5px; font-weight: 700;
  padding: 5px 11px; border-radius: 9px; cursor: pointer;
}
.en-follow:hover { background: #ede9fe; }

/* ---- 短语 ---- */
.en-phrases { display: flex; flex-direction: column; gap: 6px; }
.en-phrase {
  display: flex; align-items: baseline; gap: 10px;
  border: 1px solid #e2e8f0; border-radius: 10px; background: #fff;
  padding: 8px 12px; cursor: pointer;
}
.en-phrase:hover { border-color: #93c5fd; background: #f8fbff; }
.en-phrase__txt { flex: 1; font-size: 14.5px; line-height: 1.5; color: #1f2937; }
.en-phrase__unit { flex: none; font-size: 11px; color: #cbd5e1; }

/* ---- 跟读高亮 ---- */
.en-line.is-playing,
.en-phrase.is-playing,
.en-word.is-playing {
  background: #fef3c7;
  border-color: #f59e0b;
  border-radius: 8px;
}

@media (max-width: 500px) {
  .content-card { padding: 14px 13px; }
  .en-line__txt, .en-para { font-size: 14.5px; }
  .en-line__spk { min-width: 50px; font-size: 12px; }
  .en-words { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
  .en-word__en { font-size: 14px; }
  .en-text__unit { display: none; }
  .en-phrase__unit { display: none; }
  .en-mode__pause { margin-left: 0; }
  .en-phrase__txt { font-size: 14px; }
}
