/*
Theme Name: 软仓 - 软件分类目录主题
Description: 专业的软件分类目录WordPress主题，支持三级层级结构和交互式浏览
Version: 1.0.0
Author: Qoder
*/

/* 备用CSS样式 - 当Tailwind CSS加载失败时使用 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #111827;
    color: #bbbbbb;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 基础布局样式 */
.bg-gray-900 { background-color: #111827; }
.bg-secondary { background-color: #333333; }
.bg-primary { background-color: #3a3a3a; }
.bg-accent { background-color: #444444; }
.text-text { color: #bbbbbb; }
.text-textLight { color: #dddddd; }
.text-white { color: #ffffff; }
.text-blue-400 { color: #60a5fa; }
.text-gray-400 { color: #9ca3af; }

/* 基础布局 */
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.fixed { position: fixed; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.w-40 { width: 10rem; }
.ml-40 { margin-left: 10rem; }
.p-6 { padding: 1.5rem; }
.p-5 { padding: 1.25rem; }
.p-3 { padding: 0.75rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded { border-radius: 0.25rem; }
.text-xl { font-size: 1.25rem; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.cursor-pointer { cursor: pointer; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.gap-3 { gap: 0.75rem; }
.border-b { border-bottom-width: 1px; }
.border-accent { border-color: #444444; }
.pb-2 { padding-bottom: 0.5rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.hidden { display: none; }
.block { display: block; }
.grid { display: grid; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }

/* 媒体查询 */
@media (min-width: 640px) {
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* 悬停效果 */
.hover\:bg-accent:hover { background-color: #444444; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-gray-700:hover { background-color: #374151; }
.hover\:text-blue-400:hover { color: #60a5fa; }

/* 过渡效果 */
.transition-all { transition: all 0.2s ease; }
.hover-transition { transition: all 0.2s ease; }
.duration-300 { transition-duration: 300ms; }

/* 自定义类 */
.nav-active {
    background-color: #444444;
    color: #ffffff;
}

.sidebar-shadow {
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-hide-scrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 和 Edge */
}

.sidebar-hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari 和 Opera */
}

.rotate-icon {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.category-icon {
    transition: transform 0.3s ease;
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}