/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 句子部分样式 */
.sentence-part > div:last-child {
  min-height: 2.5rem;
  transition: all 0.2s ease;
}

.sentence-part > div:last-child:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dark .sentence-part > div:last-child:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* 渐变动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* 按钮悬停效果 */
button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
}
