/* 全局样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 左侧导航栏样式 */
.category-nav {
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    overflow-y: auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.category-header {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-item:hover {
    background-color: #f1f5f9;
}

.category-item.active {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

.category-item i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* 网站卡片样式 */
.category-title {
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.site-card {
    transition: all 0.2s;
    height: 100%;
    border-radius: 8px;
}

.site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 字母图标样式 */
.site-logo-letter {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.site-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.site-link:hover .site-name {
    color: #3b82f6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .category-nav {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 20px;
        height: auto;
        max-height: 300px;
    }
    
    .content {
        margin-left: 0;
    }
}

/* 更紧凑的卡片布局 */
.row {
    margin-left: -8px;
    margin-right: -8px;
}

.col {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
}

.site-card {
    padding: 10px !important;
}

.site-card .d-flex {
    margin-bottom: 8px !important;
}

.site-logo-letter {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.site-name {
    font-size: 0.95rem;
}

.card-text {
    margin-bottom: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.category-section {
    margin-bottom: 2rem !important;
}

/* 优化分类标题间距 */
.category-title {
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    font-size: 1.4rem;
}

/* 背景颜色类 */
.bg-blue-500 { background-color: #3b82f6; }
.bg-green-500 { background-color: #22c55e; }
.bg-red-500 { background-color: #ef4444; }
.bg-yellow-500 { background-color: #eab308; }
.bg-purple-500 { background-color: #8b5cf6; }
.bg-pink-500 { background-color: #ec4899; }
.bg-indigo-500 { background-color: #6366f1; }
.bg-teal-500 { background-color: #14b8a6; }
.bg-orange-500 { background-color: #f97316; }
.bg-cyan-500 { background-color: #06b6d4; }

/* 文字大小类 */
.text-2xl { font-size: 1.5rem; }
.text-gray-800 { color: #1f2937; }

/* 布局和间距类 */
.mb-5 { margin-bottom: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.rounded { border-radius: 0.25rem; }

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.blue-text {
    color: #2563eb;
}

/* 主体容器 */
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 右侧内容 */
.content {
    flex: 1;
    margin-left: 20px;
} 