* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    background-image: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: #1a1a1a;
    padding: 20px 0;
    border-bottom: 2px solid #6a0dad;
    background-image: linear-gradient(90deg, #1a1a1a 0%, #222 50%, #1a1a1a 100%);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logo {
    font-size: 2.5rem;
    color: #6a0dad;
    text-shadow: 0 0 10px #6a0dad, 0 0 20px #ffff00;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.bilibili-link, .qq-link {
    color: #6a0dad;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #6a0dad;
}

.bilibili-link:hover, .qq-link:hover {
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00, 0 0 20px #6a0dad;
}

.search-box {
    display: flex;
    gap: 10px;
}

#searchInput {
    flex: 1;
    padding: 10px;
    background-color: #333;
    border: 2px solid #6a0dad;
    color: #fff;
    font-size: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(106, 13, 173, 0.3);
}

#searchBtn {
    padding: 10px 20px;
    background-color: #6a0dad;
    border: none;
    color: #fff;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(106, 13, 173, 0.5);
}

#searchBtn:hover {
    background-color: #ffff00;
    color: #000;
    box-shadow: 0 0 10px #ffff00, 0 0 20px #6a0dad;
}

.nav {
    background-color: #222;
    padding: 15px 0;
}

.category-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-item {
    padding: 8px 15px;
    background-color: #333;
    border: 2px solid #6a0dad;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(106, 13, 173, 0.3);
}

.category-item:hover {
    background-color: #6a0dad;
    box-shadow: 0 0 10px #6a0dad, 0 0 20px rgba(255, 255, 0, 0.5);
}

.category-item.active {
    background-color: #ffff00;
    color: #000;
    border-color: #ffff00;
    box-shadow: 0 0 10px #ffff00, 0 0 20px #6a0dad;
}

.main {
    padding: 40px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tool-card {
    background-color: #1a1a1a;
    border: 2px solid #6a0dad;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(106, 13, 173, 0.3);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px #6a0dad, 0 0 40px rgba(255, 255, 0, 0.3);
}

.tool-name {
    font-size: 1.5rem;
    color: #6a0dad;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #6a0dad;
}

.tool-description {
    color: #ccc;
    margin-bottom: 15px;
}

.tool-url {
    color: #ffff00;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #ffff00;
}

.tool-url:hover {
    color: #fff;
    text-shadow: 0 0 10px #ffff00, 0 0 20px #6a0dad;
}

.favorite-btn {
    background-color: #333;
    border: 2px solid #6a0dad;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(106, 13, 173, 0.3);
}

.favorite-btn:hover {
    background-color: #6a0dad;
    box-shadow: 0 0 10px #6a0dad, 0 0 20px rgba(255, 255, 0, 0.5);
}

.favorite-btn.active {
    background-color: #ffff00;
    color: #000;
    border-color: #ffff00;
    box-shadow: 0 0 10px #ffff00, 0 0 20px #6a0dad;
}

.footer {
    background-color: #1a1a1a;
    padding: 20px 0;
    border-top: 2px solid #6a0dad;
    color: #ccc;
    background-image: linear-gradient(90deg, #1a1a1a 0%, #222 50%, #1a1a1a 100%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer .bilibili-link, .footer .qq-link {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(204, 204, 204, 0.3);
}

.footer .bilibili-link:hover, .footer .qq-link:hover {
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00, 0 0 20px #6a0dad;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.8rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-list {
        justify-content: center;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 10px;
    }
}