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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: #f5f7fa;
    color: #333;
    display: flex;
    min-height: 100vh;
}

#sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.profile-picture {
    width: 50px; /* 设置图片宽度 */
    height: 50px; /* 设置图片高度 */
    border-radius: 50%;
    object-fit: cover;
    margin: 1px auto;
    display: block;
}


.qrcode-picture {
    width: 100px; /* 设置图片宽度 */
    height: 100px; /* 设置图片高度 */
    object-fit: cover;
    margin: 5px auto;
    display: block;
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-group {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.category-group h3 {
    color: #2d3748;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-group ul {
    list-style: none;
}

.category-group li {
    padding: 8px 15px;
    margin: 5px 0;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.category-group li:hover {
    background: #f0f0f0;
    color: #6366f1;
}

.category-group li.active {
    background: #6366f1;
    color: white;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    max-width: calc(100% - 250px);
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 10px;
}

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

.search-container {
    margin-bottom: 30px;
    text-align: center;
}

#searchInput {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

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

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2 i {
    color: #6366f1;
}

.card p {
    color: #4a5568;
    margin-bottom: 20px;
}

.visit-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #6366f1;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.visit-btn:hover {
    background: #4f46e5;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #666;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .mobile-only {
        display: block;
    }

    #menuToggle {
        background: none;
        border: none;
        color: white;
        font-size: 1.5em;
        cursor: pointer;
    }

    nav {
        display: none;
    }

    nav.show {
        display: block;
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 10px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 2em;
    }
}
 