:root {
    --primary-color: #4a6cf7;
    --secondary-color: #ff6b6b;
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333;
    --border-radius: 10px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(45deg, var(--primary-color), #6c8dff);
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.category {
    margin-bottom: 40px;
}

.category h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.category h2 i {
    margin-right: 10px;
}

.links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.link-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    align-items: center;
    text-align: center;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    background-color: rgba(74, 108, 247, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
}

.site-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.site-desc {
    font-size: 0.9rem;
    color: #666;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    color: #777;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .links {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 10px;
    }
    
    header {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .category h2 {
        font-size: 1.5rem;
    }
}
