@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Heiti SC", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  font-weight: 400;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 微信公众号风格的文章样式 */
.prose p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.5rem;
}

.prose ul {
  margin-bottom: 1.5rem;
}

.prose ul li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* 平滑滚动效果 */
html {
  scroll-behavior: smooth;
}

/* 响应式图片 */
img {
  max-width: 100%;
  height: auto;
}

/* 确保图片在二级目录下正确加载的样式 */
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 确保所有链接使用相对路径 */
a {
  transition: all 0.2s ease;
}