/* ============================================================
   2-layout / mobile-header.css
   移动端顶部头部（Logo + 搜索 + 分类横滚）
   来源：website-complete / styles.css L623–741
   ============================================================ */

/* ===== Mobile Header ===== */
.mobile-header {
    display: none;
    position: sticky;
    top: 0;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    flex-direction: column;
}

.mobile-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    height: 52px;
}

.mobile-logo { display: flex; align-items: center; flex-shrink: 0; }

.mobile-logo-icon {
    width: 32px; height: 32px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.mobile-search {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 36px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
}

.mobile-search input:focus { outline: none; border-color: var(--border-default); }
.mobile-search input::placeholder { color: var(--text-placeholder); }

.mobile-search svg {
    position: absolute;
    left: 10px;
    width: 18px; height: 18px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.mobile-theme-btn {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.mobile-theme-btn svg { width: 20px; height: 20px; }
.mobile-theme-btn:active { background: var(--bg-hover); }

.mobile-header-nav {
    position: relative;
    height: 44px;
    overflow: hidden;
}

.mobile-nav-scroll {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px;
    height: 100%;
    align-items: center;
}

.mobile-nav-scroll::-webkit-scrollbar { display: none; }

.mobile-cat-link {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 400;
    -webkit-tap-highlight-color: transparent;
}

.mobile-cat-link:active,
.mobile-cat-link:hover { background: var(--bg-hover); }
.mobile-cat-link.active { color: var(--text-primary); font-weight: 400; background: var(--bg-hover); }

.mobile-btn {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.mobile-btn svg { width: 20px; height: 20px; }
