* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: white;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.header h1 {
    font-size: 2rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}

.header p {
    font-size: 0.95rem;
    color: #666;
}

.category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.tool-link {
    display: block;
    padding: 12px;
    border-radius: 5px;
    background: #f7f7f7;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.tool-link:hover {
    background: #efefef;
}

.tool-link img {
    float: left;
    width: 48px;
    height: 48px;
    border-radius: 5px;
    margin-right: 8px;
}

.tool-link .name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-link .desc {
    font-size: 13px;
    color: #777;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 12px;
    clear: both;
}

@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
