:root {
    --primary-color: #00f7ff;
    --secondary-color: #ff00e4;
    --bg-color: #0f0f1a;
    --card-bg: rgba(15, 15, 26, 0.7);
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    .search-container {
        display: flex;
        margin: 15px 0;
    }
    
    #search-input {
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px 0 0 4px;
        width: 400px;
    }
    
    .search-container button {
        padding: 8px 15px;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        width: 120px;
    }
    
    .search-container button:hover {
        background-color: #45a049;
    }
}

.title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 2;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.apps-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 2;
    position: relative;
}

.category-card {
    margin-bottom: 0px;
    width: 100%;
}

.category-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
}

.app-card {
    width: 200px;
    margin-bottom: 15px;
}

.app-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
}

.app-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 247, 255, 0.3), 
                0 15px 30px rgba(255, 0, 228, 0.3);
    border-color: var(--primary-color);
}

.card-content {
    text-align: center;
    transition: transform 0.5s;
}

.app-card:hover .card-content {
    transform: rotateY(20deg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.app-card:hover .card-icon {
    transform: scale(1.2);
    text-shadow: 0 0 10px var(--primary-color);
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .title {
        font-size: 2rem;
    }
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 247, 255, 0.1);
    border-bottom: 1px solid rgba(0, 247, 255, 0.3);
}

.category-icon {
    font-size: 24px;
    margin-right: 0; /* 移除原有的右边距 */
}

.category-title {
    margin: 0;
    font-size: 18px;
    white-space: nowrap; /* 防止标题换行 */
}

.header {
    position: relative;
    z-index: 10;
}

.search-container {
    position: relative;
    z-index: 20;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* 调整为5，介于header和search-container之间 */
    /* 移除pointer-events: none; 这行 */
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.search-option {
    display: flex;
    align-items: center;
}

.search-option input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    width: 400px;
}

.search-option button {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-option button:hover {
    background-color: #45a049;
}

