/* 自定义Tailwind工具类 */
@layer utilities {
  /* 自定义滚动条（古风细条） */
  .scrollbar-hide::-webkit-scrollbar {
    width: 4px;
  }
  .scrollbar-hide::-webkit-scrollbar-thumb {
    background-color: theme('colors.bamboo');
    border-radius: 2px;
  }
  /* 文字描边（标题用） */
  .text-stroke {
    -webkit-text-stroke: 1px theme('colors.ink');
  }
  /* 卷轴阴影（古风元素效果） */
  .scroll-shadow {
    box-shadow: 0 0 10px rgba(0,0,0,0.1), 0 4px 8px rgba(45,93,71,0.2);
  }
  /* 淡入动画 */
  .fade-in {
    animation: fadeIn 0.8s ease-in-out;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* 全局样式 */
body {
  font-family: 'Noto Serif SC', serif;
  background-color: #F8F5F0;
  color: #212121;
}

/* 导航栏滚动效果 */
.nav-scrolled {
  background-color: rgba(248,245,240,0.95);
  box-shadow: 0 2px 8px rgba(45,93,71,0.1);
}

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

/* 藏书卡片链接样式 */
.book-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}