@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f7fa;
}

/* 侧边栏样式 */
.sidebar {
    background-color: #2c3e50; /* 恢复原来的灰色背景色 */
    color: white;
    transition: transform 0.3s ease-in-out;
    position: fixed; /* 确保在所有屏幕尺寸下固定位置 */
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 50;
    width: 13rem; /* 调整侧边栏宽度为 13rem，与w-52 对应 */
}

/* 增加标题和菜单图标样式 */
.sidebar-item {
    display: block;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 0.375rem;
    color: #e2e8f0;
    font-size: 0.875rem; /* 减小侧边栏菜单字体 */
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background-color: #3498db; /* 恢复原始高亮色 */
    color: white;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.sidebar-item.active {
    background-color: #3498db; /* 恢复原始高亮色 */
    color: white;
}

/* 工具卡片样式 */
.tool-card {
    transition: all 0.3s ease;
    height: 100%;
}

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

/* 分类容器样式 */
.category-container {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

/* 分类标题样式 */
.category-title h2 {
    font-size: 1rem !important; /* 减小分类标题字体大小 */
    font-weight: 600;
}

/* 工具标题样式 */
.tool-card h3 {
    font-size: 0.875rem !important; /* 减小工具卡片标题字体大小 */
    font-weight: 500;
}

/* 主内容区调整 */
.main-content-wrapper {
    padding-left: 13rem; /* 添加与侧边栏等宽的左内边距 */
    margin-left: 0;
}

@media (min-width: 768px) {
    /* 中等屏幕及以上的主内容区域留出侧边栏空间 */
    .main-content-wrapper {
        margin-left: 0; /* 移除额外的边距 */
    }
    
    /* 在中等屏幕及以上时显示侧边栏 */
    .sidebar {
        display: block !important;
    }
}

@media (max-width: 767px) {
    /* 在小屏幕上隐藏侧边栏，并在需要时通过JavaScript显示 */
    .main-content-wrapper {
        padding-left: 0; /* 移动端时取消左内边距 */
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 40;
        display: none;
    }
    
    .overlay.open {
        display: block;
    }
}

footer {
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
    clear: both;
} 