:root {
    --primary: #ff0050;
    --primary-dark: #cc0040;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #f5f5f5;
    --gray: #2a2a2a;
    --gray-light: #3a3a3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray);
    margin-bottom: 10px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff0050, #ff8a00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.5rem;
    margin: 10px;
    background: linear-gradient(90deg, #ff0050, #ff8a00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #aaa;
    font-size: 1.1rem;
}

.category {
    margin-bottom: 40px;
}

.category-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray);
}

.category-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.category-name {
    font-size: 1.5rem;
    font-weight: 600;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tool-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.tool-card {
    background: var(--gray);
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.tool-card-link:hover .tool-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 0, 80, 0.2);
    background: var(--gray-light);
}

.tool-name {
    font-size: 1.2rem;
    color: var(--primary);
}

.tool-desc {
    margin-top: -25px;
    color: #bbb;
    font-size: 0.9rem;
    white-space: pre;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid var(--gray);
    color: #777;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
}