﻿
/* ========== 页头 Header ========== */
.mobile-header {
    position: fixed;
    top: 0;
    /*left: 50%;
    transform: translateX(-50%);*/
    width: 100%;
    max-width: var(--iphone-width);
    height: calc(var(--header-height) + var(--safe-top));
    padding-top: var(--safe-top);
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

    .mobile-header.hidden {
        transform: translateX(-50%) translateY(-100%);
    }

.header-content {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
}

/* 左侧区域 */
.header-left {
    display: flex;
    align-items: center;
    min-width: 80px;
    flex-shrink: 0;
}

.header-btn {
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    color: var(--text-inverse);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

    .header-btn:active {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(0.95);
    }

.header-title-text {
    color: var(--text-inverse);
    font-size: 18px;
    font-weight: 600;
    margin-left: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 中间区域 */
.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

    .header-center .header-title-text {
        margin-left: 0;
        font-size: 18px;
        font-weight: 600;
    }

/* 右侧区域 */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    justify-content: flex-end;
    flex-shrink: 0;
}

    .header-right .header-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

/* 搜索模式 */
.header-search-mode {
    flex: 1;
    margin: 0 12px;
}

.header-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0 12px;
    height: 38px;
    box-shadow: var(--shadow-sm);
}

    .header-search-box i {
        color: var(--text-muted);
        font-size: 14px;
        margin-right: 8px;
    }

    .header-search-box input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 14px;
        color: var(--text-primary);
        outline: none;
    }

        .header-search-box input::placeholder {
            color: var(--text-muted);
        }

.header-search-btn {
    padding: 6px 14px;
    background: var(--tech-blue);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .header-search-btn:active {
        background: var(--dark-blue);
        transform: scale(0.95);
    }
