/* HET 词形填空课件 · 独立作答页 DeepSeek 双击查词 */
.cloze-lookup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 200;
}
.cloze-lookup-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.cloze-lookup-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 96vw);
  background: #1a1612;
  border-left: 1px solid rgba(201, 162, 77, 0.35);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 210;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.45);
  color: #e8dfd0;
}
.cloze-lookup-panel.open {
  transform: translateX(0);
}
.cloze-lookup-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(201, 162, 77, 0.28);
  background: linear-gradient(90deg, #2a2218, #3d3224);
}
.cloze-lookup-panel header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #c9a24d;
}
.cloze-lookup-close {
  border: 1px solid rgba(201, 162, 77, 0.35);
  background: transparent;
  color: #ebe4d6;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}
.cloze-lookup-close:hover {
  background: rgba(201, 162, 77, 0.12);
}
.cloze-lookup-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.65;
}
.cloze-lookup-head {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: #fff;
}
.cloze-lookup-section-title {
  margin: 12px 0 6px;
  color: #c9a24d;
  font-size: 0.9rem;
  font-weight: 600;
}
.cloze-lookup-usage-list {
  margin: 0;
  padding-left: 1.2em;
}
.cloze-lookup-usage-item {
  margin-bottom: 10px;
}
.cloze-lookup-ex-en {
  margin: 4px 0 2px;
  padding: 6px 8px;
  background: rgba(74, 124, 124, 0.15);
  border-radius: 4px;
  font-style: italic;
  color: #b8d9d6;
  font-size: 0.92rem;
}
.cloze-lookup-ex-zh {
  margin: 0;
  color: #a89f8f;
  font-size: 0.88rem;
}
.cloze-lookup-muted {
  color: #7f7566;
}
.cloze-lookup-bad {
  color: #e28585;
}
.cloze-lookup-raw {
  white-space: pre-wrap;
  font-size: 0.9rem;
}
.cloze-lookup-article {
  margin: 8px 0;
  padding: 10px 12px;
  background: rgba(201, 162, 77, 0.08);
  border-left: 3px solid #c9a24d;
  border-radius: 0 6px 6px 0;
  color: #d7cfc0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.passage.is-practice-lookup .cloze-w {
  cursor: pointer;
  border-radius: 2px;
  padding: 0 1px;
  transition: background 0.15s;
}
.passage.is-practice-lookup .cloze-w:hover {
  background: rgba(201, 162, 77, 0.22);
}

.cloze-lookup-hint {
  font-size: clamp(11px, 0.95vw, 14px);
  color: #8a7035;
  margin: 0 0 8px;
}
