﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0px;
    text-align: center;
}

    .header h1 {
        font-size: 2.5em;
        margin-bottom: 10px;
    }

.search-section {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.search-box {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

    .search-input:focus {
        border-color: #667eea;
    }

.search-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: bold;
}

    .search-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

.recent-tools {
    padding: 20px 30px;
    background: #fff3cd;
    border-bottom: 1px solid #e0e0e0;
}

    .recent-tools h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
        color: #856404;
    }

.recent-tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.content {
    padding: 30px;
}

.category-section {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.category-title {
    font-size: 1em;
    color: #333;
    font-weight: bold;
}

.more-link {
    color: #667eea;
    text-decoration: none;
    font-size: 1em;
    padding: 8px 16px;
    border: 1px solid #667eea;
    border-radius: 5px;
    transition: all 0.3s;
}

    .more-link:hover {
        background: #667eea;
        color: white;
    }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 2px solid transparent;
}

    .tool-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
        border-color: #667eea;
    }

.tool-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.tool-name {
    font-size: 1em;
    font-weight: bold;
    text-align: center;
}

.search-results {
    padding: 30px;
}

    .search-results h2 {
        margin-bottom: 20px;
        color: #333;
    }

.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .tool-icon {
        font-size: 2em;
    }

    .category-title {
        font-size: 1.4em;
    }
}

.tool-foot {
    font-size: 1em;
    color: #FFF;
    margin-bottom: 10px;
    text-align: center;
}