/* 例句內單字查詢提示 */

.example-word {
  cursor: help;
  border-radius: 0.2em;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-touch-callout: none;
}

.example-word:hover,
.example-word:focus-visible {
  background: rgba(13, 148, 136, 0.14);
  color: #0f766e;
  outline: none;
}

.example-word-active {
  background: rgba(13, 148, 136, 0.22);
  color: #0f766e;
}

.example-word-tip {
  position: fixed;
  z-index: 1200;
  max-width: min(20rem, calc(100vw - 1rem));
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  pointer-events: auto;
  line-height: 1.45;
}

.example-word-tip.hidden {
  display: none;
}

.example-word-tip-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}

.example-word-tip-word {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.example-word-tip-level {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(45, 212, 191, 0.2);
  color: #99f6e4;
}

.example-word-tip-online {
  background: rgba(96, 165, 250, 0.22);
  color: #bfdbfe;
}

.example-word-tip-phonetic {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: #5eead4;
}

.example-word-tip-chinese {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fde68a;
}

.example-word-tip-meta {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.example-word-tip-meaning {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: #e2e8f0;
}

.example-word-tip-meaning + .example-word-tip-meaning {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.word-example {
  -webkit-user-select: text;
  user-select: text;
}
