.top-bar {
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #334155;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
}
.menu-toggle:hover {
    background: #f1f5f9;
}
.search-wrapper {
    flex: 1;
    position: relative;
    max-width: 500px;
}
.search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}
#searchInput {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #e2e8f0;
    border-radius: 32px;
    font-size: 0.9rem;
    background: #ffffff;
    transition: all 0.2s;
    outline: none;
}
#searchInput:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.category-group {
    margin-bottom: 32px;
    scroll-margin-top: 20px;
}
.category-group:last-child {
    margin-bottom: 0;
}
.group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: none;
}
.group-title i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: #eef2ff;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.group-title h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.2px;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.card {
    background: white;
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.12);
    border-color: #cbdff2;
}
.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #f1f5fe, #ffffff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #3b82f6;
    flex-shrink: 0;
    box-shadow: 0 4px 8px -4px rgba(0,0,0,0.05);
}
.card-content {
    flex: 1;
}
.card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #0f172a;
}
.card-desc {
    font-size: 0.75rem;
    color: #5b6e8c;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 1rem;
}

.card-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;   /* 可选 */
    display: block;
}

.card-icon img.card-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 10px;
}