/* ========================================
   工具导航页样式
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 70px;
}

.navbar{
	height:80px !important;
}

/* 页面主内容 */
.tools-page {
    min-height: calc(100vh - 70px);
    padding: 40px 0 60px;
}

/* 页面头部 */
.page-header {
    text-align: center;
    margin-bottom: 20px;
	
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 42px;
}

.page-title i {
    color: #1890ff;
}

.page-description {
    font-size: 16px;
    color: #666;
}

/* 工具容器 */
.tools-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
}

.loading-spinner i {
    color: #1890ff;
    margin-bottom: 16px;
}

.loading-spinner p {
    color: #999;
    font-size: 14px;
    margin-top: 16px;
}

/* 工具分类卡片 */
.tools-category {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	margin-top:-20px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
}

.category-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #e8f4ff, #d4eaff);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 24px;
    color: #1890ff;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
	
}

/* 工具卡片 */
.tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #1890ff;
    background: #fff;
}

/* 工具图标 */
.tool-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-icon i {
    font-size: 20px;
    color: #1890ff;
}

/* 工具信息 */
.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-card:hover .tool-name {
    color: #1890ff;
}

.tool-link-hint {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
}

.empty-state i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .tools-page {
        padding: 24px 0 40px;
    }
    
    .page-title {
        font-size: 24px;
		margin-top:20px;
    }
    
    .page-description {
        font-size: 14px;
    }
    
    .tools-category {
        padding: 18px;
        margin-bottom: 24px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-icon i {
        font-size: 20px;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .tool-card {
        padding: 10px 12px;
    }
    
    .tool-icon {
        width: 40px;
        height: 40px;
    }
    
    .tool-icon i {
        font-size: 22px;
    }
    
    .tool-name {
        font-size: 13px;
    }
    
    .tool-link-hint {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
	.page-title {
        font-size: 20px;
		
    }
}