:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --primary: #2563eb;
  --primary-fg: #ffffff;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 0.2s ease-out forwards;
}

.word-token {
  display: inline-block;
  padding: 1px 4px;
  margin: 0 1px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  border-bottom: 1px dotted #94a3b8;
}

.word-token:hover {
  background-color: #dbeafe;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.hl-subj {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 800;
}

.hl-verb {
  background: #fef3c7;
  color: #b45309;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 800;
}

.hl-time {
  background: #dcfce7;
  color: #15803d;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 800;
  border: 1px dashed #16a34a;
}

.tense-tag-现在进行时 {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.tense-tag-一般将来时 {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.tense-tag-一般过去时 {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.tense-tag-一般现在时 {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
