/* ==================== 页脚 / ICP 备案 ==================== */
.site-footer {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.25);
  text-align: center;
  color: #fff;
  font-size: 12px;
  line-height: 1.8;
}
.site-footer .beian-links a,
.site-footer .beian-links span {
  color: #fff;
  text-decoration: none;
  opacity: .9;
}
.site-footer .beian-links a:hover { text-decoration: underline; }
.site-footer .copyright { opacity: .7; margin-top: 2px; }

/* ==================== 全局基础 ==================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #2c3e50;
  padding: 20px;
}

.local-banner {
  background: #fef5e7;
  color: #e67e22;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
  margin-bottom: 8px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.app {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 20px 30px;
  text-align: center;
}
header h1 { font-size: 24px; margin-bottom: 4px; }
header .subtitle { font-size: 13px; opacity: .85; }

.view { display: none; padding: 24px 30px; flex: 1; overflow-y: auto; }
.view.active { display: block; }

/* 导航栏 */
.nav-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: #f8f9fc;
  border-bottom: 1px solid #e0e3eb;
  font-size: 13px;
  color: #555;
}
.nav-bar .nav-back {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
}
.nav-bar .nav-back:hover { background: #eef0f8; }
.nav-bar .nav-title { flex: 1; font-weight: 600; }
.nav-bar .nav-user { color: #888; }

/* ==================== 仪表盘 ==================== */
.dashboard { padding: 20px 0; }
.dashboard .welcome { margin-bottom: 24px; }
.dashboard .welcome h2 { font-size: 20px; color: #2c3e50; }
.dashboard .welcome p { color: #888; font-size: 13px; margin-top: 4px; }

.dash-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.dash-cat-card {
  background: #fff;
  border: 2px solid #e0e3eb;
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.dash-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102,126,234,.2);
  border-color: #667eea;
}
.dash-cat-card .cat-icon { font-size: 40px; margin-bottom: 10px; }
.dash-cat-card .cat-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.dash-cat-card .cat-desc { font-size: 12px; color: #888; }
.dash-cat-card .cat-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  background: #f0f3fa;
  color: #667eea;
}
/* 合并后的「学习模块」卡片：进度环 + 模块信息 横向布局 */
.dash-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.dash-mod-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 16px;
}
.dash-mod-card .dm-ring { flex: 0 0 auto; line-height: 0; }
.dash-mod-card .dm-info { flex: 1 1 auto; min-width: 0; }
.dash-mod-card .dm-name { font-size: 15px; font-weight: 600; color: #333; }
.dash-mod-card .dm-score { font-size: 11px; color: #888; margin-top: 2px; }
.dash-mod-card .cat-badge { margin-top: 0; }
.dash-cat-card .cat-badge.ready { background: #e8f5e9; color: #27ae60; }
.dash-cat-card .cat-badge.soon { background: #f0f3fa; color: #667eea; }

.dash-section-title {
  font-size: 15px;
  color: #667eea;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e0e3eb;
}
.dash-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== 进度可视化 ===== */
/* 总览卡片 */
.overview-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.overview-card {
  background: linear-gradient(135deg, #f5f7ff, #faf5ff);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid #e8ecf4;
  transition: transform .2s;
}
.overview-card:hover { transform: translateY(-2px); }
.overview-card .ov-icon { font-size: 24px; margin-bottom: 6px; }
.overview-card .ov-num { font-size: 28px; font-weight: 700; color: #667eea; }
.overview-card .ov-label { font-size: 12px; color: #555; margin-top: 2px; }
.overview-card .ov-sub { font-size: 11px; color: #aaa; margin-top: 2px; }

/* 进度环图 */
.progress-rings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.prog-ring-card {
  text-align: center;
  padding: 12px 6px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf4;
  transition: transform .2s;
}
.prog-ring-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102,126,234,.1); }
.prog-ring-name { font-size: 12px; font-weight: 600; color: #333; margin-top: 4px; }
.prog-ring-score { font-size: 11px; margin-top: 2px; }

/* 雷达图区域 */
.radar-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}
.radar-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}
.radar-chart-container svg {
  max-width: 100%;
  height: auto;
}

/* 薄弱点 */
.weak-points {
  background: #fef5e7;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #fdebd0;
}
.wp-title { font-size: 14px; font-weight: 600; color: #e67e22; margin-bottom: 10px; }
.wp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.wp-item .wp-icon { font-size: 18px; }
.wp-item .wp-name { font-weight: 600; color: #333; flex: 1; }
.wp-item .wp-score { font-weight: 700; font-size: 14px; }
.wp-item .wp-link {
  color: #667eea;
  text-decoration: none;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f0f3fa;
  transition: background .2s;
}
.wp-item .wp-link:hover { background: #667eea; color: #fff; }
.wp-none { text-align: center; color: #888; font-size: 13px; padding: 20px 0; }

/* ==================== 登录界面 ==================== */
.login-view { text-align: center; padding: 50px 30px; }
.login-view .emoji { font-size: 56px; margin-bottom: 12px; }
.login-view h2 { color: #2c3e50; margin-bottom: 8px; }
.login-form { max-width: 320px; margin: 24px auto; display: flex; flex-direction: column; gap: 12px; }
.phone-row { display: flex; }
.phone-row .cc { display: flex; align-items: center; padding: 0 12px; background: #f0f3fa; border: 2px solid #e0e3eb; border-right: none; border-radius: 8px 0 0 8px; font-size: 14px; }
.phone-row input { flex: 1; border-radius: 0 8px 8px 0; }
.login-form input { padding: 12px; border: 2px solid #e0e3eb; border-radius: 8px; font-size: 15px; text-align: center; }
.login-form input:focus { outline: none; border-color: #667eea; }
.login-hint { font-size: 12px; color: #aaa; margin-top: 16px; line-height: 1.6; }
.login-err { color: #e74c3c; font-size: 13px; min-height: 18px; }

.session-bar { display: flex; justify-content: space-between; align-items: center; background: #f8f9fc; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 13px; color: #555; }
.session-bar button { margin: 0; padding: 6px 14px; font-size: 12px; }

/* ==================== 设置区 ==================== */
.setup-section {
  background: #f8f9fc;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.setup-section h3 {
  font-size: 14px;
  color: #667eea;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row + .row { margin-top: 10px; }
label { font-size: 13px; color: #555; display: inline-flex; align-items: center; gap: 6px; }
select, input[type=number] {
  padding: 8px 12px;
  border: 2px solid #e0e3eb;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #2c3e50;
  min-width: 120px;
  transition: border-color .2s;
}
select:focus, input:focus { outline: none; border-color: #667eea; }

.speed-buttons { display: flex; gap: 6px; }
.speed-btn {
  padding: 6px 14px;
  border: 2px solid #e0e3eb;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
}
.speed-btn.active {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
}

.check-row { display: flex; gap: 14px; flex-wrap: wrap; }
.check-row label { cursor: pointer; padding: 4px 0; }

/* ==================== 按钮 ==================== */
.btn {
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  margin-top: 8px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102,126,234,.4); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-secondary { background: #fff; color: #667eea; border: 2px solid #667eea; }
.btn-danger { background: #e74c3c; }
.btn-success { background: #27ae60; }
.btn-warn { background: #f39c12; }

/* ==================== 学习界面 ==================== */
.player { display: flex; flex-direction: column; height: 100%; min-height: 500px; }
.progress-bar {
  height: 8px;
  background: #e0e3eb;
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  width: 0%;
  transition: width .3s;
}
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}
.progress-info .round-label { color: #f39c12; font-weight: 600; }

.card-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 280px;
}
.flashcard {
  width: 100%;
  max-width: 600px;
  background: linear-gradient(135deg, #fff 0%, #f8f9fc 100%);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,.1);
  border: 2px solid #e0e3eb;
  text-align: center;
  transition: transform .3s;
}
.flashcard:hover { transform: scale(1.01); }
.card-side {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.card-front {
  font-size: 48px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.2;
  margin: 16px 0;
  word-wrap: break-word;
}
.card-back {
  font-size: 28px;
  color: #555;
  line-height: 1.4;
  margin: 16px 0;
  word-wrap: break-word;
}
.card-sentence {
  margin-top: 18px;
  padding: 14px;
  background: #f0f3fa;
  border-radius: 10px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  text-align: left;
  font-style: italic;
}
.card-cat {
  margin-top: 12px;
  font-size: 12px;
  color: #888;
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.controls .ctrl-btn {
  padding: 14px 8px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  transition: transform .15s, opacity .15s;
}
.controls .ctrl-btn:hover { transform: translateY(-2px); }
.controls .ctrl-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ctrl-known { background: #27ae60; }
.ctrl-unsure { background: #f39c12; }
.ctrl-unknown { background: #e74c3c; }
.ctrl-pause { background: #3498db; }
.ctrl-knowquick { background: #9b59b6; }

.keyboard-hint {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 12px;
  padding: 10px;
  background: #f8f9fc;
  border-radius: 8px;
}
.keyboard-hint kbd {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 6px;
  margin: 0 2px;
  font-family: monospace;
  font-size: 11px;
}

/* ==================== 完成界面 ==================== */
.result-view {
  text-align: center;
  padding: 60px 30px;
}
.result-view h2 { color: #27ae60; margin-bottom: 16px; font-size: 28px; }
.result-view .emoji { font-size: 64px; margin-bottom: 16px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0;
}
.stat-card {
  padding: 18px;
  border-radius: 12px;
  background: #f8f9fc;
}
.stat-num { font-size: 32px; font-weight: 700; }
.stat-label { font-size: 13px; color: #888; margin-top: 4px; }
.stat-known .stat-num { color: #27ae60; }
.stat-unsure .stat-num { color: #f39c12; }
.stat-unknown .stat-num { color: #e74c3c; }

.result-list-section { margin-top: 24px; text-align: left; }
.result-list-section h3 { font-size: 15px; margin-bottom: 10px; }
.result-card-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.result-card-item { display: grid; grid-template-columns: 50px 1fr 1fr; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.unsure-item { background: #fef5e7; border-left: 4px solid #f39c12; }
.unknown-item { background: #fdedec; border-left: 4px solid #e74c3c; }
.rc-n { font-weight: 700; color: #888; }
.rc-front { font-weight: 600; }
.rc-back { color: #555; }

/* ==================== 编辑器模态 ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal h2 { margin-bottom: 14px; color: #2c3e50; }
.modal-list { overflow-y: auto; flex: 1; padding-right: 6px; }
.modal-list .card-edit {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #eee;
  align-items: center;
}
.modal-list .card-edit input, .modal-list .card-edit textarea {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}
.modal-list .card-edit textarea { resize: vertical; min-height: 38px; }
.modal-list .card-edit .idx {
  font-weight: 600;
  color: #888;
  text-align: center;
  font-size: 12px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.toolbar .btn { margin: 0; padding: 8px 16px; font-size: 13px; }
.toolbar-search {
  flex: 1;
  min-width: 160px;
  padding: 8px 12px;
  border: 2px solid #e0e3eb;
  border-radius: 8px;
  font-size: 13px;
}

.pack-info {
  background: linear-gradient(135deg, #f5f7ff, #faf5ff);
  padding: 14px;
  border-radius: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: #555;
}
.pack-info b { color: #2c3e50; }

/* ==================== 占位页面 ==================== */
.placeholder-view {
  text-align: center;
  padding: 80px 30px;
}
.placeholder-view .emoji { font-size: 64px; margin-bottom: 16px; }
.placeholder-view h2 { color: #2c3e50; margin-bottom: 8px; }
.placeholder-view p { color: #888; font-size: 14px; }

/* ==================== 练习系统 ==================== */
/* 练习包列表 */
.reading-desc {
  text-align: center;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: #f7f9fc;
  border-radius: 10px;
}
/* 可折叠手风琴 */
.reading-accordion { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-bottom: 16px; }
.rd-accordion-item { border: 1px solid #e0e6f0; border-radius: 12px; overflow: hidden; background: #fff; }
/* 展开时跨满整行，避免 tall body 与相邻折叠卡错位 */
.rd-accordion-item.open { grid-column: 1 / -1; }
.rd-accordion-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  background: #f7f9fc;
  transition: background .2s;
  border-bottom: 1px solid transparent;
}
.rd-accordion-header:hover { background: #eef1f8; }
.rd-accordion-header.open {
  background: #eef1f8;
  border-bottom-color: #e0e6f0;
}
.rd-accordion-arrow {
  font-size: 11px;
  color: #667eea;
  width: 14px;
  text-align: center;
  transition: transform .2s;
  flex-shrink: 0;
}
.rd-accordion-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd-accordion-count {
  font-size: 11px;
  color: #888;
  font-weight: 400;
  flex-shrink: 0;
}
.rd-accordion-body {
  display: none;
  padding: 10px 12px 12px;
}
.rd-accordion-body.open { display: block; }

/* 练习包列表（模块内，两列紧凑网格） */
.ex-pack-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ex-pack-card {
  background: #fafbff;
  border: 1px solid #e0e6f0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all .2s;
}
.ex-pack-card:hover { border-color: #667eea; box-shadow: 0 4px 16px rgba(102,126,234,.12); transform: translateY(-1px); }
.ex-pack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 6px;
}
.ex-pack-name { font-size: 14px; font-weight: 600; color: #2c3e50; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-pack-seq {
  display: inline-block; font-size: 11px; font-weight: 700; line-height: 1;
  color: #fff; background: #e67e22; border-radius: 6px; padding: 3px 6px;
  margin-right: 6px; vertical-align: middle; flex: 0 0 auto;
}
.ex-pack-count {
  font-size: 11px;
  background: #e8ecf4;
  color: #667eea;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  flex-shrink: 0;
}
.ex-pack-topic { font-size: 11px; color: #888; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-pack-desc { font-size: 11px; color: #aaa; }
.ex-pack-action {
  text-align: right;
  font-size: 12px;
  color: #667eea;
  font-weight: 600;
  margin-top: 4px;
}

/* 练习答题界面 */
.exercise-container { padding: 0; }
.ex-top-bar {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 10px 0 6px;
  z-index: 10;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}
.ex-progress-track {
  height: 6px;
  background: #e8ecf4;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.ex-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 3px;
  transition: width .3s ease;
}
.ex-progress-text { font-size: 12px; color: #888; text-align: center; }

/* 题目卡片 */
.ex-question-card {
  background: #fafbff;
  border: 1px solid #e0e6f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.ex-q-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ex-q-num { font-size: 13px; font-weight: 600; color: #667eea; }
.ex-q-topic {
  font-size: 11px;
  background: #f0f3fa;
  color: #667eea;
  padding: 2px 10px;
  border-radius: 10px;
}
.ex-article-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin: 2px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef1f7;
}
.ex-q-text {
  font-size: 16px;
  color: #2c3e50;
  line-height: 1.7;
  margin-bottom: 16px;
}
.ex-q-text u {
  text-decoration: none;
  border-bottom: 2px dashed #e67e22;
  padding: 0 4px;
  color: #e67e22;
  font-weight: 600;
}

/* 可视空白标记（替代<u>标签） */
.ex-blank {
  display: inline;
  border-bottom: 4px dashed #667eea;
  color: #667eea;
  font-weight: 700;
  padding: 0 6px;
  margin: 0 2px;
  line-height: 1.6;
}

/* 选项按钮 */
.ex-options { display: flex; flex-direction: column; gap: 10px; }
.ex-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid #e0e6f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
  font-size: 15px;
  color: #2c3e50;
}
.ex-option:hover { border-color: #667eea; background: #f5f7ff; }
.ex-option:disabled { cursor: default; }
.ex-option.ex-correct {
  border-color: #27ae60;
  background: #e8f8f0;
}
.ex-option.ex-wrong {
  border-color: #e74c3c;
  background: #fdf0ed;
}
.ex-opt-label {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f3fa;
  color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.ex-option.ex-correct .ex-opt-label { background: #27ae60; color: #fff; }
.ex-option.ex-wrong .ex-opt-label { background: #e74c3c; color: #fff; }
.ex-opt-text { flex: 1; }
.ex-opt-mark {
  font-size: 18px;
  font-weight: 700;
  color: #27ae60;
}
.ex-opt-mark.ex-mark-wrong { color: #e74c3c; }

/* 答案解析 */
.ex-explanation {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
}
.ex-exp-ok { background: #e8f8f0; border: 1px solid #a3d9b1; }
.ex-exp-err { background: #fdf0ed; border: 1px solid #f5b7b1; }
.ex-exp-label { font-weight: 600; margin-bottom: 4px; }
.ex-exp-text { color: #555; margin-top: 4px; line-height: 1.6; }
.ex-exp-detail {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.7);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
}
.ex-exp-detail-label { font-weight: 600; color: #2c3e50; margin-bottom: 4px; font-size: 13px; }
.ex-exp-detail-text { color: #444; }
.ex-exp-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #999;
  text-align: center;
}
.ex-result-expl {
  margin-top: 8px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px dashed #e0e6f0;
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}

/* ============ Part4 文章模式（一篇含 19-24 空 + 下方统一选项） ============ */
.ex-part4-passage {
  font-size: 16px;
  line-height: 2;
  color: #2c3e50;
  margin-bottom: 18px;
  background: #fafbff;
  border: 1px solid #eef1f8;
  border-radius: 12px;
  padding: 18px 22px;
  word-break: break-word;
}
.ex-part4-passage .ex-blank {
  display: inline;
  border-bottom: 3px dashed #e67e22;
  color: #e67e22;
  font-weight: 600;
  padding: 0 4px;
  margin: 0 2px;
  transition: all .15s;
}
.ex-part4-passage .ex-blank.answered { border-bottom-style: solid; color: #667eea; }
.ex-part4-passage .ex-blank.correct { border-bottom-color: #27ae60; color: #27ae60; }
.ex-part4-passage .ex-blank.wrong { border-bottom-color: #e74c3c; color: #e74c3c; }

.ex-part4-options {
  border-top: 1px dashed #e0e6f0;
  padding-top: 16px;
}
.ex-part4-opts-title {
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 14px;
}
.ex-part4-block { margin-bottom: 16px; }
.ex-part4-qhead { margin-bottom: 6px; }
.ex-part4-qnum {
  font-weight: 700;
  color: #e67e22;
  font-size: 15px;
}
.ex-part4-q-opts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ex-part4-q-opts .ex-option {
  flex: 1 1 150px;
  margin: 0;
}
.ex-option.ex-selected {
  border-color: #667eea;
  background: #eef1ff;
  box-shadow: 0 0 0 2px rgba(102,126,234,.18);
}
.ex-part4-score {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}
.ex-part4-score.ok { background: #e8f8f0; color: #27ae60; border: 1px solid #a3d9b1; }
.ex-part4-score.bad { background: #fdf0ed; color: #e74c3c; border: 1px solid #f5b7b1; }
.ex-part4-score-num { font-size: 28px; font-weight: 800; }

/* ============ Part5 开放填空模式（一篇含 25-30 空，每个空可填写） ============ */
.ex-part5-passage {
  font-size: 16px;
  line-height: 2;
  color: #2c3e50;
  background: #fafbff;
  border: 1px solid #e3e8f5;
  border-radius: 12px;
  padding: 18px 22px;
  word-break: break-word;
  white-space: pre-wrap;
}
.ex-part5-gap {
  display: inline-block;
  width: 110px;
  margin: 0 4px;
  padding: 2px 8px;
  font-size: 15px;
  text-align: center;
  border: 2px solid #667eea;
  border-radius: 8px;
  outline: none;
  background: #fff;
  transition: all .15s;
}
.ex-part5-gap:focus { box-shadow: 0 0 0 3px rgba(102,126,234,.2); }
.ex-part5-gap.correct { border-color: #27ae60; background: #e8f8f0; color: #27ae60; }
.ex-part5-gap.wrong { border-color: #e74c3c; background: #fdf0ed; color: #e74c3c; }
.ex-part5-exps { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ex-part5-exp-block {
  border: 1px solid #e3e8f5;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
}
.ex-part5-exp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ex-part5-exp-num { font-weight: 700; color: #667eea; }
.ex-part5-exp-ans { font-size: 14px; }

/* 填空题 */
.ex-fill-area { margin-top: 12px; }
.ex-fill-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e6f0;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: border-color .15s;
}
.ex-fill-input:focus { border-color: #667eea; }

/* 练习引擎 - 单词填空输入型 */
.ex-input-wrap { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.ex-input {
  flex: 1 1 200px;
  min-width: 160px;
  padding: 12px 16px;
  border: 2px solid #e0e6f0;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: border-color .15s;
}
.ex-input:focus { border-color: #667eea; }
.ex-input:disabled { background: #f3f4f6; color: #555; }

/* 翻译练习：单词卡 + 句尾填空提示 */
.ex-translate-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 4px 0 18px;
  padding: 12px 18px;
  background: #f5f7ff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.ex-tw-main { font-size: 22px; font-weight: 700; color: #2c3e50; }
.ex-tw-phonetic { font-size: 14px; color: #667eea; font-style: italic; }
.ex-tw-pos { font-size: 12px; color: #8a94a6; }
.ex-translate-tip { font-size: 14px; color: #555; white-space: nowrap; }
.ex-fill-result { padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.ex-fill-ok { background: #e8f8f0; border: 1px solid #a3d9b1; }
.ex-fill-err { background: #fdf0ed; border: 1px solid #f5b7b1; }

/* 判断题 */
.ex-tf-area {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.ex-tf-btn {
  flex: 1;
  padding: 14px;
  border: 2px solid #e0e6f0;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.ex-tf-btn:hover { border-color: #667eea; background: #f5f7ff; }
.ex-tf-btn.ex-correct { border-color: #27ae60; background: #e8f8f0; }
.ex-tf-btn.ex-wrong { border-color: #e74c3c; background: #fdf0ed; }

/* 结果页 */
.ex-result-card {
  text-align: center;
  padding: 20px;
}
.ex-result-grade { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.ex-result-ring { margin-bottom: 16px; display: flex; justify-content: center; }
.ex-result-ring svg { display: block; }
.ex-result-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 16px 0;
}
.ex-stat { text-align: center; }
.ex-stat-num { font-size: 28px; font-weight: 700; color: #2c3e50; }
.ex-stat-label { font-size: 12px; color: #888; }

/* 结果-错题回顾 */
.ex-result-section { margin: 16px 0; }
.ex-result-label { font-size: 15px; font-weight: 600; color: #e74c3c; margin-bottom: 10px; }
.ex-error-list { display: flex; flex-direction: column; gap: 8px; }
.ex-error-item {
  background: #fef5e7;
  border: 1px solid #fdebd0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
}
.ex-err-q {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.5;
}
.ex-err-detail { margin-bottom: 2px; }
.ex-err-label { color: #888; margin-right: 6px; }
.ex-err-wrong { color: #e74c3c; font-weight: 600; text-decoration: line-through; }
.ex-err-correct { color: #27ae60; font-weight: 600; }
.ex-err-exp { margin-top: 6px; color: #f39c12; font-size: 12px; line-height: 1.5; }

/* 结果操作按钮 */
.ex-result-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.ex-result-actions .btn { margin: 0; min-width: 110px; }
@media (max-width: 600px) {
  body { padding: 10px; }
  .view { padding: 16px; }
  .card-front { font-size: 36px; }
  .card-back { font-size: 22px; }
  .controls { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .result-card-item { grid-template-columns: 40px 1fr; }
  .result-card-item .rc-back { grid-column: 2; }
  .dash-categories { grid-template-columns: repeat(2, 1fr); }
  .nav-bar { padding: 10px 14px; }
  .overview-cards { grid-template-columns: repeat(2, 1fr); }
  .progress-rings { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .radar-section { grid-template-columns: 1fr; }
  .radar-chart-container svg { width: 220px; height: 220px; }
  .ex-result-stats { gap: 12px; flex-wrap: wrap; }
  .ex-result-actions { flex-direction: column; }
  .ex-result-actions .btn { width: 100%; }
}

@media (max-width: 768px) {
  .reading-accordion { grid-template-columns: minmax(0, 1fr); }
  .ex-pack-list { grid-template-columns: minmax(0, 1fr); }
}

/* ===== 选词填空（wordbank） ===== */
.ex-wordbank { margin-bottom: 12px; }
.ex-wb-bank-title {
  font-size: 13px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 6px;
}
.ex-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #f5f7ff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px;
}
.ex-bank-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
  background: #fff;
  border: 1px solid #e0e6f0;
  border-radius: 8px;
  padding: 4px 8px;
}
.ex-bank-num {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #667eea;
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ex-bank-word { font-size: 14px; font-weight: 600; color: #2c3e50; }

.ex-wb-questions { display: flex; flex-direction: column; gap: 12px; }
.ex-wb-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #eef1f8;
  border-radius: 10px;
  padding: 12px 14px;
}
.ex-wb-input {
  width: 56px;
  flex-shrink: 0;
  padding: 8px;
  border: 2px solid #e0e6f0;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  outline: none;
}
.ex-wb-input:focus { border-color: #667eea; }
.ex-wb-sentence { font-size: 15px; line-height: 1.7; color: #2c3e50; flex: 1; }
.ex-wb-cn { font-size: 13px; color: #8a94a6; line-height: 1.6; margin-top: 3px; }
.ex-wb-detail-cn { font-size: 12px; color: #8a94a6; margin-bottom: 4px; }

.ex-wb-detail { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ex-wb-detail-row {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  background: #f3f7f3;
  border: 1px solid #d6ead9;
}
.ex-wb-detail-row.bad { background: #fdf0ed; border-color: #f5b7b1; }
.ex-wb-detail-sentence { line-height: 1.6; margin-bottom: 4px; }
.ex-wb-detail-ans { color: #555; }
.ex-wrong-text { color: #e74c3c; }
.ex-right-text { color: #27ae60; }

/* ===== 同义替换连线题 ===== */
.ex-match-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}
.ex-match-col { display: flex; flex-direction: column; gap: 8px; }
.ex-match-col-title {
  font-size: 13px; font-weight: 700; color: #667eea;
  padding: 4px 2px; border-bottom: 2px solid #eef1f8; margin-bottom: 2px;
}
.ex-match-tip {
  font-size: 13px; color: #8a94a6; background: #f6f8ff;
  border-radius: 8px; padding: 8px 12px; margin-bottom: 12px;
}
.ex-match-item {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid #e6eaf3; border-radius: 10px;
  padding: 10px 12px; cursor: pointer;
  font-size: 14px; line-height: 1.5; color: #2c3e50;
  transition: all .15s ease;
}
.ex-match-item:hover { border-color: #667eea; background: #f5f7ff; }
.ex-match-left { border-left: 4px solid #667eea; }
.ex-match-right { border-left: 4px solid #f0a44a; }
.ex-match-num {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: #667eea; color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.ex-match-text { flex: 1; }
.ex-match-badge {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: #667eea; color: #fff; font-size: 11px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.ex-match-item.paired .ex-match-badge { display: inline-flex; }
.ex-match-item.paired { border-color: #667eea; background: #eef1ff; }
.ex-match-item.selected { border-color: #f0a44a; background: #fff4e6; box-shadow: 0 0 0 3px rgba(240,164,74,.2); }
.ex-match-item.match-correct { border-color: #27ae60; background: #e8f8f0; }
.ex-match-item.match-wrong { border-color: #e74c3c; background: #fdf0ed; }
.ex-match-explain-title {
  font-size: 14px; font-weight: 600; color: #2c3e50;
  background: #f6f8ff; border-radius: 8px; padding: 10px 12px; margin: 14px 0 10px;
}
.ex-match-pairs { display: flex; flex-direction: column; gap: 6px; }
.ex-match-pair {
  display: flex; align-items: center; gap: 8px;
  border-radius: 8px; padding: 8px 10px; font-size: 13px;
  background: #f3f7f3; border: 1px solid #d6ead9;
}
.ex-match-pair.bad { background: #fdf0ed; border-color: #f5b7b1; }
.ex-match-pair-o { flex: 1; color: #2c3e50; }
.ex-match-pair-arrow { color: #667eea; font-weight: 700; flex-shrink: 0; }
.ex-match-pair.bad .ex-match-pair-arrow { color: #e74c3c; }
.ex-match-pair-s { flex: 1; color: #555; font-weight: 600; }
@media (max-width: 640px) {
  .ex-match-wrap { grid-template-columns: 1fr; }
}

/* ===== 写作练习（KET写作高分句型·翻译练习） ===== */
#writing-view { padding: 18px 16px 40px; max-width: 1100px; margin: 0 auto; }
.wr-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.wr-tab {
  border: 1px solid #c9d2ea; background: #fff; color: #4a6fd4;
  cursor: pointer; padding: 9px 18px; border-radius: 22px; font-size: 14px; transition: .2s;
}
.wr-tab.active { background: #4a6fd4; color: #fff; font-weight: 700; }
.wr-panel { display: none; }
.wr-panel.active { display: block; }
.wr-note { font-size: 12px; color: #8a94a6; margin: 0 0 14px; }
.wr-sec-title {
  font-size: 18px; font-weight: 800; color: #4a6fd4; margin: 26px 0 12px;
  border-left: 5px solid #4a6fd4; padding-left: 12px;
}
.wr-know-card {
  background: #fff; border-radius: 14px; padding: 16px 18px; margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); border: 1px solid #eef1f8;
}
.wr-know-h { font-size: 16px; font-weight: 700; color: #2c3e50; margin-bottom: 6px; }
.wr-know-intro { font-size: 12px; color: #8a94a6; margin-bottom: 10px; }
.wr-know-list { display: flex; flex-direction: column; gap: 8px; }
.wr-know-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 4px 12px;
  background: #f7f9ff; border-radius: 10px; padding: 10px 12px;
  border-left: 3px solid #b9c6f2;
}
.wr-know-pat {
  grid-column: 1; font-weight: 700; color: #5a4fcf; font-size: 13.5px;
  font-family: "Courier New", Consolas, monospace;
}
.wr-know-ex {
  grid-column: 2; color: #1a2233; font-size: 14px; line-height: 1.5;
  font-family: "Courier New", Consolas, monospace; word-break: break-word;
}
.wr-know-zh {
  grid-column: 2; color: #6b7480; font-size: 13px; line-height: 1.5;
}
@media (max-width: 640px) {
  .wr-know-row { grid-template-columns: 1fr; }
  .wr-know-pat { grid-column: 1; }
  .wr-know-ex { grid-column: 1; }
  .wr-know-zh { grid-column: 1; }
}
.wr-cat-title {
  font-size: 16px; font-weight: 700; color: #4a6fd4; margin: 22px 0 8px;
  border-left: 4px solid #4a6fd4; padding-left: 10px;
}
.wr-group {
  background: #fff; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); border: 1px solid #eef1f8;
}
.wr-group h3 { margin: 0 0 4px; font-size: 16px; color: #2c3e50; }
.wr-group .wr-g-sub { font-size: 12px; color: #8a94a6; margin-bottom: 12px; }
.wr-q { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eef1f8; }
.wr-q:last-child { border-bottom: none; }
.wr-q .wr-num {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  background: #6a5acd; color: #fff; font-size: 12px; display: inline-flex;
  align-items: center; justify-content: center; margin-top: 2px;
}
.wr-q .wr-zh { flex: 0 0 42%; font-size: 14px; color: #2c3e50; }
.wr-q .wr-en { flex: 1; }
.wr-q input {
  width: 100%; padding: 8px 10px; border: 1.5px solid #d7def0;
  border-radius: 8px; font-size: 14px; font-family: inherit; color: #2c3e50;
}
.wr-q input:focus { outline: none; border-color: #4a6fd4; box-shadow: 0 0 0 3px rgba(74,111,212,.15); }
.wr-ans {
  margin-top: 6px; font-size: 13px; color: #1f8a4c; background: #eafaf0;
  border-radius: 6px; padding: 6px 8px; display: none;
}
.wr-ans.show { display: block; }
.wr-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wr-btn-primary { background: #4a6fd4; color: #fff; border: none; border-radius: 8px; padding: 9px 18px; font-size: 14px; cursor: pointer; }
.wr-btn-primary:hover { background: #3a5bc0; }
.wr-btn-ghost { background: #eef1fb; color: #4a6fd4; border: none; border-radius: 8px; padding: 9px 18px; font-size: 14px; cursor: pointer; }
.wr-btn-ghost:hover { background: #e0e6f8; }
.wr-score { display: none; margin: 0; padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: 13px; }
.wr-score.show { display: inline-block; }
.wr-score.ok { background: #eafaf0; color: #1f8a4c; }
@media (max-width: 640px) {
  .wr-q { flex-direction: column; }
  .wr-q .wr-zh { flex: none; }
}

/* ===== 折叠布局（知识卡 + 翻译练习合并） ===== */
.wr-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 12px;
}
.wr-toggle-all {
  border: 1px solid #d8def0;
  background: #fff;
  color: #4a6fd4;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.wr-toggle-all:hover {
  background: #4a6fd4;
  color: #fff;
}

.wr-collapsible {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  border: 1px solid #eef1f8;
  overflow: hidden;
}
.wr-collap-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
}
.wr-collap-head:hover {
  background: #f7f9ff;
}
.wr-arrow {
  color: #4a6fd4;
  font-size: 13px;
  width: 14px;
  text-align: center;
}
.wr-collap-title {
  flex: 1;
}
.wr-collap-badge {
  font-size: 12px;
  font-weight: 600;
  color: #8a94a6;
  background: #f0f3fb;
  border-radius: 20px;
  padding: 3px 10px;
}
.wr-collap-body {
  padding: 4px 18px 18px;
}
.wr-collapsible.collapsed .wr-collap-body {
  display: none;
}

/* 语法模块：6 大时态分组内的子卡（缩进 + 左侧提示线，体现层级） */
.wr-collapsible.gr-group > .wr-collap-head {
  background: linear-gradient(135deg, #fff7e6, #fffdf6);
  border: 1px solid #ffe6b3;
  color: #9a6b00;
}
.wr-collapsible.gr-group > .wr-collap-head:hover {
  background: linear-gradient(135deg, #fff1d6, #fffaf0);
}
.wr-collapsible.gr-group > .wr-collap-head .wr-arrow,
.wr-collapsible.gr-group > .wr-collap-head .wr-collap-badge {
  color: #b9810a;
}
.wr-collapsible.gr-group > .wr-collap-body > .wr-collapsible {
  margin-left: 20px;
  border-left: 3px solid #ffe2a8;
  padding-left: 8px;
}

/* 知识卡（次级，虚线框） */
.wr-collapsible.wr-sub {
  box-shadow: none;
  border: 1px dashed #dbe2f3;
  border-radius: 12px;
  margin-bottom: 12px;
}
.wr-collapsible.wr-sub > .wr-collap-head {
  background: #f7f9ff;
  font-size: 15px;
  color: #3a4a66;
  border-radius: 12px 12px 0 0;
}
.wr-collapsible.wr-sub > .wr-collap-head:hover {
  background: #eef3ff;
}

/* 翻译练习（强调，绿色） */
.wr-collapsible.wr-trans {
  border: 1px solid #cdeede;
  box-shadow: 0 2px 10px rgba(31, 138, 76, .08);
}
.wr-collapsible.wr-trans > .wr-collap-head {
  color: #1f8a4c;
  background: #f1fbf5;
}
.wr-collapsible.wr-trans > .wr-collap-head:hover {
  background: #e6f7ee;
}
.wr-collapsible.wr-trans > .wr-collap-head .wr-arrow {
  color: #1f8a4c;
}
.wr-collapsible.wr-trans > .wr-collap-head .wr-collap-badge {
  color: #2f9d63;
  background: #dff4e7;
}
.wr-trans-label {
  margin: 14px 0 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #1f8a4c;
  background: #eef9f1;
  border-left: 3px solid #1f8a4c;
  border-radius: 6px;
}

/* ===== 口语模块（应试知识卡 / Part1题库 / Part2题库） ===== */
.wr-sec { display: none; }
.wr-sec.active { display: block; }

.wr-know-sec {
  font-size: 16px;
  font-weight: 700;
  color: #1f2a44;
  margin: 18px 0 8px;
  padding-left: 10px;
  border-left: 4px solid #4a6fd4;
}
.wr-collapsible.sk-card { margin-bottom: 10px; }

.sk-h {
  font-size: 14px;
  font-weight: 600;
  color: #1f2a44;
  margin: 10px 0 4px;
}
.sk-p {
  font-size: 14px;
  color: #3a465c;
  line-height: 1.7;
  margin: 6px 0;
}
.sk-ul {
  margin: 6px 0 6px 4px;
  padding-left: 18px;
}
.sk-ul li {
  font-size: 14px;
  color: #3a465c;
  line-height: 1.7;
  margin: 3px 0;
}
.sk-code {
  background: #0f1729;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: Consolas, Menlo, monospace;
  font-size: 13px;
  white-space: pre-wrap;
  line-height: 1.6;
  margin: 8px 0;
}
.sk-tip {
  background: #fff7e6;
  border-left: 4px solid #ffb020;
  color: #7a5b00;
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  font-size: 13px;
  margin: 8px 0;
}

.sk-ph {
  text-align: center;
  padding: 48px 20px;
  color: #8a94a6;
}
.sk-ph-emoji { font-size: 48px; }
.sk-ph h3 { color: #3a465c; margin: 12px 0 6px; }
.sk-ph p { font-size: 14px; max-width: 440px; margin: 0 auto; line-height: 1.7; }

/* ===== Part 1 题库折叠面板（默认折叠） ===== */
.sk-part1-collapsible {
  border: 1px solid #d8e0f2; border-radius: 12px; overflow: hidden;
  background: #fff; margin-top: 6px;
}
.sk-part1-toggle {
  width: 100%; box-sizing: border-box; text-align: left;
  display: flex; align-items: center; gap: 10px;
  border: none; cursor: pointer; padding: 14px 16px;
  background: #eef2fc; color: #3a465c; font-size: 15px; font-weight: 700;
  transition: background .2s;
}
.sk-part1-toggle:hover { background: #e3e9fa; }
.sk-part1-toggle.open { background: #e3e9fa; }
.sk-chevron {
  display: inline-block; width: 18px; text-align: center;
  color: #4a6fd4; font-size: 12px; transition: transform .2s;
}
.sk-part1-body { padding: 0; background: #f8f9fd; }

/* ===== 右下角浮动按钮：回到首页 / 回到顶部 ===== */
.float-actions {
  position: fixed; right: 18px; bottom: 18px; z-index: 9999;
  display: none; flex-direction: column; gap: 10px;
}
.float-actions.show { display: flex; }
.float-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: #4a6fd4; color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  transition: transform .15s, background .15s;
}
.float-btn:hover { background: #3a5bc0; transform: scale(1.06); }
.float-btn:active { transform: scale(.96); }
@media (max-width: 640px) {
  .float-actions { right: 12px; bottom: 12px; }
  .float-btn { width: 42px; height: 42px; font-size: 18px; }
}

/* ===== 仪表盘学习报告入口 ===== */
.dash-report-entry { margin: 10px 2px; }

/* ===== 学习报告页 ===== */
.report-view { background: #f4f6fb; }
.report-container { max-width: 720px; margin: 0 auto; padding: 16px 14px 40px; }
.rep-header { margin-bottom: 14px; }
.rep-title { font-size: 20px; color: #2c3e50; margin: 10px 0 6px; }
.rep-datebar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rep-date-btn {
  border: 1px solid #d8e0f2; background: #fff; color: #4a6fd4;
  border-radius: 16px; padding: 4px 12px; font-size: 13px; cursor: pointer;
}
.rep-date-btn.active { background: #4a6fd4; color: #fff; border-color: #4a6fd4; }
.rep-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.rep-sum-card {
  flex: 1 1 0; min-width: 92px; background: #fff; border: 1px solid #e6ebf5;
  border-radius: 12px; padding: 12px 8px; text-align: center;
}
.rep-sum-card.warn { background: #fff4f2; border-color: #f3c2ba; }
.rep-sum-num { font-size: 20px; font-weight: 800; color: #2c3e50; }
.rep-sum-label { font-size: 12px; color: #8a94a6; margin-top: 4px; }
.rep-timeline { display: flex; flex-direction: column; gap: 10px; }
/* ===== 分类聚合（模块 → 题型）===== */
.rep-groups { display: flex; flex-direction: column; gap: 14px; }
/* ===== 筛选 / 排序控件 ===== */
.rep-controls {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid #e6ebf5; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 14px;
}
.rep-ctrl { font-size: 13px; color: #555; display: flex; align-items: center; gap: 6px; }
.rep-ctrl select {
  border: 1px solid #d8e0f2; border-radius: 8px; padding: 4px 8px; font-size: 13px;
  background: #fff; color: #2c3e50; cursor: pointer;
}
/* ===== 按题目聚类（题组小标题）===== */
.rep-qcluster { margin-bottom: 8px; }
.rep-qcluster:last-child { margin-bottom: 0; }
.rep-qcluster-head {
  font-size: 12px; color: #555; background: #f5f8ff; border-radius: 8px;
  padding: 3px 8px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.rep-group { background: #fff; border: 1px solid #e6ebf5; border-radius: 14px; overflow: hidden; }
.rep-group-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #f0f4ff; border-bottom: 1px solid #e6ebf5; font-weight: 700; color: #2c3e50;
}
.rep-group-meta { font-size: 12px; color: #8a94a6; font-weight: 500; }
.rep-subgroup { padding: 8px 12px 10px; }
.rep-subgroup-head {
  font-size: 13px; font-weight: 700; color: #2c6fbf; margin: 6px 2px 8px;
  display: flex; align-items: center; gap: 6px;
}
.rep-sub-count { font-size: 11px; color: #8a94a6; font-weight: 500; background: #eef2fb; border-radius: 8px; padding: 0 6px; }
.rep-subgroup .rep-card { margin-bottom: 8px; }
.rep-subgroup .rep-card:last-child { margin-bottom: 0; }
.rep-card {
  background: #fff; border: 1px solid #e6ebf5; border-radius: 12px; padding: 12px 14px;
}
.rep-card-fc { border-left: 4px solid #7e57c2; }
.rep-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rep-ico { font-size: 18px; }
.rep-name { font-weight: 700; color: #2c3e50; }
.rep-sec { background: #eaf3ff; color: #2c6fbf; border-radius: 8px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
.rep-round { background: #eaf6ee; color: #1f9254; border-radius: 8px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
.rep-card-gr { border-left: 4px solid #2bb3a3; }
.rep-redo { background: #eef1ff; color: #5566cc; border-radius: 8px; padding: 1px 8px; font-size: 12px; }
.rep-card-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #8a94a6; margin-top: 6px; }
.rep-card-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; }
.rep-acc { color: #27ae60; font-weight: 600; }
.rep-wrong { color: #e74c3c; }
.rep-warn2 { color: #e67e22; }
.rep-over-wrap { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.rep-over { background: #fdecea; color: #c0392b; border-radius: 8px; padding: 2px 8px; font-size: 12px; }
.rep-unknow { margin-top: 8px; font-size: 13px; color: #555; line-height: 1.7; }
.rep-empty { text-align: center; color: #8a94a6; padding: 60px 20px; line-height: 1.9; }
.rep-foot { font-size: 12px; color: #9aa3b2; text-align: center; margin: 12px 0 30px; line-height: 1.7; }
.rep-seclist { color: #4a6fd4; font-weight: 600; display: inline-flex; gap: 8px; flex-wrap: wrap; }
.rep-card-actions { margin-top: 10px; }
.rep-btn {
  background: #4a6fd4; color: #fff; border: 0; border-radius: 8px;
  padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.rep-btn:active { transform: scale(.98); }

/* ===== 语法 6 大时态 内容样式 ===== */
.gr-en {
  font-size: 13px;
  font-weight: 600;
  color: #8a94a6;
  margin-left: 4px;
}
.gr-concept {
  font-size: 14px;
  line-height: 1.7;
  color: #3a4a66;
  background: #f7f9ff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.gr-block {
  margin-bottom: 14px;
}
.gr-block-h {
  font-size: 14px;
  font-weight: 700;
  color: #4a6fd4;
  margin-bottom: 8px;
}
.gr-ex-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gr-ex-item {
  background: #fafbff;
  border: 1px solid #eef1f8;
  border-radius: 8px;
  padding: 8px 12px;
}
.gr-ex-en {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}
.gr-ex-zh {
  font-size: 13px;
  color: #8a94a6;
  margin-top: 2px;
}
.gr-sig-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gr-sig-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: #fff7ec;
  border: 1px solid #f3e2c0;
  border-radius: 20px;
  padding: 5px 12px;
}
.gr-sig-en {
  font-size: 13px;
  font-weight: 700;
  color: #c8841a;
}
.gr-sig-zh {
  font-size: 12px;
  color: #a07a33;
}
.gr-struct-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gr-struct-item {
  background: #f6f9f6;
  border: 1px solid #e3efe6;
  border-radius: 10px;
  padding: 10px 12px;
}
.gr-struct-type {
  font-size: 13px;
  font-weight: 700;
  color: #1f8a4c;
  margin-bottom: 4px;
}
.gr-struct-pat {
  font-size: 13px;
  color: #3a4a66;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.gr-struct-ex {
  font-size: 13px;
  color: #8a94a6;
  margin-top: 3px;
}
.gr-ex-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.gr-ex {
  background: #fff;
  border: 1px solid #e6ebf5;
  border-radius: 10px;
  padding: 10px 12px;
}
.gr-ex-q {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #2c3e50;
  line-height: 1.6;
}
.gr-ex-num {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4a6fd4;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gr-opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0 30px;
}
.gr-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #3a4a66;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.gr-opt:hover {
  background: #f2f5fc;
}
.gr-opt.gr-correct {
  background: #eafaf0;
  color: #1f8a4c;
  font-weight: 700;
}
.gr-opt.gr-wrong {
  background: #fdecea;
  color: #d12b2b;
  text-decoration: line-through;
}
.gr-ex-input {
  width: 100%;
  margin: 8px 0 0 30px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #d6dce8;
  border-radius: 8px;
  font-size: 14px;
}
.gr-ans {
  display: none;
  margin: 8px 0 0 30px;
  font-size: 13px;
  color: #3a4a66;
}
.gr-ans.show {
  display: block;
}
.gr-ans.ok {
  color: #1f8a4c;
}
.gr-ans.err {
  color: #d12b2b;
}

/* ===== KET 写作真题演练（Part 6 邮件） ===== */
.wp-no {
  font-weight: 800;
  color: #c8841a;
  margin-right: 2px;
}
.wp-block {
  margin-bottom: 14px;
}
.wp-block-h {
  font-size: 14px;
  font-weight: 700;
  color: #4a6fd4;
  margin-bottom: 8px;
}
.wp-occ-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wp-occ-item {
  background: #fff3e0;
  border: 1px solid #f3d9a8;
  color: #9a6b00;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 13px;
}
.wp-prompt-text {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f7f9ff;
  border: 1px dashed #c7d2ee;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  color: #2c3e50;
}
.wp-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d6dce8;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.7;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  resize: vertical;
  background: #fff;
}
.wp-textarea:focus {
  outline: none;
  border-color: #4a6fd4;
  box-shadow: 0 0 0 3px rgba(74, 111, 212, .12);
}
.wp-wordcount {
  margin-top: 6px;
  font-size: 13px;
  color: #8a94a6;
}
.wp-model {
  margin-top: 6px;
  background: #f1fbf5;
  border: 1px solid #cdeede;
  border-radius: 12px;
  padding: 14px 16px;
}
.wp-model-text {
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border: 1px solid #e3efe6;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;
  color: #2c3e50;
}
.wp-vocab {
  font-size: 14px;
  line-height: 1.8;
  color: #3a4a66;
  background: #fff;
  border: 1px solid #e3efe6;
  border-radius: 10px;
  padding: 10px 14px;
}

/* ===== KET 写作真题演练（Part 7 故事）===== */
.wp7-no {
  font-weight: 800;
  color: #c8841a;
  margin-right: 4px;
}
.wp7-block {
  margin-bottom: 14px;
}
.wp7-block-h {
  font-size: 14px;
  font-weight: 700;
  color: #4a6fd4;
  margin-bottom: 8px;
}
.wp7-img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  border: 1px solid #e2e8f4;
  border-radius: 12px;
  background: #f7f9ff;
}
.wp7-occ-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wp7-occ-item {
  background: #fff3e0;
  border: 1px solid #f3d9a8;
  color: #9a6b00;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 13px;
}
.wp7-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d6dce8;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.7;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  resize: vertical;
  background: #fff;
}
.wp7-textarea:focus {
  outline: none;
  border-color: #4a6fd4;
  box-shadow: 0 0 0 3px rgba(74, 111, 212, .12);
}
.wp7-wordcount {
  margin-top: 6px;
  font-size: 13px;
  color: #8a94a6;
}
.wp7-model {
  margin-top: 6px;
  background: #f1fbf5;
  border: 1px solid #cdeede;
  border-radius: 12px;
  padding: 14px 16px;
}
