/* 补充 site.css 中未包含的 Tailwind 工具类 + 移动端适配 */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}
body.nav-open {
  overflow: hidden;
}

.visible { visibility: visible; }
.top-1\/2 { top: 50%; }
.top-2 { top: 0.5rem; }
.top-4 { top: 1rem; }
.left-2 { left: 0.5rem; }
.left-3 { left: 0.75rem; }
.left-4 { left: 1rem; }
.right-2 { right: 0.5rem; }
.right-4 { right: 1rem; }
.bottom-2 { bottom: 0.5rem; }
.bottom-4 { bottom: 1rem; }
.inset-0 { inset: 0; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-20 { width: 5rem; }
.text-2xs { font-size: 10px; line-height: 1.2; }
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
img,
video {
  max-width: 100%;
  height: auto;
}
input[type="search"] {
  font-size: 16px;
}
.tap-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: #e8b45a;
  color: #120d09;
  border-radius: 6px;
}
.skip-link:focus {
  top: 12px;
}
[data-mobile-menu] a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.tpl-btjat header {
  padding-top: env(safe-area-inset-top, 0);
}
.tpl-btjat footer {
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (hover: none) {
  .group:hover .opacity-0 {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tpl-btjat *,
  .tpl-btjat *::before,
  .tpl-btjat *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.whitespace-nowrap { white-space: nowrap; }
.shrink-0 { flex-shrink: 0; }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:w-32 { width: 8rem; }
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
}
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
@media (min-width: 768px) {
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
