/* 站点自定义样式（配合 Tailwind CDN 使用） */
html { scroll-behavior: smooth; }

/* 锚点滚动偏移：顶部导航为 fixed（h-16=64px / lg:h-20=80px），
   不加偏移锚点区块标题会被固定头部盖住 */
#home, #products, #custom, #team, #news, #about, #contact {
  scroll-margin-top: 4.5rem;
}
@media (min-width: 1024px) {
  #home, #products, #custom, #team, #news, #about, #contact {
    scroll-margin-top: 5.5rem;
  }
}
body { font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }
.font-title { font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif; }

/* Hero 轮播淡入淡出 */
.hero-slide { transition: opacity 1s ease-in-out; }

/* 装饰叶子漂浮 */
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}
.animate-floaty { animation: floaty 6s ease-in-out infinite; }
.animate-floaty-slow { animation: floaty 9s ease-in-out infinite; }

/* 移动端抽屉与弹窗过渡 */
.drawer-panel { transition: transform .3s ease; }
.modal-panel { transition: opacity .2s ease, transform .2s ease; }

/* 两行截断 */
.clamp-1, .clamp-2 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; }

/* 新闻正文首字放大 */
.first-letter-big::first-letter {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: 1.6em;
  color: #6d2c91;
}

/* 产品分类侧栏选中态 */
.cat-item { display:block; padding:.55rem .9rem; border-radius:.25rem; color:#525252; font-size:.95rem; transition:all .15s; }
.cat-item:hover { background:#f3f0fb; color:#6d2c91; }
.cat-item.on { background:#6d2c91; color:#fff; }

/* 分页 */
.pager { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.5rem; }
.pager a { display:inline-flex; align-items:center; justify-content:center; min-width:2.25rem; height:2.25rem; padding:0 .75rem; border-radius:.25rem; background:#f5f5f5; color:#525252; font-size:.875rem; transition:all .15s; }
.pager a:hover { background:#ede9fe; color:#6d2c91; }
.pager a.active { background:#6d2c91; color:#fff; cursor:default; }

/* 站内搜索结果 */
.result-card { background:#fff; }
.result-tag { display:inline-block; padding:.1rem .5rem; border-radius:.25rem; font-size:.7rem; line-height:1.4; }
.result-tag-product { background:#f3f0fb; color:#6d2c91; }
.result-tag-news { background:#fdf0e3; color:#b4530f; }
